@font-face{font-family:Onest;font-weight:400;font-style:normal;font-display:swap;src:url(/static/onest-400.ttf) format("truetype")}
@font-face{font-family:Onest;font-weight:700;font-style:normal;font-display:swap;src:url(/static/onest-700.ttf) format("truetype")}
/* Tokens: the app's brand (dark paper, Onest, the yellow). --muted is the lightest grey that still reads at 4.5:1 on
   a card (#1D1D1C); the labels and footers use it. */
:root{--bg:#151514;--surface:#1D1D1C;--line:#302F2E;--muted:#8E8D85;--body:#B5B3A9;--ink:#F3F3F3;--yellow:#F9CF1C;--yellow-soft:rgba(249,207,28,.35);--yellow-wash:rgba(249,207,28,.08);--red:#F83D3D;--green:#41B93D;--on-yellow:#151514;--radius:14px}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--body);font:16px/1.5 Onest,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
main{max-width:1040px;margin:0 auto;padding:20px 16px 48px}
header.top{display:flex;align-items:center;gap:10px;margin-bottom:28px}
header.top .mark{width:28px;height:28px;border-radius:50% 50% 45% 55%/55% 45% 55% 45%;background:var(--yellow);display:inline-block}
header.top .word{font-weight:700;font-size:22px;color:var(--ink);letter-spacing:0}
h1{font-weight:700;font-size:32px;line-height:1.15;color:var(--ink);margin:0 0 12px}
h2{font-weight:700;font-size:19px;line-height:1.3;color:var(--ink);margin:0 0 10px}
p{margin:0 0 14px}
.lead{font-size:19px;line-height:1.5;margin-bottom:24px}
.muted{color:var(--muted)}
a{color:var(--yellow)}
section.card{border:1px solid var(--line);border-radius:var(--radius);padding:16px;margin-bottom:14px;background:var(--surface)}
ul{margin:0;padding-left:20px}
li{margin:0 0 8px}
li:last-child{margin-bottom:0}
/* Notices: red for a problem, green for a success, yellow for "wait" (a lesson under review). */
.notice{border:1.5px solid var(--red);border-radius:var(--radius);padding:14px 16px;margin:0 0 20px;color:var(--ink);overflow-wrap:anywhere}
.notice.ok{border-color:var(--green)}
.notice.wait{border-color:var(--yellow-soft);background:var(--yellow-wash)}
.notice .line{margin:6px 0 0}
.hidden{display:none !important}
/* A form's default submit button: off screen, never focused, but first in the form so Enter submits (consent.html). */
.default-submit{position:absolute;left:-9999px;width:1px;height:1px;padding:0;border:0;overflow:hidden}
form{margin-top:8px}
fieldset{border:0;padding:0;margin:0 0 20px}
legend{font-weight:700;font-size:19px;color:var(--ink);padding:0;margin-bottom:10px}
label.field{display:block;margin-bottom:14px}
label.field>span,.label{display:block;font-size:14px;color:var(--muted);margin-bottom:6px}
input[type=text],input[type=email],input[type=password],input[type=date],select{width:100%;min-height:52px;padding:12px 14px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);color:var(--ink);font:inherit;font-size:17px}
input:focus,select:focus{outline:none;border-color:var(--yellow)}
/* Keyboard focus: the same yellow ring on every button, link and disclosure (fields show it on their border). */
a:focus-visible,button:focus-visible,summary:focus-visible,.btn:focus-visible{outline:2px solid var(--yellow);outline-offset:2px;border-radius:4px}
.btn:focus-visible{border-radius:var(--radius)}
select{appearance:none;-webkit-appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);background-position:calc(100% - 20px) 50%,calc(100% - 14px) 50%;background-size:6px 6px;background-repeat:no-repeat;padding-right:40px}
input[type=date]{color-scheme:dark}
.row{display:grid;grid-template-columns:1fr 130px;gap:10px}
.roles{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:18px}
.roles label{display:flex;align-items:center;gap:10px;border:1.5px solid var(--line);border-radius:var(--radius);padding:14px;color:var(--ink);cursor:pointer;min-height:56px}
.roles input{accent-color:var(--yellow);width:20px;height:20px;margin:0;flex:none}
.roles label:has(input:checked){border-color:var(--yellow)}
label.check{display:flex;gap:12px;align-items:flex-start;color:var(--ink);margin:0 0 16px;line-height:1.45}
label.check input{accent-color:var(--yellow);width:22px;height:22px;margin:2px 0 0;flex:none}
.kid{border:1px solid var(--line);border-radius:var(--radius);padding:14px;margin-bottom:12px;background:var(--surface)}
.kid .head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:2px 10px;margin-bottom:10px}
.kid .head b{color:var(--ink);font-weight:700}
/* Buttons, one family: outline green (the usual), solid yellow (the one main action of a page), outline red (danger).
   Only Onest 400 and 700 are loaded, so the weight is 700, never a synthesized 500. */
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:56px;padding:0 24px;border-radius:var(--radius);border:1.5px solid var(--green);background:transparent;color:var(--green);font:inherit;font-size:18px;font-weight:700;cursor:pointer;text-decoration:none;width:100%}
.btn:active{background:var(--green);color:var(--on-yellow)}
.btn.solid{background:var(--yellow);border-color:var(--yellow);color:var(--on-yellow)}
.btn.solid:active{opacity:.85}
.btn.small{min-height:44px;font-size:16px;width:auto}
.btn[disabled]{opacity:.45;cursor:default}
.link{background:none;border:0;padding:0;color:var(--muted);font:inherit;font-size:15px;cursor:pointer;text-decoration:underline}
.kid .head .link{min-height:32px;padding:0 4px}
.btn:hover{background:rgba(65,185,61,.1)}
.btn.solid:hover{background:var(--yellow);opacity:.92}
.btn.danger:hover{background:rgba(248,61,61,.1)}
.actions{margin-top:20px}
.code{font-size:34px;font-weight:700;letter-spacing:2px;color:var(--yellow);margin:6px 0 10px;word-break:break-all}
.steps{counter-reset:s;list-style:none;padding:0}
.steps li{counter-increment:s;position:relative;padding-left:36px;margin-bottom:12px;overflow-wrap:anywhere}
.steps li::before{content:counter(s);position:absolute;left:0;top:0;width:26px;height:26px;border-radius:50%;background:var(--yellow);color:var(--on-yellow);font-weight:700;font-size:15px;display:flex;align-items:center;justify-content:center}
footer{margin-top:40px;padding-top:16px;border-top:1px solid var(--line);font-size:14px;color:var(--muted)}
footer a{color:var(--muted)}
body:has(#role-teen:checked) .parent-only{display:none}
body:has(#role-parent:checked) .teen-only{display:none}
body:not(:has(#role-teen:checked)):not(:has(#role-parent:checked)) .teen-only{display:none}
/* The web view (family and lesson pages). The bar's links and buttons are small text, so they get a 44 px tap area. */
nav.bar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:-16px 0 12px;font-size:15px}
nav.bar a{color:var(--muted);text-decoration:none}
nav.bar a,nav.bar .link{display:inline-flex;align-items:center;min-height:44px}
nav.bar form{margin:0}
nav.bar span.muted a{min-height:0}
h3{font-weight:700;font-size:16px;color:var(--ink);margin:18px 0 8px}
.small{font-size:14px}
.warn{color:var(--red)}
.later{margin-top:28px;padding-top:20px;border-top:1px solid var(--line)}
.kid-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.kid-head p{margin:0}
.mode-form{margin:14px 0 0}
.mode-form .field{margin-bottom:6px}
.mode-form .btn{margin-top:8px}
ul.lessons{list-style:none;padding:0;margin:0}
ul.lessons li{margin:0 0 8px}
.item{display:grid;grid-template-columns:150px 1fr auto;gap:10px;align-items:baseline;padding:12px 14px;border:1px solid var(--line);border-radius:var(--radius);background:var(--bg);color:var(--ink);text-decoration:none}
a.item:hover{border-color:var(--muted)}
a.item:active{border-color:var(--yellow)}
.item .when{color:var(--muted);font-size:14px;white-space:nowrap}
.item .task{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.item .status{color:var(--muted);font-size:14px;white-space:nowrap}
.item.held{color:var(--muted);border-style:dashed}
.summary .grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 18px;margin-top:6px}
.summary .grid ul{padding-left:18px}
.summary .grid p{margin:0;color:var(--ink)}
.summary .tip{margin-top:16px;padding:12px 14px;border-radius:var(--radius);background:var(--yellow-wash);border:1px solid var(--yellow-soft)}
.summary .tip p{margin:0;color:var(--ink)}
ol.chat{list-style:none;padding:0;margin:0 0 14px}
.msg{position:relative;max-width:86%;margin:0 0 10px;padding:10px 14px;border-radius:16px;background:var(--surface);border:1px solid var(--line);color:var(--ink);white-space:pre-wrap;overflow-wrap:anywhere}
.msg.me{margin-left:auto;background:rgba(249,207,28,.12);border-color:var(--yellow-soft)}
.msg .who{display:block;font-size:12px;color:var(--muted);margin-bottom:3px}
.msg .at{opacity:.8}
ul.plain{list-style:none;padding:0}
.btns{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.btns form{margin:0;flex:1 1 140px;display:flex}
.btns .btn{flex:1 1 auto}
ul.passes{margin-top:14px}
.row-form{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:end;margin-top:6px}
.row-form .field{margin:0}
.mono{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:13px}
.btn.danger{border-color:var(--red);color:var(--red)}
.btn.danger:active{background:var(--red);color:var(--ink)}
.quiet{margin:6px 0 0}
.quiet a{color:var(--muted);display:inline-block;padding:10px 0}
details.danger-box{margin-top:2px}
details.danger-box summary{cursor:pointer;color:var(--muted);font-size:14px;padding:10px 0;line-height:24px}
details.danger-box form{margin-top:8px;padding:12px;border:1px dashed var(--red);border-radius:var(--radius)}
ul.feedback li{padding:12px 0;border-bottom:1px solid var(--line);margin:0}
ul.feedback li:last-child{border-bottom:0}
ul.feedback .head{display:flex;justify-content:space-between;gap:10px;align-items:baseline;margin-bottom:4px}
ul.feedback .head b{color:var(--ink)}
ul.feedback p{margin:0}
/* The team's sections (tabs under the bar), the tag form, the numbers tables (they scroll inside their card on a phone). */
nav.tabs{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 18px}
nav.tabs a{display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border:1px solid var(--line);border-radius:var(--radius);color:var(--muted);text-decoration:none;font-size:15px}
nav.tabs a:hover{border-color:var(--muted)}
nav.tabs a.now{color:var(--ink);border-color:var(--yellow-soft);background:var(--yellow-wash)}
.tags{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.tags label{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 12px;border:1px solid var(--line);border-radius:var(--radius);color:var(--ink);cursor:pointer}
.tags input{accent-color:var(--yellow);width:20px;height:20px;margin:0}
.tags label:has(input:checked){border-color:var(--yellow)}
textarea{width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);color:var(--ink);font:inherit;font-size:16px;resize:vertical}
textarea:focus{outline:none;border-color:var(--yellow)}
.msg .mark{display:block;font-size:12px;color:var(--red);margin-top:4px}
.scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:0 -4px}
table.nums{width:100%;border-collapse:collapse;font-size:15px}
table.nums th,table.nums td{text-align:right;padding:8px 10px;border-bottom:1px solid var(--line);white-space:nowrap}
table.nums th:first-child,table.nums td:first-child{text-align:left}
table.nums th{color:var(--muted);font-weight:400;font-size:13px}
table.nums td{color:var(--ink)}
table.nums tr:last-child td{border-bottom:0}
table.nums tr.total td{font-weight:700;border-top:1px solid var(--muted)}
@media (max-width:520px){.item{grid-template-columns:1fr auto}.item .task{grid-column:1 / -1}.summary .grid{grid-template-columns:1fr}.row-form{grid-template-columns:1fr}.row-form .btn{width:100%}}
@media (max-width:420px){.row{grid-template-columns:1fr}.roles{grid-template-columns:1fr}h1{font-size:28px}}
@media (max-width:360px){.code{font-size:28px;letter-spacing:1px}}
/* ---- The dashboard (blob-admin): the top bar with the server switch, the tabs' badges, the tiles, the test strip. */
header.top{flex-wrap:wrap;justify-content:space-between;margin-bottom:18px}
header.top .brand{display:flex;align-items:center;gap:10px;text-decoration:none}
header.top .who{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:14px;color:var(--muted)}
header.top .who form{margin:0}
.switch{display:inline-flex;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.switch form{margin:0}
.switch button{min-height:40px;padding:0 14px;border:0;background:transparent;color:var(--muted);font:inherit;font-size:14px;cursor:pointer}
.switch button.now{background:var(--yellow-wash);color:var(--ink);font-weight:700}
.switch button.now.test{background:rgba(248,61,61,.16)}
.teststrip{border:1.5px solid var(--red);border-radius:var(--radius);padding:8px 14px;margin:0 0 16px;color:var(--ink);font-size:14px}
.badge{display:inline-block;min-width:20px;padding:0 6px;margin-left:6px;border-radius:10px;background:var(--red);color:var(--ink);font-size:12px;font-weight:700;line-height:20px;text-align:center}
.badge.soft{background:var(--line);color:var(--ink)}
.tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px;margin-bottom:14px}
.tile{border:1px solid var(--line);border-radius:var(--radius);padding:14px 16px;background:var(--surface);color:var(--body);text-decoration:none;display:block}
a.tile:hover{border-color:var(--muted)}
.tile .label{margin-bottom:4px}
.tile .big{font-size:28px;font-weight:700;color:var(--ink);line-height:1.2}
.tile .sub{font-size:14px;color:var(--muted);margin-top:2px}
.tile.alert{border-color:var(--red)}
.tile.alert .big{color:var(--red)}
.tile.ok .big{color:var(--green)}
.cols{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.cols>section{margin-bottom:0}
.live li{display:flex;justify-content:space-between;gap:10px}
.answer{color:var(--ink);overflow-wrap:anywhere}
.answer p{margin:0 0 10px}
.answer ul{margin:0 0 10px}
.answer table{border-collapse:collapse;margin:0 0 12px;font-size:15px;display:block;overflow-x:auto}
.answer th,.answer td{border-bottom:1px solid var(--line);padding:6px 10px;text-align:left;white-space:nowrap}
.answer th{color:var(--muted);font-weight:400;font-size:13px}
.answer code{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:14px}
details.sql summary{cursor:pointer;color:var(--muted);font-size:14px;padding:6px 0}
details.sql pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;background:var(--bg);border:1px solid var(--line);border-radius:10px;padding:10px;margin:6px 0}
.q{padding:14px 0;border-bottom:1px solid var(--line)}
.q:last-child{border-bottom:0}
.q .head{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 10px;margin-bottom:6px}
.q .head b{color:var(--ink)}
.q .text{color:var(--ink);white-space:pre-wrap;margin:0 0 10px}
.q .reply{border-left:3px solid var(--green);padding:4px 0 4px 12px;margin:0 0 6px;white-space:pre-wrap}
.q.done{opacity:.7}
.signin{max-width:420px;margin:40px auto}
.gbtn{min-height:48px;margin:16px 0}
.spin{display:inline-block;width:14px;height:14px;border:2px solid var(--yellow-soft);border-top-color:var(--yellow);border-radius:50%;animation:spin 1s linear infinite;vertical-align:-2px;margin-right:6px}
@keyframes spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.spin{animation:none}}
@media (max-width:720px){.cols{grid-template-columns:1fr}.tiles{grid-template-columns:1fr 1fr}.tile .big{font-size:22px}}
.rowhead{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:2px 10px;margin-bottom:8px}
.rowhead b{color:var(--ink);font-size:18px}
