/* ============================================================
   HELM — Email Command Centre
   Dark, dense, mission-control UI. Bloomberg × Linear × NASA ops.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg:        #0b0e14;
  --bg-2:      #0e121a;
  --panel:     #151a23;
  --panel-2:   #161b24;
  --panel-3:   #1b212c;
  --elev:      #1d2531;
  --line:      #222a35;
  --line-2:    #2b3543;
  --line-soft: #1a212b;

  --txt:       #e6edf3;
  --txt-2:     #aeb8c4;
  --muted:     #7d8694;
  --faint:     #5b6470;

  --accent:    #22d3ee;       /* electric cyan */
  --accent-2:  #2dd4bf;       /* teal */
  --accent-dim:#0e7490;
  --accent-glow: rgba(34, 211, 238, 0.16);

  --green:  #34d399;
  --green-d:#10b981;
  --amber:  #fbbf24;
  --red:    #f87171;
  --violet: #a78bfa;
  --blue:   #60a5fa;
  --pink:   #f472b6;

  --radius:   10px;
  --radius-sm: 7px;
  --radius-lg: 14px;

  --shadow-1: 0 1px 2px rgba(0,0,0,.4);
  --shadow-2: 0 8px 28px rgba(0,0,0,.45), 0 2px 6px rgba(0,0,0,.3);
  --shadow-pop: 0 18px 60px rgba(0,0,0,.6), 0 4px 14px rgba(0,0,0,.45);

  --rail-w: 60px;
  --strip-h: 46px;

  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.01em;
  overflow: hidden;
}
body::before { /* subtle canvas vignette */
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(1200px 700px at 78% -8%, rgba(34,211,238,.05), transparent 60%),
    radial-gradient(900px 600px at 8% 108%, rgba(45,212,191,.04), transparent 60%);
  pointer-events: none; z-index: 0;
}

