/* Internal · Foresight workspace and Pipeline. Builds on site.css tokens. */

:root {
  --fs-grid: #dcd6c9;
  --fs-side: #f4f1ea;
  --fs-danger: #b3261e;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --fs-grid: #3a352c; --fs-side: #1b1915; --fs-danger: #ff8a7a; }
}
:root[data-theme="dark"] { --fs-grid: #3a352c; --fs-side: #1b1915; --fs-danger: #ff8a7a; }

/* ---------------------------------------------------------------- gate */

.gate-form { display: grid; gap: 10px; margin-top: 24px; }
.gate-form > input, .gate-row input {
  width: 100%;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}
.gate-row { display: flex; gap: 8px; }
.gate-row input { flex: 1; }
.gate-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }

/* ---------------------------------------------------------------- shell */

.ws {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: calc(100vh - var(--nav-h));
}

.ws-side {
  position: sticky;
  top: var(--nav-h);
  align-self: start;
  height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px 16px 20px;
  background: var(--fs-side);
  border-right: 1px solid var(--rule);
  overflow-y: auto;
}

.ws-brand { padding: 0 10px; display: grid; gap: 2px; }
.ws-mark { font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1; }
.ws-caption { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }

.ws-nav { display: grid; gap: 2px; }
.ws-label {
  margin: 14px 10px 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.ws-label:first-child { margin-top: 0; }

.ws-nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.ws-nav button svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.ws-nav button:hover { color: var(--ink); background: var(--paper); }
.ws-nav button[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: 0 0 0 1px var(--rule); font-weight: 500; }
.ws-count { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 11.5px; text-align: center; }

.ws-foot { margin-top: auto; display: grid; gap: 12px; padding: 14px 10px 0; border-top: 1px solid var(--rule); }
.ws-user { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.ws-avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; }
.ws-signout { justify-self: start; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }

.sync { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.sync-dot { width: 7px; height: 7px; border-radius: 50%; background: #3c9a6b; flex: none; }
.sync[data-tone="busy"] .sync-dot { background: #c9922e; }
.sync[data-tone="error"] .sync-dot { background: var(--fs-danger); }

.ws-main { padding: 32px clamp(16px, 3vw, 40px) 72px; min-width: 0; }

@media (max-width: 900px) {
  .ws { grid-template-columns: 1fr; }
  .ws-side {
    position: static;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    padding: 14px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }
  .ws-nav { display: flex; gap: 4px; overflow-x: auto; width: 100%; order: 3; }
  .ws-nav button { width: auto; white-space: nowrap; }
  .ws-label { display: none; }
  .ws-foot { margin: 0 0 0 auto; padding: 0; border: 0; grid-auto-flow: column; align-items: center; }
  .ws-user span:last-child { display: none; }
}

/* ---------------------------------------------------------------- shared pieces */

.fs-page { display: grid; gap: 28px; }
.fs-section { display: grid; gap: 14px; }

.fs-panel { padding: 22px; border: 1px solid var(--rule); border-radius: 12px; background: var(--paper); }

.fs-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.fs-head h2 { font-size: 28px; }
.fs-head h3 { font-size: 21px; }

.fs-eyebrow { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.fs-muted { color: var(--muted); font-size: 13.5px; }
.fs-small { margin: 0; color: var(--muted); font-size: 13px; }
.fs-count { padding: 1px 8px; border-radius: 999px; background: var(--paper-2); font-family: var(--mono); font-size: 12px; color: var(--muted); vertical-align: middle; }

.fs-link { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: 14px; cursor: pointer; text-align: left; }
.fs-link:hover { text-decoration: underline; }
.fs-link.danger, .btn.danger { color: var(--fs-danger); }

.fs-tag {
  padding: 2px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c) 14%, transparent);
  color: var(--c);
  font-size: 12px;
  font-weight: 600;
}

.fs-select, .fs-search, .fs-field input, .fs-field textarea, .fs-panel > textarea, .fs-form > input, .fs-form .fs-two > select {
  width: 100%;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}
.fs-field textarea, .fs-panel > textarea { resize: vertical; line-height: 1.5; }
.fs-select:focus, .fs-search:focus, .fs-field :is(input, textarea):focus, .fs-panel > textarea:focus, .fs-form > input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }

.fs-field { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.fs-field > span { font-weight: 500; }
.fs-form { display: grid; gap: 14px; }
.fs-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fs-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

.fs-empty { padding: 40px 20px; border: 1px dashed var(--line); border-radius: 12px; text-align: center; color: var(--muted); display: grid; gap: 10px; justify-items: center; }
.fs-notice { margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--accent-soft); color: var(--ink); font-size: 13px; }

/* ---------------------------------------------------------------- signal inbox */

.fs-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 0.6fr)) minmax(0, 1.6fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.fs-stat, .fs-question { padding: 18px 20px; background: var(--paper); display: grid; gap: 4px; align-content: start; }
.fs-stat span { font-size: 13px; color: var(--muted); }
.fs-stat strong { font-family: var(--serif); font-size: 36px; font-weight: 500; line-height: 1; }
.fs-question { background: var(--ink); color: var(--paper); }
.fs-question .fs-eyebrow { color: color-mix(in srgb, var(--accent) 60%, var(--paper)); }
.fs-question p { margin: 4px 0 0; font-family: var(--serif); font-size: 21px; line-height: 1.25; }
.fs-question .fs-link { color: var(--paper); opacity: 0.75; font-size: 13px; justify-self: start; }

@media (max-width: 1100px) { .fs-stats { grid-template-columns: repeat(3, 1fr); } .fs-question { grid-column: 1 / -1; } }

.fs-inbox { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
@media (max-width: 1100px) { .fs-inbox { grid-template-columns: 1fr; } }
.fs-inbox > section { display: grid; gap: 14px; }

.fs-filters { display: grid; grid-template-columns: auto minmax(160px, 1fr) 170px; gap: 10px; align-items: center; }
@media (max-width: 760px) { .fs-filters { grid-template-columns: 1fr; } }

.fs-tabs { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--paper-2); overflow-x: auto; }
.fs-tabs button { padding: 6px 12px; border: 0; border-radius: 7px; background: none; color: var(--muted); font: inherit; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.fs-tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }

.signal-list { display: grid; gap: 12px; }
.signal-card { border: 1px solid var(--rule); border-radius: 12px; background: var(--paper); overflow: hidden; transition: border-color 0.15s ease; }
.signal-card:hover { border-color: var(--line); }
.signal-open { display: grid; gap: 8px; width: 100%; padding: 18px 20px 14px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.signal-open h3 { font-size: 22px; }
.signal-open p { margin: 0; color: var(--muted); font-size: 14.5px; }
.signal-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); }
.signal-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.fs-score { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--ink); }
.fs-score small { font-weight: 400; color: var(--muted); }
.fs-score i { display: inline-block; height: 4px; margin-left: 6px; border-radius: 2px; background: var(--accent); }

