@font-face { font-family: 'Shoulders'; src: url('/static/fonts/ui/BigShoulders-Bold.ttf'); font-weight: 700; }
@font-face { font-family: 'Shoulders'; src: url('/static/fonts/ui/BigShoulders-Regular.ttf'); font-weight: 400; }
@font-face { font-family: 'Instrument'; src: url('/static/fonts/ui/InstrumentSans-Regular.ttf'); font-weight: 400; }
@font-face { font-family: 'Instrument'; src: url('/static/fonts/ui/InstrumentSans-Bold.ttf'); font-weight: 700; }
@font-face { font-family: 'GeistM'; src: url('/static/fonts/ui/GeistMono-Regular.ttf'); font-weight: 400; }
@font-face { font-family: 'GeistM'; src: url('/static/fonts/ui/GeistMono-Bold.ttf'); font-weight: 700; }

:root {
  --bg: #1B1815;
  --surface: #24201B;
  --surface-raised: #2C2721;
  --paper: #F3EDE1;
  --paper-dim: #E4DBC8;
  --ember: #E2762B;
  --ember-bright: #FFA155;
  --ember-dim: #7A431B;
  --sage: #8FBB98;
  --text: #FFFCF7;
  --text-muted: #C9BEAE;
  --text-faint: #9C917E;
  --line: #4A4238;
  --line-bright: #5C5346;
  --danger: #E8837A;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(241,234,224,0.035) 1px, transparent 0);
  background-size: 22px 22px;
  color: var(--text);
  font-family: 'Instrument', sans-serif;
  min-height: 100vh;
}

a { color: inherit; }

.wrap {
  max-width: 1680px;   /* was 1180px: left big empty margins on a large monitor */
  margin: 0 auto;
  padding: 28px 24px 80px;
}

/* ---------- Header ---------- */

.masthead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--line-bright);
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.wordmark {
  font-family: 'Shoulders', sans-serif;
  font-weight: 700;
  font-size: 42px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 0.9;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.wordmark .spark { color: var(--ember); }

.masthead-sub {
  font-family: 'GeistM', monospace;
  font-size: 12.5px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-top: 6px;
}

.status-pill {
  font-family: 'GeistM', monospace;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  padding: 7px 14px;
  border-radius: 3px;
  border: 1px solid var(--line-bright);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.status-pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--text-muted);
}
.status-pill.on { border-color: var(--sage); color: var(--sage); }
.status-pill.on .dot { background: var(--sage); box-shadow: 0 0 6px var(--sage); }
.status-pill.off { border-color: var(--danger); color: var(--danger); }
.status-pill.off .dot { background: var(--danger); }

.status-pill a.connect {
  margin-left: 4px;
  text-decoration: underline;
  color: var(--ember-bright);
}

/* ---------- Grid ---------- */

.console {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 860px) {
  .console { grid-template-columns: 1fr; }
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 22px;
}

.panel-label {
  font-family: 'GeistM', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ---------- Intake panel ---------- */

label.field-label {
  display: block;
  font-family: 'GeistM', monospace;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
}

input[type=text], input[type=password], textarea, select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-bright);
  border-radius: 3px;
  color: var(--text);
  padding: 11px 12px;
  font-family: 'Instrument', sans-serif;
  font-size: 15px;
  margin-bottom: 16px;
}
input[type=text]:focus, input[type=password]:focus, textarea:focus, select:focus {
  outline: 2px solid var(--ember);
  outline-offset: 1px;
  border-color: var(--ember);
}

textarea { resize: vertical; min-height: 70px; line-height: 1.45; }

/* One height for every one-line box AND for every button that sits beside one, so they line up exactly. */
:root { --control-h: 44px; }
input[type=text], input[type=password], select { height: var(--control-h); }

