:root {
  color-scheme: light dark;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  --paper: #fff; --ink: #152732; --muted: #546875; --line: #e1e8ed;
  --accent: #0e4c7a; --wash: #f1f6fa; --side: #103951; --gold: #f2b01e;
  --status: #196654; --error: #9f3132;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #19242d; --ink: #edf2f6; --muted: #adbfca; --line: #354650;
    --accent: #a2d0ef; --wash: #213440; --side: #102c3b; --status: #9edec4; --error: #ffafb1; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100dvh; background: var(--paper); color: var(--ink); display: grid; grid-template-columns: 13rem minmax(0, 1fr); }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.side { display: flex; flex-direction: column; padding: 2rem 1rem 1.3rem; background: var(--side); color: #fff; min-height: 100dvh; position: sticky; top: 0; align-self: start; }
.brand { display: flex; gap: .65rem; align-items: center; padding-inline: .45rem; font-size: 1.3rem; font-weight: 650; }
.side-rule { height: 1px; margin: 1.7rem .45rem 1.1rem; background: #ffffff30; }
.nav-current, .side-button { display: flex; align-items: center; gap: .6rem; padding: .65rem .55rem; color: inherit; border-radius: .35rem; font-size: .9rem; white-space: nowrap; }
.nav-current { background: #ffffff13; }
.side-button { background: transparent; border: 0; text-align: left; margin-top: .4rem; }
.side-button:hover { background: #ffffff13; }
.side-button:focus-visible { outline-color: var(--gold); }
.side-footer { margin-top: auto; padding: 2rem .45rem 0; color: #c8d8e3; font-size: .8rem; }
.side-footer span { display: block; margin-top: .2rem; }
.page { min-height: 100dvh; display: flex; flex-direction: column; }
.main { width: min(100%, 55rem); margin-inline: auto; padding: 3.15rem 3rem 1.6rem; flex: 1; }
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding-bottom: 1.05rem; border-bottom: 1px solid var(--line); }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.75rem, 3.5vw, 2.2rem); font-weight: 670; letter-spacing: -.045em; line-height: 1.12; }
h2 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -.025em; }
.status { font-size: .875rem; color: var(--muted); display: flex; align-items: center; gap: .4rem; }
.status::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: currentColor; }
.status.online { color: var(--status); }
.pair { max-width: 29rem; margin-top: 2.3rem; }
.pair-symbol { color: var(--accent); background: var(--wash); border-radius: .65rem; padding: .75rem; display: inline-flex; margin-bottom: .9rem; }
.pair p { margin-top: .65rem; color: var(--muted); line-height: 1.55; }
#pair-form { display: grid; gap: .65rem; margin-top: 1.4rem; }
label { font-size: .9rem; font-weight: 600; }
input { min-width: 0; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: .38rem; padding: .7rem .8rem; }
input::placeholder { color: var(--muted); }
.primary { color: var(--paper); background: var(--accent); border: 1px solid transparent; font-weight: 620; border-radius: .38rem; min-height: 2.75rem; padding: .55rem .95rem; }
#pair-form .primary { justify-self: start; }
.pair-links { display: flex; flex-wrap: wrap; gap: .4rem 1.15rem; margin-top: .65rem; }
.text-button { padding: .45rem 0; background: none; border: 0; color: var(--accent); }
.text-button:hover { text-decoration: underline; }
.pair .error { color: var(--error); }
.summary { margin-top: 1rem; color: var(--muted); font-size: .88rem; }
.group { margin-top: 1.65rem; }
.group h2 { display: flex; gap: .48rem; align-items: center; padding-bottom: .38rem; border-bottom: 1px solid var(--line); font-size: 1rem; }
.group h2 svg { color: var(--accent); width: 1rem; height: 1rem; flex: none; }
.task { display: grid; grid-template-columns: 2.4rem 1fr; align-items: start; min-height: 3rem; border-bottom: 1px solid var(--line); }
.task-text { line-height: 1.45; overflow-wrap: anywhere; padding-block: .65rem; }
.complete { width: 2.2rem; height: 2.7rem; display: grid; place-items: center; background: none; border: 0; color: var(--accent); }
.complete::before { content: ""; width: .96rem; height: .96rem; border: 1.5px solid currentColor; border-radius: 50%; }
.complete:hover::before, .complete:focus-visible::before { background: var(--gold); border-color: var(--gold); }
.chip { display: inline-block; border: 1px solid var(--line); border-radius: 1rem; font-size: .82rem; padding: 0 .4rem; color: var(--accent); }
.notice { margin-top: 1.2rem; color: var(--muted); line-height: 1.5; }
.compose { position: sticky; bottom: 0; background: var(--paper); border-top: 1px solid var(--line); margin-top: auto; padding: .8rem 1.4rem max(.8rem, env(safe-area-inset-bottom)); }
.add { display: grid; max-width: 49rem; margin-inline: auto; grid-template-columns: auto 1fr auto; gap: .55rem; align-items: center; }
.add-icon { font-size: 1.55rem; color: var(--accent); }
.add input { border-color: transparent; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 700px) {
  body { display: block; }
  .side { position: static; min-height: auto; flex-direction: row; align-items: center; justify-content: space-between; padding: .72rem 1rem; }
  .nav-current, .side-rule, .side-footer { display: none; }
  .side-button { margin: 0; padding: .4rem 0 .4rem .65rem; }
  .page { min-height: calc(100dvh - 3.55rem); }
  .main { padding: 1.5rem 1rem 1.4rem; }
  .compose { padding-inline: 1rem; }
}
