:root { --paper: #eaf4ff; --ink: #141b34; --muted: #55607d; --white: #fff; --learn: #0b6fe4; --game: #e8811a; --line: #c9d6ea; --good: #0a7a4d; --bad: #b3261e; }
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif; background: var(--paper); color: var(--ink); line-height: 1.45; }
.top { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--learn); color: #fff; }
.top b { font-size: 1.2rem; } .top span { opacity: .9; } .top .link { margin-inline-start: auto; color: #fff; }
main { max-width: 860px; margin: 0 auto; padding: 16px; }
h1 { font-size: 1.4rem; margin: 6px 0 10px; } h2 { font-size: 1.08rem; margin: 22px 0 8px; } h3 { font-size: .98rem; margin: 14px 0 6px; }
p { margin: 6px 0; } .muted { color: var(--muted); } .small { font-size: .88rem; } .hidden { display: none !important; }
.card { background: var(--white); border: 2px solid var(--ink); border-radius: 14px; padding: 12px 14px; margin: 10px 0; }
button, .btn { font: inherit; font-weight: 700; padding: 10px 14px; border: 2px solid var(--ink); border-radius: 12px; background: var(--white); color: var(--ink); cursor: pointer; }
button.main { background: #ff9f43; } button.link { border: 0; background: none; text-decoration: underline; padding: 4px; font-weight: 600; }
button:disabled { opacity: .5; }
input, select { font: inherit; padding: 9px 10px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; color: var(--ink); max-width: 100%; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.kids { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.kid { text-align: start; } .kid b { display: block; font-size: 1.15rem; } .kid span { display: block; color: var(--muted); font-size: .88rem; font-weight: 400; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.tile { background: var(--white); border: 2px solid var(--ink); border-radius: 12px; padding: 8px 10px; }
.tile b { display: block; font-size: 1.5rem; line-height: 1.15; } .tile span { color: var(--muted); font-size: .85rem; }
.legend { display: flex; gap: 14px; font-size: .88rem; margin: 6px 0; } .legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-inline-end: 5px; vertical-align: -1px; }
.days { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding: 6px 2px 0; border-bottom: 2px solid var(--ink); overflow-x: auto; }
.day { flex: 1 0 34px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 34px; }
.day .n { font-size: .78rem; font-weight: 700; } .day .bar { width: 70%; display: flex; flex-direction: column-reverse; gap: 2px; }
.day .bar i { display: block; border-radius: 4px 4px 0 0; min-height: 0; } .day .bar .l { background: var(--learn); } .day .bar .g { background: var(--game); }
.daynames { display: flex; gap: 6px; padding: 3px 2px; } .daynames span { flex: 1 0 34px; min-width: 34px; text-align: center; font-size: .75rem; color: var(--muted); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; background: var(--white); }
th, td { text-align: start; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; } th { font-size: .82rem; color: var(--muted); font-weight: 600; }
td.num, th.num { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cov { display: inline-block; width: 110px; height: 9px; border: 1.5px solid var(--ink); border-radius: 99px; overflow: hidden; vertical-align: middle; background: #fff; } .cov i { display: block; height: 100%; background: var(--learn); }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.visit { margin: 8px 0; } .visit summary { cursor: pointer; font-weight: 600; } .visit li { margin: 3px 0; }
.ok { color: var(--good); font-weight: 700; } .err { color: var(--bad); font-weight: 700; }
.keybox { width: 100%; direction: ltr; font-family: ui-monospace, Menlo, monospace; font-size: .8rem; }
details.manage { margin-top: 18px; } details.manage > summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; }
@media (max-width: 520px) { main { padding: 12px; } th, td { padding: 5px 4px; } }
