@import url("https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@100..125,600..800&family=Instrument+Sans:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap");
:root { --bg: #f4f1ea; --fg: #17150f; --muted: #5f5a4f; --line: #d9d3c5; --accent: #d9480f; --on-accent: #fff; --code: #ebe6da; --panel: #fbf9f4; --grid: rgba(23,21,15,.05); --display: "Archivo", system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, Consolas, monospace; }
@media (prefers-color-scheme: dark) { :root { --bg: #121110; --fg: #efebe2; --muted: #a39d90; --line: #2e2b26; --accent: #ff7a3d; --on-accent: #17150f; --code: #1e1c19; --panel: #191816; --grid: rgba(239,235,226,.04); } }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font: 16px/1.6 "Instrument Sans", system-ui, sans-serif; background: var(--bg); color: var(--fg); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); font-stretch: 112%; letter-spacing: -0.02em; line-height: 1.1; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
a { color: var(--accent); }
main { max-width: 960px; margin: 0 auto; padding: 0 20px 60px; }
main.narrow { max-width: 480px; padding-top: 56px; }
main.wide { max-width: 1240px; }
main.studio { max-width: none; padding: 0 clamp(16px, 3vw, 40px) 40px; }
.studio .editor { height: calc(100vh - 300px); }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 64px; box-sizing: border-box; padding: 0 24px; border-bottom: 1px solid var(--fg); background: var(--bg); position: relative; z-index: 2; }
.logo { display: inline-flex; align-items: center; gap: 9px; font: 800 21px var(--display); font-stretch: 112%; letter-spacing: -0.04em; text-decoration: none; color: var(--fg); }
.mark { width: 24px; height: 24px; fill: var(--accent); transition: transform .6s ease; }
.logo:hover .mark { transform: rotate(45deg); }
nav { display: flex; align-items: center; gap: 18px; }
nav a { color: var(--fg); text-decoration: none; white-space: nowrap; }
@media (max-width: 480px) { .bar { height: 56px; padding: 0 16px; } .bar nav { gap: 12px; font-size: 14px; } .bar nav a.btn { padding: 6px 10px; } }
nav a:hover { color: var(--accent); }
.btn, button { display: inline-block; background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent); border-radius: 2px; padding: 8px 14px; font: inherit; font-weight: 600; line-height: 1.3; cursor: pointer; text-decoration: none; transition: background .15s, color .15s, transform .15s; }
nav a.btn { color: var(--on-accent); }
.btn:hover, button:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }
button:disabled { opacity: .45; cursor: default; background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.ghost, button.ghost { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn.ghost:hover, button.ghost:hover { background: var(--fg); color: var(--bg); }
.btn.big { padding: 13px 22px; font-size: 17px; }
.btn.big:not(.ghost)::after { content: " \2192"; }
button.small, .btn.small { padding: 4px 10px; font-size: 14px; }
button.link { background: none; color: var(--accent); padding: 0; border: 0; text-decoration: underline; }
button.danger { background: #b91c1c; }

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--fg); background: linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 24px 24px; }
.hero > #hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, var(--bg) 35%, transparent 80%); opacity: .85; }
.hero-in { position: relative; z-index: 1; max-width: 960px; margin: 0 auto; padding: 112px 20px 104px; }
.hero h1 { font-size: clamp(40px, 9vw, 88px); font-weight: 800; font-stretch: 112%; line-height: 1; letter-spacing: -0.035em; margin: 0 0 28px; }
.hero h1 span { display: block; white-space: nowrap; }
.eyebrow { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin: 0 0 20px; }
.eyebrow::before { content: "\25CF  "; }
.lede { font-size: 19px; color: var(--muted); max-width: 540px; margin: 0 0 34px; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: f; }
.flow li { counter-increment: f; position: relative; border: 1px solid var(--fg); background: var(--panel); padding: 20px; }
.flow li::before { content: "0" counter(f); display: block; font: 500 12px var(--mono); color: var(--accent); margin-bottom: 14px; }
.flow li:not(:last-child)::after { content: "\2192"; position: absolute; top: 50%; right: -17px; transform: translate(50%, -50%); font: 500 20px/1 var(--mono); color: var(--accent); }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr; gap: 28px; } .flow li:not(:last-child)::after { content: "\2193"; top: auto; bottom: -15px; right: auto; left: 50%; transform: translate(-50%, 50%); } }
.flow.steps { grid-template-columns: repeat(3, 1fr); margin: 24px 0 8px; }
.flow.steps h3 { font-size: 17px; margin: 0 0 6px; }
.flow.steps p { margin: 0; font-size: 14px; }
#ai > h3 { font-size: 15px; margin: 28px 0 0; }
@media (max-width: 900px) { .flow.steps { grid-template-columns: 1fr; } }
.features h3 { margin: 0 0 8px; font-size: 20px; }
.features p { margin: 0; color: var(--muted); font-size: 15px; }
.pricing .price { font: 800 40px var(--display); font-stretch: 112%; letter-spacing: -0.04em; margin: 4px 0 16px; white-space: nowrap; }
.pricing .price span { font: 400 15px "Instrument Sans", sans-serif; letter-spacing: 0; }
.pricing > p { max-width: 62ch; margin: -8px 0 24px; }
.pricing .grid { grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--fg); background: var(--panel); }
.pricing .card { position: relative; margin: 0; border: 0; border-radius: 0; border-right: 1px solid var(--line); background: none; display: flex; flex-direction: column; padding: 40px 32px 32px; }
.pricing .card:last-child { border-right: 0; }
.pricing .card > .btn { margin-top: auto; align-self: stretch; text-align: center; white-space: nowrap; }
.pricing .card:nth-child(2) { box-shadow: inset 0 4px var(--accent); }
.pricing .card:nth-child(2)::before { content: "Most picked"; position: absolute; top: 16px; left: 32px; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.pricing ul { padding-left: 18px; margin: 0 0 16px; }
.pricing li { margin-bottom: 6px; }
main > section > h2 { font-size: clamp(30px, 5vw, 48px); font-weight: 800; letter-spacing: -0.04em; margin: 72px 0 24px; }
@media (max-width: 560px) { .pricing .grid { grid-template-columns: 1fr; } .pricing .card { border-right: 0; } }
.pricing ul li::marker { content: "\2014  "; color: var(--accent); }
.pricing .muted { margin: 0 0 16px; font-size: 14px; }
.specs { margin-top: 20px; }
.specs summary { cursor: pointer; font: 500 13px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.specs-wrap { overflow-x: auto; margin-top: 16px; border: 1px solid var(--fg); background: var(--panel); }
.specs table { width: 100%; min-width: 480px; table-layout: fixed; border-collapse: collapse; font-size: 14px; }
.specs th:first-child { width: 22%; }
.specs td { overflow-wrap: anywhere; }
.specs code { white-space: normal; }
.specs th, .specs td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.specs thead th { font: 700 15px var(--display); border-bottom-color: var(--fg); }
.specs tbody th { color: var(--muted); font-weight: 500; white-space: nowrap; }
.specs tbody tr:last-child > * { border-bottom: 0; }

.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row input { flex: 1 1 160px; }
.grow { flex: 1; }
.stack { display: grid; gap: 14px; }
.stack fieldset.fields { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 14px; }
.stack fieldset.fields[hidden] { display: none; }
.stack label { display: grid; gap: 4px; }
input, select, textarea { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 3px; background: var(--panel); color: var(--fg); transition: border-color .15s; }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--accent); outline: 1px solid var(--accent); outline-offset: 0; }
.stack label { font-weight: 600; font-size: 14px; }
.stack label .hint { font-weight: 400; margin-left: 4px; }
.legal img.ink { height: 1.375em; vertical-align: -0.4em; }
@media (prefers-color-scheme: dark) { .legal img.ink { filter: invert(1); } }
.stack label.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.stack label.check input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.affix { display: flex; align-items: stretch; }
.affix input { flex: 1; min-width: 0; border-radius: 3px 0 0 3px; }
.affix > span { display: flex; align-items: center; padding: 0 10px; border: 1px solid var(--line); border-left: 0; border-radius: 0 3px 3px 0; background: var(--code); color: var(--muted); font: 400 14px var(--mono); }
.panel { border: 1px solid var(--fg); background: var(--panel); padding: 32px; margin: 0 0 24px; }
.auth h1 { font-size: 36px; margin: 0 0 8px; }
.auth .eyebrow { margin-bottom: 12px; }
.auth > .muted { margin: 0 0 24px; }
.auth .switch { margin: 20px 0 0; font-size: 14px; }
button.wide { width: 100%; padding: 11px 14px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; padding: 40px 0 8px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(30px, 5vw, 44px); margin: 0; }
.page-head .eyebrow { margin-bottom: 8px; }
.page-head > p { margin: 0; }
.site { padding: 24px; margin: 0 0 16px; }
.site h2 { font-size: 22px; margin-bottom: 14px; }
.site h2 a { color: var(--fg); text-decoration: none; }
.site h2 a:hover { color: var(--accent); }
.keys { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 20px; font-size: 14px; }
.keys dt { color: var(--muted); }
.keys dd { margin: 0; min-width: 0; }
.add-site { padding: 24px; display: grid; gap: 10px; }
.add-site label { font-size: 15px; }
.add-site .row > .affix { flex: 1 1 240px; }
.add-site .row button { white-space: nowrap; }
.who { font-size: 15px; }
.site .domain { margin-top: 16px; font-size: 15px; }
.site h2 { overflow-wrap: anywhere; }
.site-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; }
.site-top h2 { margin: 0; }
.site .lead { margin: 6px 0 18px; font-size: 15px; }
.site .dev { border-top: 1px solid var(--line); padding-top: 14px; }
.dev .keys dd { display: grid; gap: 2px; }
.dev pre { margin-top: 16px; }
/* Site card: a spec sheet of labelled rows under the main actions. */
.site .actions { margin-top: 16px; }
.tag.live { color: var(--fg); border-color: var(--fg); }
.spec { margin: 20px 0 0; border-top: 1px solid var(--line); }
.spec > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 6px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.spec > div:last-child { border-bottom: 0; padding-bottom: 0; }
.spec dt { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.spec dd { margin: 0; min-width: 0; display: grid; gap: 8px; font-size: 15px; overflow-wrap: anywhere; }
.spec dd p, .spec dd details { margin: 0; }
.spec dd details[open] > summary { margin-bottom: 12px; }
.spec-line { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; }
.table-scroll { overflow-x: auto; }
@media (max-width: 560px) { .spec > div { grid-template-columns: 1fr; } }
/* Form inbox: a table on wide screens, one block per message on phones. */
table.top.inbox tr th, table.top.inbox tr td { text-align: left; vertical-align: top; white-space: normal; width: auto; }
table.top.inbox tr td:first-child, table.top.inbox tr td:nth-child(2) { white-space: nowrap; width: 1%; padding-right: 24px; }
table.top.inbox tr td:last-child { text-align: right; width: 1%; }
.inbox + .row { margin-top: 14px; }
@media (max-width: 560px) {
  table.inbox, .inbox tbody, .inbox tr, .inbox td { display: block; }
  .inbox tr:first-child { display: none; }
  .inbox tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .inbox td { padding: 2px 0; border: 0; overflow-wrap: anywhere; }
}
.add-site label .muted { display: block; font-weight: 400; font-size: 14px; margin-top: 4px; }
@media (max-width: 560px) { .page-head { align-items: flex-start; flex-direction: column; } .keys { grid-template-columns: 1fr; } .keys dd { margin-bottom: 10px; } .dev pre { font-size: 12px; overflow-x: auto; } .site .actions > .btn { flex: 1 1 0; } }
@media (max-width: 560px) { .site, .add-site { padding: 18px; } .add-site .row > * { flex: 1 1 100%; } .site .row > .btn, .site .row > form, .site .row > form button { flex: 1 1 auto; text-align: center; } }
kbd { font: 12px var(--mono); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 3px; padding: 0 5px; }
.inline { display: inline; }
.hint { color: var(--muted); font-size: 13px; margin-left: 6px; }
.muted { color: var(--muted); }
.error { color: var(--accent); }
.notice { border: 1px solid var(--line); box-shadow: inset 4px 0 var(--accent); border-radius: 3px; padding: 10px 16px; background: var(--panel); }
.billing { margin: 0 0 16px; }
.message { white-space: pre-wrap; overflow-wrap: anywhere; }
/* Admin: tabbed panes whose tables wrap instead of scrolling sideways; below 900px each row is a card. */
.admin .tabs .count { font-size: 12px; margin-left: 4px; }
.admin .tabs .count:not(.muted) { color: var(--on-accent); background: var(--accent); border-radius: 9px; padding: 0 6px; }
.admin .tool { margin: 4px 0 16px; }
.admin .tool .grow { flex: 1 1 220px; }
.admin .settings { max-width: 520px; }
table.list th, table.list td { white-space: normal; vertical-align: top; overflow-wrap: anywhere; }
table.list td.actions { display: table-cell; white-space: nowrap; width: 1%; text-align: right; }
.admin .tabs { flex-wrap: wrap; overflow: visible; }
table.list .acts { display: flex; gap: 4px; justify-content: flex-end; }
table.list td.actions button, .admin form.compact button { background: none; color: var(--fg); border-color: var(--line); }
table.list td.actions button:hover, .admin form.compact button:hover { border-color: var(--accent); color: var(--accent); }
table.list td.actions button.danger { color: #ef4444; border-color: currentColor; }
.admin form.compact { gap: 4px; margin-top: 6px; flex-wrap: nowrap; }
.admin form.compact button { white-space: nowrap; }
.admin form.compact input.days { flex: 0 0 64px; }
@media (max-width: 900px) {
  table.list thead { display: none; }
  table.list, table.list tbody, table.list tr, table.list td { display: block; width: auto; }
  table.list tr { border: 1px solid var(--line); border-radius: 3px; padding: 8px 12px; margin: 0 0 10px; background: var(--panel); }
  table.list td { border: 0; padding: 4px 0; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; }
  table.list td::before { content: attr(data-label); color: var(--muted); font-size: 13px; }
  table.list td.actions { display: block; width: auto; padding-top: 8px; }
  table.list .acts { flex-wrap: wrap; justify-content: flex-start; gap: 6px; }
}
input.days { width: 72px; padding: 2px 6px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { display: block; border: 1px solid var(--line); border-radius: 3px; padding: 20px; color: inherit; text-decoration: none; margin: 14px 0; background: var(--panel); transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--fg); transform: translateY(-2px); box-shadow: 4px 4px 0 var(--accent); }
.card h2, .card h3 { margin: 0 0 6px; }
.demo { padding: 24px; }
.demo .icon { width: 64px; height: 64px; margin-bottom: 16px; fill: none; stroke: var(--fg); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.demo .icon .hl { fill: var(--accent); stroke: var(--accent); }
.demo .url { font: 13px var(--mono); color: var(--muted); margin: 0 0 8px; }
.card p { margin: 6px 0; }

pre, code { font-family: var(--mono); font-size: 13.5px; }
pre { background: var(--code); padding: 14px 16px; border: 1px solid var(--line); border-radius: 3px; overflow-x: auto; margin: 16px 0; line-height: 1.5; }
pre[data-lang] { position: relative; padding-top: 34px; }
pre[data-lang]::before { content: attr(data-lang); position: absolute; top: 0; left: 0; right: 0; padding: 4px 16px; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); border-bottom: 1px solid var(--line); }
code { background: var(--code); padding: 1px 5px; border-radius: 3px; word-break: break-word; }
pre code { padding: 0; background: none; word-break: normal; }
.key { display: grid; gap: 4px; border: 1px solid var(--accent); box-shadow: inset 4px 0 var(--accent); border-radius: 3px; padding: 16px 20px; margin: 0 0 24px; background: var(--panel); }
.key code { display: block; margin-top: 8px; padding: 8px 10px; word-break: break-all; }
details { margin-top: 16px; font-size: 14px; }
summary { cursor: pointer; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 20px 0; }
.stats div { border: 1px solid var(--line); border-radius: 3px; padding: 12px; color: var(--muted); font-size: 14px; }
.stats b { display: block; font-size: 22px; color: var(--fg); }
.range { margin-top: 8px; }
.chart { margin: 0 0 20px; border: 1px solid var(--line); border-radius: 3px; padding: 16px; background: var(--panel); }
.chart figcaption { font-weight: 600; margin-bottom: 8px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .bar { fill: var(--accent); }
.chart .hit { fill: transparent; }
.chart g:hover .bar { fill: var(--fg); }
.chart .axis { stroke: var(--line); }
.chart .tick { fill: var(--muted); font: 11px var(--mono); }
.report { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 16px; }
.report .card { margin: 0 0 16px; }
.report h3 { margin: 0 0 8px; }
table.top { width: 100%; font-size: 14px; }
table.top td:first-child { overflow-wrap: anywhere; }
table.top td:not(:first-child), table.top th:not(:first-child) { text-align: right; white-space: nowrap; width: 1%; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td.actions { display: flex; gap: 6px; }
.tag { font-size: 12px; font-weight: 500; border: 1px solid var(--line); border-radius: 4px; padding: 0 6px; color: var(--muted); vertical-align: middle; }
.tag.off { color: var(--accent); border-color: var(--accent); }
.tag.beta { font-family: inherit; font-stretch: normal; letter-spacing: 0; text-transform: uppercase; font-size: 10px; color: var(--accent); border-color: var(--accent); align-self: center; }
footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; color: var(--muted); padding: 32px 24px; border-top: 1px solid var(--fg); font: 13px var(--mono); }
footer a { color: var(--muted); }

.doc-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); max-width: 1120px; margin: 0 auto; gap: 40px; padding: 0 20px; }
.toc nav { position: sticky; top: 0; display: grid; gap: 2px; padding: 32px 0; }
.toc-h { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin: 16px 0 4px; }
.toc-h:first-child { margin-top: 0; }
.toc a { color: var(--muted); text-decoration: none; font-size: 14px; padding: 4px 0; }
.toc a:hover { color: var(--accent); }
main.doc { max-width: 760px; margin: 0; padding: 32px 0 60px; }
.doc h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 800; letter-spacing: -0.04em; margin: 0 0 16px; }
.doc h2 { font-size: 24px; }
.doc h3 { font-size: 18px; margin: 28px 0 8px; }
.doc h2 { margin-top: 48px; padding-top: 8px; scroll-margin-top: 16px; border-top: 1px solid var(--line); }
table.ref td { white-space: normal; vertical-align: top; }
table.ref td:first-child { white-space: nowrap; }
.console-hint { border-left: 3px solid var(--accent); padding: 6px 12px; background: var(--code); border-radius: 0 3px 3px 0; font-size: 14px; }
@media (max-width: 760px) { .doc-layout { grid-template-columns: 1fr; gap: 0; } .toc nav { position: static; display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 16px 0 0; } .toc-h { flex-basis: 100%; margin: 8px 0 0; } }

