/* ============================================================================
   Investor redesign — Phase 2 additions
   Sleek, restrained, matches handoff aesthetic. All tokens from iv-tokens.css.
   ========================================================================== */

/* ── Slim verification bar (replaces the giant dark trust band) ─────────── */
.iv-verify-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  margin-bottom: 18px;
  background: var(--panel-alt);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.5;
}
.iv-verify-bar > svg { color: var(--success); flex-shrink: 0; }
.iv-verify-bar > span { flex: 1; min-width: 0; }
.iv-verify-bar > span strong { color: var(--ink-1); font-weight: 600; }
.iv-verify-bar > button { flex-shrink: 0; }

/* ── Card refinement (additive on tz-card) ──────────────────────────────── */
.iv-card { display: flex; flex-direction: column; gap: 12px; }
.iv-card .tz-card-title { margin: 2px 0 0; }

/* ── Counterparty block — paymaster + originator dense rows ─────────────── */
.iv-cp {
  background: var(--panel-alt);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.iv-cp-row {
  display: grid;
  grid-template-columns: 78px 1fr auto;
  align-items: baseline;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.4;
}
.iv-cp-lbl {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-5);
  font-weight: 600;
}
.iv-cp-row > strong {
  color: var(--ink-1);
  font-weight: 600;
  font-size: 13px;
}
.iv-cp-health,
.iv-cp-history {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--success);
  font-weight: 500;
  white-space: nowrap;
}
.iv-cp-health.watch { color: var(--warn); }
.iv-cp-history.new { color: var(--info); }
.iv-cp-health > svg,
.iv-cp-history > svg { flex-shrink: 0; }

/* ── Concentration warning chip ─────────────────────────────────────────── */
.iv-conc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: var(--warn-bg);
  border: 1px solid var(--warn-bd);
  border-radius: 6px;
  font-size: 12px;
  color: var(--warn);
  line-height: 1.4;
}
.iv-conc > svg { flex-shrink: 0; }
.iv-conc strong { font-weight: 700; }

/* ── Co-investors stat: small avatar stack ──────────────────────────────── */
.iv-stat-synd .lbl {
  /* Inherits .lbl from .tz-stat — let it sit normally */
}
.iv-synd-stack {
  display: flex;
  align-items: center;
  margin-top: 4px;
}
.iv-synd-av {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: grid;
  place-items: center;
  border: 2px solid var(--panel);
  margin-left: -6px;
  text-transform: uppercase;
  cursor: default;
  transition: transform 120ms cubic-bezier(0.4, 0, 0.2, 1);
}
.iv-synd-av:first-child { margin-left: 0; }
.iv-synd-av:hover { transform: translateY(-1px); z-index: 1; }
.iv-synd-av.tone-primary { background: var(--primary); }
.iv-synd-av.tone-warn    { background: var(--accent-gold); }
.iv-synd-av.tone-default { background: var(--ink-4); }
.iv-synd-av.extra {
  background: var(--panel-alt);
  color: var(--ink-4);
  font-weight: 600;
  border-color: var(--border-soft);
}

/* ── Named syndication detail row (below stats) ─────────────────────────── */
.iv-synd-detail {
  font-size: 11.5px;
  color: var(--ink-4);
  line-height: 1.55;
  padding: 8px 10px;
  background: var(--panel-alt);
  border-radius: 6px;
  border: 1px solid var(--border-soft);
}
.iv-synd-detail strong { color: var(--ink-1); font-weight: 600; }
.iv-synd-detail em { font-style: italic; color: var(--ink-5); }
.iv-synd-total {
  color: var(--primary);
  font-weight: 600;
  white-space: nowrap;
}

/* ── Audit-trail micro line (tiny, quiet, in card foot) ─────────────────── */
.iv-audit {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-top: 8px;
  margin-top: -2px;
  border-top: 1px solid var(--divider);
  font-size: 10.5px;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  color: var(--ink-5);
  letter-spacing: 0.01em;
}
.iv-audit > svg { color: var(--success); flex-shrink: 0; }

/* ── Match-pill — make the title attribute hover-discoverable ───────────── */
.match-pill { cursor: help; }

/* ============================================================================
   Account & KYC (Phase 2.2) — Platform NDA card + team list
   ========================================================================== */