.btn {
  font-family: 'GeistM', monospace;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  border-radius: 3px;
  padding: 13px 18px;
  cursor: pointer;
  width: 100%;
  transition: transform 0.08s ease, filter 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-forge {
  background: var(--ember);
  color: #14110E;
  font-weight: 700;
}
.btn-forge:hover:not(:disabled) { filter: brightness(1.08); }

.btn-publish {
  background: var(--sage);
  color: #11190F;
  font-weight: 700;
}
.btn-publish:hover:not(:disabled) { filter: brightness(1.08); }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line-bright);
  color: var(--text-muted);
}
.btn-ghost:hover { border-color: var(--ember); color: var(--ember-bright); }

.hint {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-top: 4px;
}

.error-box {
  background: rgba(232,131,122,0.14);
  border: 1px solid var(--danger);
  border-left: 3px solid var(--danger);
  color: #FFE4DF;
  padding: 12px 14px;
  border-radius: 3px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 14px;
  display: none;
}
.error-box.show { display: block; }

/* ---------- Bench (preview) panel ---------- */

.bench-empty {
  border: 1px dashed var(--line-bright);
  border-radius: 4px;
  padding: 70px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14.5px;
}
.bench-empty .big {
  font-family: 'Shoulders', sans-serif;
  font-size: 22px;
  color: var(--text);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.proof {
  display: grid;
  grid-template-columns: 1fr;   /* the pin image now lives under the intake, so the fields get the whole bench */
  gap: 26px;
}
@media (max-width: 640px) {
  .proof { grid-template-columns: 1fr; }
}

.proof-frame {
  position: relative;
  padding: 14px;
  background: var(--paper);
  border-radius: 3px;
}
.proof-frame img {
  width: 100%;
  display: block;
  border-radius: 2px;
}
.reg-mark {
  position: absolute;
  width: 14px; height: 14px;
  opacity: 0.55;
}
.reg-mark::before, .reg-mark::after {
  content: '';
  position: absolute;
  background: #1B1815;
}
.reg-mark::before { width: 100%; height: 1.4px; top: 50%; transform: translateY(-50%); }
.reg-mark::after { height: 100%; width: 1.4px; left: 50%; transform: translateX(-50%); }
.reg-mark.tl { top: 4px; left: 4px; }
.reg-mark.tr { top: 4px; right: 4px; }
.reg-mark.bl { bottom: 4px; left: 4px; }
.reg-mark.br { bottom: 4px; right: 4px; }

.source-tag {
  font-family: 'GeistM', monospace;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
}
.source-tag.scrape { color: #F0B94F; }

.proof-fields .price-tag {
  font-family: 'GeistM', monospace;
  color: var(--ember-bright);
  font-size: 14px;
  margin-bottom: 14px;
}

.field-row { margin-bottom: 16px; }

.char-count {
  text-align: right;
  font-family: 'GeistM', monospace;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: -12px;
  margin-bottom: 16px;
}

.publish-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}
.publish-row .btn { width: auto; padding-left: 26px; padding-right: 26px; }

.link-line {
  font-family: 'GeistM', monospace;
  font-size: 13px;
  color: var(--text);
  word-break: break-all;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 8px 10px;
  margin-bottom: 16px;
}

.published-badge {
  display: block;       /* was inline-flex, which split the sentence into cramped columns */
  line-height: 1.5;
  font-family: 'GeistM', monospace;
  font-size: 13px;
  color: var(--sage);
  border: 1px solid var(--sage);
  border-radius: 3px;
  padding: 10px 14px;
  margin-top: 4px;
}

/* ---------- Ledger ---------- */

.ledger {
  margin-top: 32px;
}

table.ledger-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.ledger-table th {
  font-family: 'GeistM', monospace;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-align: left;
  padding: 0 10px 10px;
  border-bottom: 1px solid var(--line-bright);
  font-weight: 400;
}
.ledger-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.ledger-table tr:last-child td { border-bottom: none; }
.ledger-thumb {
  width: 40px; height: 60px;
  object-fit: cover;
  border-radius: 2px;
  background: var(--paper-dim);
}
.led-title { color: var(--text); }
.led-id { font-family: 'GeistM', monospace; color: var(--text-muted); font-size: 13px; }

.tag {
  font-family: 'GeistM', monospace;
  font-size: 11.5px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  letter-spacing: 0.04em;
}
.tag.draft { background: rgba(201,190,174,0.18); color: var(--text); }
.tag.published { background: rgba(143,187,152,0.2); color: var(--sage); }

.empty-ledger {
  color: var(--text-muted);
  font-size: 14px;
  padding: 20px 10px;
}

/* ---------- Analytics ---------- */

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 18px 0 24px;
}
@media (max-width: 640px) {
  .stat-row { grid-template-columns: 1fr; }
}

