:root {
  color-scheme: light;
  font: 1rem/1.5 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { --ink: #23323a; --muted: #515f66; --line: #dce3e6; --paper: #f4f7f7; --hero: #d9e9ec; --accent: #2c5867; --soft: #eaf1f4; background: var(--paper); color: var(--ink); margin: 0; }
body.olive { --ink: #222f28; --muted: #54634f; --line: #d9e3d3; --paper: #f4f7f1; --hero: #e4efbe; --accent: #405d32; --soft: #ecf3e5; }
body.violet { --ink: #2b263b; --muted: #5d5470; --line: #e4dced; --paper: #f6f4f9; --hero: #e6dcf5; --accent: #573c87; --soft: #f1eaf8; }
body.sand { --ink: #382b28; --muted: #62524b; --line: #ebddd3; --paper: #f8f5f0; --hero: #f8e1bd; --accent: #77452f; --soft: #f8eee4; }
[hidden] { display: none !important; }
.shell { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.hero { background: var(--hero); overflow: hidden; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; border-bottom: 1px solid #242b292a; }
a { color: var(--accent); text-underline-offset: 4px; }
.top a { font-size: .91rem; }
.top .brand { display: flex; gap: 9px; color: var(--ink); align-items: center; text-decoration: none; font-size: 1.12rem; font-weight: 770; }
.brand span { width: 16px; height: 16px; border-radius: 4px; border: 2px solid var(--accent); transform: rotate(-12deg); background: linear-gradient(145deg, var(--accent) 0 48%, transparent 48% 100%); }
.intro { padding: 36px 0 48px; }
h1,h2,p,dl,dd { margin: 0; }
h1 { max-width: 18ch; letter-spacing: -.06em; font-size: clamp(2.3rem, 6vw, 4.5rem); font-weight: 780; line-height: 1; }
.intro p { margin-top: 11px; max-width: 58ch; color: var(--muted); }
.workspace { position: relative; display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: 15px; align-items: start; margin-top: -19px; }
.typing-workspace { grid-template-columns: minmax(0, 1.55fr) minmax(0, .65fr); }
.panel { min-width: 0; background: #fff; border: 1px solid var(--line); padding: 19px; border-radius: 13px; box-shadow: 0 5px 20px #1b222009; }
.panel-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
h2 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -.028em; }
button,input,textarea,select { font: inherit; }
button { cursor: pointer; min-height: 40px; padding: 7px 11px; background: var(--soft); color: var(--accent); border: 1px solid var(--line); border-radius: 8px; font-size: .89rem; font-weight: 700; }
button:hover:not(:disabled) { filter: brightness(.955); }
button:disabled { opacity: .53; cursor: default; }
button.primary { background: var(--accent); color: white; border-color: var(--accent); }
button:focus-visible,a:focus-visible,select:focus-visible,textarea:focus-visible,input:focus-visible,[tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
label { display: block; font-size: .87rem; font-weight: 680; }
.panel > label,.panel form > label { margin-top: 11px; }
input,select,textarea { display: block; width: 100%; min-width: 0; padding: 8px 9px; margin: 4px 0 0; border: 1px solid #c9d2d8; border-radius: 8px; background: #fff; color: var(--ink); }
textarea { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .92rem; line-height: 1.5; resize: vertical; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; margin-top: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.hint { color: var(--muted); margin-top: 7px; font-size: .89rem; }
.hint:empty { display: none; }
.pack { margin: 11px 0 0; padding: 9px; border: 1px solid var(--line); border-radius: 9px; }
.pack legend { font-size: .91rem; font-weight: 730; padding: 0 3px; }
.pack-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.pack button { margin-top: 7px; min-height: 31px; padding: 4px 7px; font-size: .8rem; }
.price-list { list-style: none; margin: 12px 0 0; padding: 0; }
.price-list li { display: flex; justify-content: space-between; gap: 9px; align-items: baseline; padding: 10px; margin-bottom: 7px; background: var(--soft); border-radius: 8px; }
.price-list li.best { outline: 1px solid var(--accent); }
.best strong { color: var(--accent); }
.price-list span { font-size: 1.04rem; text-align: right; }
.table-wrap { overflow: auto; margin-top: 11px; }
table { width: 100%; border-collapse: collapse; }
th,td { border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; padding: 8px 7px; font-size: .86rem; }
th { font-weight: 730; color: var(--muted); }
td.code { font-family: ui-monospace, monospace; }
.extension { margin-top: 14px; }
.summary-list div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border-bottom: 1px solid var(--line); padding: 7px 0; }
.summary-list dt { color: var(--muted); font-size: .88rem; }
.summary-list dd { overflow-wrap: anywhere; font-family: ui-monospace, monospace; font-size: .95rem; }
#copy { margin-top: 9px; }
.excerpt { background: var(--soft); border: 1px solid var(--line); border-radius: 9px; margin: 12px 0 10px; padding: 10px 11px; max-height: 12rem; overflow-y: auto; font: 1.13rem/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; color: #5e526c; }
.excerpt span.good { color: #2c5c36; background: #dff2df; }
.excerpt span.bad { color: #952e1c; background: #f7e0d9; text-decoration: underline; }
.excerpt span.cursor { border-bottom: 2px solid var(--accent); }
.scores { margin-top: 11px; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.scores div { background: var(--soft); border-radius: 8px; padding: 8px 9px; }
.scores dt { color: var(--muted); font-size: .82rem; }
.scores dd { font-size: 1.14rem; font-weight: 740; font-variant-numeric: tabular-nums; }
.notes { padding: 23px 0; }
.notes p { color: var(--muted); margin-top: 5px; max-width: 74ch; }
.notes a { display: inline-block; margin-top: 5px; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; border-top: 1px solid var(--line); padding: 15px 0 21px; color: var(--muted); font-size: .88rem; }
@media (max-width: 820px) { .shell { width: calc(100% - 36px); } .panel { padding: 16px; } .pack-fields { grid-template-columns: 1fr 1fr; } }
@media (max-width: 650px) { .shell { width: calc(100% - 28px); } .intro { padding: 27px 0 37px; } .workspace { grid-template-columns: 1fr; } }