/* ── Platform NDA card — the Step 3 surface ─────────────────────────────── */
.iv-pnda {
  position: relative;
  border-left: 3px solid var(--ink-5);
}
.iv-pnda.signed {
  border-left-color: var(--success);
  background: linear-gradient(180deg, rgba(15, 122, 62, 0.025), transparent 50%);
}
.iv-pnda-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
  margin-top: 4px;
}
.iv-pnda-meta > div { display: flex; flex-direction: column; gap: 3px; }
.iv-pnda-meta .lbl {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-5);
  font-weight: 600;
}
.iv-pnda-meta .val {
  font-size: 13px;
  color: var(--ink-1);
  font-weight: 600;
}
.iv-pnda-meta .val.mono {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 12px;
}
.iv-pnda-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 12px;
  background: var(--success-bg);
  border: 1px solid var(--success-bd);
  border-radius: 6px;
  font-size: 12.5px;
  color: var(--success);
  line-height: 1.5;
}
.iv-pnda-note.warn {
  background: var(--warn-bg);
  border-color: var(--warn-bd);
  color: var(--warn);
}
.iv-pnda-note > svg { flex-shrink: 0; }

@media (max-width: 720px) {
  .iv-pnda-meta { grid-template-columns: 1fr 1fr; }
}

/* ── Team list (simplified — full PermissionsMatrix is a later increment) ── */
.iv-team {
  display: flex;
  flex-direction: column;
}
.iv-team-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border-soft);
}
.iv-team-row:first-child { border-top: 0; }
.iv-team-row .iv-synd-av { width: 28px; height: 28px; font-size: 10.5px; border: 0; }
.iv-team-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-1);
  display: flex;
  align-items: center;
  gap: 6px;
}
.iv-you {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-pale);
  padding: 2px 6px;
  border-radius: 3px;
}
.iv-team-meta {
  font-size: 11.5px;
  color: var(--ink-4);
  margin-top: 2px;
}

/* ============================================================================
   Teaser screen (Phase 2.3)
   ========================================================================== */

/* ── Dark hero band ────────────────────────────────────────────────────── */
.iv-th {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--panel-ink) 0%, var(--panel-ink-2) 100%);
  border: 1px solid var(--border-ink);
  border-radius: 14px;
  padding: 32px 36px;
  margin-bottom: 18px;
  color: #fff;
}
.iv-th::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(91, 80, 229, 0.18), transparent 60%),
    radial-gradient(circle at 90% 80%, rgba(177, 122, 14, 0.12), transparent 55%);
  pointer-events: none;
}
.iv-th-inner { position: relative; z-index: 1; }
.iv-th-title {
  font-family: var(--font-serif, var(--font-display));
  font-weight: 400;
  font-size: 36px;
  line-height: 1.1;
  color: #fff;
  margin: 0 0 12px;
}
.iv-th-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 24px;
}
.iv-th-sub .lbl {
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-right: 6px;
}
.iv-th-sub strong { color: #fff; font-weight: 600; }
.iv-th-dot { margin: 0 12px; color: rgba(255, 255, 255, 0.3); }
.iv-th-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}
.iv-th-stats .lbl {
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
  margin-bottom: 6px;
}
.iv-th-stats .val {
  font-family: var(--font-serif, var(--font-display));
  font-weight: 400;
  font-size: 30px;
  color: #fff;
  line-height: 1;
}
.iv-th-stats .val em {
  font-size: 0.55em;
  color: rgba(255, 255, 255, 0.55);
  font-style: italic;
  margin-right: 2px;
}
.iv-th-stats .val .u {
  font-size: 0.55em;
  color: rgba(255, 255, 255, 0.55);
  font-style: italic;
  margin-left: 1px;
}

@media (max-width: 720px) {
  .iv-th { padding: 22px 20px; }
  .iv-th-title { font-size: 26px; }
  .iv-th-stats { grid-template-columns: 1fr 1fr; }
}

/* ── Two-column body ───────────────────────────────────────────────────── */
.iv-tshell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: flex-start;
}
.iv-trail {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 16px;
}
@media (max-width: 1100px) {
  .iv-tshell { grid-template-columns: 1fr; }
  .iv-trail { position: static; }
}

