:root {
  --paper: #f5f7f9; --ink: #121820; --muted: #58636f; --rule: #d6dce3;
  --accent: #0a6c74; --accent-ink: #ffffff; --panel: #e8ecf0; --ok: #2e7a4f; --bad: #b42318;
  --serif: Charter, 'Bitstream Charter', 'Iowan Old Style', Georgia, serif;
  --sans: 'Helvetica Neue', 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #0d1117; --ink: #e4e8ee; --muted: #8b95a3; --rule: #252d38;
          --accent: #37c2c0; --accent-ink: #06201f; --panel: #141a22; --ok: #6fcf97; --bad: #ff7b72;
          color-scheme: dark; }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
body { font: 17px/1.65 var(--serif); }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.muted { color: var(--muted); }
.ok { color: var(--ok); } .bad { color: var(--bad); }
.layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); min-height: 100vh; }
.sidebar { border-right: 1px solid var(--rule); padding: 28px 22px; background: var(--panel);
           font: 14px/1.5 var(--sans);
           position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.masthead a { color: inherit; text-decoration: none; }
.masthead { border-top: 5px solid var(--ink); padding-top: 10px; }
.masthead h1 { font: 800 25px/1 var(--sans); margin: 0; letter-spacing: -0.02em; text-transform: uppercase; }
.tagline { margin: 6px 0 22px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); color: var(--accent);
           font: 600 11px var(--sans); text-transform: uppercase; letter-spacing: .16em; }
.reader { margin: -14px 0 18px; font: 12px var(--sans); color: var(--muted); }
.reader button.link { width: auto; margin: 0; padding: 0; border: 0; background: none; color: var(--accent);
                      font: inherit; cursor: pointer; text-decoration: underline; }
.jump { display: block; margin-bottom: 10px; }
.jump span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.jump input { width: 100%; font: inherit; padding: 6px 8px; border: 1px solid var(--rule);
              background: var(--paper); color: var(--ink); border-radius: 4px; }
.stepper { display: flex; justify-content: space-between; margin-bottom: 22px; }
.spinner { display: inline-block; width: .85em; height: .85em; margin-right: .45em; vertical-align: -.1em;
           border: 2px solid var(--rule); border-top-color: var(--accent); border-radius: 50%;
           animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }
