/* ===========================================================================
   BASED OPS — components, in the STUDIO language.
   =========================================================================== */

/* ---------------------------------------------------------------------------
   ASK — the most important two letters in the product.
   --------------------------------------------------------------------------- */
.ask {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border: 1px solid rgba(240, 205, 51, 0.42);
  background: var(--st-new-w);
  color: var(--yellow);
  border-radius: var(--r-pill);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.askbadge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  font-size: 10px;
  font-weight: 700;
  color: var(--yellow);
  background: var(--st-new-w);
  border: 1px solid rgba(240, 205, 51, 0.4);
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.masked { font-size: 12.5px; color: var(--grey); letter-spacing: 0.04em; }

.age { font-size: 11.5px; font-weight: 500; color: var(--tan-dim); white-space: nowrap; }
.age.warn { color: var(--yellow); }
.age.hot  { color: var(--coral); }

/* ---------------------------------------------------------------------------
   INLINE NOTICES
   --------------------------------------------------------------------------- */
.warnline {
  border: 1px solid rgba(240, 205, 51, 0.28);
  background: var(--st-new-w);
  border-radius: var(--r);
  padding: 11px 14px;
  font-size: 12.5px;
  color: #E8DCB8;
  line-height: 1.55;
}
.warnline b { color: #fff; font-weight: 700; }
.warnline.hot { border-color: rgba(255, 95, 126, 0.32); background: var(--st-hot-w); color: #FFD5DD; }
.warnline.tight { padding: 8px 11px; font-size: 12px; margin-top: 6px; }

.previewline { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; padding: 8px 0; }

.quote {
  margin: 0;
  border-left: 3px solid rgba(74, 74, 82, 0.7);
  padding: 2px 0 2px 13px;
  color: #D6D6DC;
  font-size: 13.5px;
  line-height: 1.6;
}
.quote.sm { font-size: 13px; margin: 9px 0; }

/* ---------------------------------------------------------------------------
   FORM PIECES
   --------------------------------------------------------------------------- */
.input.sm { padding: 6px 11px; font-size: 13px; width: auto; min-width: 220px; }

.checkline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  font-size: 13px;
  color: #C9C9D1;
  cursor: pointer;
  line-height: 1.5;
}
.checkline input { margin-top: 2px; accent-color: var(--gold); flex: none; width: 15px; height: 15px; }
.checkline:hover { color: var(--ink); }
.checkline.attest {
  border: 1px solid var(--gold-edge);
  background: var(--gold-wash);
  border-radius: var(--r);
  padding: 13px 14px;
  color: var(--ink);
  font-weight: 500;
}
.checklist { display: flex; flex-direction: column; gap: 2px; }

.typegrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.typecard {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--tan);
  text-align: left;
  cursor: pointer;
  transition: border-color 130ms ease, background-color 130ms ease, color 130ms ease;
}
.typecard:hover { border-color: rgba(255, 255, 255, 0.24); color: var(--ink); }
.typecard[aria-pressed="true"] { background: var(--gold-wash); border-color: var(--gold-edge); color: var(--ink); }
.tc-label { font-size: 12.5px; font-weight: 600; line-height: 1.3; }

/* Flag payload fields */
.fields { display: flex; flex-direction: column; gap: 15px; }
.fields.tight { gap: 11px; margin: 10px 0; }
.ffield { display: flex; flex-direction: column; gap: 6px; }
.frow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.frow .label { flex: 1 1 auto; min-width: 0; margin: 0; }
.req { color: var(--coral); font-weight: 700; font-size: 9.5px; letter-spacing: 0.1em; white-space: nowrap; }
.ffield.missing .input,
.ffield.missing .select { border-color: var(--coral); }
.ffield.asked .input,
.ffield.asked .select { border-color: rgba(240, 205, 51, 0.55); border-style: dashed; }

.askbtn { height: 24px; padding: 0 9px; font-size: 10px; font-weight: 800; letter-spacing: 0.08em; border-radius: var(--r-pill); }
.askbtn.on { background: var(--st-new-w); border-color: rgba(240, 205, 51, 0.45); color: var(--yellow); }
.suggest { height: 24px; padding: 0 10px; font-size: 11px; border-radius: var(--r-pill); max-width: 100%; white-space: normal; }
.fields.tight .suggest { order: 3; flex: 1 0 100%; }

.fixedval {
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--line);
  border-radius: var(--r);
  color: var(--grey);
  font-size: 13.5px;
}
.mirrorchip {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--blue-lt);
  background: var(--st-work-w);
  border: 1px solid rgba(143, 171, 255, 0.3);
  border-radius: var(--r-pill);
  padding: 4px 10px;
  align-self: flex-start;
}

