/* ============================================================================
   DEAL TEAM MEETING — STYLESHEET
   ----------------------------------------------------------------------------
   Harbor Tasks' dark mode, sized for a TV across the room. Same brand fonts,
   same tokens (copied from harbor-tasks src/index.css, dark block). Dark only:
   the site lives on the big screen.

   Sizes use clamp(min, vw, max) so the same page reads on Chad's laptop and on
   a 1080p TV without a separate layout.
   ========================================================================= */

@font-face { font-family: 'Lanterne'; src: url('fonts/Lanterne-Light.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Lanterne'; src: url('fonts/Lanterne-LightItalic.woff2') format('woff2'); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: 'Booton'; src: url('fonts/Booton-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Booton'; src: url('fonts/Booton-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Booton'; src: url('fonts/Booton-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'PP Model Mono'; src: url('fonts/PPModelMono-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  color-scheme: dark;
  --slate-primary: #0E0E0E;
  --peach: #FFBD60;
  --peach-pressed: #FFB03F;
  --bone: #FBF8F3;

  --canvas: #2A2929;
  --surface: #333231;
  --wash: #232222;
  --ink: var(--bone);
  --ink-muted: #B4B1B1;
  --ink-faint: #8A8888;
  --rule: #454343;
  --action: var(--peach);
  --action-ink: #1F1E1E;
  --overdue: #F27A6E;
  --tangent: #C62F22;

  --font-display: 'Lanterne', Georgia, serif;
  --font-body: 'Booton', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'PP Model Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --gutter: clamp(16px, 3.2vw, 64px);
  --fs-eyebrow: clamp(12px, 0.85vw, 17px);
  --fs-body: clamp(17px, 1.35vw, 28px);
  --fs-big: clamp(22px, 2.1vw, 44px);
  --fs-title: clamp(34px, 4vw, 84px);
  --fs-hero: clamp(48px, 6.4vw, 132px);
  --fast: 120ms cubic-bezier(0.2, 0, 0.2, 1);
  --base: 220ms cubic-bezier(0.2, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  background: var(--canvas); color: var(--ink);
  font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.35;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--peach); outline-offset: 3px; }
#app { min-height: 100vh; min-height: 100dvh; }

.eyebrow {
  font-family: var(--font-mono); font-size: var(--fs-eyebrow);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted);
}
.display { font-family: var(--font-display); font-weight: 300; letter-spacing: -0.01em; line-height: 1.05; margin: 0; }
.muted { color: var(--ink-muted); }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.55em 1.4em; border: 1px solid var(--rule);
  background: var(--surface); border-radius: 0;
  font-family: var(--font-mono); font-size: var(--fs-eyebrow);
  letter-spacing: 0.12em; text-transform: uppercase;
  transition: background var(--fast), border-color var(--fast), color var(--fast);
}
.btn:hover { border-color: var(--ink-muted); }
.btn--primary { background: var(--action); border-color: var(--action); color: var(--action-ink); }
.btn--primary:hover { background: var(--peach-pressed); border-color: var(--peach-pressed); }
.btn--big { font-size: clamp(14px, 1.1vw, 22px); padding: 0.9em 2.4em; min-height: 64px; }
.btn--ghost { background: transparent; }
.btn:disabled { opacity: 0.4; cursor: default; }
.linkbtn {
  background: none; border: 0; padding: 0.3em 0; color: var(--ink-muted);
  font-family: var(--font-mono); font-size: var(--fs-eyebrow); letter-spacing: 0.12em; text-transform: uppercase;
  border-bottom: 1px solid transparent;
}
.linkbtn:hover { color: var(--ink); border-bottom-color: var(--ink-muted); }

/* ---- Gate (sign-in) & Welcome ----------------------------------------- */
.center-screen {
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: var(--gutter); gap: clamp(20px, 2.4vw, 48px);
}
.gate { background: var(--slate-primary); }
.mark { width: clamp(72px, 7vw, 140px); height: auto; display: block; }
.wordmark { width: clamp(220px, 26vw, 520px); height: auto; display: block; opacity: 0.92; }
.welcome__title { font-size: var(--fs-hero); }
.welcome__date { font-family: var(--font-mono); font-size: var(--fs-eyebrow); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted); }
.welcome__links { display: flex; gap: 28px; margin-top: 8px; }
.error-note { color: var(--overdue); font-size: var(--fs-eyebrow); font-family: var(--font-mono); max-width: 40ch; }

/* ---- Meeting frame ------------------------------------------------------ */
.frame { height: 100vh; height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.topbar {
  display: flex; align-items: center; gap: 20px;
  padding: clamp(14px, 1.6vw, 28px) var(--gutter);
  border-bottom: 1px solid var(--rule); background: var(--wash);
}
.topbar .mark { width: clamp(32px, 2.4vw, 48px); }
.topbar__title { flex: 1; display: flex; align-items: baseline; gap: 18px; min-width: 0; }
.topbar__name { font-family: var(--font-display); font-weight: 300; font-size: clamp(26px, 2.8vw, 58px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.timer {
  font-family: var(--font-mono); font-size: clamp(28px, 3.2vw, 68px);
  letter-spacing: 0.04em; font-variant-numeric: tabular-nums; line-height: 1;
  padding: 0.12em 0.4em; border: 1px solid var(--rule);
}
.timer--over { color: #fff; background: var(--tangent); border-color: var(--tangent); }
.stage { padding: clamp(20px, 2.6vw, 56px) var(--gutter); min-height: 0; overflow: auto; position: relative; }
.footer {
  display: flex; align-items: center; justify-content: flex-end; gap: 14px;
  padding: clamp(12px, 1.2vw, 22px) var(--gutter); border-top: 1px solid var(--rule);
}
.footer__progress { margin-right: auto; display: flex; gap: 6px; margin-left: clamp(8px, 1.4vw, 28px); }
.footer__dot { width: clamp(18px, 2vw, 40px); height: 3px; background: var(--rule); }
.footer__dot--done { background: var(--ink-faint); }
.footer__dot--here { background: var(--peach); }

.section-head { margin-bottom: clamp(18px, 2vw, 40px); }
.section-head h1 { font-size: var(--fs-title); }
.prompt { font-family: var(--font-display); font-weight: 300; font-size: var(--fs-title); max-width: 22ch; margin: 0; }

/* ---- Avatars ------------------------------------------------------------ */
.avatar {
  --size: 64px;
  width: var(--size); height: var(--size); border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
  background: #4A4846; color: var(--bone);
  font-family: var(--font-display); font-size: calc(var(--size) * 0.42);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- Attendance --------------------------------------------------------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(clamp(150px, 19vw, 360px), 1fr)); gap: clamp(12px, 1.4vw, 28px); }
.tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: clamp(14px, min(2vw, 3.4vh), 40px) 12px; background: var(--surface); border: 2px solid var(--rule);
  transition: border-color var(--fast), background var(--fast), opacity var(--fast);
  opacity: 0.55; position: relative;
}
.tile .avatar { --size: clamp(64px, min(7vw, 12vh), 150px); filter: grayscale(1); transition: filter var(--fast); }
.tile__name { font-family: var(--font-display); font-weight: 300; font-size: var(--fs-big); }
.tile__state { font-family: var(--font-mono); font-size: var(--fs-eyebrow); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }
.tile--here { opacity: 1; border-color: var(--peach); background: rgba(255, 189, 96, 0.08); }
.tile--here .avatar { filter: none; }
.tile--here .tile__state { color: var(--peach); }
.count-line { margin-top: clamp(16px, 1.8vw, 36px); }

/* ---- Updates ------------------------------------------------------------ */
.spotlight { display: flex; flex-direction: column; align-items: center; text-align: center; gap: clamp(14px, 1.6vw, 32px); padding-top: clamp(8px, 1.5vw, 32px); }
.spotlight .avatar { --size: clamp(120px, min(17vw, 34vh), 360px); border: 3px solid var(--peach); }
.spotlight__name { font-size: var(--fs-hero); }
.spotlight__prompt { font-family: var(--font-mono); font-size: var(--fs-eyebrow); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted); }
.spotlight__prompt b { color: var(--peach); font-weight: 400; }
.queue { display: flex; gap: clamp(10px, 1vw, 20px); justify-content: center; margin-top: clamp(16px, 2vw, 40px); flex-wrap: wrap; }
.queue .avatar { --size: clamp(40px, 3.4vw, 72px); opacity: 0.45; position: relative; }
.queue .avatar--now { opacity: 1; outline: 2px solid var(--peach); outline-offset: 3px; }
.queue .avatar--done { opacity: 0.25; filter: grayscale(1); }
.spotlight-anim { animation: slidein 360ms cubic-bezier(0.2, 0, 0.2, 1); }
@keyframes slidein { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }

/* ---- Lists (headlines, issues) ----------------------------------------- */
.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); max-width: 1500px; }
.list li {
  display: flex; align-items: center; gap: clamp(12px, 1.2vw, 24px);
  padding: clamp(12px, 1.1vw, 22px) 4px; border-bottom: 1px solid var(--rule);
  font-size: var(--fs-big); line-height: 1.2; background: var(--canvas);
}
.list .num { font-family: var(--font-mono); font-size: var(--fs-eyebrow); color: var(--ink-faint); width: 2.6em; flex: none; }
.list .text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.list .x { background: none; border: 0; color: var(--ink-faint); font-size: 22px; padding: 4px 10px; }
.list .x:hover { color: var(--overdue); }
.empty { color: var(--ink-faint); font-family: var(--font-mono); font-size: var(--fs-eyebrow); letter-spacing: 0.12em; text-transform: uppercase; padding: 22px 4px; }
.addrow { display: flex; gap: 12px; margin-top: clamp(14px, 1.4vw, 28px); max-width: 1500px; }
.input {
  flex: 1; min-width: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: 0;
  padding: 0.55em 0.8em; font-size: var(--fs-body); min-height: 52px;
}
.input:focus { outline: none; border-color: var(--peach); }
.input::placeholder { color: var(--ink-faint); }

