/* Creators page (#/creators) — see creators.js. Everything is prefixed cr- so
   it cannot collide with the shell's .card/.btn/.chip. Colours are the shell's
   tokens; the six outreach states get one token each. */
.cr {
  --cr-todo: #8ea3b6;
  --cr-sent: var(--accent);
  --cr-followup: var(--down);
  --cr-replied: #f0c25a;
  --cr-yes: var(--up);
  --cr-no: #6f7f8e;
  display: flex; flex-direction: column; gap: var(--sp-4);
  max-width: 920px;
}
.cr > * { min-width: 0; }
.cr-panel { background: var(--surface-1); border: 1px solid var(--line-accent); border-radius: var(--r-lg); padding: var(--sp-4) var(--sp-5); box-shadow: var(--shadow-card), var(--etch); }
.cr-h2 { font-size: var(--fs-md); margin: 0 0 var(--sp-1); }
.cr-sub { margin: 0 0 var(--sp-2); font-size: var(--fs-sm); max-width: 72ch; }
.cr a { color: var(--accent); text-decoration: none; }
.cr a:hover { text-decoration: underline; }

/* Status colour, used on bar segments, legend dots, rank pills and chart dots */
.cr-s-sent { --c: var(--cr-sent); }
.cr-s-followup { --c: var(--cr-followup); }
.cr-s-replied { --c: var(--cr-replied); }
.cr-s-yes { --c: var(--cr-yes); }
.cr-s-next { --c: var(--accent); }
.cr-s-done { --c: var(--cr-yes); }
.cr-s-no { --c: var(--cr-no); }
.cr-s-todo { --c: var(--cr-todo); }

/* Progress */
.cr-progress { display: flex; flex-direction: column; gap: var(--sp-3); }
.cr-progress-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-3); flex-wrap: wrap; }
.cr-big { font-size: var(--fs-md); font-weight: 600; }
.cr-big b { font-variant-numeric: tabular-nums; }
.cr-sync { font-size: var(--fs-xs); color: var(--muted); }
.cr-bar { display: flex; height: 10px; border-radius: var(--r-pill); overflow: hidden; background: var(--track); gap: 2px; }
.cr-bar i { display: block; height: 100%; background: var(--c); }
.cr-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: var(--fs-sm); color: var(--muted); }
.cr-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cr-legend b { color: var(--ink); font-variant-numeric: tabular-nums; }
.cr-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: var(--c); }
.cr-dot.cr-s-todo { background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--cr-todo); }
.cr-qprog { font-size: var(--fs-sm); color: var(--muted); }
.cr-qprog b { color: var(--ink); font-variant-numeric: tabular-nums; }
.cr-link { font: inherit; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }

/* Next up */
.cr-next { border-color: var(--accent-line); display: flex; flex-direction: column; gap: var(--sp-2); }
.cr-kicker { display: flex; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.cr-kicker .cr-link { text-transform: none; letter-spacing: 0; font-weight: 500; }
.cr-next-name { margin: 0; font-size: var(--fs-lg); }

/* Matrix */
.cr-matrix { position: relative; }
.cr-chart-wrap { overflow-x: auto; }
.cr-chart { width: 100%; min-width: 340px; height: auto; display: block; }
.cr-chart text { fill: var(--muted); font-family: var(--font-sans); }
.cr-quad { fill: rgba(74, 222, 128, 0.07); }
.cr-axis { stroke: var(--chart-grid); stroke-width: 1; }
.cr-mid { stroke: var(--chart-guide); stroke-width: 1; stroke-dasharray: 4 4; opacity: 0.6; }
.cr-qname { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.cr-chart .cr-hot { fill: var(--up); }
.cr-pt { cursor: pointer; transition: opacity var(--t-fast); }
.cr-pt circle { fill: var(--c); stroke: var(--surface-1); stroke-width: 2; }
.cr-pt text { fill: var(--accent-ink); font-size: 9.5px; font-weight: 700; pointer-events: none; font-variant-numeric: tabular-nums; }
.cr-pt.cr-s-todo circle { fill: var(--surface-2); stroke: var(--cr-todo); stroke-width: 1.5; }
.cr-pt.cr-s-todo text { fill: var(--ink); }
.cr-pt:hover circle, .cr-pt:focus circle { stroke: var(--ink); }
.cr-pt:focus { outline: none; }
.cr-pt.cr-dim { opacity: 0.15; }
.cr-tip { position: absolute; pointer-events: none; background: var(--surface-float); color: var(--ink); border: 1px solid var(--line); font-size: var(--fs-xs); padding: 6px 9px; border-radius: var(--r-sm); max-width: 240px; line-height: 1.35; z-index: 3; box-shadow: var(--shadow-lift); }
.cr-details summary { cursor: pointer; font-weight: 600; font-size: var(--fs-sm); padding-block: var(--sp-2); }
.cr-details ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: var(--fs-sm); }
.cr-details li { margin-bottom: 6px; }

/* Toolbar */
.cr-toolbar { position: sticky; top: var(--topbar-h); z-index: 4; background: var(--bg); padding-block: var(--sp-2); display: flex; flex-direction: column; gap: var(--sp-2); border-bottom: 1px solid var(--line); }
.cr-toolbar > * { min-width: 0; }
.cr-search { font: inherit; width: 100%; padding: 9px 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); box-shadow: var(--recess); }
.cr-search:focus { outline: none; border-color: var(--accent); }
.cr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cr-chip { font: inherit; font-size: var(--fs-sm); padding: 5px 11px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); cursor: pointer; }
.cr-chip:hover { border-color: var(--accent-line); }
.cr-chip[aria-pressed="true"] { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.cr-count { font-size: var(--fs-xs); }

/* List */
.cr-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.cr-list > * { min-width: 0; }
.cr-qhead { display: flex; align-items: baseline; gap: 10px; margin: var(--sp-3) 0 0; font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.cr-qhead:first-child { margin-top: 0; }
.cr-qhead.cr-hot { color: var(--up); }
.cr-qhead span { letter-spacing: 0; font-variant-numeric: tabular-nums; }
.cr-card { background: var(--surface-1); border: 1px solid var(--line); border-left: 4px solid var(--cr-todo); border-radius: var(--r-md); padding: 14px 16px; display: flex; flex-direction: column; gap: var(--sp-2); }
.cr-card[data-s="sent"] { border-left-color: var(--cr-sent); }
.cr-card[data-s="replied"] { border-left-color: var(--cr-replied); }
.cr-card[data-s="yes"] { border-left-color: var(--cr-yes); }
.cr-card[data-s="no"] { border-left-color: var(--cr-no); opacity: 0.72; }
.cr-card.cr-flash { box-shadow: 0 0 0 3px var(--accent); transition: box-shadow var(--t-base); }
.cr-top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--sp-3); }
.cr-name { font-weight: 600; font-size: var(--fs-base); display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.cr-rank { font-size: var(--fs-xs); font-weight: 600; color: var(--accent-ink); background: var(--c); border-radius: var(--r-pill); padding: 1px 7px; font-variant-numeric: tabular-nums; }
.cr-rank.cr-s-todo { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--cr-todo); }
.cr-badge { font-size: var(--fs-2xs); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--up); background: rgba(74, 222, 128, 0.12); border-radius: var(--r-pill); padding: 2px 8px; }
.cr-badge.cr-cool { color: var(--muted); background: var(--surface-2); }
.cr-badge.cr-fu { color: #2b2206; background: var(--cr-replied); }
.cr-plats { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--fs-sm); }
.cr-n { color: var(--muted); margin-left: 4px; font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.cr-why { margin: 0; font-size: var(--fs-sm); color: var(--muted); max-width: 72ch; }
.cr-why strong { color: var(--ink); font-weight: 500; }
.cr-warn { margin: 0; font-size: var(--fs-xs); color: var(--down); }
.cr-scores { font-size: var(--fs-xs); color: var(--muted); }
.cr-scores summary { cursor: pointer; list-style: none; display: inline; }
.cr-scores summary::-webkit-details-marker { display: none; }
.cr-scores summary b { color: var(--ink); font-variant-numeric: tabular-nums; }
.cr-scores ul { margin: 6px 0 0; padding-left: 18px; }
.cr-status { font: inherit; font-size: var(--fs-sm); font-weight: 600; padding: 5px 8px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); cursor: pointer; flex-shrink: 0; }
.cr-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cr-btn { font: inherit; font-size: var(--fs-sm); padding: 5px 10px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); cursor: pointer; white-space: nowrap; text-decoration: none; }
.cr a.cr-btn { color: var(--ink); }
.cr-btn:hover { border-color: var(--accent); text-decoration: none; }
.cr-btn.cr-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.cr-btn.cr-primary:hover { background: var(--accent-hi); }
.cr-btn.cr-done { color: var(--accent); border-color: var(--accent); background: var(--accent-dim); }
.cr-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* Pitch composer */
.cr-compose { display: flex; flex-direction: column; gap: var(--sp-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4); box-shadow: var(--recess); }
.cr-compose-row { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.cr-compose-field { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: var(--sp-3); }
.cr-compose-label { font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.cr-input, .cr-textarea { font: inherit; font-size: var(--fs-sm); width: 100%; padding: 7px 10px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.cr-textarea { line-height: 1.5; resize: vertical; min-height: 120px; }
.cr-input:focus, .cr-textarea:focus { outline: none; border-color: var(--accent); }
.cr-textarea::selection { background: var(--accent-dim); }
.cr-compose-hint { margin: 0; font-size: var(--fs-xs); color: var(--muted); }
.cr-compose-check { margin: 0; font-size: var(--fs-xs); color: var(--cr-replied); }
.cr-compose-check.cr-ok { color: var(--up); }
/* Suggested openers + the on-demand code */
.cr-hooks { display: flex; flex-direction: column; gap: 6px; }
.cr-hooks-head { margin: 0; }
.cr-givens { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.cr-given { font: inherit; font-size: var(--fs-sm); text-align: left; line-height: 1.45; padding: 7px 11px; border-radius: var(--r-sm); border: 1px dashed var(--line-strong); background: var(--surface-3); color: var(--ink); cursor: pointer; max-width: 100%; }
.cr-given:hover { border-style: solid; border-color: var(--accent); background: var(--accent-dim); }
.cr-given.cr-given-used { opacity: 0.45; }
.cr-vids { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.cr-vid { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: var(--fs-sm); }
.cr-vid-link { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-strong); overflow-wrap: anywhere; }
.cr-vid-link:hover { color: var(--accent); border-bottom-color: var(--accent); }
.cr-vid-why { font-size: var(--fs-xs); color: var(--muted); padding: 1px 6px; border-radius: 999px; background: var(--sunken); white-space: nowrap; }
.cr-mint { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.cr-mint-out { font-size: var(--fs-xs); color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.cr-mint-code { font-family: var(--mono, ui-monospace, monospace); font-size: var(--fs-sm); color: var(--ink); background: var(--sunken); border-radius: var(--r-sm); padding: 3px 8px; user-select: all; }
.cr-mint-note { color: var(--muted); }
.cr-mint-err { color: var(--cr-replied); }

.cr-seg { display: inline-flex; background: var(--sunken); border-radius: var(--r-sm); padding: 3px; gap: 3px; }
.cr-seg-btn { font: inherit; font-size: var(--fs-sm); padding: 3px 12px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
.cr-seg-btn[aria-pressed="true"] { background: var(--surface-3); color: var(--ink); font-weight: 600; }

.cr-note { font: inherit; font-size: var(--fs-sm); flex: 1 1 200px; min-width: 0; padding: 5px 9px; border-radius: var(--r-sm); border: 1px dashed var(--line); background: transparent; color: var(--ink); }
.cr-note:focus { outline: none; border-style: solid; border-color: var(--accent); }
.cr-fallback { font-size: var(--fs-xs); white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface-2); border-radius: var(--r-sm); padding: 8px 10px; user-select: all; }
.cr-meta { font-size: var(--fs-xs); color: var(--muted); }
.cr-empty { text-align: center; padding: 30px 0; }

/* Finished creators: nothing left to pitch */

/* Undo toast */
.cr-toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); background: var(--surface-float); color: var(--ink); border: 1px solid var(--line-strong); padding: 10px 14px; border-radius: var(--r-md); font-size: var(--fs-sm); display: flex; gap: 14px; align-items: center; z-index: 50; max-width: calc(100% - 32px); box-shadow: var(--shadow-lift); }
.cr-toast button { font: inherit; font-weight: 600; color: var(--accent); background: none; border: 1px solid var(--accent-line); border-radius: var(--r-sm); padding: 3px 10px; cursor: pointer; }

@media (max-width: 640px) {
  .cr-panel { padding: var(--sp-3) var(--sp-4); }
  .cr-top { flex-direction: column; }
  .cr-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .cr-chips::-webkit-scrollbar { display: none; }
  .cr-chip { flex-shrink: 0; }
}

/* Add a creator */
.cr-count-row { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); }
.cr-add { display: flex; flex-direction: column; gap: var(--sp-2); border-color: var(--accent-line); }
.cr-add-form { display: flex; flex-direction: column; gap: var(--sp-3); }
.cr-add-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.cr-add-field { display: flex; flex-direction: column; gap: 4px; }
.cr-add-links { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.cr-add-link { display: grid; grid-template-columns: 1fr 160px; gap: var(--sp-2); width: 100%; }
.cr-add-set { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.cr-add-set legend { margin-bottom: 4px; }
.cr-add-opt { font-size: var(--fs-sm); display: flex; gap: 8px; align-items: center; cursor: pointer; }
.cr-add-opt input { accent-color: var(--accent); }
.cr-add-preview { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.cr-add-preview b { color: var(--ink); }
.cr-add-preview .cr-hot-text { color: var(--up); }
.cr-add-err { margin: 0; font-size: var(--fs-sm); color: var(--crit); }
.cr-remove { font-size: var(--fs-xs); align-self: flex-start; color: var(--muted); }
.cr-remove:hover { color: var(--crit); }
@media (max-width: 640px) {
  .cr-add-2, .cr-add-link { grid-template-columns: 1fr; }
}

/* ---- Compact layout (4 Oct 2026): less scrolling ---- */
.cr-topgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: var(--sp-4); align-items: start; }
.cr-topgrid > * { min-width: 0; }
.cr-next .cr-why { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cr-matrix { padding-block: var(--sp-2); }
.cr-matrix-sum { cursor: pointer; display: flex; align-items: baseline; gap: var(--sp-3); padding-block: var(--sp-2); list-style: none; }
.cr-matrix-sum::-webkit-details-marker { display: none; }
.cr-matrix-sum::before { content: '▸'; color: var(--muted); font-size: var(--fs-sm); transition: transform var(--t-fast); }
.cr-matrix[open] > .cr-matrix-sum::before { transform: rotate(90deg); }
.cr-matrix-sum .cr-h2 { margin: 0; }
.cr-matrix-hint { font-size: var(--fs-sm); }
.cr-list { gap: 6px; }
.cr-card { padding: 8px 12px; gap: 0; }
.cr-row { display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; min-height: 34px; }
.cr-row .cr-name { flex: 1 1 200px; min-width: 0; font-size: var(--fs-sm); }
.cr-namebtn { font: inherit; font-weight: 600; color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.cr-namebtn:hover { color: var(--accent); }
.cr-cplats { display: inline-flex; gap: 10px; font-size: var(--fs-xs); font-variant-numeric: tabular-nums; flex: 0 1 auto; }
.cr-mini { font-size: var(--fs-xs); color: var(--muted); font-variant-numeric: tabular-nums; min-width: 34px; text-align: center; }
.cr-row .cr-status { padding: 3px 6px; font-size: var(--fs-xs); }
.cr-row .cr-pitch-btn { padding: 3px 10px; font-size: var(--fs-xs); }
.cr-chev { font: inherit; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 2px 4px; transition: transform var(--t-fast); }
.cr-card.cr-open .cr-chev { transform: rotate(180deg); }
.cr-more { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-2); padding-top: var(--sp-2); border-top: 1px solid var(--line); }
.cr-more .cr-note { flex: none; width: 100%; }
.cr-mail-row .cr-input { font-size: var(--fs-sm); padding: 5px 9px; }
.cr-mail-bad { margin: 0; font-size: var(--fs-xs); color: var(--down); }
.cr-card > .cr-compose { margin-top: var(--sp-2); }
.cr-qhead { font: inherit; background: none; border: 0; padding: 4px 0; cursor: pointer; text-align: left; display: flex; align-items: baseline; gap: 8px; margin: var(--sp-2) 0 0; font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.cr-qhead:hover { color: var(--ink); }
.cr-qhead.cr-hot { color: var(--up); }
.cr-qchev { display: inline-block; transition: transform var(--t-fast); }
.cr-qhead.cr-folded .cr-qchev { transform: rotate(-90deg); }
.cr-qn { letter-spacing: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .cr-topgrid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cr-row .cr-name { flex: 1 1 calc(100% - 64px); }   /* rank + name on one line, the rest wraps under */
}

/* Rows as aligned columns on a wide screen: rank | name | platforms | scores | status | pitch | chevron.
   Pitch and chevron are pinned to their columns, so a row without a pitch button
   (said yes / no) or with the draft open keeps everything else in line. */
@media (min-width: 641px) {
  .cr-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) 210px 40px 128px 96px 24px; gap: 12px; }
  .cr-row .cr-cplats { justify-content: flex-end; overflow: hidden; white-space: nowrap; }
  .cr-row .cr-pitch-btn { grid-column: 6; }
  .cr-row .cr-chev { grid-column: 7; }
  .cr-row .cr-status { width: 100%; }
}
.cr-card { padding: 5px 12px; }
.cr-row { min-height: 32px; }
/* One bright button on the page (Next up); the list's are quieter until hovered. */
.cr-row .cr-pitch-btn { background: var(--surface-2); color: var(--accent); border-color: var(--accent-line); font-weight: 600; }
.cr-row .cr-pitch-btn:hover { background: var(--accent); color: var(--accent-ink); }
/* The row button changes with the next step. Colour = what it is about:
   blue Write pitch, orange Follow up (act now, as elsewhere in the admin),
   yellow Reply (filled: they replied, the one thing owed), grey Conversation. */
.cr-row .cr-pitch-btn.cr-fu-mode { color: var(--down); border-color: var(--down-line); }
.cr-row .cr-pitch-btn.cr-fu-mode:hover { background: var(--down); color: #2b1606; }
.cr-row .cr-pitch-btn.cr-reply-mode { background: var(--cr-replied); border-color: var(--cr-replied); color: #2b2206; }
.cr-row .cr-pitch-btn.cr-reply-mode:hover { filter: brightness(1.08); }
.cr-row .cr-pitch-btn.cr-convo-mode { color: var(--muted); border-color: var(--line); font-weight: 500; }
.cr-row .cr-pitch-btn.cr-convo-mode:hover { background: var(--surface-2); color: var(--ink); border-color: var(--muted); }
.cr-matrix { padding-block: 2px; }
.cr-matrix-sum { padding-block: 6px; }
.cr-matrix-sum .cr-h2 { font-size: var(--fs-base); }
.cr-row .cr-rank { justify-self: start; }

/* ======================================================================
   v3 (4 Oct 2026, design review): one list, hairline rows, slim head.
   Overrides the card-per-row styles above.
   ====================================================================== */
.cr { gap: var(--sp-3); }

/* Head: one panel, two lines */
.cr-head { padding: var(--sp-3) var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2); }
.cr-head-1 { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.cr-head-1 .cr-big { font-size: var(--fs-base); white-space: nowrap; }
.cr-big-sub { color: var(--muted); font-weight: 500; }
.cr-head-1 .cr-bar { flex: 1 1 160px; height: 6px; }
.cr-sync { font-size: var(--fs-xs); color: var(--up); min-width: 60px; text-align: right; }
.cr-head .cr-legend { font-size: var(--fs-xs); gap: 4px 14px; }
.cr-head-2 { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; padding-top: var(--sp-2); border-top: 1px solid var(--line); }
.cr-next { display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; min-width: 0; }
.cr-next-label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.cr-next-name { font: inherit; font-weight: 600; color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; }
.cr-next-name:hover { color: var(--accent); }
.cr-next .cr-cplats span { color: var(--muted); }
.cr-next .cr-btn.cr-primary { padding: 4px 12px; }
.cr-fu-btn { border-color: var(--down-line); color: var(--down); font-weight: 600; padding: 4px 12px; }
.cr-fu-btn:hover { background: var(--down); color: #2b1606; border-color: var(--down); }

/* The chart is a text link until opened */
.cr-matrix:not([open]) { background: none; border: 0; box-shadow: none; padding: 0; }
.cr-matrix-sum { padding-block: 2px; font-size: var(--fs-sm); color: var(--muted); }
.cr-matrix-sum:hover { color: var(--ink); }
.cr-matrix[open] { padding: var(--sp-2) var(--sp-4) var(--sp-4); }
.cr-matrix[open] .cr-matrix-sum { color: var(--ink); font-weight: 600; }

/* Toolbar: one row */
.cr-toolbar { gap: 6px; padding-block: var(--sp-2); border-bottom: 0; }
.cr-toolrow { display: flex; gap: var(--sp-2); align-items: center; }
.cr-toolrow .cr-search { flex: 1 1 200px; min-width: 0; padding: 7px 12px; }
.cr-filter { font: inherit; font-size: var(--fs-sm); padding: 7px 10px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); cursor: pointer; }
.cr-filter:focus { outline: none; border-color: var(--accent); }
.cr-add-btn { padding: 7px 12px; white-space: nowrap; }
.cr-count-row { justify-content: flex-start; gap: 10px; font-size: var(--fs-xs); }

/* One list, hairline rows */
.cr-list { gap: 0; background: var(--surface-1); border: 1px solid var(--line-accent); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.cr-card { border: 0; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; border-radius: 0; background: none; padding: 6px 14px 6px 11px; box-shadow: none; }
.cr-card[data-s="sent"] { border-left-color: var(--cr-sent); }
.cr-card[data-s="replied"] { border-left-color: var(--cr-replied); }
.cr-card[data-s="yes"] { border-left-color: var(--cr-yes); }
.cr-card[data-s="no"] { border-left-color: var(--cr-no); opacity: 0.6; }
.cr-card:hover { background: rgba(255, 255, 255, 0.025); }
.cr-card.cr-open { background: rgba(255, 255, 255, 0.04); }
.cr-card.cr-flash { box-shadow: inset 0 0 0 2px var(--accent); }
.cr-qhead { margin: 0; padding: 10px 14px; width: 100%; border-bottom: 1px solid var(--line); background: var(--surface-2); font-size: var(--fs-xs); }
.cr-qhead:first-child { margin: 0; }
.cr-more-first { font: inherit; font-size: var(--fs-sm); width: 100%; text-align: left; padding: 9px 14px; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--accent); cursor: pointer; }
.cr-more-first:hover { background: rgba(90, 200, 250, 0.06); }
.cr-empty { padding: 24px 0; }

/* Row: aligned areas on desktop, two lines on a phone */
.cr-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 200px 132px 104px 28px;
  grid-template-areas: "rank name plats status pitch chev"; gap: 10px; align-items: center; min-height: 32px; }
.cr-row .cr-rank { grid-area: rank; justify-self: start; }
.cr-row .cr-name { grid-area: name; }
.cr-row .cr-cplats { grid-area: plats; justify-content: flex-end; }
.cr-row .cr-status { grid-area: status; }
.cr-row .cr-pitch-btn { grid-area: pitch; justify-self: stretch; }
.cr-row .cr-chev { grid-area: chev; }
.cr-cplats a, .cr-cplats span { color: var(--muted); text-decoration: none; }
.cr-cplats a:hover { color: var(--accent); text-decoration: none; }
/* Status: quiet, but plainly a menu you can change */
.cr-row .cr-status { border-color: var(--line); background: transparent; font-weight: 500; color: var(--muted); padding: 3px 6px; }
.cr-row .cr-status:hover, .cr-row .cr-status:focus { border-color: var(--line); background: var(--surface-2); color: var(--ink); outline: none; }
.cr-card[data-s="sent"] .cr-status { color: var(--cr-sent); }
.cr-card[data-s="followup"] .cr-status { color: var(--cr-followup); }
.cr-card[data-s="replied"] .cr-status { color: var(--cr-replied); }
.cr-card[data-s="yes"] .cr-status { color: var(--cr-yes); }
.cr-chev { width: 28px; height: 28px; }
@media (max-width: 640px) {
  .cr-row { grid-template-columns: auto minmax(0, 1fr) auto auto 44px;
    grid-template-areas: "rank name name name chev" ". plats status pitch chev"; row-gap: 4px; }
  .cr-row .cr-name { flex: none; }
  .cr-row .cr-cplats { justify-content: flex-start; }
  .cr-chev { width: 44px; height: 44px; }
  .cr-toolrow { flex-wrap: wrap; }
  .cr-toolrow .cr-search { flex-basis: 100%; }
  .cr-toolrow .cr-filter { flex: 1 1 0; min-width: 0; }
}

/* Composer: shorter, live send button, confirm step */
.cr-card > .cr-compose { margin: var(--sp-2) 0 var(--sp-2); }
.cr-compose { padding: var(--sp-3); gap: 6px; }
.cr-compose .cr-btn.cr-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.cr-compose-check { color: var(--muted); }
.cr-compose-check.cr-nudge { color: var(--cr-replied); animation: cr-nudge 0.35s; }
@keyframes cr-nudge { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.cr-confirm { padding: 8px 10px; border-radius: var(--r-sm); background: var(--accent-dim); }
.cr-confirm-q { font-weight: 600; font-size: var(--fs-sm); margin-right: 6px; }

.cr-head .cr-next { flex-direction: row; border: 0; padding: 0; background: none; box-shadow: none; }
.cr-head .cr-link { font-size: var(--fs-sm); color: var(--muted); }
.cr-head .cr-link:hover { color: var(--ink); }
/* "How to pitch" is a text link until opened, like "Why this order" */
.cr-help:not([open]) { background: none; border: 0; box-shadow: none; padding: 0; }
.cr-help > summary { font-size: var(--fs-sm); color: var(--muted); font-weight: 500; padding-block: 2px; }
.cr-help[open] { padding: var(--sp-2) var(--sp-4) var(--sp-3); }
.cr-cplats a, .cr-cplats span { white-space: nowrap; }
@media (max-width: 640px) { .cr-row .cr-cplats { overflow: hidden; } }

/* Inbox link (4 Oct 2026) */
.cr-head-btns { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.cr-await-btn { text-decoration: none; padding: 4px 12px; }
.cr a.cr-await-btn, .cr a.cr-await-btn:hover { color: var(--accent-ink); text-decoration: none; }
.cr-convo { font-size: var(--fs-xs); color: var(--muted); text-decoration: none; white-space: nowrap; }
.cr-convo:hover { color: var(--accent); }
.cr-convo-owed { color: var(--accent); font-weight: 600; }
/* Inbox thread header chip (lives in app.js's Inbox, styled here) */
.creator-chip { display: inline-flex; margin-top: 6px; text-decoration: none; color: var(--accent); border: 1px solid var(--accent-line); background: var(--accent-dim); }
.creator-chip:hover { text-decoration: none; filter: brightness(1.1); }

/* Email next: the automatic creator emails (shared/creator-send.ts). */
.cr-queue { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; font-size: var(--fs-xs); color: var(--muted, inherit); white-space: nowrap; cursor: pointer; }
.cr-queue[hidden] { display: none; }
.cr-queue input { margin: 0; }
