:root{font-family:'DM Sans','Noto Sans JP',-apple-system,BlinkMacSystemFont,sans-serif;color:#202b28;background:#f5f6f3;font-synthesis:none;--ink:#202b28;--muted:#77847d;--green:#317b63;--pale:#e8f1eb;--line:#e7ece7;--shadow:0 4px 18px rgba(36,57,47,.045)}
*{box-sizing:border-box}body{margin:0;min-width:320px;background:#f5f6f3}.app-shell{width:100%;max-width:480px;min-height:100svh;margin:auto;padding:0 22px 98px;position:relative;background:#f5f6f3}.topbar{height:70px;display:flex;align-items:center;justify-content:space-between;gap:10px}.brand{display:flex;gap:8px;align-items:center;font-size:17px;font-weight:700;letter-spacing:.02em;color:var(--ink);text-decoration:none;white-space:nowrap}.brand-mark{width:28px;height:28px;border-radius:9px}.brand small{font-size:11px;color:var(--muted);letter-spacing:0}.learner-picker select{max-width:150px;padding:8px 27px 8px 11px;border:1px solid #e1e8e2;border-radius:20px;background:#fff;color:var(--ink);font:600 13px system-ui,sans-serif}
h1{font-size:25px;line-height:1.35;letter-spacing:-.04em;margin:0;font-weight:700}h2{font-size:16px;margin:0;font-weight:700;letter-spacing:-.02em}.eyebrow{font-size:11px;letter-spacing:.1em;color:var(--muted);font-weight:700}.greeting{margin:14px 0 4px;font-size:13px;color:var(--muted)}.date{margin-top:5px;color:var(--muted);font-size:12px}.page-title{margin:17px 0}.page-title h1{font-size:24px}
.card{padding:18px;border-radius:18px;background:#fff;box-shadow:var(--shadow);margin:12px 0}.hero{padding:20px;border-radius:20px;background:#fff;box-shadow:var(--shadow);margin-top:18px}.hero h2{margin-top:8px;font-size:19px}.hero p,.card p{font-size:14px;line-height:1.7;color:#617068;margin:8px 0}.stats{display:grid;grid-template-columns:repeat(3,1fr);margin:13px 0 22px;padding:14px 0;background:#fff;border-radius:16px;box-shadow:var(--shadow)}.stat{text-align:center;border-right:1px solid var(--line)}.stat:last-child{border:0}.stat strong{font-size:17px;display:block}.stat strong small{font-size:11px}.stat span{font-size:11px;color:var(--muted)}
.primary-button,.secondary-button{width:100%;min-height:54px;padding:13px 15px;border:0;border-radius:13px;font-family:inherit;font-size:15px;font-weight:700;cursor:pointer}.primary-button{background:var(--green);color:#fff}.secondary-button{background:#edf3ee;color:var(--green)}.primary-button:disabled{opacity:.48;cursor:default}.notice{padding:15px;border:1px solid #e4ebe5;border-radius:14px;background:#f9fbf9;color:#53635a;font-size:13px;line-height:1.65}.subtle{font-size:12px;line-height:1.7;color:var(--muted)}.empty-state{padding:22px 17px;text-align:center}.empty-state .empty-icon{font-size:26px;color:var(--green);margin-bottom:8px}.empty-state h2{font-size:16px}.empty-state p{margin:8px 0 0}
.quiz-progress{display:flex;justify-content:space-between;align-items:center;margin:10px 1px;color:var(--green);font-size:14px;font-weight:700}.quiz-track{height:4px;border-radius:4px;background:#e5ebe6;overflow:hidden}.quiz-track span{display:block;height:100%;background:var(--green)}.quiz-card{margin:16px 0 12px;padding:18px;border-radius:18px;background:#fff;box-shadow:var(--shadow);min-height:130px;display:flex;justify-content:center;flex-direction:column}.quiz-card .prompt{font-size:24px;line-height:1.5;overflow-wrap:anywhere}.choice-list{display:grid;gap:9px}.choice-button{width:100%;min-height:58px;display:grid;grid-template-columns:36px 1fr;gap:11px;align-items:center;padding:10px 13px;border:1px solid #e4eae5;border-radius:14px;background:#fff;text-align:left;color:var(--ink);font-family:inherit;font-size:18px;font-weight:600;line-height:1.45;cursor:pointer}.choice-button .letter{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#edf4ef;color:var(--green);font-size:13px}.choice-button:disabled{opacity:1}.choice-button.correct{border-color:#82b39a;background:#edf5ef}.choice-button.wrong{border-color:#d29a82;background:#fbf1ed}.feedback{margin-top:13px;padding-top:12px;border-top:1px solid var(--line)}.feedback strong{font-size:20px}.feedback.correct strong{color:var(--green)}.feedback.incorrect strong{color:#a55f43}.feedback-answer{margin-top:8px;padding:11px 12px;border-radius:11px;background:#f5f6f3;font-size:17px;line-height:1.5;overflow-wrap:anywhere}.feedback p{font-size:15px;line-height:1.65;color:#56645d}.result-score{font-size:42px;color:var(--green);font-weight:700;text-align:center}.result-score small{font-size:16px;color:var(--ink)}
.profile-card{display:flex;align-items:center;gap:12px;padding:14px;background:#fff;border-radius:15px;margin:9px 0}.avatar{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#f3e8dc;color:#9d6c3d}.profile-card .details{flex:1;min-width:0}.profile-card strong,.profile-card small{display:block}.profile-card small{font-size:11px;color:var(--muted);margin-top:3px}.profile-card button{margin-left:auto;border:0;background:var(--pale);color:var(--green);border-radius:18px;padding:8px 11px;font:600 12px system-ui,sans-serif}
.form-field{display:grid;gap:6px;margin:12px 0}.form-field label{font-size:13px;font-weight:600}.form-field input,.form-field select{width:100%;min-height:46px;padding:10px 12px;border:1px solid #dfe7e0;border-radius:11px;background:#fff;font:16px system-ui,sans-serif;color:var(--ink)}.button-row{display:flex;gap:9px;margin-top:12px}.button-row>*{flex:1}.detail-row{display:flex;justify-content:space-between;padding:13px 4px;border-bottom:1px solid var(--line);font-size:13px}.detail-row:last-child{border:0}.back-button{border:0;background:none;padding:7px 0;color:var(--green);font:600 13px system-ui,sans-serif;cursor:pointer}
.tabbar{position:fixed;z-index:5;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,480px);padding:9px 24px calc(10px + env(safe-area-inset-bottom));background:rgba(255,255,255,.95);backdrop-filter:blur(18px);border-top:1px solid var(--line);display:flex;justify-content:space-around}.tab{border:0;background:none;display:flex;flex-direction:column;align-items:center;gap:3px;color:#87928c;font-family:inherit;font-size:11px;font-weight:500;cursor:pointer;min-width:65px}.tab.active{color:var(--green);font-weight:700}.tab-icon{font-size:21px;line-height:1.2}.toast{position:fixed;bottom:82px;left:50%;transform:translate(-50%,12px);opacity:0;pointer-events:none;background:#25352e;color:#fff;padding:10px 16px;border-radius:22px;font-size:12px;transition:.2s;z-index:10;max-width:90vw}.toast.show{opacity:1;transform:translate(-50%,0)}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:360px){.app-shell{padding-left:16px;padding-right:16px}.brand{font-size:15px}.learner-picker select{max-width:126px}.quiz-card .prompt{font-size:22px}}
@media(min-width:600px){body{padding:24px 0}.app-shell{min-height:calc(100svh - 48px);border-radius:28px;box-shadow:0 10px 50px #263d3010}.tabbar{bottom:24px;border-radius:0 0 28px 28px}}
.review-shortcut{margin-top:10px}.mastery-card{padding-bottom:20px}.mastery-row{margin-top:13px}.mastery-label{display:flex;align-items:center;gap:8px;color:#53635a;font-size:13px}.mastery-label strong{margin-left:auto;color:var(--ink);font-size:13px}.mastery-dot{width:10px;height:10px;border-radius:50%;flex:none}.mastery-track{height:5px;margin-top:6px;border-radius:6px;background:#edf0ed;overflow:hidden}.mastery-track span{display:block;height:100%;border-radius:inherit;transition:width .2s}

/* App completion: compact daily dashboard and readable learning records. */
.app-shell{padding-bottom:calc(98px + env(safe-area-inset-bottom))}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.section-heading>div:first-child{min-width:0}.text-link{border:0;background:none;color:var(--green);font:600 12px system-ui,sans-serif;padding:8px 0;cursor:pointer}.home-stats{margin:14px 0 10px}.today-note{margin:0 2px 10px;color:var(--muted);font-size:12px}.home-mastery{padding:15px}.stage-pills{display:flex;flex-wrap:wrap;gap:7px;margin-top:11px}.stage-pill{display:inline-flex;align-items:center;gap:5px;padding:6px 8px;border-radius:20px;background:#f5f7f4;color:#58655e;font-size:10px;white-space:nowrap}.stage-pill i{width:8px;height:8px;border-radius:50%}.stage-pill b{color:var(--ink);font-size:10px}.content-status{text-align:center;font-size:11px;color:var(--muted);margin:10px 0}.record-total{display:block;font-size:32px;line-height:1.2;color:var(--green);margin-top:5px}.record-total small{font-size:14px;margin-left:4px}.record-rate{font-size:24px;font-weight:700;color:var(--green);text-align:right}.record-rate small{display:block;font-size:11px;color:var(--muted);font-weight:500}.week-chart{height:108px;margin:17px 0 2px;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:9px;align-items:end}.day-column{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:5px;color:var(--muted);font-size:10px}.day-column strong{font-size:10px;color:#59665f;font-weight:500}.day-bar{height:64px;width:100%;max-width:22px;display:flex;align-items:flex-end;overflow:hidden;border-radius:9px;background:#f0f3ef}.day-bar i{display:block;width:100%;min-height:0;border-radius:9px;background:var(--green)}.day-column small{font-size:10px}.row-date{display:block;margin-top:3px;color:var(--muted);font-size:10px}.answer-mark{font-size:11px;white-space:nowrap}.is-correct{color:#398568}.is-wrong{color:#D97757}.compact-title{margin:18px 0 8px}.compact-title h2{font-size:18px}.family-card{padding:15px;margin:10px 0;border:1px solid var(--line);border-radius:15px;background:#fbfcfa}.family-card .section-heading>div{display:grid;grid-template-columns:38px 1fr;align-items:center;column-gap:9px;min-width:0}.family-card .avatar{grid-row:span 2}.family-card .section-heading strong{font-size:14px}.family-card .section-heading small{grid-column:2;color:var(--muted);font-size:10px}.family-card button{flex:none;padding:8px 10px;border:0;border-radius:18px;background:var(--pale);color:var(--green);font:600 11px system-ui,sans-serif}.family-stats{display:flex;justify-content:space-between;gap:4px;margin-top:13px;padding-top:11px;border-top:1px solid var(--line);color:var(--muted);font-size:11px}.family-stats b{display:block;margin-top:3px;color:var(--ink);font-size:13px}.empty-state{margin-top:16px}
@media(max-width:390px){.app-shell{padding-left:18px;padding-right:18px}.hero{padding:17px}.hero h2{font-size:18px}.home-stats{margin-top:11px}.week-chart{gap:6px}.stage-pills{gap:5px}.stage-pill{font-size:9px;padding:6px 7px}.family-card{padding:12px}.family-stats{font-size:10px}}
.family-mastery{margin-top:11px}.family-mastery>span{font-size:11px;color:var(--muted)}.family-mastery .stage-pills{margin-top:6px}.family-weak{margin:10px 0 0!important;padding-top:9px;border-top:1px solid var(--line);font-size:11px!important}.family-weak strong{color:#59665f}
.preview-ribbon{margin:10px 0 8px;padding:8px 11px;border-radius:10px;background:#fff4df;color:#815f20;font-size:11px;font-weight:700;text-align:center}.sample-control{display:grid;gap:6px;margin:-6px 0 12px}.sample-control small{color:var(--muted);font-size:10px;line-height:1.45;text-align:center}.sample-control .secondary-button{min-height:44px;font-size:13px}
.wanted-toggle{min-width:104px;min-height:44px;padding:8px 5px;text-align:center;white-space:nowrap}.wanted-row{align-items:center;gap:8px}.wanted-search .form-field{margin-bottom:0}.wanted-hint{padding:0 4px 8px}.wanted-results .section-heading{margin-bottom:4px}.result-review-button{margin-top:6px}.feedback-answer{display:grid;gap:4px}
.home-hero{margin:12px 0 10px;padding:17px}.home-practice-line{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:7px 0 13px}.home-practice-line>div{min-width:0}.home-practice-line h2{font-size:18px;line-height:1.4}.home-practice-line p{margin:4px 0 0;font-size:12px;line-height:1.5}.home-today-total{flex:none;color:var(--green);font-size:28px;line-height:1}.home-today-total small{margin-left:3px;font-size:12px}.home-actions{display:grid;gap:8px;margin:10px 0 14px}.home-actions .secondary-button{min-height:48px;display:flex;align-items:center;justify-content:space-between;text-align:left;font-size:14px}.home-actions .secondary-button span{font-size:12px;font-weight:600;opacity:.8}.week-insights{display:flex;gap:8px;margin-top:12px}.week-insights span{flex:1;padding:9px 11px;border-radius:11px;background:#f5f7f4;color:var(--muted);font-size:11px}.week-insights b{float:right;color:var(--ink);font-size:13px}
.wanted-home-cta{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:60px;margin:12px 0;padding:10px 15px;text-align:left;background:#edf3ee}.wanted-home-cta span{display:grid;gap:2px}.wanted-home-cta strong{font-size:15px}.wanted-home-cta small{font-size:11px;font-weight:500;color:var(--muted)}.wanted-home-cta>b{flex:none;font-size:13px;color:var(--green)}
.question-wanted{display:grid;justify-items:center;gap:3px;margin-top:16px}
.question-wanted>span{font-size:11px;line-height:1.25;color:var(--muted)}
.question-wanted-toggle{display:inline-flex;align-items:center;justify-content:center;min-height:44px;max-width:100%;padding:6px 15px;border:1px solid #ecd9ae;border-radius:999px;background:#fff4db;color:#69470d;font:600 13px system-ui,sans-serif;cursor:pointer}
.question-wanted-toggle.is-saved{background:#fae8bf;border-color:#d9bc7d}
.question-wanted.after-correct{margin-top:10px;text-align:center}
.question-wanted.after-correct>span{color:#69470d;font-weight:600}
.after-correct .question-wanted-toggle{background:#f8d487;border-color:#d39b37;color:#563500}
.after-correct .question-wanted-toggle.is-saved{background:#efc36e;border-color:#bb872b}
.review-return-link{display:block;min-height:44px;margin:0 0 8px;padding:8px 0;border:0;background:none;color:var(--green);font:600 13px system-ui,sans-serif;text-align:left;cursor:pointer}