.check {
  width: clamp(28px, 2vw, 40px); height: clamp(28px, 2vw, 40px); flex: none; border: 2px solid var(--ink-faint);
  background: transparent; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
.check:hover { border-color: var(--peach); }
.check svg { opacity: 0; width: 60%; height: 60%; }
.check:hover svg { opacity: 0.6; }
.list li.solving .check { background: var(--peach); border-color: var(--peach); }
.list li.solving .check svg { opacity: 1; }
.list li.solving { opacity: 0; transform: translateX(30px); transition: opacity 380ms ease 180ms, transform 380ms ease 180ms; }
.handle { cursor: grab; touch-action: none; color: var(--ink-faint); padding: 6px; flex: none; display: inline-flex; }
.handle:hover { color: var(--ink); }
.list li.dragging { background: var(--surface); box-shadow: 0 8px 24px rgba(0,0,0,0.35); position: relative; z-index: 2; }
.tag { font-family: var(--font-mono); font-size: clamp(10px, 0.7vw, 14px); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); border: 1px solid var(--rule); padding: 2px 8px; flex: none; }

/* ---- Data review -------------------------------------------------------- */
.data-head { display: flex; align-items: center; gap: 20px; margin-bottom: clamp(10px, 1.2vw, 24px); flex-wrap: wrap; }
.grow { flex: 1; }
.data-head h1 { font-size: var(--fs-title); flex: 1; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1vw, 20px); }
.card { background: var(--surface); border: 1px solid var(--rule); padding: clamp(14px, 1.3vw, 28px); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.card__label { font-family: var(--font-mono); font-size: var(--fs-eyebrow); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.card__num { font-family: var(--font-display); font-weight: 300; font-size: clamp(44px, min(5.4vw, 9vh), 120px); line-height: 1; }
.card__since { font-family: var(--font-mono); font-size: var(--fs-eyebrow); color: var(--ink-faint); letter-spacing: 0.08em; }
.card__chart { margin-top: 10px; position: relative; }
.card--wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(180px, 0.6fr) 2fr; gap: clamp(16px, 2vw, 48px); align-items: center; }
.stagebars { display: flex; flex-direction: column; gap: 10px; }
.stagebar { display: grid; grid-template-columns: minmax(120px, 12em) 1fr 3em; align-items: center; gap: 14px; font-size: var(--fs-body); }
.stagebar__track { height: clamp(14px, 1.2vw, 24px); background: var(--wash); }
.stagebar__fill { height: 100%; background: var(--peach); border-radius: 0 4px 4px 0; min-width: 2px; }
.stagebar__n { font-family: var(--font-mono); text-align: right; }
.chart-svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-svg .bar { fill: var(--peach); }
.chart-svg .bar--partial { fill: none; stroke: var(--peach); stroke-width: 1.5; stroke-dasharray: 3 2; }
.chart-svg .hit { fill: transparent; }
.chart-svg .hit:hover + .bar, .chart-svg g:hover .bar { fill: var(--peach-pressed); }
.chart-svg .axis { stroke: var(--rule); stroke-width: 1; }
.chart-svg text { fill: var(--ink-muted); font-family: var(--font-mono); font-size: 9px; }
.chart-svg text.val { fill: var(--ink); }
.tooltip {
  position: fixed; pointer-events: none; z-index: 50; background: var(--wash); border: 1px solid var(--rule);
  padding: 6px 10px; font-family: var(--font-mono); font-size: 13px; color: var(--ink); white-space: nowrap;
}
.notice { max-width: 60ch; border: 1px solid var(--rule); background: var(--surface); padding: 24px 28px; }
.notice h2 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 300; font-size: var(--fs-big); }
.notice p { margin: 0; color: var(--ink-muted); }
.skeleton { color: var(--ink-faint); font-family: var(--font-mono); font-size: var(--fs-eyebrow); letter-spacing: 0.14em; text-transform: uppercase; }