/* ── Summary grid (locked/unlocked KV) ─────────────────────────────────── */
.iv-tsum {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 28px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
}
.iv-tsum .lbl {
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-5);
  font-weight: 600;
  margin-bottom: 4px;
}
.iv-tsum .val {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-1);
}
.iv-tsum .val.mono { font-family: var(--font-mono, monospace); }
.iv-tsum .val.serif { font-family: var(--font-serif, var(--font-display)); font-size: 18px; font-weight: 400; }
.iv-locked {
  display: inline-block;
  font-family: var(--font-mono, monospace);
  color: var(--ink-6);
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  font-size: 12.5px;
}
.iv-lockcard { background: var(--panel-alt); border-style: dashed; }

/* ── Verification checklist (5 rows) ───────────────────────────────────── */
.iv-vlist { display: flex; flex-direction: column; gap: 12px; }
.iv-vrow {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.iv-vtick {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success);
  display: grid; place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Fit card rows ─────────────────────────────────────────────────────── */
.iv-fit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-top: 1px solid var(--border-soft);
  font-size: 13px;
}
.iv-fit-row:first-of-type { border-top: 0; padding-top: 12px; }
.iv-fit-lbl { color: var(--ink-3); font-weight: 500; }
.iv-fit-val { color: var(--ink-1); font-weight: 600; }

/* ── Access gate card (the Step 3 surface) ─────────────────────────────── */
.iv-gate { position: relative; border-left: 3px solid var(--ink-5); }
.iv-gate--granted { border-left-color: var(--success); }
.iv-gate--granted::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15, 122, 62, 0.04), transparent 70%);
  border-radius: 0 8px 8px 0;
  pointer-events: none;
}
.iv-gate--pending  { border-left-color: var(--warn); }
.iv-gate--pending::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(168, 107, 11, 0.05), transparent 70%);
  border-radius: 0 8px 8px 0;
  pointer-events: none;
}
.iv-gate--open    { border-left-color: var(--primary); }
.iv-gate--blocked { border-left-color: var(--ink-4); background: var(--panel-alt); }
.iv-gate > * { position: relative; z-index: 1; }
.iv-gate-extra {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-3);
}
.iv-gate-extra.warn { color: var(--warn); }
.iv-gate-extra > svg { flex-shrink: 0; }
.iv-gate-checks { display: flex; flex-direction: column; gap: 8px; }
.iv-gate-check {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--ink-3);
  padding: 6px 10px;
  background: var(--panel-alt);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
}
.iv-gate-check.done   { color: var(--success); border-color: var(--success-bd); background: var(--success-bg); }
.iv-gate-check.pending { color: var(--warn); border-color: var(--warn-bd); background: var(--warn-bg); }

/* ============================================================================
   In-app welcome / setup (Phase 2.4 rev2)
   Intellcre-style numbered collapsible cards. Lives at route "welcome" inside
   the main investor app shell — not a separate URL.
   ========================================================================== */
.iv-welcome { max-width: 880px; margin: 0 auto; padding: 8px 0 40px; display: flex; flex-direction: column; gap: 14px; }
.iv-welcome-head { margin-bottom: 6px; }
.iv-welcome-title { font-size: 32px; font-weight: 700; line-height: 1.15; margin: 0 0 10px; color: var(--ink-1); }
.iv-welcome-title .serif   { font-family: var(--font-serif, "Instrument Serif", serif); font-weight: 400; }
.iv-welcome-title .serif-i { font-family: var(--font-serif, "Instrument Serif", serif); font-weight: 400; font-style: italic; color: var(--primary); }
.iv-welcome-lede { font-size: 14.5px; color: var(--ink-3); line-height: 1.6; margin: 0; max-width: 720px; }
.iv-welcome-lede strong { color: var(--ink-1); font-weight: 600; }
.iv-welcome-skip { text-align: center; margin-top: 8px; }

