:root { --bg: #f6f7f4; --fg: #1d241c; --muted: #5d675b; --line: #d5dad2; --card: #fff; --accent: #2f5d3a; --danger: #a12d2d; --bar: #4a7c59; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #151a14; --fg: #e8ece6; --muted: #9aa597; --line: #313a2f; --card: #1d241c; --accent: #6fae7f; --danger: #e07a7a; --bar: #6fae7f; }
}
* { box-sizing: border-box; }
body { margin: 0; padding: 16px; background: var(--bg); color: var(--fg); font: 16px/1.45 system-ui, sans-serif; max-width: 52rem; margin-inline: auto; }
h1 { font-size: 1.4rem; margin: 0 0 .25rem; }
h2 { font-size: 1.15rem; margin: 0 0 .5rem; }
h3 { font-size: 1rem; margin: 1.25rem 0 .4rem; }
section { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin: 14px 0; }
section[hidden], div[hidden] { display: none; }
.note { color: var(--muted); font-size: .9rem; margin: .25rem 0 .6rem; }
.status { font-weight: 600; }
.badge { font-size: .7rem; background: var(--line); border-radius: 4px; padding: 1px 6px; vertical-align: middle; }
input, select, textarea, button { font: inherit; color: inherit; }
input, select, textarea { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 8px; max-width: 100%; }
textarea { width: 100%; font-family: ui-monospace, monospace; font-size: .85rem; }
button { background: var(--accent); color: var(--bg); border: 0; border-radius: 6px; padding: 9px 14px; cursor: pointer; }
button.secondary { background: transparent; color: var(--fg); border: 1px solid var(--line); }
button.danger { background: var(--danger); color: #fff; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: .5rem 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 8px; align-items: end; }
.grid label { display: grid; gap: 2px; font-size: .85rem; color: var(--muted); }
.inline { display: inline-flex; gap: 4px; align-items: center; }
a { color: var(--accent); }
pre { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 8px; overflow: auto; max-height: 18rem; font-size: .8rem; white-space: pre-wrap; word-break: break-word; margin: 0; }
.question { margin: 1rem 0; }
.question h4 { margin: 0 0 .4rem; font-size: .95rem; }
.bar { display: grid; grid-template-columns: minmax(6rem, 40%) 1fr 3rem; gap: 8px; align-items: center; margin: 3px 0; font-size: .85rem; }
.bar progress { width: 100%; height: 1rem; accent-color: var(--bar); }
.bar .n { text-align: right; color: var(--muted); }
ul.texts { margin: 0; padding-left: 1.2rem; font-size: .85rem; max-height: 10rem; overflow: auto; }