.run, .history { border-top: 1px solid var(--rule); padding-top: 14px; margin-top: 14px; }
.sidebar h2 { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: 0 0 8px; }
.sidebar h3 { font-size: 13px; margin: 12px 0 4px; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.history li a { display: block; padding: 2px 8px; margin: 0 -8px; border-radius: 3px; text-decoration: none; }
.history li a:hover { background: var(--rule); }
.history li a.current { background: var(--accent); color: var(--accent-ink); }
.history .tldr { margin: 0 8px 4px; font-size: 12px; color: var(--muted); }
.health ul { list-style: none; margin: 4px 0 0; padding: 0; font-size: 12px; }
.health li { padding: 2px 0; border-bottom: 1px dotted var(--rule); }
.sources-progress li { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.sources-progress li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.writing { margin: 8px 0; padding: 8px 10px; background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; }
.writing p { margin: 0; font-weight: 600; }
.writing blockquote { margin: 6px 0 0; font: italic 13px/1.45 var(--serif); color: var(--muted);
                      max-height: 7.5em; overflow: hidden; }
.narration { margin-top: 10px; padding-top: 10px; border-top: 1px dotted var(--rule); font-size: 13px; }
.narration p { margin: 0 0 4px; }
.wire { list-style: none; margin: 10px 0 0; padding: 0; font-size: 12px; max-height: 320px; overflow-y: auto; }
.wire li { display: grid; grid-template-columns: 58px 1fr; gap: 6px; padding: 3px 0; border-bottom: 1px dotted var(--rule); }
.wire li:first-child { font-weight: 600; }
.wire time { color: var(--muted); font-variant-numeric: tabular-nums; }
.wire a, .wire span { overflow-wrap: anywhere; }
.wire li.error span { color: var(--bad); }
.wire li.ok span { color: var(--ok); }
button { margin-top: 10px; width: 100%; font: 600 13px var(--sans); padding: 8px 10px;
         border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink);
         border-radius: 4px; cursor: pointer; }
button:hover { filter: brightness(1.1); }
button.secondary { margin-top: 6px; background: var(--paper); color: var(--accent); }
main { padding: 48px clamp(20px, 6vw, 80px) 80px; }
.briefing { max-width: 44rem; margin: 0 auto; }
.dateline { font: 700 12px var(--sans); text-transform: uppercase; letter-spacing: .16em;
            color: var(--accent); margin: 0 0 8px; }
.prose h1 { font: 800 2.35rem/1.1 var(--sans); margin: 0 0 1.3rem; letter-spacing: -0.025em; }
.prose h2 { font: 700 .82rem/1.3 var(--sans); text-transform: uppercase; letter-spacing: .14em; color: var(--accent);
            margin: 2.6rem 0 .8rem; padding-top: .6rem; border-top: 2px solid var(--ink); }
.prose h3 { font: 700 1.2rem/1.3 var(--sans); margin: 1.6rem 0 .4rem; letter-spacing: -0.01em; }
.prose p, .prose li { hyphens: auto; }
.prose a { font-size: .8em; vertical-align: super; line-height: 0; text-decoration: none; }
.prose h2 + ul a, .prose ul li > a:only-child { font-size: 1em; vertical-align: baseline; }
.prose blockquote { margin: 1rem 0; padding: 0 1rem; border-left: 3px solid var(--rule); color: var(--muted); }
.prose code { font-size: .88em; background: var(--panel); padding: 1px 4px; border-radius: 3px; }
.prose pre { background: var(--panel); padding: 12px; overflow-x: auto; border-radius: 4px; }
.diagram { margin: 1.8rem 0; border: 1px solid var(--rule); border-radius: 6px; background: var(--panel); overflow: hidden; }
.diagram-tools { display: flex; gap: 6px; align-items: center; padding: 6px 8px; border-bottom: 1px solid var(--rule); }
.diagram-tools button { width: auto; min-width: 32px; margin: 0; padding: 3px 9px; background: var(--paper);
                        color: var(--ink); border: 1px solid var(--rule); font: 600 13px var(--sans); }
.diagram-tools button:hover { border-color: var(--accent); filter: none; }
.diagram-hint { margin-left: auto; font: 12px var(--sans); color: var(--muted); }
.diagram-view { overflow: hidden; max-height: 70vh; cursor: grab; touch-action: none; user-select: none; }
.diagram-view.dragging { cursor: grabbing; }
.prose .diagram pre.mermaid { background: transparent; margin: 0; padding: 16px; border-radius: 0; text-align: center;
                              overflow: visible;
                              font: 12px/1.4 ui-monospace, monospace; white-space: pre-wrap; color: var(--muted); }
.diagram-view svg { transform-origin: 0 0; height: auto; }
.diagram.expanded { position: fixed; inset: 16px; z-index: 50; margin: 0; display: flex; flex-direction: column;
                    background: var(--paper); box-shadow: 0 12px 48px rgba(0,0,0,.35); }
.diagram.expanded .diagram-view { flex: 1; max-height: none; min-height: 0; position: relative; }
.diagram.expanded .diagram-view pre.mermaid { position: absolute; inset: 0; padding: 0; text-align: left; }
@media (max-width: 800px) { .diagram-hint { display: none; } }
/* the levels of the day's map: mermaid's own styles are scoped by the svg's id, so these need !important */
.diagram .node.force rect { fill: var(--accent) !important; stroke: var(--accent) !important; }
.diagram .node.force .nodeLabel, .diagram .node.force span { color: var(--accent-ink) !important; font-weight: 700; }
.diagram .node.implied rect { stroke-dasharray: 5 4 !important; fill: var(--paper) !important; }
.diagram .node.implied .nodeLabel { font-style: italic; }
.diagram .node.news rect { fill: var(--panel) !important; stroke: var(--rule) !important; }
.diagram .cluster rect { fill: transparent !important; }
.diagram .cluster .nodeLabel, .diagram .cluster-label span { color: var(--muted) !important; font: 600 11px var(--sans);
  text-transform: uppercase; letter-spacing: .14em; }
.diagram figcaption { padding: 8px 12px; border-top: 1px solid var(--rule); font: 13px/1.5 var(--sans); color: var(--muted); }
.diagram.expanded figcaption { display: none; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }
.meta { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--rule); color: var(--muted);
        font: 13px var(--sans); }