.signal-vote { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 20px; border-top: 1px solid var(--rule); background: var(--paper-2); font-size: 12.5px; color: var(--muted); }
.vote { padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font: inherit; font-size: 12.5px; cursor: pointer; }
.vote.on { border-color: #3c9a6b; color: #2f7d56; background: color-mix(in srgb, #3c9a6b 12%, var(--surface)); }
.vote.down.on { border-color: var(--fs-danger); color: var(--fs-danger); background: color-mix(in srgb, var(--fs-danger) 10%, var(--surface)); }

.fs-rail { display: grid; gap: 16px; position: sticky; top: calc(var(--nav-h) + 24px); }
.fs-rail .fs-panel { display: grid; gap: 12px; }
.fs-mini { width: 100%; height: auto; }
.fs-legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); }
.fs-legend i { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; }
.fs-click { cursor: pointer; }

/* ---------------------------------------------------------------- opportunity map */

.fs-wheel { display: grid; gap: 12px; }
.fs-wheel-bar { display: flex; justify-content: flex-end; }
.fs-wheel-bar .fs-select { width: 190px; }
.fs-wheel-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
@media (max-width: 1100px) { .fs-wheel-layout { grid-template-columns: 1fr; } }
.fs-wheel-scroll { overflow-x: auto; }
.fs-wheel-svg { display: block; width: 100%; min-width: 560px; max-width: 760px; height: auto; margin: 0 auto; }
.wheel-sector { font-family: var(--mono); font-size: 15px; font-weight: 600; letter-spacing: 0.12em; }
.wheel-center { font-family: var(--serif); font-size: 30px; font-weight: 600; }
.wheel-caption { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; }
.wheel-label { font-family: var(--sans); font-size: 14px; fill: var(--muted); pointer-events: none; }
.wheel-signal { cursor: pointer; outline: none; }
.wheel-signal:focus-visible circle:nth-of-type(3), .wheel-signal:hover circle:nth-of-type(3) { stroke-width: 4; }

