/*
 * Golden Opportunities - the approval app.
 *
 * One stylesheet, plain CSS, no build step and no framework. It dresses an
 * Operate surface: Rohin is in a task (read 40 topics, decide; read one post,
 * decide), so density is a feature and the tool should disappear into the job.
 *
 * WHY THERE IS NO DARK MODE, AND WHY NOBODY SHOULD ADD ONE
 * -------------------------------------------------------
 * The brand has one light theme. The tokens below are the shipped,
 * contrast-tested light set copied from the extension's kinpaku.css; a dark
 * inversion of them has not been tested and would put gold, patina and
 * vermilion at lightnesses where none of the contrast decisions hold. So this
 * file declares color-scheme: light (which also stops the OS auto-darkening
 * form controls) and deliberately ships NO prefers-color-scheme: dark block.
 * If you are here to add one out of habit: do not. Re-derive the palette first.
 *
 * THE THREE RULES THAT SHAPE EVERYTHING BELOW
 * -------------------------------------------
 * 1. Paper and ink. Surfaces are neutral paper (chroma 0), type is ink. No warm
 *    cast. The warm light-* set from DESIGN.md is not used here; it trips the
 *    cream-palette anti-pattern.
 * 2. Gold is jewelry, and in this app it is spent exactly once: the tag on a
 *    number in a post that could not be traced back to its source. That is the
 *    finding the product exists to catch, so it gets the brand's one loud mark
 *    and nothing else does. Gold NEVER carries text on paper (at 84% lightness
 *    it lands under 2:1). Coloured text is --ks-patina-deep. Failure only is
 *    --ks-vermilion. Ink on gold, and gold as a highlight fill, are both legal.
 * 3. Elevation is declared once: border OR shadow, never both. Exactly two
 *    elements in this file carry a shadow, and neither has a border: the
 *    dialog and the sticky action bar. Everything else is a 1px rule.
 *
 * No cards. Rule-separated rows and real tables. No eyebrow above any heading.
 * 11px is the hard floor for any functional text, badges and table cells
 * included. Sections below run: tokens, reset, browser surfaces, type, shell,
 * primitives, verdict, gate 1, gate 2 + preview, provenance, analytics, ops,
 * utilities, responsive, reduced motion.
 */

/* ============================================================
   TOKENS. Copied verbatim from extension/shared/kinpaku.css.
   Values are copied, never invented; when that file moves, move
   this block with it.
   ============================================================ */
:root {
  color-scheme: light;

  /* Gold. The mark, a line, a lit dot, the tag. Never text on paper. */
  --ks-kinpaku: oklch(84% 0.19 80.46);
  --ks-kinpaku-vivid: oklch(87% 0.20 85);
  --ks-kinpaku-rich: oklch(77% 0.13 82);
  --ks-kinpaku-deep: oklch(61% 0.085 78);
  --ks-on-gold: oklch(14% 0.018 95);

  /* Patina. State, links, selection, and any text that has to be colored. */
  --ks-patina: oklch(70% 0.12 188);
  --ks-patina-pale: oklch(82% 0.07 188);
  --ks-patina-deep: oklch(46% 0.08 188);
  --ks-patina-ink: oklch(38% 0.08 188);

  /* Failure only. */
  --ks-vermilion: oklch(52% 0.16 35);

  /* Paper. */
  --ks-paper: oklch(97.8% 0 0);
  --ks-paper-raised: oklch(99.5% 0 0);
  --ks-paper-deep: oklch(95% 0 0);
  --ks-gray: oklch(92% 0 0);
  --ks-gray-2: oklch(88% 0 0);

  /* Ink. */
  --ks-ink: oklch(13% 0 0);
  --ks-text: oklch(22% 0 0);
  --ks-text-muted: oklch(46% 0 0);
  --ks-text-faint: oklch(56% 0 0);
  --ks-text-mute-deep: oklch(66% 0 0);

  /* Rules. A divider is faint; the bound of a control clears 3:1. */
  --ks-rule: oklch(13% 0 0 / 0.08);
  --ks-edge: oklch(13% 0 0 / 0.45);

  /* Shape. */
  --ks-radius-sm: 3px;
  --ks-radius-md: 8px;
  --ks-radius-pill: 999px;

  /* Paper hardware. A cap stands proud of a recessed track; the dot lights. */
  --ks-cap-lift: inset 0 1px 0 oklch(100% 0 0 / 0.9), 0 1px 0 oklch(13% 0 0 / 0.14), 0 2px 3px oklch(13% 0 0 / 0.08);
  --ks-cap-press: inset 0 1px 2px oklch(13% 0 0 / 0.14);
  --ks-track-recess: inset 0 1px 3px oklch(13% 0 0 / 0.16), inset 0 -1px 0 oklch(100% 0 0 / 0.7);
  --ks-led: 0 0 0 1px oklch(13% 0 0 / 0.12), 0 0 4px oklch(84% 0.19 80 / 0.6);
  --ks-lift-1: 0 1px 1px oklch(13% 0 0 / 0.05), 0 2px 3px oklch(13% 0 0 / 0.04), 0 6px 12px oklch(13% 0 0 / 0.05);

  /* Motion. */
  --ks-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ks-quick: 120ms;
  --ks-settle: 200ms;

  /* Type. System stands-in for the two site faces; see the header. */
  --ks-font: "Avenir Next", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --ks-font-wordmark: "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", var(--ks-font);
  --ks-mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;

  /* Dense UI ramp. 11px is the floor for anything functional. */
  --ks-type-micro: 11px;
  --ks-type-label: 12px;
  --ks-type-ui: 13px;
}

/* ============================================================
   RESET. Also verbatim from kinpaku.css. The app layer below
   re-states body size for a full page rather than a 320px popup;
   the reset itself is untouched so a re-sync stays a straight
   copy.
   ============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--ks-paper);
  color: var(--ks-text);
  font-family: var(--ks-font);
  font-size: var(--ks-type-label);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   APP LAYER. Everything from here down is this app's own.
   One font family (kinpaku's system stack; Inter and Roboto are
   banned by overused-font). Fixed rem scale, ratio ~1.125,
   ceiling 22px - an Operate surface has no hero, so nothing
   here comes near the 28px limit.
   ============================================================ */
:root {
  --go-t-11: 0.6875rem; /* the hard floor: badges, meta, table heads */
  --go-t-12: 0.75rem;
  --go-t-13: 0.8125rem;
  --go-t-14: 0.875rem;
  --go-t-16: 1rem;
  --go-t-18: 1.125rem;
  --go-t-20: 1.25rem;
  --go-t-22: 1.375rem;

  --go-s-4: 4px;
  --go-s-8: 8px;
  --go-s-12: 12px;
  --go-s-16: 16px;
  --go-s-24: 24px;
  --go-s-32: 32px;

  /* Rows and controls: 36-40px on desktop, 44px on phone. */
  --go-control-h: 36px;
  --go-row-action-h: 36px;
  --go-touch-h: 44px;

  --go-topbar-h: 52px;
  --go-page-max: 1180px;
  --go-li-w: 555px; /* LinkedIn's own feed card width on desktop */

  /* Motion: 150ms, ease-out, no bounce, nothing pulses. */
  --go-motion: 150ms;
  --go-ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --go-t: 150ms cubic-bezier(0.2, 0.8, 0.2, 1);

  /* Booked and posted. Both are patina (hue 188) - the same family as every
     other "this is settled" mark in the app, and no new hue enters the file.
     Booked is the live one, so it keeps chroma; posted is drained towards grey
     because a post that has already gone out is history, not a thing to act on.
     The tints sit at 95%+ lightness so body text on them still clears 4.5:1. */
  --go-booked: oklch(95% 0.045 188);
  --go-booked-edge: oklch(70% 0.12 188);
  --go-booked-ink: oklch(38% 0.08 188);
  --go-posted: oklch(95.5% 0.014 188);
  --go-posted-edge: oklch(80% 0.028 188);
  --go-posted-ink: oklch(45% 0.025 188);
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-size: var(--go-t-13);
  min-height: 100vh;
}

/* ============================================================
   BROWSER SURFACES. The parts nobody draws still carry the
   design: selection, caret, focus ring, placeholder, scrollbars,
   underline offset, and the numerals in data.
   ============================================================ */
::selection {
  background: oklch(70% 0.12 188 / 0.26);
  color: var(--ks-ink);
}

:focus-visible {
  outline: 2px solid var(--ks-patina);
  outline-offset: 2px;
}

input,
textarea,
select,
[contenteditable] {
  caret-color: var(--ks-patina-deep);
}

/* --ks-text-faint (56%) clears 4.5:1 on paper. --ks-text-mute-deep (66%)
   does not, so it never carries placeholder or any other read text. */
::placeholder {
  color: var(--ks-text-faint);
  opacity: 1;
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--ks-gray-2) transparent;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--ks-gray-2);
  border: 3px solid var(--ks-paper);
  border-radius: var(--ks-radius-pill);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--ks-text-mute-deep);
}

a {
  color: var(--ks-patina-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color var(--go-t);
}

a:hover {
  color: var(--ks-patina-ink);
}

/* Every numeric and date surface is tabular, so columns of figures line up
   and a changing count never shifts its neighbours. */
time,
.go-num,
.u-num,
.go-topic-pos,
.go-topic-meta,
.go-wordcount,
.go-hookcount,
.go-progress-note,
.go-batch-progress,
.go-trace-value,
.go-delta,
.go-table td,
.go-table th,
.go-perf td,
.go-runs td,
.go-dl dd,
.go-log-line time {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

/* Icons are drawn, one stroke weight, from assets/icons.svg. No emoji
   anywhere in this product, and no unicode glyph standing in for a mark. */
.go-icon {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

hr {
  border: 0;
  border-top: 1px solid var(--ks-rule);
}

/* ============================================================
   TYPE. One family, fixed steps, no fluid clamps.
   There is no eyebrow or kicker class in this file and there
   must never be one: the heading carries its own weight.
   ============================================================ */
h1,
h2,
h3,
h4 {
  color: var(--ks-ink);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  text-wrap: balance;
}

h1 { font-size: var(--go-t-22); }
h2 { font-size: var(--go-t-18); }
h3 { font-size: var(--go-t-16); }
h4 { font-size: var(--go-t-14); }

p {
  max-width: 70ch;
}

/* ============================================================
   KINPAKU'S OWN MARKS, kept as shipped.
   ============================================================ */
/* The Golden Opportunities mark. A transparent PNG at its own proportions
   (371 x 234), so height is what we set and width follows - squashing a
   registered mark to fit a square is not a thing we get to do. */
.ks-mark {
  display: block;
  flex: none;
  width: auto;
  height: 38px;
  object-fit: contain;
}

/* Signed-out pages give it more room: there is nothing else on the screen. */
.go-page .ks-mark {
  height: 52px;
}

.ks-wordmark {
  font-family: var(--ks-font-wordmark);
  font-size: var(--ks-type-ui);
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--ks-ink);
}

/* The tag: ink on gold, mono, small. Legal because the text is ink and the
   gold is the fill; gold text on paper is the bug, not this.
   RESERVED. In this app the gold tag has exactly one job - marking a number
   that could not be traced to its source (see .go-trace-verdict.is-untraced,
   which is the same tag by another name). Use .ks-tag.is-quiet for anything
   else that needs a tag shape, or the gold stops meaning anything.
   REDECLARED AT 11px ON PURPOSE. kinpaku ships .ks-tag at 9px, which is fine
   for a page overlay but sits under this app's 11px floor for functional
   text, and here the tag names a decision Rohin has to read and act on. If a
   future re-sync pulls kinpaku's block back in, keep this override or the
   floor silently reverts to 9px. */
.ks-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 18px;
  padding: 0 6px;
  border-radius: var(--ks-radius-sm);
  background: var(--ks-kinpaku);
  color: var(--ks-on-gold);
  font-family: var(--ks-mono);
  font-size: var(--go-t-11);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: middle;
}

.ks-tag.is-quiet {
  background: var(--ks-gray);
  color: var(--ks-text-muted);
}

/* ============================================================
   SHELL. Topbar (the second neutral layer), runway, page.
   The topbar is sticky and declares its elevation as a 1px
   rule, not a shadow.
   ============================================================ */
.go-app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--ks-paper);
}

.go-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: var(--go-s-16);
  min-height: var(--go-topbar-h);
  padding: 0 var(--go-s-16);
  background: var(--ks-paper-deep);
  border-bottom: 1px solid var(--ks-rule);
}

.go-topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--go-s-8);
  flex: none;
  text-decoration: none;
  color: var(--ks-ink);
}

.go-topbar-nav {
  display: flex;
  align-items: center;
  gap: var(--go-s-4);
  margin-inline-start: auto;
}

.go-topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--go-control-h);
  padding: 0 10px;
  border-radius: var(--ks-radius-sm);
  color: var(--ks-text-muted);
  font-size: var(--go-t-13);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--go-t), background-color var(--go-t);
}

.go-topbar-link:hover {
  background: var(--ks-gray);
  color: var(--ks-text);
}

