/* =============================================================
   DIP — Horizon → Iteration 2
   product.css — opportunity list/detail components (unchanged from
   frontend/src/styles/horizon/horizon-product.css) + the IT2 PORTAL
   COMPONENTS layer appended at the end: page-head, tiles, panel,
   data-table, change-chip, status-strip, section-rail, ufield, activity.
   Only the appended section is new; everything above it is the fork.
   ============================================================= */

/* =============================================================
   SHARED — breadcrumb, page hero, sticky action bar
   ============================================================= */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--faint);
}
.breadcrumb a { color: var(--muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: 0.5; }

.page-hero { padding-top: calc(88px + clamp(2.5rem, 1.5rem + 4vw, 5rem)); overflow: hidden; }

.actionbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  transform: translateY(120%);
  transition: transform 0.45s var(--ease-out);
  background: color-mix(in srgb, #03141a 80%, transparent);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-top: 1px solid rgba(238, 246, 246, 0.14);
  color: #eef6f6;
}
.actionbar.is-shown { transform: none; }
.actionbar__inner {
  width: min(100% - (var(--gutter) * 2), var(--maxw));
  margin-inline: auto;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.actionbar__nm { font-weight: 540; font-size: 0.98rem; }
.actionbar__nm small { display: block; color: #97b6bb; font-weight: 380; font-size: 0.78rem; }
.actionbar__rate { font-family: var(--mono); font-size: 1.4rem; font-weight: 500; margin-left: auto; }
.actionbar__rate small { font-size: 0.66rem; color: #97b6bb; }
.actionbar .btn { flex: none; }
@media (max-width: 620px) {
  .actionbar__rate { display: none; }
  .actionbar__inner { gap: 0.8rem; }
  .actionbar__nm small { display: none; }
}

/* =============================================================
   OPPORTUNITY DETAIL — hero identity + instrument panel
   ============================================================= */
.detail-hero__grid {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: start;
  margin-top: 2rem;
}
.detail-id .cluster { gap: 0.7rem; margin-bottom: 1.3rem; }
.detail-id h1 { font-family: var(--display); font-size: var(--step-4); line-height: 1.02; letter-spacing: -0.02em; }
.detail-id .series { font-family: var(--mono); color: var(--muted); margin-top: 0.8rem; font-size: 0.92rem; letter-spacing: 0.02em; }
.detail-id .blurb { color: var(--muted); font-size: var(--step-1); line-height: 1.5; margin-top: 1.4rem; max-width: 46ch; }

.factgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 2.2rem;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.factgrid .fact { background: var(--surface); padding: 1.1rem 1.2rem; }
.factgrid .k { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.factgrid .v { font-size: 1.05rem; margin-top: 0.4rem; }
.factgrid .v.num { font-weight: 500; }

.instrument {
  background: linear-gradient(168deg,
    color-mix(in srgb, var(--surface) 94%, transparent),
    color-mix(in srgb, var(--surface-2) 94%, transparent));
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  padding: 1.7rem;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 92px;
}
.instrument__label { display: flex; align-items: center; justify-content: space-between; }
.instrument__rate { display: flex; align-items: baseline; gap: 0.7rem; margin-top: 1.1rem; }
.instrument__rate .big {
  font-family: var(--mono);
  font-size: clamp(3rem, 2.2rem + 3.5vw, 4rem);
  font-weight: 500;
  line-height: 0.85;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.instrument__rate .cap { color: var(--muted); font-size: 0.85rem; line-height: 1.3; }
.instrument__spark { margin-top: 1.3rem; }
.instrument__spark svg { width: 100%; height: 54px; overflow: visible; }
.instrument__divider { height: 1px; background: var(--line); margin: 1.4rem 0; }
.instrument__rows { display: grid; gap: 0.9rem; }
.instrument__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.instrument__row .k { color: var(--muted); font-size: 0.9rem; }
.instrument__row .v { font-family: var(--mono); font-size: 0.98rem; font-weight: 500; }
.instrument .btn { margin-top: 1.6rem; }
.instrument__note { margin-top: 1rem; color: var(--faint); font-size: 0.78rem; text-align: center; }

/* =============================================================
   RATES BY TENOR  (graphite data band)
   ============================================================= */
.tenor-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.tenor-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }
.tenor-chip {
  font-family: var(--mono);
  font-size: 0.84rem;
  padding: 0.5em 1em;
  border-radius: var(--pill);
  border: 1px solid var(--line-2);
  background: color-mix(in srgb, var(--text) 4%, transparent);
  color: var(--muted);
  transition: all 0.2s var(--ease);
}
.tenor-chip[aria-selected="true"], .tenor-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.rate-panel {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(1.5rem, 0.5rem + 3vw, 3.5rem);
  align-items: center;
}
.ratetable { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ratetable thead th {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 500;
  text-align: right;
  padding: 0 0 1rem;
  border-bottom: 1px solid var(--line-2);
}
.ratetable thead th:first-child { text-align: left; }
.ratetable tbody td {
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  text-align: right;
  font-size: 1.05rem;
}
.ratetable tbody td:first-child { text-align: left; font-weight: 500; }
.ratetable tbody .rate { color: var(--accent); font-weight: 500; }
.ratetable tbody tr.is-featured td { color: var(--text); }
.ratetable tbody tr.is-featured { position: relative; }
.ratetable tbody tr.is-featured td:first-child { box-shadow: inset 3px 0 0 var(--accent); padding-left: 0.9rem; }
.ratetable tbody tr.is-featured .rate {
  font-size: 1.3rem;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.rate-visual {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.6rem;
}
.rate-visual h4 { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 1rem; }
.rate-visual svg { width: 100%; height: 130px; overflow: visible; }
.rate-visual .legend { display: flex; gap: 1.2rem; margin-top: 1.2rem; color: var(--muted); font-size: 0.82rem; }
.rate-visual .legend i { width: 0.8em; height: 0.8em; border-radius: 3px; display: inline-block; margin-right: 0.4em; vertical-align: -1px; }

.dist-note {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  border-radius: var(--r);
  background: var(--grad-soft);
  border: 1px solid var(--line-2);
}
.dist-note svg { width: 1.5rem; height: 1.5rem; color: var(--accent); flex: none; }
.dist-note p { color: var(--text); font-size: 0.95rem; }

/* =============================================================
   OVERVIEW  (paper)
   ============================================================= */
.overview__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: start; }
.prose { max-width: 62ch; }
.prose h3 { font-family: var(--display); font-size: var(--step-2); margin: 2rem 0 0.8rem; line-height: 1.1; }
.prose h3:first-child { margin-top: 0; }
.prose p { color: var(--muted); margin-top: 0.9rem; line-height: 1.7; }
.prose p:first-of-type { font-size: var(--step-1); color: var(--text); }
.prose ul { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.7rem; }
.prose ul li { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; color: var(--muted); }
.prose ul li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-top: 0.6em; }

.terms-card {
  position: sticky; top: 92px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.terms-card h4 { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 1.2rem; }
.terms-dl { display: grid; gap: 0; }
.terms-dl > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.terms-dl > div:last-child { border-bottom: 0; }
.terms-dl dt { color: var(--muted); font-size: 0.9rem; }
.terms-dl dd { font-family: var(--mono); font-weight: 500; text-align: right; font-size: 0.92rem; }

/* =============================================================
   ELIGIBILITY / FAQ / DOCS
   ============================================================= */
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: start; }

.faq { display: grid; gap: 0; margin-top: 1.5rem; }
.faq details {
  border-bottom: 1px solid var(--line-2);
  padding: 1.2rem 0;
}
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  cursor: pointer; list-style: none;
  font-size: 1.08rem; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { flex: none; width: 24px; height: 24px; position: relative; transition: transform 0.3s var(--ease); }
.faq summary .ico::before, .faq summary .ico::after {
  content: ""; position: absolute; top: 50%; left: 50%; background: var(--accent);
  transform: translate(-50%, -50%);
}
.faq summary .ico::before { width: 13px; height: 1.5px; }
.faq summary .ico::after { width: 1.5px; height: 13px; transition: transform 0.3s var(--ease); }
.faq details[open] summary .ico::after { transform: translate(-50%, -50%) scaleY(0); }
.faq details p { color: var(--muted); margin-top: 0.9rem; line-height: 1.65; max-width: 58ch; }

.docs { display: grid; gap: 0.7rem; margin-top: 1.5rem; }
.doc-row {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: border-color 0.2s, transform 0.2s var(--ease);
}
.doc-row:hover { border-color: var(--accent); transform: translateX(3px); }
.doc-row .fileico { width: 38px; height: 38px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line-2); color: var(--accent); }
.doc-row .meta { min-width: 0; }
.doc-row .nm { font-weight: 500; font-size: 0.96rem; }
.doc-row .sz { font-family: var(--mono); color: var(--faint); font-size: 0.76rem; }
.doc-row .dl { margin-left: auto; color: var(--accent); }

.eligibility { list-style: none; padding: 0; margin-top: 1.5rem; display: grid; gap: 1rem; }
.eligibility li { display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; align-items: start; }
.eligibility .tick { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; background: color-mix(in srgb, #34c98a 16%, transparent); color: #34c98a; }
.eligibility .tick svg { width: 15px; height: 15px; }
.eligibility b { font-weight: 540; }
.eligibility span { color: var(--muted); }

.disclaimer { display: grid; grid-template-columns: auto 1fr; gap: 1.3rem; align-items: start; }
.disclaimer .ic { width: 44px; height: 44px; border-radius: 12px; flex: none; display: grid; place-items: center; background: color-mix(in srgb, var(--orange) 16%, transparent); color: var(--orange); }
.disclaimer h3 { font-size: 1.1rem; font-weight: 540; }
.disclaimer p { color: var(--muted); margin-top: 0.6rem; max-width: 80ch; line-height: 1.65; font-size: 0.92rem; }

/* =============================================================
   OPPORTUNITIES LIST
   ============================================================= */
.legend { display: flex; flex-wrap: wrap; gap: 0.9rem 1.6rem; margin-top: 1.8rem; }
.legend .item { display: inline-flex; align-items: center; gap: 0.5em; color: var(--muted); font-size: 0.86rem; }

.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.4rem; }
.filter {
  font-family: var(--mono); font-size: 0.82rem;
  padding: 0.5em 1.1em; border-radius: var(--pill);
  border: 1px solid var(--line-2); background: transparent; color: var(--muted);
  transition: all 0.2s;
}
.filter[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.filter:hover:not([aria-selected="true"]) { border-color: var(--accent); color: var(--accent); }

.opps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.2rem, 0.5rem + 2vw, 2rem);
}
.opp-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 1.7rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.opp-card::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 60%; aspect-ratio: 1;
  background: radial-gradient(circle at 70% 30%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 60%);
  pointer-events: none; opacity: 0.8;
}
.opp-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.opp-card__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; position: relative; }
.opp-card__ccy { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; padding: 0.3em 0.7em; border: 1px solid var(--line-2); border-radius: var(--pill); color: var(--muted); }
.opp-card__name { font-family: var(--display); font-size: 1.6rem; line-height: 1.08; margin-top: 1.2rem; }
.opp-card__series { font-family: var(--mono); color: var(--muted); font-size: 0.84rem; margin-top: 0.5rem; }
.opp-card__rate { display: flex; align-items: baseline; gap: 0.5rem; margin: 1.5rem 0 1.3rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.opp-card__rate .big { font-family: var(--mono); font-size: 2.4rem; font-weight: 500; letter-spacing: -0.02em; line-height: 0.9;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.opp-card__rate .cap { color: var(--muted); font-size: 0.82rem; }
.opp-card__rate--ror { border-top: none; padding-top: 0; margin-top: 1rem; }
.opp-card__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem 1rem; margin-top: 1.5rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.opp-card__meta .k { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.opp-card__meta .v { font-size: 0.92rem; margin-top: 0.2rem; }
.opp-card__cta { margin-top: auto; padding-top: 1.6rem; display: flex; align-items: center; justify-content: space-between; }

/* Featured card — two-column layout */
.opp-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.4rem;
  align-items: center;
}
.opp-card--featured .opp-card__name { font-size: 2.1rem; }
.opp-card__left { display: flex; flex-direction: column; min-width: 0; }
.opp-card__left .opp-card__meta { margin-top: 1.4rem; padding-top: 1.4rem; }
.opp-card__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.4rem;
  border-left: 1px solid var(--line);
  padding-left: 2.4rem;
  flex-shrink: 0;
}
.opp-card--featured .opp-card__rate {
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  border: none;
  padding: 0;
  margin: 0;
  gap: 0.25rem;
}
.opp-card--featured .opp-card__rate .big { font-size: 2.8rem; }
.opp-card--featured .opp-card__rate--ror { align-items: flex-end; }

/* =============================================================
   EXPRESS INTEREST — form + summary rail + confirmation
   ============================================================= */
.eoi__grid { display: grid; grid-template-columns: 1.4fr 0.85fr; gap: clamp(2rem, 1rem + 4vw, 3.5rem); align-items: start; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.4rem);
  box-shadow: var(--shadow);
}
.softnote {
  display: flex; gap: 0.9rem; align-items: flex-start;
  padding: 1.1rem 1.3rem; border-radius: var(--r);
  background: var(--grad-soft); border: 1px solid var(--line-2);
  margin-bottom: 1.8rem;
}
.softnote svg { width: 1.3rem; height: 1.3rem; color: var(--accent); flex: none; margin-top: 0.1rem; }
.softnote p { font-size: 0.9rem; color: var(--text); }

.field { margin-bottom: 1.3rem; }
.field > label { display: block; font-size: 0.86rem; font-weight: 540; margin-bottom: 0.5rem; }
.field .hint { color: var(--faint); font-size: 0.8rem; margin-top: 0.4rem; }
.h-input, .h-select, .h-textarea {
  width: 100%;
  font: inherit; font-size: 0.98rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: 0.85em 1em;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.h-input::placeholder, .h-textarea::placeholder { color: var(--faint); }
.h-input:focus, .h-select:focus, .h-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.h-textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start; font-size: 0.88rem; color: var(--muted); }
.check input { margin-top: 0.2rem; width: 18px; height: 18px; accent-color: var(--accent); }
.form-card .btn { margin-top: 0.8rem; }

.kyc-card {
  margin-top: 1.4rem;
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.1rem; align-items: center;
  padding: 1.3rem 1.5rem; border-radius: var(--r-lg);
  border: 1px dashed var(--line-2);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}
.kyc-card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--accent); }
.kyc-card h4 { font-size: 1rem; font-weight: 540; }
.kyc-card p { color: var(--muted); font-size: 0.86rem; margin-top: 0.2rem; }