.stat-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 16px 18px;
}
.stat-card .stat-value {
  font-family: 'Shoulders', sans-serif;
  font-weight: 700;
  font-size: 34px;
  color: var(--ember-bright);
  line-height: 1;
}
.stat-card .stat-label {
  font-family: 'GeistM', monospace;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 6px;
}

.analytics-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 780px) {
  .analytics-layout { grid-template-columns: 1fr; }
}

.analytics-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.analytics-row:last-child { border-bottom: none; }
.analytics-row img {
  width: 36px; height: 50px;
  object-fit: cover;
  border-radius: 2px;
  background: var(--paper-dim);
}
.analytics-row .ar-title { color: var(--text); line-height: 1.3; }
.analytics-row .ar-meta {
  font-family: 'GeistM', monospace;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}
.analytics-row .ar-count {
  font-family: 'GeistM', monospace;
  font-size: 15px;
  color: var(--ember-bright);
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.retailer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.retailer-row:last-child { border-bottom: none; }
.retailer-row .rr-count {
  font-family: 'GeistM', monospace;
  color: var(--ember-bright);
  font-weight: 700;
}

/* ---------- Spinner ---------- */

.spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(27,24,21,0.3);
  border-top-color: #1B1815;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: -2px;
  margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Scout ---------- */

.sub-label {
  font-family: 'GeistM', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 4px 0 12px;
}

.scout-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  padding: 14px 0 6px;
}
@media (max-width: 780px) {
  .scout-layout { grid-template-columns: 1fr; }
}

.watch-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }

.watch-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 9px 12px;
  font-size: 14px;
}
.watch-chip .wc-meta {
  font-family: 'GeistM', monospace;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}
.watch-chip .wc-remove {
  background: none; border: none; color: var(--text-muted);
  cursor: pointer; font-size: 16px; padding: 2px 6px;
}
.watch-chip .wc-remove:hover { color: var(--danger); }
.watch-chip .wc-last-run {
  font-family: 'GeistM', monospace;
  font-size: 11px;
  color: var(--text-muted);
}

.add-watch {
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 10px 12px;
}
.add-watch summary {
  cursor: pointer;
  font-family: 'GeistM', monospace;
  font-size: 13px;
  color: var(--ember-bright);
  letter-spacing: 0.03em;
}
.add-watch-form { margin-top: 14px; }
.add-watch-form input, .add-watch-form select { margin-bottom: 12px; }

.watch-filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.empty-ledger-small {
  color: var(--text-muted);
  font-size: 13.5px;
  padding: 6px 0 14px;
}

.candidate-list { display: flex; flex-direction: column; gap: 10px; }

.candidate-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 10px 12px;
}

.candidate-thumb {
  width: 44px; height: 60px;
  object-fit: cover;
  border-radius: 2px;
  background: var(--paper-dim);
}