.go-topbar-link.is-current {
  background: var(--ks-gray);
  color: var(--ks-ink);
  font-weight: 600;
}

.go-topbar-link[aria-disabled="true"] {
  color: var(--ks-text-faint);
  pointer-events: none;
}

/* The runway: what is queued to publish, newest first, as a single strip of
   rule-separated slots. Not cards - one row, hairlines between. */
.go-runway {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  padding: 0 var(--go-s-16);
  background: var(--ks-paper-raised);
  border-bottom: 1px solid var(--ks-rule);
  font-size: var(--go-t-12);
}

.go-runway > * {
  display: flex;
  align-items: center;
  gap: var(--go-s-8);
  flex: none;
  min-height: 40px;
  padding: 0 var(--go-s-12);
  border-inline-end: 1px solid var(--ks-rule);
  color: var(--ks-text-muted);
  white-space: nowrap;
}

.go-runway > :last-child {
  border-inline-end: 0;
}

.go-runway.is-empty {
  color: var(--ks-text-muted);
}

.go-runway.is-empty::before {
  content: "Nothing queued. Approve a package at gate 2 and it lands here.";
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 var(--go-s-12);
  color: var(--ks-text-muted);
}

.go-main {
  flex: 1;
  min-width: 0;
}

.go-page {
  max-width: var(--go-page-max);
  margin: 0 auto;
  padding: var(--go-s-24) var(--go-s-16) var(--go-s-32);
}

/* More space above a heading than below it. */
.go-page-head {
  padding-bottom: var(--go-s-16);
  border-bottom: 1px solid var(--ks-rule);
}

.go-page-title {
  font-size: var(--go-t-22);
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.2;
  color: var(--ks-ink);
}

.go-page-sub {
  margin-top: 6px;
  max-width: 72ch;
  color: var(--ks-text-muted);
  font-size: var(--go-t-13);
}

.go-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--go-s-12);
  padding: var(--go-s-12) 0;
  border-bottom: 1px solid var(--ks-rule);
}

.go-toolbar > .u-right {
  margin-inline-start: auto;
}

.go-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.go-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--ks-gray-2);
  border-radius: var(--ks-radius-pill);
  background: var(--ks-paper-raised);
  color: var(--ks-text-muted);
  font-size: var(--go-t-12);
  cursor: pointer;
  transition: background-color var(--go-t), color var(--go-t), border-color var(--go-t);
}

.go-filter:hover {
  border-color: var(--ks-text-mute-deep);
  color: var(--ks-text);
}

/* Selected is ink-filled everywhere in this app, never gold. */
.go-filter.is-on {
  background: var(--ks-ink);
  border-color: var(--ks-ink);
  color: var(--ks-paper);
  font-weight: 600;
}

.go-filter .go-num {
  color: inherit;
  opacity: 0.7;
}

/* A flash names the problem and the recovery, so it gets room for a sentence
   and a link, not a single word. */
.go-flash {
  display: flex;
  align-items: flex-start;
  gap: var(--go-s-8);
  margin: var(--go-s-16) 0;
  padding: 10px var(--go-s-12);
  border: 1px solid var(--ks-gray-2);
  border-radius: var(--ks-radius-sm);
  background: var(--ks-paper-raised);
  color: var(--ks-text);
  font-size: var(--go-t-13);
}

.go-flash .go-icon {
  margin-top: 2px;
  color: var(--ks-text-muted);
}

.go-flash.is-error {
  border-color: var(--ks-vermilion);
  color: var(--ks-text);
}

.go-flash.is-error .go-icon {
  color: var(--ks-vermilion);
}

.go-flash.is-error strong {
  color: var(--ks-vermilion);
}

/* ============================================================
   PRIMITIVES. Every interactive element carries default, hover,
   focus, active, disabled and busy. One button shape across the
   whole app.
   ============================================================ */
.go-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: var(--go-control-h);
  padding: 0 var(--go-s-12);
  border: 1px solid transparent;
  border-radius: var(--ks-radius-sm);
  background: transparent;
  color: var(--ks-text);
  font-size: var(--go-t-13);
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--go-t), border-color var(--go-t), color var(--go-t);
}

.go-btn:disabled,
.go-btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
}

.go-btn[aria-busy="true"] {
  cursor: progress;
  color: var(--ks-text-muted);
}

.go-btn-primary {
  background: var(--ks-ink);
  border-color: var(--ks-ink);
  color: var(--ks-paper);
  font-weight: 600;
}

.go-btn-primary:hover:not(:disabled) {
  background: oklch(20% 0 0);
  border-color: oklch(20% 0 0);
}

.go-btn-primary:active:not(:disabled) {
  background: oklch(28% 0 0);
  border-color: oklch(28% 0 0);
}

.go-btn-secondary {
  background: var(--ks-paper-raised);
  border-color: var(--ks-edge);
  color: var(--ks-text);
}

.go-btn-secondary:hover:not(:disabled) {
  background: var(--ks-gray);
}

.go-btn-secondary:active:not(:disabled) {
  background: var(--ks-gray-2);
}

.go-btn-quiet {
  background: transparent;
  border-color: transparent;
  color: var(--ks-text-muted);
}

.go-btn-quiet:hover:not(:disabled) {
  background: var(--ks-gray);
  color: var(--ks-text);
}

.go-btn-quiet:active:not(:disabled) {
  background: var(--ks-gray-2);
}

.go-btn-sm {
  min-height: 28px;
  padding: 0 var(--go-s-8);
  font-size: var(--go-t-12);
}

.go-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.go-label {
  color: var(--ks-text);
  font-size: var(--go-t-12);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.go-input,
.go-textarea,
.go-select {
  width: 100%;
  min-height: var(--go-control-h);
  padding: 7px 10px;
  border: 1px solid var(--ks-gray-2);
  border-radius: var(--ks-radius-sm);
  background: var(--ks-paper-raised);
  color: var(--ks-text);
  font-size: var(--go-t-13);
  font-family: inherit;
  line-height: 1.45;
  transition: border-color var(--go-t), background-color var(--go-t);
}

.go-input:hover,
.go-textarea:hover,
.go-select:hover {
  border-color: var(--ks-text-mute-deep);
}

.go-input:disabled,
.go-textarea:disabled,
.go-select:disabled {
  background: var(--ks-paper-deep);
  color: var(--ks-text-muted);
  cursor: not-allowed;
}

.go-input[aria-invalid="true"],
.go-textarea[aria-invalid="true"],
.go-select[aria-invalid="true"] {
  border-color: var(--ks-vermilion);
}

.go-textarea {
  min-height: 120px;
  resize: vertical;
}

/* The select chevron is drawn, at the same 1.5 stroke as the sprite. It is
   inlined rather than pulled from icons.svg because a background-image cannot
   reference a sprite symbol. */
.go-select {
  appearance: none;
  padding-inline-end: 30px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23232323' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5 12 15.5 18 9.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px 16px;
}

.go-hint {
  color: var(--ks-text-muted);
  font-size: var(--go-t-12);
}

.go-error {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--ks-vermilion);
  font-size: var(--go-t-12);
}

.go-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 0 4px 0 9px;
  border-radius: var(--ks-radius-pill);
  background: var(--ks-gray);
  color: var(--ks-text);
  font-size: var(--go-t-12);
  white-space: nowrap;
}

.go-chip:not(:has(.go-chip-remove)) {
  padding-inline-end: 9px;
}

.go-chip-remove {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: var(--ks-radius-pill);
  background: transparent;
  color: var(--ks-text-muted);
  cursor: pointer;
  transition: background-color var(--go-t), color var(--go-t);
}

.go-chip-remove:hover {
  background: var(--ks-gray-2);
  color: var(--ks-ink);
}

.go-chip-remove .go-icon {
  width: 12px;
  height: 12px;
}

/* State dots. Colour never carries the meaning alone - a dot always sits
   next to its word in .go-status. */
.go-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: var(--ks-radius-pill);
  background: var(--ks-text-mute-deep);
}

.go-dot.is-pending {
  background: var(--ks-text-mute-deep);
}

.go-dot.is-approved {
  background: var(--ks-patina);
}

/* Hold reads as an open ring, drawn with a border rather than an inset
   shadow so that the only box-shadow declarations in this file remain the
   two real elevations. */
.go-dot.is-hold {
  background: transparent;
  border: 2px solid var(--ks-text-faint);
}

.go-dot.is-rejected {
  background: var(--ks-vermilion);
}

/* Amber: worth a look, not broken (the Live Monitor's services lines). */
.go-dot.is-warn {
  background: var(--ks-kinpaku-rich);
}

.go-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ks-text-muted);
  font-size: var(--go-t-12);
  white-space: nowrap;
}

.go-progress-note {
  color: var(--ks-text-muted);
  font-size: var(--go-t-12);
}

/* ---- Booked and posted ------------------------------------------------
   "Approved" and "booked" used to look identical in a list, which is the one
   distinction that decides whether a post goes out at all. A booked row is
   tinted patina and carries the date in words; a published one is drained
   towards grey because it is history. Colour never carries it alone - the
   badge beside it says "Booked 14 Jun, 10:05" or "Posted 14 Jun". */
.go-badge-when {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-inline-start: 6px;
  padding: 1px 7px;
  border: 1px solid var(--go-booked-edge);
  border-radius: var(--ks-radius-pill);
  background: var(--go-booked);
  color: var(--go-booked-ink);
  font-size: var(--go-t-11);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.go-badge-when.is-posted {
  border-color: var(--go-posted-edge);
  background: var(--go-posted);
  color: var(--go-posted-ink);
  font-weight: 500;
}

/* The tinted rows themselves live with the table rules below, after the hover
   rule they have to beat. */

.go-num {
  font-weight: 600;
  color: var(--ks-text);
}

/* An empty state teaches the interface; it never just says "nothing here". */
.go-empty {
  padding: var(--go-s-32) var(--go-s-16);
  border-top: 1px solid var(--ks-rule);
  text-align: start;
}

.go-empty-title {
  font-size: var(--go-t-16);
  font-weight: 600;
  color: var(--ks-ink);
}

.go-empty-body {
  margin-top: 6px;
  max-width: 62ch;
  color: var(--ks-text-muted);
  font-size: var(--go-t-13);
}

.go-empty-body + .go-btn,
.go-empty-body + .go-empty-body {
  margin-top: var(--go-s-12);
}

/* Real tables, rule-separated. Density is permitted here. */
.go-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--go-t-13);
}

.go-table caption {
  padding-bottom: var(--go-s-8);
  color: var(--ks-text-muted);
  font-size: var(--go-t-12);
  text-align: start;
}

.go-table th {
  position: sticky;
  top: var(--go-topbar-h);
  z-index: 1;
  padding: var(--go-s-8) var(--go-s-12);
  background: var(--ks-paper);
  border-bottom: 1px solid var(--ks-gray-2);
  color: var(--ks-text-muted);
  font-size: var(--go-t-11);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: start;
  text-transform: uppercase;
  white-space: nowrap;
}

.go-table td {
  padding: 9px var(--go-s-12);
  border-bottom: 1px solid var(--ks-rule);
  vertical-align: top;
}

.go-table tbody tr:hover td {
  background: var(--ks-paper-raised);
}

/* The tint goes on the cells, not on the <tr>: a row background is painted
   underneath the cell background, so the hover rule above would erase it.
   These come after that rule deliberately - same specificity, later wins. */
.go-table tbody tr.is-booked > *,
.go-table tbody tr.is-booked:hover > * {
  background: var(--go-booked);
  box-shadow: inset 2px 0 0 var(--go-booked-edge);
}

.go-table tbody tr.is-posted-row > *,
.go-table tbody tr.is-posted-row:hover > * {
  background: var(--go-posted);
  box-shadow: inset 2px 0 0 var(--go-posted-edge);
}

.go-table td.u-num,
.go-table th.u-num {
  text-align: end;
}

.go-table .go-btn {
  min-height: var(--go-row-action-h);
}

/* One of exactly two shadowed elements. It carries no border: elevation is
   declared once. */
.go-dialog {
  width: min(560px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: var(--ks-radius-md);
  background: var(--ks-paper-raised);
  box-shadow: var(--ks-lift-1);
  color: var(--ks-text);
}

.go-dialog::backdrop {
  background: oklch(13% 0 0 / 0.32);
}

.go-dialog > header {
  padding: var(--go-s-16) var(--go-s-16) var(--go-s-12);
  border-bottom: 1px solid var(--ks-rule);
  font-size: var(--go-t-16);
  font-weight: 600;
  color: var(--ks-ink);
}

.go-dialog > .go-dialog-body,
.go-dialog > form > .go-dialog-body {
  padding: var(--go-s-16);
}

.go-dialog > footer,
.go-dialog > form > footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--go-s-8);
  padding: var(--go-s-12) var(--go-s-16);
  border-top: 1px solid var(--ks-rule);
}

/* ============================================================
   VERDICT. A 4-way segmented control that IS the status display,
   so a badge and a control can never disagree about what state
   a topic or a package is in. The selected segment is ink-filled
   - gold is already spent on the untraced-number tag.
   ============================================================ */
