:root { --ink: #16141c; --dim: #4f4b5a; --line: #d8d4e2; --paper: #fff; --soft: #f1eef8; --accent: #7c3aed; --ok: #166534; --ok-bg: #ecfdf3; --warn: #92400e; --warn-bg: #fff7ed; color-scheme: light dark; }
@media (prefers-color-scheme: dark) { :root:not([data-scheme="light"]) { --ink: #ece9f4; --dim: #c5c0d2; --line: #3a3646; --paper: #121017; --soft: #24202d; --accent: #c4b5fd; --ok: #86efac; --ok-bg: #0f2a1a; --warn: #fdba74; --warn-bg: #2b1a0c; } }
:root[data-scheme="dark"] { --ink: #ece9f4; --dim: #c5c0d2; --line: #3a3646; --paper: #121017; --soft: #24202d; --accent: #c4b5fd; --ok: #86efac; --ok-bg: #0f2a1a; --warn: #fdba74; --warn-bg: #2b1a0c; color-scheme: dark; }
:root[data-scheme="light"] { color-scheme: light; }
body { margin: 0 auto; max-width: 640px; padding: 24px 16px 48px; background: var(--paper); color: var(--ink); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif; }
:lang(km) { font-family: "Noto Sans Khmer", "Khmer Sangam MN", "Khmer MN", sans-serif; line-height: 1.9; }
h1 { font-size: 24px; margin: 0 0 8px; } h1 .en { color: var(--dim); font-size: 16px; font-weight: 500; }
p { margin: 0 0 4px; } .en { color: var(--dim); font-size: 15px; } .lede.en { margin-bottom: 16px; }
.banner { margin: 12px 0 16px; padding: 10px 14px; border-radius: 10px; background: var(--soft); }
.banner.ok { background: var(--ok-bg); color: var(--ok); } .banner.warn { background: var(--warn-bg); color: var(--warn); }
.banner .en { color: inherit; opacity: .85; }
ul { list-style: none; padding: 0; margin: 0; }
li a { display: block; padding: 14px 16px; margin: 0 0 10px; border: 1px solid var(--line); border-radius: 12px; color: var(--accent); text-decoration: none; font-weight: 600; min-height: 44px; overflow-wrap: anywhere; }
li a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
footer { margin-top: 28px; font-size: 14px; color: var(--dim); }
h2 { font-size: 18px; margin: 8px 0; } li.group { margin: 18px 0 4px; } li.group:first-child { margin-top: 0; } #tasks .small { font-size: 14px; color: var(--dim); margin: 0 0 20px; } .count { color: var(--dim); font-weight: 500; }
#links { margin: 0 0 20px; } #links .small { font-size: 14px; color: var(--dim); margin: 0 0 10px; }
li.link { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0 0 10px; }
li.link .who { font-weight: 600; } li.link .label { color: var(--dim); font-weight: 500; font-size: 14px; } li.link .missing { color: var(--warn); font-size: 15px; margin: 6px 0 0; }
li.link .row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
li.link a.url { display: block; flex: 1 1 100%; min-height: 0; margin: 0; border: 0; font: 500 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 8px 10px; border-radius: 8px; background: var(--soft); color: var(--accent); text-decoration: underline; overflow-wrap: anywhere; }
li.link button { min-height: 40px; padding: 4px 16px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--accent); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
li.link button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
html[data-ui="km"] .ui-en, html[data-ui="en"] .ui-km { display: none !important; }
html[data-ui="en"] .en { font-size: inherit; color: inherit; }
.top { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 6px; }
.toggles { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-left: auto; }
.me { font-weight: 600; font-size: 15px; }
.langs { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.langs button { min-height: 36px; padding: 4px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font: inherit; font-size: 15px; cursor: pointer; }
.langs button[aria-pressed="true"] { background: var(--ink); color: var(--paper); font-weight: 600; }
.langs.scheme button { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; padding: 4px 10px; }
