:root {
  --ink: #262345;
  --muted: #8b87a6;
  --line: #eceaf5;
  --paper: #ffffff;
  --brand: #6d5ce7;
  --brand-soft: #f0edff;
  --green: #2fa36b;
  --orange: #ff8a5b;
  --radius: 24px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background-color: #f8f6ff;
  background-image:
    radial-gradient(900px 500px at 5% -5%, #e9e4ff 0%, transparent 60%),
    radial-gradient(700px 420px at 100% 0%, #ffeadc 0%, transparent 55%),
    radial-gradient(#dcd8ef 1px, transparent 1px);
  background-size: auto, auto, 26px 26px;
  min-height: 100vh;
}
.hidden { display: none !important; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 编辑端 ---------- */
.app-shell { max-width: 1240px; margin: 0 auto; padding: 34px 24px 80px; }
.app-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, #8b7cf6, #5b49d6); box-shadow: 0 10px 24px rgba(109,92,231,.28); }
.brand-mark svg { width: 28px; height: 28px; }
.brand-title { font-size: 24px; font-weight: 800; letter-spacing: -.5px; }
.brand-sub { color: var(--muted); font-size: 13px; margin-top: 3px; }
.app-nav { display: flex; gap: 10px; }
.nav-btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: #575274; background: #fff; border: 1px solid var(--line); padding: 11px 18px; border-radius: 14px; font-size: 14px; font-weight: 600; box-shadow: 0 4px 14px rgba(80,60,160,.04); }
.nav-btn svg { width: 18px; height: 18px; }
.nav-btn:hover { transform: translateY(-1px); }
.nav-btn.primary { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 8px 20px rgba(109,92,231,.24); }

.welcome-banner { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; min-height: 168px; padding: 28px 36px; border-radius: 30px; background: linear-gradient(115deg, #eee9ff 0%, #f6f0ff 45%, #fff0e4 100%); border: 1px solid #e9e3fb; margin-bottom: 24px; }
.welcome-kicker { display: inline-flex; align-items: center; gap: 6px; color: #7564d8; font-size: 13px; font-weight: 700; }
.welcome-kicker svg { width: 16px; height: 16px; }
.welcome-left h2 { font-size: clamp(22px, 2.2vw, 30px); margin: 10px 0 8px; letter-spacing: -.5px; }
.welcome-left p { color: #7d7797; font-size: 14px; }
.phone-tip { margin-top: 9px !important; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px !important; }
.phone-tip b { font-family: ui-monospace, Consolas, monospace; color: #5b49d6; background: #fff; border: 1px solid #e6e1fb; border-radius: 8px; padding: 3px 9px; font-size: 12.5px; }
.phone-tip button { border: 1px solid #ddd6f8; background: #fff; color: #6d5ce7; font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 999px; cursor: pointer; }
.phone-tip button:hover { background: #f4f1ff; }
.welcome-art { position: relative; width: 220px; height: 120px; flex: none; }
.planet { position: absolute; border-radius: 50%; }
.planet-a { width: 88px; height: 88px; right: 24px; top: 12px; background: linear-gradient(140deg, #ffc4a3, #ff8a5b); box-shadow: inset -12px -10px 0 rgba(0,0,0,.06), 0 12px 26px rgba(255,138,91,.25); }
.planet-a::after { content: ""; position: absolute; left: -28px; top: 42px; width: 144px; height: 18px; border: 5px solid #ffb98f; border-radius: 50%; transform: rotate(-18deg); }
.planet-b { width: 38px; height: 38px; left: 34px; bottom: 12px; background: linear-gradient(140deg, #8ce0e8, #38b6c4); box-shadow: 0 8px 18px rgba(56,182,196,.25); }
.big-star { position: absolute; left: 6px; top: 8px; width: 34px !important; height: 34px !important; color: #ffc247; fill: #ffc247; stroke: #e8a521; }

.profile-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-bottom: 22px; }
.profile-card { display: flex; align-items: center; gap: 15px; background: #fff; border: 2px solid #fff; border-radius: 22px; padding: 16px 18px; cursor: pointer; box-shadow: 0 10px 28px rgba(80,60,160,.07); transition: transform .15s, border-color .15s; }
.profile-card:hover { transform: translateY(-2px); }
.profile-card.selected { border-color: var(--kid); box-shadow: 0 12px 30px color-mix(in srgb, var(--kid) 22%, transparent); }
.profile-avatar { flex: none; box-shadow: 0 0 0 5px var(--kid-soft); border-radius: 50%; }
.avatar { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; display: block; }
.avatar-initial { display: grid; place-items: center; background: var(--kid, var(--brand)); color: #fff; font-size: 26px; font-weight: 800; }
.profile-meta { flex: 1; min-width: 0; }
.profile-name { font-size: 18px; font-weight: 800; }
.profile-sub { color: var(--muted); font-size: 12px; margin-top: 3px; }
.profile-progress { height: 7px; border-radius: 99px; background: var(--kid-soft); margin-top: 10px; overflow: hidden; }
.profile-progress i { display: block; height: 100%; background: var(--kid); border-radius: 99px; transition: width .5s; }
.icon-btn { width: 34px; height: 34px; display: grid; place-items: center; border: 0; background: #f5f4fb; color: #8b87a6; border-radius: 10px; cursor: pointer; flex: none; }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover { background: #edeafb; color: var(--brand); }
.icon-btn.danger:hover { background: #ffe9e9; color: #e25656; }
.add-profile { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px; background: rgba(255,255,255,.6); border: 2px dashed #d9d3ef; border-radius: 22px; color: #8b84ad; font-size: 13px; font-weight: 600; cursor: pointer; min-height: 106px; }
.add-profile:hover { border-color: var(--brand); color: var(--brand); background: #fff; }
.add-profile svg { width: 24px; height: 24px; }

.layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; align-items: start; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: 0 12px 32px rgba(80,60,160,.06); }
.card h2 { font-size: 20px; font-weight: 800; }
.card-kicker { color: #9b95b8; font-size: 12px; font-weight: 700; letter-spacing: 1px; margin-bottom: 4px; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.count-badge { background: var(--brand-soft); color: var(--brand); font-size: 13px; font-weight: 800; padding: 7px 14px; border-radius: 99px; }
.hint { color: var(--muted); font-size: 12px; line-height: 1.7; margin-top: 12px; }
.add-form { display: flex; gap: 10px; }
.input-wrap { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; border: 1.5px solid #e6e2f2; border-radius: 14px; padding: 0 14px; background: #fcfbff; }
.input-wrap svg { width: 18px; height: 18px; color: #a49cc4; flex: none; }
.input-wrap input { border: 0; background: transparent; box-shadow: none !important; padding: 13px 0; }
.min-wrap { display: flex; align-items: center; gap: 4px; border: 1.5px solid #e6e2f2; border-radius: 14px; padding: 0 12px; background: #fcfbff; }
.min-wrap input { width: 52px; border: 0; background: transparent; text-align: center; padding: 13px 0; font-weight: 700; box-shadow: none !important; }
.min-wrap span { color: var(--muted); font-size: 12px; }
input { font-family: inherit; outline: none; color: var(--ink); }
input:focus { border-color: var(--brand); }
button { font-family: inherit; }
.btn-add { border: 0; background: linear-gradient(140deg, #8b7cf6, #5b49d6); color: #fff; border-radius: 14px; padding: 0 20px; font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: 0 8px 18px rgba(109,92,231,.22); }
.btn-add:hover { filter: brightness(1.05); }
.task-list { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.task-item { display: flex; align-items: center; gap: 14px; border: 1.5px solid #eeeaf6; border-radius: 18px; padding: 12px 14px; background: #fff; }
.task-no { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 9px; background: #f3f1fb; color: #9b93bd; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.task-item.running .task-no { background: #ffe6d6; color: #e85d2a; }
.task-item.done .task-no { background: #e4f6ec; color: #2fa36b; }
.task-item.running { border-color: #ffc4a5; background: #fff8f3; }
.task-item.done { background: #f8fcfa; border-color: #d9f0e4; }
.task-toggle { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; background: #efecff; color: #6d5ce7; cursor: pointer; }
.task-toggle svg { width: 18px; height: 18px; }
.task-item.running .task-toggle { background: var(--orange); color: #fff; }
.task-item.done .task-toggle { background: #d9f3e6; color: var(--green); }
.task-info { flex: 1; min-width: 0; }
.task-name { font-size: 15px; font-weight: 700; }
.task-item.done .task-name { text-decoration: line-through; color: #9aa3a0; }
.task-meta { color: var(--muted); font-size: 12px; margin-top: 3px; }
.task-state { font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 99px; white-space: nowrap; }
.task-state.pending { background: #f2f1f8; color: #8b87a6; }
.task-state.running { background: #ffe8d8; color: #d9672f; }
.task-state.done { background: #dcf3e7; color: var(--green); }
.task-actions { display: flex; gap: 6px; }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 12px; color: #a5a0bd; padding: 42px 20px; font-size: 14px; border: 2px dashed #e9e5f5; border-radius: 18px; }
.empty-state svg { width: 44px; height: 44px; color: #c4bce8; }

.voice-card { background: linear-gradient(160deg, #fff 60%, #f7f4ff); }
.voice-card h2 { margin-bottom: 16px; }
.voice-bubble { display: flex; align-items: center; gap: 12px; min-height: 66px; background: #f0edff; border-radius: 18px; padding: 14px 16px; font-size: 14px; color: #4c4570; line-height: 1.5; }
.bubble-icon { width: 36px; height: 36px; flex: none; display: grid; place-items: center; background: #fff; border-radius: 12px; color: var(--brand); }
.voice-form { display: flex; gap: 10px; margin-top: 14px; }
.voice-form input { flex: 1; min-width: 0; border: 1.5px solid #e6e2f2; border-radius: 14px; padding: 12px 14px; font-size: 14px; background: #fff; }
.btn-send { width: 48px; border: 0; border-radius: 14px; background: var(--brand); color: #fff; cursor: pointer; display: grid; place-items: center; }
.btn-send svg { width: 18px; height: 18px; }
.examples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #e9e5f5; color: #615a83; border-radius: 99px; padding: 8px 13px; font-size: 12px; font-weight: 600; cursor: pointer; }
.chip svg { width: 14px; height: 14px; color: var(--brand); }
.chip:hover { background: var(--brand-soft); }
.tip-box { margin-top: 22px; background: #fff8e8; border: 1px solid #ffefcb; border-radius: 18px; padding: 16px; }
.tip-title { display: flex; align-items: center; gap: 6px; color: #b47b12; font-size: 13px; font-weight: 800; }
.tip-title svg { width: 16px; height: 16px; }
.tip-box p { color: #8a7448; font-size: 12px; line-height: 1.7; margin-top: 8px; }
.tip-box .small { color: #b0a078; }

/* ---------- 弹窗 ---------- */
.modal { position: fixed; inset: 0; background: rgba(32,26,62,.42); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 20; }
.modal-box { background: #fff; border-radius: 26px; padding: 28px; width: min(430px, 92vw); box-shadow: 0 30px 70px rgba(30,20,70,.25); }
.modal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.modal-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--brand-soft); color: var(--brand); }
.modal-box h2 { font-size: 19px; }
.field-label { display: block; font-size: 13px; color: #7d7797; font-weight: 600; margin: 16px 0 8px; }
.modal-box input[type=text] { width: 100%; border: 1.5px solid #e6e2f2; border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.modal-box input[type=file] { width: 100%; font-size: 13px; color: #7d7797; }
.avatar-picker { display: flex; align-items: center; gap: 14px; }
.avatar-preview { width: 62px; height: 62px; border-radius: 50%; flex: none; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 24px; font-weight: 700; overflow: hidden; border: 2px solid #efeafd; }
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.avatar-choose { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 12px; background: #f5f4fb; color: #6c6690; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.avatar-choose:hover { background: #edeafb; color: var(--brand); }
.avatar-choose svg { width: 15px; height: 15px; }
.modal-actions { display: flex; gap: 10px; margin-top: 24px; }
.btn-save { flex: 1; border: 0; background: var(--brand); color: #fff; border-radius: 12px; padding: 12px; font-weight: 700; cursor: pointer; }
.btn-cancel { border: 1px solid var(--line); background: #f8f7fc; color: #6b6685; border-radius: 12px; padding: 12px 18px; font-weight: 600; cursor: pointer; }
.btn-delete { width: 44px; border: 0; background: #ffeaea; color: #dc5b5b; border-radius: 12px; cursor: pointer; display: grid; place-items: center; }
.btn-delete svg { width: 18px; height: 18px; }

/* ---------- 电视大屏 ---------- */
.tv-shell { min-height: 100vh; padding: 2.4vh 3vw 1.6vh; display: flex; flex-direction: column; color: #eef0ff; background-color: #12122c;
  background-image: radial-gradient(circle at 18% -10%, #34316d 0%, transparent 50%), radial-gradient(circle at 95% 0%, #233e63 0%, transparent 45%), radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: auto, auto, 64px 64px; }
.tv-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,.1); padding-bottom: 1.6vh; }
.tv-brand { display: flex; align-items: center; gap: 16px; }
.tv-brand-mark { width: clamp(46px, 4.2vw, 68px); height: clamp(46px, 4.2vw, 68px); display: grid; place-items: center; border-radius: 18px; background: linear-gradient(140deg, #8b7cf6, #5b49d6); box-shadow: 0 10px 26px rgba(109,92,231,.35); }
.tv-brand-mark svg { width: 55%; height: 55%; }
.tv-title { font-size: clamp(26px, 2.8vw, 46px); font-weight: 800; letter-spacing: 1px; }
.tv-date { color: #9b9dc4; font-size: clamp(12px, 1.1vw, 19px); margin-top: 4px; }
.tv-clock { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 99px; padding: 8px 24px; font-variant-numeric: tabular-nums; }
.tv-clock svg { width: clamp(20px, 1.8vw, 30px); height: clamp(20px, 1.8vw, 30px); color: #a5a0f5; }
.tv-clock span { font-size: clamp(28px, 3.2vw, 52px); font-weight: 800; }
.tv-kids { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 2.4vw; margin-top: 2vh; min-height: 0; }
.tv-kid { display: flex; flex-direction: column; min-height: 0; padding: clamp(16px, 1.8vw, 30px); border-radius: 30px; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.tv-kid.cheer { animation: cheer 2.4s ease-in-out infinite; }
@keyframes cheer { 0%,100% { box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 0 0 rgba(255,193,71,0); } 50% { box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 0 34px rgba(255,193,71,.18); } }
.tv-kid-head { display: flex; align-items: center; gap: 16px; margin-bottom: 1.6vh; }
.tv-kid-avatar { box-shadow: 0 0 0 4px var(--kid-soft); border-radius: 50%; display: grid; place-items: center; }
.tv-avatar { width: clamp(48px, 4.6vw, 76px); height: clamp(48px, 4.6vw, 76px); border-radius: 50%; object-fit: cover; display: block; }
.tv-kid-name { font-size: clamp(24px, 2.5vw, 42px); font-weight: 800; }
.tv-kid-count { margin-left: auto; background: rgba(255,255,255,.08); border-radius: 99px; padding: 6px 18px; font-size: clamp(14px, 1.3vw, 22px); color: #aeb0d4; }
.tv-kid-count b { color: var(--kid); font-size: 1.25em; }
.tv-mission { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 30px); background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.07); border-radius: 26px; padding: clamp(14px, 1.6vw, 26px); }
.ring-wrap { position: relative; width: clamp(140px, 15vw, 250px); aspect-ratio: 1; flex: none; }
.progress-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: rgba(255,255,255,.09); stroke-width: 13; }
.ring-value { fill: none; stroke-width: 13; stroke-linecap: round; transition: stroke-dashoffset .6s linear; }
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ring-time { font-size: clamp(24px, 2.5vw, 42px); font-weight: 800; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; }
.ring-time b { display: block; color: var(--kid); font-size: 1.35em; margin-top: 2px; }
.ring-time.over b { color: #ff8a8a; }
.ring-time small { font-size: .55em; }
.ring-label { color: #a5a7cd; font-size: clamp(11px, 1vw, 17px); margin-top: 4px; max-width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ring-trophy { color: #ffd166; }
.ring-trophy svg { width: clamp(40px, 4.5vw, 70px); height: clamp(40px, 4.5vw, 70px); }
.mission-info { min-width: 0; }
.mission-kicker { color: var(--kid); font-size: clamp(12px, 1.1vw, 18px); font-weight: 800; letter-spacing: 2px; }
.mission-name { font-size: clamp(22px, 2.4vw, 40px); font-weight: 800; margin: 8px 0; line-height: 1.2; word-break: break-all; }
.mission-sub { color: #a5a7cd; font-size: clamp(11px, 1.05vw, 18px); line-height: 1.5; }
.tv-list-title { display: flex; align-items: center; gap: 7px; color: #8f92bb; font-size: clamp(12px, 1.1vw, 18px); letter-spacing: 2px; margin: 2vh 0 1vh; }
.tv-list-title svg { width: 16px; height: 16px; color: var(--kid); }
.tv-task-list { flex: 1; display: flex; flex-direction: column; gap: clamp(6px, .7vh, 12px); overflow: hidden; }
.tv-task { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); border-radius: 16px; padding: clamp(9px, 1vh, 18px) clamp(12px, 1.2vw, 20px); }
.tv-task.running { background: rgba(255,255,255,.09); border-color: var(--kid); }
.tv-task.done { opacity: .55; }
.tv-task-dot { width: clamp(26px, 2.2vw, 38px); height: clamp(26px, 2.2vw, 38px); flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.09); color: #9b9dc4; }
.tv-task.running .tv-task-dot { background: var(--kid); color: #fff; }
.tv-task.done .tv-task-dot { background: rgba(47,163,107,.2); color: #7ee0ae; }
.tv-task-dot svg { width: 55%; height: 55%; }
.tv-task-name { flex: 1; min-width: 0; font-size: clamp(16px, 1.7vw, 28px); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-task.done .tv-task-name { text-decoration: line-through; }
.tv-task-no { flex: none; width: clamp(20px, 1.8vw, 30px); height: clamp(20px, 1.8vw, 30px); display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,.08); color: #b9bce0; font-size: clamp(12px, 1.1vw, 18px); font-weight: 700; font-variant-numeric: tabular-nums; }
.tv-task.running .tv-task-no { background: var(--kid); color: #fff; }
.tv-task-meta { color: #9b9dc4; font-size: clamp(11px, 1.05vw, 18px); font-variant-numeric: tabular-nums; }
.tv-empty { color: #7d7fa5; font-size: clamp(13px, 1.2vw, 20px); padding: 16px 0; }
.tv-footer { display: flex; align-items: center; justify-content: center; gap: 14px; color: #7d7fa5; font-size: clamp(11px, 1vw, 17px); margin-top: 1.4vh; }
.tv-footer svg { width: 16px; height: 16px; color: #ffc247; }
.tv-footer b { color: #c7c4ff; }

/* ---------- 统计页 ---------- */
.stats-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.kid-tabs, .range-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.kid-tab, .range-btn { background: #fff; color: #6b6685; border: 1px solid var(--line); border-radius: 14px; padding: 10px 18px; font-size: 14px; font-weight: 700; cursor: pointer; }
.kid-tab.selected, .range-btn.selected { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 8px 18px rgba(109,92,231,.2); }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.summary-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; box-shadow: 0 10px 26px rgba(80,60,160,.05); }
.summary-label { color: var(--muted); font-size: 13px; }
.summary-value { font-size: 34px; font-weight: 800; color: var(--brand); margin-top: 8px; line-height: 1; font-variant-numeric: tabular-nums; }
.summary-unit { color: var(--muted); font-size: 12px; margin-top: 6px; }
.insight-card { margin-bottom: 20px; background: linear-gradient(120deg, #fff 65%, #f3efff); }
.insight-card h2 { margin: 6px 0 8px; font-size: 22px; }
.insight-card p { color: #6b6685; font-size: 14px; line-height: 1.7; }
.chart-card, .table-card { margin-bottom: 20px; }
.chart { margin-top: 18px; }
.legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px; }
.legend-item { display: flex; align-items: center; gap: 7px; color: #6b6685; font-size: 13px; }
.legend-item i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.stat-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 14px; }
.stat-table th { text-align: left; color: var(--muted); font-size: 12px; font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.stat-table td { padding: 13px 12px; border-bottom: 1px solid #f3f1f8; color: #575274; }
.stat-table tr:last-child td { border-bottom: 0; }
.empty-cell { text-align: center; color: var(--muted); padding: 30px !important; }

.task-state.paused { background: #fff0d8; color: #b47b12; }
.tv-task.paused { border-color: rgba(242,177,52,.55); }
.voice-toast { position: fixed; left: 50%; bottom: 7vh; transform: translate(-50%, 14px); display: flex; align-items: center; gap: 12px; max-width: min(760px, 90vw); background: rgba(255,255,255,.96); color: var(--ink); border-radius: 99px; padding: 14px 26px; font-size: clamp(14px, 1.4vw, 22px); font-weight: 700; box-shadow: 0 18px 45px rgba(0,0,0,.3); opacity: 0; transition: opacity .25s, transform .25s; z-index: 10; }
.voice-toast.show { opacity: 1; transform: translate(-50%, 0); }
.voice-toast svg { width: 22px; height: 22px; color: var(--brand); flex: none; }
.tv-kid-streak { display: flex; align-items: center; gap: 5px; color: #ffc247; font-size: clamp(11px, 1vw, 17px); margin-left: auto; white-space: nowrap; }
.tv-kid-streak svg { width: 15px; height: 15px; fill: #ffc247; stroke: #e8a521; }
.tv-kid-count { margin-left: 0; }

@media (max-width: 900px) {
  .layout, .tv-kids { grid-template-columns: 1fr; }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .welcome-art { display: none; }
  .tv-shell { min-height: auto; }
}