/* ── Setup card (numbered, collapsible) ───────────────────────────────── */
.iv-setup-card {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  box-shadow: var(--shadow-1, 0 1px 2px rgba(17,24,39,0.04));
  overflow: hidden;
  transition: border-color 180ms cubic-bezier(0.4, 0, 0.2, 1);
}
.iv-setup-card.done { border-color: var(--success-bd); background: linear-gradient(180deg, var(--success-bg) 0%, var(--panel) 30%); }
.iv-setup-card.open { box-shadow: 0 2px 14px rgba(17, 24, 39, 0.05); }

.iv-setup-head {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 22px;
  cursor: pointer;
  background: transparent;
  border: 0;
  width: 100%;
  text-align: left;
  color: inherit;
  font-family: inherit;
}
.iv-setup-head:hover { background: var(--bg-alt); }
.iv-setup-head:hover .iv-setup-chev { color: var(--primary); }
.iv-setup-chev { transition: transform 180ms cubic-bezier(0.4, 0, 0.2, 1), color 180ms cubic-bezier(0.4, 0, 0.2, 1); }
.iv-setup-card.open > .iv-setup-head .iv-setup-chev { color: var(--primary); }
.iv-setup-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--panel);
  border: 1.5px solid var(--border);
  display: grid; place-items: center;
  font-family: var(--font-mono, monospace);
  font-size: 14px; font-weight: 700;
  color: var(--ink-4);
}
.iv-setup-card.done .iv-setup-num { background: var(--success); border-color: var(--success); color: #fff; }
.iv-setup-title { font-size: 17px; font-weight: 700; margin: 0; color: var(--ink-1); line-height: 1.3; }
.iv-setup-status { display: block; margin-top: 4px; font-size: 11.5px; color: var(--success); font-weight: 500; }
.iv-setup-chev { color: var(--ink-4); display: flex; align-items: center; }

.iv-setup-body {
  padding: 6px 22px 22px;
  border-top: 1px solid var(--border-soft);
  margin-top: 0;
  background: var(--panel);
  border-radius: 0 0 12px 12px;
}
.iv-setup-card.done .iv-setup-body { background: var(--panel); }
.iv-setup-desc { font-size: 13.5px; color: var(--ink-3); line-height: 1.6; margin: 16px 0 18px; max-width: 660px; }

.iv-setup-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
  gap: 12px;
}
.iv-setup-later { color: var(--ink-4); font-size: 13px; font-weight: 500; }
.iv-setup-later:hover { color: var(--ink-2); }

/* ── Form primitives ──────────────────────────────────────────────────── */
.iv-form { display: flex; flex-direction: column; gap: 14px; }
.iv-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.iv-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.iv-label { font-size: 11.5px; font-weight: 600; color: var(--ink-3); letter-spacing: 0.01em; }
.iv-required { margin-left: 6px; font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--warn); font-weight: 700; }
.iv-input {
  font-family: inherit;
  font-size: 13.5px;
  color: var(--ink-1);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 9px 11px;
  outline: none;
  transition: border-color 150ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}
.iv-input:focus { border-color: var(--primary); box-shadow: var(--ring-primary, 0 0 0 3px rgba(91, 80, 229, 0.18)); }
.iv-input:read-only, .iv-input[readonly] { background: var(--bg-alt); color: var(--ink-3); cursor: not-allowed; }
.iv-input::placeholder { color: var(--ink-5); }
.iv-input--sm { padding: 6px 9px; font-size: 12.5px; min-width: 130px; width: auto; }
select.iv-input {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-4) 50%), linear-gradient(135deg, var(--ink-4) 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 10px) 50%;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
  padding-right: 28px;
}
.iv-hint { font-size: 11px; color: var(--ink-5); margin-top: 2px; }
.iv-between { color: var(--ink-5); font-size: 13px; align-self: center; }

.iv-radio-row { display: flex; gap: 8px; flex-wrap: wrap; }
.iv-radio {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: var(--panel-alt);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 120ms cubic-bezier(0.4, 0, 0.2, 1), background 120ms cubic-bezier(0.4, 0, 0.2, 1);
}
.iv-radio input { accent-color: var(--primary); }
.iv-radio.on { background: var(--primary-pale); border-color: var(--primary-soft); color: var(--primary-ink); font-weight: 600; }

