.period-links {display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}.period-links a {padding:10px 12px;border:1px solid var(--line);border-radius:9px;text-decoration:none;background:var(--surface)}.period-links a[aria-current] {background:var(--teal-soft);font-weight:700}.period-report {padding:20px;border:1px solid var(--line);border-radius:12px;margin:22px 0}.period-numbers {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.period-numbers dt {font-size:13px;color:var(--muted)}.period-numbers dd {margin:8px 0 0;font-size:23px;color:var(--teal);font-weight:700}.period-mark {display:inline-block;margin:0 12px 8px 0}.period-setup,.parent-issue {margin:24px 0}.period-setup summary,.parent-issue summary {color:var(--teal);font-weight:700;cursor:pointer}.period-setup form,.parent-issue form {margin:18px 0}.direct-issue-form {padding:18px;border:1px solid var(--line);border-radius:12px}.direct-issue-form h4 {margin:0}.period-numbers > div {min-width:0;overflow-wrap:anywhere}@media(max-width:700px){.period-numbers {grid-template-columns:repeat(2,minmax(0,1fr))}.period-report {padding:16px}.period-links {flex-direction:column}.period-links a {font-size:14px}.direct-issue-form {padding:14px}}
@media(min-width:901px) and (max-width:1150px){.dashboard-body:not(.admin-body) .dashboard-menu a {font-size:12px;padding:0 6px}.dashboard-body:not(.admin-body) .dashboard-topline {gap:10px}.dashboard-body:not(.admin-body) .header-add span {display:none}}
:root {
  color-scheme: light;
  --page: #fff1e8; --surface: #fffdf9; --soft: #f8ede6; --ink: #402a26;
  --muted: #796762; --teal: #286b6c; --teal-soft: #e4efeb;
  --berry: #773f50; --line: #eadcd3; --gold: #f4d49d;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink); background: var(--page);
}
.reward-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:24px 0}.reward-card,.exchange-card,.goal-card {padding:20px;border:1px solid var(--line);border-radius:14px;background:var(--surface);min-width:0}.reward-card h3,.exchange-card h3,.goal-card h3 {margin:12px 0}.reward-card strong {color:var(--berry)}.reward-card form {margin-top:12px;gap:12px}.reward-art .ui-picture {width:64px;height:64px}.goal-card {margin-top:20px;background:var(--teal-soft)}.goal-card p {margin:8px 0}.goal-card progress {width:100%;height:14px;accent-color:var(--teal)}.exchange-card {margin-top:16px}.reward-create {margin-bottom:28px}button:disabled {opacity:.6;cursor:not-allowed}.coin-history details form {padding:14px;background:var(--soft);border-radius:10px}.ledger-filters {display:flex;flex-wrap:wrap;gap:12px;margin:20px 0}.ledger-filters label {flex:1;min-width:140px}.dashboard-topline {gap:12px}.dashboard-menu a {padding-left:8px;padding-right:8px;font-size:13px}.dashboard-brand {min-width:120px}
@media(max-width:1100px){.reward-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.header-add span{display:none}.header-add{padding:12px}}
@media(max-width:600px){.reward-grid{grid-template-columns:1fr}.reward-card,.exchange-card,.goal-card{padding:16px}}
* { box-sizing: border-box; }
.subject-icon { display:inline-block; width:20px; height:20px; flex:0 0 auto; vertical-align:middle; object-fit:contain; margin-right:5px; }
.subject-label { display:inline-flex; gap:6px; align-items:center; max-width:100%; vertical-align:middle; }
.subject-label .subject-icon { margin:0; width:18px; height:18px; }
.subject-label > span { min-width:0; overflow-wrap:anywhere; }
.subject-input-field { display:flex; align-items:center; gap:8px; min-width:0; }
.subject-input-field > [data-subject-current-icon] { display:flex; flex:0 0 22px; }
.subject-input-field input,.subject-input-field select { min-width:0; width:100%; }
.subject-picker { min-width:0; }
.subject-choice { margin-top:8px; }
.subject-choice summary { color:var(--teal); font-size:14px; cursor:pointer; }
.subject-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; margin-top:10px; }
.subject-options .subject-option { min-width:0; padding:9px; font-size:13px; text-align:left; }
.subject-option[aria-pressed=true] { background:var(--teal-soft); border-color:var(--teal); }
.subject-hint { display:block; font-size:12px; margin-top:8px; }
.subject-option:focus-visible,.subject-choice summary:focus-visible { outline:3px solid var(--teal); outline-offset:2px; }
.grades-history .subject-label .subject-icon { width:16px; height:16px; }
.ledger-icon .subject-icon { width:24px; height:24px; margin:0; }
@media(max-width:360px) { .subject-options { grid-template-columns:1fr; } }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; padding: 28px; display: grid; place-items: center; background: var(--page); }
main { width: min(100%, 640px); padding: 40px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
a { color: var(--teal); text-underline-offset: 4px; }
h1, h2, h3 { overflow-wrap: anywhere; }
h1 { margin: 22px 0; font-size: clamp(32px, 4.5vw, 50px); line-height: 1.13; letter-spacing: -.035em; font-weight: 750; }
h2 { margin: 28px 0 18px; font-size: 25px; letter-spacing: -.025em; }
h3 { margin: 22px 0 10px; font-size: 18px; letter-spacing: -.015em; }
p { max-width: 640px; font-size: 17px; line-height: 1.65; color: var(--muted); }
small { display: block; color: var(--muted); font-size: 13px; line-height: 1.55; }
.label, .eyebrow { display: inline-block; font-weight: 650; color: var(--teal); }
.eyebrow { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.overview-goal {display:block;text-decoration:none;margin-bottom:20px;color:var(--ink)}
.reward-picture {display:block;width:80px;height:80px;background-image:url('/assets/landing/illustrations.webp');background-repeat:no-repeat;background-size:400% 200%}.reward-picture-game {background-position:66.666667% 0}.reward-picture-books {background-position:100% 0}.reward-picture-cinema {background-position:0 100%}
.ui-icon { width: 24px; height: 24px; display: block; flex-shrink: 0; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 24px; }
form { display: grid; gap: 18px; margin-top: 22px; }
label { display: grid; gap: 8px; font-size: 14px; font-weight: 650; }
input, select, textarea { width: 100%; min-width: 0; min-height: 46px; padding: 12px 14px; border: 1px solid #d9c7bb; border-radius: 9px; font: inherit; font-weight: 400; color: var(--ink); background: #fff; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); }
button, .button-link { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 12px 18px; border: 1px solid transparent; border-radius: 10px; background: var(--teal); color: #fff; font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; text-decoration: none; }
button:hover, .button-link:hover { background: #205b5c; }
button.secondary, .button-link.secondary { background: var(--surface); border-color: #dbcac0; color: var(--ink); }
button.secondary:hover, .button-link.secondary:hover { background: var(--soft); }
:focus-visible { outline: 3px solid #ad6e30; outline-offset: 3px; }
.notice { margin-top: 24px; padding: 14px 18px; border: 1px solid #efddc2; border-radius: 12px; background: #fff6e5; color: #775c39; line-height: 1.6; font-size: 14px; }
.feedback { margin: 0 0 22px; padding: 14px 18px; border-radius: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.feedback.error { background: #fbe7e1; color: #873c32; border: 1px solid #edc7bd; }
.feedback.success { background: var(--teal-soft); color: #255b53; border: 1px solid #c4dbd2; }
.auth-panel { max-width: 520px; box-shadow: 0 12px 40px #704b3510; }
.auth-panel h1 { font-size: clamp(28px, 4vw, 38px); }
.auth-panel p { overflow-wrap: anywhere; }
.form-note { margin: 0; font-size: 14px; line-height: 1.65; color: var(--muted); }
.local-note { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.checkbox { display: flex; align-items: flex-start; gap: 12px; font-weight: 400; line-height: 1.55; }
.checkbox input { width: 20px; height: 20px; min-height: 20px; flex-shrink: 0; margin-top: 2px; }
.details, details { margin-top: 16px; }
summary { cursor: pointer; color: var(--teal); font-size: 14px; font-weight: 650; padding: 12px 0; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip-path: inset(50%); white-space: nowrap; border: 0 !important; }
.ui-picture { display: block; width: 56px; height: 56px; flex-shrink: 0; }
.dashboard-body { display: block; place-items: normal; padding: 0; }
.dashboard-header { position: sticky; top: 0; z-index: 50; width: 100%; border-bottom: 1px solid var(--line); background: var(--surface); }
.dashboard-topline { max-width: 1280px; margin: 0 auto; min-height: 92px; padding: 12px 24px; display: flex; align-items: center; gap: 22px; }
.dashboard-brand { display: flex; align-items: center; gap: 12px; min-width: 140px; max-width: 220px; text-decoration: none; color: var(--ink); font-size: 20px; font-weight: 700; line-height: 1.25; }
.dashboard-brand > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.dashboard-brand small { margin-top: 5px; font-size: 15px; font-weight: 400; color: var(--ink); }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: #f6e8dc; flex-shrink: 0; }
.brand-mark .ui-icon { width: 29px; height: 29px; }
.initial-avatar { display: grid; place-items: center; width: 58px; height: 58px; background: #edd8cd; color: var(--berry); border: 3px solid var(--surface); border-radius: 50%; font-size: 26px; font-weight: 600; flex-shrink: 0; }
.dashboard-account { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.dashboard-account form { margin: 0; display: block; }
.dashboard-account button { min-height: 40px; padding: 8px; font-size: 12px; border: 0; background: transparent; color: var(--muted); }
.dashboard-menu { flex: 1; width: auto; margin: 0; padding: 0; gap: 4px; flex-wrap: nowrap; justify-content: center; align-items: stretch; align-self: stretch; }
.dashboard-menu a { display: flex; align-items: center; position: relative; padding: 0 12px; text-decoration: none; color: var(--ink); white-space: nowrap; font-size: 14px; font-weight: 500; }
.dashboard-menu a[aria-current] { color: var(--teal); font-weight: 700; }
.dashboard-menu a[aria-current]::after { content: ''; position: absolute; bottom: 10px; left: 10px; right: 10px; height: 3px; border-radius: 3px; background: var(--teal); }
.header-add { min-height: 48px; padding: 12px 18px; font-weight: 500; font-size: 15px; border-radius: 13px; }
.menu-toggle, .mobile-add { display: none; }
.dashboard-main { width: min(100%, 1280px); margin: 0 auto; padding: 24px 24px 40px; border: 0; border-radius: 0; background: transparent; }
.dashboard-main > h1 { margin: 0 0 24px; font-size: 27px; color: var(--berry); }
.dashboard-main h2 { margin: 0 0 22px; font-size: 24px; }
.dashboard-section { scroll-margin-top: 112px; padding: 24px; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.dashboard-section form { max-width: 620px; }
.dashboard-section p { max-width: 760px; }
.board-section, .family-overview { padding: 0; border: 0; border-radius: 0; background: transparent; }
.family-overview { display: flex; flex-direction: column; }
.family-overview > h2, .family-overview > .child-card, .family-overview > .dashboard-quick { display: none; }
.family-overview .overview-board { order: 1; }
.family-overview .family-strip { order: 2; }
.child-card { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.child-card h3 { margin: 0 0 4px; font-size: 21px; }
.family-strip { display: grid; grid-template-columns: 1fr 1.1fr 1.15fr; padding: 24px 0; margin: 22px 0 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.strip-block { display: flex; align-items: center; gap: 18px; padding: 0 24px; min-width: 0; }
.strip-block + .strip-block { border-left: 1px solid var(--line); }
.strip-block > div { min-width: 0; }
.strip-block strong { display: block; margin: 5px 0; font-size: 16px; line-height: 1.4; overflow-wrap: anywhere; }
.strip-block .strip-balance { font-size: 34px; line-height: 1.15; letter-spacing: -.04em; }
.strip-balance span { font-size: 22px; font-weight: 600; letter-spacing: -.03em; }
.strip-icon { display: grid; place-items: center; flex-shrink: 0; width: 66px; height: 66px; border-radius: 50%; color: var(--teal); background: #faf0e6; }
.strip-icon .ui-icon { width: 36px; height: 36px; }
.coin-icon { background: #fff1df; }
.grade-icon { background: #f9eee5; }
.grade-paper { display: grid; place-items: center; width: 38px; height: 48px; border: 2px solid #bca59b; border-radius: 4px; color: #ab3e3f; background: white; font-size: 27px; font-weight: 600; transform: rotate(9deg); }
.overview-board, .task-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin: 0; }
.board-column { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.board-column:not(.board-completed) { min-height: 350px; }
.board-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.board-heading h3 { margin: 0; font-size: 23px; line-height: 1.3; font-weight: 650; }
.board-heading a { margin-left: auto; font-size: 13px; white-space: nowrap; text-decoration: none; }
.count-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 29px; height: 27px; padding: 3px 8px; border-radius: 10px; background: #e2ece8; color: #356867; font-size: 14px; font-weight: 650; }
.board-empty { min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; border-radius: 12px; background: #fffaf6; color: var(--muted); font-size: 14px; line-height: 1.6; text-align: center; }
.board-empty strong { color: var(--ink); font-weight: 600; }
.board-empty > span:last-child { max-width: 280px; }
.empty-art { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: #f9eadc; }
.preview-task { display: flex; gap: 14px; align-items: center; min-height: 108px; margin-top: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); text-decoration: none; }
.preview-task > span:nth-child(2) { flex: 1; min-width: 0; }
.preview-task strong { display: block; margin-bottom: 6px; font-size: 17px; overflow-wrap: anywhere; }
.task-symbol { display: grid; place-items: center; flex-shrink: 0; width: 60px; height: 68px; border-radius: 15px; color: var(--teal); background: #fff0e5; }
.reward-label { color: var(--ink); font-weight: 700; white-space: nowrap; }
.task-card { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; column-gap: 14px; row-gap: 6px; align-items: center; min-height: 118px; margin-top: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.task-card-heading, .task-meta { display: contents; }
.task-card-heading .task-symbol { grid-column: 1; grid-row: 1 / 3; }
.task-card h3 { grid-column: 2; grid-row: 1; align-self: end; margin: 0; font-size: 17px; line-height: 1.35; font-weight: 600; }
.task-card > small { grid-column: 2; grid-row: 2; align-self: start; font-size: 13px; }
.task-meta > span { display: none; }
.task-meta strong { grid-column: 3; grid-row: 1 / 3; color: var(--ink); font-size: 15px; font-weight: 700; white-space: nowrap; }
.reward-coin { display: inline-block; vertical-align: middle; margin: -2px 5px 0 0; }
.reward-coin .ui-icon { width: 23px; height: 23px; }
.task-submitted { grid-template-columns: 60px minmax(0, 1fr) auto 114px; }
.task-card form { margin-top: 0; gap: 12px; }
.task-submitted > form { grid-column: 4; grid-row: 1; }
.task-submitted > details { grid-column: 4; grid-row: 2; margin-top: 0; }
.task-submitted > details > summary { display: block; border: 1px solid #d7c7bd; border-radius: 9px; padding: 9px 6px; text-align: center; font-size: 11px; color: var(--ink); list-style: none; }
.task-submitted > details[open] { grid-column: 1 / -1; grid-row: auto; }
.task-submitted > details[open] form { margin-top: 16px; }
.task-card button { width: 100%; min-height: 40px; padding: 9px; font-size: 13px; font-weight: 500; }
.task-open > form { grid-column: 1 / -1; margin-top: 8px; }
.task-note { grid-column: 1 / -1; margin: 8px 0; padding: 12px; border-radius: 9px; background: #f5e8df; color: #79533f; }
.board-completed { grid-column: 1 / -1; }
.empty-completed { display: none; }
.board-filters { display: none; }
.task-create { padding: 4px 22px 20px; margin: 0 0 22px; border: 1px solid #c5d9d3; border-radius: 12px; background: #fffdf9; max-width: 620px; }
.dashboard-enhanced .task-create:not([open]) { display: none; }
.task-create form { margin-top: 12px; }
.dashboard-quick { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 24px; }
.coin-history { list-style: none; margin: 20px 0 0; padding: 0; }
.coin-history li { padding: 17px 0; border-bottom: 1px solid var(--line); font-size: 15px; overflow-wrap: anywhere; }
.coin-history strong { display: inline-block; min-width: 40px; margin-right: 12px; color: var(--teal); }
.coin-history small { margin-top: 6px; padding-left: 54px; }
.rules-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grade-award { float: right; color: var(--teal); font-size: 13px; }
#copy-child-link { margin: 12px 0; }
.welcome-body { display: block; place-items: normal; padding: 0; }
.welcome-header { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 40px; background: var(--surface); border-bottom: 1px solid var(--line); }
.welcome-main { width: min(100%, 1240px); margin: 0 auto; padding: 76px 40px; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 64px; border: 0; border-radius: 0; background: transparent; }
.welcome-intro h1 { font-size: clamp(38px, 4vw, 58px); margin: 22px 0; }
.welcome-steps { padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.welcome-steps h2 { margin: 0 0 26px; font-size: 25px; }
.welcome-steps article { display: flex; align-items: flex-start; gap: 16px; margin-top: 24px; }
.welcome-steps h3 { margin: 0 0 8px; font-size: 17px; }
.welcome-steps p { margin: 0; font-size: 14px; }
@media (max-width: 1150px) and (min-width: 901px) {
  .dashboard-topline { gap: 10px; padding: 12px 20px; }
  .dashboard-brand { min-width: 120px; font-size: 17px; }
  .dashboard-menu { gap: 0; }
  .dashboard-menu a { padding: 0 9px; font-size: 13px; }
  .header-add { padding: 12px; font-size: 13px; }
  .strip-block { padding: 0 18px; gap: 12px; }
  .strip-icon { width: 52px; height: 52px; }
  .strip-block .strip-balance { font-size: 28px; }
  .task-submitted { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .task-submitted > form { grid-column: 2; grid-row: 3; }
  .task-submitted > details { grid-column: 3; grid-row: 3; }
  .task-symbol { width: 48px; }
  .board-heading h3 { font-size: 21px; }
}
@media (max-width: 900px) {
  body { padding: 18px 12px; }
  main { padding: 26px 22px; }
  .dashboard-body, .welcome-body { padding: 0; }
  .dashboard-topline { min-height: 82px; padding: 12px 18px; gap: 10px; flex-wrap: wrap; }
  .dashboard-brand { max-width: none; min-width: 0; flex: 1; font-size: 18px; gap: 10px; }
  .dashboard-brand small { font-size: 14px; }
  .initial-avatar { width: 48px; height: 48px; font-size: 23px; }
  .brand-mark { width: 38px; height: 38px; }
  .dashboard-account { gap: 0; margin-left: 0; }
  .dashboard-account button { padding: 8px; font-size: 12px; }
  .header-add { display: none; }
  .menu-toggle { display: grid; place-items: center; width: 40px; min-height: 40px; padding: 8px; border-radius: 9px; background: transparent; color: var(--teal); }
  .menu-toggle:hover { background: #e4efeb; }
  .menu-toggle span { font-size: 25px; }
  .dashboard-menu { order: 4; flex: 0 0 100%; display: none; flex-direction: column; align-items: stretch; gap: 4px; padding-top: 8px; }
  .dashboard-header.menu-open .dashboard-menu { display: flex; }
  .dashboard-menu a { min-height: 44px; padding: 12px; border-radius: 9px; }
  .dashboard-menu a[aria-current] { background: var(--teal-soft); }
  .dashboard-menu a[aria-current]::after { display: none; }
  .dashboard-main { padding: 18px 16px 30px; }
  .dashboard-section { padding: 20px 16px; border-radius: 13px; }
  .board-section, .family-overview { padding: 0; }
  .family-strip { grid-template-columns: 1fr; padding: 0; margin-top: 20px; }
  .strip-block { padding: 16px; gap: 16px; }
  .strip-block + .strip-block { border-left: 0; border-top: 1px solid var(--line); }
  .strip-icon { width: 48px; height: 48px; }
  .strip-icon .ui-picture { width: 44px; height: 44px; }
  .strip-block .strip-balance { font-size: 28px; }
  .strip-balance span { font-size: 18px; }
  .grade-paper { width: 30px; height: 38px; font-size: 21px; }
  .overview-board, .task-board { grid-template-columns: 1fr; gap: 16px; }
  .board-column { padding: 18px; }
  .task-board .board-column { padding: 0; border: 0; background: transparent; }
  .task-board .board-heading { display: none; }
  .board-column:not(.board-completed) { min-height: 0; }
  .board-completed { grid-column: auto; }
  .empty-completed { display: block; }
  .board-heading { margin-bottom: 18px; }
  .board-heading h3 { font-size: 21px; }
  .board-filters { display: flex; gap: 0; margin: 0 0 18px; border-bottom: 1px solid var(--line); }
  .board-filter { flex: 1; min-width: 0; gap: 5px; min-height: 46px; padding: 9px 2px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; color: var(--muted); font-size: 13px; font-weight: 500; white-space: nowrap; }
  .board-filter:hover { background: var(--surface); }
  .board-filter[aria-pressed="true"] { color: var(--teal); border-bottom-color: var(--teal); background: transparent; font-weight: 700; }
  .board-filter .count-badge { min-width: 22px; height: 22px; padding: 2px 5px; font-size: 12px; }
  .task-card { padding: 14px; column-gap: 12px; min-height: 106px; grid-template-columns: 52px minmax(0, 1fr) auto; }
  .task-card h3 { font-size: 16px; }
  .task-symbol { width: 52px; height: 62px; }
  .ui-picture { width: 48px; height: 48px; }
  .task-meta strong { font-size: 13px; }
  .reward-coin { margin-right: 3px; }
  .reward-coin .ui-icon { width: 18px; height: 18px; }
  .task-submitted > form { grid-column: 2; grid-row: 3; margin-top: 6px; }
  .task-submitted > details { grid-column: 3; grid-row: 3; margin-top: 6px; }
  .preview-task { padding: 14px; min-height: 106px; gap: 12px; }
  .preview-task strong { font-size: 16px; }
  .board-heading a { font-size: 12px; }
  .mobile-add { display: flex; width: 100%; min-height: 50px; margin-top: 18px; font-size: 16px; font-weight: 500; }
  .rules-grid { gap: 12px; }
  .grade-award { float: none; display: block; margin-top: 8px; }
  .welcome-header { padding: 18px 16px; }
  .welcome-main { display: block; padding: 36px 20px; }
  .welcome-intro h1 { font-size: 39px; }
  .welcome-steps { padding: 24px; margin-top: 36px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
.profile-avatar { display:block; width:58px; height:58px; object-fit:contain; border-radius:50%; background:#f9e5d6; border:3px solid var(--surface); flex-shrink:0; }
@media(max-width:900px) { .profile-avatar { width:48px; height:48px; } }
.grade-award.negative { color:#a53c50; }

/* Approved20 illustrated rewards. Atlas uses measured row bounds, not an assumed uniform grid. */
.reward-picture {display:block;width:80px;height:80px;flex:none;background-image:url("/assets/rewards/reward-icons-v1.png");background-repeat:no-repeat;}
.reward-picture-toys {background-size:500.71429% 400.71429%;background-position:0.00000% 4.15677%;}
.reward-picture-boardgames {background-size:500.71429% 400.71429%;background-position:24.95544% 4.15677%;}
.reward-picture-videogames {background-size:500.71429% 400.71429%;background-position:49.91087% 4.15677%;}
.reward-picture-books {background-size:519.25926% 400.71429%;background-position:74.20495% 4.15677%;}
.reward-picture-cinema {background-size:480.13699% 400.71429%;background-position:100.00000% 4.15677%;}
.reward-picture-sweets {background-size:500.71429% 431.53846%;background-position:0.00000% 36.54292%;}
.reward-picture-food {background-size:500.71429% 431.53846%;background-position:24.95544% 36.54292%;}
.reward-picture-walks {background-size:500.71429% 431.53846%;background-position:49.91087% 36.54292%;}
.reward-picture-entertainment {background-size:519.25926% 431.53846%;background-position:74.20495% 36.54292%;}
.reward-picture-travel {background-size:480.13699% 431.53846%;background-position:100.00000% 36.54292%;}
.reward-picture-sports {background-size:500.71429% 448.80000%;background-position:0.00000% 65.94037%;}
.reward-picture-creative {background-size:500.71429% 448.80000%;background-position:24.95544% 65.94037%;}
.reward-picture-clothes {background-size:500.71429% 448.80000%;background-position:49.91087% 65.94037%;}
.reward-picture-gadgets {background-size:519.25926% 448.80000%;background-position:74.20495% 65.94037%;}
.reward-picture-smartphone {background-size:480.13699% 448.80000%;background-position:100.00000% 65.94037%;}
.reward-picture-computer {background-size:500.71429% 377.77778%;background-position:0.00000% 100.00000%;}
.reward-picture-together {background-size:500.71429% 377.77778%;background-position:24.95544% 100.00000%;}
.reward-picture-pocket-money {background-size:500.71429% 377.77778%;background-position:49.91087% 100.00000%;}
.reward-picture-bank-card {background-size:519.25926% 377.77778%;background-position:74.20495% 100.00000%;}
.reward-picture-gift {background-size:480.13699% 377.77778%;background-position:100.00000% 100.00000%;}
.reward-picture-food {background-size:539.23077% 431.53846%;background-position:26.26970% 36.54292%;}
.reward-picture-together {background-size:596.59574% 423.39623%;background-position:27.42074% 96.26604%;}
.reward-picture-pocket-money {background-size:572.24490% 377.77778%;background-position:50.12965% 100.00000%;}
.reward-art .reward-picture {width:64px;height:64px;}
.reward-icon-picker {min-width:0;margin:4px 0;padding:12px;border:1px solid var(--line);border-radius:10px;}
.reward-icon-picker legend {font-size:14px;font-weight:650;padding:0 6px;}
.reward-icon-auto {display:flex;align-items:center;gap:8px;font-size:13px;}
.reward-icon-picker input[type=radio] {width:16px;height:16px;min-height:16px;flex:none;accent-color:var(--teal);}
.reward-icon-picker details {margin-top:4px;}
.reward-icon-picker summary {padding:8px 0;font-size:13px;}
.reward-icon-options {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;}
.reward-icon-option {position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;padding:6px 3px;border:2px solid transparent;border-radius:8px;background:var(--soft);cursor:pointer;min-width:0;}
.reward-icon-option input {position:absolute;top:3px;left:3px;z-index:1;}
.reward-icon-option .reward-picture {pointer-events:none;}
.task-icon-picker .task-picture {width:36px;height:36px;pointer-events:none;}
@media(max-width:600px){.task-icon-picker .task-picture {width:32px;height:32px;}}
.reward-icon-option .reward-picture {width:36px;height:36px;}
.reward-icon-option > span:last-child {font-size:10px;line-height:1.3;text-align:center;overflow-wrap:anywhere;font-weight:400;}
.reward-icon-option:has(input:checked) {border-color:var(--teal);background:var(--teal-soft);}
.reward-icon-option:has(input:focus-visible) {outline:3px solid #ad6e30;outline-offset:2px;}
@media(max-width:600px){.reward-icon-options {grid-template-columns:repeat(4,minmax(0,1fr));}.reward-icon-picker {padding:8px;}.reward-icon-option .reward-picture {width:32px;height:32px;}}
.child-dashboard .goal-card > .wish-goal-art {float:right;margin:0 0 10px 14px}.exchange-card > .request-art {float:left;margin:0 16px 10px 0}.exchange-card > .request-art .reward-picture {width:64px;height:64px}.exchange-card > form {clear:both}

/* Keep the measured source aspect ratio inside every square icon slot. */
.reward-picture {position:relative;background-image:none;}
.reward-picture::before {content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:var(--reward-image-width,100%);height:var(--reward-image-height,100%);background-image:url("/assets/rewards/reward-icons-v1.png");background-repeat:no-repeat;background-size:inherit;background-position:inherit;pointer-events:none;}
.reward-picture-toys {--reward-image-width:100.000000%;--reward-image-height:100.000000%;}
.reward-picture-boardgames {--reward-image-width:100.000000%;--reward-image-height:100.000000%;}
.reward-picture-videogames {--reward-image-width:100.000000%;--reward-image-height:100.000000%;}
.reward-picture-books {--reward-image-width:96.428571%;--reward-image-height:100.000000%;}
.reward-picture-cinema {--reward-image-width:100.000000%;--reward-image-height:95.890411%;}
.reward-picture-sweets {--reward-image-width:100.000000%;--reward-image-height:92.857143%;}
.reward-picture-food {--reward-image-width:100.000000%;--reward-image-height:100.000000%;}
.reward-picture-walks {--reward-image-width:100.000000%;--reward-image-height:92.857143%;}
.reward-picture-entertainment {--reward-image-width:100.000000%;--reward-image-height:96.296296%;}
.reward-picture-travel {--reward-image-width:100.000000%;--reward-image-height:89.041096%;}
.reward-picture-sports {--reward-image-width:100.000000%;--reward-image-height:89.285714%;}
.reward-picture-creative {--reward-image-width:100.000000%;--reward-image-height:89.285714%;}
.reward-picture-clothes {--reward-image-width:100.000000%;--reward-image-height:89.285714%;}
.reward-picture-gadgets {--reward-image-width:100.000000%;--reward-image-height:92.592593%;}
.reward-picture-smartphone {--reward-image-width:100.000000%;--reward-image-height:85.616438%;}
.reward-picture-computer {--reward-image-width:94.276094%;--reward-image-height:100.000000%;}
.reward-picture-together {--reward-image-width:88.679245%;--reward-image-height:100.000000%;}
.reward-picture-pocket-money {--reward-image-width:82.491582%;--reward-image-height:100.000000%;}
.reward-picture-bank-card {--reward-image-width:90.909091%;--reward-image-height:100.000000%;}
.reward-picture-gift {--reward-image-width:98.316498%;--reward-image-height:100.000000%;}

/*20 household tasks; contain each measured atlas rectangle without distortion. */
.task-picture {display:block;position:relative;flex:none;width:56px;height:56px;}
.task-picture::before {content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:var(--task-image-width);height:var(--task-image-height);background-image:url("/assets/tasks/task-icons-v1.png");background-repeat:no-repeat;background-size:var(--task-image-size);background-position:var(--task-image-position);pointer-events:none;}
.task-symbol .task-picture {width:100%;height:100%;}.row-icon .task-picture {width:64px;height:64px;}
.task-picture-bed {--task-image-width:94.915254%;--task-image-height:100.000000%;--task-image-size:500.714286% 380.338983%;--task-image-position:0.000000% 3.022975%;}
.task-picture-toys {--task-image-width:84.745763%;--task-image-height:100.000000%;--task-image-size:560.800000% 380.338983%;--task-image-position:26.475694% 3.022975%;}
.task-picture-tidy {--task-image-width:91.525424%;--task-image-height:100.000000%;--task-image-size:519.259259% 380.338983%;--task-image-position:49.469965% 3.022975%;}
.task-picture-dust {--task-image-width:94.915254%;--task-image-height:100.000000%;--task-image-size:500.714286% 380.338983%;--task-image-position:73.975045% 3.022975%;}
.task-picture-vacuum {--task-image-width:92.203390%;--task-image-height:100.000000%;--task-image-size:515.441176% 380.338983%;--task-image-position:100.000000% 3.022975%;}
.task-picture-mop {--task-image-width:100.000000%;--task-image-height:98.214286%;--task-image-size:500.714286% 408.000000%;--task-image-position:0.000000% 37.780401%;}
.task-picture-dishes {--task-image-width:100.000000%;--task-image-height:98.214286%;--task-image-size:500.714286% 408.000000%;--task-image-position:24.955437% 37.780401%;}
.task-picture-dishwasher {--task-image-width:98.181818%;--task-image-height:100.000000%;--task-image-size:519.259259% 408.000000%;--task-image-position:49.469965% 37.780401%;}
.task-picture-trash {--task-image-width:100.000000%;--task-image-height:98.214286%;--task-image-size:500.714286% 408.000000%;--task-image-position:73.975045% 37.780401%;}
.task-picture-plants {--task-image-width:100.000000%;--task-image-height:94.178082%;--task-image-size:480.136986% 408.000000%;--task-image-position:100.000000% 37.780401%;}
.task-picture-feed-pet {--task-image-width:100.000000%;--task-image-height:91.071429%;--task-image-size:500.714286% 440.000000%;--task-image-position:0.000000% 68.627451%;}
.task-picture-walk-dog {--task-image-width:100.000000%;--task-image-height:91.071429%;--task-image-size:500.714286% 440.000000%;--task-image-position:24.955437% 68.627451%;}
.task-picture-fold-clothes {--task-image-width:100.000000%;--task-image-height:94.444444%;--task-image-size:519.259259% 440.000000%;--task-image-position:49.469965% 68.627451%;}
.task-picture-laundry {--task-image-width:100.000000%;--task-image-height:91.071429%;--task-image-size:500.714286% 440.000000%;--task-image-position:73.975045% 68.627451%;}
.task-picture-backpack {--task-image-width:100.000000%;--task-image-height:87.328767%;--task-image-size:480.136986% 440.000000%;--task-image-position:100.000000% 68.627451%;}
.task-picture-homework {--task-image-width:100.000000%;--task-image-height:97.142857%;--task-image-size:500.714286% 412.500000%;--task-image-position:0.000000% 100.000000%;}
.task-picture-read {--task-image-width:100.000000%;--task-image-height:97.142857%;--task-image-size:500.714286% 412.500000%;--task-image-position:24.955437% 100.000000%;}
.task-picture-cook {--task-image-width:99.264706%;--task-image-height:100.000000%;--task-image-size:519.259259% 412.500000%;--task-image-position:49.469965% 100.000000%;}
.task-picture-table {--task-image-width:100.000000%;--task-image-height:97.142857%;--task-image-size:500.714286% 412.500000%;--task-image-position:73.975045% 100.000000%;}
.task-picture-help {--task-image-width:100.000000%;--task-image-height:93.150685%;--task-image-size:480.136986% 412.500000%;--task-image-position:100.000000% 100.000000%;}
.ledger-icon .task-picture,.child-history-icon .task-picture {width:24px;height:24px;}
.task-symbol .task-picture {height:auto;aspect-ratio:1;align-self:center;}
.demo-record .task-picture {display:inline-block;width:24px;height:24px;vertical-align:middle;margin-right:6px;}