.go-verdict {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  overflow: hidden;
  border: 1px solid var(--ks-edge);
  border-radius: var(--ks-radius-sm);
  background: var(--ks-paper-raised);
}

.go-verdict-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: var(--go-control-h);
  padding: 0 10px;
  border: 0;
  border-inline-start: 1px solid var(--ks-gray-2);
  background: transparent;
  color: var(--ks-text-muted);
  font-size: var(--go-t-12);
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--go-t), color var(--go-t);
}

.go-verdict-btn:first-child {
  border-inline-start: 0;
}

.go-verdict-btn:hover:not(:disabled) {
  background: var(--ks-gray);
  color: var(--ks-text);
}

.go-verdict-btn:disabled {
  color: var(--ks-text-faint);
  cursor: not-allowed;
}

.go-verdict-btn.is-on {
  background: var(--ks-ink);
  color: var(--ks-paper);
  font-weight: 600;
}

.go-verdict-btn:focus-visible {
  outline-offset: -3px;
}

/* The keyboard shortcut for the segment. Mono is legitimate here: it is a
   key, not a costume. */
.go-verdict-key {
  font-family: var(--ks-mono);
  font-size: var(--go-t-11);
  color: var(--ks-text-faint);
}

.go-verdict-btn.is-on .go-verdict-key {
  color: var(--ks-paper);
  opacity: 0.75;
}

.go-topic-pos {
  color: var(--ks-text-faint);
  font-size: var(--go-t-12);
}

/* Three 4px bars. The score fills from the top: .is-0 fills one, .is-1 two,
   .is-2 all three. Unfilled bars are --ks-gray-2, filled are --ks-patina.
   The numeric score always travels with it in the markup, so the meter is
   never the only carrier of the value. */
.go-relevance {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 18px;
}

.go-relevance span {
  display: block;
  height: 4px;
  border-radius: 1px;
  background: var(--ks-gray-2);
}

.go-relevance.is-0 span:nth-child(1),
.go-relevance.is-1 span:nth-child(-n + 2),
.go-relevance.is-2 span {
  background: var(--ks-patina);
}

.go-topic-title {
  color: var(--ks-ink);
  font-size: var(--go-t-16);
  font-weight: 600;
  letter-spacing: -0.008em;
  line-height: 1.3;
}

.go-topic-line {
  margin-top: 2px;
  max-width: 120ch;
  color: var(--ks-text);
  font-size: var(--go-t-13);
}

/* Exactly 1px, and neutral. A coloured border-left above 1px is the side-tab
   anti-pattern; this is a quotation rule, not a stripe. */
.go-quote {
  margin-top: 4px;
  padding-inline-start: var(--go-s-12);
  border-left: 1px solid var(--ks-gray-2);
  max-width: 74ch;
  color: var(--ks-text);
  font-size: var(--go-t-13);
  line-height: 1.55;
}

.go-quote cite {
  display: block;
  margin-top: 3px;
  color: var(--ks-text-muted);
  font-size: var(--go-t-12);
  font-style: normal;
}

.go-source {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ks-patina-deep);
  font-size: var(--go-t-12);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  word-break: break-word;
}

.go-source .go-icon {
  width: 13px;
  height: 13px;
}

.go-topic-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px var(--go-s-12);
  margin-top: 4px;
  color: var(--ks-text-faint);
  font-size: var(--go-t-11);
}

/* The global 70ch paragraph measure is for prose; this is a single line of
   facts and wraps early under it. */
.go-topic-meta {
  max-width: none;
}

.go-topic-meta .go-source {
  font-size: var(--go-t-11);
}

.go-topic-meta > * {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Rohin's edit sits beside the immutable original. The original is read-only
   at the database level; the styling says so before the tooltip does. */
.go-edit {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.go-edit > summary {
  display: flex;
  align-items: baseline;
  gap: var(--go-s-8);
  list-style: none;
  cursor: pointer;
}

.go-edit > summary::-webkit-details-marker {
  display: none;
}

.go-edit[open] > form {
  margin-block: var(--go-s-8);
}

.go-edit .go-textarea {
  min-height: 72px;
}

.go-original {
  margin-top: var(--go-s-8);
  padding: var(--go-s-8) var(--go-s-12);
  border-radius: var(--ks-radius-sm);
  background: var(--ks-paper-deep);
  color: var(--ks-text-muted);
  font-size: var(--go-t-12);
  line-height: 1.5;
}

.go-original::before {
  content: "Original, unchanged";
  display: block;
  margin-bottom: 3px;
  color: var(--ks-text-faint);
  font-size: var(--go-t-11);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ============================================================
   GATE 1, THE LIST. Dense on purpose: the owner triages 30-60 of
   these in one sitting, so the spacing is taken out and the type
   is not. One grid per row -

     [num] [title  Edit]            [verdict]
           [one-liner, full width           ]
           [quote, full width               ]
           [researched . source . theme     ]

   The body runs under the verdict control as well as the title,
   so the one-liner and the quote usually fit on one line each.
   ============================================================ */
.go-page-head.is-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: var(--go-s-16);
  row-gap: 4px;
  padding-bottom: var(--go-s-8);
}

.go-page-head.is-inline .go-page-sub {
  margin: 0;
  max-width: none;
  font-size: var(--go-t-14);
}

.go-page-head.is-inline + .go-toolbar {
  padding-block: var(--go-s-8);
}

.go-page-head.is-inline + .go-toolbar .go-filter,
.go-page-head.is-inline + .go-toolbar .go-batch-progress {
  font-size: 13px;
}

.go-trows {
  border-top: 1px solid var(--ks-rule);
}

.go-trow {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  grid-template-areas:
    "num head verdict"
    ".   edit edit"
    ".   body body";
  column-gap: var(--go-s-12);
  row-gap: 2px;
  padding: 8px 8px 9px;
  border-bottom: 1px solid var(--ks-rule);
  scroll-margin-top: 80px;
  transition: background-color var(--go-t);
}

.go-trow:hover,
.go-trow:focus-within {
  background: var(--ks-paper-raised);
}

/* Locked: A2 is already writing from it. Muted by colour, not opacity, so
   every word still clears 4.5:1. */
.go-trow.is-locked {
  background: var(--ks-paper-deep);
}

.go-trow-num {
  grid-area: num;
  display: flex;
  align-items: center;
  gap: 5px;
  padding-top: 4px;
  color: var(--ks-text-faint);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

/* Three 3px bars, filled from the top. The number is in the aria-label, so
   the meter is never the only carrier of the value. */
.go-trow-rel {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
}

.go-trow-rel i {
  display: block;
  width: 10px;
  height: 3px;
  border-radius: 1px;
  background: var(--ks-gray-2);
}

.go-trow-rel.is-0 i:nth-child(1),
.go-trow-rel.is-1 i:nth-child(-n + 2),
.go-trow-rel.is-2 i {
  background: var(--ks-patina);
}

.go-trow-head {
  grid-area: head;
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  padding-top: 2px;
}

.go-trow-title {
  color: var(--ks-ink);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.008em;
  line-height: 1.3;
}

.go-trow-editlink {
  flex: none;
  color: var(--ks-text-faint);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.go-trow-editlink:hover {
  color: var(--ks-text);
}

.go-trow-verdict {
  grid-area: verdict;
  align-self: start;
}

.go-trow-verdict .go-verdict-btn {
  min-height: 30px;
  padding: 0 11px;
  font-size: 13px;
}

/* Closed until the Edit link targets it, or a refused save re-opens it. */
.go-trow-edit {
  grid-area: edit;
  display: none;
  max-width: 90ch;
  margin-block: 6px 8px;
}

.go-trow-edit:target,
.go-trow-edit.is-open {
  display: block;
}

.go-trow-edit .go-textarea {
  min-height: 64px;
}

.go-trow-body {
  grid-area: body;
  min-width: 0;
}

.go-trow-line {
  max-width: none;
  color: var(--ks-text);
  font-size: 14px;
  line-height: 1.45;
}

/* Exactly 1px and neutral: a quotation rule, not a side-tab stripe. */
.go-trow-quote {
  margin-top: 3px;
  padding-inline-start: 10px;
  border-left: 1px solid var(--ks-gray-2);
  color: var(--ks-text-muted);
  font-size: 14px;
  line-height: 1.45;
}

.go-trow-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 6px;
  max-width: none;
  margin-top: 3px;
  color: var(--ks-text-faint);
  font-size: 13px;
}

.go-trow-meta .go-source {
  margin: 0;
  font-size: 13px;
}

.go-trow-researched {
  color: var(--ks-text-muted);
  font-variant-numeric: tabular-nums;
}

.go-trow-sep {
  color: var(--ks-gray-2);
}

.go-trow-writer {
  color: var(--ks-patina-deep);
  font-weight: 600;
}

.go-trow.is-rejected .go-trow-title {
  color: var(--ks-text-muted);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--ks-text-faint);
}

.go-trow.is-rejected .go-trow-line,
.go-trow.is-rejected .go-trow-quote {
  color: var(--ks-text-muted);
}

/* One topic, full screen: the slow path, for a topic that needs reading
   rather than triaging. */
.go-one {
  display: grid;
  gap: var(--go-s-16);
  max-width: 78ch;
  padding: var(--go-s-16) 0 96px;
}

.go-one .go-topic-title {
  font-size: var(--go-t-20);
}

/* The second and last shadowed element. Sticky, no border: elevation once. */
.go-one-actions {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--go-s-12);
  margin-top: var(--go-s-16);
  padding: var(--go-s-12) var(--go-s-16);
  border-radius: var(--ks-radius-md);
  background: var(--ks-paper-raised);
  box-shadow: var(--ks-lift-1);
}

.go-one-actions .u-right {
  margin-inline-start: auto;
}

/* A count and a 2px track. No spinner, no pulsing dot. */
.go-batch-progress {
  display: flex;
  align-items: center;
  gap: var(--go-s-8);
  color: var(--ks-text-muted);
  font-size: var(--go-t-12);
}

.go-batch-progress::after {
  content: "";
  flex: 1;
  min-width: 80px;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(to right, var(--ks-ink) 0 var(--go-progress, 0%), var(--ks-gray-2) var(--go-progress, 0%) 100%);
}

/* ============================================================
   GATE 2. The package on the left as the feed will actually
   render it, the editor on the right. Two columns, separated by
   a rule, collapsing to one under 960px.
   ============================================================ */
.go-review {
  display: grid;
  grid-template-columns: minmax(0, var(--go-li-w)) minmax(0, 1fr);
  gap: var(--go-s-32);
  align-items: start;
  padding-top: var(--go-s-16);
}

.go-review-preview {
  position: sticky;
  top: calc(var(--go-topbar-h) + var(--go-s-16));
  min-width: 0;
}

.go-review-editor {
  min-width: 0;
  padding-inline-start: var(--go-s-32);
  border-inline-start: 1px solid var(--ks-rule);
}

.go-editor-block {
  padding: var(--go-s-16) 0;
  border-bottom: 1px solid var(--ks-rule);
}

.go-editor-block:first-child {
  padding-top: 0;
}

.go-editor-block > h3 {
  margin-bottom: var(--go-s-8);
}

/* 100 body words is a hard gate, so the count is a control surface, not
   decoration: patina-deep as it approaches, vermilion once it is over. */
.go-wordcount,
.go-hookcount {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: var(--ks-text-muted);
  font-size: var(--go-t-12);
}

.go-wordcount.is-near {
  color: var(--ks-patina-deep);
}

.go-wordcount.is-over {
  color: var(--ks-vermilion);
  font-weight: 600;
}

.go-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.go-imagepick {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--go-s-12);
}

.go-imagepick-option {
  display: block;
  padding: 0;
  border: 1px solid var(--ks-gray-2);
  border-radius: var(--ks-radius-sm);
  background: var(--ks-paper-raised);
  overflow: hidden;
  cursor: pointer;
  text-align: start;
  transition: border-color var(--go-t);
}

.go-imagepick-option:hover {
  border-color: var(--ks-text-mute-deep);
}

.go-imagepick-option img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.91 / 1;
  object-fit: cover;
  background: var(--ks-gray);
}

.go-imagepick-option figcaption,
.go-imagepick-option .go-hint {
  padding: 6px var(--go-s-8);
  border-top: 1px solid var(--ks-rule);
  color: var(--ks-text-muted);
  font-size: var(--go-t-11);
}

/* Selection is an inset outline rather than a second border plus a shadow,
   so the option keeps one elevation declaration and does not jump 1px. */
.go-imagepick-option.is-selected {
  border-color: var(--ks-ink);
  outline: 2px solid var(--ks-ink);
  outline-offset: -2px;
}

.go-imagepick-option.is-selected figcaption {
  color: var(--ks-ink);
  font-weight: 600;
}

.go-decision {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--go-s-12);
  padding: var(--go-s-16) 0;
  border-top: 1px solid var(--ks-gray-2);
}

.go-decision .u-right {
  margin-inline-start: auto;
}

/* ============================================================
   LINKEDIN PREVIEW. 555px on desktop, which is the real feed
   width; 16px inner padding, 1px border, 8px radius, and no
   shadow - the border is the elevation declaration.
   ============================================================ */