.summary-rail { position: sticky; top: 92px; display: grid; gap: 1.2rem; }
.summary-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.6rem; box-shadow: var(--shadow); }
.summary-card .eyebrow { margin-bottom: 1rem; }
.summary-card .sum-name { font-family: var(--display); font-size: 1.4rem; line-height: 1.1; }
.summary-card .sum-series { font-family: var(--mono); color: var(--muted); font-size: 0.84rem; margin-top: 0.4rem; }
.summary-card .terms-dl { margin-top: 1.3rem; }
.promise { display: flex; gap: 0.8rem; align-items: flex-start; color: var(--muted); font-size: 0.88rem; }
.promise svg { width: 1.2rem; height: 1.2rem; color: var(--accent); flex: none; margin-top: 0.1rem; }

.confirm { text-align: center; max-width: 64ch; margin-inline: auto; }
.confirm__badge {
  width: 78px; height: 78px; border-radius: 50%; margin: 0 auto 1.8rem;
  display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--line-2); color: var(--accent);
}
.confirm__badge svg { width: 36px; height: 36px; }
.confirm__ref {
  display: inline-flex; flex-direction: column; align-items: center; gap: 0.3rem;
  margin: 2rem auto 0; padding: 1.2rem 2.2rem;
  border: 1px solid var(--line-2); border-radius: var(--r-lg);
  background: var(--surface);
}
.confirm__ref .k { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.confirm__ref .v { font-family: var(--mono); font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem); font-weight: 500; letter-spacing: 0.04em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.timeline { list-style: none; padding: 0; margin: 3rem auto 0; max-width: 540px; display: grid; gap: 0; text-align: left; }
.timeline li { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; padding-bottom: 1.8rem; position: relative; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 1px; background: var(--line-2); }
.timeline .dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 0.76rem; flex: none;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--muted); z-index: 1; }
.timeline li:first-child .dot { background: var(--grad); color: var(--on-accent); border-color: transparent; }
.timeline h4 { font-size: 1rem; font-weight: 540; }
.timeline p { color: var(--muted); font-size: 0.9rem; margin-top: 0.2rem; }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 960px) {
  .detail-hero__grid { grid-template-columns: 1fr; }
  .instrument { position: static; max-width: 460px; }
  .overview__grid { grid-template-columns: 1fr; }
  .terms-card { position: static; }
  .rate-panel { grid-template-columns: 1fr; }
  .split-2 { grid-template-columns: 1fr; }
  .eoi__grid { grid-template-columns: 1fr; }
  .summary-rail { position: static; order: -1; }
  .opps-grid { grid-template-columns: 1fr; }
  .opp-card--featured { grid-column: auto; grid-template-columns: 1fr; }
  .opp-card__right { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 1.4rem; align-items: flex-start; }
  .opp-card--featured .opp-card__rate { align-items: baseline; flex-direction: row; text-align: left; gap: 0.5rem; }
}
@media (max-width: 540px) {
  .factgrid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .opp-card__meta { grid-template-columns: 1fr 1fr; }
}