/* ---- IC deck -------------------------------------------------------------- */
.deck { display: flex; flex-direction: column; height: 100%; gap: 12px; }
.deck--over { outline: 2px dashed var(--peach); outline-offset: 6px; }
.deck__bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.deck__bar .grow { flex: 1; }
.deck__canvaswrap { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.deck__canvaswrap canvas { max-width: 100%; max-height: 100%; box-shadow: 0 10px 40px rgba(0,0,0,0.45); background: #fff; }
.stage--deck { display: flex; flex-direction: column; overflow: hidden; padding-top: clamp(10px, 1vw, 20px); padding-bottom: clamp(10px, 1vw, 20px); }
.stage--deck .deck { flex: 1; min-height: 0; }

/* ---- Pipeline ------------------------------------------------------------ */
.bigaction { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(20px, 2vw, 40px); }

/* ---- Rate ---------------------------------------------------------------- */
.rate-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(14px, 1.6vw, 32px); flex-wrap: wrap; }
.rate-head h1 { font-size: var(--fs-title); }
.score { text-align: right; }
.score__num { font-family: var(--font-display); font-weight: 300; font-size: var(--fs-hero); line-height: 1; color: var(--peach); }
.raterows { display: flex; flex-direction: column; gap: clamp(6px, 0.6vw, 12px); }
.raterow { display: grid; grid-template-columns: minmax(150px, 16vw) 1fr; align-items: center; gap: 16px; }
.raterow__who { display: flex; align-items: center; gap: 14px; font-size: var(--fs-big); font-family: var(--font-display); font-weight: 300; }
.raterow__who .avatar { --size: clamp(36px, 3vw, 60px); }
.nums { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
.num-btn {
  min-height: clamp(40px, 3.4vw, 68px); background: var(--surface); border: 1px solid var(--rule); border-radius: 0;
  font-family: var(--font-mono); font-size: clamp(15px, 1.2vw, 24px); transition: background var(--fast), border-color var(--fast);
}
.num-btn:hover { border-color: var(--ink-muted); }
.num-btn--on { background: var(--peach); border-color: var(--peach); color: var(--action-ink); }

/* ---- Done / history ----------------------------------------------------- */
.done__score { font-family: var(--font-display); font-weight: 300; font-size: clamp(80px, 12vw, 240px); line-height: 1; color: var(--peach); }
.page { max-width: 1200px; margin: 0 auto; padding: var(--gutter); }
.page-head { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; flex-wrap: wrap; }
.page-head h1 { font-size: var(--fs-title); flex: 1; }
.page h2 { font-family: var(--font-display); font-weight: 300; font-size: var(--fs-big); margin: 40px 0 12px; }
.page .list li { font-size: var(--fs-body); }
.hist { border-top: 1px solid var(--rule); }
.hist__row { padding: 18px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 12em 1fr 5em; gap: 18px; align-items: start; }
.hist__date { font-family: var(--font-mono); font-size: var(--fs-eyebrow); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); padding-top: 4px; }
.hist__score { font-family: var(--font-display); font-size: var(--fs-big); text-align: right; color: var(--peach); }
.hist__people { margin: 0 0 6px; }
.hist__absent { color: var(--ink-faint); font-size: 0.9em; }
.hist__hl { margin: 6px 0 0; padding-left: 1.1em; color: var(--ink-muted); font-size: 0.9em; }
.upload { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; border: 1px dashed var(--rule); padding: 20px; }
.upload.over { border-color: var(--peach); background: rgba(255, 189, 96, 0.06); }

/* ---- Floating control panel & overlays ---------------------------------- */
.panel {
  display: flex; gap: 8px; padding: 6px; background: var(--wash); border: 1px solid var(--rule);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.panel .btn { min-height: 42px; }
.btn--tangent { border-color: var(--tangent); color: #FFB4AC; }
.btn--tangent:hover { background: var(--tangent); color: #fff; border-color: var(--tangent); }
.modal-back { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 60; display: flex; align-items: flex-start; justify-content: center; padding-top: 18vh; }
.modal { width: min(760px, 92vw); background: var(--surface); border: 1px solid var(--rule); padding: clamp(20px, 2vw, 36px); display: flex; flex-direction: column; gap: 16px; }
.modal h2 { margin: 0; font-family: var(--font-display); font-weight: 300; font-size: var(--fs-big); }
.modal__row { display: flex; gap: 12px; justify-content: flex-end; }
.tangent {
  position: fixed; inset: 0; z-index: 100; background: var(--tangent); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px;
  cursor: pointer; animation: flash 380ms ease-out; text-align: center; padding: 24px;
}
.tangent__word { font-family: var(--font-display); font-weight: 300; font-size: clamp(64px, 11vw, 240px); line-height: 0.95; letter-spacing: -0.01em; }
.tangent__hint { font-family: var(--font-mono); font-size: var(--fs-eyebrow); letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.85; }
@keyframes flash { 0% { opacity: 0; transform: scale(1.04); } 100% { opacity: 1; transform: none; } }
.toast {
  position: fixed; left: 50%; bottom: 120px; transform: translateX(-50%); z-index: 70;
  background: var(--bone); color: var(--action-ink); padding: 10px 18px; font-family: var(--font-mono); font-size: 14px;
  letter-spacing: 0.06em; animation: flash 200ms ease-out;
}

@media (max-width: 760px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card--wide { grid-template-columns: 1fr; }
  .raterow { grid-template-columns: 1fr; }
  .hist__row { grid-template-columns: 1fr; gap: 6px; }
  .hist__score { text-align: left; }
  .footer { flex-wrap: wrap; }
  .footer__progress { display: none; }
  .footer .btn--big { padding: 0.7em 1.2em; min-height: 52px; }
  .topbar__title .eyebrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- Floating bar (always-on-top window over the HubSpot board) --------- */
body.fb { margin: 0; padding: 12px; background: var(--wash); display: flex; flex-direction: column; gap: 10px; min-height: 100vh; box-sizing: border-box; font-size: 15px; position: relative; }
.fb__head { display: flex; align-items: center; gap: 10px; }
.fb__mark { width: 26px; height: 26px; }
.fb__row { display: flex; gap: 8px; }
.fb__row > .btn { flex: 1; min-height: 40px; }
.fb__input { min-height: 40px; font-size: 15px; }
.fb__board, .fb__done { width: 100%; min-height: 44px; }
.fb__done { margin-top: auto; }
.fb__note { font-family: var(--font-mono); font-size: 12px; color: var(--peach); min-height: 1em; }
.fb__tangent { position: absolute; inset: 0; background: var(--tangent); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-align: center; animation: flash 300ms ease-out; }
.fb__tangent[hidden] { display: none; }
.fb__tangent-word { font-family: var(--font-display); font-weight: 300; font-size: 44px; line-height: 0.95; }
.fb__tangent-hint { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.85; }

/* ---- An opened issue and its sub-tasks ---------------------------------- */
.list li.issue-row { cursor: pointer; }
.list li.issue-row:hover { background: var(--wash); }
.openbtn { background: none; border: 0; padding: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.issue-row:hover .openbtn { color: var(--peach); }
.tag--sub { color: var(--ink-muted); }
.modal-back--top { padding-top: 6vh; }
.modal--issue { width: min(1180px, 94vw); max-height: 88vh; overflow: auto; gap: 14px; }
.modal .issue__title { font-size: var(--fs-title); line-height: 1.1; }
.issue__sub { margin: 10px 0 0; font-weight: 400; }
.sublist li { font-size: var(--fs-body); background: transparent; flex-wrap: wrap; }
.sublist li.done .text { text-decoration: line-through; color: var(--ink-faint); }
.sublist li.done .check { background: var(--peach); border-color: var(--peach); }
.sublist li.done .check svg { opacity: 1; }
.sub__who { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.sub__who .avatar { --size: clamp(28px, 2vw, 40px); }
.sub__status { font-family: var(--font-mono); font-size: var(--fs-eyebrow); letter-spacing: 0.08em; color: var(--ink-faint); flex: none; }
.sub__status--sent { color: var(--peach); }
.sub__status--err { color: var(--overdue); }
.sub__assign { flex-basis: 100%; padding-left: clamp(40px, 3vw, 64px); }
.btn--small { min-height: 38px; padding: 0.4em 1em; }
.subadd { display: flex; flex-direction: column; gap: 12px; }
.subadd .addrow { margin-top: 4px; }
.subadd > div:last-child { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.picker { display: flex; flex-wrap: wrap; gap: 8px; }
.pick {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 14px 6px 6px;
  background: var(--canvas); border: 1px solid var(--rule);
  font-family: var(--font-mono); font-size: var(--fs-eyebrow); letter-spacing: 0.1em; text-transform: uppercase;
  transition: border-color var(--fast), background var(--fast), color var(--fast);
}
.pick:last-child { padding-left: 14px; }
.pick .avatar { --size: 34px; }
.pick:hover { border-color: var(--ink-muted); }
.pick--on { border-color: var(--peach); background: rgba(255, 189, 96, 0.1); color: var(--peach); }