.go-li {
  width: 100%;
  max-width: var(--go-li-w);
}

.go-li-card {
  padding: var(--go-s-16);
  border: 1px solid var(--ks-gray-2);
  border-radius: var(--ks-radius-md);
  background: var(--ks-paper-raised);
}

.go-li-author {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: var(--go-s-8);
  align-items: center;
}

/* The company page's picture, as the feed draws it: a circle on white, with
   the wide mark fitted inside rather than cropped to fill it. */
.go-li-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  padding: 6px;
  border-radius: var(--ks-radius-pill);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--ks-rule);
}

.go-li-avatar img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.go-li-name {
  color: var(--ks-ink);
  font-size: var(--go-t-14);
  font-weight: 600;
  line-height: 1.2;
}

.go-li-sub {
  color: var(--ks-text-muted);
  font-size: var(--go-t-12);
  line-height: 1.35;
}

.go-li-body {
  position: relative;
  margin-top: var(--go-s-12);
  color: var(--ks-text);
  font-size: var(--go-t-14);
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

.go-li-seemore {
  color: var(--ks-text-muted);
  font-size: var(--go-t-14);
}

/* The fold. A 1px dashed rule drawn where the feed truncates at 140
   characters. It is a block box on purpose: it breaks the line, so the rule
   sits in clear space between the visible head and the hidden tail instead of
   being struck through a line of running text. The preview has to be honest
   about what a reader sees before they tap "see more", and a rule you cannot
   read is decoration, not honesty. */
.go-li-fold {
  display: block;
  position: relative;
  height: 0;
  margin: 12px -6px 16px;
  border-top: 1px dashed var(--ks-gray-2);
  pointer-events: none;
}

.go-li-fold-label {
  position: absolute;
  inset-inline-end: 0;
  top: -7px;
  padding: 0 4px;
  background: var(--ks-paper-raised);
  color: var(--ks-text-faint);
  font-size: var(--go-t-11);
  letter-spacing: 0.04em;
  line-height: 14px;
  white-space: nowrap;
}

.go-li-tags {
  margin-top: var(--go-s-8);
  color: var(--ks-patina-deep);
  font-size: var(--go-t-14);
  overflow-wrap: break-word;
}

/* Media runs to the card edge, as it does in the feed. */
.go-li-media {
  margin: var(--go-s-12) calc(var(--go-s-16) * -1) 0;
  border-top: 1px solid var(--ks-rule);
  background: var(--ks-gray);
}

.go-li-media img {
  width: 100%;
  height: auto;
  display: block;
}

.go-li-actions {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: var(--go-s-4);
  margin-top: var(--go-s-12);
  padding-top: var(--go-s-8);
  border-top: 1px solid var(--ks-rule);
}

.go-li-actions > * {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: var(--go-row-action-h);
  color: var(--ks-text-muted);
  font-size: var(--go-t-12);
}

/* The link always ships as the first comment, so the preview shows it there
   and not in the body. */
.go-li-comment {
  margin-top: var(--go-s-8);
  padding-top: var(--go-s-8);
  border-top: 1px solid var(--ks-rule);
  color: var(--ks-text);
  font-size: var(--go-t-13);
  line-height: 1.45;
  overflow-wrap: break-word;
}

.go-li-comment::before {
  content: "First comment";
  display: block;
  margin-bottom: 3px;
  color: var(--ks-text-faint);
  font-size: var(--go-t-11);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ============================================================
   PROVENANCE. Every numeral in a post, the sentence it came
   from, and whether it traced. This is the one place gold is
   spent: the untraced tag, and the highlight fill behind the
   numeral inside the quote.
   ============================================================ */
.go-trace {
  border-top: 1px solid var(--ks-gray-2);
}

.go-trace-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: var(--go-s-12);
  align-items: baseline;
  padding: var(--go-s-12) 0;
  border-bottom: 1px solid var(--ks-rule);
}

.go-trace-value {
  color: var(--ks-ink);
  font-size: var(--go-t-13);
  font-weight: 600;
}

.go-trace-quote {
  color: var(--ks-text);
  font-size: var(--go-t-13);
  line-height: 1.55;
}

.go-trace-quote cite {
  display: block;
  margin-top: 3px;
  color: var(--ks-text-muted);
  font-size: var(--go-t-11);
  font-style: normal;
}

/* Gold as a highlight fill is legal; gold as text is not. The mark keeps
   `color: inherit` so the numeral stays ink. */
.go-trace-mark {
  background: oklch(84% 0.19 80.46 / 0.22);
  color: inherit;
  padding: 0 2px;
  border-radius: 2px;
}

.go-trace-verdict {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--go-t-11);
  white-space: nowrap;
}

.go-trace-verdict.is-traced {
  color: var(--ks-patina-deep);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* THE ONE FUNCTIONAL USE OF GOLD IN THIS APP.
   A number that could not be traced back to its source is what the whole
   pipeline exists to catch, so it gets the brand's single loud mark: ink on
   kinpaku, mono, 11px. Nothing else in this file may claim it. */
.go-trace-verdict.is-untraced {
  min-height: 18px;
  padding: 0 6px;
  border-radius: var(--ks-radius-sm);
  background: var(--ks-kinpaku);
  color: var(--ks-on-gold);
  font-family: var(--ks-mono);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 18px;
  text-transform: uppercase;
}

/* ============================================================
   ANALYTICS. Impressions and shares over six months, plus the
   days nobody posted. Two charts are authored, not one scaled:
   the wide one for desktop, a narrow one that shows only under
   720px. Colour is never the only carrier - the shares series
   is dashed as well as patina.
   ============================================================ */
.go-chart {
  width: 100%;
  height: auto;
  overflow: visible;
  color: var(--ks-text-muted);
  font-size: var(--go-t-11);
}

.go-chart text {
  fill: var(--ks-text-muted);
  stroke: none;
  font-family: var(--ks-font);
  font-size: var(--go-t-11);
  font-variant-numeric: tabular-nums;
}

.go-chart .go-axis,
.go-chart .go-grid {
  stroke: var(--ks-gray-2);
  stroke-width: 1;
}

.go-chart--wide {
  display: block;
}

.go-chart--narrow {
  display: none;
}

/* A band over the days with no post. Grey, not red: a gap is a fact, not a
   failure, and vermilion is reserved for failure. */
.go-chart-gap {
  fill: var(--ks-gray);
  opacity: 0.55;
  stroke: none;
}

.go-chart-line {
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.go-chart-line.is-impressions {
  stroke: var(--ks-ink);
}

.go-chart-line.is-shares {
  stroke: var(--ks-patina-deep);
  stroke-dasharray: 4 3;
}

/* Six more series, added 23 September 2026. Each one is a different dash
   pattern as well as a different ink, so nobody has to separate them by
   colour; no series repeats a pattern of the two above. Every stroke is ink,
   patina or kinpaku-deep - no new hue enters the file. */
.go-chart-line.is-reactions {
  stroke: var(--ks-patina);
  stroke-dasharray: 1 4;
}

.go-chart-line.is-comments {
  stroke: var(--ks-kinpaku-deep);
  stroke-dasharray: 7 3;
}

.go-chart-line.is-clicks {
  stroke: var(--ks-patina-ink);
  stroke-dasharray: 7 3 1 3;
}

.go-chart-line.is-engagement_rate {
  stroke: var(--ks-kinpaku-rich);
  stroke-dasharray: 2 3;
}

.go-chart-line.is-followers_total {
  stroke: var(--ks-ink);
  stroke-dasharray: 10 4;
}

.go-chart-line.is-follower_gain {
  stroke: var(--ks-patina-deep);
  stroke-dasharray: 3 2 1 2;
}

.go-chart-point {
  r: 2.5;
  fill: var(--ks-paper);
  stroke: currentColor;
  stroke-width: 1.5;
}

.go-gaplist {
  margin-top: var(--go-s-12);
  list-style: none;
  font-size: var(--go-t-12);
  color: var(--ks-text-muted);
}

.go-gaplist li {
  display: flex;
  align-items: baseline;
  gap: var(--go-s-8);
  padding: 5px 0;
  border-bottom: 1px solid var(--ks-rule);
}

.go-gaplist li:last-child {
  border-bottom: 0;
}

.go-perf {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--go-t-13);
}

.go-perf th {
  padding: var(--go-s-8) var(--go-s-12);
  border-bottom: 1px solid var(--ks-gray-2);
  color: var(--ks-text-muted);
  font-size: var(--go-t-11);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: start;
  text-transform: uppercase;
}

.go-perf td {
  padding: 9px var(--go-s-12);
  border-bottom: 1px solid var(--ks-rule);
}

.go-perf td:not(:first-child),
.go-perf th:not(:first-child) {
  text-align: end;
}

/* The sign travels in the text ("+18%" / "-4%"), so the direction survives
   for anyone who cannot separate the two colours. */
.go-delta {
  font-size: var(--go-t-12);
  font-weight: 600;
  white-space: nowrap;
}

.go-delta.is-up {
  color: var(--ks-patina-deep);
}

.go-delta.is-down {
  color: var(--ks-vermilion);
}

/* ============================================================
   OPS. What ran, what did not, and what a failed run said.
   A run that produced nothing writes a row saying so, so these
   rows exist to be read - they are never empty by design.
   ============================================================ */
.go-alerts {
  border-top: 1px solid var(--ks-gray-2);
}

.go-alert {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: var(--go-s-12);
  align-items: baseline;
  padding: var(--go-s-12) 0;
  border-bottom: 1px solid var(--ks-rule);
}

.go-alert .go-icon {
  align-self: center;
  color: var(--ks-text-muted);
}

.go-alert.is-critical .go-icon {
  color: var(--ks-vermilion);
}

.go-alert-text {
  color: var(--ks-text);
  font-size: var(--go-t-13);
  line-height: 1.5;
}

.go-alert.is-critical .go-alert-text strong {
  color: var(--ks-vermilion);
}

.go-alert-text small {
  display: block;
  margin-top: 2px;
  color: var(--ks-text-muted);
  font-size: var(--go-t-11);
}

.go-alert-action {
  align-self: center;
  white-space: nowrap;
}

.go-runs {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--go-t-13);
}

.go-runs th {
  padding: var(--go-s-8) var(--go-s-12);
  border-bottom: 1px solid var(--ks-gray-2);
  color: var(--ks-text-muted);
  font-size: var(--go-t-11);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: start;
  text-transform: uppercase;
}

.go-runs td {
  padding: 9px var(--go-s-12);
  border-bottom: 1px solid var(--ks-rule);
  vertical-align: top;
}

/* Mono here is legitimate: this is machine output, not a costume. */
.go-log {
  max-height: 420px;
  padding: var(--go-s-12);
  overflow: auto;
  border: 1px solid var(--ks-gray-2);
  border-radius: var(--ks-radius-sm);
  background: var(--ks-paper-deep);
  font-family: var(--ks-mono);
  font-size: var(--go-t-12);
  line-height: 1.55;
}

.go-log-line {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: var(--go-s-8);
  padding: 1px 0;
  color: var(--ks-text);
  overflow-wrap: anywhere;
}

.go-log-line time {
  color: var(--ks-text-faint);
}

.go-log-line.is-warn {
  color: var(--ks-patina-ink);
}

.go-log-line.is-error {
  color: var(--ks-vermilion);
}

.go-dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 5px var(--go-s-16);
  align-items: baseline;
}

