/* ============================================================
   TODAY HOME · W1 prototype
   Implements design system v2 tokens from the audit
   ============================================================ */

:root {
  /* ── Surface ramp (5 steps) ─────────────────────── */
  --surface:        #0d0e0f;
  --surface-1:      #1a1c1c;
  --surface-2:      #1e2020;
  --surface-3:      #292a2a;
  --surface-4:      #343535;
  --border:         #2a2c2c;
  --border-strong:  #3d4a3d;

  /* ── Brand & status (semantic split) ─────────────── */
  --primary:        #1db954;
  --primary-bright: #53e076;
  --primary-soft:   rgba(83,224,118,.10);
  --primary-line:   rgba(83,224,118,.32);

  --info:           #7ec0ee;
  --info-soft:      rgba(126,192,238,.10);
  --info-line:      rgba(126,192,238,.32);

  --warning:        #ffb74d;
  --warning-soft:   rgba(255,183,77,.10);
  --warning-line:   rgba(255,183,77,.32);

  --error:          #ffb4ab;
  --error-soft:     rgba(255,180,171,.10);
  --error-line:     rgba(255,180,171,.32);

  --bilingual:      #c9b48d;
  --bilingual-soft: rgba(201,180,141,.10);
  --bilingual-line: rgba(201,180,141,.30);

  /* ── Text ────────────────────────────────────────── */
  --text:           #e3e2e2;
  --text-2:         #bccbb9;
  --text-3:         #869585;
  --text-mute:      #6b7470;

  /* ── Artist accents (for badge color, no semantic load) */
  --a-liran: #ffb86b;
  --a-noa:   #c0a4ff;
  --a-gidi:  #6bd6c0;
  --a-avi:   #ff8aa8;
  --a-lital: #8ad6ff;

  /* ── Spacing ─────────────────────────────────────── */
  --s-xs: 4px;
  --s-sm: 8px;
  --s-md: 16px;
  --s-lg: 24px;
  --s-xl: 32px;
  --gutter: 20px;
  --page-x: 32px;

  /* ── Radius ──────────────────────────────────────── */
  --r-sm: 6px;
  --r:    10px;
  --r-full: 9999px;

  /* ── Typography ──────────────────────────────────── */
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;

  /* ── Layout ──────────────────────────────────────── */
  --nav-w: 216px;
  --top-h: 80px;

  /* ── Typographic scale ───────────────────────────── */
  --fs-2xs: 10px;
  --fs-xs:  11px;
  --fs-sm:  12px;
  --fs-base: 13px;
  --fs-md:  14px;
  --fs-lg:  16px;
  --fs-xl:  18px;
  --fs-2xl: 22px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body {
  display: grid;
  grid-template-columns: var(--nav-w) 1fr;
  grid-template-rows: var(--top-h) 1fr;
  grid-template-areas:
    "nav top"
    "nav main";
  min-height: 100vh;
}

.icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  vertical-align: -2px;
  color: currentColor;
}
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
kbd {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 5px;
  border: 1px solid var(--surface-4);
  border-bottom-width: 2px;
  border-radius: 4px;
  color: var(--text-2);
  background: var(--surface-2);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  grid-area: nav;
  background: var(--surface-1);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 20px 14px 14px;
  position: sticky;
  top: 0; height: 100vh;
}

.nav-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 0 6px 22px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.brand-mark {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--primary-bright), var(--primary));
  color: #003914;
  display: grid; place-items: center;
  box-shadow: 0 0 18px rgba(83,224,118,.25);
  flex-shrink: 0;
}
.brand-name { font-weight: 700; font-size: 14px; letter-spacing: -.005em; }
.brand-sub  { font-size: 10px; color: var(--text-mute); font-family: var(--mono); letter-spacing: .04em; margin-top: 1px; }

.nav-items { display: flex; flex-direction: column; gap: 1px; flex: 1; }
.nav-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-mute);
  padding: 16px 8px 6px;
}
.nav-items > .nav-section-label:first-child { padding-top: 4px; }

.nav-item {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: var(--r-sm);
  text-decoration: none;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  transition: background .15s, color .15s;
  cursor: pointer;
  position: relative;
}
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active {
  background: var(--primary-soft);
  color: var(--primary-bright);
  font-weight: 600;
  border-right: 2px solid var(--primary-bright);
}
.nav-icon { color: inherit; }
/* nav-icon active state uses CSS color from .nav-item.active */

.nav-meta {
  font-size: 11px;
  color: var(--text-3);
  font-family: var(--mono);
}
.nav-meta.strong {
  background: var(--primary-soft);
  color: var(--primary-bright);
  padding: 2px 7px;
  border-radius: var(--r-sm);
  font-weight: 600;
}
.nav-badge.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 6px var(--primary);
}
.nav-badge.dot.warn { background: var(--warning); box-shadow: 0 0 6px var(--warning); }