/* ===== KYC account-type chooser (individual | corporate) ===== */
.choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
  max-width: 46rem;
  margin: clamp(2rem, 1.4rem + 2vw, 3rem) auto 0;
}
.choose-card {
  font: inherit;
  text-align: left;
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  padding: 1.8rem 1.7rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: transform 0.2s var(--ease-out), border-color 0.2s, box-shadow 0.2s;
}
.choose-card:hover:not(:disabled) {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line-2));
  box-shadow: var(--shadow-lg);
}
.choose-card:disabled { opacity: 0.55; cursor: default; }
.choose-card__ic {
  width: 48px; height: 48px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: var(--grad);
  color: var(--on-accent);
  margin-bottom: 1.1rem;
}
.choose-card__ic svg { width: 24px; height: 24px; }
.choose-card h3 { font-family: var(--display); font-size: 1.4rem; line-height: 1.1; }
.choose-card p { color: var(--muted); margin-top: 0.45rem; font-size: 0.95rem; }
.choose-card__go {
  display: inline-block;
  margin-top: 1.2rem;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.choose-card__cur {
  margin-left: 0.6rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-accent);
  background: var(--grad);
  padding: 0.2em 0.55em;
  border-radius: var(--pill);
  vertical-align: middle;
}

/* account-type badge (KYC header + profile) + "Change" link */
.acct-badge { display: inline-flex; align-items: center; gap: 0.7rem; }
.kyc-hero .acct-badge { margin-top: 1rem; }
.acct-badge__change {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.acct-badge__change:hover { color: var(--cyan); }

/* "Account type" step inside the KYC wizard */
.acct-step__lead { color: var(--muted); max-width: 58ch; margin-bottom: 1.5rem; }
.acct-step__grid { max-width: 100%; margin-top: 0; }
.choose-card.is-current {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line-2));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent);
}
.choose-grid.is-locked .choose-card {
  opacity: 0.6;
  cursor: default;
  transform: none;
  box-shadow: none;
}
.acct-step__err { color: #c5221f; margin-top: 1rem; font-size: 0.92rem; }

/* =============================================================
   =============================================================
   IT2 PORTAL COMPONENTS
   Everything below is new in Iteration 2. Names are chosen so a React
   port is mechanical (PageHead, Tile, Panel, DataTable, ChangeChip,
   StatusStrip, SectionRail, UField, Activity).
   Portal pages are information-dense: type steps down one notch from
   the marketing scale everywhere (page title ≈ step-2, section ≈ 1.1rem,
   body 0.92rem, table 0.9rem with mono tabular figures).
   =============================================================
   ============================================================= */

/* ---------- portal type scale ---------- */
.portal { font-size: 0.94rem; }
.portal h1, .portal h2, .portal h3, .portal h4 { font-family: var(--display); letter-spacing: -0.01em; }

/* ---------- page head: light band, faint blooms, title + breadcrumb ---------- */
.page-head {
  position: relative;
  overflow: hidden;
  padding-top: calc(88px + clamp(1.2rem, 0.8rem + 1.6vw, 2rem));
  padding-bottom: clamp(1.4rem, 1rem + 1.6vw, 2.2rem);
}
.page-head .aurora { opacity: 0.55; filter: blur(14px); }
.page-head .aurora span { opacity: 0.4; }
.page-head .breadcrumb { margin-bottom: 0.9rem; }
.page-head__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
}
.page-head__title {
  font-family: var(--display);
  font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.05rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.018em;
}
.page-head__sub { color: var(--muted); font-size: 0.95rem; margin-top: 0.4rem; max-width: 62ch; }
.page-head__meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem;
  margin-top: 0.7rem;
  font-size: 0.82rem; color: var(--muted);
}
.page-head__meta .num { color: var(--text); }
.page-head__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.page-head .btn { font-size: 0.9rem; }

