/* Child cabinet presentation only. Shared operations and data remain unchanged. */
.child-style-picker { margin-top:26px;padding-top:22px;border-top:1px solid var(--line); }
.child-style-picker p { color:var(--muted);line-height:1.6; }
.child-style-picker fieldset { min-width:0;border:0;padding:0;margin:0; }
.child-style-picker legend { font-weight:600;margin-bottom:12px; }
.child-style-options { display:grid;gap:12px;margin-bottom:16px; }
.child-style-option { border:1px solid var(--line);border-radius:12px;padding:16px;background:var(--surface); }
.child-style-option:has(input:checked) { border-color:var(--teal);outline:1px solid var(--teal);background:var(--teal-soft); }
.child-style-option label { display:grid;grid-template-columns:22px minmax(0,1fr);gap:6px 10px;cursor:pointer; }
.child-style-option input { width:20px;min-height:20px;height:20px;margin:2px 0;accent-color:var(--teal);grid-row:1 / 3; }
.child-style-option label span { color:var(--muted);line-height:1.5; }
.child-style-option a { display:inline-flex;align-items:center;min-height:44px;margin:6px 0 0 32px; }
.age-header-profile { display:flex;align-items:center;gap:9px;max-width:180px;min-width:0; }
.age-header-profile > span { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.child-dashboard:is(.child-style-junior,.child-style-compact) #overview { padding:0;border:0;background:transparent; }
.age-heading { margin:6px 0 28px; }
.age-heading h2 { font-size:36px;line-height:1.2;margin:0 0 10px;color:var(--berry);overflow-wrap:anywhere; }
.age-heading p { margin:0;color:var(--muted);font-size:17px;line-height:1.5; }
.age-summary { display:grid;grid-template-columns:1fr 1.12fr;gap:20px;margin-bottom:28px; }
.age-wallet,.age-wish,.age-latest-grade,.age-empty { border:1px solid var(--line);border-radius:16px;padding:24px;background:var(--surface);min-width:0; }
.age-wallet { background:var(--teal-soft);display:flex;align-items:center;justify-content:space-between;gap:12px; }
.age-wallet > div { min-width:0; }
.age-wallet h3,.age-wish h3,.age-latest-grade h3 { margin:0 0 9px;font-size:16px;font-weight:600; }
.age-balance { display:flex;align-items:baseline;flex-wrap:wrap;gap:8px;margin:10px 0;color:var(--teal);font-size:54px;line-height:1.2;overflow-wrap:anywhere; }
.age-balance > .coin-value { font-size:inherit;max-width:100%;white-space:normal; }
.age-balance > .coin-value > span { overflow-wrap:anywhere;min-width:0; }
.age-balance .ui-icon { display:none; }
.age-coin-word { font-size:20px; }
.age-wallet-art .ui-picture { width:100px;height:100px; }
.age-wish-heading { display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px; }
.age-wish-heading > div { min-width:0; }
.age-wish-heading strong { font-size:22px;line-height:1.4;overflow-wrap:anywhere; }
.age-wish-art { flex:0 0 64px; }
.age-wish-art .ui-picture { width:64px;height:64px; }
.age-wish-art .reward-picture { display:block;width:64px;height:64px; }
.age-progress-label,.age-wish-footer { display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap; }
.age-progress-label { font-size:16px;color:var(--teal); }
.age-progress-label > span:first-child { display:flex;align-items:center;flex-wrap:wrap;gap:5px;min-width:0; }
.age-progress-label .coin-value { white-space:normal;min-width:0; }
.age-progress-label .coin-value > span { overflow-wrap:anywhere;min-width:0; }
.age-wish progress { appearance:none;width:100%;height:14px;border:0;border-radius:10px;background:var(--soft);overflow:hidden;margin:10px 0;accent-color:var(--teal); }
.age-wish progress::-webkit-progress-bar { background:var(--soft);border-radius:10px; }
.age-wish progress::-webkit-progress-value { background:var(--teal);border-radius:10px; }
.age-wish progress::-moz-progress-bar { background:var(--teal);border-radius:10px; }
.age-wish-footer { color:var(--muted);font-size:14px; }
.age-section-heading { display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:16px; }
.age-section-heading h3 { margin:0;font-size:25px; }
.age-task-list { display:grid;gap:12px; }
.age-task { display:grid;grid-template-columns:40px minmax(0,1fr) auto auto;gap:12px 16px;align-items:center;border:1px solid var(--line);border-radius:14px;background:var(--surface);padding:20px;min-width:0; }
.age-task-art .task-picture { display:block;width:40px;height:40px; }
.age-task-title { min-width:0; }
.age-task h4 { margin:0;font-size:18px;line-height:1.4;overflow-wrap:anywhere; }
.age-task-title small { display:block;margin-top:5px;color:var(--muted); }
.age-task-reward { color:var(--teal);white-space:nowrap; }
.age-task-status { font-size:14px;line-height:1.4;padding:7px 10px;border-radius:8px; }
.age-status-open { color:#235e50;background:#e5f3e9; }
.age-status-pending { color:#754d19;background:#fff0d4; }
.age-task-action { grid-column:2 / -1;margin:0;justify-self:end; }
.age-task-action button,.age-task-action:is(button) { min-height:48px;font-size:16px; }
.age-task-help { margin:12px 0 24px;color:var(--muted);font-size:14px;line-height:1.6; }
.age-latest-grade { display:flex;align-items:center;gap:20px;margin-top:24px;flex-wrap:wrap; }
.age-grade-art .ui-picture { width:48px;height:48px; }
.age-latest-grade > div { flex:1;min-width:120px;overflow-wrap:anywhere; }
.age-latest-grade small { display:block;color:var(--muted);margin-top:4px; }
.age-latest-grade > a { margin-left:auto; }
.age-mark { color:var(--berry);font-size:34px; }
.age-grade-reward { font-size:20px;color:var(--teal); }
.age-empty { display:flex;gap:18px;align-items:center; }
.age-empty .ui-picture { width:64px;height:64px; }
.age-empty p { color:var(--muted);line-height:1.5; }
.child-style-junior .age-task-list { grid-template-columns:repeat(2,minmax(0,1fr));gap:20px; }
.child-style-junior .age-task { grid-template-columns:96px minmax(0,1fr);padding:24px;gap:12px 18px; }
.child-style-junior .age-task-art { grid-row:1 / 4; }
.child-style-junior .age-task-art .task-picture { width:96px;height:96px; }
.child-style-junior .age-task h4 { font-size:22px; }
.child-style-junior .age-task-reward,.child-style-junior .age-task-status { grid-column:2;justify-self:start; }
.child-style-junior .age-task-action { grid-column:1 / -1;justify-self:stretch; }
.child-style-junior .age-task-action button { width:100%; }
.child-style-junior .age-task-reward { font-size:20px; }
.child-style-junior .age-heading h2 { font-size:40px; }
.child-style-junior .task-card { padding:22px; }
.child-style-junior .task-card .task-symbol { width:80px;height:80px; }
.child-style-junior .task-card .task-picture { width:80px;height:80px; }
.child-style-junior .task-card h3 { font-size:22px; }
.child-style-junior .task-card button { min-height:48px;font-size:16px; }
.child-style-compact .age-wallet-art { display:none; }
.child-style-compact .age-wallet,.child-style-compact .age-wish,.child-style-compact .age-task { border-radius:12px; }
.child-style-compact .age-task-art { color:var(--teal); }
@media(min-width:1100px) {
  .child-style-compact .age-task { grid-template-columns:40px minmax(0,1fr) auto auto 232px; }
  .child-style-compact .age-task-action { grid-column:5;grid-row:1;justify-self:stretch; }
  .child-style-compact .age-task-action button { width:100%; }
}
.age-preview-header { display:flex;gap:16px;flex-wrap:wrap;justify-content:space-between;align-items:center;padding:20px 24px;background:var(--surface);border-bottom:1px solid var(--line); }
.age-preview-switch { display:flex;gap:12px;flex-wrap:wrap;margin:20px 0; }
.age-preview-switch a { padding:12px 16px;border:1px solid var(--line);border-radius:10px;background:var(--surface); }
.age-preview-switch [aria-current=page] { background:var(--teal-soft);border-color:var(--teal); }
.child-style-preview .dashboard-main { padding-top:24px; }
@media(max-width:900px) {
  .age-summary { grid-template-columns:1fr; }
  .child-style-junior .age-task-list { grid-template-columns:1fr; }
  .age-header-profile { max-width:120px; }
}
@media(max-width:600px) {
  .age-heading { margin-bottom:20px; }
  .age-heading h2,.child-style-junior .age-heading h2 { font-size:30px; }
  .age-heading p { font-size:16px; }
  .age-wallet,.age-wish,.age-latest-grade,.age-empty { padding:18px; }
  .age-summary { gap:14px;margin-bottom:24px; }
  .age-wallet-art .ui-picture { width:72px;height:72px; }
  .age-balance { font-size:40px; }
  .age-coin-word { font-size:18px; }
  .age-wish-heading strong { font-size:19px; }
  .age-wish-art { flex-basis:48px; }
  .age-wish-art .reward-picture,.age-wish-art .ui-picture { width:48px;height:48px; }
  .age-task { grid-template-columns:32px minmax(0,1fr);gap:10px 12px;padding:16px; }
  .age-task-art { grid-column:1;grid-row:1 / 3; }
  .age-task-art .task-picture { width:32px;height:32px; }
  .age-task-reward { grid-column:2; }
  .age-task-status { grid-column:2;justify-self:start; }
  .age-task-action { grid-column:1 / -1;justify-self:stretch; }
  .age-task-action button { width:100%; }
  .child-style-junior .age-task { grid-template-columns:64px minmax(0,1fr);gap:10px 14px;padding:18px; }
  .child-style-junior .age-task-art .task-picture { width:64px;height:64px; }
  .child-style-junior .age-task h4 { font-size:20px; }
  .age-latest-grade { gap:12px; }
  .age-mark { font-size:28px; }
  .age-latest-grade > a { width:100%;margin:0; }
  .age-header-profile { max-width:52px; }
  .age-header-profile > span:last-child { display:none; }
  .age-section-heading h3 { font-size:22px; }
  .age-section-heading a { font-size:14px; }
}