.nav-cmdk {
  display: flex; align-items: center; gap: 8px;
  margin: 8px 0;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-3);
}

.nav-account {
  display: grid;
  grid-template-columns: 32px 1fr 24px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.account-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4a7ec9, #2a4a8e);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .04em;
  display: grid; place-items: center;
}
.account-name { font-size: 12.5px; font-weight: 600; color: var(--text); }
.account-sub  { font-size: 10.5px; color: var(--text-mute); font-family: var(--mono); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-more {
  background: none; border: none; color: var(--text-3); cursor: pointer;
  display: grid; place-items: center; padding: 4px; border-radius: var(--r-sm);
}
.account-more:hover { background: var(--surface-3); color: var(--text); }


/* ============================================================
   TOP CHROME
   ============================================================ */
.topbar {
  grid-area: top;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-x);
  position: sticky;
  top: 0;
  z-index: 10;
  gap: var(--s-lg);
}
.greeting {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.012em;
  margin: 0;
  line-height: 1.2;
}
.greeting-sub {
  display: flex; align-items: center; gap: 10px;
  font-size: 11.5px;
  color: var(--text-3);
  margin-top: 4px;
}
.dot-sep {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--text-mute);
}
.now-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary-bright);
  margin-right: 4px;
  vertical-align: -1px;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(83,224,118,.5); }
  50%      { opacity: .55; box-shadow: 0 0 0 6px rgba(83,224,118,0); }
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ── Workspace topbar (Publish / Inbox / Connections share this) ── */
.workspace-crumb {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.workspace-crumb .icon { width: 12px; height: 12px; color: var(--primary-bright); }
.crumb-sep { color: var(--text-mute); opacity: .6; }
.crumb-leaf { color: var(--text-2); }
.workspace-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 4px 0 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.workspace-tally {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
  font-family: var(--mono);
}
.wt-strong { color: var(--text); font-family: var(--sans); font-weight: 600; }
.wt-sep {
  width: 2px; height: 2px;
  border-radius: 50%;
  background: var(--text-mute);
  opacity: .5;
  display: inline-block;
}

/* ── Status pills (per-integration health) ─────────── */
.status-pills {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}
.pill {
  width: 26px; height: 26px;
  border-radius: 5px;
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  transition: transform .15s, background .15s;
}
.pill:hover { transform: translateY(-1px); }
.pill-letter { display: block; }
.pill::after {
  content: '';
  position: absolute;
  bottom: 3px; right: 3px;
  width: 6px; height: 6px;
  border-radius: 50%;
  border: 1.5px solid var(--surface-2);
}
.pill.ok    { background: var(--primary-soft); color: var(--primary-bright); }
.pill.ok::after { background: var(--primary-bright); }
.pill.warn  { background: var(--warning-soft); color: var(--warning); }
.pill.warn::after { background: var(--warning); }
.pill.error { background: var(--error-soft); color: var(--error); }
.pill.error::after { background: var(--error); }
.pill.idle  { background: var(--surface-3); color: var(--text-mute); }
.pill.idle::after { background: var(--text-mute); }
.pill.focused { outline: 2px solid var(--primary-bright); outline-offset: 1px; }

/* ── Command palette button ─────────────────────────── */
.cmdk-btn {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 7px 10px 7px 12px;
  color: var(--text-3);
  font-size: 12.5px;
  cursor: pointer;
  font-family: inherit;
  min-width: 240px;
  transition: border-color .15s, background .15s;
}
.cmdk-btn:hover { border-color: var(--surface-4); background: var(--surface-3); }
.cmdk-btn.focused { border-color: var(--primary-line); background: var(--primary-soft); color: var(--text); }
.cmdk-btn .icon { font-size: 16px; }
.cmdk-label { flex: 1; text-align: left; }

.icon-btn {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  width: 34px; height: 34px;
  display: grid; place-items: center;
  color: var(--text-2);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.icon-btn:hover { border-color: var(--surface-4); background: var(--surface-3); color: var(--text); }
.icon-btn-dot {
  position: absolute; top: 6px; right: 6px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--warning);
  border: 1.5px solid var(--surface-2);
}


/* ============================================================
   MAIN
   ============================================================ */
.main {
  grid-area: main;
  padding: var(--s-xl) var(--page-x) 64px;
  display: flex;
  flex-direction: column;
  gap: var(--s-xl);
  max-width: 1400px;
}

/* ── Shared module head ──────────────────────────────── */
.card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 22px 24px;
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--s-md);
  margin-bottom: 18px;
}
.card-head-actions { display: flex; align-items: center; gap: 12px; }
.card-title {
  font-size: 16px;
  font-weight: 700;
  margin: 4px 0 0;
  letter-spacing: -.005em;
  color: var(--text);
}
.count-strong { color: var(--text); }
.count-faint  { color: var(--text-3); font-weight: 500; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary-bright);
}
.eyebrow-dot.warn { background: var(--warning); animation: pulse 2.4s ease-in-out infinite; }
.eb-icon { font-size: 13px; color: var(--text-3); }
.eyebrow-count {
  font-family: var(--mono); font-size: 11px;
  color: var(--text-mute);
}