.podcast { margin: 0 0 1.6rem; font: 14px/1.5 var(--sans); }
.podcast-label { margin: 0 0 6px; font-weight: 700; }
.podcast audio { display: block; width: 100%; }
.podcast button.quiet { width: auto; margin: 0; padding: 4px 10px; background: var(--paper); color: var(--ink);
                        border: 1px solid var(--rule); font-weight: 600; }
.podcast button.quiet:hover { border-color: var(--accent); filter: none; }
.transcript { margin-top: 8px; }
.transcript summary { cursor: pointer; color: var(--muted); }
.transcript p { margin: .45rem 0; }
.gathered { margin-top: 1.5rem; font: 14px/1.5 var(--sans); }
.gathered summary { cursor: pointer; color: var(--muted); }
.gathered li { margin: .6rem 0; }
.gathered .summary { margin: .2rem 0 0; color: var(--muted); font-size: 13px; }
.empty h1 { font: 800 2rem/1.15 var(--sans); letter-spacing: -0.02em; }
@media (max-width: 800px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--rule); }
  main { padding: 28px 16px 60px; }
}
.stories li a { display: block; padding: 2px 8px; margin: 0 -8px; border-radius: 3px; text-decoration: none; }
.stories li a:hover { background: var(--rule); }
.stories li a.current { background: var(--accent); color: var(--accent-ink); }
.stories p { margin: 6px 0 0; font-size: 12px; }
.story-index { list-style: none; padding: 0; }
.story-index li { border-top: 1px solid var(--rule); padding: .8rem 0; }
.story-index h3 { margin: 0; }
.story-index p { margin: .2rem 0; }
.standfirst { font-size: 1.15em; color: var(--muted); }
.facts { list-style: none; padding: 0; border-left: 2px solid var(--rule); }
.facts li { position: relative; padding: 0 0 .8rem 1rem; }
.facts li::before { content: ""; position: absolute; left: -6px; top: .45em; width: 10px; height: 10px;
                    border-radius: 50%; background: var(--accent); }