.segmented { display: inline-flex; gap: 4px; padding: 3px; background: rgba(255, 255, 255, 0.05); border-radius: var(--r-pill); }
.segmented button {
  height: 28px; padding: 0 14px;
  background: none; border: 0; border-radius: var(--r-pill);
  color: var(--tan); font-size: 12px; font-weight: 600; cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}
.segmented button:hover { color: var(--ink); }
.segmented button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.12); color: var(--ink); }

/* ---------------------------------------------------------------------------
   FLAG ROW (Today) — the queue preview
   --------------------------------------------------------------------------- */
.flagrow {
  display: grid;
  grid-template-columns: 3px minmax(0, 1fr) auto;
  gap: 0 14px;
  align-items: start;
  width: 100%;
  padding: 14px 18px;
  background: none;
  border: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 100ms ease;
}
.flagrow + .flagrow { border-top: 1px solid rgba(74, 74, 82, 0.22); }
.flagrow:hover { background: rgba(255, 255, 255, 0.03); }
.tickbar { align-self: stretch; min-height: 34px; border-radius: 999px; background: var(--yellow); }
.tickbar.hot { background: var(--coral); }
.fr-main { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.fr-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fr-handle { font-size: 12.5px; font-weight: 600; color: var(--tan); }
.fr-quote {
  color: #C9C9D1;
  font-size: 13px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fr-route { font-size: 10.5px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--tan-dim); }
.fr-age { padding-top: 2px; }

/* ---------------------------------------------------------------------------
   ACTIVITY
   --------------------------------------------------------------------------- */
.actrow {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 11px 16px;
  font-size: 12.5px;
}
.actrow + .actrow { border-top: 1px solid rgba(74, 74, 82, 0.18); }
.actrow .who {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--raised);
  color: var(--gold-soft);
  font-size: 9.5px; font-weight: 800;
}
.actrow .what { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--grey); }
.actrow .what b { color: var(--ink); font-weight: 600; }
.actrow .when { font-size: 11px; color: var(--tan-dim); white-space: nowrap; }

/* ---------------------------------------------------------------------------
   CALLS side panels
   --------------------------------------------------------------------------- */
.confrow { display: flex; align-items: center; gap: 12px; padding: 13px 18px; }
.confrow + .confrow { border-top: 1px solid rgba(74, 74, 82, 0.22); }
.confrow > div:first-child { min-width: 0; }
.confrow .btn { margin-left: auto; }
.confrow .btn + .btn { margin-left: 0; }
.canceledrow .ag-bar { align-self: stretch; min-height: 34px; width: 3px; border-radius: 999px; background: var(--k, var(--grey)); }
.confrow .t { font-size: 13.5px; font-weight: 600; }

.legend { display: flex; flex-direction: column; gap: 8px; }