.fs-key details { display: grid; gap: 12px; }
.fs-key summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; margin-bottom: 10px; }
.fs-key summary::-webkit-details-marker { display: none; }
.fs-key summary h3 { font-size: 22px; }
.fs-key p { margin: 0 0 12px; font-size: 13.5px; color: var(--muted); }
.fs-key h4 { margin: 16px 0 8px; font-size: 13px; font-weight: 600; }
.fs-horizons { display: grid; gap: 10px; margin: 0 0 12px; padding: 0; list-style: none; }
.fs-horizons li { display: flex; gap: 10px; align-items: center; font-size: 13px; }
.fs-horizons li div { display: grid; }
.fs-horizons li span:not(.ring) { color: var(--muted); font-size: 12px; }
.fs-horizons .ring { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line); flex: none; }
.fs-status-key { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); }
.fs-status-key i { display: inline-block; width: 11px; height: 11px; margin-right: 6px; border-radius: 50%; vertical-align: -1px; }
.fs-status-key .new { background: var(--muted); }
.fs-status-key .short { border: 2px solid var(--muted); background: var(--surface); }
.fs-index { display: grid; gap: 2px; }
.fs-index button { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.fs-index button:hover { background: var(--paper-2); }
.fs-index i { width: 8px; height: 8px; border-radius: 50%; }
.fs-index small { display: block; color: var(--muted); font-size: 12px; }
.fs-wheel-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }

.fs-map-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 1000px) { .fs-map-grid { grid-template-columns: 1fr; } }
.fs-map-grid > .fs-panel { display: grid; gap: 14px; align-content: start; }

.fs-matrix {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background:
    linear-gradient(var(--fs-grid), var(--fs-grid)) 49% 0 / 1px 100% no-repeat,
    linear-gradient(var(--fs-grid), var(--fs-grid)) 0 51% / 100% 1px no-repeat,
    var(--paper-2);
  touch-action: none;
}
.fs-matrix .q { position: absolute; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.fs-matrix .tl { top: 12px; left: 14%; }
.fs-matrix .tr { top: 12px; right: 12px; }
.fs-matrix .bl { bottom: 12px; left: 14%; }
.fs-matrix .br { bottom: 12px; right: 12px; }
.fs-matrix .axis-y { position: absolute; left: 6px; bottom: 30%; transform: rotate(-90deg); transform-origin: left bottom; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.fs-matrix .axis-x { position: absolute; bottom: -24px; left: 10%; font-size: 11.5px; color: var(--muted); }
.fs-dot {
  position: absolute;
  width: 30px;
  height: 30px;
  margin: 0 0 -15px -15px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--c);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: grab;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.12s ease;
  touch-action: none;
}
.fs-dot:hover { transform: scale(1.12); }
.fs-dot.dragging { cursor: grabbing; transform: scale(1.2); z-index: 2; }
.fs-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fs-map-grid .fs-small { margin-top: 18px; }

.fs-guide { display: grid; gap: 16px; align-content: start; }
.fs-guide h2 { font-size: 28px; }
.fs-step { display: grid; grid-template-columns: 34px 1fr; gap: 2px 8px; }
.fs-step > span { grid-row: span 2; font-family: var(--mono); font-size: 12px; color: var(--accent); padding-top: 4px; }
.fs-step h3 { font-size: 19px; }
.fs-step p { margin: 0; font-size: 13.5px; color: var(--muted); }

.fs-table-wrap { padding: 0; overflow-x: auto; }
.fs-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.fs-table th { padding: 12px 16px; text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--rule); }
.fs-table td { padding: 12px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.fs-table tbody tr { cursor: pointer; }
.fs-table tbody tr:hover { background: var(--paper-2); }
.fs-table tbody tr:last-child td { border-bottom: 0; }
.fs-row-link { display: flex; gap: 10px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 500; text-align: left; cursor: pointer; }
.fs-num { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); font-size: 11.5px; }

/* ---------------------------------------------------------------- sense-making */

