:root {
  color-scheme: light;
  --ink: #19211d;
  --muted: #4e5b54;
  --green: #1e503b;
  --dark: #141916;
  --line: #d7ded9;
  --surface: #fff;
  --wash: #f2f5f1;
  --radius: 14px;
  font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--wash); color: var(--ink); }
[hidden] { display: none !important; }
.wrap { width: min(100% - 2rem, 72rem); margin-inline: auto; }
.site-header { background: var(--dark); color: white; }
.header-inner, .site-header nav { display: flex; gap: 1rem; align-items: center; }
.header-inner { justify-content: space-between; min-height: 76px; padding-block: .5rem; }
.logo img { display: block; width: min(37vw, 183px); height: auto; border-radius: 3px; }
.site-header a { color: #fff; }
.site-header nav { flex-wrap: wrap; justify-content: flex-end; font-size: .875rem; }
main { padding-block: clamp(1.5rem, 4vw, 3.5rem) 1rem; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .55em; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); letter-spacing: -.025em; }
h3 { font-size: 1.08rem; }
p { margin: .45rem 0 .9rem; }
a { color: var(--green); text-underline-offset: .2em; }
.lead { color: var(--muted); max-width: 58ch; }
.pill { display: inline-block; padding: .25rem .6rem; border-radius: 999px; background: #e2eee5; color: #234c36; font-weight: 650; font-size: .875rem; }
.demo-note { padding: .75rem 1rem; border-radius: 10px; background: #f7ebcf; color: #513a10; margin: 1rem 0 1.4rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; }
.panel { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1rem, 3vw, 1.5rem); }
.panel + .panel, .section { margin-top: 1rem; }
.grid > .panel { margin-top: 0; }
.narrow { max-width: 34rem; }
.split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.stack { display: grid; gap: .75rem; }
.row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.record { border: 1px solid var(--line); border-radius: 10px; padding: .95rem; overflow-wrap: anywhere; }
.record p, form p { margin-bottom: .5rem; }
.record img { max-height: 16rem; max-width: 100%; border-radius: 8px; display: block; margin-top: .65rem; }
.record .message { white-space: pre-wrap; }
.meta { color: var(--muted); font-size: .9rem; margin: .3rem 0; }
.details { margin-bottom: .65rem; }
details summary { cursor: pointer; font-weight: 650; padding-block: .4rem; }
.checks { display: grid; gap: .35rem; padding-left: 1.35rem; }
.checks:has(input) { padding: 0; list-style: none; }
.checks label { display: flex; align-items: center; gap: .55rem; font-weight: 400; }
label.remember-session { display: flex; align-items: flex-start; gap: .55rem; }
.remember-session input { flex: none; margin-top: .2rem; }
.remember-session small { display: block; color: var(--muted); font-weight: 400; }
input[type=checkbox] { inline-size: 1.1rem; block-size: 1.1rem; accent-color: var(--green); }
button, .button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; background: var(--green); color: white; border: 1px solid transparent; border-radius: 8px; padding: .55rem .85rem; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; }
button:disabled { opacity: .65; cursor: default; }
button.secondary { background: #edf3ee; color: #193b2b; border-color: var(--line); }
button[data-worker-view][aria-pressed=true] { background: var(--green); color: white; }
button.outline { background: transparent; border-color: #93a196; font-size: .875rem; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #5b8d75; outline-offset: 3px; }
label { display: grid; gap: .3rem; font-weight: 650; }
input:not([type=checkbox]), select, textarea { min-width: 0; width: 100%; padding: .56rem .62rem; background: white; border: 1px solid #96a39b; border-radius: 7px; min-height: 44px; font: inherit; color: var(--ink); }
textarea { resize: vertical; }
form { display: grid; gap: .78rem; }
form button { justify-self: start; }
.stat { display: block; font-size: 1.75rem; font-weight: 720; }
.install, .footer { margin-top: 1rem; color: var(--muted); }
.footer { padding-block: .5rem 1.5rem; font-size: .9rem; }
.footer span { padding: 0 .25rem; }
#status { border-left: 4px solid var(--green); background: #e6f1e9; padding: .65rem .9rem; margin-bottom: 1rem; }
#status.error { border-color: #9a312a; background: #faece8; color: #701d16; }
@media (max-width: 700px) { .split { grid-template-columns: 1fr; } }
@media (max-width: 390px) { .header-inner, .site-header nav { gap: .55rem; } }