.go-dl dt {
  color: var(--ks-text-faint);
  font-size: var(--go-t-11);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.go-dl dd {
  color: var(--ks-text);
  font-size: var(--go-t-13);
  overflow-wrap: break-word;
}

/* ============================================================
   UTILITIES. Eighteen of them, deliberately. This is not a
   framework and it must not grow into one: if a rule is used
   three times in one view, it belongs to that view's class.
   ============================================================ */
.u-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.u-nowrap { white-space: nowrap; }

.u-truncate {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.u-clamp-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.u-num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.u-muted { color: var(--ks-text-muted); }

/* --ks-text-faint is the lightest ink that still clears 4.5:1 on paper. */
.u-faint { color: var(--ks-text-faint); }

.u-right { text-align: end; }

.u-row {
  display: flex;
  align-items: center;
  gap: var(--go-s-8);
  min-width: 0;
}

.u-stack-8 > * + * { margin-top: var(--go-s-8); }
.u-stack-16 > * + * { margin-top: var(--go-s-16); }
.u-stack-24 > * + * { margin-top: var(--go-s-24); }

.u-gap-8 { gap: var(--go-s-8); }
.u-gap-12 { gap: var(--go-s-12); }

.u-hide-sm { display: revert; }
.u-show-sm { display: none; }

.u-mt-8 { margin-top: var(--go-s-8); }
.u-mt-16 { margin-top: var(--go-s-16); }
.u-mt-24 { margin-top: var(--go-s-24); }

/* ============================================================
   RESPONSIVE. Structural, not fluid type: the nav collapses,
   the columns stack, the tables reflow, the touch targets grow.
   ============================================================ */

/* Desktop: the nav is a details element only so that it can collapse later.
   Here the disclosure is inert - the summary is hidden and the links always
   show. Both reveal mechanisms are covered: the modern ::details-content
   box and the older "UA hides the children" behaviour. */
@media (min-width: 721px) {
  details.go-topbar-nav {
    display: flex;
  }

  details.go-topbar-nav > summary {
    display: none;
  }

  details.go-topbar-nav::details-content {
    content-visibility: visible;
    display: contents;
  }

  details.go-topbar-nav > *:not(summary) {
    display: inline-flex;
  }
}

@media (max-width: 960px) {
  .go-review {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--go-s-24);
  }

  .go-review-preview {
    position: static;
  }

  .go-review-editor {
    padding-inline-start: 0;
    border-inline-start: 0;
    border-top: 1px solid var(--ks-gray-2);
    padding-top: var(--go-s-16);
  }
}

@media (max-width: 720px) {
  .go-page {
    padding: var(--go-s-16) var(--go-s-12) var(--go-s-32);
  }

  /* 16px, or iOS zooms the page the moment a field takes focus. */
  .go-input,
  .go-textarea,
  .go-select {
    font-size: 16px;
    min-height: var(--go-touch-h);
  }

  .go-btn,
  .go-filter,
  .go-topbar-link,
  .go-chip-remove,
  .go-alert-action {
    min-height: var(--go-touch-h);
  }

  .go-btn-sm {
    min-height: 36px;
  }

  /* The nav becomes a real disclosure. */
  .go-topbar-nav {
    position: relative;
    margin-inline-start: auto;
  }

  .go-topbar-nav > summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: var(--go-touch-h);
    height: var(--go-touch-h);
    border-radius: var(--ks-radius-sm);
    color: var(--ks-text);
    cursor: pointer;
    list-style: none;
  }

  .go-topbar-nav > summary::-webkit-details-marker {
    display: none;
  }

  .go-topbar-nav[open] {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0 var(--go-s-12) var(--go-s-8);
    background: var(--ks-paper-deep);
    border-bottom: 1px solid var(--ks-rule);
  }

  .go-topbar-nav[open] > summary {
    align-self: flex-end;
  }

  .go-topbar-nav[open]::details-content {
    display: flex;
    flex-direction: column;
  }

  .go-topbar-nav .go-topbar-link {
    justify-content: flex-start;
    border-radius: var(--ks-radius-sm);
  }

  .go-relevance {
    flex-direction: row;
    width: auto;
  }

  .go-relevance span {
    width: 18px;
    height: 4px;
  }

  .go-trow {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "num" "head" "edit" "body" "verdict";
    row-gap: 4px;
    padding-inline: 0;
  }

  .go-trow-num {
    padding-top: 0;
  }

  .go-trow-rel {
    flex-direction: row;
    gap: 2px;
  }

  .go-trow-rel i {
    width: 14px;
  }

  .go-trow-verdict {
    margin-top: 6px;
  }

  /* Gate 1 decisions are taken with a thumb here. */
  .go-verdict {
    width: 100%;
  }

  .go-verdict-btn,
  .go-trow-verdict .go-verdict-btn {
    min-height: var(--go-touch-h);
  }

  .go-trace-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }

  .go-imagepick {
    grid-template-columns: minmax(0, 1fr);
  }

  .go-li,
  .go-li-card {
    max-width: 390px;
  }

  .go-li-actions {
    grid-auto-flow: row;
    grid-auto-columns: auto;
  }

  /* Tables reflow into labelled rows. Every td carries data-label. */
  .go-table thead,
  .go-perf thead,
  .go-runs thead {
    display: none;
  }

  .go-table tr,
  .go-perf tr,
  .go-runs tr {
    display: block;
    padding: var(--go-s-8) 0;
    border-bottom: 1px solid var(--ks-rule);
  }

  .go-table td,
  .go-perf td,
  .go-runs td {
    display: grid;
    grid-template-columns: 38% minmax(0, 1fr);
    gap: var(--go-s-8);
    padding: 3px 0;
    border-bottom: 0;
    text-align: start;
  }

  .go-table td::before,
  .go-perf td::before,
  .go-runs td::before {
    content: attr(data-label);
    color: var(--ks-text-muted);
    font-size: var(--go-t-11);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .go-perf td:not(:first-child),
  .go-perf th:not(:first-child),
  .go-table td.u-num {
    text-align: start;
  }

  .go-chart--wide {
    display: none;
  }

  .go-chart--narrow {
    display: block;
  }

  .go-alert {
    grid-template-columns: 18px minmax(0, 1fr);
  }

  .go-alert-action {
    grid-column: 2;
  }

  .go-log-line {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .u-hide-sm { display: none; }
  .u-show-sm { display: revert; }
}

/* ============================================================
   REDUCED MOTION. Nothing here animates for pleasure, so the
   honest answer is to switch transitions off entirely.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   Briefs and send-backs: the owner's instructions to A2 and A3.
   ============================================================ */
.go-input-num {
  width: 6.5rem;
  font-variant-numeric: tabular-nums;
}

/* A brief is shown as the agent will read it: its own line breaks kept. */
.go-brief {
  max-width: 80ch;
  margin-top: var(--go-s-8);
  padding: var(--go-s-8) var(--go-s-12);
  border-radius: var(--ks-radius-sm);
  background: var(--ks-paper-deep);
  color: var(--ks-text);
  font-size: var(--go-t-13);
  line-height: 1.5;
  white-space: pre-wrap;
}

details.go-hint > summary {
  cursor: pointer;
  margin-top: var(--go-s-8);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.go-imagechange {
  display: grid;
  gap: var(--go-s-8);
  margin-top: var(--go-s-16);
  padding-top: var(--go-s-12);
  border-top: 1px solid var(--ks-rule);
}

.go-trow-edit {
  max-width: 120ch;
}

.go-trow-edit .go-field,
.go-trow-edit .go-textarea,
.go-trow-edit .go-input:not(.go-input-num) {
  max-width: none;
  width: 100%;
}

.u-row > .go-label {
  white-space: nowrap;
}

/* ------------------------------------------------------------------------
   Post page: two parts (content approval, then the posting plan)
   ------------------------------------------------------------------------ */
:root {
  --go-cal-1: oklch(90% 0.06 188);       /* 1 post booked: pale patina */
  --go-cal-1-ink: oklch(32% 0.07 188);
  --go-cal-2: oklch(86% 0.11 80);        /* 2 posts: amber */
  --go-cal-2-ink: oklch(30% 0.06 70);
  --go-cal-3: oklch(72% 0.13 35);        /* 3 or more: vermilion */
  --go-cal-3-ink: oklch(99% 0 0);
}

.go-parts { display: flex; flex-wrap: wrap; gap: var(--go-s-8); margin: 0 0 var(--go-s-16); }
.go-part-link {
  display: inline-flex; align-items: center; gap: var(--go-s-8);
  padding: 6px var(--go-s-12); border: 1px solid var(--ks-rule); border-radius: var(--ks-radius-pill);
  background: var(--ks-paper-raised); color: var(--ks-text); text-decoration: none; font-size: var(--go-t-14);
}
.go-part-link.is-now { border-color: var(--ks-ink); }
.go-part-n {
  display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ks-ink); color: var(--ks-paper-raised); font-size: var(--go-t-11); font-weight: 600;
}
.go-part-label {
  margin: 0 0 var(--go-s-8); font-size: var(--go-t-12); font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ks-patina-ink);
}
.go-subhead { margin: var(--go-s-16) 0 var(--go-s-4); font-size: var(--go-t-16); font-weight: 600; }

/* first comment switch */
.go-switch-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--go-s-12); margin: 0 0 var(--go-s-8); }
.go-switch { display: inline-flex; align-items: center; gap: var(--go-s-8); cursor: pointer; font-weight: 600; }
.go-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.go-switch-track {
  position: relative; width: 40px; height: 22px; border-radius: 999px;
  background: var(--ks-gray-2); box-shadow: var(--ks-track-recess); transition: background var(--go-motion);
}
.go-switch-knob {
  position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--ks-paper-raised); box-shadow: var(--ks-cap-lift); transition: left var(--go-motion);
}
.go-switch input:checked + .go-switch-track { background: var(--ks-patina-deep); }
.go-switch input:checked + .go-switch-track .go-switch-knob { left: 21px; }
.go-switch input:focus-visible + .go-switch-track { outline: 2px solid var(--ks-ink); outline-offset: 2px; }
.go-switch input:disabled + .go-switch-track { opacity: 0.5; }
.go-comment-preview {
  margin: var(--go-s-4) 0 0; padding: var(--go-s-12); white-space: pre-wrap; word-break: break-word;
  font: var(--go-t-14)/1.5 var(--ks-font); background: var(--ks-paper-deep);
  border: 1px solid var(--ks-rule); border-radius: var(--ks-radius-md); min-height: 2.5em;
}

/* inspiration image */
.go-inspire { display: grid; grid-template-columns: 112px 1fr; gap: var(--go-s-12); align-items: start; margin-top: var(--go-s-4); }
.go-inspire-drop {
  width: 112px; height: 84px; display: grid; place-items: center; overflow: hidden; text-align: center;
  border: 1px dashed var(--ks-edge); border-radius: var(--ks-radius-md);
  background: var(--ks-paper-raised); color: var(--ks-text-muted); font-size: var(--go-t-11);
}
.go-inspire-drop img { width: 100%; height: 100%; object-fit: cover; }

/* the posting plan: a compact month, so it does not take the whole screen */
.go-plan { margin-top: var(--go-s-32); padding-top: var(--go-s-16); border-top: 2px solid var(--ks-ink); scroll-margin-top: calc(var(--go-topbar-h) + 8px); }
.go-plan-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--go-s-12); margin-bottom: var(--go-s-12); }
.go-plan-head h2 { margin: 0; }
.go-plan-state { display: inline-flex; align-items: center; gap: var(--go-s-8); margin: 0; }
.go-plan-grid { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 300px); gap: var(--go-s-24); align-items: start; }

.go-cal-bar { display: flex; align-items: center; gap: var(--go-s-4); margin-bottom: var(--go-s-4); }
.go-cal-month { margin: 0; min-width: 10ch; text-align: center; font-size: var(--go-t-16); }
.go-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.go-cal-dow { padding: 0 0 2px 4px; font-size: var(--go-t-11); color: var(--ks-text-muted); text-transform: uppercase; letter-spacing: 0.03em; }
.go-cal-day {
  position: relative; height: 44px; padding: 3px 4px; overflow: hidden; text-align: left;
  display: flex; flex-direction: column; justify-content: space-between;
  font: inherit; color: var(--ks-text); cursor: pointer;
  background: var(--ks-paper-raised); border: 1px solid var(--ks-rule); border-radius: var(--ks-radius-sm);
}
.go-cal-day:hover:not(:disabled) { border-color: var(--ks-edge); }
.go-cal-day:focus-visible { outline: 2px solid var(--ks-ink); outline-offset: 1px; }
.go-cal-day:disabled { cursor: default; }
.go-cal-day.is-blank { visibility: hidden; }
.go-cal-day.is-past { background: var(--ks-paper-deep); color: var(--ks-text-faint); }
.go-cal-day.is-today .go-cal-n { text-decoration: underline; text-underline-offset: 3px; }
.go-cal-day.is-n1 { background: var(--go-cal-1); color: var(--go-cal-1-ink); border-color: transparent; }
.go-cal-day.is-n2 { background: var(--go-cal-2); color: var(--go-cal-2-ink); border-color: transparent; }
.go-cal-day.is-n3 { background: var(--go-cal-3); color: var(--go-cal-3-ink); border-color: transparent; }
.go-cal-day.is-picked { box-shadow: inset 0 0 0 2px var(--ks-ink); }
/* The day this post is booked on, and days that already carry a published
   post. The count tint above says how full a day is; these two say what the
   day means for THIS post, so they are a rule down the leading edge rather
   than another fill competing with it. */
.go-cal-day.is-booked { border-inline-start: 3px solid var(--go-booked-edge); }
.go-cal-day.is-donefor { border-inline-start: 3px solid var(--go-posted-edge); }
.go-cal-when {
  font-size: 10px; line-height: 1.1; font-weight: 700; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; color: var(--go-booked-ink);
  font-variant-numeric: tabular-nums;
}
.go-cal-when.is-posted { color: var(--go-posted-ink); font-weight: 600; }
.go-cal-n { font-size: var(--go-t-12); font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; }
.go-cal-count {
  position: absolute; top: 3px; right: 4px; font-size: var(--go-t-11); font-weight: 700; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.go-cal-times { font-size: 10px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.go-cal-legend { display: flex; flex-wrap: wrap; gap: var(--go-s-12); margin: var(--go-s-8) 0 0; font-size: var(--go-t-11); color: var(--ks-text-muted); }
.go-cal-legend span { display: inline-flex; align-items: center; gap: 5px; }
.go-cal-sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--ks-rule); }
.go-cal-sw.is-n1 { background: var(--go-cal-1); }
.go-cal-sw.is-n2 { background: var(--go-cal-2); }
.go-cal-sw.is-n3 { background: var(--go-cal-3); }
.go-cal-sw.is-picked { background: var(--ks-paper-raised); box-shadow: inset 0 0 0 2px var(--ks-ink); }
.go-cal-sw.is-booked { background: var(--go-booked); border-inline-start: 3px solid var(--go-booked-edge); }