/* ── KYC sub-rows ─────────────────────────────────────────────────────── */
.iv-kyc-list { display: flex; flex-direction: column; gap: 8px; }
.iv-kyc-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: var(--panel-alt);
  border: 1px solid var(--border-soft);
  border-radius: 9px;
}
.iv-kyc-row.done {
  background: linear-gradient(180deg, var(--success-bg) 0%, var(--panel-alt) 100%);
  border-color: var(--success-bd);
}
.iv-kyc-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--panel);
  border: 1.5px solid var(--border);
  display: grid; place-items: center;
  font-family: var(--font-mono, monospace);
  font-size: 12px; font-weight: 700;
  color: var(--ink-4);
}
.iv-kyc-row.done .iv-kyc-num { background: var(--success); border-color: var(--success); color: #fff; }
.iv-kyc-title { font-size: 13.5px; font-weight: 600; color: var(--ink-1); display: flex; align-items: center; gap: 8px; }
.iv-kyc-sub { font-size: 11.5px; color: var(--ink-4); margin-top: 2px; line-height: 1.4; }
.iv-kyc-action { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

.iv-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 7px; border-radius: 999px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.iv-pill--ok { background: var(--success-bg); color: var(--success); }

/* ── NDA box (scrollable) ─────────────────────────────────────────────── */
.iv-nda-box {
  max-height: 300px;
  overflow-y: auto;
  padding: 16px 18px;
  background: var(--panel-alt);
  border: 1px solid var(--border-soft);
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
}
.iv-nda-box h3 { font-family: var(--font-display, system-ui); font-size: 13px; font-weight: 700; color: var(--ink-1); margin: 12px 0 4px; }
.iv-nda-box h3:first-child { margin-top: 0; }
.iv-nda-box p { margin: 0 0 6px; }

.iv-check {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--panel-alt);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
}
.iv-check:hover { border-color: var(--border); }
.iv-check-box {
  width: 18px; height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--border-strong);
  background: var(--panel);
  display: grid; place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
  color: #fff;
}
.iv-check-box.on { background: var(--primary); border-color: var(--primary); }

/* ── Mandate chips ────────────────────────────────────────────────────── */
.iv-mandate { display: flex; flex-direction: column; gap: 14px; }
.iv-mfield { display: flex; flex-direction: column; gap: 6px; }
.iv-chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.iv-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 500;
  font-family: inherit;
  color: var(--ink-3);
  background: var(--panel-alt);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  cursor: pointer;
  transition: background 120ms cubic-bezier(0.4, 0, 0.2, 1), border-color 120ms cubic-bezier(0.4, 0, 0.2, 1), color 120ms cubic-bezier(0.4, 0, 0.2, 1);
}
.iv-chip:hover { border-color: var(--border-strong); color: var(--ink-1); }
.iv-chip.on { background: var(--primary-pale); border-color: var(--primary-soft); color: var(--primary-ink); font-weight: 600; }

/* ── "Finish setup" pill in topbar (persistent until done) ────────────── */
.iv-finish-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--primary-pale);
  border: 1px solid var(--primary-soft);
  border-radius: 999px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary-ink);
  cursor: pointer;
  transition: background 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.iv-finish-pill:hover { background: var(--primary-soft); }
.iv-finish-count {
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  background: rgba(91, 80, 229, 0.15);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
}

/* ── Dev-only: Reset onboarding link in sidebar foot ───────────────────── */
.iv-sb-reset {
  margin: 10px 6px 0;
  padding: 6px 8px;
  font-size: 10.5px;
  font-family: var(--font-mono, monospace);
  letter-spacing: 0.04em;
  color: var(--ink-5);
  background: transparent;
  border: 1px dashed var(--border-soft);
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  transition: color 120ms cubic-bezier(0.4, 0, 0.2, 1), border-color 120ms cubic-bezier(0.4, 0, 0.2, 1);
}
.iv-sb-reset:hover {
  color: var(--ink-3);
  border-color: var(--border);
}

/* ── Toast (top-right pill) ────────────────────────────────────────────── */
.iv-toast {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1000;
  background: var(--ink-1);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 4px 24px rgba(17, 24, 39, 0.18);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 180ms cubic-bezier(0.4, 0, 0.2, 1), transform 180ms cubic-bezier(0.4, 0, 0.2, 1);
}
.iv-toast.show { opacity: 1; transform: translateY(0); }