::selection { background: rgba(34,211,238,.28); color: #fff; }

/* scrollbars */
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-thumb { background: #29323e; border-radius: 6px; border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: #36414f; background-clip: padding-box; }
*::-webkit-scrollbar-track { background: transparent; }

svg.ic { flex-shrink: 0; vertical-align: -0.18em; }
.panel-h h3 svg.ic, .seq-info .sq-name svg.ic, .view-title svg.ic { vertical-align: -0.16em; }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.num  { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

/* ============================================================
   APP SHELL
   ============================================================ */
.app {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: var(--rail-w) 1fr;
  grid-template-rows: var(--strip-h) 1fr;
  grid-template-areas:
    "rail strip"
    "rail main";
  height: 100vh;
}

/* ---------- Icon rail ---------- */
.rail {
  grid-area: rail;
  background: linear-gradient(180deg, #0c1017, #0a0d13);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center;
  padding: 12px 0 14px;
  gap: 4px; z-index: 30;
}
.rail-logo {
  width: 36px; height: 36px; border-radius: 9px;
  display: grid; place-items: center; margin-bottom: 14px;
  background: linear-gradient(150deg, #22d3ee, #0e7490);
  box-shadow: 0 0 0 1px rgba(34,211,238,.4), 0 6px 18px rgba(34,211,238,.28);
  position: relative;
}
.rail-logo svg { width: 21px; height: 21px; }
.rail-logo::after {
  content: ''; position: absolute; inset: 0; border-radius: 9px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}
.rail-nav { display: flex; flex-direction: column; gap: 3px; width: 100%; align-items: center; }
.rail-btn {
  width: 42px; height: 42px; border-radius: 10px;
  display: grid; place-items: center;
  color: var(--muted); background: transparent;
  border: 1px solid transparent; cursor: pointer; position: relative;
  transition: color .16s var(--ease), background .16s var(--ease);
}
.rail-btn svg { width: 19px; height: 19px; }
.rail-btn:hover { color: var(--txt-2); background: #141a23; }
.rail-btn.active { color: var(--accent); background: rgba(34,211,238,.08); border-color: rgba(34,211,238,.22); }
.rail-btn.active::before {
  content: ''; position: absolute; left: -10px; top: 9px; bottom: 9px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.rail-btn .tip {
  position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%) translateX(-4px);
  background: #1d2530; color: var(--txt); border: 1px solid var(--line-2);
  padding: 5px 9px; border-radius: 7px; font-size: 11.5px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .14s, transform .14s; z-index: 60;
  box-shadow: var(--shadow-2); font-weight: 500;
}
.rail-btn .tip kbd { margin-left: 6px; }
.rail-btn:hover .tip { opacity: 1; transform: translateY(-50%) translateX(0); }
.rail-spacer { flex: 1; }
.rail-avatar {
  width: 36px; height: 36px; border-radius: 50%; margin-top: 6px;
  display: grid; place-items: center; font-weight: 700; font-size: 12px;
  color: #06121a; background: linear-gradient(145deg, #2dd4bf, #22d3ee);
  cursor: pointer; box-shadow: 0 0 0 1px rgba(45,212,191,.4);
}

kbd {
  font-family: var(--mono); font-size: 10px;
  background: #1f2733; border: 1px solid var(--line-2); border-bottom-width: 2px;
  border-radius: 5px; padding: 1px 5px; color: var(--txt-2); line-height: 1.4;
}

/* ---------- Top status strip (deliverability ticker) ---------- */
.strip {
  grid-area: strip;
  background: linear-gradient(180deg, #11161f, #0d1118);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 0;
  padding: 0 14px 0 16px; z-index: 20; min-width: 0;
}
.strip-brand { display: flex; align-items: baseline; gap: 8px; margin-right: 8px; flex-shrink: 0; }
.strip-brand .wm { font-weight: 750; font-size: 14px; letter-spacing: -0.02em; }
.strip-brand .wm span { color: var(--accent); }
.strip-brand .tagline { font-size: 10px; color: var(--faint); letter-spacing: .12em; text-transform: uppercase; }

.strip-ticker {
  display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0;
  margin-left: 14px; overflow: hidden;
}
.tick {
  display: flex; align-items: center; gap: 8px; padding: 0 16px; height: 28px;
  border-left: 1px solid var(--line-soft); flex-shrink: 0;
}
.tick:first-child { border-left: 0; }
.tick .tk-label { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.tick .tk-val { font-size: 12.5px; font-weight: 600; }
.tick .tk-val.mono { font-size: 12px; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; position: relative; }
.dot.g { background: var(--green); box-shadow: 0 0 0 3px rgba(52,211,153,.15); }
.dot.a { background: var(--amber); box-shadow: 0 0 0 3px rgba(251,191,36,.15); }
.dot.r { background: var(--red);   box-shadow: 0 0 0 3px rgba(248,113,113,.15); }
.dot.live { animation: pulse 2.4s infinite; }
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(52,211,153,.5); }
  50%     { box-shadow: 0 0 0 5px rgba(52,211,153,0); }
}
.strip-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: 10px; }
.cmdk-btn {
  display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px 0 11px;
  background: #131922; border: 1px solid var(--line-2); border-radius: 8px;
  color: var(--muted); cursor: pointer; font-size: 12px; transition: border-color .15s, color .15s;
}
.cmdk-btn:hover { border-color: var(--accent-dim); color: var(--txt-2); }
.cmdk-btn svg { width: 14px; height: 14px; }
.strip-clock { font-size: 11px; color: var(--faint); }

/* ---------- Main scroll region ---------- */
.main {
  grid-area: main; overflow: hidden; position: relative; min-width: 0;
}
.view {
  position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden;
  padding: 18px 22px 30px;
  display: none;
  animation: viewIn .28s var(--ease);
}
.view.active { display: block; }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.view-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 16px; gap: 16px; flex-wrap: wrap;
}
.view-title { display: flex; flex-direction: column; gap: 3px; }
.view-title h1 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.view-title .sub { color: var(--muted); font-size: 12px; }
.view-title .crumb { color: var(--faint); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px;
  border-radius: 8px; border: 1px solid var(--line-2); background: #141a23;
  color: var(--txt-2); font-family: var(--sans); font-size: 12.5px; font-weight: 550;
  cursor: pointer; transition: all .15s var(--ease); white-space: nowrap;
}
.btn:hover { background: #1a212c; color: var(--txt); border-color: #38424f; }
.btn svg { width: 14px; height: 14px; }
.btn-primary {
  background: linear-gradient(150deg, #22d3ee, #0bb6d6);
  color: #04141a; border-color: transparent; font-weight: 650;
  box-shadow: 0 4px 14px rgba(34,211,238,.22), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-primary:hover { background: linear-gradient(150deg, #3ddcf2, #18c0e0); color: #04141a; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: #161d27; }
.btn-sm { height: 27px; padding: 0 10px; font-size: 11.5px; border-radius: 7px; }
.btn-icon { width: 32px; padding: 0; justify-content: center; }
.btn:disabled { opacity: .42; cursor: not-allowed; }

/* ---------- Panels / cards ---------- */
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}
.panel-pad { padding: 15px 16px; }
.panel-h {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 14px; border-bottom: 1px solid var(--line);
}
.panel-h h3 { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--txt); }
.panel-h .eyebrow { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.panel-h .h-actions { display: flex; align-items: center; gap: 6px; }

/* grids */
.grid { display: grid; gap: 14px; }
.dash-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(12, 1fr);
}
.col-3 { grid-column: span 3; } .col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; } .col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; } .col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; } .col-12 { grid-column: span 12; }

/* ---------- Stat cards ---------- */
.stat {
  position: relative; overflow: hidden;
  padding: 13px 14px 11px;
}
.stat .s-label { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.stat .s-value { font-size: 27px; font-weight: 650; margin: 5px 0 1px; letter-spacing: -0.02em; line-height: 1; }
.stat .s-value .unit { font-size: 14px; color: var(--muted); font-weight: 500; margin-left: 1px; }
.stat .s-foot { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.stat .s-spark { position: absolute; right: 12px; bottom: 11px; width: 80px; height: 30px; opacity: .9; }
.stat.accent .s-value { color: var(--accent); text-shadow: 0 0 22px rgba(34,211,238,.35); }
.delta { font-family: var(--mono); font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; gap: 2px; }
.delta.up { color: var(--green); }
.delta.down { color: var(--red); }
.delta.flat { color: var(--muted); }

/* ---------- Pills / badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 5px; height: 21px; padding: 0 8px;
  border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .01em;
  border: 1px solid transparent; white-space: nowrap;
}
.pill .pd { width: 6px; height: 6px; border-radius: 50%; }
.pill.green { background: rgba(52,211,153,.1); color: var(--green); border-color: rgba(52,211,153,.22); }
.pill.amber { background: rgba(251,191,36,.1); color: var(--amber); border-color: rgba(251,191,36,.22); }
.pill.red   { background: rgba(248,113,113,.1); color: var(--red); border-color: rgba(248,113,113,.22); }
.pill.cyan  { background: rgba(34,211,238,.1); color: var(--accent); border-color: rgba(34,211,238,.22); }
.pill.violet{ background: rgba(167,139,250,.1); color: var(--violet); border-color: rgba(167,139,250,.22); }
.pill.blue  { background: rgba(96,165,250,.1); color: var(--blue); border-color: rgba(96,165,250,.22); }
.pill.muted { background: #1a212b; color: var(--muted); border-color: var(--line-2); }
.pill.solid-green { background: var(--green-d); color: #04140e; border:0; }

.chip {
  display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px;
  border-radius: 6px; font-size: 10.5px; font-weight: 550;
  background: #1a212b; color: var(--txt-2); border: 1px solid var(--line-2);
}
.chip.tag::before { content: '#'; color: var(--accent); opacity: .8; font-weight: 700; }
.chip.src { color: var(--muted); }
.chip.src::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--violet); }

/* stage dot */
.stage-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex-shrink: 0; }

/* avatar */
.av {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 650; font-size: 10.5px;
  color: #061018; background: linear-gradient(145deg, var(--av-a, #2dd4bf), var(--av-b, #22d3ee));
}
.av.lg { width: 44px; height: 44px; border-radius: 11px; font-size: 15px; }

/* ---------- Tables ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.tbl thead th {
  text-align: left; font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--faint); font-weight: 600; padding: 9px 12px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--panel); z-index: 2; white-space: nowrap;
}
.tbl thead th.r { text-align: right; }
.tbl tbody td { padding: 9px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.tbl tbody td.r { text-align: right; }
.tbl tbody tr { cursor: pointer; transition: background .12s; }
.tbl tbody tr:hover { background: #181f29; }
.tbl tbody tr.sel { background: rgba(34,211,238,.06); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.td-strong { font-weight: 600; color: var(--txt); }
.bar-mini { height: 4px; border-radius: 3px; background: #232b37; overflow: hidden; min-width: 46px; }
.bar-mini > i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--accent-dim), var(--accent)); }

/* engagement bar */
.eng { display: inline-flex; gap: 2px; align-items: center; }
.eng i { width: 4px; border-radius: 2px; background: #2a333f; }
.eng i.on { background: var(--accent); }

/* ---------- Toggle switch ---------- */
.sw {
  --w: 42px; --h: 24px;
  width: var(--w); height: var(--h); border-radius: 999px; background: #232c38;
  border: 1px solid var(--line-2); position: relative; cursor: pointer; flex-shrink: 0;
  transition: background .2s var(--ease), border-color .2s;
}
.sw::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
  border-radius: 50%; background: #aeb8c4; transition: transform .22s var(--ease), background .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.5);
}
.sw.on { background: linear-gradient(90deg, #0e7490, #22d3ee); border-color: transparent; }
.sw.on::after { transform: translateX(18px); background: #fff; }
.sw.sm { --w: 34px; --h: 20px; }
.sw.sm::after { width: 14px; height: 14px; }
.sw.sm.on::after { transform: translateX(14px); }

/* ---------- Segmented control ---------- */
.seg {
  display: inline-flex; background: #11161f; border: 1px solid var(--line-2);
  border-radius: 9px; padding: 3px; gap: 2px;
}
.seg button {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font-family: var(--mono); font-size: 11.5px; font-weight: 600; padding: 4px 11px; border-radius: 6px;
  transition: all .14s var(--ease); letter-spacing: -0.01em;
}
.seg button:hover { color: var(--txt-2); }
.seg button.on { background: rgba(34,211,238,.14); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(34,211,238,.25); }

/* ---------- Inputs ---------- */
.fld { display: flex; flex-direction: column; gap: 6px; }
.fld label { font-size: 11px; color: var(--muted); font-weight: 550; letter-spacing: .01em; }
.inp, textarea.inp, select.inp {
  width: 100%; background: #10151d; border: 1px solid var(--line-2); border-radius: 8px;
  color: var(--txt); font-family: var(--sans); font-size: 13px; padding: 9px 11px;
  transition: border-color .15s, box-shadow .15s; outline: none;
}
.inp:focus, textarea.inp:focus, select.inp:focus {
  border-color: var(--accent-dim); box-shadow: 0 0 0 3px var(--accent-glow);
}
.inp::placeholder { color: var(--faint); }
textarea.inp { resize: vertical; line-height: 1.65; min-height: 120px; }
select.inp { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237d8694' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; padding-right: 30px; }

.search {
  display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 11px;
  background: #10151d; border: 1px solid var(--line-2); border-radius: 8px; min-width: 220px;
  transition: border-color .15s, box-shadow .15s;
}
.search:focus-within { border-color: var(--accent-dim); box-shadow: 0 0 0 3px var(--accent-glow); }
.search svg { width: 15px; height: 15px; color: var(--faint); flex-shrink: 0; }
.search input { background: transparent; border: 0; outline: 0; color: var(--txt); font-size: 12.5px; width: 100%; font-family: var(--sans); }
.search input::placeholder { color: var(--faint); }

/* ============================================================
   DASHBOARD specifics
   ============================================================ */
.health-panel { position: relative; overflow: hidden; }
.health-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); }
.health-cell { padding: 14px 16px; border-left: 1px solid var(--line-soft); position: relative; }
.health-cell:first-child { border-left: 0; }
.health-cell .hc-label { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.health-cell .hc-val { font-size: 19px; font-weight: 650; margin-top: 6px; display: flex; align-items: center; gap: 8px; letter-spacing: -0.02em; }
.health-cell .hc-read { font-size: 10.5px; color: var(--muted); margin-top: 4px; }
.health-domain { display: flex; flex-direction: column; gap: 9px; }
.health-domain .hd-top { display: flex; align-items: center; gap: 9px; }
.health-domain .hd-top .nm { font-family: var(--mono); font-size: 15px; font-weight: 600; }
.auth-row { display: flex; gap: 6px; flex-wrap: wrap; }
.auth-chip {
  display: inline-flex; align-items: center; gap: 5px; height: 23px; padding: 0 8px;
  border-radius: 6px; background: rgba(52,211,153,.08); border: 1px solid rgba(52,211,153,.2);
  font-size: 10.5px; font-weight: 600; color: var(--green); font-family: var(--mono);
}
.auth-chip svg { width: 12px; height: 12px; }
.auth-chip.warn { background: rgba(251,191,36,.08); border-color: rgba(251,191,36,.2); color: var(--amber); }
.health-read-line {
  display: flex; align-items: center; gap: 8px; padding: 10px 16px;
  border-top: 1px solid var(--line); font-size: 12px; color: var(--txt-2);
  background: linear-gradient(90deg, rgba(52,211,153,.05), transparent 70%);
}
.health-read-line strong { color: var(--green); font-weight: 600; }

.opens-foot { font-size: 11px; color: var(--faint); display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.opens-foot .q { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line-2); display: inline-grid; place-items: center; font-size: 9px; color: var(--muted); cursor: help; }

/* big chart */
.chart-wrap { padding: 6px 8px 4px; }
.chart-legend { display: flex; gap: 14px; align-items: center; font-size: 11px; color: var(--muted); }
.chart-legend .lg { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend .swatch { width: 18px; height: 3px; border-radius: 2px; }

/* running list */
.run-item { display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-bottom: 1px solid var(--line-soft); }
.run-item:last-child { border-bottom: 0; }
.run-ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; background: rgba(34,211,238,.08); color: var(--accent); }
.run-ico svg { width: 15px; height: 15px; }
.run-ico.sched { background: rgba(167,139,250,.1); color: var(--violet); }
.run-meta { flex: 1; min-width: 0; }
.run-meta .rn { font-size: 12.5px; font-weight: 600; }
.run-meta .rd { font-size: 11px; color: var(--muted); }

/* smart group rail (contacts) */
.seg-rail { display: flex; gap: 10px; }
.seg-card {
  flex: 1; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--panel); cursor: pointer; transition: all .16s var(--ease); position: relative; overflow: hidden;
}
.seg-card:hover { border-color: var(--line-2); transform: translateY(-1px); }
.seg-card.on { border-color: rgba(34,211,238,.4); box-shadow: 0 0 0 1px rgba(34,211,238,.25), 0 8px 24px rgba(34,211,238,.07); }
.seg-card .sc-top { display: flex; align-items: center; justify-content: space-between; }
.seg-card .sc-name { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.seg-card .sc-num { font-size: 24px; font-weight: 650; margin-top: 4px; letter-spacing: -0.02em; }
.seg-card .sc-bar { height: 3px; border-radius: 3px; margin-top: 9px; background: #232b37; overflow: hidden; }
.seg-card .sc-bar > i { display: block; height: 100%; }

/* ---------- Contacts layout ---------- */
.contacts-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.filter-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.filter-row .fl-label { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-right: 2px; }
.fchip {
  display: inline-flex; align-items: center; gap: 5px; height: 25px; padding: 0 9px;
  border-radius: 7px; font-size: 11px; font-weight: 550; cursor: pointer;
  background: #141a23; border: 1px solid var(--line-2); color: var(--txt-2); transition: all .14s;
}
.fchip:hover { border-color: #3a4452; }
.fchip.on { background: rgba(34,211,238,.12); color: var(--accent); border-color: rgba(34,211,238,.3); }

/* ---------- Drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(4,7,11,.62); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .22s; z-index: 90; }
.scrim.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 470px; max-width: 92vw; z-index: 100;
  background: linear-gradient(180deg, #12171f, #0f141c); border-left: 1px solid var(--line-2);
  box-shadow: var(--shadow-pop); transform: translateX(100%); transition: transform .3s var(--ease);
  display: flex; flex-direction: column;
}
.drawer.show { transform: none; }
.drawer-head { padding: 16px 18px 14px; border-bottom: 1px solid var(--line); }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 18px 24px; }
.drawer-foot { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; background: #0f141c; }
.drawer-close { position: absolute; top: 14px; right: 14px; }

.dh-id { display: flex; align-items: center; gap: 12px; }
.dh-id .nm { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.dh-id .em { font-size: 12px; color: var(--muted); font-family: var(--mono); }
.kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-soft); border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.kv { background: var(--panel); padding: 10px 12px; }
.kv .k { font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.kv .v { font-size: 12.5px; margin-top: 3px; font-weight: 550; }
.kv .v.mono { font-size: 12px; }
.kv.full { grid-column: 1 / -1; }
.sec-label { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 700; margin: 18px 0 9px; }
.note-box { background: #10151d; border: 1px solid var(--line-2); border-radius: 9px; padding: 11px 12px; font-size: 12px; color: var(--txt-2); line-height: 1.6; }

/* timeline */
.tl { position: relative; padding-left: 18px; }
.tl::before { content: ''; position: absolute; left: 4px; top: 4px; bottom: 4px; width: 1px; background: var(--line-2); }
.tl-item { position: relative; padding: 4px 0 12px; }
.tl-item::before { content: ''; position: absolute; left: -17px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(34,211,238,.12); }
.tl-item:last-child { padding-bottom: 0; }
.tl-item .tl-txt { font-size: 12px; color: var(--txt-2); }

/* ============================================================
   COMPOSER (Email builder)
   ============================================================ */
.composer { display: grid; grid-template-columns: 1fr 380px; gap: 16px; align-items: start; }
.steps-rail { display: flex; gap: 4px; margin-bottom: 14px; }
.step-pip {
  display: flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 8px;
  background: #131922; border: 1px solid var(--line-2); cursor: pointer; transition: all .15s;
  font-size: 12px; color: var(--muted); font-weight: 550;
}
.step-pip:hover { color: var(--txt-2); }
.step-pip .pnum { width: 18px; height: 18px; border-radius: 50%; background: #222b37; color: var(--muted); display: grid; place-items: center; font-size: 10px; font-weight: 700; font-family: var(--mono); }
.step-pip.on { border-color: rgba(34,211,238,.4); color: var(--txt); background: rgba(34,211,238,.06); }
.step-pip.on .pnum { background: var(--accent); color: #04141a; }
.step-pip.done .pnum { background: var(--green-d); color: #04140e; }

.merge-bar { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; padding: 8px 0 0; }
.merge-tag {
  font-family: var(--mono); font-size: 11px; padding: 3px 8px; border-radius: 6px;
  background: #131922; border: 1px solid var(--line-2); color: var(--accent); cursor: pointer; transition: all .13s;
}
.merge-tag:hover { background: rgba(34,211,238,.1); border-color: rgba(34,211,238,.3); }

.tmpl-pick { display: flex; flex-direction: column; gap: 6px; }
.tmpl-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 11px; border-radius: 8px; background: #131922; border: 1px solid var(--line-2); cursor: pointer; transition: all .14s; }
.tmpl-item:hover { border-color: var(--accent-dim); background: #161d27; }
.tmpl-item .ti-name { font-size: 12px; font-weight: 600; }
.tmpl-item .ti-cat { font-size: 10px; color: var(--muted); }

/* email preview frame */
.preview-frame {
  background: #fff; border-radius: 14px; overflow: hidden; color: #1a1f29;
  box-shadow: 0 14px 40px rgba(0,0,0,.5); font-family: -apple-system, 'Segoe UI', sans-serif;
}
.pf-bar { background: #f3f4f6; border-bottom: 1px solid #e5e7eb; padding: 9px 13px; display: flex; align-items: center; gap: 7px; }
.pf-bar .dts { display: flex; gap: 5px; } .pf-bar .dts i { width: 9px; height: 9px; border-radius: 50%; }
.pf-from { padding: 13px 16px 8px; border-bottom: 1px solid #eef0f2; }
.pf-from .pf-name { font-size: 13px; font-weight: 700; color: #111; }
.pf-from .pf-em { font-size: 11px; color: #6b7280; }
.pf-subject { padding: 11px 16px 2px; font-size: 15px; font-weight: 700; color: #111; }
.pf-body { padding: 8px 16px 18px; font-size: 13px; line-height: 1.65; color: #374151; }
.pf-body p { margin: 0 0 11px; }
.pf-cta { display: inline-block; background: #0e7490; color: #fff; padding: 9px 16px; border-radius: 7px; font-weight: 600; font-size: 12.5px; text-decoration: none; }
.pf-foot { padding: 12px 16px; border-top: 1px solid #eef0f2; font-size: 10.5px; color: #9ca3af; line-height: 1.55; }
.pf-foot a { color: #6b7280; }

/* device frame label */
.preview-tab { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.preview-tab .pt-label { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 700; }

/* AI button */
.ai-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px;
  border-radius: 8px; cursor: pointer; font-size: 12px; font-weight: 600;
  background: linear-gradient(135deg, rgba(167,139,250,.16), rgba(34,211,238,.14));
  border: 1px solid rgba(167,139,250,.32); color: #c7b6ff; transition: all .15s;
}
.ai-btn:hover { border-color: rgba(167,139,250,.55); box-shadow: 0 0 16px rgba(167,139,250,.2); }
.ai-btn svg { width: 14px; height: 14px; }
.ai-btn.busy { pointer-events: none; }
.ai-btn.busy .dots::after { content: ''; animation: dots 1.2s infinite steps(4); }
@keyframes dots { 0%{content:'';} 25%{content:'.';} 50%{content:'..';} 75%{content:'...';} }

/* ---------- Review & Send ---------- */
.review-grid { display: grid; grid-template-columns: 1fr 360px; gap: 16px; align-items: start; }
.preflight { display: flex; flex-direction: column; gap: 0; }
.pf-check { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); font-size: 12.5px; }
.pf-check:last-child { border-bottom: 0; }
.pf-check .ck { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; flex-shrink: 0; }
.pf-check .ck.ok { background: rgba(52,211,153,.14); color: var(--green); }
.pf-check .ck svg { width: 13px; height: 13px; }
.pf-check .pf-sub { font-size: 11px; color: var(--muted); margin-left: auto; font-family: var(--mono); }

.recipient-bar { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.recipient-bar .rb-big { font-size: 30px; font-weight: 650; letter-spacing: -0.02em; }
.recipient-bar .rb-meta { display: flex; flex-direction: column; gap: 3px; }

/* batch send — the star */
.batch-card {
  border: 1px solid rgba(34,211,238,.28); border-radius: 12px; overflow: hidden;
  background: linear-gradient(180deg, rgba(34,211,238,.05), rgba(34,211,238,.01));
  box-shadow: 0 0 0 1px rgba(34,211,238,.08), 0 10px 30px rgba(34,211,238,.05);
}
.batch-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.batch-head .bh-ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: rgba(34,211,238,.12); color: var(--accent); flex-shrink: 0; }
.batch-head .bh-ico svg { width: 18px; height: 18px; }
.batch-head .bh-txt { flex: 1; min-width: 0; }
.batch-head .bh-txt .bt { font-size: 13.5px; font-weight: 650; display: flex; align-items: center; gap: 7px; }
.batch-head .bh-txt .bs { font-size: 11.5px; color: var(--muted); }
.batch-body { padding: 4px 16px 16px; overflow: hidden; transition: max-height .3s var(--ease), opacity .25s; }
.batch-body.collapsed { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; }
.batch-ctl { margin-top: 14px; }
.batch-ctl .bc-label { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 7px; display: flex; justify-content: space-between; }
.batch-ctl .bc-label .bc-cur { color: var(--accent); font-family: var(--mono); }
.seg.wide { display: grid; grid-template-columns: repeat(6, 1fr); width: 100%; }
.seg.wide button { text-align: center; }

.batch-estimate {
  margin-top: 16px; padding: 14px 16px; border-radius: 10px;
  background: #0c1118; border: 1px solid var(--line-2);
  display: flex; align-items: center; gap: 14px;
}
.batch-estimate .be-ico { color: var(--accent); }
.batch-estimate .be-ico svg { width: 22px; height: 22px; }
.batch-estimate .be-txt { font-size: 13px; line-height: 1.55; }
.batch-estimate .be-txt b { color: var(--txt); font-weight: 650; }
.batch-estimate .be-txt .be-hl { color: var(--accent); font-family: var(--mono); font-weight: 600; }
.batch-timeline { display: flex; gap: 3px; margin-top: 12px; height: 30px; align-items: flex-end; }
.batch-timeline i { flex: 1; background: linear-gradient(180deg, var(--accent), var(--accent-dim)); border-radius: 2px 2px 0 0; opacity: .85; min-height: 4px; transition: height .3s var(--ease); }

/* tooltip popover */
.qmark { width: 17px; height: 17px; border-radius: 50%; border: 1px solid var(--line-2); display: inline-grid; place-items: center; font-size: 10px; color: var(--muted); cursor: help; flex-shrink: 0; transition: all .14s; position: relative; }
.qmark:hover { border-color: var(--accent-dim); color: var(--accent); }
.qmark .pop {
  position: absolute; bottom: calc(100% + 9px); left: 50%; transform: translateX(-50%) translateY(4px);
  width: 290px; background: #1a212c; border: 1px solid var(--line-2); border-radius: 10px;
  padding: 12px 13px; font-size: 11.5px; line-height: 1.6; color: var(--txt-2); text-align: left;
  box-shadow: var(--shadow-pop); opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; z-index: 70; font-weight: 400;
}
.qmark .pop strong { color: var(--accent); font-weight: 600; }
.qmark .pop::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: #1a212c; }
.qmark:hover .pop { opacity: 1; transform: translateX(-50%); }

/* A/B test block */
.ab-block { border: 1px solid var(--line-2); border-radius: 11px; overflow: hidden; }
.ab-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.ab-body { padding: 6px 14px 14px; display: none; }
.ab-body.show { display: block; }
.ab-variant { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.ab-variant:last-child { border-bottom: 0; }
.ab-letter { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-weight: 700; font-family: var(--mono); flex-shrink: 0; font-size: 12px; background: #1a212b; color: var(--muted); }
.ab-variant.win .ab-letter { background: rgba(52,211,153,.16); color: var(--green); }
.ab-subj { flex: 1; font-size: 12px; color: var(--txt-2); }

/* ============================================================
   SEQUENCES
   ============================================================ */
.seq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.seq-card { display: flex; flex-direction: column; transition: all .18s var(--ease); }
.seq-card.is-on { border-color: rgba(52,211,153,.28); box-shadow: 0 0 0 1px rgba(52,211,153,.12), 0 8px 24px rgba(0,0,0,.25); }
.seq-top { display: flex; align-items: flex-start; gap: 12px; padding: 15px 16px 12px; }
.seq-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; background: #1a212b; color: var(--muted); transition: all .2s; }
.seq-ico svg { width: 19px; height: 19px; }
.seq-card.is-on .seq-ico { background: rgba(52,211,153,.12); color: var(--green); }
.seq-info { flex: 1; min-width: 0; }
.seq-info .sq-name { font-size: 14px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.seq-info .sq-desc { font-size: 11.5px; color: var(--muted); line-height: 1.5; margin-top: 3px; }
.seq-steps { padding: 4px 16px 8px; border-top: 1px solid var(--line-soft); margin-top: 2px; }
.seq-step { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.seq-step:last-child { border-bottom: 0; }
.seq-day { font-family: var(--mono); font-size: 10px; font-weight: 600; color: var(--accent); width: 38px; flex-shrink: 0; padding-top: 1px; letter-spacing: -0.02em; }
.seq-step .ss-subj { font-size: 12px; font-weight: 550; color: var(--txt-2); }
.seq-step .ss-note { font-size: 10.5px; color: var(--faint); margin-top: 1px; }
.seq-foot { display: flex; align-items: center; justify-content: space-between; padding: 11px 16px; border-top: 1px solid var(--line); margin-top: auto; }
.seq-foot .sf-enrolled { font-size: 11px; color: var(--muted); }
.seq-foot .sf-enrolled b { color: var(--txt); font-family: var(--mono); }

/* ============================================================
   ANALYTICS
   ============================================================ */
.analytics-bars { padding: 12px 16px 16px; }
.abar-row { display: grid; grid-template-columns: 200px 1fr 56px; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.abar-row:last-child { border-bottom: 0; }
.abar-name { font-size: 12px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.abar-track { height: 22px; background: #161d27; border-radius: 6px; overflow: hidden; position: relative; }
.abar-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--accent-dim), var(--accent)); display: flex; align-items: center; justify-content: flex-end; padding-right: 8px; min-width: 30px; transition: width .5s var(--ease); }
.abar-fill .v { font-family: var(--mono); font-size: 10.5px; font-weight: 600; color: #04141a; }
.abar-val { text-align: right; font-family: var(--mono); font-size: 12px; font-weight: 600; }

/* campaign table status pill helpers already covered */
.ab-win-badge { display: inline-flex; align-items: center; gap: 4px; }

/* ============================================================
   SETTINGS
   ============================================================ */
.settings-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.settings-tab { padding: 9px 14px; font-size: 12.5px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 550; transition: color .15s; }
.settings-tab:hover { color: var(--txt-2); }
.settings-tab.on { color: var(--accent); border-bottom-color: var(--accent); }

.dns-row { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 14px; padding: 13px 16px; border-bottom: 1px solid var(--line-soft); }
.dns-row:last-child { border-bottom: 0; }
.dns-row .dns-type { font-family: var(--mono); font-weight: 700; font-size: 12px; }
.dns-row .dns-desc .dt { font-size: 12px; font-weight: 600; }
.dns-row .dns-desc .dd { font-size: 11px; color: var(--muted); }

.pref-frame { background: #fff; color: #1a1f29; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.pref-hd { padding: 18px 20px; border-bottom: 1px solid #eef0f2; }
.pref-hd .ph-brand { font-weight: 800; font-size: 15px; color: #0e7490; }
.pref-hd .ph-sub { font-size: 11px; color: #6b7280; margin-top: 2px; }
.pref-bd { padding: 16px 20px; }
.pref-opt { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px solid #f1f3f5; }
.pref-opt:last-child { border-bottom: 0; }
.pref-opt .po-check { width: 19px; height: 19px; border-radius: 5px; border: 1.5px solid #0e7490; background: #0e7490; display: grid; place-items: center; flex-shrink: 0; }
.pref-opt .po-check.off { background: #fff; }
.pref-opt .po-check svg { width: 12px; height: 12px; color: #fff; }
.pref-opt .po-txt .pt { font-size: 13px; font-weight: 600; color: #1f2937; }
.pref-opt .po-txt .ps { font-size: 11px; color: #6b7280; }
.pref-unsub { padding: 14px 20px; border-top: 1px solid #eef0f2; text-align: center; font-size: 12px; color: #9ca3af; }
.pref-unsub a { color: #0e7490; font-weight: 600; }

/* hygiene note */
.hygiene-note { display: flex; gap: 11px; padding: 13px 15px; border-radius: 10px; background: rgba(52,211,153,.05); border: 1px solid rgba(52,211,153,.18); align-items: flex-start; }
.hygiene-note .hn-ico { color: var(--green); flex-shrink: 0; margin-top: 1px; }
.hygiene-note .hn-ico svg { width: 17px; height: 17px; }
.hygiene-note .hn-txt { font-size: 12px; color: var(--txt-2); line-height: 1.55; }
.hygiene-note .hn-txt b { color: var(--green); }

/* ============================================================
   COMMAND PALETTE (⌘K)
   ============================================================ */
.cmdk { position: fixed; inset: 0; z-index: 200; display: none; }
.cmdk.show { display: block; }
.cmdk-scrim { position: absolute; inset: 0; background: rgba(4,7,11,.6); backdrop-filter: blur(4px); }
.cmdk-box {
  position: absolute; top: 14vh; left: 50%; transform: translateX(-50%);
  width: 560px; max-width: 92vw; background: #12171f; border: 1px solid var(--line-2);
  border-radius: 14px; box-shadow: var(--shadow-pop); overflow: hidden;
  animation: popIn .2s var(--ease);
}
@keyframes popIn { from { opacity: 0; transform: translateX(-50%) translateY(-8px) scale(.98); } to { opacity: 1; transform: translateX(-50%); } }
.cmdk-input { display: flex; align-items: center; gap: 11px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.cmdk-input svg { width: 17px; height: 17px; color: var(--muted); }
.cmdk-input input { flex: 1; background: transparent; border: 0; outline: 0; color: var(--txt); font-size: 15px; font-family: var(--sans); }
.cmdk-input input::placeholder { color: var(--faint); }
.cmdk-list { max-height: 340px; overflow-y: auto; padding: 6px; }
.cmdk-group-label { font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 700; padding: 8px 10px 4px; }
.cmdk-item { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.cmdk-item .ci-ico { width: 26px; height: 26px; border-radius: 7px; background: #1a212b; display: grid; place-items: center; color: var(--muted); flex-shrink: 0; }
.cmdk-item .ci-ico svg { width: 14px; height: 14px; }
.cmdk-item .ci-name { font-size: 13px; flex: 1; }
.cmdk-item .ci-kbd { font-size: 10px; color: var(--faint); }
.cmdk-item.sel { background: rgba(34,211,238,.1); }
.cmdk-item.sel .ci-ico { background: rgba(34,211,238,.16); color: var(--accent); }
.cmdk-foot { display: flex; align-items: center; gap: 16px; padding: 9px 14px; border-top: 1px solid var(--line); font-size: 10.5px; color: var(--faint); }
.cmdk-foot span { display: inline-flex; align-items: center; gap: 5px; }

/* ============================================================
   TOAST
   ============================================================ */
.toast-wrap { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 11px 15px; border-radius: 10px;
  background: #1a212c; border: 1px solid var(--line-2); box-shadow: var(--shadow-pop);
  font-size: 12.5px; color: var(--txt); animation: toastIn .3s var(--ease); max-width: 440px;
}
.toast .t-ico { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; flex-shrink: 0; background: rgba(34,211,238,.14); color: var(--accent); }
.toast .t-ico svg { width: 13px; height: 13px; }
.toast.ok .t-ico { background: rgba(52,211,153,.14); color: var(--green); }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.toast.out { animation: toastOut .3s var(--ease) forwards; }
@keyframes toastOut { to { opacity: 0; transform: translateY(14px); } }

/* misc */
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 46px 20px; text-align: center; color: var(--muted); }
.empty svg { width: 34px; height: 34px; color: var(--faint); }
.empty .e-title { font-size: 13px; font-weight: 600; color: var(--txt-2); }
.spark-up { color: var(--green); }
.text-muted { color: var(--muted); }
.text-faint { color: var(--faint); }
.mt-14 { margin-top: 14px; } .mt-10 { margin-top: 10px; } .mb-12 { margin-bottom: 12px; }
.flex { display: flex; } .between { justify-content: space-between; } .center { align-items: center; }
.gap-8 { gap: 8px; } .gap-10 { gap: 10px; } .gap-6 { gap: 6px; }
.divider { height: 1px; background: var(--line); margin: 14px 0; }

/* responsive nudge */
@media (max-width: 1280px) {
  .composer, .review-grid { grid-template-columns: 1fr; }
  .seq-grid { grid-template-columns: 1fr; }
  .col-3 { grid-column: span 6; }
  .health-grid { grid-template-columns: 1fr 1fr 1fr; }
  .health-cell:nth-child(1) { grid-column: 1 / -1; }
  .strip-ticker .tick:nth-child(n+5) { display: none; }
}
@media (max-width: 1080px) {
  .dash-grid > [class*="col-"] { grid-column: 1 / -1; }
}