.card-link {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--primary-bright);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: var(--r-sm);
  transition: background .15s;
  white-space: nowrap;
}
.card-link:hover { background: var(--primary-soft); }
.card-link .icon { font-size: 15px; transition: transform .15s; }
.card-link:hover .icon { transform: translateX(2px); }

.ghost-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  padding: 6px 12px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.ghost-btn:hover  { background: var(--surface-3); color: var(--text); border-color: var(--surface-4); }
.ghost-btn:active { transform: scale(.95); }
.ghost-btn .icon  { font-size: 14px; }


/* ============================================================
   MODULE 1 · ATTENTION
   ============================================================ */
.attention {
  background: linear-gradient(180deg, rgba(255,183,77,.04), transparent 40%), var(--surface-1);
  border: 1px solid var(--warning-line);
  border-radius: var(--r);
  padding: 20px 24px 22px;
}
.attention-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.attention-rows { display: flex; flex-direction: column; gap: 8px; }

.attn-row {
  display: grid;
  grid-template-columns: 36px 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  transition: background .15s, border-color .15s;
}
.attn-row:hover { background: var(--surface-3); border-color: var(--surface-4); }
.attn-row.sev-warn {
  border-left: 3px solid var(--warning);
}
.attn-row.sev-info {
  border-left: 3px solid var(--info);
}
.attn-icon {
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: var(--warning-soft);
  color: var(--warning);
}
.attn-row.sev-info .attn-icon {
  background: var(--info-soft);
  color: var(--info);
}
.attn-icon .icon { font-size: 18px; }
.attn-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.attn-desc {
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.45;
}
.attn-meta {
  font-size: 11px;
  color: var(--text-mute);
  white-space: nowrap;
}
.attn-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--warning);
  color: #3a2a00;
  border: none;
  padding: 7px 14px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: filter .15s, transform .15s;
}
.attn-cta:hover { filter: brightness(1.1); }
.attn-cta:active { transform: scale(.97); }
.attn-cta.ghost {
  background: var(--surface-3);
  color: var(--text);
  border: 1px solid var(--surface-4);
}
.attn-cta.ghost:hover { background: var(--surface-4); }
.attn-row.sev-info .attn-cta:not(.ghost) {
  background: var(--info);
  color: #002a3a;
}
.attn-cta .arrow { font-size: 14px; }


/* ============================================================
   2-COL GRID
   ============================================================ */
.two-col {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--gutter);
}
@media (max-width: 1180px) {
  .two-col { grid-template-columns: 1fr; }
}


/* ============================================================
   MODULE 2 · TODAY'S SLATE (TIMELINE)
   ============================================================ */
.timeline { display: flex; flex-direction: column; }
.time-row {
  display: grid;
  grid-template-columns: 58px 24px 1fr auto;
  gap: 12px;
  padding: 10px 0;
  align-items: start;
}
.time-stamp {
  font-size: 12px;
  color: var(--text-2);
  font-weight: 600;
  padding-top: 2px;
  position: relative;
}
.now-pill {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--primary-bright);
  color: #003914;
  margin-left: 4px;
  vertical-align: 1px;
}

.time-track {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
}
.time-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 2px solid var(--surface-4);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: grid; place-items: center;
}
.time-dot.success {
  background: var(--primary);
  border-color: var(--primary);
}
.time-dot.success .icon { width: 8px; height: 8px; color: #003914; stroke-width: 3.5; }
.time-dot.pulse {
  background: var(--primary-bright);
  border-color: var(--primary-bright);
  box-shadow: 0 0 0 0 rgba(83,224,118,.45);
  animation: pulse-ring 2s ease-in-out infinite;
}
@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(83,224,118,.45); }
  50%      { box-shadow: 0 0 0 8px rgba(83,224,118,0); }
}
.time-dot.warn {
  background: var(--warning);
  border-color: var(--warning);
}
.time-dot.warn .icon { width: 8px; height: 8px; color: #3a2a00; stroke-width: 3.5; }
.time-line {
  width: 2px;
  flex: 1;
  background: var(--surface-3);
  min-height: 18px;
  margin-top: 2px;
}
.time-row.last .time-line { display: none; }

.time-body { padding: 0; }
.time-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.time-sub {
  font-size: 11.5px;
  color: var(--text-3);
}
.time-row.done .time-title { color: var(--text-2); }
.time-row.done .time-stamp { color: var(--text-mute); }

.inline-fix {
  color: var(--warning);
  text-decoration: none;
  font-weight: 600;
  margin-left: 4px;
}
.inline-fix:hover { text-decoration: underline; }

/* artist tag */
.artist {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--surface-3);
  color: var(--text);
  margin: 0 1px;
}
.artist.liran  { background: rgba(255,184,107,.15); color: var(--a-liran); }
.artist.noa    { background: rgba(192,164,255,.15); color: var(--a-noa); }
.artist.gidi   { background: rgba(107,214,192,.15); color: var(--a-gidi); }
.artist.avi    { background: rgba(255,138,168,.15); color: var(--a-avi); }
.artist.lital  { background: rgba(138,214,255,.15); color: var(--a-lital); }

