/* Nova World 新界面：插画在前，界面在后。夜色场景、深色玻璃、金色按钮、纸条和纸标签。
   孩子端（p.html）和家长页（home.html）用这一份，老师端和后台暂时还在 nw.css。 */
@font-face { font-family: "Nunito"; src: url(../assets/fonts/nunito-latin.woff2) format("woff2"); font-weight: 200 1000; font-display: swap; }
@font-face { font-family: "HuangYou"; src: url(../assets/fonts/zcool-huangyou-l1.woff2) format("woff2"); font-display: swap; }
:root {
  --cjk: -apple-system, "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --font: "Nunito", var(--cjk);
  --display: "HuangYou", "Yuanti SC", var(--cjk);
  --night: #0f1428; --night-2: #1a2140; --cream: #f6efe2; --cream-dim: rgba(246, 239, 226, .64); --cream-faint: rgba(246, 239, 226, .4);
  --gold: #f0c27a; --gold-deep: #b57a2a; --gold-line: rgba(240, 194, 122, .35); --ink: #2a2118; --ink-soft: #6b5537; --paper: #fbf3e3; --paper-2: #efe0c3;
  --glass: rgba(15, 20, 40, .7); --shadow: 0 14px 40px rgba(0, 0, 0, .35);
  --wood: linear-gradient(180deg, #8a5a2b, #6b4420);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--night); color: var(--cream); font: 16px/1.5 var(--font); overflow-x: hidden; }
[hidden] { display: none !important; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.ic { width: 1em; height: 1em; fill: currentColor; vertical-align: -.14em; flex: none; }

/* 场景与它：固定在底下，内容从上面滚过去 */
.scene { position: fixed; inset: 0; z-index: 0; background-color: var(--night); background-size: cover; background-position: center top; transition: background-image .3s; }
.scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 20, 40, 0) 0%, rgba(15, 20, 40, .12) 42%, rgba(15, 20, 40, .82) 100%); }
.hero { position: fixed; z-index: 1; left: 50%; top: calc(43dvh - min(60vw, 250px) * .86); width: min(60vw, 250px); transform: translateX(-50%); pointer-events: none; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .35)); transition: opacity .25s; }
.hero.breathe { animation: hero-breathe 3.2s ease-in-out infinite; }
@keyframes hero-breathe { 0%, 100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.02); } }
@media (prefers-reduced-motion: reduce) { .hero.breathe { animation: none; } }

.page { position: relative; z-index: 2; max-width: 520px; margin: 0 auto; padding: calc(16px + env(safe-area-inset-top)) 20px calc(118px + env(safe-area-inset-bottom)); min-height: 100dvh; display: flex; flex-direction: column; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; }
.bar .title { flex: 1 1 auto; min-width: 0; margin: 0; font: 400 23px/1.2 var(--display); text-shadow: 0 2px 8px rgba(0, 0, 0, .35); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pills { display: flex; gap: 8px; flex: 0 1 auto; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 13px; border-radius: 999px; background: rgba(15, 20, 40, .55); border: 1px solid rgba(240, 194, 122, .55); color: var(--gold); font: 800 14px/1 var(--font); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); white-space: nowrap; }
.pill img { width: 18px; height: 18px; }
.pill.quiet { color: var(--cream-dim); border-color: rgba(246, 239, 226, .25); }

.stage-gap { height: calc(43dvh - 40px); flex: none; }            /* 给它留出的天地：窗台在屏幕高度 43% 处 */
.bubble { position: relative; align-self: center; max-width: 280px; margin: 14px auto 0; padding: 12px 18px; border-radius: 22px; background: var(--cream); color: var(--ink); font: 400 16px/1.5 var(--display); text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; background: inherit; transform: translateX(-50%) rotate(45deg); }
.bubble:empty { display: none; }
.growth { margin: 10px 0 0; text-align: center; font: 600 13px/1.4 var(--cjk); color: var(--cream-dim); text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }

/* 深色玻璃面板 */
.sheet { position: relative; margin-top: 18px; padding: 22px 20px 18px; border-radius: 24px; background: var(--glass); border: 1px solid var(--gold-line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--shadow); }
.sheet h2, .sheet h3 { margin: 0 0 8px; font: 400 23px/1.2 var(--display); color: var(--cream); }
.sheet p { margin: 0; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; min-height: 80px; padding: 14px 0; }
.row + .row { border-top: 1px solid rgba(240, 194, 122, .22); }
.row b { display: block; font: 800 18px/1.3 var(--cjk); color: var(--cream); }
.row small { display: block; margin-top: 5px; font: 500 13px/1.4 var(--cjk); color: var(--cream-dim); }
.row .state { font: 800 14px/1.35 var(--cjk); color: var(--gold); text-align: right; max-width: 150px; }
.row .state.quiet { color: var(--cream-dim); }
.foot { margin: 14px 0 0; text-align: center; font: 700 13px/1.5 var(--cjk); color: var(--cream-dim); }
.foot a { color: inherit; text-decoration: none; }
.actions { display: flex; gap: 10px; margin-top: 14px; }
.actions > * { flex: 1; }

/* 金色按钮：底边一条硬影，按下去会沉 */
.gbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 18px; border: 0; border-radius: 999px; text-decoration: none; background: linear-gradient(180deg, #f5cf8b, #e0a34a); color: #3a2a10; font: 800 15px/1 var(--cjk); box-shadow: 0 5px 0 var(--gold-deep), 0 10px 20px rgba(224, 163, 74, .3), inset 0 1px 0 rgba(255, 255, 255, .55); transition: transform .08s, box-shadow .08s; white-space: nowrap; }
.gbtn .ic { font-size: 19px; }
.gbtn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--gold-deep), 0 4px 10px rgba(224, 163, 74, .25), inset 0 1px 0 rgba(255, 255, 255, .55); }
.gbtn:disabled { opacity: .55; cursor: default; transform: none; }
.gbtn.big { width: 100%; min-height: 64px; font-size: 18px; }
.ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(246, 239, 226, .28); background: rgba(255, 255, 255, .08); color: var(--cream); font: 800 15px/1 var(--cjk); text-decoration: none; }
.ghost .ic { font-size: 18px; }
.ghost:active { transform: scale(.98); }
.link-quiet { background: none; border: 0; padding: 6px 0; color: var(--cream-dim); font: 700 13px/1 var(--cjk); text-decoration: none; }

/* 木头底栏 */
.dock { position: fixed; z-index: 5; left: 0; right: 0; bottom: 0; height: calc(84px + env(safe-area-inset-bottom)); padding: 10px 14px calc(12px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--wood); box-shadow: 0 -8px 30px rgba(0, 0, 0, .45), inset 0 2px 0 rgba(255, 220, 160, .25); }
.dock::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .06) 0 3px, transparent 3px 11px), repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 6px); pointer-events: none; }
.dock button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 0; border-radius: 16px; background: transparent; color: rgba(246, 239, 226, .75); font: 800 12px/1 var(--cjk); }
.dock button .ic { font-size: 24px; }
.dock button[aria-selected="true"] { background: rgba(240, 194, 122, .16); color: var(--gold); box-shadow: inset 0 0 0 1px rgba(240, 194, 122, .45); }
@media (min-width: 560px) { .dock { max-width: 520px; margin: 0 auto; border-radius: 24px 24px 0 0; } }

/* 衣柜 */
.section-title { margin: 22px 0 10px; font: 400 20px/1.2 var(--display); text-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.section-title:first-child { margin-top: 0; }
.closet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.item { padding: 8px 6px 10px; border-radius: 18px; background: linear-gradient(180deg, var(--paper), var(--paper-2)); color: var(--ink); text-align: center; box-shadow: 0 6px 14px rgba(0, 0, 0, .3); }
.item img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }
.item b { display: block; margin-top: 2px; font: 800 13px/1.2 var(--cjk); }
.item small { display: block; margin-top: 2px; font: 500 11px/1.2 var(--cjk); color: var(--ink-soft); }
.item .gbtn, .item .cost { width: 100%; min-height: 38px; margin-top: 8px; padding: 0; font-size: 13px; box-shadow: 0 3px 0 var(--gold-deep); }
.item .cost { display: block; line-height: 38px; border-radius: 999px; background: rgba(42, 33, 24, .08); box-shadow: none; font: 800 13px/38px var(--font); color: var(--ink-soft); }
.item.on { box-shadow: 0 0 0 2px var(--gold), 0 6px 14px rgba(0, 0, 0, .3); }
.item.locked { opacity: .75; }
.item details { margin-top: 8px; font: 500 11px/1.4 var(--cjk); color: var(--ink-soft); text-align: left; }
.item summary { cursor: pointer; }
.closet-empty { grid-column: 1 / -1; padding: 18px 16px; border-radius: 18px; background: rgba(15, 20, 40, .55); border: 1px solid var(--gold-line); color: var(--cream-dim); font: 600 14px/1.5 var(--cjk); text-align: center; }