.go-plan-side {
  display: grid; gap: var(--go-s-12); padding: var(--go-s-12) var(--go-s-16);
  background: var(--ks-paper-raised); border: 1px solid var(--ks-rule); border-radius: var(--ks-radius-md);
}
.go-plan-side .go-field { margin: 0; }
.go-input-time { max-width: 140px; font-variant-numeric: tabular-nums; }
.go-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--go-s-8) 0 var(--go-s-4); }
.go-chip-btn {
  padding: 2px 10px; font: inherit; font-size: var(--go-t-13); font-variant-numeric: tabular-nums;
  color: var(--ks-text); background: var(--ks-paper); border: 1px solid var(--ks-rule); border-radius: 999px; cursor: pointer;
}
.go-chip-btn.is-on { background: var(--ks-ink); color: var(--ks-paper-raised); border-color: var(--ks-ink); }
.go-chip-btn:disabled { opacity: 0.5; cursor: default; }
.go-plan-list { display: grid; gap: 4px; margin: 2px 0 0; padding: 0; list-style: none; font-size: var(--go-t-13); }
.go-plan-list b { font-variant-numeric: tabular-nums; }
.go-plan-actions { display: flex; flex-wrap: wrap; gap: var(--go-s-8); }

@media (max-width: 820px) {
  .go-plan-grid { grid-template-columns: 1fr; }
  .go-cal, .go-plan-side { max-width: 440px; }
  .go-cal-times { display: none; }
  .go-inspire { grid-template-columns: 1fr; }
}

/* Send-back boxes on the post page: the request and its button in one frame,
   so the button cannot be mistaken for, or lost below, anything else. */
.go-sendback {
  display: grid; gap: var(--go-s-8); padding: var(--go-s-12) var(--go-s-16);
  border: 1px solid var(--ks-patina-pale); border-left: 4px solid var(--ks-patina-deep);
  border-radius: var(--ks-radius-md); background: var(--ks-paper-raised);
}
.go-sendback h3, .go-sendback h4 { margin: 0; }
.go-sendback-how { margin: 0; font-size: var(--go-t-14); color: var(--ks-text-muted); }
.go-sendback-go { display: flex; flex-wrap: wrap; align-items: center; gap: var(--go-s-12); margin: var(--go-s-4) 0 0; }
.go-btn.go-btn-send {
  min-height: var(--go-touch-h); padding: 0 var(--go-s-16); gap: var(--go-s-8);
  background: var(--ks-patina-deep); color: oklch(99% 0 0); border-color: var(--ks-patina-deep);
  font-weight: 600;
}
.go-btn.go-btn-send:hover:not(:disabled) { background: var(--ks-patina-ink); border-color: var(--ks-patina-ink); }
.go-btn.go-btn-send:disabled { background: var(--ks-gray); color: var(--ks-text-faint); border-color: var(--ks-gray); cursor: not-allowed; }
.go-sendback.is-ready { border-color: var(--ks-patina-deep); }

/* Notes the agents left for the owner, at the top of the editor. */
.go-agent-notes {
  margin: 0 0 var(--go-s-16); padding: var(--go-s-12) var(--go-s-16);
  background: var(--ks-paper-raised); border: 1px solid var(--ks-rule);
  border-left: 4px solid var(--ks-kinpaku-deep); border-radius: var(--ks-radius-md);
}
.go-agent-notes ul { margin: var(--go-s-4) 0 0; padding: 0; list-style: none; display: grid; gap: var(--go-s-8); font-size: var(--go-t-14); }
.go-agent-notes-who {
  display: inline-block; min-width: 2.2em; margin-right: var(--go-s-4); padding: 0 6px;
  border-radius: var(--ks-radius-sm); background: var(--ks-paper-deep); font-size: var(--go-t-12); font-weight: 700; text-align: center;
}

/* ------------------------------------------------------------------------
   Link share: the second post format. The article's own link card with a
   few lines of commentary, no images.
   ------------------------------------------------------------------------ */
.go-badge-link {
  display: inline-flex; align-items: center; vertical-align: middle;
  min-height: 20px; padding: 0 8px; margin-inline-start: 6px;
  border: 1px solid var(--ks-patina-deep); border-radius: var(--ks-radius-pill);
  color: var(--ks-patina-ink); background: var(--ks-paper-raised);
  font-size: var(--go-t-11); font-weight: 600; letter-spacing: 0.02em; line-height: 1;
  white-space: nowrap;
}

/* ---- The link post, on both verdict controls --------------------------
   Gate 1: the format used to exist only as a radio button inside the edit
   drawer, so nothing on a topic row said the option was there. It is a fifth
   verdict segment now - pressed, it reads "Approved as link post".

   Gate 2: the format is already decided and written to, so there are still
   four segments; the approval one states which of the two things it approves
   ("Approve link post" / "Approved as link post") rather than offering a
   switch. Either way the verdict control IS the status display, and no badge
   beside a title carries the fact on its own. */

/* Same patina as .go-dot.is-approved: both are approvals, and a second colour
   would say they are two different kinds of yes. */
.go-dot.is-approved_link {
  background: var(--ks-patina);
}

/* The segment is wider than the other four and says the most, so it keeps its
   words rather than truncating them. */
.go-verdict-btn-link {
  font-weight: 500;
}

/* Equal columns cost nothing when the four labels are "Pending" and "Hold".
   With a fifth that is three times longer they cost four times its width in
   empty space - 660px of control on a topic row, which crushed the headline
   the owner is actually judging down to two words a line. A control with five
   segments sizes each to its own label instead. */
.go-verdict:has(.go-verdict-btn-link) {
  grid-auto-columns: auto;
}

/* Why the segment is off, under the control rather than only in a tooltip: a
   phone has no hover and a disabled button that explains itself to nobody is
   the defect this whole change is about. */
.go-verdict-why {
  max-width: 44ch;
  margin: 5px 0 0;
  color: var(--ks-text-muted);
  font-size: var(--go-t-12);
  line-height: 1.45;
}

.go-one-actions .go-verdict-why {
  flex: 1 0 100%;
  max-width: none;
}

@media (max-width: 720px) {
  /* A long segment does not fit a phone beside three or four short ones. Two
     columns, and 1px gaps standing in for the dividers the borders drew.
     Scoped to the controls that HAVE the long segment, so a full post's
     control on either screen is untouched. */
  .go-verdict:has(.go-verdict-btn-link) {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--ks-gray-2);
  }

  /* :not(.is-on) so the pressed segment keeps its ink fill - this rule would
     otherwise outrank .go-verdict-btn.is-on on specificity and order both. */
  .go-verdict:has(.go-verdict-btn-link) .go-verdict-btn:not(.is-on) {
    border-inline-start: 0;
    background: var(--ks-paper-raised);
  }

  .go-verdict:has(.go-verdict-btn-link) .go-verdict-btn.is-on {
    border-inline-start: 0;
  }

  /* Gate 1 has five segments, so the long one takes a row of its own and the
     other four pair up around it. Gate 2 has four, which is a clean 2x2
     already - spanning there would leave a hole beside "Pending". */
  .go-verdict:has(.go-verdict-btn:nth-of-type(5)) .go-verdict-btn-link {
    grid-column: 1 / -1;
  }

  .go-verdict-btn-link {
    white-space: normal;
  }
}

/* ---- Gate 2: the whole URL, on the screen where the post is approved ----
   The preview card shows what LinkedIn shows, which is a domain. That is not
   a link anyone can check. This is the URL itself, wrapping rather than
   overflowing, because a long one is the normal case. */
.go-linkout {
  display: grid;
  gap: 4px;
  max-width: 72ch;
  margin-block: 0;
}

.go-linkout-url {
  overflow-wrap: anywhere;
  word-break: break-word;
  color: var(--ks-text);
  font-family: var(--ks-mono);
  font-size: var(--go-t-12);
  line-height: 1.5;
}

.go-linkout-url .go-icon {
  margin-inline-start: 4px;
  vertical-align: middle;
}

/* Gate 1: the two-choice format control. */
.go-format { display: grid; gap: var(--go-s-8); margin: 0; padding: 0; border: 0; min-width: 0; }
.go-format > .go-label { margin-bottom: var(--go-s-4); padding: 0; }
.go-format-opt {
  display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: var(--go-s-8); align-items: start;
  padding: var(--go-s-8) var(--go-s-12); cursor: pointer;
  border: 1px solid var(--ks-rule); border-radius: var(--ks-radius-md); background: var(--ks-paper-raised);
}
.go-format-opt input { margin-top: 3px; accent-color: var(--ks-patina-deep); }
.go-format-opt:has(input:checked) { border-color: var(--ks-patina-deep); border-left-width: 4px; padding-left: 9px; }
.go-format-opt:has(input:focus-visible) { outline: 2px solid var(--ks-ink); outline-offset: 2px; }
.go-format-opt:has(input:disabled) { cursor: default; }
.go-format-opt.is-off { background: var(--ks-paper-deep); color: var(--ks-text-faint); }
.go-format-text { display: grid; gap: 2px; }
.go-format-name { font-size: var(--go-t-14); font-weight: 600; color: var(--ks-text); }
.go-format-opt.is-off .go-format-name { color: var(--ks-text-faint); }
.go-format-how { font-size: var(--go-t-12); color: var(--ks-text-muted); }

/* Fields that belong to one format. Shown from the checked radio, no script. */
.go-if-link { display: none; }
form:has(input[name="post_format"][value="link_share"]:checked) .go-if-full { display: none; }
form:has(input[name="post_format"][value="link_share"]:checked) .go-if-link { display: revert; }

/* Gate 2 preview: the article's link card where the image would be. */
.go-li-article {
  display: block; margin: var(--go-s-12) calc(var(--go-s-16) * -1) 0;
  border-top: 1px solid var(--ks-rule); border-bottom: 1px solid var(--ks-rule);
  background: var(--ks-paper-deep); color: inherit; text-decoration: none;
}
.go-li-article-body { display: grid; gap: 2px; padding: var(--go-s-12) var(--go-s-16); }
.go-li-article-title {
  color: var(--ks-ink); font-size: var(--go-t-14); font-weight: 600; line-height: 1.3;
  overflow-wrap: break-word;
}
.go-li-article-desc { color: var(--ks-text-muted); font-size: var(--go-t-12); line-height: 1.4; overflow-wrap: break-word; }
.go-li-article-domain { color: var(--ks-text-muted); font-size: var(--go-t-12); }
.go-li-article:hover .go-li-article-title { text-decoration: underline; }
.go-linkcard-fields { display: grid; gap: var(--go-s-8); }

/* Settings, email alerts: the plain statement that this copy only writes a file. */
.go-mailnote {
  display: flex; align-items: flex-start; gap: var(--go-s-8); margin: 0;
  padding: 10px var(--go-s-12); border: 1px solid var(--ks-gray-2); border-radius: var(--ks-radius-sm);
  background: var(--ks-paper-raised); color: var(--ks-text); font-size: var(--go-t-13);
}
.go-mailnote .go-icon { margin-top: 2px; flex: none; color: var(--ks-text-muted); }
#email-alerts .go-table .go-error { display: block; margin-top: 2px; overflow-wrap: anywhere; }

/* ============================================================
   CHANGE SET 2, 23 September 2026. Asking A1 for topics, the
   owner's own topics, the people who may sign in, the owner's
   signed-off figures, and the password-reset pages.

   Nothing here introduces a control that does not already exist
   elsewhere in this file: a panel is a bordered block like
   .go-editor-block, a disclosure is a <details>, and every form
   works with scripting switched off.
   ============================================================ */

/* A bordered block that holds one small job on a list screen: "ask A1 for
   topics", "add my own topic". Two of them sit side by side on desktop and
   stack on a phone. */
.go-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--go-s-16);
  margin: var(--go-s-16) 0 var(--go-s-24);
}

.go-panel {
  padding: var(--go-s-12) var(--go-s-16) var(--go-s-16);
  border: 1px solid var(--ks-rule);
  border-radius: var(--ks-radius-md);
  background: var(--ks-paper-raised);
}

.go-panel > summary {
  margin: calc(var(--go-s-12) * -1) calc(var(--go-s-16) * -1) 0;
  padding: var(--go-s-12) var(--go-s-16);
  font-size: var(--go-t-16);
  font-weight: 600;
  color: var(--ks-ink);
  cursor: pointer;
  list-style-position: inside;
}

.go-panel[open] > summary {
  margin-bottom: var(--go-s-8);
  border-bottom: 1px solid var(--ks-rule);
}

.go-panel h3 {
  margin-bottom: var(--go-s-8);
}

.go-panel .go-field,
.go-panel .go-hint {
  margin-bottom: var(--go-s-8);
}

.go-panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--go-s-12);
  margin-bottom: var(--go-s-8);
}

