:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #1d2320;
  --muted: #5f6b65;
  --line: #e3e1da;
  --brand: #1f6f4a;
  --brand-ink: #ffffff;
  --brand-soft: #e8f3ec;
  --accent: #b4561f;
  --code-bg: #f3f2ee;
  --claude-bg: #fffaf3;
  --claude-line: #e9d9c3;
  --warn-bg: #fff6e0;
  --warn-line: #e8c870;
  --err-bg: #fdecea;
  --err-line: #e8a39b;
  --radius: 10px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141816; --surface: #1b201d; --ink: #e6e9e7; --muted: #9aa59f; --line: #2d3430;
    --brand: #4fb383; --brand-ink: #0f1411; --brand-soft: #1d2d24; --accent: #e08a55;
    --code-bg: #232926; --claude-bg: #1f1d19; --claude-line: #3d362b;
    --warn-bg: #2e2715; --warn-line: #6b5826; --err-bg: #2f1b19; --err-line: #6e3a33;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.25; margin: 1.4em 0 .5em; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); letter-spacing: -.01em; margin-top: .6em; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.12rem; }
code, pre { font-family: var(--mono); font-size: .9em; }
.wrap { max-width: 920px; margin: 0 auto; padding-inline: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: var(--surface); padding: 6px 10px; z-index: 10; }
.muted, .meta { color: var(--muted); }
.inline { display: inline; margin: 0; }

/* header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 12px; }
.brand { font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand-mark { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 6px; background: var(--brand); color: var(--brand-ink); font-size: .85em; margin-right: 4px; }
.header-search { flex: 1 1 200px; }
.header-search input { width: 100%; }
.nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: .95rem; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--brand); }
.nav a.btn { color: var(--brand-ink); }

/* forms + buttons */
input[type=search], input[type=text], input[type=password], input:not([type]), select, textarea {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 11px; width: 100%;
}
textarea { font-family: var(--mono); font-size: .9rem; line-height: 1.5; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: transparent; }
.btn { display: inline-block; font: inherit; font-weight: 600; background: var(--brand); color: var(--brand-ink); border: 1px solid var(--brand);
  border-radius: 8px; padding: 8px 16px; cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(1.08); }
.btn-small { padding: 4px 11px; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--brand); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.danger { color: #c0392b; }
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 5px; font-weight: 600; }
.form label small { font-weight: 400; color: var(--muted); }
.form label.check { display: inline-flex; align-items: center; gap: 7px; font-weight: 400; }
.form-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); align-items: end; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding-top: 8px; border-top: 1px solid var(--line); }

/* alerts */
.flash { background: var(--brand-soft); border: 1px solid var(--brand); border-radius: var(--radius); padding: 10px 14px; margin-top: 20px; }
.alert { background: var(--err-bg); border: 1px solid var(--err-line); border-radius: var(--radius); padding: 12px 16px; margin: 14px 0; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }
.alert-warn { background: var(--warn-bg); border-color: var(--warn-line); }
.notice { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 8px; padding: 6px 12px; display: inline-block; font-size: .9rem; }

