/* Evergreen: one light/dark token map, no duplicated layout stylesheet.
   CSS follows the system without JavaScript; the early bootstrap sets an explicit scheme. */
:root {
 color-scheme:light dark;
 --page:light-dark(#f8f9f5,#19201d);
 --ink:light-dark(#28332b,#e9ece4);
 --muted:light-dark(#626d63,#a1aea2);
 --line:light-dark(#dce2d7,#354039);
 --hero-secondary:light-dark(#74806f,#a4b79b);
 --link-hover:light-dark(#52733e,#b5c89e);
 --nav-hover:light-dark(#6a864b,#b5c89e);
 --focus:light-dark(#3d6045,#b5c89e);
 --skip-bg:light-dark(#28332b,#b5c89e);
 --skip-text:light-dark(#ffffff,#19201d);
 --preview-edge:light-dark(transparent,#ffffff09);
 --bomi-bg:light-dark(#e3eccf,#303d2b);
 --bomi-dots:light-dark(#8f9c6e55,#a7be8c14);
 --bomi-text:light-dark(#28332b,#ebf0e1);
 --bomi-muted:light-dark(#566647,#bdcbb0);
 --bomi-translation:light-dark(#626f58,#bdcbb0);
 --bomi-disclosure:light-dark(#556052,#bdcbb0);
 --bomi-reply-muted:light-dark(#5c6b4c,#bdcbb0);
 --bomi-inner:light-dark(#fffffff0,#212b21);
 --bomi-shadow:light-dark(#41532b08,transparent);
 --bomi-face:light-dark(#a6bc77,#a3b679);
 --bomi-eyes:light-dark(#2c3f25,#24301e);
 --bomi-face-shadow:light-dark(#28332b0d,transparent);
 --bomi-icon-hover:light-dark(#ffffff70,#394734);
 --bomi-reply:light-dark(#f6faec,#394734);
 --bomi-reply-border:light-dark(#c1cfa7,#879a72);
 --bomi-reply-hover:light-dark(#ffffff,#45533d);
 --bomi-reply-hover-border:light-dark(#829863,#a3b679);
 --bomi-focus:light-dark(#496130,#b5c89e);
 --saegim-bg:light-dark(#f1e2d5,#44372f);
 --saegim-text:light-dark(#28332b,#f1e5d8);
 --saegim-label:light-dark(#786251,#cdb9a6);
 --saegim-feedback:light-dark(#725b48,#cdb9a6);
 --saegim-disclosure:light-dark(#556052,#cdb9a6);
 --saegim-choice:light-dark(#fbf7f0,#544438);
 --saegim-hover:light-dark(#ffffff,#605040);
 --saegim-selected:light-dark(#68523f,#4c5d3d);
 --saegim-selected-text:light-dark(#ffffff,#f1e5d8);
 --saegim-wrong:light-dark(#e9c7b5,#674539);
 --saegim-wrong-text:light-dark(#633e2c,#f7dfca);
 --saegim-underline:light-dark(#c79271,#c99c78);
 --saegim-correct:light-dark(#819a69,#abc18c);
 --gloss-bg:light-dark(#e9eaf1,#303642);
 --gloss-text:light-dark(#28332b,#e5e9f1);
 --gloss-label:light-dark(#64697d,#bac3d7);
 --gloss-disclosure:light-dark(#61667b,#bac3d7);
 --gloss-button:light-dark(#ffffff,#414959);
 --gloss-hover:light-dark(#f8f9ff,#4b5363);
 --gloss-shadow:light-dark(#343a5b08,transparent);
 --gloss-mark:light-dark(#878b9d,#bac3d7);
 --ink-bg:light-dark(#e6e9e1,#2c342e);
 --ink-paper:light-dark(#fffefa,#202722);
 --ink-text:light-dark(#28332b,#e4e9de);
 --ink-placeholder:light-dark(#6f7869,#aebba5);
 --ink-meta:light-dark(#64705e,#aebba5);
 --ink-mark:light-dark(#939b88,#aebba5);
 --ink-line:light-dark(#e4e8dd,#455041);
 --ink-shadow:light-dark(#34452a0a,transparent);
 --ink-focus-shadow:light-dark(#34452a14,transparent);
 --ink-disclosure:light-dark(#556052,#bcc6b5);
 --ink-dot:light-dark(#939e87,#b5c89e);
 --still-bg:light-dark(#e8e5f0,#373343);
 --still-text:light-dark(#494157,#e9dff2);
 --still-muted:light-dark(#665c76,#c6b9d5);
 --still-reset:light-dark(#62576e,#c6b9d5);
 --still-track:light-dark(#ccc6db,#625b74);
 --still-ring:light-dark(#68617c,#c6b9d5);
 --still-button:light-dark(#51475f,#b8abca);
 --still-hover:light-dark(#6b5f7d,#c6b8d8);
 --still-button-text:light-dark(#ffffff,#282332);
 --still-mark:light-dark(#8b7f9e,#c6b9d5);
 --day-bg:light-dark(#f0e8d8,#3e382c);
 --day-board:light-dark(#fffdf7,#2b291f);
 --day-text:light-dark(#28332b,#eee7d7);
 --day-muted:light-dark(#737765,#c1b99f);
 --day-empty:light-dark(#737765,#c1b99f);
 --day-disclosure:light-dark(#556052,#c1b99f);
 --day-line:light-dark(#e5e3d7,#514c39);
 --day-selected:light-dark(#384a37,#b6c299);
 --day-selected-text:light-dark(#ffffff,#21271b);
 --day-hover:light-dark(#eeeadd,#424733);
 --day-add:light-dark(#ecefdf,#424733);
 --day-add-hover:light-dark(#dce4c7,#525b40);
}
:root[data-theme=light]{color-scheme:light}
:root[data-theme=dark]{color-scheme:dark}
.hero h1>span{color:var(--hero-secondary)}
.site-header nav a:hover{color:var(--nav-hover)}
.try-link:hover{color:var(--link-hover)}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline-color:var(--focus)}
.skip-link{background:var(--skip-bg);color:var(--skip-text)}
/* An inset hairline separates dark surfaces without changing their approved colors or box size. */
.preview{box-shadow:inset 0 0 0 1px var(--preview-edge)}
.preview-bomi{background-color:var(--bomi-bg);background-image:radial-gradient(var(--bomi-dots) .7px,transparent .7px);color:var(--bomi-text)}
.bomi-face{background:var(--bomi-face);box-shadow:inset 0 -3px 0 var(--bomi-face-shadow)}
.bomi-face i{background:var(--bomi-eyes)}
.presence-note{color:var(--bomi-muted)}.translation{color:var(--bomi-translation)}
.conversation{background:var(--bomi-inner);box-shadow:0 5px 15px var(--bomi-shadow)}
.reply{background:var(--bomi-reply);border-color:var(--bomi-reply-border);color:var(--bomi-text)}
.reply>span:last-child{color:var(--bomi-reply-muted)}
.reply:hover{background:var(--bomi-reply-hover);border-color:var(--bomi-reply-hover-border)}
.reply:focus-visible{outline-color:var(--bomi-focus)}.icon-button:hover{background:var(--bomi-icon-hover)}
.preview-bomi .demo-disclosure{color:var(--bomi-disclosure)}
.preview-saegim{background:var(--saegim-bg);color:var(--saegim-text)}
.grammar-scene>.mini-label{color:var(--saegim-label)}.grammar-feedback{color:var(--saegim-feedback)}
.grammar-choice{background:var(--saegim-choice);color:var(--saegim-text)}.grammar-choice:hover{background:var(--saegim-hover)}
.grammar-choice[aria-pressed=true]{background:var(--saegim-selected);color:var(--saegim-selected-text)}
.grammar-choice[data-result=wrong]{background:var(--saegim-wrong);color:var(--saegim-wrong-text)}
.grammar-underline{background:var(--saegim-underline)}.grammar-scene.is-correct .grammar-underline{background:var(--saegim-correct)}
.preview-saegim .demo-disclosure{color:var(--saegim-disclosure)}
.preview-gloss{background:var(--gloss-bg);color:var(--gloss-text)}
.translation-side .mini-label{color:var(--gloss-label)}.preview-gloss .demo-disclosure{color:var(--gloss-disclosure)}
.swap-button{background:var(--gloss-button);color:var(--gloss-text);box-shadow:0 3px 7px var(--gloss-shadow)}
.swap-button:hover{background:var(--gloss-hover)}.product-mark{color:var(--gloss-mark)}
.preview-ink{background:var(--ink-bg)}.note-sheet{background:var(--ink-paper);color:var(--ink-text);box-shadow:0 15px 22px var(--ink-shadow)}
.note-sheet:focus-within{box-shadow:0 15px 22px var(--ink-focus-shadow)}
#ink-note{color:var(--ink-text)}#ink-note::placeholder{color:var(--ink-placeholder)}
.note-meta{color:var(--ink-meta);border-color:var(--ink-line)}.note-mark{color:var(--ink-mark)}
.preview-ink .demo-disclosure{color:var(--ink-disclosure)}.ink-dot{color:var(--ink-dot)}
.preview-still{background:var(--still-bg)}.timer-digits{color:var(--still-text)}
.ring-track{stroke:var(--still-track)}#timer-progress{stroke:var(--still-ring)}
.timer-controls .mini-label,.preview-still .demo-disclosure{color:var(--still-muted)}
.timer-reset{color:var(--still-reset)}.still-mark{color:var(--still-mark)}
.focus-button{background:var(--still-button);color:var(--still-button-text)}.focus-button:hover{background:var(--still-hover)}
.preview-day{background:var(--day-bg);color:var(--day-text)}.day-board{background:var(--day-board)}
.day-tabs>button[aria-selected=true]{background:var(--day-selected);color:var(--day-selected-text)}
.day-tabs>button:hover:not([aria-selected=true]){background:var(--day-hover)}
.day-task input{accent-color:var(--day-selected)}.day-empty{color:var(--day-empty)}
.task-form{border-color:var(--day-line)}.task-form input::placeholder{color:var(--day-muted)}
.task-form button{background:var(--day-add)}.task-form button:hover{background:var(--day-add-hover)}
.preview-day .demo-disclosure{color:var(--day-disclosure)}
/* Only dark checked tasks need more opacity; keep the approved light appearance exact. */
:root[data-theme=dark] .day-task:has(input:checked) span{opacity:.75}
@media(prefers-color-scheme:dark){:root:not([data-theme]) .day-task:has(input:checked) span{opacity:.75}}
/* The no-JS page has no inert theme control. With JS, its footprint exists before paint. */
.theme-toggle{display:none;width:44px;height:44px;flex-shrink:0;place-items:center;padding:0;color:var(--muted);position:relative}
:root[data-theme] .theme-toggle{display:grid}
.site-header nav{gap:22px;align-items:center}
.theme-toggle:before{content:'';position:absolute;inset:7px;border:1px solid var(--line);border-radius:50%}
.theme-toggle:hover{color:var(--focus)}
.theme-toggle svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.4;stroke-linecap:round}
.theme-sun,.theme-to-light{display:none}
:root[data-theme=dark] .theme-sun{display:block}
:root[data-theme=dark] .theme-to-light{display:inline}
:root[data-theme=dark] .theme-moon,:root[data-theme=dark] .theme-to-dark{display:none}
@media(max-width:600px){.site-header nav{gap:9px}.theme-toggle:before{inset:8px}}
@media(max-width:360px){.site-header nav{gap:3px}.site-header nav a>span{display:none}}