/* The compact pair at the top of the Topics list. These two panels are how he
   gets MORE topics; the list below is the work. They were taller than the first
   three topics put together, which is the wrong way round, so the form is one
   row and the explanation is one line under it. */
.go-panels.is-compact {
  margin: var(--go-s-12) 0 var(--go-s-16);
  gap: var(--go-s-12);
}

.go-panels.is-compact .go-panel {
  padding: var(--go-s-8) var(--go-s-12) var(--go-s-12);
}

.go-panels.is-compact .go-panel h3 {
  margin-bottom: var(--go-s-8);
  font-size: 0.95rem;
}

.go-panels.is-compact .go-hint {
  margin-bottom: 0;
}

/* Label, number, note and button on one line; the note takes the slack and
   drops to its own line on a narrow screen rather than squeezing the button. */
.go-ask-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--go-s-8);
  margin-bottom: var(--go-s-8);
}

.go-ask-row .go-label {
  margin: 0;
  white-space: nowrap;
}

.go-ask-row .go-input-num {
  width: 5.5rem;
}

.go-ask-note {
  flex: 1 1 200px;
  min-width: 0;
}

/* A pending request, stated rather than implied: what was asked for, when,
   and the one way to take it back. */
.go-pending {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--go-s-12);
  padding: 10px var(--go-s-12);
  border: 1px solid var(--go-booked-edge);
  border-radius: var(--ks-radius-sm);
  background: var(--go-booked);
  color: var(--go-booked-ink);
  font-size: var(--go-t-13);
}

.go-pending form {
  margin: 0;
}

/* "Covered before: 14 Jun 2026, 101 days ago" on a repeat topic. A statement
   of fact, so it is set in ink on paper, not in a colour. */
.go-repeat {
  display: block;
  margin-top: var(--go-s-4);
  padding: 6px var(--go-s-8);
  border-inline-start: 3px solid var(--ks-kinpaku-rich);
  background: var(--ks-paper-deep);
  color: var(--ks-text);
  font-size: var(--go-t-12);
}

.go-repeat b {
  font-variant-numeric: tabular-nums;
}

/* A tick list: the owner's figures A2 may use, the checkbox guard rails. */
.go-ticks {
  display: grid;
  gap: 6px;
  margin: var(--go-s-4) 0 var(--go-s-8);
}

.go-tick {
  display: flex;
  align-items: flex-start;
  gap: var(--go-s-8);
  padding: 6px var(--go-s-8);
  border: 1px solid var(--ks-rule);
  border-radius: var(--ks-radius-sm);
  background: var(--ks-paper);
  font-size: var(--go-t-13);
  cursor: pointer;
}

.go-tick input {
  margin-top: 3px;
  flex: none;
}

.go-tick:has(input:checked) {
  border-color: var(--go-booked-edge);
  background: var(--go-booked);
}

.go-tick-figure {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.go-tick-note {
  display: block;
  color: var(--ks-text-muted);
  font-size: var(--go-t-12);
}

/* The owner's own figure, where a traced source quote would otherwise be.
   Deliberately NOT the gold tag: this number has provenance - the owner's own
   signature - and marking it loud would train the eye to ignore the one mark
   that means "nobody can check this". */
.go-trace-owner {
  color: var(--ks-text);
  font-size: var(--go-t-13);
}

.go-trace-verdict.is-owner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ks-patina-ink);
  font-size: var(--go-t-12);
}

/* Users. A plain table plus a statement wherever a button is missing, because
   a button that silently is not there teaches nothing. */
.go-guard {
  display: block;
  margin-top: 2px;
  max-width: 44ch;
  color: var(--ks-text-muted);
  font-size: var(--go-t-11);
}

.go-role {
  display: inline-block;
  padding: 1px 7px;
  border: 1px solid var(--ks-gray-2);
  border-radius: var(--ks-radius-pill);
  background: var(--ks-paper-deep);
  color: var(--ks-text);
  font-size: var(--go-t-11);
  font-weight: 600;
  white-space: nowrap;
}

.go-role.is-admin {
  border-color: var(--ks-edge);
  background: var(--ks-ink);
  color: var(--ks-paper);
}

.go-user-off th,
.go-user-off td {
  color: var(--ks-text-faint);
}

.go-rowforms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.go-rowforms form {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* The signed-out pages: sign in, forgotten password, reset. One column,
   centred, nothing but the job. */
.go-auth {
  max-width: 34rem;
}

.go-auth .go-hint {
  max-width: 46ch;
}

/* ---- Withdrawing and correcting an image option -----------------------
   Added 23 September 2026. An option A3 got wrong could not be taken back,
   and its alt text could not be fixed at all. These are the controls for
   both, and they sit under the pictures rather than on them: a destructive
   control printed over a thumbnail is a destructive control somebody presses
   by accident. */
.go-imagetools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--go-s-12);
  margin-top: var(--go-s-12);
}

.go-imagetool {
  padding: var(--go-s-8) var(--go-s-12) var(--go-s-12);
  border: 1px solid var(--ks-rule);
  border-radius: var(--ks-radius-sm);
  background: var(--ks-paper-raised);
}

.go-imagetool .go-field {
  margin: var(--go-s-4) 0 var(--go-s-8);
}

/* A removed option is shown, not hidden: the reason and who removed it are
   the record. It is drained of colour so it cannot be mistaken for a choice. */
.go-imagepick.is-removed .go-imagepick-option {
  cursor: default;
}

.go-imagepick-option.is-retired img {
  filter: grayscale(1);
  opacity: 0.55;
}

.go-imagepick-option.is-retired {
  border-style: dashed;
}

.go-imagepick-option.is-retired p {
  padding: 0 var(--go-s-8) var(--go-s-8);
}

.go-removed > summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ks-ink);
}

@media (max-width: 720px) {
  .go-imagetools { grid-template-columns: minmax(0, 1fr); }
}

/* Under 720px a table cell becomes a two-column grid ("LABEL | value"), so a
   block that is really a sentence about the whole row has to be told to span
   both, and a badge has to be told not to stretch to fill its track. Both
   declarations are inert on desktop, where the cell is not a grid. */
.go-guard,
.go-rowforms {
  grid-column: 1 / -1;
}

.go-role,
.go-badge-when,
.go-route-badge,
.go-dest-summary {
  justify-self: start;
}

/* A screen a viewer may read but not change. The server refuses the write
   either way; this only stops a live-looking control promising otherwise. */
.u-readonly input,
.u-readonly textarea,
.u-readonly select,
.u-readonly button {
  pointer-events: none;
  opacity: 0.55;
}

/* A fieldset used only to switch a whole form off (`disabled`) for an account
   that may read and not write. It must not draw a box or move anything, so it
   lays its children out as if it were not there. */
.go-fieldset-bare {
  display: contents;
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
fieldset[disabled] .go-btn,
fieldset[disabled] .go-input,
fieldset[disabled] .go-textarea,
fieldset[disabled] .go-verdict-btn {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ============================================================
   PHASE 1, 24 September 2026. Multi-network publishing: where
   an approved post goes, the route to each network, and what a
   half-published post looks like.

   No new colour is introduced. A route is a rule and a word,
   failure is the vermilion that already means failure, and the
   gold is still spent on exactly one thing elsewhere in this
   file (an untraceable number). A badge that invented a colour
   for "Hootsuite" would be the fourth meaning of colour on a
   screen that already has three.
   ============================================================ */

/* ---- Where it goes ----------------------------------------------------- */

.go-where {
  margin-bottom: var(--go-s-24);
  padding-bottom: var(--go-s-16);
  border-bottom: 1px solid var(--ks-rule);
  scroll-margin-top: calc(var(--go-topbar-h) + 8px);
}

.go-where-head { margin-bottom: var(--go-s-12); }
.go-where-head h3 { margin: 0 0 2px; }
.go-where-head .go-hint { max-width: 68ch; }

.go-where-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* A rule between networks, never a box around each: the row IS the unit, and
   four boxes on a phone read as four unrelated things. */
.go-where-row {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: var(--go-s-8) var(--go-s-16);
  align-items: start;
  padding: var(--go-s-12) 0;
  border-top: 1px solid var(--ks-rule);
}

.go-where-row:first-child { border-top: 0; }
.go-where-row.is-off { color: var(--ks-text-faint); }

.go-where-tick { align-self: start; border: 0; background: none; padding: 0; }
.go-where-tick:has(input:checked) { background: none; border: 0; }
.go-where-tick b { font-size: var(--go-t-14); }

/* The two-radio route control. Inherits the shape of the gate-1 format
   control, so the two decisions that look the same behave the same. */
.go-route {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--go-s-8);
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.go-route-opt { margin: 0; }
.go-route[disabled] .go-route-opt { opacity: 0.75; cursor: default; }

.go-where-note,
.go-where-record {
  grid-column: 2;
  margin: 0;
  font-size: var(--go-t-12);
  color: var(--ks-text-muted);
}

.go-where-record { font-weight: 600; color: var(--ks-text); }
.go-where-sep { color: var(--ks-text-faint); padding: 0 2px; }

/* The two sentences about what a Hootsuite LinkedIn post loses. Rendered
   always, whichever radio is chosen: a warning that appears only after you
   have picked the thing it warns about is not a warning. The leading rule is
   the same one used for a quoted source elsewhere - this is a statement of
   fact, not an alarm, so it is not vermilion. */
.go-where-cost {
  grid-column: 2;
  display: grid;
  gap: var(--go-s-4);
  margin: 0;
  padding: var(--go-s-8) 0 var(--go-s-8) var(--go-s-12);
  border-inline-start: 2px solid var(--ks-patina-pale);
  max-width: 76ch;
}

.go-where-cost p {
  margin: 0;
  font-size: var(--go-t-12);
  line-height: 1.5;
  color: var(--ks-text);
}

.go-where-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--go-s-12);
  margin: var(--go-s-16) 0 0;
}

/* ---- The route, as a badge -------------------------------------------- */

/* Two routes, one shape, told apart by a word and a border weight rather than
   by colour. Somebody reading this in sunlight on a phone gets the same
   answer as somebody reading it on a calibrated monitor. */
.go-route-badge {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  min-height: 18px;
  padding: 0 7px;
  margin-inline-start: 4px;
  border: 1px solid var(--ks-gray-2);
  border-radius: var(--ks-radius-pill);
  background: var(--ks-paper-raised);
  color: var(--ks-text);
  font-size: var(--go-t-11);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.go-route-badge.is-hootsuite {
  border-color: var(--ks-patina-deep);
  color: var(--ks-patina-ink);
}

/* ---- "1 of 2 posted - Facebook failed" -------------------------------- */

.go-dest-summary {
  display: inline-block;
  margin-inline-start: 6px;
  padding: 1px 7px;
  border: 1px solid var(--ks-gray-2);
  border-radius: var(--ks-radius-pill);
  background: var(--ks-paper-deep);
  color: var(--ks-text);
  font-size: var(--go-t-11);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* The roll-up outranks everything, so a post can read "posted" while one of
   its networks is still on the floor. This is the one mark that says so. */
.go-dest-summary.is-failed {
  border-color: var(--ks-vermilion);
  color: var(--ks-vermilion);
  background: var(--ks-paper-raised);
}

/* ---- One line per destination, under a queue row ----------------------- */

.go-dest-lines {
  display: grid;
  gap: 2px;
  margin: var(--go-s-4) 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--go-t-12);
  font-weight: 400;
}

.go-dest-lines b { font-weight: 600; }

/* ---- Where each destination stands ------------------------------------ */

.go-dest-table { margin-top: var(--go-s-16); }
.go-dest-table td { vertical-align: top; }

/* A failed destination gets the leading edge a booked day gets, in the colour
   that means failure everywhere else in this file. */
.go-dest-table .is-failed-row th[scope="row"],
.go-table .is-failed-row th[scope="row"] {
  border-inline-start: 3px solid var(--ks-vermilion);
  padding-inline-start: var(--go-s-8);
}

@media (max-width: 860px) {
  .go-where-row { grid-template-columns: minmax(0, 1fr); }
  .go-where-note,
  .go-where-record,
  .go-where-cost { grid-column: 1; }
  .go-where-cost { max-width: none; }
}

/* ------------------------------------------------------------------------
   Posting it by hand.

   Until LinkedIn approves the app and Hootsuite is connected, nothing this
   system produces can reach the company page on its own. This panel is the
   bridge: download the package, post it yourself, come back and say so. It
   sits between the two numbered parts of the review page because it belongs
   to neither - it is what you do when the machine cannot.
   ------------------------------------------------------------------------ */

.go-byhand {
  margin: var(--go-s-16) 0 0;
  padding: var(--go-s-12) var(--go-s-16);
  background: var(--ks-paper-raised);
  border: 1px solid var(--ks-rule);
  border-left: 4px solid var(--ks-patina-deep);
  border-radius: var(--ks-radius-md);
}

.go-byhand h2 {
  margin: 0 0 var(--go-s-4);
  font-size: var(--go-t-14);
  font-weight: 700;
}

.go-byhand p { margin: 0 0 var(--go-s-8); max-width: 62ch; font-size: var(--go-t-13); }
.go-byhand p:last-child { margin-bottom: 0; }

.go-byhand-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--go-s-8);
  margin-top: var(--go-s-8);
}