.facts .day, .coverage .day { font: 600 12px var(--sans); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.facts p { margin: .1rem 0 0; }
.coverage { list-style: none; padding: 0; font: 13px/1.4 var(--sans); }
.coverage li { display: grid; grid-template-columns: 11rem minmax(0, 1fr) 8rem; gap: 10px; align-items: center; margin: 3px 0; }
.coverage .bar { background: var(--panel); border-radius: 2px; height: 10px; }
.coverage .bar span { display: block; height: 100%; background: var(--accent); border-radius: 2px; }
.coverage .count { color: var(--muted); }
@media (max-width: 600px) { .coverage li { grid-template-columns: 1fr; gap: 2px; } }
/* the track record */
.standings { width: 100%; border-collapse: collapse; font: 13px/1.4 var(--sans); margin: .4rem 0 1.4rem;
             font-variant-numeric: tabular-nums; }
.standings th, .standings td { padding: 5px 8px; border-bottom: 1px solid var(--rule); text-align: right; }
.standings th:first-child, .standings td:first-child { text-align: left; }
.standings th { font-weight: 600; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.standings tr.own td { font-weight: 700; color: var(--accent); }
.track-record h3 { text-transform: capitalize; }
.lessons { list-style: none; padding: 0; }
.lessons li { border-top: 1px solid var(--rule); padding: .5rem 0; }
.lessons .kind, .judged .kind { font: 600 11px var(--sans); text-transform: uppercase; letter-spacing: .08em;
                                color: var(--accent); margin-right: .4rem; }
.judged { list-style: none; padding: 0; }
.judged li { border-left: 3px solid var(--rule); padding: .2rem 0 .2rem .8rem; margin: .8rem 0; }
.judged p { margin: .15rem 0; }
.judged .claim { font-weight: 600; }
.judged .muted { font-size: 13px; }
.judged .held { border-left-color: var(--ok); } .judged .failed { border-left-color: var(--bad); }
.judged .partly { border-left-color: var(--accent); }
.judged .held .kind { color: var(--ok); } .judged .failed .kind { color: var(--bad); }
.retrospective { border-top: 2px solid var(--ink); margin-top: 2rem; padding-top: .6rem; }
.retrospective h2 { font: 700 .82rem/1.3 var(--sans); text-transform: uppercase; letter-spacing: .14em; color: var(--accent); }
@media (max-width: 600px) { .standings th:nth-child(4), .standings td:nth-child(4) { display: none; } }
/* the config page */
.config-link { margin: -12px 0 14px; font-size: 13px; }
.config-link a.current { font-weight: 700; }
.config .standfirst { margin-bottom: 1rem; }
.notice { padding: 8px 12px; border-radius: 4px; border: 1px solid currentColor; font: 600 14px var(--sans); }
.toc { font: 13px var(--sans); margin: 1rem 0 2rem; }
.settings-form { font: 14px/1.5 var(--sans); }
.settings-form h2 { font: 700 .82rem/1.3 var(--sans); text-transform: uppercase; letter-spacing: .14em; color: var(--accent);
                    margin: 2.6rem 0 .8rem; padding-top: .6rem; border-top: 2px solid var(--ink); }
.settings-form h3 { font: 700 1rem var(--sans); margin: 1.4rem 0 .4rem; }
.settings-form .doc { margin: .2rem 0 .4rem; color: var(--muted); font-size: 13px; }
.field { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 4px 14px; margin: 0 0 14px; }
.field .label { font-weight: 600; padding-top: 6px; overflow-wrap: anywhere; }
.field .required { color: var(--bad); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--bad); }
.settings-form .error { margin: .2rem 0; color: var(--bad); font-size: 13px; }
.settings-form input[type=text], .settings-form select, .settings-form textarea {
  width: 100%; font: inherit; padding: 6px 8px; border: 1px solid var(--rule); border-radius: 4px;
  background: var(--paper); color: var(--ink); }
.settings-form textarea { font: 13px/1.45 ui-monospace, monospace; resize: vertical; }
.settings-form button { width: auto; margin: 0; padding: 5px 12px; }
.settings-form button.add, .settings-form button.remove { background: var(--paper); color: var(--accent); }
.settings-form button.remove { color: var(--bad); border-color: var(--rule); }
.settings-form .prompt-reset { margin: .3rem 0; font-size: 13px; }
.checks label { margin-right: 14px; font-weight: normal; }
.list .entries { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.entry.inline { display: flex; gap: 6px; }
.entry.inline button.remove { padding: 2px 10px; }
.entry.record { border-left: 2px solid var(--rule); padding: 6px 0 6px 12px; }
.entry.record .field { grid-template-columns: 7rem minmax(0, 1fr); }
details.entry { border: 1px solid var(--rule); border-radius: 6px; background: var(--panel); padding: 0 14px; }
details.entry[open] { padding-bottom: 14px; }
details.entry > summary { cursor: pointer; padding: 9px 0; display: flex; gap: 10px; align-items: baseline; }
details.entry > summary .title { font-weight: 600; overflow-wrap: anywhere; }
details.entry > summary .type { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
fieldset.type-fields { border: 0; margin: 0; padding: 0; min-width: 0; }
.extra { margin: 4px 0 10px; }
.extra summary { cursor: pointer; color: var(--muted); font-size: 12px; }
fieldset.plugin { border: 1px solid var(--rule); border-radius: 6px; margin: 0 0 14px; padding: 6px 14px 10px; }
fieldset.plugin legend { font-weight: 700; padding: 0 6px; }
.save-bar { position: sticky; bottom: 0; display: flex; gap: 16px; align-items: center; margin-top: 2rem;
            padding: 12px 0; background: var(--paper); border-top: 1px solid var(--rule); }
@media (max-width: 800px) {
  .field, .entry.record .field { grid-template-columns: 1fr; }
  .field .label { padding-top: 0; }
}
.import-errors ul { margin: .4rem 0 1rem; padding-left: 1.2rem; color: var(--bad); font-size: 13px; }
.import-errors code { color: var(--ink); }
.source-actions { display: flex; gap: 8px; margin-top: 6px; }
.settings-form button.test { background: var(--paper); color: var(--accent); }
.test { margin-top: 10px; padding: 8px 12px; border: 1px solid var(--rule); border-left: 3px solid var(--ok);
        border-radius: 4px; background: var(--paper); font-size: 13px; }
.test.bad { border-left-color: var(--bad); }
.test p { margin: 0 0 4px; }
.test ul { margin: 4px 0 0; padding-left: 1.2rem; }
/* search */
.search-box { margin: 0 0 12px; }
.search-box input, .search-form input[type=search], .search-form select {
  font: inherit; padding: 6px 8px; border: 1px solid var(--rule); border-radius: 4px;
  background: var(--paper); color: var(--ink); }
.search-box input { width: 100%; box-sizing: border-box; }
.search-form { display: flex; gap: 8px; flex-wrap: wrap; font: 15px var(--sans); margin: 0 0 1rem; }
.search-form input[type=search] { flex: 1 1 16rem; min-width: 0; font-size: 17px; }
.search-form button { width: auto; margin: 0; padding: 6px 14px; }
.corrections { font: 14px var(--sans); color: var(--muted); }
.corrections em { color: var(--ink); }
.kinds { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 1rem; font: 13px var(--sans); }
.kinds a { padding: 3px 10px; border: 1px solid var(--rule); border-radius: 999px; text-decoration: none; }
.kinds a.current { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.kinds .count { opacity: .7; font-variant-numeric: tabular-nums; }
.results { list-style: none; padding: 0; margin: 0; }
.results li { border-top: 1px solid var(--rule); padding: .9rem 0; }
.results h3 { font: 700 1.1rem/1.3 var(--sans); margin: .15rem 0 .3rem; }
.result-meta { margin: 0; font: 600 11px var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.result-meta .kind { color: var(--accent); }
.snippet { margin: 0; font-size: 15px; }
.snippet mark { background: color-mix(in srgb, var(--accent) 22%, transparent); color: inherit; padding: 0 1px; border-radius: 2px; }
.result-link { margin: .2rem 0 0; font: 12px var(--sans); overflow-wrap: anywhere; }
.result-link a { color: var(--muted); }

/* the reader's topics: a pane on the right, and the + that adds a paragraph to it */
.topic-add { position: absolute; z-index: 30; width: 26px; height: 26px; margin: 0; padding: 0;
             border-radius: 50%; font: 700 16px/1 var(--sans); border: 1px solid var(--accent);
             background: var(--paper); color: var(--accent); opacity: .85; }
.topic-add:hover, .topic-add.on { background: var(--accent); color: var(--accent-ink); opacity: 1; filter: none; }
.prose .picked, .facts .picked { box-shadow: -14px 0 0 -11px var(--accent); }
.topics-toggle { position: fixed; right: 0; top: 40%; z-index: 40; width: auto; margin: 0; padding: 10px 8px;
                 writing-mode: vertical-rl; border-radius: 6px 0 0 6px; font: 600 12px var(--sans);
                 letter-spacing: .08em; text-transform: uppercase; }
.topics-toggle .count { display: inline-block; margin-top: 6px; padding: 2px 0; font-variant-numeric: tabular-nums; }
.topics-open .topics-toggle { display: none; }
.topics { position: fixed; top: 0; right: 0; bottom: 0; z-index: 45; width: min(420px, 100vw);
          display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 14px; overflow-y: auto;
          background: var(--panel); border-left: 1px solid var(--rule); font: 14px/1.5 var(--sans);
          box-shadow: -6px 0 18px rgba(0, 0, 0, .08); }
.topics[hidden] { display: none; }
.topics.wide { width: min(760px, 100vw); }
.topics-open main { padding-right: calc(420px + 24px); }
.topics-open:has(.topics.wide) main { padding-right: calc(760px + 24px); }
.topics header { display: flex; align-items: center; gap: 6px; }
.topics h2 { flex: 1; margin: 0; font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.topics button { margin: 0; }
.topics button.quiet, .topics-message-tools button { width: auto; padding: 4px 9px; background: var(--paper);
                                                     color: var(--ink); border-color: var(--rule); font-weight: 500; }
.topics button.quiet:hover { border-color: var(--accent); filter: none; }
.topics button:disabled { opacity: .5; cursor: default; filter: none; }
.topics-hint { margin: 0; }
.topics-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.topics-list li { padding: 8px 10px; background: var(--paper); border: 1px solid var(--rule); border-left: 3px solid var(--accent);
                  border-radius: 4px; }
.topics-list li p { margin: 0; }
.topics-list li p:first-child { font: 14px/1.45 var(--serif); display: -webkit-box; -webkit-line-clamp: 5;
                                -webkit-box-orient: vertical; overflow: hidden; }
.topics-list li p.muted { display: flex; justify-content: space-between; align-items: center; gap: 8px;
                          margin-top: 6px; font-size: 12px; }
.topics-list li button.quiet { padding: 1px 7px; font-size: 11px; }
.topics-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.topics-actions input { flex: 1 1 100%; font: inherit; padding: 6px 8px; border: 1px solid var(--rule);
                        background: var(--paper); color: var(--ink); border-radius: 4px; }
.topics-actions button:not(.quiet) { flex: 1; }
.topics-chat { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--rule); padding-top: 10px; }
.topics-chat:empty { display: none; }
.topics-message { border-radius: 6px; padding: 8px 12px; }
.topics-message.user { align-self: flex-end; max-width: 85%; background: var(--accent); color: var(--accent-ink); }
.topics-message.user p { margin: 0; white-space: pre-wrap; }
.topics-message.assistant { background: var(--paper); border: 1px solid var(--rule); }
.topics-message.error { border-color: var(--bad); color: var(--bad); }
.topics-message .prose { font: 15px/1.6 var(--serif); }
.topics-message .prose h1 { font-size: 1.4rem; margin-bottom: .6rem; }
.topics-message .prose h2 { margin-top: 1.4rem; }
.topics-streaming { white-space: pre-wrap; font: 14px/1.55 var(--serif); }
.topics-status { margin: 0 0 4px; font-style: italic; }
.topics-message-tools { display: flex; justify-content: flex-end; }
.topics-ask { display: flex; flex-direction: column; gap: 6px; margin-top: auto; padding-top: 10px;
              border-top: 1px solid var(--rule); }
.topics-ask textarea { font: inherit; padding: 6px 8px; border: 1px solid var(--rule); border-radius: 4px; resize: vertical;
                       background: var(--paper); color: var(--ink); }
.topics-ask-actions { display: flex; gap: 6px; }
.topics-ask-actions button[type=submit] { flex: 1; }
@media (max-width: 1100px) { .topics-open main { padding-right: clamp(20px, 6vw, 80px); } }
@media (max-width: 800px) { .topic-add { left: 2px !important; } }

/* the registered providers, on the config page */
table.providers { border-collapse: collapse; margin: 0.5rem 0 1rem; font-size: 0.9em; width: 100%; }
table.providers th, table.providers td { text-align: left; padding: 0.25rem 0.75rem 0.25rem 0; border-bottom: 1px solid var(--rule, #ddd); }
table.providers th { font-weight: 600; }