/* home + lists */
.hero { padding: 30px 0 10px; }
.hero h1 { margin-bottom: .3em; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 46em; margin-top: 0; }
.big-search { display: flex; gap: 8px; margin: 18px 0; }
.big-search input { font-size: 1.1rem; padding: 11px 14px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-block; background: var(--brand-soft); color: var(--brand); border-radius: 999px; padding: 1px 10px; font-size: .82rem; text-decoration: none; margin-right: 4px; }
.tag small { opacity: .7; }
.section-title { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.fix-list { list-style: none; padding: 0; margin: 0; }
.fix-item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.fix-item-title { font-size: 1.15rem; margin: 0 0 4px; }
.fix-item-title a { color: var(--ink); text-decoration: none; }
.fix-item-title a:hover { color: var(--brand); text-decoration: underline; }
.fix-item-summary { margin: 0 0 6px; color: var(--muted); }
.meta { font-size: .88rem; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0; }
.result-count { color: var(--muted); }
.empty { color: var(--muted); padding: 20px 0; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 20px 0; color: var(--muted); }
.pager-step { min-width: 6.5em; }
.pager-step[rel="next"] { text-align: right; }
.pager-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.pager-num { display: inline-block; min-width: 2.1em; padding: 3px 6px; text-align: center; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; }
.pager-num:hover { border-color: var(--brand); }
.pager-num.current { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); font-weight: 600; }
.pager-gap { padding: 3px 2px; }
.result-bar, .tag-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }
.result-bar p, .tag-bar p { margin: 0 0 8px; }
.result-note { white-space: nowrap; }
.per-page { color: var(--muted); font-size: .9rem; }
.per-page a, .per-page .current { padding: 1px 5px; }
.per-page .current { font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--brand); }
.show-all { margin: 16px 0; }
.badge { display: inline-block; font-size: .75rem; font-weight: 600; padding: 1px 8px; border-radius: 6px; background: var(--warn-bg); border: 1px solid var(--warn-line); vertical-align: middle; }
.badge-ok { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.tag-index { columns: 3 180px; padding-left: 0; list-style: none; }
.tag-index li { padding: 3px 0; }
.count { color: var(--muted); font-size: .85rem; }

/* fix page */
.fix-header { padding: 10px 0 6px; }
.fix-header h1 { margin-bottom: .35em; }
.owner-actions { margin: 10px 0 0; }
.the-fix { background: var(--brand-soft); border: 1px solid var(--brand); border-left-width: 5px; border-radius: var(--radius); padding: 4px 22px 10px; margin: 18px 0 30px; }
.the-fix > h2 { color: var(--brand); margin-top: .8em; }
.conversation > h2 { margin-bottom: .2em; }
.conv-note { color: var(--muted); margin-top: 0; }
.turn { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin: 14px 0; overflow: hidden; }
.turn-who { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; padding: 7px 18px; border-bottom: 1px solid var(--line); color: var(--muted); }
.turn-claude { background: var(--claude-bg); border-color: var(--claude-line); }
.turn-claude .turn-who { color: var(--accent); border-color: var(--claude-line); }
.turn-body { padding: 2px 18px 6px; }

/* prose (rendered markdown) */
.prose { overflow-wrap: anywhere; }
.prose > :first-child { margin-top: .8em; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose .code, .prose .table-wrap { margin: .8em 0; }
.prose ul, .prose ol { padding-left: 1.5em; }
.prose li { margin: .25em 0; }
.prose li > p { margin: .2em 0; }
.prose :not(pre) > code { background: var(--code-bg); border-radius: 4px; padding: .1em .35em; overflow-wrap: anywhere; }
.prose blockquote { border-left: 3px solid var(--line); margin-left: 0; padding-left: 14px; color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 1.5em 0; }
.narrow { max-width: 42em; }
.code { position: relative; background: var(--code-bg); border: 1px solid var(--line); border-radius: 8px; }
.code pre { margin: 0; padding: 14px 16px; overflow-x: auto; line-height: 1.45; }
.code-lang { position: absolute; top: 0; left: 12px; font: 600 .68rem/1 var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); transform: translateY(-50%); background: var(--code-bg); padding: 2px 6px; border-radius: 4px; border: 1px solid var(--line); }
.copy-btn { position: absolute; top: 6px; right: 6px; font: .75rem var(--sans); background: var(--surface); color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; cursor: pointer; opacity: 0; transition: opacity .15s; }
.code:hover .copy-btn, .copy-btn:focus { opacity: 1; }
@media (hover: none) { .copy-btn { opacity: 1; } }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; vertical-align: top; }
th { background: var(--code-bg); }

/* cards, admin, editor */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 24px 22px; margin: 24px 0; }
.narrow-card { max-width: 440px; margin: 40px auto; }
.page-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.page-head > div { display: flex; gap: 14px; align-items: center; }
.admin-table td.actions { white-space: nowrap; }
.admin-table td.actions > * { margin-right: 10px; }
.admin-table details { display: inline-block; }
.inline-form { display: flex; gap: 6px; margin-top: 6px; }
.inline-form input { width: 170px; }
.turns { border: 0; padding: 0; margin: 0; }
.turns legend { font-weight: 600; padding: 0; }
.turn-edit { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin: 10px 0; }
.turn-edit:has(option[value=assistant]:checked) { background: var(--claude-bg); border-color: var(--claude-line); }
.turn-edit-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 10px; border-bottom: 1px solid var(--line); }
.turn-edit-bar select { width: auto; padding: 4px 8px; }
.turn-tools { display: flex; gap: 12px; }
.turn-edit textarea { border: 0; border-radius: 0 0 var(--radius) var(--radius); min-height: 110px; background: transparent; }
.turn-add { display: flex; gap: 8px; }
.danger-zone { margin: 30px 0; text-align: right; }
.error-page { padding: 50px 0; text-align: center; }

.site-footer { border-top: 1px solid var(--line); margin-top: 60px; padding: 24px 0 36px; color: var(--muted); font-size: .88rem; }
.site-footer p { margin: .3em 0; }

@media (max-width: 640px) {
  .pager { flex-wrap: wrap; }
  .pager-pages { order: -1; width: 100%; }
  .header-inner { gap: 10px; }
  .header-search { order: 3; flex-basis: 100%; }
  .big-search { flex-direction: column; }
  .the-fix { padding-inline: 14px; }
  .turn-body { padding-inline: 13px; }
}