.screenshot-extract {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid rgba(224, 180, 65, .42);
  border-radius: var(--r);
  background: rgba(224, 180, 65, .07);
}
.screenshot-extract .btn { flex: 0 0 auto; box-shadow: 0 5px 16px rgba(0, 0, 0, .24); }
.screenshot-extract .faint {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lg-item { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: #C9C9D1; }
.lg-item .pip { height: 10px; width: 10px; border-radius: 50%; flex: none; }
.lg-item .faint { margin-left: auto; font-size: 11px; }

.cpblock {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.cpblock .h { font-size: 14px; font-weight: 700; }

.deflist { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 8px 0 0; font-size: 13.5px; }
.deflist dt { font-size: 10px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--tan); padding-top: 3px; }
.deflist dd { margin: 0; font-weight: 500; }
.deflist.wide { grid-template-columns: 118px 1fr; }

.linkrow {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: #C9C9D1;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: background 110ms ease;
}
.linkrow + .linkrow { margin-top: 6px; }
.linkrow:hover { background: rgba(255, 255, 255, 0.07); color: var(--ink); }
.linkrow .label { margin-left: auto; }

/* ---------------------------------------------------------------------------
   NOTES
   --------------------------------------------------------------------------- */
.listhead {
  padding: 12px 18px 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tan);
}
.listhead.hot { color: var(--coral); }

.notebody { padding: 18px 20px; font-size: 15px; line-height: 1.8; flex: 1; }
.nl { padding-left: 14px; border-left: 3px solid transparent; }
.nl.l-quote { border-left-color: var(--blue-lt); color: var(--ink); }
.nl.l-ask   { border-left-color: var(--yellow);  color: var(--yellow); }
.nl.l-risk  { border-left-color: var(--coral);   color: #FFB3C0; }
.nl.l-todo  { border-left-color: var(--green);   color: #A9E3C6; }

.notesect { border-top: 1px solid var(--line); padding: 16px 20px; display: flex; flex-direction: column; gap: 6px; }

/* ---------------------------------------------------------------------------
   FLAGS — lanes
   --------------------------------------------------------------------------- */
.gatedstrip {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  padding: 13px 16px;
  border: 1px solid rgba(255, 95, 126, 0.3);
  background: var(--st-hot-w);
  border-radius: var(--r-card);
  margin-bottom: 18px;
}
.gchip {
  height: 30px; padding: 0 13px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 95, 126, 0.35);
  border-radius: var(--r-pill);
  color: var(--ink);
  font-size: 12px; font-weight: 600;
  cursor: pointer;
}
.gchip:hover { background: rgba(255, 255, 255, 0.14); }

.lanes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: start; }
.lane { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); min-width: 0; }
.lane-head { display: flex; align-items: center; padding: 14px 16px 10px; }
.lane-head .label { font-weight: 700; letter-spacing: 0.13em; }
.lane-n {
  margin-left: auto;
  min-width: 22px; height: 20px; padding: 0 7px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink); font-size: 11px; font-weight: 700;
}
.lane-body { padding: 4px 10px 12px; display: flex; flex-direction: column; gap: 10px; min-height: 60px; }
.lane-empty { padding: 18px 6px; text-align: center; color: var(--tan-dim); font-size: 12px; }