.studio-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; padding-top: 32px; }
.studio-head h1 { margin: 6px 0 0; font-size: clamp(28px, 4vw, 40px); }
.studio-head a.muted { text-decoration: none; font-size: 14px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 18px 0 14px; overflow-x: auto; }
.tabs button { background: none; color: var(--muted); border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 10px 16px; white-space: nowrap; }
.tabs button:hover { background: none; color: var(--fg); }
.tabs button[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--accent); }
.status { min-height: 1.5em; margin: 0 0 8px; font-size: 14px; }
.status.ok { color: #15803d; }
.status.bad { color: var(--accent); }
.pane .row { margin-bottom: 12px; }
.split { display: grid; grid-template-columns: var(--side, 240px) 12px minmax(0, 1fr); gap: 4px; }
.gutter { cursor: col-resize; position: relative; touch-action: none; }
.gutter::after { content: ""; position: absolute; inset: 0 5px; border-radius: 1px; background: var(--line); transition: background .15s; }
.gutter:hover::after, .gutter:focus-visible::after, .gutter.drag::after { background: var(--accent); }
.list { list-style: none; margin: 0; padding: 0; }
.list button { display: flex; justify-content: space-between; gap: 8px; width: 100%; text-align: left; background: none; color: var(--fg); border: 0; border-radius: 3px; padding: 6px 8px; font-size: 14px; }
.list button:hover { background: var(--code); color: var(--fg); }
.list button.on { background: var(--code); color: var(--accent); font-weight: 600; }
.list .muted { font-size: 12px; }
.editor-bar { border: 1px solid var(--line); border-bottom: 0; border-radius: 3px 3px 0 0; padding: 8px 10px; margin: 0 !important; background: var(--panel); }
.editor { border: 1px solid var(--line); border-radius: 0 0 3px 3px; height: 62vh; min-height: 320px; overflow: hidden; background: #272822; }
.editor.short { height: 220px; min-height: 0; border-radius: 3px; margin-bottom: 12px; }
.editor .cm-editor { height: 100%; font-size: 14px; }
.editor textarea { width: 100%; height: 100%; border: 0; border-radius: 0; resize: none; font: 14px/1.5 ui-monospace, Consolas, monospace; }
#grid td[contenteditable] { cursor: text; min-width: 80px; max-width: 360px; overflow: hidden; text-overflow: ellipsis; }
#grid td[contenteditable]:focus { outline: 2px solid var(--accent); outline-offset: -2px; background: var(--panel); white-space: normal; }
#rules input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); }
#rules input[data-filter] { width: 100%; min-width: 180px; padding: 4px 8px; }
#table-form { max-width: 520px; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } .gutter { display: none; } .editor, .studio .editor { height: 50vh; } .bar nav { gap: 12px; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .logo:hover .mark { transform: none; } }