/* ---------- dense section head ---------- */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.sec-head h2 {
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  font-weight: 600;
  line-height: 1.15;
}
.sec-head p { color: var(--muted); font-size: 0.9rem; margin-top: 0.25rem; max-width: 64ch; }
.sec-head .arrow-link { font-size: 0.88rem; }
.sec-head .eyebrow--chip { margin-bottom: 0.6rem; }
.sec-head .filters { margin-bottom: 0; }
.sec-head .filter { font-size: 0.82rem; padding: 0.45em 0.95em; }

/* ---------- summary tiles ---------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}
.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1rem 1.15rem 0.95rem;
  box-shadow: var(--shadow);
  min-width: 0;
}
.tile__label { font-size: 0.8rem; color: var(--muted); font-weight: 460; }
.tile__value {
  font-family: var(--mono);
  font-size: clamp(1.35rem, 1.15rem + 0.7vw, 1.7rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-top: 0.4rem;
  color: var(--text);
  white-space: nowrap;
}
.tile__value small { font-size: 0.6em; font-weight: 400; color: var(--muted); margin-right: 0.3em; letter-spacing: 0; }
.tile__note { display: flex; align-items: center; gap: 0.45em; margin-top: 0.4rem; font-size: 0.78rem; color: var(--faint); }
.tile--accent { border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }

/* ---------- panel: dense card with a header row ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  min-width: 0;
}
.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--line);
}
.panel__title { font-size: 0.98rem; font-weight: 600; letter-spacing: -0.005em; }
.panel__title small { font-weight: 400; color: var(--muted); font-size: 0.84em; margin-left: 0.5em; }
.panel__body { padding: 1.1rem 1.2rem; }
.panel__body--flush { padding: 0; }
.panel__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 0.75rem 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem; color: var(--muted);
}
.panel__empty { padding: 1.6rem 1.2rem; color: var(--muted); font-size: 0.9rem; text-align: center; }
.panel__empty .btn { margin-top: 0.8rem; }

/* ---------- data table: mono tabular figures, right-aligned numbers ---------- */
.data-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  text-align: left;
  padding: 0.7rem 1.2rem;
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
}
.data-table td {
  padding: 0.8rem 1.2rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: color-mix(in srgb, var(--text) 3%, transparent); }