.bilingual-mark {
  display: inline-block;
  font-size: 12px;
  color: var(--bilingual);
  padding-left: 4px;
  border-left: 1px solid var(--bilingual-line);
  margin-left: 4px;
  font-weight: 600;
  unicode-bidi: isolate;
}

/* chip */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--r-full);
  border: 1px solid transparent;
  white-space: nowrap;
}
.chip.success {
  background: var(--primary-soft);
  color: var(--primary-bright);
  border-color: var(--primary-line);
}
.chip.pending {
  background: var(--info-soft);
  color: var(--info);
  border-color: var(--info-line);
}
.chip.warn {
  background: var(--warning-soft);
  color: var(--warning);
  border-color: var(--warning-line);
}
.chip.queued {
  background: var(--surface-3);
  color: var(--text-3);
  border-color: var(--border);
}
.chip.error {
  background: var(--error-soft);
  color: var(--error);
  border-color: var(--error-line);
}
.chip.info {
  background: var(--info-soft);
  color: var(--info);
  border-color: var(--info-line);
}

.card-foot {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  font-size: 11.5px;
  color: var(--text-3);
}
.mini-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  margin: 0 4px 0 8px;
  vertical-align: 1px;
}
.mini-dot.success { background: var(--primary-bright); }
.mini-dot.pending { background: var(--info); }
.mini-dot.warn    { background: var(--warning); }
.mini-dot.idle    { background: var(--surface-4); }


/* ============================================================
   MODULE 3 · INBOX PREVIEW
   ============================================================ */
.pitch-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pitch {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .12s;
}
.pitch:hover {
  background: var(--surface-3);
  border-color: var(--surface-4);
  transform: translateX(2px);
}
.pitch.fresh {
  border-left: 3px solid var(--primary-bright);
}
.pitch-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .04em;
  flex-shrink: 0;
}
.pitch-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.pitch-curator {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.pitch-thread {
  font-size: 11px;
  color: var(--text-mute);
  font-weight: 400;
}
.pitch-time {
  font-size: 11px;
  color: var(--text-mute);
}
.pitch-snippet {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.45;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pitch-snippet .rtl {
  direction: rtl;
  unicode-bidi: isolate;
  font-family: var(--sans);
  color: var(--text);
  font-weight: 500;
  margin-right: 4px;
}
.pitch-curator {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.bi-tag {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--bilingual-soft);
  color: var(--bilingual);
  border: 1px solid var(--bilingual-line);
  flex-shrink: 0;
}
.pitch-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.meta-chip {
  font-size: 10.5px;
  color: var(--text-3);
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--surface-3);
  border: 1px solid var(--border);
}
.meta-chip.history {
  color: var(--primary-bright);
  background: var(--primary-soft);
  border-color: var(--primary-line);
}
.meta-chip.history.new {
  color: var(--info);
  background: var(--info-soft);
  border-color: var(--info-line);
}
.pitch-more {
  padding: 8px 12px;
  text-align: center;
}


/* ============================================================
   MODULE 4 · PINNED HEALTH
   ============================================================ */
.pinned-grid { display: flex; flex-direction: column; gap: 1px; background: var(--border); border-radius: var(--r-sm); overflow: hidden; }

.pinned-row {
  display: grid;
  grid-template-columns: 200px 110px 110px 140px 80px 36px 140px;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: var(--surface-2);
  transition: background .15s;
}
.pinned-row:hover { background: var(--surface-3); }

.pinned-name {
  display: flex; align-items: center; gap: 10px;
  min-width: 0;
}
.pin-icon { color: var(--primary-bright); width: 14px; height: 14px; }
.pl-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  display: flex; align-items: center; gap: 6px;
}
.pl-sub  { font-size: 10.5px; color: var(--text-mute); margin-top: 2px; }
.bi-tag-inline {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--bilingual);
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--bilingual-soft);
  border: 1px solid var(--bilingual-line);
  direction: rtl;
  unicode-bidi: isolate;
}

