:root { color-scheme: light dark; font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #172b4d; background: #fff; --border: #d5d9df; --muted: #526078; --hover: #eef2f8; --accent: #0c66e4; }
* { box-sizing: border-box; }
body { margin: 0; }
main { padding: 12px; max-width: 640px; margin: 0 auto; }
h1 { font-size: 20px; }
h2 { font-size: 16px; margin: 16px 0 8px; }
.guide { background: var(--hover); border-radius: 7px; padding: 12px; margin-bottom: 16px; }
.guide h1 { font-size: 16px; margin: 0 0 8px; }
.guide ol { margin: 0; padding-left: 20px; }
.guide li + li { margin-top: 6px; }
p { margin: 0 0 12px; overflow-wrap: anywhere; }
button, input, select { font: inherit; }
select { display: block; width: 100%; margin: 6px 0 10px; padding: 8px; color: inherit; background: var(--hover); border: 1px solid var(--border); border-radius: 5px; }
button { border: 1px solid var(--border); border-radius: 5px; background: transparent; color: inherit; padding: 7px 10px; cursor: pointer; }
button:hover:enabled { background: var(--hover); }
button:disabled, input:disabled { opacity: .6; cursor: default; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button.primary { color: #fff; background: var(--accent); border-color: var(--accent); }
button.primary:hover:enabled { background: #0055cc; }
input[type="search"] { width: 100%; padding: 8px; margin: 5px 0 8px; border: 1px solid var(--border); border-radius: 5px; color: inherit; background: transparent; }
label, legend { font-weight: 600; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { margin-bottom: 8px; }
.eyebrow { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.current { background: var(--hover); border-radius: 7px; padding: 10px; margin-bottom: 12px; }
.current p { font-weight: 600; margin: 5px 0 10px; white-space: pre-wrap; }
.note, small { color: var(--muted); font-size: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; }
.footer { margin: 12px 0; }
.choices { list-style: none; margin: 0; padding: 0; max-height: 220px; overflow-y: auto; }
.choices li { margin: 0 0 5px; }
.choice { display: block; width: 100%; text-align: left; overflow-wrap: anywhere; white-space: pre-wrap; }
.choice small { display: block; margin-top: 3px; }
.list-option { display: flex; gap: 8px; align-items: flex-start; padding: 8px 3px; font-weight: 400; overflow-wrap: anywhere; }
.list-option input { margin-top: 4px; flex-shrink: 0; }
#error { color: #ae2e24; background: #ffedeb; padding: 8px; border-radius: 4px; }
#message:empty, #count:empty { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-color-mode="light"]) { color: #dee4ea; background: #22272b; --border: #596773; --muted: #a9b5c1; --hover: #2c343c; --accent: #579dff; }
  :root:not([data-color-mode="light"]) button.primary { color: #101d33; }
  :root:not([data-color-mode="light"]) #error { color: #ffb4ac; background: #42221f; }
}
:root[data-color-mode="light"] { color-scheme: light; }
:root[data-color-mode="dark"] { color-scheme: dark; color: #dee4ea; background: #22272b; --border: #596773; --muted: #a9b5c1; --hover: #2c343c; --accent: #579dff; }
:root[data-color-mode="dark"] button.primary { color: #101d33; }
:root[data-color-mode="dark"] #error { color: #ffb4ac; background: #42221f; }