.data-table .num, .data-table th.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table .cell-main { font-weight: 540; color: var(--text); white-space: nowrap; }
.data-table .cell-sub { display: block; font-family: var(--mono); font-size: 0.74rem; color: var(--faint); margin-top: 0.15rem; letter-spacing: 0.02em; }
.data-table .cell-action { text-align: right; white-space: nowrap; }
.data-table .cell-action a { color: var(--accent); font-weight: 540; font-size: 0.86rem; }
.data-table--compact td { padding: 0.6rem 1.2rem; }
.data-table .glyph {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--surface-2);
  font-family: var(--display); font-size: 0.72rem; font-weight: 600; color: var(--accent);
  margin-right: 0.7rem; vertical-align: middle;
}

/* ---------- change chip: ▲ ▼ — with % ---------- */
.change-chip {
  display: inline-flex; align-items: center; gap: 0.35em;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.22em 0.6em 0.22em 0.5em;
  border-radius: var(--pill);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.change-chip::before { font-size: 0.72em; }
.change-chip--up   { color: #0a5a3c; background: color-mix(in srgb, #34c98a 16%, transparent); }
.change-chip--up::before   { content: "▲"; }
.change-chip--down { color: #8f221d; background: color-mix(in srgb, #e8746b 16%, transparent); }
.change-chip--down::before { content: "▼"; }
.change-chip--flat { color: var(--muted); background: color-mix(in srgb, var(--text) 6%, transparent); }
.change-chip--flat::before { content: "—"; }

/* ---------- status chips on light grounds ----------
   Horizon's .status colours are tuned for navy; on light bands the ink
   must darken (surface/ink separation — the tint stays, the ink changes
   only because the ground did). */
:is(.band--paper, .band--mist, .band--sky, .band--sage, .band--sand) .status--open,   :is(.band--paper, .band--mist, .band--sky, .band--sage, .band--sand) .status--allotted { color: #0a5a3c; background: color-mix(in srgb, #34c98a 16%, transparent); }
:is(.band--paper, .band--mist, .band--sky, .band--sage, .band--sand) .status--closing, :is(.band--paper, .band--mist, .band--sky, .band--sage, .band--sand) .status--partly  { color: #7a3f00; background: color-mix(in srgb, var(--orange) 16%, transparent); }
:is(.band--paper, .band--mist, .band--sky, .band--sage, .band--sand) .status--coming,  :is(.band--paper, .band--mist, .band--sky, .band--sage, .band--sand) .status--review  { color: var(--teal-ink); background: color-mix(in srgb, var(--teal) 14%, transparent); }
:is(.band--paper, .band--mist, .band--sky, .band--sage, .band--sand) .status--closed,  :is(.band--paper, .band--mist, .band--sky, .band--sage, .band--sand) .status--draft   { color: var(--muted); background: color-mix(in srgb, var(--text) 7%, transparent); }
:is(.band--paper, .band--mist, .band--sky, .band--sage, .band--sand) .status--new       { color: var(--teal-ink); background: color-mix(in srgb, var(--teal) 14%, transparent); }
:is(.band--paper, .band--mist, .band--sky, .band--sage, .band--sand) .status--contacted { color: #0a5a3c; background: color-mix(in srgb, #34c98a 16%, transparent); }
:is(.band--paper, .band--mist, .band--sky, .band--sage, .band--sand) .status--attention { color: #8f221d; background: color-mix(in srgb, #e8746b 16%, transparent); }
:is(.band--paper, .band--mist, .band--sky, .band--sage, .band--sand) .status--active    { color: #0a5a3c; background: color-mix(in srgb, #34c98a 16%, transparent); }
:is(.band--paper, .band--mist, .band--sky, .band--sage, .band--sand) .status--matured   { color: var(--muted); background: color-mix(in srgb, var(--text) 7%, transparent); }
/* solid --accent fills need white ink on light bands (--on-accent is the dark
   ink for the teal→cyan gradient; on plain teal-ink it fails contrast) */
:is(.band--paper, .band--mist, .band--sky, .band--sage, .band--sand) .filter[aria-selected="true"] { color: #fff; }
.page--light .skip { color: #fff; }

/* ---------- status strip: the one KYC / profile nudge on Dashboard ---------- */
.status-strip {
  display: flex;
  align-items: center;
  gap: 0.9rem 1.2rem;
  flex-wrap: wrap;
  padding: 0.8rem 1.1rem;
  border-radius: var(--r);
  border: 1px solid color-mix(in srgb, var(--orange) 42%, var(--line));
  background: color-mix(in srgb, var(--orange) 8%, var(--surface));
}
.status-strip__icon {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--orange) 20%, transparent);
  color: #7a3f00;
}
.status-strip__icon svg { width: 18px; height: 18px; }
.status-strip__text { flex: 1 1 260px; font-size: 0.9rem; color: var(--muted); min-width: 0; }
.status-strip__text strong { color: var(--text); font-weight: 560; }
.status-strip__bar {
  flex: none;
  width: 140px; height: 6px;
  border-radius: var(--pill);
  background: color-mix(in srgb, var(--text) 10%, transparent);
  overflow: hidden;
}
.status-strip__bar > span { display: block; height: 100%; border-radius: var(--pill); background: var(--grad); }
.status-strip .btn { flex: none; font-size: 0.86rem; --pad-y: 0.65em; --pad-x: 1.2em; }
.status-strip--ok {
  border-color: color-mix(in srgb, #34c98a 42%, var(--line));
  background: color-mix(in srgb, #34c98a 7%, var(--surface));
}
.status-strip--ok .status-strip__icon { background: color-mix(in srgb, #34c98a 20%, transparent); color: #0a5a3c; }

/* ---------- section rail: profile side nav ---------- */
.rail-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: clamp(1.4rem, 1rem + 2vw, 2.6rem);
  align-items: start;
}
.section-rail { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 0.15rem; }
.section-rail__label {
  font-family: var(--mono);
  font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--faint);
  padding: 0 0.85rem 0.6rem;
}
.section-rail a {
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--r-sm);
  border-left: 2px solid transparent;
  font-size: 0.9rem;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.section-rail a:hover { color: var(--text); background: color-mix(in srgb, var(--text) 4%, transparent); }
.section-rail a.is-active {
  color: var(--text);
  font-weight: 560;
  background: var(--surface);
  border-left-color: var(--accent);
  box-shadow: var(--shadow);
}
.section-rail__tick {
  width: 16px; height: 16px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.6rem;
  color: #0a5a3c;
  background: color-mix(in srgb, #34c98a 18%, transparent);
  flex: none;
}
.section-rail__tick--todo { color: #7a3f00; background: color-mix(in srgb, var(--orange) 18%, transparent); }

/* ---------- field groups: USoftField / UOutlinedField look ---------- */
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1.2rem;
}
.fields .ufield--full { grid-column: 1 / -1; }
.ufield { display: flex; flex-direction: column; gap: 0.32rem; min-width: 0; }
.ufield__label { font-size: 0.76rem; font-weight: 500; color: var(--muted); }
.ufield__value {
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
  min-height: 2.55rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid transparent;
  font-size: 0.92rem;
  color: var(--text);
  word-break: break-word;
}
.ufield--outlined .ufield__value { background: transparent; border-color: var(--line-2); }
.ufield__value.num { font-family: var(--mono); }
.ufield__value .vtag {
  display: inline-flex; align-items: center; gap: 0.3em;
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: #0a5a3c; background: color-mix(in srgb, #34c98a 16%, transparent);
  padding: 0.25em 0.55em; border-radius: var(--pill);
}
.ufield__value--empty { color: var(--faint); font-style: italic; }
.ufield__hint { font-size: 0.74rem; color: var(--faint); }
.ufield__value--doc svg { width: 1rem; height: 1rem; color: var(--accent); flex: none; }
.ufield__value--doc .view {
  margin-left: auto;
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: 0.35em 0.7em; border-radius: var(--pill);
}
.ufield__value--doc .view:hover { background: color-mix(in srgb, var(--accent) 20%, transparent); }
.psection { scroll-margin-top: 100px; }
.psection + .psection { margin-top: 1.2rem; }
.psection .panel__head .btn { font-size: 0.82rem; --pad-y: 0.5em; --pad-x: 0.95em; }
.taglist { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
  font-size: 0.8rem; padding: 0.25em 0.65em;
  border-radius: var(--pill);
  background: var(--surface); border: 1px solid var(--line-2); color: var(--text);
}

/* ---------- activity timeline ---------- */
.activity { list-style: none; display: flex; flex-direction: column; }
.activity li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.8rem;
  padding: 0.7rem 1.2rem;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.activity li:last-child { border-bottom: 0; }
.activity__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-top: 0.5rem; }
.activity__dot--ok { background: #34c98a; }
.activity__dot--warn { background: var(--orange); }
.activity__what { font-size: 0.9rem; color: var(--text); }
.activity__meta { display: block; font-family: var(--mono); font-size: 0.72rem; color: var(--faint); margin-top: 0.15rem; letter-spacing: 0.02em; }
.activity__when { font-family: var(--mono); font-size: 0.74rem; color: var(--faint); white-space: nowrap; margin-top: 0.2rem; }

/* ---------- layouts ---------- */
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 1.2rem; min-width: 0; }
.stack--sm { gap: 0.8rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: start; }
.two-col--wide { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }

/* schedule list (earnings) */
.sched { list-style: none; display: flex; flex-direction: column; }
.sched li {
  display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 0.9rem; align-items: center;
  padding: 0.65rem 1.2rem; border-bottom: 1px solid var(--line); font-size: 0.9rem;
}
.sched li:last-child { border-bottom: 0; }
.sched__date { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); width: 6.2ch; }
.sched__what { min-width: 0; }
.sched__what small { display: block; font-family: var(--mono); font-size: 0.72rem; color: var(--faint); margin-top: 0.1rem; }
.sched__amt { font-family: var(--mono); font-weight: 500; white-space: nowrap; }
.sched li.is-next { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.sched li.is-next .sched__date { color: var(--accent); font-weight: 600; }

/* opportunity cards with a photo strip (Invest → available opportunities) */
.opp-card__media {
  margin: -1.7rem -1.7rem 1.2rem;
  height: 150px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.opp-card__media img { width: 100%; height: 100%; object-fit: cover; }
.opp-card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, color-mix(in srgb, var(--teal-ink) 30%, transparent));
}
.opp-card--photo::before { display: none; }
.opp-card--photo .opp-card__name { font-size: 1.3rem; }
.opp-card--photo .opp-card__rate .big { font-size: 1.9rem; }
.opp-card--photo { padding: 1.7rem; }
.opp-card--photo .opp-card__cta { padding-top: 1.1rem; }
.opps-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opp-card__rate .txt { font-size: 1.05rem; font-weight: 560; color: var(--text); line-height: 1.3; }

/* Trade — featured security */
.featured {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 0;
  overflow: hidden;
}
.featured__media { position: relative; min-height: 220px; }
.featured__media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.featured__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 55%, var(--surface) 100%),
              linear-gradient(0deg, color-mix(in srgb, var(--teal-ink) 30%, transparent), transparent 60%);
}
.featured__body { padding: 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.6rem; }
.featured__name { font-size: 1.3rem; font-weight: 600; line-height: 1.1; }
.featured__price { display: flex; align-items: baseline; gap: 0.7rem; margin-top: 0.3rem; }
.featured__price .big { font-family: var(--mono); font-size: 2rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.featured__facts {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0.7rem 1rem;
  margin-top: 0.6rem; padding-top: 0.9rem; border-top: 1px solid var(--line);
}
.featured__facts .k { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.featured__facts .v { font-size: 0.9rem; margin-top: 0.2rem; }

/* watchlist */
.watch { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0.8rem; }
.watch__item {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.8rem 0.95rem;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.watch__glyph {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: var(--surface-2); font-family: var(--display); font-size: 0.74rem; font-weight: 600; color: var(--accent);
}
.watch__nm { font-size: 0.88rem; font-weight: 540; min-width: 0; }
.watch__nm small { display: block; font-family: var(--mono); font-size: 0.7rem; color: var(--faint); font-weight: 400; }
.watch__px { margin-left: auto; text-align: right; font-family: var(--mono); font-size: 0.88rem; }
.watch__px .change-chip { display: inline-flex; margin-top: 0.2rem; font-size: 0.7rem; }
.watch__item--add {
  justify-content: center; border-style: dashed; background: transparent; box-shadow: none;
  color: var(--muted); font-size: 0.86rem;
}
.watch__item--add:hover { color: var(--accent); border-color: var(--accent); }

/* about page — light company block */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: clamp(1.6rem, 1rem + 3vw, 3.5rem); align-items: center; }
.about-grid .photo { aspect-ratio: 4 / 3; }
.about-grid .photo--tint::after { background: linear-gradient(120deg, color-mix(in srgb, var(--teal-ink) 22%, transparent), transparent 60%); }
.photo--stack { position: relative; }
.photo--stack .photo + .photo {
  position: absolute; right: -6%; bottom: -10%; width: 44%; aspect-ratio: 1;
  border: 4px solid var(--bg); box-shadow: var(--shadow-lg);
}
.facts-row { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0.9rem; margin-top: 1.4rem; }
.fact-lite .n { font-family: var(--mono); font-size: 1.45rem; font-weight: 500; letter-spacing: -0.02em; }
.fact-lite .l { font-size: 0.8rem; color: var(--muted); margin-top: 0.2rem; }
.prose--portal { max-width: 70ch; }
.prose--portal p { font-size: 0.95rem; color: var(--muted); line-height: 1.65; margin-top: 0.8rem; }
.prose--portal p:first-of-type { font-size: 1.05rem; color: var(--text); margin-top: 0; }
.prose--portal h3 { font-size: 1.1rem; margin: 1.6rem 0 0.4rem; }
.portal-steps--row { flex-direction: row; gap: 1.5rem; }
.portal-steps--row .pstep { flex: 1 1 0; }
.portal-steps--row .pstep h4 { font-size: 1.02rem; }
.portal-steps--row .pstep p { font-size: 0.9rem; }
.reg-block {
  display: grid; grid-template-columns: auto minmax(0,1fr); gap: 1.1rem; align-items: start;
  padding: 1.2rem 1.4rem;
  border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.reg-block .ic { width: 42px; height: 42px; border-radius: 12px; }
.reg-block h3 { font-size: 1rem; font-weight: 600; }
.reg-block p { color: var(--muted); font-size: 0.9rem; margin-top: 0.4rem; line-height: 1.6; }
.reg-block dl { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; margin-top: 0.8rem; font-size: 0.84rem; }
.reg-block dt { color: var(--faint); display: inline; }
.reg-block dd { display: inline; font-family: var(--mono); color: var(--text); margin-left: 0.4em; }

/* ---------- charts: inline SVG, ink from the band tokens ---------- */
.chart-fig { margin: 0; padding: 0.9rem 1.2rem 0.8rem; }
.chart-fig--spark { padding: 0.2rem 0 0; }
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart--spark { height: 64px; }
.chart__base { stroke: var(--line-2); stroke-width: 1; }
.chart__bar--paid { fill: var(--accent); }
.chart__bar--next { fill: var(--teal); }
.chart__bar--est  { fill: color-mix(in srgb, var(--accent) 22%, transparent); stroke: color-mix(in srgb, var(--accent) 45%, transparent); stroke-width: 1; stroke-dasharray: 3 2; }
.chart__val { font-family: var(--mono); font-size: 11px; fill: var(--muted); }
.chart__lbl { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em; fill: var(--faint); }
.chart__line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart__dot { fill: var(--teal); stroke: var(--surface); stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart__legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; margin-top: 0.6rem; font-size: 0.76rem; color: var(--muted); }
.chart__legend span { display: inline-flex; align-items: center; gap: 0.4em; }
.chart__key { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.chart__key--paid { background: var(--accent); }
.chart__key--next { background: var(--teal); }
.chart__key--est  { background: color-mix(in srgb, var(--accent) 22%, transparent); border: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent); }
.chart__cap { font-size: 0.76rem; color: var(--faint); margin-top: 0.6rem; }
.chart__cap--row { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.35rem; font-family: var(--mono); font-size: 0.7rem; }
.chart-fig + .sched { border-top: 1px solid var(--line); }

/* light-page footer (mist) — brand mark switches to the on-light logo */
.footer .brand img { height: 40px; }

/* dev-only guest / signed-in mock switch (not part of the design) */
body[data-mock="guest"] [data-auth="user"],
body[data-mock="user"] [data-auth="guest"] { display: none !important; }
.mock-auth {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 95;
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.4rem 0.35rem 0.8rem;
  border-radius: var(--pill);
  background: #06212a; color: #eef6f6;
  font: 500 0.74rem/1 var(--mono);
  letter-spacing: 0.04em;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.5);
}
.mock-auth button {
  border: 1px solid rgba(255,255,255,.2); border-radius: var(--pill);
  background: transparent; color: inherit; font: inherit;
  padding: 0.35em 0.7em; cursor: pointer;
}
.mock-auth button[aria-pressed="true"] { background: var(--teal); color: #042027; border-color: transparent; }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-grid { grid-template-columns: 1fr; }
  .opps-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 880px) {
  .rail-layout { grid-template-columns: 1fr; }
  .section-rail { position: static; flex-direction: row; flex-wrap: wrap; gap: 0.4rem; }
  .section-rail__label { flex-basis: 100%; }
  .section-rail a { border: 1px solid var(--line-2); border-radius: var(--pill); padding: 0.4em 0.9em; font-size: 0.84rem; }
  .section-rail a.is-active { border-color: var(--accent); }
  .two-col, .two-col--wide { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .featured { grid-template-columns: 1fr; }
  .featured__media { min-height: 180px; }
  .featured__media::after { background: linear-gradient(0deg, var(--surface) 0%, transparent 60%); }
  .portal-steps--row { flex-direction: column; }
}
@media (max-width: 640px) {
  .fields { grid-template-columns: 1fr; }
  .opps-grid--3 { grid-template-columns: 1fr; }
  .facts-row { grid-template-columns: 1fr 1fr; }
  .photo--stack .photo + .photo { right: 0; bottom: -6%; }
  .status-strip__bar { width: 100%; order: 3; }
  .status-strip .btn { margin-left: 0; width: 100%; }
}
@media (max-width: 460px) {
  .tiles { grid-template-columns: 1fr; }
  .featured__facts { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   IT2 ICONS & COLOUR — Lucide (assets/vendor/lucide.min.js, rendered by
   app.js from <i data-lucide="…">). .ic is a tinted badge; .ic-inline is a
   bare glyph in running text. One colour per element: teal = information /
   default, green = money in / complete, amber = attention / upcoming,
   violet = records / market, rose = down / leave.
   ========================================================================== */
.ic {
  --c: var(--c-teal-ic); --c-bg: var(--c-teal-bg);
  flex: none;
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 11px;
  background: var(--c-bg);
  color: var(--c);
}
.ic svg { width: 19px; height: 19px; }
.ic--sm { width: 28px; height: 28px; border-radius: 8px; }
.ic--sm svg { width: 16px; height: 16px; }
.ic--xs { width: 22px; height: 22px; border-radius: 6px; }
.ic--xs svg { width: 13px; height: 13px; }
.ic--round { border-radius: 50%; }
.ic--teal   { --c: var(--c-teal-ic);   --c-bg: var(--c-teal-bg); }
.ic--green  { --c: var(--c-green-ic);  --c-bg: var(--c-green-bg); }
.ic--amber  { --c: var(--c-amber-ic);  --c-bg: var(--c-amber-bg); }
.ic--violet { --c: var(--c-violet-ic); --c-bg: var(--c-violet-bg); }
.ic--rose   { --c: var(--c-rose-ic);   --c-bg: var(--c-rose-bg); }
.ic--muted  { --c: var(--muted);       --c-bg: color-mix(in srgb, var(--text) 7%, transparent); }
.ic-inline {
  display: inline-block; flex: none;
  width: 1em; height: 1em;
  vertical-align: -0.16em;
  margin-right: 0.4em;
  color: var(--c, currentColor);
}
.with-ic { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.8rem; align-items: start; }

/* page head meta row: teal glyph per fact */
.page-head__meta > span { display: inline-flex; align-items: center; gap: 0.3em; }
.page-head__meta .ic-inline { color: var(--accent); width: 1.05em; height: 1.05em; margin-right: 0.1em; }

/* section and panel titles carry a small badge */
.sec-head h2 { display: flex; align-items: center; gap: 0.6rem; }
.panel__title { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.panel__title small { margin-left: 0; }

/* tiles: badge top-right + a 3px rule in the same colour */
.tile { position: relative; }
.tile__ic { position: absolute; top: 0.8rem; right: 0.85rem; }
.tile--teal   { --tc: var(--c-teal-ic); }
.tile--green  { --tc: var(--c-green-ic); }
.tile--amber  { --tc: var(--c-amber-ic); }
.tile--violet { --tc: var(--c-violet-ic); }
.tile--teal, .tile--green, .tile--amber, .tile--violet { border-left: 3px solid var(--tc); padding-right: 3.3rem; }

/* status strip: amber for the KYC nudge, green for the sample-account notice */
.status-strip__icon { color: var(--c-amber-ic); }
.status-strip--ok .status-strip__icon { color: var(--c-green-ic); }

/* activity: round badge instead of the dot */
.activity__ic { margin-top: 0.05rem; }

/* schedule: glyph column before the date */
.sched li { grid-template-columns: auto auto minmax(0, 1fr) auto; }
.sched li.is-next .sched__date { color: var(--c-teal); }

/* profile section rail */
.section-rail__lbl { display: flex; align-items: center; gap: 0.55rem; min-width: 0; }
.section-rail__lbl svg { width: 16px; height: 16px; flex: none; color: var(--faint); transition: color 0.2s; }
.section-rail a:hover .section-rail__lbl svg,
.section-rail a.is-active .section-rail__lbl svg { color: var(--accent); }

/* portal step numbers get the teal tint (Home keeps the outlined Horizon version) */
.portal .pstep__n { background: var(--c-teal-bg); border-color: transparent; color: var(--c-teal); }

/* facts on About */
.fact-lite { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.75rem; align-items: center; }

/* document tags and table document links */
.tag .ic-inline, .cell-action .ic-inline { color: var(--accent); width: 0.95em; height: 0.95em; }
.cell-action .is-watching { color: var(--c-amber); }
.cell-action .is-watching .ic-inline { color: var(--c-amber-ic); fill: var(--c-amber-bg); }
.watch__item--add .ic-inline { width: 1.1em; height: 1.1em; margin-right: 0; }

/* user menu */
.nav-user__item svg { width: 16px; height: 16px; flex: none; margin-right: 0.6rem; color: var(--muted); }
.nav-user__item:hover svg { color: inherit; }
.nav-user__item--danger svg { color: #ff6b6b; }
.page--light .nav-user__item--danger svg { color: var(--c-rose-ic); }

/* contact fields on About */
.ufield__value .ic-inline { color: var(--accent); margin-right: 0; }

/* two-column bands: cards stretch to the taller column so no column ends early */
.dash-grid, .two-col { align-items: stretch; }
.stack > .panel:last-child, .two-col > .panel, .dash-grid > .panel { display: flex; flex-direction: column; }
.stack > .panel:last-child { flex: 1 0 auto; }
.panel > .panel__foot { margin-top: auto; }

/* the one field the KYC nudge points at */
.ufield--todo .ufield__value { border-color: color-mix(in srgb, var(--orange) 55%, var(--line)); background: color-mix(in srgb, var(--orange) 6%, var(--surface)); color: var(--c-amber); font-style: normal; }
.ufield--todo .ufield__value .ic-inline { color: var(--c-amber-ic); }