.pinned-stat {}
.stat-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 4px;
}
.stat-val {
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
  display: flex; align-items: center; gap: 6px;
}
.stat-val.warn { color: var(--warning); }
.stat-val.with-ring { gap: 8px; }
.ring { flex-shrink: 0; }
.ring-num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.cov {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
}
.cov.warn { color: var(--warning); }
.cov-bar {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--surface-3);
  overflow: hidden;
}
.cov-bar span {
  display: block;
  height: 100%;
  background: var(--primary-bright);
  border-radius: 2px;
}
.cov-bar.warn span { background: var(--warning); }

.spark { vertical-align: middle; }

.pinned-status .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.pinned-status .dot.success { background: var(--primary); box-shadow: 0 0 8px var(--primary); }
.pinned-status .dot.warn    { background: var(--warning); box-shadow: 0 0 8px var(--warning); }

.pinned-action {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary);
  color: #003914;
  border: none;
  padding: 7px 12px;
  border-radius: var(--r-sm);
  font-size: 11.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, transform .15s;
  justify-content: center;
}
.pinned-action:hover { background: var(--primary-bright); }
.pinned-action:active { transform: scale(.97); }
.pinned-action.warn {
  background: var(--warning-soft);
  color: var(--warning);
  border: 1px solid var(--warning-line);
}
.pinned-action.warn:hover { background: var(--warning); color: #3a2a00; }
.pinned-action .icon { font-size: 14px; }


/* ============================================================
   MODULE 5 · ACTIVITY FEED
   ============================================================ */
.filter-row { display: flex; gap: 4px; padding: 3px; background: var(--surface-2); border-radius: var(--r-sm); border: 1px solid var(--border); }
.filter-chip {
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 11.5px;
  font-weight: 500;
  font-family: inherit;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.filter-chip:hover { color: var(--text); }
.filter-chip.active {
  background: var(--surface-3);
  color: var(--text);
  font-weight: 600;
}

.feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.feed-row {
  display: grid;
  grid-template-columns: 56px 16px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 11px 8px;
  border-radius: var(--r-sm);
  transition: background .15s;
}
.feed-row:hover { background: var(--surface-2); }
.feed-row.dim { opacity: .62; }

.feed-time {
  font-size: 11.5px;
  color: var(--text-mute);
  font-weight: 500;
}
.feed-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--surface-4);
  position: relative;
  justify-self: center;
}
.feed-dot.success { background: var(--primary-bright); box-shadow: 0 0 8px rgba(83,224,118,.5); }
.feed-dot.info    { background: var(--info); box-shadow: 0 0 8px rgba(126,192,238,.4); }
.feed-dot.warn    { background: var(--warning); box-shadow: 0 0 8px rgba(255,183,77,.4); }
.feed-dot.error   { background: var(--error); box-shadow: 0 0 8px rgba(255,180,171,.4); }

.feed-body {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.feed-action {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.feed-target {
  font-size: 12.5px;
  color: var(--text-2);
  white-space: nowrap;
}
.feed-meta {
  font-size: 11.5px;
  color: var(--text-mute);
}
.feed-status { flex-shrink: 0; }

.feed-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  font-size: 11.5px;
  color: var(--text-3);
}


/* ============================================================
   PAGE FOOT
   ============================================================ */
.page-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--s-lg);
  margin-top: var(--s-lg);
  border-top: 1px solid var(--border);
  font-size: 10.5px;
  color: var(--text-mute);
  letter-spacing: .03em;
}
.page-foot kbd {
  font-size: 9.5px;
  padding: 1px 4px;
}


/* ============================================================
   RESPONSIVE — minimal, this is a desktop power tool
   ============================================================ */
@media (max-width: 1100px) {
  .pinned-row {
    grid-template-columns: 180px 100px 100px 120px 60px 28px 120px;
    gap: 12px;
    font-size: 12px;
  }
}
@media (max-width: 960px) {
  body { grid-template-columns: 64px 1fr; }
  .nav { padding: 16px 8px; }
  .nav-label, .brand-name, .brand-sub, .nav-meta, .nav-section-label, .nav-cmdk, .account-meta, .account-more { display: none; }
  .nav-item { justify-content: center; grid-template-columns: 24px; }
  .nav-account { grid-template-columns: 32px; padding: 6px; justify-content: center; }
  .pinned-row { grid-template-columns: 1fr; gap: 6px; }
  .two-col { grid-template-columns: 1fr; }
}


/* ============================================================
   ICON SIZE OVERRIDES PER CONTEXT
   ============================================================ */