.fcard {
  display: block;
  width: 100%;
  text-align: left;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-left: 3px solid var(--yellow);
  border-radius: var(--r);
  color: inherit;
  cursor: pointer;
  transition: background 130ms ease, border-color 130ms ease;
}
.fcard:hover { background: rgba(255, 255, 255, 0.08); }
.fcard.urgent { border-left-color: var(--coral); }
.fc-top { display: flex; gap: 6px; flex-wrap: wrap; }
.fc-handle { font-size: 12.5px; font-weight: 700; color: var(--tan); margin-top: 8px; }
.fc-foot { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fc-route { margin-top: 9px; font-size: 9.5px; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; color: var(--tan-dim); }

/* ---------------------------------------------------------------------------
   NUMBERS
   --------------------------------------------------------------------------- */
.rowacts { display: flex; gap: 6px; justify-content: flex-end; }
.tbl tbody tr.blocked { opacity: 0.45; }
.issue-note { font-size: 12px; color: var(--yellow); display: flex; align-items: center; gap: 7px; margin-top: 4px; }

.statuspop {
  position: fixed;
  z-index: 300;
  min-width: 208px;
  background: #16171B;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: riseIn 130ms ease-out both;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}
.statuspop button {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  height: 32px; padding: 0 10px;
  background: none; border: 0; border-radius: var(--r);
  color: #C9C9D1;
  font-size: 13px; font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.statuspop button:hover:not([disabled]) { background: rgba(255, 255, 255, 0.08); color: var(--ink); }
.statuspop button[disabled] { opacity: 0.3; cursor: not-allowed; }
.dotk { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.dotk.s-new  { background: var(--yellow); }
.dotk.s-work { background: var(--blue-lt); }
.dotk.s-good { background: var(--green); }
.dotk.s-dead { background: var(--grey); }
.dotk.s-hot  { background: var(--coral); }

/* ---------------------------------------------------------------------------
   OUTREACH
   --------------------------------------------------------------------------- */
.modepill {
  height: 26px; padding: 0 12px;
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--tan);
  background: rgba(255, 255, 255, 0.04);
}

.pitchopt {
  display: block;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 130ms ease, background-color 130ms ease;
}
.pitchopt:hover { border-color: var(--gold-edge); background: rgba(255, 255, 255, .02); }
.pitchopt.on { border-color: var(--gold-edge); background: var(--gold-wash); }
.pitchopt input { display: none; }
.po-label { display: block; margin-bottom: 6px; font-weight: 700; }
.pitchopt.on .po-label { color: var(--gold); }
.po-text { font-size: 12.5px; color: var(--grey); line-height: 1.55; display: block; }

/* ═══════════════════════════════════════════════════════════════════════════
   CALL MODE
   ═══════════════════════════════════════════════════════════════════════════ */
body.modal-open { overflow: hidden; }

.callmode {
  position: fixed; inset: 0; z-index: 400;
  background: var(--ground);
  display: grid;
  grid-template-rows: 62px minmax(0, 1fr) 60px;
  animation: fadeIn 140ms ease-out both;
}

.cm-top {
  display: flex; align-items: center; gap: 13px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line-hard);
  background: rgba(12, 12, 14, 0.6);
  backdrop-filter: blur(14px);
}
.cm-title { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.cm-timer { color: var(--tan); font-size: 13px; font-weight: 600; }
.savedot {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--green);
}
.savedot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.savedot.busy { color: var(--yellow); }

.cm-body { display: grid; grid-template-columns: 268px minmax(0, 1fr) 256px; min-height: 0; }

.cm-ctx, .cm-flags {
  overflow: auto;
  padding: 18px;
  display: flex; flex-direction: column; gap: 18px;
  min-height: 0;
}
.cm-ctx { border-right: 1px solid var(--line-hard); }
.cm-flags { border-left: 1px solid var(--line-hard); }

.cm-block { display: flex; flex-direction: column; gap: 4px; }
.cm-handle { font-size: 17px; font-weight: 700; }
.cm-sub { font-size: 12.5px; color: var(--grey); line-height: 1.55; }
.cm-raw { font-size: 12px; color: var(--tan); margin-top: 9px; line-height: 1.55; font-style: italic; }
.cm-warn {
  border: 1px solid rgba(240, 205, 51, 0.28);
  background: var(--st-new-w);
  border-radius: var(--r);
  padding: 11px 13px;
  font-size: 12.5px;
  line-height: 1.55;
  color: #E8DCB8;
}
.cm-warn.hot { border-color: rgba(255, 95, 126, 0.32); background: var(--st-hot-w); color: #FFD5DD; }
.cm-warn b { color: #fff; }

/* --- the editor ---------------------------------------------------------- */
.cm-note { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.cm-editor { position: relative; flex: 1; min-height: 0; }

/* Overlay and textarea MUST share every metric or the colours drift off the
   text. Change one, change both. */
.cm-gutter,
.cm-pad {
  position: absolute; inset: 0;
  margin: 0;
  padding: 26px 30px;
  font-family: var(--f-ui);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
  border: 0;
  background: none;
}
.cm-gutter { overflow: hidden; pointer-events: none; color: var(--ink); }
.cm-gutter .gl { border-left: 3px solid transparent; padding-left: 13px; margin-left: -16px; }
.cm-gutter .g-work { border-left-color: var(--blue-lt); color: var(--ink); }
.cm-gutter .g-new  { border-left-color: var(--yellow);  color: var(--yellow); }
.cm-gutter .g-hot  { border-left-color: var(--coral);   color: #FFB3C0; }
.cm-gutter .g-good { border-left-color: var(--green);   color: #A9E3C6; }

.cm-pad { resize: none; outline: none; color: transparent; caret-color: var(--gold); overflow: auto; }
.cm-pad::placeholder { color: rgba(198, 174, 123, 0.45); }
.cm-pad::selection { background: rgba(205, 165, 58, 0.35); }

.cm-legend {
  display: flex; gap: 18px; flex-wrap: wrap;
  padding: 11px 30px;
  border-top: 1px solid var(--line-hard);
  font-size: 12px;
  color: var(--tan);
}
.cm-legend .lg { display: flex; align-items: center; gap: 7px; }
.cm-legend .lg b { font-size: 13px; font-weight: 800; }
.cm-legend .lg-work b { color: var(--blue-lt); }
.cm-legend .lg-new  b { color: var(--yellow); }
.cm-legend .lg-hot  b { color: var(--coral); }
.cm-legend .lg-good b { color: var(--green); }

.cm-terms { border-top: 1px solid var(--line-hard); padding: 16px 30px 18px; }
.termgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; margin-top: 11px; }
.tg { display: flex; flex-direction: column; gap: 6px; }

/* --- flag rail ------------------------------------------------------------ */
.flaglist { display: flex; flex-direction: column; gap: 3px; margin-top: 8px; }
.flagpick {
  display: flex; align-items: center; gap: 11px;
  width: 100%;
  height: 32px; padding: 0 9px;
  background: none; border: 0; border-radius: var(--r);
  color: #C9C9D1;
  font-size: 12.5px; font-weight: 500;
  text-align: left; cursor: pointer;
  transition: background 110ms ease;
}
.flagpick:hover { background: rgba(255, 255, 255, 0.07); color: var(--ink); }
.flagpick kbd {
  font-family: var(--f-mono);
  font-size: 10px;
  min-width: 20px; height: 20px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--tan);
  flex: none;
}
.flagpick.more { color: var(--tan-dim); }
.palette { display: flex; flex-direction: column; gap: 3px; border-top: 1px solid var(--line); margin-top: 7px; padding-top: 7px; }

.attached { display: flex; flex-direction: column; gap: 11px; margin-top: 8px; }
.cm-none { font-size: 12.5px; color: var(--tan-dim); padding: 10px 0; }
.acard {
  border: 1px solid var(--line);
  border-left: 3px solid var(--coral);
  border-radius: var(--r);
  padding: 12px 13px;
  background: rgba(255, 255, 255, 0.035);
}
.acard .route { margin-top: 9px; font-size: 9.5px; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; color: var(--tan-dim); }

.cm-foot {
  display: flex; align-items: center; gap: 12px;
  padding: 0 18px;
  border-top: 1px solid var(--line-hard);
}
.cm-foot .label { text-transform: none; letter-spacing: 0; font-size: 12px; }

/* ---------------------------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------------------------- */
@media (max-width: 1280px) {
  .lanes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cm-body { grid-template-columns: 226px minmax(0, 1fr) 226px; }
}
@media (max-width: 1100px) {
  .view .grid[style] { grid-template-columns: minmax(0, 1fr) !important; }
  .typegrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .termgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cm-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; }
  .cm-ctx { border-right: 0; border-bottom: 1px solid var(--line-hard); max-height: 160px; }
  .cm-flags { border-left: 0; border-top: 1px solid var(--line-hard); max-height: 230px; }
  .cm-editor { min-height: 280px; }
}
@media (max-width: 720px) {
  .lanes { grid-template-columns: minmax(0, 1fr); }
  .typegrid { grid-template-columns: minmax(0, 1fr); }
  .score { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Call Mode — end-of-call routing */
.wrapup { display: flex; flex-direction: column; gap: 6px; }
.wrapopt { display: flex; align-items: flex-start; gap: 9px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; transition: border-color 120ms ease, background 120ms ease; }
.wrapopt:hover { border-color: rgba(255, 255, 255, 0.22); }
.wrapopt:has(input:checked) { border-color: var(--gold-edge); background: var(--gold-wash); }
.wrapopt input { margin-top: 2px; accent-color: var(--gold); }
.wrapopt span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.wrapopt b { font-size: 12.5px; font-weight: 700; }
.wrapopt small { font-size: 11px; color: var(--tan); }
.wrapfu { display: flex; flex-direction: column; gap: 6px; padding: 8px 0 2px; }
.wrapfu[hidden] { display: none; }

/* ---------------------------------------------------------------------------
   Handle cell — the @ plus a link out to the public TikTok profile. The link
   sits beside the editable input rather than wrapping it, so the field stays
   editable and the link stays clickable.
   --------------------------------------------------------------------------- */
.handle-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.handle-cell .input { min-width: 0; flex: 1 1 auto; }

.tt-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--grey);
  text-decoration: none;
  white-space: nowrap;
  transition: color .12s, border-color .12s, background .12s;
}
.tt-link:hover,
.tt-link:focus-visible {
  color: var(--gold-soft);
  border-color: var(--gold-edge);
  background: var(--gold-wash);
}
.tt-link .chev {
  transform: rotate(-45deg);
  opacity: .7;
}

/* The @ on an Outreach card is the link to the public profile. */
.handle-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .12s, border-color .12s;
}
.handle-link:hover,
.handle-link:focus-visible {
  color: var(--gold-soft);
  border-bottom-color: var(--gold-edge);
}