.fs-banner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding: 26px; border-radius: 14px; background: var(--ink); color: var(--paper); }
.fs-banner > div:first-child { max-width: 60ch; display: grid; gap: 6px; }
.fs-banner h2 { font-size: 36px; }
.fs-banner p { margin: 0; opacity: 0.85; }
.fs-banner .fs-small { color: inherit; opacity: 0.6; }
.fs-banner .fs-eyebrow { color: color-mix(in srgb, var(--accent) 60%, var(--paper)); }
.fs-banner-actions { display: grid; gap: 10px; align-content: start; min-width: 220px; }
.fs-banner .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.fs-banner .btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.fs-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.fs-strip span { padding: 6px 12px; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink); }
.fs-decisions { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.fs-decision { display: grid; gap: 12px; align-content: start; }
.fs-decision h3 { font-size: 22px; }
.fs-decision > p { margin: 0; color: var(--muted); font-size: 14px; }
.fs-prompt { display: grid; gap: 2px; padding: 10px 12px; border-left: 3px solid var(--accent); background: var(--accent-soft); font-size: 13.5px; }

/* ---------------------------------------------------------------- pipeline */

.col-add { margin-top: auto; padding: 8px; border: 1px dashed var(--line); border-radius: 8px; background: none; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.col-add:hover { color: var(--ink); border-color: var(--ink); }
.ws-main .board { padding-bottom: 0; }

/* ---------------------------------------------------------------- admin */

.fs-panel > textarea { margin: 12px 0; }
.fs-sources { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.fs-source { display: flex; justify-content: space-between; gap: 12px; }
.fs-source > div { display: grid; gap: 4px; align-content: start; min-width: 0; }
.fs-source h3 { font-size: 19px; }
.fs-source.off h3, .fs-source.off .fs-muted { opacity: 0.55; }
.fs-src-url { font-size: 12.5px; color: var(--accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-src-actions { margin-top: 6px; }
.fs-src-actions .fs-link { font-size: 12.5px; }
.fs-source-new { border-style: dashed; }
.fs-source-new .fs-form { width: 100%; gap: 8px; }
.fs-source-new .fs-two { grid-template-columns: 1fr; gap: 8px; }

.fs-switch { position: relative; flex: none; width: 38px; height: 22px; cursor: pointer; }
.fs-switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.fs-switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--line); transition: background 0.15s ease; }
.fs-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.15s ease; }
.fs-switch input:checked + span { background: #3c9a6b; }
.fs-switch input:checked + span::after { transform: translateX(16px); }
.fs-switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.fs-intake { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1000px) { .fs-intake { grid-template-columns: 1fr; } }

.fs-drafts { display: grid; gap: 12px; }
.fs-draft-list { display: grid; gap: 10px; }
.fs-draft { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; cursor: pointer; }
.fs-draft input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--accent); }
.fs-draft > div { display: grid; gap: 6px; }
.fs-draft h3 { font-size: 20px; }
.fs-draft p { margin: 0; font-size: 14px; color: var(--muted); }
.fs-draft.off { opacity: 0.5; }

/* ---------------------------------------------------------------- drawer */

body.drawer-open { overflow: hidden; }
.drawer { position: fixed; inset: 0; z-index: 80; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(23, 21, 15, 0.35); }
.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(560px, 100%);
  padding: 24px 28px 40px;
  overflow-y: auto;
  background: var(--paper);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.15);
}
.drawer-panel > div { display: grid; gap: 14px; }
.drawer-panel h2 { font-size: 30px; }
.drawer-panel h3 { margin-top: 8px; font-size: 20px; }
.drawer-panel p { margin: 0; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.drawer-head .signal-top { flex: 1; justify-content: flex-start; }
.drawer-close { width: 34px; height: 34px; border: 1px solid var(--rule); border-radius: 50%; background: var(--surface); color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; }
.drawer-actions { padding-top: 12px; border-top: 1px solid var(--rule); }
.fs-scores { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 520px) { .fs-scores { grid-template-columns: repeat(2, 1fr); } }
.fs-evidence summary { cursor: pointer; font-size: 13.5px; color: var(--accent); }
.fs-evidence p { margin-top: 8px !important; max-height: 280px; overflow-y: auto; padding: 12px; border-radius: 8px; background: var(--paper-2); font-size: 13px; white-space: pre-wrap; }
.fs-notes { display: grid; gap: 8px; }
.fs-note { padding: 10px 12px; border-radius: 8px; background: var(--paper-2); font-size: 14px; }
.fs-note span { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }

/* ---------------------------------------------------------------- toast */

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translateX(-50%); padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--paper); font-size: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); max-width: calc(100% - 32px); }