.nav-icon            { width: 18px; height: 18px; }
.eb-icon             { width: 13px; height: 13px; color: var(--text-3); }
.card-link .icon     { width: 14px; height: 14px; transition: transform .15s; }
.card-link:hover .icon { transform: translateX(2px); }
.ghost-btn .icon     { width: 14px; height: 14px; }
.attn-icon .icon     { width: 18px; height: 18px; }
.attn-cta .icon      { width: 14px; height: 14px; }
.cmdk-btn .icon      { width: 15px; height: 15px; }
.icon-btn .icon      { width: 18px; height: 18px; }
.account-more .icon  { width: 16px; height: 16px; }
.time-dot .icon      { width: 8px; height: 8px; }
.pinned-action .icon { width: 13px; height: 13px; }

/* ============================================================
   TOAST ANIMATIONS (used by connections.html & today.html)
   ============================================================ */
@keyframes toast-in  { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toast-out { from { opacity: 1; transform: translateY(0) scale(1); }     to { opacity: 0; transform: translateY(-8px) scale(.97); } }


/* ============================================================
   ════════════════════════════════════════════════════════════
   V3 SYSTEM ADDITIONS · cross-page shared layer (ported)
   ════════════════════════════════════════════════════════════
   Below this line: every selector is new, or extends an existing
   token. No legacy rule above was rewritten — additive only so
   regressions can't spread across pages that aren't being touched
   in this PR. */

/* Generic 10-swatch gradient palette + real-artist named tokens
   (audit #26, #33). */
:root {
  --grad-valen:           linear-gradient(135deg, #d9b87a, #8a6630);
  --grad-bedroom-loops:   linear-gradient(135deg, #8a7fe6, #3a3470);
  --grad-palm-dust:       linear-gradient(135deg, #7fc7a4, #2e6b56);
  --grad-saffron-static:  linear-gradient(135deg, #e0a04a, #7a3a14);
  --grad-a: linear-gradient(135deg, #c97a4a, #7a3a1a);
  --grad-b: linear-gradient(135deg, #6a4ec9, #2a2a8e);
  --grad-c: linear-gradient(135deg, #4ac9a4, #1a7a6a);
  --grad-d: linear-gradient(135deg, #c94a8e, #7a1a4a);
  --grad-e: linear-gradient(135deg, #4a8ec9, #1a4a7a);
  --grad-f: linear-gradient(135deg, #c94a4a, #7a1a1a);
  --grad-g: linear-gradient(135deg, #8ec94a, #4a7a1a);
  --grad-h: linear-gradient(135deg, #c9a44a, #7a5a1a);
  --grad-i: linear-gradient(135deg, #4ac9c9, #1a7a7a);
  --grad-j: linear-gradient(135deg, #8e4ac9, #4a1a7a);
  /* Text-mute contrast bump (audit P1.12) — #6b7470 → #7d8682 hits
     WCAG AA on --surface. */
  --text-mute: #7d8682;
}

/* Focus rings · keyboard a11y (audit #9 + #10) */
:where(button, a, input, textarea, select, [tabindex], .nav-item,
       .pill, .filter-chip, .studio-tab, .schip, .toggle, .number-stepper,
       .segmented > *):focus { outline: none; }
:where(button, a, input, textarea, select, [tabindex], .nav-item,
       .pill, .filter-chip, .studio-tab, .schip, .toggle, .number-stepper,
       .segmented > *):focus-visible {
  outline: 2px solid var(--primary-line);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
.nav-item:focus-visible {
  outline-color: var(--primary-bright);
  outline-offset: 1px;
}

.nav-item[aria-current="page"] {
  background: var(--primary-soft);
  color: var(--primary-bright);
  font-weight: 600;
}
.nav-item[aria-current="page"]::before {
  content: '';
  position: absolute; left: -14px; top: 6px; bottom: 6px;
  width: 3px;
  background: var(--primary-bright);
  border-radius: 0 2px 2px 0;
}

/* Save pill · canonical save-feedback (audit #15) */
.save-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  font-family: var(--mono);
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-3);
  opacity: 0;
  transform: translateY(2px);
  pointer-events: none;
  transition: opacity .18s, transform .18s, background .15s, color .15s, border-color .15s;
}
.save-pill::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.save-pill[data-state="saving"],
.save-pill[data-state="saved"],
.save-pill[data-state="error"] { opacity: 1; transform: translateY(0); }
.save-pill[data-state="saving"] { background: var(--info-soft); border-color: var(--info-line); color: var(--info); }
.save-pill[data-state="saving"]::before { animation: pulse 1.2s ease-in-out infinite; }
.save-pill[data-state="saved"] { background: var(--primary-soft); border-color: var(--primary-line); color: var(--primary-bright); }
.save-pill[data-state="error"] { background: var(--error-soft); border-color: var(--error-line); color: var(--error); }

/* Status pill meaning legend (audit #6) */
.pill-legend {
  display: flex; align-items: center; gap: 12px;
  font-size: 10.5px;
  font-family: var(--mono);
  color: var(--text-3);
  padding: 6px 0 0;
  flex-wrap: wrap;
}
.pill-legend.boxed {
  padding: 10px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}
.pl-leg { display: inline-flex; align-items: center; gap: 6px; }
.pl-swatch { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.pl-swatch.ok    { background: var(--primary-bright); box-shadow: 0 0 6px var(--primary-bright); }
.pl-swatch.warn  { background: var(--warning); box-shadow: 0 0 6px var(--warning); }
.pl-swatch.error { background: var(--error); box-shadow: 0 0 6px var(--error); }
.pl-swatch.idle  { background: var(--text-mute); }
.pl-label { letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }

/* Quota / rate-limit inline pill (audit #14) */
.quota-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px 4px 8px;
  border-radius: var(--r-full);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 11px;
  font-family: var(--mono);
  color: var(--text-3);
}
.quota-pill .qp-key { font-weight: 700; color: var(--text); letter-spacing: .04em; }
.quota-pill .qp-bar { position: relative; width: 36px; height: 4px; border-radius: 2px; background: var(--surface-3); overflow: hidden; }
.quota-pill .qp-fill { position: absolute; inset: 0 auto 0 0; background: var(--primary-bright); border-radius: 2px; }
.quota-pill[data-level="warn"]  { border-color: var(--warning-line); color: var(--warning); }
.quota-pill[data-level="warn"]  .qp-fill { background: var(--warning); }
.quota-pill[data-level="error"] { border-color: var(--error-line); color: var(--error); }
.quota-pill[data-level="error"] .qp-fill { background: var(--error); }
.quota-pill[data-level="zero"]  { border-color: var(--error-line); background: var(--error-soft); color: var(--error); }
.quota-pill[data-level="zero"]  .qp-bar { display: none; }

/* Empty / error / partial state · canonical (audit #13) */
.emptystate {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px;
  padding: 36px 24px 32px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--surface-1), transparent 80%);
  color: var(--text-3);
}
.emptystate .es-icon { width: 28px; height: 28px; color: var(--text-mute); margin-bottom: 2px; }
.emptystate .es-title { font-size: 13.5px; font-weight: 600; color: var(--text-2); letter-spacing: -.005em; }
.emptystate .es-desc { font-size: 12px; max-width: 42ch; line-height: 1.5; color: var(--text-3); }
.emptystate .es-cta {
  margin-top: 6px;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-family: inherit;
  font-size: 12px; font-weight: 600;
  padding: 7px 12px; border-radius: var(--r-sm); cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.emptystate .es-cta:hover { background: var(--surface-3); color: var(--text); border-color: var(--surface-4); }
.emptystate .es-cta .icon { width: 13px; height: 13px; }
.emptystate[data-variant="error"]   { border-color: var(--error-line); background: linear-gradient(180deg, var(--error-soft), transparent 70%); }
.emptystate[data-variant="error"] .es-icon  { color: var(--error); }
.emptystate[data-variant="error"] .es-title { color: var(--text); }
.emptystate[data-variant="error"] .es-cta   { background: var(--error-soft); border-color: var(--error-line); color: var(--error); }
.emptystate[data-variant="partial"] {
  flex-direction: row; align-items: center; gap: 12px;
  padding: 10px 14px; text-align: left;
  border-style: solid; border-color: var(--info-line); background: var(--info-soft); color: var(--text-2);
}
.emptystate[data-variant="partial"] .es-icon  { width: 18px; height: 18px; margin: 0; color: var(--info); }
.emptystate[data-variant="partial"] .es-title { font-size: 12px; color: var(--text); }
.emptystate[data-variant="partial"] .es-desc  { font-size: 11.5px; flex: 1; }

/* Loading skeleton (audit #4) */
[aria-busy="true"] { cursor: progress; }
.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 50%, var(--surface-2) 100%);
  background-size: 200% 100%;
  animation: sk-sweep 1.4s ease-in-out infinite;
  border-radius: var(--r-sm);
}
@keyframes sk-sweep { 0% { background-position: -100% 0; } 100% { background-position: 100% 0; } }
.sk-line    { height: 12px; }
.sk-line.sm { height: 10px; }
.sk-line.lg { height: 16px; }
.sk-block   { height: 80px; }
.sk-row     { height: 44px; margin: 4px 0; }
.sk-circle  { border-radius: 50%; aspect-ratio: 1; height: 32px; width: 32px; }

/* Strategy chip row · canonical (audit #7 + #34) */
.schip-row {
  display: flex; gap: 6px; flex-wrap: wrap;
  padding: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}
.schip {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-3);
  font-family: inherit;
  font-size: 12px; font-weight: 600;
  padding: 6px 10px; border-radius: var(--r-sm);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.schip:hover { background: var(--surface-3); color: var(--text-2); }
.schip[aria-pressed="true"], .schip.active, .schip.on {
  background: var(--primary-soft);
  color: var(--primary-bright);
  border-color: var(--primary-line);
}
.schip .icon { width: 14px; height: 14px; }
.schip[aria-pressed="true"] .icon, .schip.on .icon { color: var(--primary-bright); }

/* Undo toast frame (audit #35) */
.toast-undo {
  position: fixed; bottom: 20px; right: 20px; z-index: 1000;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px 12px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--r);
  box-shadow: 0 8px 24px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.02) inset;
  font-size: 12.5px; color: var(--text); min-width: 320px;
}
.toast-undo .tu-icon {
  width: 28px; height: 28px;
  border-radius: 50%; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary-bright); flex-shrink: 0;
}
.toast-undo .tu-body { flex: 1; line-height: 1.4; }
.toast-undo .tu-body strong { color: var(--text); font-weight: 700; }
.toast-undo .tu-body .tu-sub { font-size: 11px; color: var(--text-3); margin-top: 1px; }
.toast-undo .tu-undo {
  background: var(--surface-3); border: 1px solid var(--surface-4);
  color: var(--text); font-family: inherit; font-size: 12px; font-weight: 700;
  padding: 6px 12px; border-radius: var(--r-sm); cursor: pointer;
}
.toast-undo .tu-undo:hover { background: var(--surface-4); }
.toast-undo .tu-dismiss {
  background: none; border: none; color: var(--text-mute);
  padding: 4px; cursor: pointer; border-radius: 4px;
  display: grid; place-items: center;
}
.toast-undo .tu-dismiss:hover { color: var(--text); background: var(--surface-3); }
.toast-undo .tu-dismiss .icon { width: 14px; height: 14px; }
.toast-undo .tu-countdown { position: relative; width: 36px; height: 36px; flex-shrink: 0; }
.toast-undo .tu-countdown svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.toast-undo .tu-countdown .tu-ring-bg { fill: none; stroke: var(--surface-3); stroke-width: 3; }
.toast-undo .tu-countdown .tu-ring-fg {
  fill: none; stroke: var(--primary-bright); stroke-width: 3;
  stroke-dasharray: 100; stroke-dashoffset: 0;
  transition: stroke-dashoffset .2s linear;
}
.toast-undo .tu-countdown .tu-secs {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 10px; font-weight: 700; color: var(--text-2);
}
.toast-undo[data-persistent="true"] .tu-countdown { display: none; }

/* Per-tab tally (audit #20) — Studio shared topbar */
.workspace-tally[data-tab-tally] > [data-for-tab] { display: none; }
.workspace-tally[data-tab-tally="calendar"]  > [data-for-tab="calendar"],
.workspace-tally[data-tab-tally="stories"]   > [data-for-tab="stories"],
.workspace-tally[data-tab-tally="reels"]     > [data-for-tab="reels"],
.workspace-tally[data-tab-tally="brands"]    > [data-for-tab="brands"] {
  display: inline-flex; align-items: baseline; gap: 10px;
}

/* Recycled-story badge */
.recycled-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--mono);
  font-size: 9.5px; font-weight: 700; letter-spacing: .04em;
  padding: 2px 6px 2px 5px;
  border-radius: var(--r-full);
  background: var(--info-soft); color: var(--info);
  border: 1px solid var(--info-line);
}
.recycled-badge::before { content: '↺'; font-size: 11px; line-height: 1; }

/* Generic gradient utility classes */
.grad-a { background: var(--grad-a); }
.grad-b { background: var(--grad-b); }
.grad-c { background: var(--grad-c); }
.grad-d { background: var(--grad-d); }
.grad-e { background: var(--grad-e); }
.grad-f { background: var(--grad-f); }
.grad-g { background: var(--grad-g); }
.grad-h { background: var(--grad-h); }
.grad-i { background: var(--grad-i); }
.grad-j { background: var(--grad-j); }
.grad-valen          { background: var(--grad-valen); }
.grad-bedroom-loops  { background: var(--grad-bedroom-loops); }
.grad-palm-dust      { background: var(--grad-palm-dust); }
.grad-saffron-static { background: var(--grad-saffron-static); }

/* Quota strip on Today's "Needs attention" rail */
.attention-quotas {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px dashed var(--border);
}

/* Placeholder markers (§6 convention) — dev-mode visualization removed.
 * data-ph-source attributes are still read by bindPlaceholders() in
 * v2-common.js to wire real API values; they just no longer render the
 * magenta-dashed outline + "GET /api/…" label that flashed on every load. */
.ph, .ph-block, .ph-row { display: inline; }
.ph-block, .ph-row { position: relative; }