/* account: API key */
.wide-card { max-width: 640px; }
.key-reveal { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--radius); padding: 4px 16px 8px; margin: 12px 0; }
.key-box { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.key-box code { flex: 1 1 260px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; font-size: .85rem; overflow-wrap: anywhere; user-select: all; }
.key-meta { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 10px 0 14px; }
.key-meta dt { color: var(--muted); }
.key-meta dd { margin: 0; }
.button-row { display: flex; gap: 10px; flex-wrap: wrap; }
.api-help { margin: 18px 0 8px; }
.api-help summary { cursor: pointer; color: var(--brand); }
.api-help .code pre { font-size: .8rem; }
.small { font-size: .85rem; }
.api-prefs { margin: 16px 0 6px; gap: 10px; }
.api-prefs fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px 12px; margin: 0; }
.api-prefs legend { font-weight: 600; padding: 0 4px; }
.form label.radio-option { display: flex; align-items: flex-start; gap: 9px; margin: 8px 0; }
.radio-option input { margin-top: 5px; }

/* draft preview + quick publish */
.draft-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--radius); padding: 10px 14px; margin: 10px 0 4px; }
.draft-bar-actions { display: flex; gap: 8px; align-items: center; }
.owner-actions { display: flex; gap: 8px; align-items: center; margin: 10px 0 0; }
.status-cell { white-space: nowrap; }
.status-cell .badge { margin-right: 8px; }
.drafts-note { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 8px; padding: 8px 12px; }
.ack-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 6px 0 4px; }

/* draft count badge on "My fixes" */
.nav-my { position: relative; display: inline-flex; align-items: center; gap: 5px; }
.nav-badge { display: inline-grid; place-items: center; min-width: 1.35em; height: 1.35em; padding: 0 .35em;
  border-radius: 999px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; line-height: 1;
  box-shadow: 0 0 0 2px var(--surface); animation: nav-badge-pop .5s ease-out 1; }