.candidate-title { font-size: 14.5px; color: var(--text); line-height: 1.3; }
.candidate-meta {
  font-family: 'GeistM', monospace;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.candidate-actions { display: flex; gap: 8px; }
.btn-icon {
  font-family: 'GeistM', monospace;
  font-size: 12.5px;
  border-radius: 3px;
  padding: 8px 12px;
  cursor: pointer;
  border: 1px solid var(--text-faint);
  background: transparent;
  color: var(--text);
  white-space: nowrap;
}
.btn-icon.approve:hover { border-color: var(--sage); color: var(--sage); }
.btn-icon.reject:hover { border-color: var(--danger); color: var(--danger); }
.btn-icon:not(.approve):not(.reject):hover { border-color: var(--ember); color: var(--ember-bright); }
.btn-icon:disabled { opacity: 0.5; cursor: not-allowed; }

/* An action button that belongs to the box beside it (Update price, Update image, Move, Save & test...):
 * the same height as the box, solid and high-contrast. */
.btn-action {
  font-family: 'GeistM', monospace;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  height: var(--control-h);
  box-sizing: border-box;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  color: #14110E;
  border: 1px solid var(--paper);
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
}
.btn-action:hover:not(:disabled) { background: var(--ember-bright); border-color: var(--ember-bright); }
.btn-action:active:not(:disabled) { transform: translateY(1px); }
.btn-action:focus-visible { outline: 2px solid var(--ember-bright); outline-offset: 2px; }
.btn-action:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-action.reject { background: var(--danger); border-color: var(--danger); }
.btn-action.reject:hover:not(:disabled) { background: #F4A59D; border-color: #F4A59D; }

/* A box with a button beside it: the box gives up its bottom margin, so the two share one line
 * (the margin used to push the button below the box). */
.publish-row > input[type=text],
#move-board-select,
#ai-key-input,
.field-row.inline-action > input[type=text] { margin-bottom: 0; }
#move-board-row + .char-count { margin-top: 8px; text-align: left; font-size: 12.5px; line-height: 1.5; }   /* a sentence, not a counter */

/* The AI's version of a field, shown under it, with the words that differ highlighted. */
.ai-box {
  margin: 8px 0 16px;
  padding: 10px 12px;
  border: 1px dashed var(--ember-bright, #e07a33);
  border-radius: 4px;
  background: rgba(224, 122, 51, 0.06);
}
.ai-box-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.ai-box-title {
  font-family: 'GeistM', monospace;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ember-bright, #e07a33);
}
.ai-box-meta { flex: 1; font-size: 12px; color: var(--text-muted); }
.ai-box-text { white-space: pre-wrap; line-height: 1.5; font-size: 14px; overflow-wrap: anywhere; }
.diff-new { background: rgba(224, 122, 51, 0.32); border-radius: 2px; padding: 0 2px; }

.field-hint { font-size: 12px; color: var(--text-faint); margin: -8px 0 16px; line-height: 1.4; }

/* ---------- Left column: intake, with the pin preview under it ---------- */

.console-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-self: stretch;   /* as tall as the bench, so the preview has room to stay in view */
  min-width: 0;
}
.bench-preview { position: sticky; top: 16px; padding: 18px; }
@media (max-width: 860px) {
  /* stacked layout: a normal-sized preview above the bench, not a full-width giant */
  .bench-preview { position: static; max-width: 340px; }
}

/* ---------- Roomier bench ----------
 * The two-column layout is decided by the BENCH's own width (a container
 * query), not the browser window's, so it adapts to whatever space the bench
 * really has. Narrow benches keep the original single column. */

#bench-content { container-type: inline-size; container-name: bench; }

/* Taller text boxes in every layout (they were ~3 lines, with a scrollbar). */
.proof-fields #pin-desc-input { min-height: 170px; }
.proof-fields #pin-alt-text-input { min-height: 120px; }

@container bench (min-width: 640px) {
  .proof-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 22px;
    align-items: start;
  }
  .proof-fields > * { grid-column: 1 / -1; }                 /* everything spans the full width... */
  .proof-fields > .field-row.half { grid-column: auto; }      /* ...except price | regular price and description | alt text */


  /* An input with its action button beside it, instead of the button on a row of its own. */
  .proof-fields .field-row.inline-action {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 10px;
    align-items: end;
  }
  .proof-fields .field-row.inline-action > .field-label,
  .proof-fields .field-row.inline-action > .char-count { grid-column: 1 / -1; }
  .proof-fields .field-row.inline-action > .char-count { margin-top: 6px; }
  .proof-fields .field-row.inline-action > .btn-action { margin-top: 0 !important; }  /* overrides the button's inline margin */
}

/* ---------- The WordPress area and the Pinterest area ----------
 * Two areas, side by side when the bench is wide enough (decided by the bench's own width), stacked otherwise. */

.destinations { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 18px; }
@container bench (min-width: 720px) {
  .destinations { grid-template-columns: 1fr 1fr; align-items: start; }
}

.dest {
  min-width: 0;
  padding: 16px 18px 18px;
  background: var(--surface-raised);
  border: 1px solid var(--line-bright);
  border-radius: 6px;
}
.dest-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-family: 'GeistM', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}
.dest-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.dest-dot.wp { background: var(--sage); }
.dest-dot.pin { background: #E60023; }   /* Pinterest's red */
.dest-sub { margin: 4px 0 14px; font-size: 12.5px; color: var(--text-muted); }
.dest .field-label { margin-top: 0; }
.dest-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }

/* Inside an area a button may wrap its label instead of overflowing the card. */
.dest .btn-action { white-space: normal; height: auto; min-height: var(--control-h); padding: 8px 16px; text-align: center; }

/* The main action of an area. */
.btn-action.primary { background: var(--ember-bright); border-color: var(--ember-bright); }   /* dark text on this orange: 9.4 : 1 */
.btn-action.primary:hover:not(:disabled) { background: #FFB77D; border-color: #FFB77D; }

/* Move to a different board: a block (the script shows it with display:flex), with its box and button on one line. */
.move-block { flex-direction: column; align-items: stretch; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.move-controls { display: flex; align-items: flex-end; gap: 10px; }
.move-controls select { flex: 1; min-width: 0; margin-bottom: 0; }
.label-with-info { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.label-with-info .field-label { margin: 0; }

/* The small "i" that explains something. */
.info-icon {
  width: 22px; height: 22px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--text-muted);
  background: transparent;
  color: var(--text);
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}
.info-icon:hover, .info-icon[aria-expanded="true"] { background: var(--paper); border-color: var(--paper); color: #14110E; }
.info-icon:focus-visible { outline: 2px solid var(--ember-bright); outline-offset: 2px; }
.info-note {
  margin: 0 0 10px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--text-faint);
  border-left: 3px solid var(--ember-bright);
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
}
.info-note[hidden] { display: none; }
.info-note ul { margin: 6px 0 6px 18px; padding: 0; }
.info-note li { margin: 4px 0; }
.info-note p { margin: 6px 0 0; color: var(--text-muted); }

/* The "also move the WordPress page" choice under the Move button. */
.move-wp { display: flex; align-items: flex-start; gap: 9px; margin-top: 10px; font-size: 12.5px; line-height: 1.45; color: var(--text); cursor: pointer; }
.move-wp input { margin-top: 2px; flex: none; accent-color: var(--ember-bright); }
.move-wp-note { color: var(--text-muted); }

/* ---------- Ledger search ---------- */
.ledger-search { margin: 14px 0 6px; }
.ledger-search-row { display: flex; gap: 10px; align-items: stretch; }
.ledger-search-row input { flex: 1; min-width: 0; margin-bottom: 0; }
.ledger-empty td { text-align: center; padding: 28px 12px; color: var(--text-muted); }

/* ---------- A section that folds away (04) ---------- */
.collapsible > details > summary { cursor: pointer; list-style: none; user-select: none; }
.collapsible > details > summary::-webkit-details-marker { display: none; }
.collapsible > details > summary:hover { color: var(--text); }
.collapsible > details > summary:focus-visible { outline: 2px solid var(--ember-bright); outline-offset: 4px; border-radius: 2px; }
.collapsible > details:not([open]) > summary { margin-bottom: 0; }
.collapsible .chev { flex: none; width: 0; height: 0; border-left: 7px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; transition: transform 0.15s; }
.collapsible details[open] .chev { transform: rotate(90deg); }
.summary-status { margin-left: 4px; font-size: 12px; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.summary-status.ok { color: var(--sage); }
.summary-status.warn { color: var(--primary); }

/* ---------- Ledger pages ---------- */
.ledger-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; padding: 14px 0 12px; border-top: 1px solid var(--line); }
.pager-range { font-family: 'GeistM', monospace; font-size: 12px; letter-spacing: 0.04em; color: var(--text-muted); }
.pager-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pager-btn {
  min-width: 36px; height: 36px; padding: 0 10px; box-sizing: border-box;
  font-family: 'GeistM', monospace; font-size: 12.5px;
  color: var(--text); background: transparent;
  border: 1px solid var(--text-faint); border-radius: 3px; cursor: pointer;
}
.pager-btn:hover:not(:disabled):not([aria-current="page"]) { border-color: var(--paper); background: rgba(243, 237, 225, 0.1); }
.pager-btn:focus-visible { outline: 2px solid var(--ember-bright); outline-offset: 2px; }
.pager-btn[aria-current="page"] { background: var(--paper); border-color: var(--paper); color: #14110E; font-weight: 700; cursor: default; }
.pager-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.pager-gap { padding: 0 4px; color: var(--text-muted); }
.pager-size { display: flex; align-items: center; gap: 8px; margin: 0; font-family: 'GeistM', monospace; font-size: 12px; color: var(--text-muted); text-transform: none; letter-spacing: 0.04em; }
.pager-size select { width: auto; height: 36px; margin: 0; padding: 4px 28px 4px 10px; font-size: 13px; }

/* ---------- Result rows for the page jobs (optimise / rewrite) ----------
 * Their own layout: the old rows borrowed the Scout list's grid, whose first column is a 44px thumbnail, so the
 * text of a row with no thumbnail was squeezed into 44px and wrapped one word per line. */

.job-list { display: flex; flex-direction: column; gap: 10px; }
.job-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 16px;
  align-items: start;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 3px solid var(--text-faint);
  border-radius: 3px;
}
.job-row.tone-change  { border-left-color: var(--ember-bright); }
.job-row.tone-done    { border-left-color: var(--sage); }
.job-row.tone-failed  { border-left-color: var(--danger); }
.job-main { min-width: 0; }
.job-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.job-tag {
  font-family: 'GeistM', monospace; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 3px; border: 1px solid var(--text-faint); color: var(--text-muted); white-space: nowrap;
}
.tone-change .job-tag { background: var(--ember-bright); border-color: var(--ember-bright); color: #14110E; }
.tone-done .job-tag   { background: var(--sage); border-color: var(--sage); color: #14110E; }
.tone-failed .job-tag { background: var(--danger); border-color: var(--danger); color: #14110E; }
.job-id { font-family: 'GeistM', monospace; font-size: 12px; color: var(--text-muted); }
.job-title { flex: 1 1 260px; min-width: 0; font-size: 14.5px; line-height: 1.35; color: var(--text); overflow-wrap: anywhere; }
.job-lines { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 7px 14px; margin: 9px 0 0; }
.job-lines dt { padding-top: 2px; font-family: 'GeistM', monospace; font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-muted); }
.job-lines dd { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--text); overflow-wrap: anywhere; }
.job-lines .was { color: var(--text-muted); }
.job-lines .now { color: var(--text); }
.job-lines .bad { color: var(--danger); }
.job-actions { display: flex; gap: 8px; }
@media (max-width: 640px) {
  .job-row { grid-template-columns: minmax(0, 1fr); }
  .job-lines { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .job-lines dt { margin-top: 6px; }
}
