:root {
  --ink: #f7fbff;
  --muted: #abc6e4;
  --purple: #18a9ff;
  --purple-dark: #0875c2;
  --lavender: #102d61;
  --green: #4cf2a1;
  --red: #ff6079;
  --yellow: #ffe53b;
  --line: rgba(119, 200, 255, .28);
  --surface: #0c285a;
  --bg: #061634;
  font-family: Bahnschrift, "Arial Narrow", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

html { background: #061634; }
body {
  color: var(--ink);
  background:
    linear-gradient(rgba(21, 94, 174, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 94, 174, .08) 1px, transparent 1px),
    radial-gradient(circle at 85% 0, rgba(28, 168, 255, .33), transparent 25rem),
    linear-gradient(160deg, #071a3d, #041027 70%, #020a18);
  background-size: 42px 42px, 42px 42px, auto, auto;
  background-attachment: fixed;
}
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid var(--yellow) !important; outline-offset: 4px; }
.parent-topbar { border-bottom: 1px solid rgba(116,201,255,.2); }
.parent-brand { color: #fff; }
.parent-brand > span { border-radius: 0; clip-path: polygon(10% 0,100% 0,88% 100%,0 100%); color: #071c42; background: var(--yellow); box-shadow: 6px 6px 0 #0d67aa; }
.parent-brand strong { text-transform: uppercase; letter-spacing: .05em; }
.parent-brand small { color: #8bd7ff; }
.logout, .refresh { border-color: rgba(121,206,255,.32); border-radius: 3px; color: #fff; background: #0b2c63; text-transform: uppercase; }
.logout:hover, .refresh:hover { color: #071a3d; background: var(--yellow); }
.eyebrow { color: #74d1ff; font-size: .78rem; }
.login-card, .add-card, .panel, .summary-grid article {
  border: 1px solid rgba(120,205,255,.29);
  border-radius: 4px;
  color: #fff;
  background: linear-gradient(155deg, rgba(17,57,118,.98), rgba(6,25,63,.98));
  box-shadow: 0 22px 55px rgba(0,5,25,.38);
}
.login-card { position: relative; overflow: hidden; box-shadow: 0 0 0 6px rgba(20,111,184,.16), 0 30px 75px rgba(0,0,0,.5); }
.login-card::before { content: "PARENT CONTROL"; position: absolute; top: 18px; right: -45px; width: 170px; padding: 5px 0; color: #061634; background: var(--yellow); font-size: .7rem; font-weight: 950; letter-spacing: .13em; transform: rotate(38deg); }
.login-icon { border-radius: 4px; color: #081b40; background: var(--yellow); box-shadow: 7px 7px 0 #0b6bab; }
.login-card h1, .dashboard-head h1 {
  color: #fff;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  text-transform: uppercase;
  letter-spacing: .035em;
  text-shadow: 0 5px 0 #075b99;
}
.login-card h1 { font-size: 2.55rem; line-height: 1; }
.login-card p, .dashboard-head p, .add-card p { color: #b6cee7; }
.login-card p strong { color: var(--yellow); letter-spacing: .08em; }
.login-card input, #parentWordForm input, .reward-admin-card input, .reward-admin-card select {
  border-color: #245797;
  border-radius: 3px;
  color: #fff;
  background: #061a40;
}
.login-card input::placeholder, #parentWordForm input::placeholder, .reward-admin-card input::placeholder { color: #789abd; }
.login-card input:focus, #parentWordForm input:focus, .reward-admin-card input:focus, .reward-admin-card select:focus { border-color: var(--yellow); }
.login-card button, #parentWordForm button, .reward-admin-card button, .suggestion-buttons button:first-child {
  border-radius: 3px;
  color: #061634;
  background: var(--yellow);
  box-shadow: 0 6px 0 #ac8500;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.login-message { color: #ff91a4; }
.dashboard-head h1 { font-size: clamp(2.5rem, 5vw, 4.8rem); line-height: .95; }
.dashboard-head label { color: #a6c4e3; text-transform: uppercase; }
.dashboard-head select { border-color: rgba(120,205,255,.3); border-radius: 3px; color: #fff; background: #0a2b61; }
.add-card h2, .panel h2 { color: #fff; text-transform: uppercase; letter-spacing: .025em; }
.suggestion { border: 1px solid #349ddd; border-radius: 3px; background: #0a2b61; }
.suggestion small, .suggestion p { color: #a9c7e5; }
.suggestion-buttons button:last-child { color: #fff; background: #123c78; }
.summary-grid article { position: relative; overflow: hidden; }
.summary-grid article::after { content: ""; position: absolute; left: 0; bottom: 0; width: 70%; height: 5px; background: var(--yellow); transform: skewX(-34deg); transform-origin: left; }
.summary-grid article > span { border-radius: 3px; background: #17498a; }
.summary-grid small { color: #a5c4e2; text-transform: uppercase; letter-spacing: .04em; }
.summary-grid strong { color: #fff; font-size: 1.7rem; }
.panel-head { border-bottom: 1px solid rgba(119,200,255,.18); padding-bottom: 14px; }
.legend, .day-column small, .stack-row small, .recent-row time, .recent-row small, .privacy-note { color: #9ebddd; }
.legend i { border-radius: 2px; background: var(--yellow); }
.day-column i { border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--yellow), #16b5ef); box-shadow: 0 0 14px rgba(38,190,255,.25); }
.stack-row, .recent-row { border-color: rgba(122,204,255,.16); }
.score { border-radius: 3px; color: #0a3d28; background: #8cf5bd; }
.score.low { color: #fff; background: #d8415b; }
.empty { border: 1px dashed rgba(120,205,255,.24); border-radius: 3px; color: #9fbddd; background: #061936; }
.parent-toast { border: 1px solid #5dd3ff; border-radius: 3px; background: #071e46; }

@media (max-width: 560px) {
  .parent-main { padding-inline: 12px; }
  .login-card { padding: 32px 20px; }
  .login-card h1 { font-size: 2.2rem; }
  .dashboard-head h1 { font-size: 2.65rem; }
  .summary-grid article, .panel, .add-card { border-radius: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Current profile, content-control and voice surfaces. */
.admin-view { color: #fff; }
.reward-admin-card {
  border: 1px solid rgba(120,205,255,.3);
  border-radius: 4px;
  color: #fff;
  background: linear-gradient(150deg, rgba(17,57,118,.98), rgba(6,25,63,.98));
  box-shadow: 0 22px 55px rgba(0,5,25,.34);
}
.reward-admin-card h2 { color: #fff; text-transform: uppercase; letter-spacing: .025em; }
.reward-admin-card p, .profile-help, .voice-privacy { color: #a9c7e5; }
.reward-admin-card label { color: #b7d1e9; text-transform: uppercase; letter-spacing: .035em; }
.reward-admin-card input, .reward-admin-card select, .lesson-limit select {
  border: 1px solid #285c98;
  border-radius: 3px;
  color: #fff;
  background: #061a40;
}
.reward-current {
  border: 1px solid #d1a600;
  border-radius: 3px;
  color: #263554;
  background: #fff0a0;
}
.profile-row, .content-checks label {
  border: 1px solid rgba(120,205,255,.22);
  border-radius: 3px;
  color: #fff;
  background: #071f4b;
}
.profile-row small, .content-checks small { color: #9ebede; }
.profile-row button {
  border: 1px solid #3777b7;
  border-radius: 3px;
  color: #fff;
  background: #0b326d;
  text-transform: uppercase;
  letter-spacing: .035em;
}
.profile-row .open-control { border-color: #ffe53b; color: #071a3d; background: var(--yellow); box-shadow: 0 5px 0 #a77d00; }
.content-checks input { accent-color: var(--yellow); }
.dashboard-actions { color: #b5cee7; }
.dashboard-actions label { text-transform: uppercase; letter-spacing: .04em; }
#parentWordForm { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
#parentWordForm input { min-width: 0; }
.voice-row {
  border-color: rgba(120,205,255,.2);
  border-radius: 3px;
  color: #fff;
  background: #071f4b;
}
.voice-row small { color: #9ebede; }
.voice-row audio { color-scheme: dark; }
.content-admin-card form { color: #fff; }
.content-admin-card button, #rewardForm button { border: 0; border-radius: 3px; color: #061634; background: var(--yellow); box-shadow: 0 6px 0 #a87f00; font-weight: 900; text-transform: uppercase; }
.admin-profile-card { position: relative; overflow: hidden; }
.admin-profile-card::after { content: "ACCESS"; position: absolute; top: 18px; right: -38px; width: 150px; padding: 5px 0; color: #061634; background: var(--yellow); font-size: .66rem; font-weight: 950; text-align: center; letter-spacing: .14em; transform: rotate(38deg); }

@media (max-width: 700px) {
  .dashboard-actions { justify-content: flex-start; }
  #parentWordForm { grid-template-columns: 1fr; }
  .reward-admin-card { border-radius: 3px; }
}

/* White-mode command center. */
:root {
  --ink: #102451;
  --muted: #58749b;
  --purple: #0d8bff;
  --purple-dark: #0669c8;
  --lavender: #e8f5ff;
  --green: #24b77b;
  --red: #e43e62;
  --yellow: #ffe63d;
  --line: #b8d9f1;
  --surface: #fff;
  --bg: #eef8ff;
  color: var(--ink);
  background: var(--bg);
}
html { background: #eef8ff; }
body {
  color: var(--ink);
  background:
    linear-gradient(rgba(20,133,228,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,133,228,.06) 1px, transparent 1px),
    radial-gradient(circle at 86% 0, rgba(42,177,255,.2), transparent 28rem),
    linear-gradient(165deg, #fbfdff, #edf8ff 66%, #e7f4ff);
  background-size: 46px 46px, 46px 46px, auto, auto;
}
.parent-topbar { border-bottom-color: #b7d9f2; }
.parent-brand { color: #102451; }
.parent-brand > span { color: #102451; box-shadow: 6px 6px 0 #49b3ef; }
.parent-brand small { color: #2879b9; }
.logout, .refresh { border-color: #9fccec; color: #174d7e; background: #fff; }
.logout:hover, .refresh:hover { color: #102451; background: #ffe63d; }
.eyebrow { color: #087dce; }
.login-card, .add-card, .panel, .summary-grid article, .reward-admin-card {
  color: #102451;
  border-color: #a9d2f0;
  background: rgba(255,255,255,.97);
  box-shadow: 0 20px 48px rgba(31,104,170,.14);
}
.login-card { box-shadow: 0 0 0 6px rgba(31,145,218,.12), 0 30px 70px rgba(31,104,170,.2); }
.login-icon { color: #102451; box-shadow: 7px 7px 0 #46b0ed; }
.login-card h1, .dashboard-head h1 { color: #0d4f9b; text-shadow: 0 4px 0 #c1eaff; }
.login-card p, .dashboard-head p, .add-card p, .reward-admin-card p, .profile-help, .voice-privacy { color: #58759a; }
.login-card input, #parentWordForm input, .reward-admin-card input, .reward-admin-card select, .lesson-limit select {
  color: #102451;
  border-color: #9dcbe9;
  background: #fff;
}
.login-card input::placeholder, #parentWordForm input::placeholder, .reward-admin-card input::placeholder { color: #809bb4; }
.dashboard-head label, .reward-admin-card label { color: #527197; }
.dashboard-head select { color: #123e6a; border-color: #9fcbe9; background: #fff; }
.add-card h2, .panel h2, .reward-admin-card h2 { color: #102451; }
.suggestion { border-color: #8bc6ea; background: #eaf7ff; }
.suggestion small, .suggestion p { color: #5b779a; }
.suggestion-buttons button:last-child { color: #155184; background: #fff; }
.summary-grid article::after { background: #ffe63d; }
.summary-grid article > span { background: #dff2ff; }
.summary-grid small { color: #527299; }
.summary-grid strong { color: #102451; }
.panel-head { border-bottom-color: #c7e0f1; }
.legend, .day-column small, .stack-row small, .recent-row time, .recent-row small, .privacy-note { color: #5a779a; }
.day-column i { background: linear-gradient(180deg, #ffe63d, #19aee9); }
.stack-row, .recent-row { border-color: #d2e5f3; }
.empty { color: #5b7698; border-color: #b4d7ee; background: #eff8fe; }
.parent-toast { color: #fff; border-color: #1ba4ec; background: #0a519c; }
.reward-admin-card label { color: #527197; }
.reward-current { color: #283957; border-color: #d7af0b; background: #fff0a1; }
.profile-row, .content-checks label, .voice-row { color: #102451; border-color: #b5d8ef; background: #eef8ff; }
.profile-row small, .content-checks small, .voice-row small { color: #5b789a; }
.profile-row button { color: #155184; border-color: #9ac8e8; background: #fff; }
.profile-row .open-control { color: #102451; border-color: #d7ad00; background: #ffe63d; }
.dashboard-actions { color: #527197; }
.content-admin-card button, #rewardForm button { color: #102451; }
.voice-row audio { color-scheme: light; }

@media (max-width: 700px) {
  .parent-main { padding-inline: 12px; }
  .login-card, .add-card, .panel, .summary-grid article, .reward-admin-card { border-radius: 3px; }
}
