/* Registration stays below content in normal flow, never over task actions. */
.icp-footer {position:static;text-align:center;padding:12px 16px calc(12px + env(safe-area-inset-bottom, 0px));color:var(--purple-dark);font-size:14px;line-height:1.5;}
.icp-footer a {display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;padding:10px 12px;color:inherit;text-decoration:underline;text-underline-offset:3px;touch-action:manipulation;overflow-wrap:anywhere;max-width:100%;}
.icp-footer a:focus-visible {outline:3px solid var(--purple-dark);outline-offset:3px;border-radius:6px;}

:root {
  --bg: #f7f4ff;
  --ink: #34334e;
  --muted: #82809b;
  --purple: #8974d5;
  --purple-dark: #6652b2;
  --lavender: #eeebff;
  --pink: #ffe9f1;
  --pink-ink: #d86791;
  --mint: #e1f8ee;
  --mint-ink: #379d7c;
  --blue: #e7f4ff;
  --blue-ink: #5394d0;
  --gold: #f6c75d;
  --line: #ebe8f1;
  --shadow: 0 18px 50px rgba(112, 94, 154, .09);
}
* {box-sizing: border-box}
html,body {min-height:100%;margin:0}
body {font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;background:var(--bg);color:var(--ink);-webkit-tap-highlight-color:transparent}
button,input,textarea,select {font:inherit}
button {cursor:pointer;touch-action:manipulation}
button:disabled {cursor:not-allowed;opacity:.56}
button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible {outline:4px solid #b7a8ff;outline-offset:3px}
::selection {background:#e0d8ff}
.app-shell {display:flex;min-height:100vh;background:radial-gradient(circle at 75% 0%,#fff8fd 0%,transparent 38%),#f8f6ff}
.sidebar {width:248px;min-width:248px;background:rgba(255,255,255,.9);border-right:1px solid #eeeaf6;position:sticky;top:0;height:100vh;display:flex;flex-direction:column;padding:32px 22px;z-index:3}
/* Keep lower navigation reachable in short landscape viewports. */
@media (min-width:801px) {.sidebar{overflow-y:auto}}
.logo {display:flex;align-items:center;gap:11px;text-decoration:none;color:var(--ink);margin-bottom:49px}
.logo-mark {height:45px;width:45px;border-radius:17px;background:linear-gradient(150deg,#ddcfff,#faf0ff);display:grid;place-items:center;font-size:25px;box-shadow:inset 0 0 0 1px #e5dafa}
.logo-copy strong {display:block;font-size:20px;line-height:1.25;letter-spacing:-.5px}
.logo-copy small {display:block;font-size:11px;color:#9b94ae;letter-spacing:1.3px;margin-top:4px}
.nav-section {font-size:12px;letter-spacing:2px;color:#aaa4b8;font-weight:750;margin:5px 15px 13px}
.nav {display:grid;gap:9px}
.nav-btn {width:100%;border:0;background:transparent;border-radius:17px;display:flex;align-items:center;gap:15px;text-align:left;color:#79758e;padding:16px 17px;min-height:60px;font-size:16px;font-weight:700;transition:.15s ease}
.nav-btn .nav-icon {font-size:21px;line-height:1;display:grid;place-items:center;width:29px;height:29px}
.nav-btn.active {background:#efeaff;color:#755bc4;box-shadow:0 8px 19px rgba(133,111,207,.08)}
.nav-btn:hover {background:#f4efff;transform:translateX(2px)}
.nav-btn .little-lock {margin-left:auto;font-size:14px;opacity:.75}
.side-spacer {flex:1}
.sidebar-bottom {border-radius:19px;background:linear-gradient(140deg,#f7efff,#f2faff);padding:16px;font-size:12px;color:#756c92;line-height:1.55}
.sidebar-bottom strong {display:block;font-size:14px;color:#615a80;margin-bottom:5px}
.sidebar-bottom .sparkle {font-size:22px;float:right}
.demo-pill {padding:8px 11px;color:#8f80ad;background:#f3efff;border:1px solid #e7defb;border-radius:99px;font-size:12px;font-weight:800;letter-spacing:.2px;white-space:nowrap}
.main {min-width:0;flex:1;padding:27px clamp(24px,4.5vw,72px) 46px;max-width:1650px;margin:0 auto;width:100%}
.topbar {display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px;min-height:46px}
.topbar-left {display:flex;align-items:center;gap:15px;flex-wrap:wrap}
.date {font-size:15px;color:#88819c;font-weight:700}
.topbar-right {display:flex;align-items:center;gap:13px}
.upload-shortcut {border:0;border-radius:17px;background:linear-gradient(120deg,#9078db,#755dc6);color:white;box-shadow:0 9px 24px #a393dc55;min-height:56px;padding:12px 21px;font-weight:900;font-size:17px;white-space:nowrap;display:flex;align-items:center;justify-content:center;gap:8px;transition:transform .16s,box-shadow .16s}
.upload-shortcut:hover {transform:translateY(-2px);box-shadow:0 13px 28px #a393dc70}
.upload-shortcut .upload-lock {font-size:12px;background:#ffffff2f;padding:4px;border-radius:8px}
.back-home {display:flex;gap:8px;align-items:center;border:0;background:#fff;padding:13px 19px;border-radius:13px;color:#786b9f;font-weight:800;box-shadow:0 3px 13px rgba(90,69,130,.05)}
.back-home:hover {background:#f2edff}
.avatar-circle {height:42px;width:42px;display:grid;place-items:center;background:linear-gradient(135deg,#fff2c9,#ffe9fc);border-radius:50%;font-size:20px}
.view {animation:fade-in .32s ease both}
@keyframes fade-in {from {opacity:.3;transform:translateY(7px)}to {opacity:1;transform:translateY(0)}}
@keyframes star-pop {0%{transform:translateY(6px) scale(.2);opacity:0}45%{opacity:1}100%{transform:translateY(-85px) scale(1.4);opacity:0}}
.view-heading {font-size:30px;letter-spacing:-.7px;font-weight:900;margin:0 0 9px}
.view-subtitle {font-size:15px;color:#908ba3;margin:0 0 24px}
.hero {background:linear-gradient(111deg,#ede8ff 4%,#f7eafe 52%,#fff0ef 100%);border:1px solid #f0e8fb;min-height:283px;border-radius:33px;position:relative;overflow:hidden;box-shadow:var(--shadow);padding:37px 40px;margin-bottom:32px}
.hero::after {content:"";position:absolute;width:340px;height:340px;background:radial-gradient(circle,#ffffff95,transparent 70%);right:62px;top:-100px;border-radius:50%}
.hero .hero-copy {position:relative;z-index:2;width:68%}
.eyebrow {display:inline-flex;align-items:center;gap:8px;padding:8px 13px;background:#ffffffaa;border:1px solid #ffffffdb;border-radius:99px;color:#8468bf;font-size:13px;font-weight:900}
.hero h1 {font-size:clamp(32px,3.5vw,49px);font-weight:950;letter-spacing:-1.5px;line-height:1.25;margin:16px 0 10px;color:#514678}
.hero h1 span {color:#bc77bd}
.hero p {margin:0 0 24px;color:#766c93;font-size:21px;line-height:1.6;font-weight:650}
.hero-mini {display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.hero-count,.hero-stars {display:flex;align-items:center;gap:8px;border-radius:14px;padding:12px 17px;background:#ffffffc9;font-size:16px;font-weight:850;color:#725aa6}
.hero-stars {color:#b27a1e}
.hero-unicorn {position:absolute;z-index:2;height:335px;max-width:40%;object-fit:contain;right:47px;bottom:-44px;filter:drop-shadow(0 18px 18px #aa8dc22b);pointer-events:none}
.floating-star {position:absolute;color:#f5c84f;z-index:1;font-size:29px;text-shadow:0 4px 10px #ffffff}
.floating-star.one {top:33px;right:36px;transform:rotate(12deg)}.floating-star.two {top:101px;right:330px;font-size:19px}.floating-star.three {bottom:36px;right:18px;font-size:23px}
.section-row {display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 19px}
.section-title {display:flex;align-items:center;gap:12px;margin:0;font-size:24px;font-weight:900;color:#3f3b5c}
.section-title .flower {font-size:25px}
.section-note {font-size:14px;color:#948ca9;font-weight:700}
.card-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.task-card {position:relative;display:block;text-align:left;padding:24px 25px;min-height:208px;border-radius:25px;border:2px solid transparent;background:#fff;overflow:hidden;box-shadow:0 13px 29px #8b80a10b;transition:transform .15s,box-shadow .15s,border-color .15s;width:100%}
.task-card:hover {transform:translateY(-3px);box-shadow:0 18px 36px #8b80a124}
.task-card.chinese {background:linear-gradient(125deg,#fff7fa,#ffeef5);border-color:#ffe1ec}
.task-card.math {background:linear-gradient(125deg,#f2fff8,#e4f8ee);border-color:#d2f2e1}
.task-card.english {background:linear-gradient(125deg,#f6fbff,#e8f3ff);border-color:#dbeafa}
.task-card.other {background:linear-gradient(125deg,#f8f5ff,#eee9ff);border-color:#e8e1fa}
.task-card.completed {box-shadow:0 0 0 2px #f8d98f,0 16px 34px #f3ce7732}
.task-top {display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:15px}
.subject-dot {font-size:16px;font-weight:900;letter-spacing:.4px}
.chinese .subject-dot {color:var(--pink-ink)}.math .subject-dot {color:var(--mint-ink)}.english .subject-dot {color:var(--blue-ink)}.other .subject-dot {color:#8070be}
.task-number {font-size:12px;font-weight:900;color:#ffffff;background:#968ad4;padding:5px 10px;border-radius:99px}
.chinese .task-number {background:#e89fba}.math .task-number {background:#76caaf}.english .task-number {background:#8abdec}
.task-card h3 {font-size:26px;line-height:1.35;font-weight:900;margin:0 75px 9px 0;color:#414059}
.task-card p {font-size:18px;line-height:1.5;margin:0 68px 16px 0;color:#77758b;min-height:21px}
.task-icon {position:absolute;right:22px;top:66px;height:75px;width:75px;border-radius:22px;display:grid;place-items:center;font-size:38px;background:#ffffffab;transform:rotate(7deg)}
.status-label {display:inline-flex;align-items:center;gap:7px;color:#9c90a9;font-size:16px;font-weight:800}
.completed .status-label {color:#b48a25}.task-card:not(.completed) .status-label::before {content:"";height:8px;width:8px;border:2px solid currentColor;border-radius:50%}
.home-footer {display:grid;grid-template-columns:1.15fr .85fr;gap:18px;margin-top:26px}
.wish-panel,.tip-panel {background:#fff;border:1px solid #f0edf6;border-radius:23px;padding:21px 24px;min-height:126px;box-shadow:0 8px 22px #9f92ae0d}
.wish-panel h4,.tip-panel h4 {font-size:16px;margin:0 0 10px;color:#5b4e7d}
.wish-row {display:flex;align-items:center;gap:13px}
.wish-emoji {font-size:33px;display:grid;place-items:center;background:#fff4d5;width:58px;height:58px;border-radius:17px}
.wish-details {flex:1;min-width:0}
.wish-title {font-size:14px;font-weight:800;color:#504866;display:flex;justify-content:space-between;gap:8px}
.progress {margin-top:11px;border-radius:99px;height:10px;background:#f0ebfa;overflow:hidden}
.progress span {height:100%;display:block;border-radius:99px;background:linear-gradient(90deg,#ffc975,#f1aecc);transition:width .25s}
.tip-panel {background:linear-gradient(135deg,#fff,#faf8ff);display:flex;align-items:center;gap:14px}
.tip-panel .tip-icon {font-size:38px}.tip-panel p {margin:0;font-size:14px;color:#877d9b;line-height:1.55}
.task-detail {max-width:1040px;margin:auto}
.detail-banner {display:grid;grid-template-columns:minmax(0,1fr) 220px;align-items:center;border-radius:31px;padding:34px 41px;background:#fff2f6;border:1px solid #ffe2ed;overflow:hidden;min-height:230px}
.detail-banner.math {background:#e9fcf2;border-color:#d6f4e5}.detail-banner.english {background:#eaf5ff;border-color:#dcecff}.detail-banner.other {background:#f3edff;border-color:#e3dafa}
.detail-banner .big-icon {font-size:109px;text-align:center;filter:drop-shadow(0 12px 12px #51427519)}
.detail-banner h1 {font-size:39px;line-height:1.3;margin:14px 0 10px}.detail-banner p {font-size:17px;color:#847d92;margin:0}
.subject-tag {display:inline-block;font-weight:900;font-size:13px;padding:8px 13px;border-radius:99px;background:#ffffffbc;color:#9866ae}
.info-grid {display:grid;grid-template-columns:1.45fr .55fr;gap:18px;margin:22px 0}
.voice-paper,.teacher-note {background:#fff;border:1px solid #eeeaf6;border-radius:25px;padding:26px 29px;box-shadow:0 12px 30px #77708f0b}
.paper-title {display:flex;align-items:center;gap:9px;color:#927abb;font-weight:900;font-size:15px}
.voice-paper .message {font-size:29px;line-height:1.65;font-weight:850;margin:18px 0 0;color:#474263;word-break:break-word}
.teacher-note {background:#fffcf3;border-color:#f5ecd5}
.teacher-note h3 {margin:3px 0 14px;font-size:20px;color:#bd944c}.teacher-note p {margin:0;font-size:21px;color:#8a805f;line-height:1.7}
.detail-actions {display:flex;justify-content:center;gap:19px;margin-top:25px;flex-wrap:wrap}
.giant-btn {border:0;min-width:146px;min-height:128px;border-radius:25px;padding:21px 21px 19px;display:flex;align-items:center;flex-direction:column;gap:11px;justify-content:center;background:#f0eaff;color:#745cb4;font-weight:900;font-size:19px;box-shadow:0 9px 22px rgba(132,106,180,.1)}
.giant-btn .giant-icon {font-size:36px;line-height:1}
.giant-btn.primary {background:linear-gradient(135deg,#9784e8,#7967d5);color:white;box-shadow:0 12px 23px #9e86dc50}
.giant-btn.gold {background:linear-gradient(135deg,#ffe8a2,#ffd075);color:#98631b;box-shadow:0 12px 23px #e9bb6763}
.giant-btn:hover:not(:disabled) {transform:translateY(-3px)}
.complete-panel {text-align:center;margin:22px auto;padding:22px;background:#fff8e7;border:1px solid #f8e6b7;border-radius:25px;max-width:670px}
.complete-panel strong {display:block;font-size:23px;color:#ad7a1a}.complete-panel p {font-size:15px;color:#9b8a6e;margin:9px 0}
.shop-head {display:flex;align-items:center;gap:20px;background:linear-gradient(110deg,#fff7e3,#fff1fb);padding:27px 30px;border-radius:27px;margin-bottom:26px}
.shop-head .shop-emoji {font-size:67px}.shop-head h1 {font-size:30px;margin:0 0 7px}.shop-head p {font-size:16px;margin:0;color:#867b95}
.shop-balance {margin-left:auto;background:#fff;padding:14px 19px;border-radius:18px;color:#b27c22;font-size:24px;font-weight:950;white-space:nowrap}
.reward-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.reward-card {border-radius:25px;background:#fff;min-height:290px;display:flex;align-items:center;flex-direction:column;gap:13px;padding:24px 19px;border:1px solid #eee8f3;text-align:center;box-shadow:0 8px 22px #9f92ae0b}
.reward-card .illustration {font-size:65px;display:grid;place-items:center;width:110px;height:104px;border-radius:24px;background:linear-gradient(130deg,#fff5dd,#fff0fb)}
.reward-card h3 {font-size:23px;margin:0;color:#4f4768}.reward-card .price {color:#af7a1e;font-weight:900;font-size:20px}
.reward-actions {display:flex;gap:8px;margin-top:auto;width:100%}
.small-btn {border:0;background:#eee8ff;color:#765bb7;border-radius:12px;padding:11px 13px;font-weight:850;font-size:14px;min-height:45px;flex:1}
.small-btn.primary {background:#8c76d8;color:#fff}.small-btn.light {background:#fff5dc;color:#a27628}
.small-btn:hover {filter:brightness(.97)}
.gift-note {background:#fff;color:#877b96;padding:20px 24px;border-radius:18px;margin-top:23px;font-size:15px}
.parent-theme .main {background:#f8f9fc}
.parent-theme .sidebar {background:#fff}
.parent-theme .logo-mark {background:#e9e5ff}
.parent-theme .nav-btn.active {background:#eeeaff}
.parent-panel {max-width:1320px}
.parent-intro {display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:22px}
.parent-intro h1 {font-size:31px;margin:0 0 8px;letter-spacing:-.7px}
.parent-intro p {font-size:15px;margin:0;color:#8a8699}
.parent-badge {padding:12px 16px;border-radius:99px;background:#f1edff;color:#856bc6;font-size:13px;font-weight:900;white-space:nowrap}
.metric-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:23px}
.metric {border:1px solid #eceaf4;padding:22px;background:#fff;border-radius:21px;min-height:116px}
.metric label {display:block;color:#9994a9;font-size:13px;font-weight:750;margin-bottom:12px}.metric strong {font-size:30px;color:#51496c;font-weight:950}.metric small {font-size:13px;color:#9c97a8;margin-left:6px}
.panel {background:#fff;border:1px solid #eae9f1;border-radius:24px;padding:24px;box-shadow:0 9px 26px #8b82a009;margin-bottom:18px}
.panel-heading {display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:21px;flex-wrap:wrap}
.panel-heading h2 {font-size:19px;color:#49455e;margin:0}.panel-heading p {margin:6px 0 0;color:#928d9e;font-size:13px}
.button {border:0;border-radius:13px;padding:12px 19px;min-height:45px;color:#6e5aa1;background:#f0ebff;font-size:14px;font-weight:850;display:inline-flex;justify-content:center;align-items:center;gap:8px}
.button.primary {background:#876fce;color:#fff}.button.gold {background:#ffdf94;color:#8a641e}.button.soft {background:#f6f3fb;color:#7c728f}.button.negative {background:#ffeef1;color:#c2768b}.button:hover:not(:disabled) {filter:brightness(.97)}
.actions-row {display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.summary-list,.todo-list,.draft-list,.today-list,.request-list {display:grid;gap:12px}
.summary-line,.todo-line,.today-line,.request-line {display:flex;gap:14px;align-items:center;justify-content:space-between;border:1px solid #efedf5;background:#fcfbfe;padding:15px 17px;border-radius:16px}
.summary-line .left,.today-line .left {display:flex;align-items:center;gap:12px;min-width:0}
.summary-icon {height:43px;width:43px;flex:0 0 auto;display:grid;place-items:center;background:#f5edff;border-radius:13px;font-size:23px}
.summary-line strong,.today-line strong,.request-line strong {font-size:15px;display:block}.summary-line small,.today-line small,.request-line small {display:block;color:#9b97a7;font-size:13px;margin-top:5px}
.status-chip {font-size:12px;font-weight:850;border-radius:99px;padding:8px 12px;background:#f0edf7;color:#8b809c;white-space:nowrap}.status-chip.good {background:#e9f8ee;color:#429a6c}.status-chip.pending {background:#fff2de;color:#c28b35}
.two-col {display:grid;grid-template-columns:1.35fr .65fr;gap:18px;align-items:start}
.upload-zone {border:2px dashed #cfc0f5;border-radius:21px;background:#faf7ff;padding:24px;display:grid;place-items:center;text-align:center;gap:10px;transition:background .2s;cursor:pointer}
.upload-zone:hover,.upload-zone.over {background:#f1eaff}
.upload-zone .big-upload {font-size:39px}
.upload-zone strong {font-size:16px;color:#6e5ba6}.upload-zone p {margin:0;font-size:13px;line-height:1.6;color:#9c92b3}
.upload-zone input {display:none}
.file-chips {display:flex;gap:8px;flex-wrap:wrap;margin-top:11px}.file-chip {padding:7px 11px;background:#f5f0ff;border-radius:99px;font-size:12px;color:#836dbb}
.form-label {display:block;font-size:13px;color:#7d758e;font-weight:850;margin-bottom:8px}
.text-input,.text-area,.select-input {width:100%;border:1px solid #e2dfea;border-radius:13px;padding:12px 13px;background:#fff;color:#524a67;font-size:14px;outline:none}
.text-input:focus,.text-area:focus,.select-input:focus {border-color:#ab9bea;box-shadow:0 0 0 3px #efeaff}
.text-area {resize:vertical;min-height:95px;line-height:1.6}
.form-group {margin-bottom:17px}
.helper {font-size:12px;color:#a09aab;line-height:1.6;margin-top:8px}
.draft-card {padding:17px 18px;border:1px solid #e9e4f3;border-radius:18px;background:#fdfcff}
.draft-top {display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:14px}
.draft-top strong {font-size:17px;color:#54496e}.draft-fields {display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;margin-bottom:12px}
.draft-bottom {display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:12px}
.check-inline {display:flex;align-items:center;gap:8px;font-size:14px;font-weight:750;color:#756b8a}.check-inline input {accent-color:#8971d2;width:20px;height:20px}
.tiny-note {font-size:13px;color:#958ca5;line-height:1.6}
.todo-line {justify-content:start}.todo-line.done {opacity:.6;text-decoration:line-through}.todo-line input {accent-color:#8c75d9;width:21px;height:21px}
.note-callout {padding:18px 19px;border-radius:17px;background:#effaf4;color:#47876e;font-size:13px;line-height:1.75}
.note-callout.warning {background:#fff8e8;color:#92733e}
.empty-state {text-align:center;border:1px dashed #e6dff5;border-radius:20px;padding:28px;color:#9e92b5;font-size:14px}.empty-state .emoji {font-size:38px;margin-bottom:9px}
.settings-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.setting-tile {padding:19px;border-radius:18px;background:#fbfaff;border:1px solid #eeeaf7}
.setting-tile strong {font-size:14px;display:block;margin-bottom:12px;color:#6a5c82}
.mini-diagram {display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:center;background:#f9f7ff;border:1px solid #eee7fa;padding:18px;border-radius:18px;margin:10px 0}
.mini-diagram span {border-radius:13px;padding:10px 13px;font-size:12px;font-weight:850;background:#fff;color:#7464a6;border:1px solid #eee8fb}
.mini-diagram b {color:#aaa0bd;font-size:17px}
.message-banner {position:fixed;bottom:30px;left:50%;transform:translateX(-50%);z-index:20;max-width:92%;width:max-content;padding:16px 23px;background:#3e3658;color:#fff;border-radius:16px;box-shadow:0 18px 35px #332c4b40;font-size:15px;font-weight:800;animation:fade-in .2s ease both;text-align:center}
.star-fly {position:fixed;z-index:21;pointer-events:none;font-size:53px;color:#f2c248;animation:star-pop 1.1s ease-out forwards;text-shadow:0 4px 14px #fff}
.modal-layer {position:fixed;inset:0;z-index:12;background:rgba(45,38,67,.48);display:grid;place-items:center;padding:22px;backdrop-filter:blur(7px)}
.modal {max-width:520px;width:100%;border-radius:31px;background:#fff;padding:31px;box-shadow:0 24px 70px #32294d55;position:relative}
.modal h2 {font-size:28px;margin:0 0 10px;text-align:center;color:#51416f}.modal p {color:#88809c;line-height:1.65;font-size:15px;text-align:center}
.modal-close {position:absolute;right:17px;top:14px;background:#f4f1fc;border:0;border-radius:50%;height:40px;width:40px;color:#8e7eac;font-size:20px}
.pin-stars {font-size:38px;text-align:center;margin:4px 0 14px}.pin-dots {display:flex;justify-content:center;gap:15px;margin:18px 0 24px}.pin-dots span {width:19px;height:19px;border:2px solid #b9a9e2;border-radius:50%;background:#fff}.pin-dots span.filled {background:#8971d4;border-color:#8971d4}
.pin-grid {display:grid;grid-template-columns:repeat(3,1fr);gap:11px;max-width:320px;margin:0 auto}.pin-key {height:63px;border-radius:16px;background:#f4f0ff;border:0;color:#6f58a6;font-size:24px;font-weight:850}.pin-key:hover {background:#e9e0ff}.pin-grid .special {background:#fff2dc;font-size:17px;color:#ab823e}
.read-question {padding:20px;background:#f7f3ff;border:1px solid #e9dffc;border-radius:22px;font-size:25px;font-weight:850;line-height:1.7;color:#5a4d87;margin:18px 0;text-align:center}
.modal-actions {display:flex;gap:10px;justify-content:center;margin-top:19px}
.preview-ribbon {position:fixed;bottom:19px;right:20px;z-index:5;color:#998cad;background:#ffffffcf;border:1px solid #ece6f4;border-radius:99px;padding:9px 12px;font-size:11px;box-shadow:0 8px 20px #746ca11c;pointer-events:none}
.desktop-note {font-size:12px;color:#a09ab0;margin-top:20px;text-align:center}
.buddy-home-callout {display:flex;align-items:center;gap:18px;margin:22px 0 0;border:1px solid #e7dcff;background:linear-gradient(110deg,#faf3ff,#f0f9ff);padding:20px 23px;border-radius:25px;box-shadow:0 8px 24px #8b74bb13}
.buddy-home-callout .buddy-callout-icon {height:74px;width:74px;display:grid;place-items:center;font-size:42px;border-radius:23px;background:#fff;box-shadow:0 6px 17px #a990c224;flex:0 0 auto}
.buddy-home-callout>div:nth-child(2) {flex:1}.buddy-home-callout strong{font-size:21px;color:#5c4e83}.buddy-home-callout p{font-size:15px;color:#8b7fa4;margin:7px 0 0}.buddy-home-callout .button{min-height:59px;font-size:17px;padding:14px 24px}
.video-lesson-box{border:1px solid #dceafa;background:linear-gradient(135deg,#f8fcff,#fff);border-radius:26px;padding:26px;margin-top:19px;box-shadow:0 10px 25px #829cbb12}
.video-play-item{padding:15px;background:#fff;border:1px solid #e5eaf4;border-radius:18px;margin-top:13px}.video-title{font-size:17px;font-weight:900;color:#5a6f98;margin-bottom:13px}
.video-lesson-box video,.video-admin-card video{width:100%;display:block;aspect-ratio:16/9;object-fit:contain;background:#252537;border-radius:15px;max-height:480px}
.video-inbox{margin:18px 0 0}.video-inbox h3{font-size:16px;margin:0 0 12px;color:#7563a1}.video-admin-card{padding:17px;border:1px solid #e8e2f2;background:#fdfbff;border-radius:18px;margin-bottom:12px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}
.upload-status{padding:13px 16px;border:1px solid #cbeed8;background:#effbf3;border-radius:14px;font-size:14px;font-weight:800;color:#427f5e;margin:14px 0}
.video-admin-copy strong{display:block;font-size:15px;margin-bottom:6px;color:#5b5371;overflow-wrap:anywhere}.video-admin-copy small{font-size:12px;line-height:1.5;color:#9a91a8}.video-admin-card video{flex-basis:100%;max-height:270px}
.buddy-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:25px}.buddy-heading h1{font-size:35px;margin:12px 0 8px;color:#4b406d}.buddy-heading p{color:#8b83a1;margin:0;font-size:17px}
.buddy-layout{display:grid;grid-template-columns:minmax(290px,.92fr) minmax(380px,1.08fr);gap:20px;align-items:stretch}
.buddy-stage{background:radial-gradient(circle at 50% 40%,#ffffff 3%,#fff9ff 31%,#f1e6ff 70%,#eae9ff 100%);border:1px solid #e6daf7;border-radius:34px;min-height:610px;padding:25px 22px 27px;position:relative;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;isolation:isolate}
.buddy-stage::before,.buddy-stage::after{content:"✦";color:#ffcb65;font-size:36px;position:absolute;z-index:0}.buddy-stage::before{top:70px;right:40px}.buddy-stage::after{bottom:154px;left:29px;font-size:25px;color:#cbb6ff}
.buddy-glow{width:79%;aspect-ratio:1;position:absolute;top:17%;left:10%;background:radial-gradient(circle,#fff7fb 5%,#eddfff 55%,transparent 73%);border-radius:50%;z-index:0;filter:blur(2px)}
.buddy-badge{position:relative;z-index:1;align-self:flex-start;border-radius:99px;background:#ffffffc4;color:#8b71be;border:1px solid #ffffff;padding:11px 17px;font-size:14px;font-weight:900}
@keyframes buddy-float{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-12px) rotate(1deg)}}
.buddy-doll{display:block;position:relative;z-index:1;max-width:97%;width:390px;height:345px;object-fit:contain;filter:drop-shadow(0 22px 23px #a993c64a);animation:buddy-float 4.5s ease-in-out infinite}
.buddy-speech{position:relative;z-index:2;width:min(100%,430px);min-height:95px;border-radius:24px;background:#fff;border:1px solid #e9def5;box-shadow:0 12px 30px #9a85b829;padding:23px 25px;text-align:center;color:#69528f;font-size:23px;font-weight:900;line-height:1.55;display:flex;align-items:center;justify-content:center}
.speech-star{color:#f3c858;font-size:21px;margin-right:10px}.buddy-doll-caption{position:relative;z-index:1;margin-top:14px;font-size:13px;font-weight:800;color:#9d8eb2}
.buddy-console{background:#fff;border:1px solid #ece5f4;border-radius:31px;padding:25px;box-shadow:0 15px 40px #8b74bb0f;display:flex;flex-direction:column;min-width:0}
.buddy-modes{display:grid;grid-template-columns:1fr 1fr;gap:10px}.buddy-mode{border:1px solid #e7e0f1;border-radius:18px;background:#f9f6ff;color:#8b7aa8;min-height:74px;padding:12px;font-size:18px;font-weight:900}.buddy-mode.selected{border-color:#9d86dd;background:#8d78d0;color:white;box-shadow:0 10px 23px #a596e94f}
.buddy-status-line{font-size:14px;color:#9a8ba7;line-height:1.5;margin:18px 0 22px;text-align:center}.buddy-question-heading{font-size:20px;font-weight:900;color:#55496e;margin:4px 0 15px}
.buddy-prompt-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.buddy-prompt{min-height:120px;text-align:center;border:1px solid #eae3f4;border-radius:22px;background:linear-gradient(135deg,#fdfaff,#f5f0ff);color:#675687;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:17px 12px;gap:9px;font-size:17px;font-weight:900;line-height:1.3}
.buddy-prompt:nth-child(2){background:linear-gradient(130deg,#f5fbff,#eaf7ff)}.buddy-prompt:nth-child(3){background:linear-gradient(130deg,#fffaf2,#ffefdc)}.buddy-prompt:nth-child(4){background:linear-gradient(130deg,#fff8fa,#ffeef2)}.buddy-prompt span{font-size:31px}.buddy-prompt:hover{filter:brightness(.98);transform:translateY(-2px)}
.buddy-talk-footer{margin-top:auto;padding-top:22px;display:flex;align-items:center;gap:17px;border-top:1px solid #f0ebf7}.buddy-mic{display:flex;align-items:center;flex-direction:column;justify-content:center;border:2px dashed #cfc4e4;border-radius:23px;min-width:146px;min-height:135px;background:#f6f3fc;color:#a38bb4;gap:5px}.buddy-mic span{font-size:28px}.buddy-mic strong{font-size:16px}.buddy-mic small{font-size:10px}.buddy-talk-footer>div{min-width:0;color:#6f6684}.buddy-talk-footer>div strong{font-size:15px}.buddy-talk-footer p{font-size:12px;line-height:1.6;color:#9e96ae;margin:8px 0 0}
.buddy-runtime-note{margin-top:15px;border-radius:15px;background:#fff8e9;color:#9d7d50;padding:12px 15px;font-size:12px;line-height:1.6}
.buddy-locked{min-height:245px;padding:30px 15px;background:linear-gradient(125deg,#fbf7ff,#f7fbff);border:1px dashed #e2d6f0;border-radius:20px;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:11px}.buddy-locked>div{font-size:35px}.buddy-locked strong{color:#786497;font-size:19px}.buddy-locked p{margin:0 0 6px;color:#9588a8;line-height:1.5}
.buddy-transcript{margin-top:22px}.buddy-transcript-line{display:flex;align-items:flex-start;gap:13px;background:#f9f6ff;padding:15px;border-radius:15px;margin-bottom:9px;font-size:17px;color:#675780}.buddy-transcript-line span{font-size:23px}.buddy-transcript-line.child{margin-right:11%}.buddy-transcript-line.assistant{background:#f0f8ff;margin-left:11%}
@media (max-width:1130px) {
  .sidebar {width:211px;min-width:211px;padding:24px 14px}.main {padding:22px 24px 42px}.hero {padding:29px 31px}.hero-unicorn {right:10px;height:296px}.hero .hero-copy{width:70%}.task-card h3 {font-size:20px}.task-card{padding:22px}.two-col{grid-template-columns:1fr}.info-grid{grid-template-columns:1fr 1fr}
  .buddy-layout{grid-template-columns:1fr}.buddy-stage{min-height:530px}.buddy-doll{height:330px}.buddy-console{min-height:570px}
}
@media (max-width:800px) {
  .app-shell {display:block}.sidebar {height:auto;width:100%;min-width:0;position:relative;padding:11px 15px;display:flex;flex-direction:row;align-items:center;gap:12px;border-right:0;border-bottom:1px solid #eee9f7}.logo {margin:0;flex:0 0 auto}.logo-mark{width:38px;height:38px;border-radius:14px}.logo-copy strong{font-size:15px}.logo-copy small,.nav-section,.side-spacer,.sidebar-bottom {display:none}.nav{display:flex;flex:1;overflow-x:auto;gap:5px;scrollbar-width:none}.nav::-webkit-scrollbar{display:none}.nav-btn{width:auto;min-height:42px;white-space:nowrap;padding:9px 12px;font-size:13px;gap:4px}.nav-btn .nav-icon {font-size:18px;width:22px;height:22px}.nav-btn .little-lock{display:none}.main{padding:19px 18px 32px}.topbar{margin-bottom:16px}.hero{min-height:250px}.hero .hero-copy{width:70%}.hero-unicorn{height:250px;right:-19px;bottom:-38px}.hero h1 {font-size:31px}.hero p{font-size:15px}.hero-mini{gap:8px}.hero-count,.hero-stars{font-size:13px;padding:10px}.card-grid{gap:12px}.task-card{min-height:183px}.home-footer{grid-template-columns:1fr}.metric-grid{grid-template-columns:repeat(2,1fr)}.reward-grid{grid-template-columns:repeat(2,1fr)}.settings-grid{grid-template-columns:1fr}
  .buddy-home-callout{flex-wrap:wrap}.buddy-heading h1{font-size:29px}.buddy-layout{gap:13px}.buddy-stage{min-height:505px}.buddy-doll{height:290px}.buddy-console{padding:21px}
}
@media (max-width:570px) {
  .logo-copy {display:none}.logo{margin-right:0}.nav-btn{font-size:12px;padding:9px 10px}.nav-btn .nav-icon{font-size:16px}.demo-pill{display:none}.date{font-size:12px}.topbar{align-items:start}.hero{padding:24px 21px;min-height:300px}.hero .hero-copy{width:100%}.hero h1{font-size:29px;max-width:260px}.hero p{font-size:14px;max-width:230px;line-height:1.6}.hero-unicorn{height:207px;right:-40px;bottom:-20px;max-width:60%}.floating-star.two{right:150px}.hero-mini{position:relative;z-index:3;margin-top:7px}.hero-count,.hero-stars{padding:9px 11px}.card-grid{grid-template-columns:1fr}.task-card {min-height:157px}.task-card h3{font-size:21px}.task-card p{font-size:14px;margin-bottom:12px}.task-icon{top:45px}.section-title{font-size:21px}.section-note{font-size:12px}.detail-banner{grid-template-columns:1fr 100px;padding:24px;min-height:180px}.detail-banner h1{font-size:27px}.detail-banner .big-icon{font-size:65px}.info-grid{grid-template-columns:1fr}.voice-paper .message{font-size:23px}.detail-actions{gap:9px}.giant-btn{min-width:calc(50% - 6px);max-width:calc(50% - 6px);min-height:120px;font-size:16px}.shop-head{gap:9px;padding:18px}.shop-head .shop-emoji{font-size:39px}.shop-head h1{font-size:22px}.shop-head p{font-size:12px}.shop-balance{font-size:18px;padding:10px}.reward-grid{grid-template-columns:1fr}.reward-card{min-height:220px}.parent-intro h1{font-size:26px}.parent-badge{font-size:11px;padding:9px}.metric{padding:16px;min-height:92px}.metric strong{font-size:25px}.draft-fields{grid-template-columns:1fr}.panel{padding:18px}.summary-line,.today-line{align-items:flex-start}.summary-line .status-chip{margin-left:auto}.preview-ribbon{right:10px;bottom:8px;font-size:10px}
  .buddy-heading{align-items:flex-start;flex-direction:column}.buddy-heading h1{font-size:26px}.buddy-heading p{font-size:14px}.buddy-home-callout{padding:16px}.buddy-home-callout .buddy-callout-icon{width:58px;height:58px;font-size:33px}.buddy-home-callout strong{font-size:17px}.buddy-home-callout p{font-size:12px}.buddy-home-callout .button{width:100%}.buddy-stage{min-height:420px;padding:17px}.buddy-doll{height:205px}.buddy-badge{font-size:12px}.buddy-speech{font-size:18px;min-height:84px;padding:15px}.buddy-modes{gap:5px}.buddy-mode{font-size:14px;min-height:62px;padding:9px}.buddy-prompt-grid{gap:8px}.buddy-prompt{font-size:14px;padding:10px;min-height:105px}.buddy-talk-footer{flex-wrap:wrap}.buddy-mic{width:100%;min-height:100px}.buddy-console{padding:16px}.video-lesson-box{padding:15px}
}
@media (max-width:570px) {
  .topbar {flex-wrap:wrap;gap:10px}
  .topbar-right {width:100%;justify-content:space-between}
  .upload-shortcut {flex:1;font-size:16px;min-height:56px}
}
@media (prefers-reduced-motion:reduce){.view,.star-fly,.buddy-doll{animation:none}.task-card,.nav-btn{transition:none}}

/* M1.2 original character chooser and strictly opt-in child voice UI. */
.buddy-characters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:0 0 21px}
.buddy-character{border:2px solid #ebe2f5;border-radius:22px;background:linear-gradient(160deg,#fff,#f9f4ff);min-width:0;min-height:156px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;cursor:pointer;color:#685780;padding:10px;box-shadow:0 8px 22px #ab91c310}
.buddy-character.selected{border-color:#9778d9;background:linear-gradient(145deg,#f8edff,#eaf8ff);box-shadow:0 0 0 3px #e8ddff}
.buddy-character img{width:98px;height:98px;object-fit:contain;filter:drop-shadow(0 9px 8px #9777c43b)}
.buddy-character strong{font-size:18px;font-weight:900}.buddy-character small{font-size:12px;color:#8e7da4}
.buddy-preview{position:relative;z-index:3;margin-top:16px;min-height:47px}
.buddy-mic.recording{background:#fff0f2;border-color:#ff8794;color:#af5666;animation:buddy-recording 1.4s ease-in-out infinite}
@keyframes buddy-recording{50%{box-shadow:0 0 0 8px #ffdae066}}
.buddy-parent-check{display:flex!important;flex-direction:row!important;align-items:center;gap:11px;font-weight:800;color:#675687}.buddy-parent-check input{width:22px;height:22px}
.buddy-parent-logs{max-height:520px;overflow-y:auto}.buddy-parent-log{padding:13px;border-bottom:1px solid #eee8f5;overflow-wrap:anywhere}.buddy-parent-log strong{color:#73638d}.buddy-parent-log p{margin:7px 0;font-size:13px;color:#847596}
@media(max-width:680px){.buddy-characters{gap:7px}.buddy-character{min-height:123px;padding:6px;border-radius:16px}.buddy-character img{width:66px;height:66px}.buddy-character strong{font-size:13px}.buddy-character small{font-size:10px;text-align:center}.buddy-preview{margin-top:9px}}

/* Authenticated M1 integration views. Original child card layout is retained. */
.auth-outer{min-height:100dvh;display:grid;place-items:center;padding:30px 16px;background:radial-gradient(circle at 18% 8%,#fce9f5,transparent 40%),radial-gradient(circle at 94% 86%,#e5f5ff,transparent 35%),#f8f5ff}
.auth-card{display:grid;grid-template-columns:minmax(240px,.8fr) minmax(320px,1.2fr);gap:28px;align-items:center;max-width:1100px;width:100%;padding:34px;background:#ffffffd9;border:1px solid #ece4fb;border-radius:36px;box-shadow:0 22px 65px #a491c72b}
.auth-art{min-height:480px;display:grid;place-items:center;border-radius:29px;background:linear-gradient(139deg,#e9e2ff,#fff0f7 70%,#fff5e1)}
.auth-art img{width:95%;max-height:450px;object-fit:contain;filter:drop-shadow(0 15px 19px #b49dc557)}
.auth-forms .logo{margin-bottom:19px}.auth-forms h1{font-size:31px;margin:0 0 9px;color:#514678}.auth-forms>p{font-size:16px;line-height:1.75;color:#817693;margin:0 0 18px}
.auth-forms .real-form{margin:14px 0;padding:19px 21px;border:1px solid #ece6fa;background:#fcfaff;border-radius:19px}
.auth-forms h2{font-size:20px;margin:0;color:#68558e}.auth-forms .button{min-height:55px;font-size:16px}
.auth-safe{font-size:12px!important;color:#948aa8!important}
.real-form{display:grid;gap:17px;max-width:100%}.real-form label{display:grid;gap:8px;font-weight:800;font-size:14px;color:#736585}
.real-form label.check-inline{display:flex;align-items:center}.real-form input[type="checkbox"]{width:23px;height:23px;accent-color:#8c77d4}
.real-form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.real-form .text-input,.real-form .text-area,.real-form .select-input{font-size:16px;min-height:50px}
.real-form .upload-zone{display:grid;gap:12px;min-height:180px}.real-form .upload-zone input{display:block;max-width:100%;border:1px solid #d8caef;background:#fff;border-radius:12px;padding:12px}
/* Native file-input intrinsic width must not enlarge the mobile layout viewport. */
#screenshot-form,#screenshot-form .upload-zone{grid-template-columns:minmax(0,1fr)}
#screenshot-form .upload-zone,#screenshot-form input[type=file]{min-width:0}
#screenshot-form input[type=file]{width:100%}
.real-form .button{min-height:54px}.real-form small{font-size:12px;color:#9189a1}
.pair-code{padding:17px;margin-top:15px;border-radius:16px;background:#f5edff;color:#5d498b;font-weight:900;overflow-wrap:anywhere;line-height:1.8}
.summary-line{flex-wrap:wrap}.summary-line .left{min-width:0}.summary-line .left strong,.summary-line .left small{overflow-wrap:anywhere}
.parent-panel .note-callout{margin-top:14px}.parent-panel .video-admin-card{align-items:flex-start}.parent-panel .video-admin-card .button{flex-shrink:0}
.auth-forms input{width:100%;min-width:0}
@media(max-width:850px){.auth-card{grid-template-columns:1fr;max-width:620px;padding:24px}.auth-art{min-height:190px}.auth-art img{max-height:200px;width:auto;max-width:75%}}
@media(max-width:570px){.auth-card{border-radius:22px;padding:15px;gap:10px}.auth-art{min-height:120px;border-radius:15px}.auth-art img{max-height:130px}.auth-forms h1{font-size:26px}.auth-forms .real-form{padding:15px}.real-form-row{grid-template-columns:1fr}.parent-panel .parent-badge{white-space:normal}.real-form .upload-zone{min-height:155px}.detail-actions .giant-btn{min-width:120px;min-height:120px}}

/* Touch-safe OCR preview; stylesheet rules comply with the strict CSP. */
.privacy-canvas {max-width:100%;touch-action:none;border:2px solid #8761a8;}
.privacy-preview {max-width:100%;}
.real-form select,.real-form input:not([type=checkbox]),.real-form textarea {font-size:18px;min-height:44px;}
@media (pointer:coarse) {.button,.nav-btn {min-height:48px;}}

.task-image-box .task-image{display:block;width:100%;max-height:70vh;object-fit:contain;border-radius:16px;background:#fff;cursor:zoom-in}
.task-image-box .task-image.zoomed{max-height:none;cursor:zoom-out}

.draft-group{border:1px solid #eeeaf6;border-radius:18px;padding:12px;margin:0 0 14px;background:#fff}
.draft-group-head{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;margin-bottom:8px}
.draft-item{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:6px 0}
.draft-item small{flex:1 1 100%;color:#77708f}

.voice-paper .message{white-space:pre-line}

.daily-card .panel-heading h2{display:flex;gap:8px;align-items:center;flex:1}
.daily-card .card-title{font-size:20px;font-weight:800;flex:1;min-width:0}
.card-thumbs{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}
.card-thumb{display:flex;flex-direction:column;gap:4px;width:120px}
.card-thumb img{width:120px;height:150px;object-fit:cover;border-radius:12px;border:1px solid #eeeaf6;background:#fff}
.giant-publish{width:100%;min-height:58px;font-size:18px;margin-bottom:10px}
.checklist-box .check-item{display:flex;gap:14px;align-items:center;width:100%;text-align:left;font-size:22px;line-height:1.5;padding:16px 18px;margin:10px 0;border-radius:20px;border:2px solid #eeeaf6;background:#fff;color:#474263;font-weight:750;cursor:pointer}
.checklist-box .check-item .check-box{flex:0 0 44px;height:44px;border-radius:50%;display:grid;place-items:center;background:#f3effc;color:#7d68c8;font-size:20px}
.checklist-box .check-item.done{background:#f1fbf4;border-color:#bfe8cb;color:#5b7f66;text-decoration:line-through}
.checklist-box .check-item.done .check-box{background:#5bc27a;color:#fff}

#daily-upload,#daily-upload .upload-zone,#daily-upload input[type=file],.daily-card textarea{max-width:100%;box-sizing:border-box}
#daily-upload input[type=file]{width:100%}
.daily-card .panel-heading{flex-wrap:wrap;gap:8px}

.task-image-box .task-image{margin-bottom:10px}
.image-retry{width:100%;margin:6px 0 10px}
.image-viewer{position:fixed;inset:0;z-index:9999;background:rgba(20,16,40,.94);display:flex;flex-direction:column}
.image-viewer .viewer-bar{display:flex;gap:10px;justify-content:flex-end;padding:12px 14px;flex:0 0 auto}
.image-viewer .viewer-scroll{flex:1;overflow:auto;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y pinch-zoom}
.image-viewer img{display:block;width:100%;height:auto;background:#fff}
.image-viewer.big img{width:220%;max-width:none}

/* Author display rules must never override the native hidden state. */
[hidden]{display:none !important}
.voice-controls{margin:12px 0}.voice-controls .button{margin-right:8px}