/* 成长记录写在纸上 */
.paper { position: relative; padding: 18px 20px 16px; border-radius: 8px; background: linear-gradient(180deg, var(--paper), #f1e3c8); color: var(--ink); box-shadow: 0 12px 30px rgba(0, 0, 0, .35); transform: rotate(-.6deg); }
.paper h3 { margin: 0 0 6px; font: 400 22px/1.2 var(--display); }
.paper .stage { margin: 0 0 10px; font: 500 13px/1.5 var(--cjk); color: var(--ink-soft); }
.tl { list-style: none; margin: 0; padding: 0; }
.tl li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 12px; padding: 12px 0; border-top: 1px dashed rgba(107, 85, 55, .35); font: 700 16px/1.3 var(--cjk); overflow-wrap: anywhere; }
.tl li .t { display: block; margin-top: 3px; font: 500 12px/1 var(--font); color: #8a6a3a; }
.tl li .p { font: 900 20px/1 var(--font); color: #c7842a; font-variant-numeric: tabular-nums; }
.tl li .p.neg { color: #8a6a3a; }
.tl li.muted { color: var(--ink-soft); font-weight: 500; }

/* 任务全屏：暗号纸条、相机、纸标签、结果 */
.overlay { position: fixed; inset: 0; z-index: 10; overflow: auto; background: var(--night); color: var(--cream); }
.overlay .scene { position: absolute; }
.overlay .hero { position: absolute; }
.overlay .page { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
.note { position: relative; margin: 10px 8px 0; padding: 22px 22px 20px; border-radius: 6px; background: linear-gradient(180deg, var(--paper), #f1e3c8); color: var(--ink); transform: rotate(-1.5deg); box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
.note::before { content: ""; position: absolute; left: 50%; top: -9px; width: 64px; height: 18px; transform: translateX(-50%) rotate(2deg); background: rgba(240, 194, 122, .7); border-radius: 2px; }
.note .label { font: 700 12px/1 var(--cjk); color: #8a6a3a; letter-spacing: .08em; }
.note .word { margin-top: 10px; font: 400 28px/1.35 var(--display); overflow-wrap: anywhere; }
.note p { margin: 10px 0 0; font: 500 14px/1.65 var(--cjk); color: var(--ink-soft); }
.camera { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 26px; }
.camera .round { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; border: 0; background: linear-gradient(180deg, #f5cf8b, #e0a34a); color: #3a2a10; font-size: 38px; box-shadow: 0 10px 28px rgba(224, 163, 74, .45), inset 0 2px 0 rgba(255, 255, 255, .6), 0 0 0 8px rgba(240, 194, 122, .18); cursor: pointer; }
.camera .round:active { transform: scale(.96); }
.camera span { font: 800 15px/1 var(--cjk); color: var(--cream); text-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.camera small { font: 500 12px/1.4 var(--cjk); color: rgba(246, 239, 226, .7); }
.camera-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.preview { margin-top: 14px; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px; border-radius: 22px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.preview img { width: 96px; height: 96px; border-radius: 14px; object-fit: cover; display: block; }
.preview b { display: block; font: 800 15px/1.3 var(--cjk); }
.preview small { display: block; margin-top: 3px; font: 500 12px/1.4 var(--cjk); color: var(--ink-soft); }
.q { margin: 22px 0 14px; font: 400 20px/1.3 var(--display); color: var(--cream); text-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.tags { display: flex; flex-wrap: wrap; gap: 12px; }
.tags button { display: inline-flex; align-items: center; min-height: 54px; padding: 0 22px; border: 0; border-radius: 8px; background: linear-gradient(180deg, var(--paper), var(--paper-2)); color: var(--ink); font: 700 17px/1 var(--cjk); box-shadow: 0 4px 10px rgba(0, 0, 0, .25); }
.tags button[aria-pressed="true"] { background: linear-gradient(180deg, #f5cf8b, #e0a34a); color: #3a2a10; box-shadow: 0 6px 16px rgba(224, 163, 74, .35); }
.cloud { position: relative; margin: 0 auto; max-width: 300px; padding: 16px 22px; border-radius: 28px; background: var(--cream); color: var(--ink); font: 400 17px/1.6 var(--display); text-align: center; box-shadow: var(--shadow); }
.cloud::before, .cloud::after { content: ""; position: absolute; background: var(--cream); border-radius: 50%; }
.cloud::before { width: 22px; height: 22px; left: 42px; bottom: -10px; }
.cloud::after { width: 12px; height: 12px; left: 30px; bottom: -22px; }
.gain { margin: 28px 0 0; text-align: center; font: 900 46px/1 var(--font); color: var(--gold); text-shadow: 0 2px 12px rgba(240, 194, 122, .35); font-variant-numeric: tabular-nums; }
.gain small { display: block; margin-top: 12px; font: 700 14px/1.4 var(--cjk); color: rgba(246, 239, 226, .7); }
.share-preview { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: var(--shadow); }

.toast { position: fixed; z-index: 20; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom)); transform: translateX(-50%); max-width: 90vw; padding: 12px 18px; border-radius: 999px; background: var(--cream); color: var(--ink); font: 700 14px/1.4 var(--cjk); box-shadow: var(--shadow); opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.show { opacity: 1; }
.center { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; gap: 14px; text-align: center; padding: 24px; }
.center h1 { margin: 0; font: 400 26px/1.3 var(--display); }
.muted { color: var(--cream-dim); }

/* 家长页：白天，白卡少字 */
body.day { background: #f6efe2; color: var(--ink); }
.day .scene { position: absolute; height: 320px; inset: 0 0 auto 0; background-position: center 30%; }
.day .scene::after { background: linear-gradient(180deg, rgba(42, 33, 24, .1), rgba(42, 33, 24, 0) 30%, rgba(246, 239, 226, 0) 70%, #f6efe2 100%); }
.day .page { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
.day .bar .title { color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .45); }
.day .pill { background: rgba(42, 33, 24, .45); border-color: rgba(255, 255, 255, .35); color: #fff; }
.day .stage-gap { height: 200px; }
.card { padding: 18px 18px 16px; border-radius: 22px; background: #fff; color: var(--ink); box-shadow: 0 8px 24px rgba(80, 60, 30, .12); }
.card + .card, .sheet + .card, .card + .sheet { margin-top: 12px; }
.card h2, .card h3 { margin: 0 0 6px; font: 400 21px/1.2 var(--display); color: var(--ink); }
.card p { margin: 0; font: 500 14px/1.6 var(--cjk); color: var(--ink-soft); }
.card .gbtn { margin-top: 12px; }
.handoff { margin-top: 12px; padding: 16px 18px; border-radius: 22px; background: var(--night); color: var(--cream); display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: center; box-shadow: var(--shadow); }
.handoff img { width: 76px; height: 76px; filter: drop-shadow(0 0 10px rgba(255, 217, 168, .5)); }
.handoff b { display: block; font: 400 19px/1.3 var(--display); }
.handoff small { display: block; margin-top: 4px; font: 500 12px/1.5 var(--cjk); color: rgba(246, 239, 226, .66); }
.handoff .gbtn { grid-column: 1 / -1; }
.day .tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: 14px 0 12px; padding: 4px; border-radius: 999px; background: rgba(42, 33, 24, .08); }
.day .tabs button { min-width: 0; min-height: 40px; padding: 0 4px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-soft); font: 700 13px/1.2 var(--cjk); }
.day .tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(80, 60, 30, .15); }
.day .prow { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #efe4d2; font: 700 15px/1.3 var(--cjk); }
.day .prow:first-of-type { border-top: 0; }
.day .prow small { display: block; margin-top: 3px; font: 500 12px/1.3 var(--cjk); color: #8a6a3a; }
.day .prow .st { font: 800 13px/1 var(--cjk); color: #8a6a3a; white-space: nowrap; }
.day .prow .st.ok { color: #c7842a; }
.day input, .day select, .day textarea { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid #e3d5bc; border-radius: 14px; background: #fff; color: var(--ink); font: 500 16px/1.4 var(--cjk); }
.day textarea { padding: 12px 14px; min-height: 120px; resize: vertical; }
.day label { font: 700 14px/1.4 var(--cjk); color: var(--ink); }
.day .form { display: grid; gap: 10px; margin-top: 10px; }
.day .form-error { min-height: 22px; color: #a33c19; font: 600 13px/1.5 var(--cjk); overflow-wrap: anywhere; }
.day .notice { padding: 12px 14px; border-radius: 14px; background: #f3e9d6; color: var(--ink); font: 500 14px/1.5 var(--cjk); }
.day .switch { position: relative; flex: none; width: 50px; height: 30px; }
.day .switch input { position: absolute; opacity: 0; pointer-events: none; width: 1px; min-height: 0; }
.day .switch span { display: block; width: 100%; height: 100%; border-radius: 999px; background: #d8ccb6; transition: background .15s; }
.day .switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.day .switch input:checked + span { background: #e0a34a; }
.day .switch input:checked + span::after { transform: translateX(20px); }
.day .btn-line { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid #d9c6a3; background: #fff; color: var(--ink); font: 700 14px/1 var(--cjk); text-decoration: none; }
.day .danger { border-color: #d9b6a8; color: #8a351b; }
.day .check-row, .day .radio-row { display: flex; align-items: center; gap: 10px; font: 600 15px/1.4 var(--cjk); }
.day .check-row input, .day .radio-row input { width: 22px; min-height: 22px; accent-color: #e0a34a; }
.day .toast { bottom: calc(24px + env(safe-area-inset-bottom)); }
.day .photo { display: block; width: 100%; max-height: 360px; object-fit: cover; border-radius: 14px; margin-top: 10px; }
.day dialog { width: min(90vw, 430px); padding: 22px; color: var(--ink); background: #f6efe2; border: 0; border-radius: 22px; }
.day dialog::backdrop { background: rgba(15, 20, 40, .55); }
.day .dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }
.day .eyebrow { margin: 0 0 4px; font: 700 13px/1.4 var(--cjk); color: #8a6a3a; }
.day .token { font: 800 34px/1.2 var(--font); color: #c7842a; letter-spacing: .04em; }
.day .entry-choice { width: 100%; padding: 18px; margin-top: 10px; text-align: left; color: var(--ink); background: #fff; border: 0; border-radius: 20px; box-shadow: 0 8px 24px rgba(80, 60, 30, .12); }
.day .entry-choice strong { display: block; font: 400 20px/1.3 var(--display); }
.day .entry-choice span { display: block; margin-top: 4px; font: 500 14px/1.5 var(--cjk); color: var(--ink-soft); }
.day .text-button { justify-self: start; padding: 4px 0; border: 0; background: none; color: var(--ink-soft); font: 700 14px/1 var(--cjk); }
.day .empty-state { padding: 16px; border-radius: 16px; background: #f3e9d6; color: var(--ink-soft); font: 500 14px/1.6 var(--cjk); }
.day .reminder { display: block; width: 100%; margin-top: 12px; padding: 14px 16px; border: 0; border-radius: 18px; background: #fff3dd; color: var(--ink); font: 700 14px/1.5 var(--cjk); text-align: left; box-shadow: 0 6px 18px rgba(80, 60, 30, .1); }

/* 家长页沿用 home.js 里已有的类名 */
.day .parent-form { display: grid; gap: 10px; margin-top: 12px; }
.day .parent-form h2 { margin: 0; font: 400 21px/1.2 var(--display); }
.day .parent-form fieldset { display: flex; gap: 22px; margin: 0; padding: 12px 14px; border: 1px solid #e3d5bc; border-radius: 14px; }
.day .parent-form legend { padding: 0 5px; font: 700 14px/1 var(--cjk); }
.day .parent-form .gbtn { justify-self: start; margin-top: 4px; }
.day .consent-copy { margin: 4px 0 0; font: 500 13px/1.7 var(--cjk); color: var(--ink-soft); }
.day .parent-head { margin-bottom: 4px; }
.day .spark-status, .day .section-intro { margin: 6px 0 0; font: 500 13px/1.5 var(--cjk); color: var(--ink-soft); }
.day .section-intro { margin: 0 0 12px; }
.day .submission-list, .day .task-list { display: grid; gap: 12px; }
.day .submission-card, .day .task-row { padding: 16px 18px; border-radius: 22px; background: #fff; box-shadow: 0 8px 24px rgba(80, 60, 30, .12); }
.day .submission-head, .day .task-row-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.day .submission-head strong, .day .task-row-top strong { font: 800 17px/1.3 var(--cjk); }
.day .submission-head time { font: 500 13px/1.5 var(--font); color: var(--ink-soft); }
.day .submission-detail, .day .submission-note { margin: 9px 0 0; font: 500 14px/1.6 var(--cjk); overflow-wrap: anywhere; }
.day .submission-note { padding: 10px 12px; border-radius: 12px; background: #f6efe2; }
.day .local-photo { margin-top: 12px; }
.day .local-photo p { margin: 0; font: 500 13px/1.5 var(--cjk); color: var(--ink-soft); }
.day .local-photo img { display: block; width: 100%; max-height: 360px; object-fit: cover; border-radius: 14px; }
.day .submission-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.day .btn-main { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; border: 0; border-radius: 999px; background: linear-gradient(180deg, #f5cf8b, #e0a34a); color: #3a2a10; font: 800 15px/1 var(--cjk); box-shadow: 0 4px 0 var(--gold-deep), inset 0 1px 0 rgba(255, 255, 255, .55); }
.day .btn-main:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--gold-deep); }
.day .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 1px solid #d9c6a3; background: #fff; color: var(--ink); font: 700 14px/1 var(--cjk); }
.day .great-check { display: flex; align-items: center; gap: 6px; margin-left: auto; font: 600 14px/1 var(--cjk); }
.day .great-check input { width: 22px; min-height: 22px; accent-color: #e0a34a; }
.day .task-row-top small { display: block; margin-top: 4px; font: 500 13px/1.4 var(--cjk); color: var(--ink-soft); }
.day .task-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.day .task-controls label { font: 600 12px/1.4 var(--cjk); color: var(--ink-soft); }
.day .task-controls select, .day .task-controls input { min-height: 44px; margin-top: 4px; padding: 0 10px; border-radius: 12px; font-size: 15px; }
.day #tasksForm > .gbtn { margin-top: 16px; }
.day .settings-block + .settings-block { margin-top: 12px; }
.day .settings-block .check-row { margin-bottom: 8px; }
.day .danger-zone { box-shadow: inset 0 0 0 1px #e9cfc4, 0 8px 24px rgba(80, 60, 30, .12); }
.day .created-passport p { margin: 8px 0 14px; font: 500 14px/1.6 var(--cjk); color: var(--ink-soft); }
.day .pin-dialog .parent-form { margin: 0; }
.day #dashboardStatus { margin: 0 0 12px; }
.day #entry .entry-choices { margin-top: 12px; }
@media (max-width: 390px) { .day .tabs button { font-size: 12px; } .day .great-check { width: 100%; margin-left: 0; } }

/* 老师端：教室的窗，大按钮，一只手就能点 */
.teacher-page .section-title { color: var(--ink); text-shadow: none; }
.teacher-page .toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.day .class-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; text-align: center; }
.day .class-summary strong { display: block; font: 900 clamp(22px, 6.5vw, 34px)/1.15 var(--font); color: #c7842a; font-variant-numeric: tabular-nums; }
.day .class-summary span { display: block; margin-top: 6px; font: 600 11px/1.3 var(--cjk); color: var(--ink-soft); }
.day .stu { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 14px 0; }
.day .stu + .stu { border-top: 1px solid #efe4d2; }
.day .stu .n { font: 800 17px/1.3 var(--cjk); color: var(--ink); }
.day .stu .n small { margin-left: 8px; font: 600 13px/1 var(--font); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.day .stu .acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.day .stu .acts button { min-height: 52px; padding: 0 6px; border-radius: 999px; border: 1px solid #d9c6a3; background: #fff; color: var(--ink); font: 800 14px/1.2 var(--cjk); }
.day .stu .acts button.a { border: 0; background: linear-gradient(180deg, #f5cf8b, #e0a34a); color: #3a2a10; box-shadow: 0 4px 0 var(--gold-deep), inset 0 1px 0 rgba(255, 255, 255, .55); }
.day .stu .acts button:active { transform: translateY(2px); }
.day .stu .acts select { grid-column: 1 / -1; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid #e3d5bc; background: #fff; color: var(--ink-soft); font: 600 14px/1 var(--cjk); }
.day .rec { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 12px 0; font: 600 14px/1.4 var(--cjk); color: var(--ink); }
.day .rec + .rec { border-top: 1px solid #efe4d2; }
.day .rec.off { opacity: .45; text-decoration: line-through; }
.day .rec .muted { font: 500 12px/1.3 var(--font); color: var(--ink-soft); }
.day .rec button { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid #d9c6a3; background: #fff; color: var(--ink); font: 700 12px/1 var(--cjk); }
.day #list > .muted, .day #recent > .muted { margin: 0; color: var(--ink-soft); }