@keyframes nav-badge-pop { 0% { transform: scale(.4); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .nav-badge { animation: none; } }

/* AI used */
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.ai-used::before { content: "✦ "; color: var(--accent); }

/* test data */
.badge-test { background: #eef0ff; border-color: #9aa3e8; color: #3b44a8; }
.test-banner { background: #eef0ff; border: 1px dashed #9aa3e8; color: #3b44a8; border-radius: 8px; padding: 6px 12px; font-size: .9rem; margin: 10px 0 0; }
@media (prefers-color-scheme: dark) { .badge-test, .test-banner { background: #1f2340; border-color: #4a52a0; color: #b8beff; } }

/* staging banner */
.env-banner { background: repeating-linear-gradient(45deg, #b4561f, #b4561f 12px, #c2652c 12px, #c2652c 24px); color: #fff;
  text-align: center; font-size: .85rem; font-weight: 600; padding: 5px 16px; }

/* moderation */
.badge-held { background: #fff1e0; border-color: #e0a050; color: #8a4b00; }
.badge-blocked { background: #fde8e8; border-color: #d66; color: #a11; }
.held-bar { border-color: #e0a050; background: #fff6ea; }
.nav-badge-alert { background: #c62828; }
.review-list { list-style: none; padding: 0; margin: 0; }
.review-item { border: 1px solid var(--line); border-left-width: 4px; border-radius: 8px; padding: 12px 14px; margin: 12px 0; }
.review-held { border-left-color: #e0a050; }
.review-blocked { border-left-color: #d66; }
.review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.review-item p { margin: 6px 0; }
.review-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; }
.excerpts { margin: 6px 0; padding-left: 18px; overflow-wrap: anywhere; }
.flag-term { font-size: .9rem; }
.term-form { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 16px; }
.term-form input { max-width: 260px; }
.small-list { margin: 4px 0 10px; padding-left: 18px; font-size: .92rem; }
@media (prefers-color-scheme: dark) {
  .badge-held { background: #3a2a12; border-color: #a7742f; color: #f3c27e; }
  .badge-blocked { background: #3a1616; border-color: #a44; color: #f5a3a3; }
  .held-bar { background: #2e2414; border-color: #a7742f; }
}
.excerpts { list-style: none; padding-left: 0; }
.excerpts li { margin: 8px 0; padding: 8px 10px; background: var(--code-bg, rgba(127,127,127,.08)); border-radius: 6px; line-height: 1.55; }
.excerpts q { quotes: none; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; white-space: pre-wrap; }
.excerpt-where { display: block; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 2px; }
mark.flag-hit { background: #ffd54f; color: #000; padding: 0 3px; border-radius: 3px; font-weight: 700; outline: 1px solid #e0a000; }
.context summary { cursor: pointer; font-weight: 600; }
.small { font-size: .85rem; }
@media (prefers-color-scheme: dark) { mark.flag-hit { background: #f5c542; color: #111; } }

/* messages */
.msg-list { list-style: none; padding: 0; margin: 0 0 20px; }
.msg { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin: 12px 0; }
.msg-unread { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.msg-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.msg p.meta { margin: 4px 0 8px; }
.msg-body { line-height: 1.55; }
.msg-actions { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin-top: 10px; font-size: .92rem; }
.msg-approved .msg-kind, .msg-published .msg-kind { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.msg-held .msg-kind { background: #fff1e0; border-color: #e0a050; color: #8a4b00; }
.msg-rejected .msg-kind, .msg-removed .msg-kind { background: #fde8e8; border-color: #d66; color: #a11; }
.badge-new { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.admin-note { margin: 10px 0 0; padding: 8px 12px; border-left: 3px solid var(--brand); background: var(--code-bg); border-radius: 0 6px 6px 0; }
.admin-note span { display: block; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.review-actions-form { margin-top: 10px; }
.note-label { display: block; font-size: .9rem; }
.note-label textarea { display: block; width: 100%; margin-top: 4px; }
.message-form { display: grid; gap: 6px; margin: 6px 0; min-width: 220px; }
@media (prefers-color-scheme: dark) {
  .msg-held .msg-kind { background: #3a2a12; border-color: #a7742f; color: #f3c27e; }
  .msg-rejected .msg-kind, .msg-removed .msg-kind { background: #3a1616; border-color: #a44; color: #f5a3a3; }
}

/* reports */
.report-link { margin: 28px 0 8px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.report-form fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; display: grid; gap: 8px; }
.report-form legend { font-weight: 600; padding: 0 4px; }
.form label.report-reason { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; cursor: pointer; }
.report-reason input { margin-top: .3em; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; gap: 14px; align-items: center; }
.review-section { font-size: 1.1rem; margin: 22px 0 6px; }
.review-report { border-left-color: #6a7fd0; }
.review-dangerous { border-left-color: #c62828; }
.report-offensive { background: #fde8e8; border-color: #d66; color: #a11; }
.report-incorrect { background: #e8eefc; border-color: #6a7fd0; color: #2a3f8f; }
.report-dangerous { background: #c62828; border-color: #c62828; color: #fff; }
@media (prefers-color-scheme: dark) {
  .report-offensive { background: #3a1616; border-color: #a44; color: #f5a3a3; }
  .report-incorrect { background: #1c2340; border-color: #4a5aa0; color: #b8c4ff; }
}

/* code block tools: Copy + Download, warnings */
.code-tools { position: absolute; top: 6px; right: 6px; display: flex; gap: 6px; opacity: 0; transition: opacity .15s; }
.code:hover .code-tools, .code-tools:focus-within { opacity: 1; }
@media (hover: none) { .code-tools { opacity: 1; } }
.code-btn { font: .75rem var(--sans); background: var(--surface); color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; cursor: pointer; text-decoration: none; line-height: 1.4; }
.code-btn:hover { color: var(--ink); border-color: var(--brand); }
.code-warn { margin: .8em 0 -.4em; padding: 6px 10px; font-size: .85rem; background: #fff4e5; border: 1px solid #e0a050; border-radius: 6px; color: #6b3d00; }
.code-warn strong { color: #8a4b00; }
.code-note { margin: .8em 0 -.4em; font-size: .8rem; color: var(--muted); }
@media (prefers-color-scheme: dark) { .code-warn { background: #2e2414; border-color: #a7742f; color: #f3d3a5; } .code-warn strong { color: #f3c27e; } }

/* script entries */
.badge-script { background: #e8f4ff; border-color: #7fb0e0; color: #1d4f80; font-family: var(--mono, ui-monospace, monospace); }
.ai-used.human::before { content: "✎ "; color: var(--brand); }
.kind-pick { border: 0; padding: 0; margin: 0 0 1em; display: flex; flex-wrap: wrap; gap: .4em 1.4em; }
.kind-pick legend { font-weight: 600; margin-bottom: .3em; padding: 0; }
.script-edit textarea.mono, textarea.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88rem; tab-size: 4; white-space: pre; overflow-x: auto; }
.script-name { font-size: .8em; font-weight: 400; margin-left: .4em; }
.search-filter { color: var(--muted); font-size: .9rem; margin: -.4em 0 .6em; }
.search-filter a, .search-filter .current { padding: 1px 6px; }
.search-filter .current { font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--brand); }
@media (prefers-color-scheme: dark) { .badge-script { background: #14283d; border-color: #3f6f9f; color: #a9cff5; } }
.code-file { text-transform: none; letter-spacing: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 500; }