/* One line per download, smallest type on the page: it is a record, not news. */
.go-byhand-log {
  margin: var(--go-s-8) 0 0; padding: 0; list-style: none;
  display: grid; gap: 2px;
  color: var(--ks-text-muted); font-size: var(--go-t-11);
}

/* The same action on a queue row: quieter, because the row's own job is the
   date and this is a way out of the queue, not a step in it. */
.go-queue-dl {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: var(--go-s-4);
  color: var(--ks-text-muted); font-size: var(--go-t-11); font-weight: 600;
}
.go-queue-dl:hover { color: var(--ks-text); }

/* "I posted this myself", once he has. A statement, not a control. */
.go-byhand-done {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px;
  margin: var(--go-s-8) 0 var(--go-s-4);
  font-size: var(--go-t-13);
}
.go-byhand-done .go-icon { color: var(--ks-patina-deep); }

.go-byhand-confirm { margin-top: var(--go-s-8); font-size: var(--go-t-13); }
.go-byhand-confirm > summary { cursor: pointer; font-weight: 600; }
.go-byhand-confirm p { margin: var(--go-s-8) 0 0; max-width: 62ch; }

/* The same decision on a queue row. Quiet until it is opened. */
.go-queue-mark { margin-top: var(--go-s-4); font-size: var(--go-t-11); }
.go-queue-mark > summary { cursor: pointer; color: var(--ks-text-muted); font-weight: 600; }
.go-queue-mark > summary:hover { color: var(--ks-text); }
.go-queue-mark p { margin: var(--go-s-4) 0; max-width: 46ch; }

/* ============================================================
   AUDIT, 23 September 2026. Phone width, 375px.

   Every list table reflows into labelled rows under 720px, but its row
   header - the package title - kept the column-header rules: nowrap,
   sticky and small caps. One long title therefore set the width of the
   whole table, and the Posts list and the Queue scrolled sideways to
   680-730px on a phone, with the value half of every labelled row off
   the right edge. The table and its body become plain blocks, the title
   wraps like text, and a row of verdict buttons may wrap too.
   ============================================================ */
@media (max-width: 720px) {
  .go-table,
  .go-table tbody,
  .go-table caption {
    display: block;
    width: 100%;
    max-width: 100%;
  }
  .go-table tbody th[scope="row"] {
    display: block;
    position: static;
    padding: 3px 0;
    border-bottom: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .go-table td,
  .go-table td > *,
  .go-table th > * {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  /* Four segments side by side do not fit the value half of a labelled
     row; two by two do, with the 1px gaps drawing the dividers. */
  .go-table .go-verdict {
    display: grid;
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    width: 100%;
    background: var(--ks-gray-2);
  }
  .go-table .go-verdict-btn {
    border-inline-start: 0;
    white-space: normal;
  }
  .go-table .go-verdict-btn:not(.is-on) {
    background: var(--ks-paper-raised);
  }
  .go-table .u-nowrap {
    white-space: normal;
  }
  /* The footer line - who you are, change password, Settings, sign out -
     was one unwrapped row 405px wide. */
  footer.go-page .u-row {
    flex-wrap: wrap;
  }
  /* The queue row's date, time and Move sat on one unwrapped line. */
  .go-table form.u-row {
    flex-wrap: wrap;
  }
}

/* At every width: a package title is a row header, not a column header, so it
   wraps like the text it is. With the column rule's nowrap one long title
   pushed the Posts table past the right edge on a 1,132px window too. */
.go-table tbody th[scope="row"] {
  white-space: normal;
}

/* Prompts: the editor, the read-only copy and the line diff. Monospace and
   pre-wrap, because a prompt is Markdown whose line breaks mean something and
   the diff is line by line. */
.go-prompt-text {
  font: var(--go-t-13)/1.5 var(--ks-mono);
  min-height: 28em;
}
/* The editor is a <p class="go-field">, and every <p> stops at 70ch for
   reading. A prompt's lines are longer than that: give it the page width. */
.go-field-wide { max-width: none; }
.go-prompt-read,
.go-diff {
  margin: 0; padding: var(--go-s-12); white-space: pre-wrap; word-break: break-word;
  font: var(--go-t-13)/1.5 var(--ks-mono); background: var(--ks-paper-deep);
  border: 1px solid var(--ks-rule); border-radius: var(--ks-radius-md);
  max-height: 70vh; overflow: auto;
}
.go-diff-add { background: oklch(93% 0.06 150); color: oklch(30% 0.08 150); }
.go-diff-del { background: oklch(93% 0.05 30); color: oklch(35% 0.12 30); text-decoration: line-through; text-decoration-color: oklch(35% 0.12 30 / 0.4); }
.go-diff-same { color: var(--ks-text-muted); }

/* ============================================================
   LIVE MONITOR, 7 October 2026. Every agent and checker, in
   pipeline order: what it is doing now, on which AI, how far it
   has got, and what is waiting for it. Rule-separated rows like
   Ops - no cards, no shadow. A checker sits indented under the
   agent that runs it. assets/live.js repaints the same markup.
   ============================================================ */
.go-live-meta {
  color: var(--ks-text-muted);
  font-size: var(--go-t-12);
}

.go-live {
  border-top: 1px solid var(--ks-gray-2);
}

.go-live-slot {
  border-bottom: 1px solid var(--ks-rule);
}
.go-live-slot[open] {
  padding-bottom: var(--go-s-12);
}

.go-live-slot.is-checker {
  padding-inline-start: var(--go-s-24);
}

/* One line per agent: name, state, AI, and what it is doing now. Click opens
   the detail. The line never wraps on a desktop: "doing now" is cut with an
   ellipsis instead, so ten agents stay ten lines. */
.go-live-head {
  display: grid;
  grid-template-columns: 1.25rem minmax(9rem, 13rem) minmax(8rem, 12rem) minmax(9rem, 14rem) minmax(0, 1fr);
  align-items: baseline;
  gap: var(--go-s-12);
  padding: var(--go-s-8) 0;
  cursor: pointer;
  list-style: none;
}
.go-live-head::-webkit-details-marker {
  display: none;
}
.go-live-head::before {
  content: "\25B8";
  color: var(--ks-text-muted);
  transition: transform 120ms ease;
}
.go-live-slot[open] > .go-live-head::before {
  transform: rotate(90deg);
}
.go-live-head:hover .go-live-name {
  text-decoration: underline;
}
.go-live-head:focus-visible {
  outline: 2px solid var(--ks-ink);
  outline-offset: 2px;
}

.go-live-name {
  font-size: var(--go-t-14);
  font-weight: 600;
}

/* Each column keeps to itself: a long status is cut, never drawn over the AI. */
.go-live-head > * {
  min-width: 0;
}
.go-live-head > .go-status {
  display: block;   /* an ellipsis needs a block, not the usual inline-flex */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.go-live-head > .go-status > .go-dot {
  display: inline-block;
  margin-inline-end: 6px;
}

.go-live-ai,
.go-live-now {
  font-size: var(--go-t-13);
  color: var(--ks-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.go-live-now.go-error {
  color: inherit;
}

.go-live-slot > .go-live-silent,
.go-live-slot > .go-live-facts {
  margin-inline-start: calc(1.25rem + var(--go-s-12));
}

.go-live-pager {
  font-size: var(--go-t-13);
  color: var(--ks-text-muted);
}

.go-live-slot.is-checker .go-live-name {
  font-weight: 500;
}

.go-live-silent {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--go-s-8);
}

.go-live-facts dd > * + * {
  margin-inline-start: var(--go-s-8);
}

.go-live-item a {
  color: var(--ks-patina-deep);
}

/* A job on the Modal line: schedule, last check-in, warning, one per line. */
.go-live-facts dd.go-live-lines > * {
  display: block;
}
.go-live-facts dd.go-live-lines > * + * {
  margin-inline-start: 0;
}
.go-live-lines .go-dot {
  margin-inline-end: 6px;
}

/* A count and a thin track, like the batch progress at gate 1: no spinner,
   nothing pulses. A real <progress>, so the number needs no inline style. */
.go-live-bar {
  width: 140px;
  height: 6px;
  vertical-align: middle;
  appearance: none;
  border: 0;
  border-radius: 3px;
  background: var(--ks-gray-2);
  overflow: hidden;
}

.go-live-bar::-webkit-progress-bar {
  background: var(--ks-gray-2);
}

.go-live-bar::-webkit-progress-value {
  background: var(--ks-ink);
}

.go-live-bar::-moz-progress-bar {
  background: var(--ks-ink);
}

@media (max-width: 720px) {
  .go-live-slot.is-checker {
    padding-inline-start: var(--go-s-12);
  }
  /* On a phone: name and state on the first line, AI and "doing now" below. */
  .go-live-head {
    grid-template-columns: 1.25rem minmax(0, 1fr) auto;
  }
  .go-live-ai,
  .go-live-now {
    grid-column: 2 / -1;
  }
  .go-live-slot > .go-live-silent,
  .go-live-slot > .go-live-facts {
    margin-inline-start: 0;
  }
  .go-live-bar {
    width: 96px;
  }
}

/* ------------------------------------------------------------------------
   A post A4 set aside (7 Oct 2026). A4 would not package it, so it is the
   owner's to decide: the banner at the top of the post says why and names the
   controls on the page that fix it; the Posts list prints the reason under
   "A4 set it aside". And while the agents still have a post, who has it.
   ------------------------------------------------------------------------ */
.go-aside-banner {
  margin: var(--go-s-16) 0; padding: var(--go-s-12) var(--go-s-16);
  background: var(--ks-paper-raised); border: 1px solid var(--ks-vermilion);
  border-left: 4px solid var(--ks-vermilion); border-radius: var(--ks-radius-md);
  font-size: var(--go-t-14);
}
.go-aside-banner h2 { margin: 0 0 var(--go-s-8); font-size: var(--go-t-16); color: var(--ks-text); }
.go-aside-banner h2 .go-icon { color: var(--ks-vermilion); }
.go-aside-banner ul { margin: var(--go-s-4) 0 var(--go-s-8); padding-left: 1.2em; display: grid; gap: var(--go-s-4); }
.go-aside-banner p { margin: var(--go-s-4) 0; }
.go-aside-reason { display: block; font-size: var(--go-t-12); color: var(--ks-text); }
.go-agent-status strong { color: var(--ks-text); }

/* Gate 2: the other pages A2 read (since 7 Oct 2026). One per line, the
   title as the link, what it was used for under it. */
.go-sources { margin: 0 0 var(--go-s-8); padding: 0; list-style: none; display: grid; gap: var(--go-s-8); }
.go-sources li { display: grid; gap: 2px; min-width: 0; }

/* "What should A3 work on?" - fresh images, or one option changed. */
.go-image-base { display: grid; gap: 8px; margin: 0 0 16px; }
.go-image-base-choice {
  display: flex; align-items: center; gap: 12px; padding: 8px 12px;
  border: 1px solid var(--ks-gray-2); border-radius: var(--ks-radius-sm); background: var(--ks-paper-raised); cursor: pointer;
}
.go-image-base-choice:has(input:checked) { border-color: var(--ks-ink); outline: 2px solid var(--ks-ink); outline-offset: -2px; }
.go-image-base-choice img { width: 64px; height: 48px; object-fit: cover; border-radius: var(--ks-radius-sm); background: var(--ks-gray); flex: none; }
.go-image-base-choice > span { display: flex; flex-direction: column; min-width: 0; }
.go-image-model-other { display: block; margin-top: 8px; font-weight: 400; }
.go-image-model-other .go-input { margin-top: 4px; }

/* "Use this image" - a clear choice on every option, and what is chosen. */
.go-imagepick-status { margin: 0 0 12px; padding: 10px 12px; border-radius: var(--ks-radius-sm);
  border: 1px solid var(--ks-ink); background: var(--ks-paper-raised); }
.go-imagepick-status.is-none { border-style: dashed; border-color: var(--ks-gray-2); }
.go-imagepick-choose { display: flex; align-items: center; gap: 8px; margin: 8px 8px 4px; padding: 8px 12px;
  border: 1px solid var(--ks-gray-2); border-radius: var(--ks-radius-sm); font-weight: 600; cursor: pointer; }
.go-imagepick-choose input { width: 18px; height: 18px; margin: 0; }
.go-imagepick-chosen { display: none; }
.go-imagepick-option.is-selected .go-imagepick-choose,
.go-imagepick-option:has(input:checked) .go-imagepick-choose { background: var(--ks-ink); color: var(--ks-paper-raised); border-color: var(--ks-ink); }
.go-imagepick-option.is-selected .go-imagepick-use,
.go-imagepick-option:has(input:checked) .go-imagepick-use { display: none; }
.go-imagepick-option.is-selected .go-imagepick-chosen,
.go-imagepick-option:has(input:checked) .go-imagepick-chosen { display: inline-flex; align-items: center; gap: 4px; }
.go-title-choices { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 4px; }
