:root {
  --ink: #07172f;
  --muted: #536179;
  --paper: #f4f8ff;
  --white: #ffffff;
  --blue: #003087;
  --blue-2: #0070e0;
  --blue-3: #00a8ea;
  --pale: #e9f5ff;
  --yellow: #ffc439;
  --line: #d8e5f4;
  --shadow: 0 24px 70px rgba(0, 48, 135, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 13px clamp(20px, 5vw, 76px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 9px;
  font-weight: 900;
}

.brand-icon {
  display: block;
  height: 42px;
  width: 42px;
}

.brand-logo {
  display: block;
  height: 28px;
  width: auto;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(150deg, #1f74d6 0%, #0b3e88 100%);
  color: #fff;
  font-weight: 900;
  font-size: 1.18rem;
  line-height: 1;
  box-shadow: 0 6px 16px -6px rgba(0, 48, 135, 0.5);
}
.brand-wordmark {
  display: block;
  height: 21px;
  width: auto;
}

.nav-links {
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-links a,
.nav-cta {
  padding: 9px 11px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 850;
  white-space: nowrap;
}

.nav-links a {
  color: var(--muted);
}

.nav-links a:hover {
  background: var(--pale);
  color: var(--blue);
}

.nav-cta,
.button.primary {
  color: var(--white);
  background: var(--blue);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 0.95fr);
  gap: clamp(34px, 5vw, 70px);
  align-items: center;
  min-height: calc(100vh - 74px);
  padding: clamp(52px, 8vw, 110px) clamp(20px, 5vw, 76px);
  background:
    radial-gradient(circle at 78% 12%, rgba(0, 168, 234, 0.22), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #eff8ff 58%, #dff2ff 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue-2);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  color: var(--blue);
  font-size: clamp(3.1rem, 5.35vw, 5.85rem);
  line-height: 0.95;
  letter-spacing: 0;
}

/* Landing hero heading: smaller cap so long words ("phonological infrastructure")
   don't each break to their own line in the ~half-width column. */
.hero h1 {
  max-width: 18ch;
  font-size: clamp(2.3rem, 3.8vw, 3.7rem);
  line-height: 1.04;
}

h2 {
  margin-bottom: 18px;
  color: var(--blue);
  font-size: clamp(1.85rem, 3vw, 2.85rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: clamp(1.18rem, 1.65vw, 1.55rem);
  line-height: 1.16;
  letter-spacing: 0;
}

.lead,
.section-heading p,
.fsi-preamble p,
.product-section p,
.equation-section p,
.api-section p,
.partnership p,
.reason-grid p,
.reason-feature p,
.offer-grid p {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.58;
}

.lead {
  max-width: 710px;
  font-size: clamp(1.1rem, 2vw, 1.36rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  border: 2px solid var(--blue);
  font-weight: 950;
}

.button.secondary {
  color: var(--blue);
  background: var(--white);
}

.product-hero {
  position: relative;
  display: grid;
  gap: 16px;
  min-height: 650px;
  padding: clamp(24px, 4vw, 44px);
  border-radius: 36px;
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.product-hero::before {
  content: "";
  position: absolute;
  right: -110px;
  top: -110px;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: var(--yellow);
}

.product-hero::after {
  content: "";
  position: absolute;
  left: -80px;
  bottom: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(0, 112, 224, 0.12);
}

.product-topline,
.big-count,
.equation-card,
.syllable-strip {
  position: relative;
  z-index: 1;
}

.product-topline {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.product-topline span,
.product-topline b,
.equation-card span,
.offer-grid span,
.api-flow span,
.deal-card span,
.reason-feature span,
.reason-grid span {
  color: var(--blue-2);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-topline b {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--pale);
}

.big-count {
  display: grid;
  align-content: center;
  min-height: 190px;
  padding: 28px;
  border-radius: 28px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
}

.big-count strong {
  display: block;
  font-size: clamp(5rem, 11vw, 9rem);
  line-height: 0.86;
}

.big-count span {
  margin-top: 12px;
  font-size: 1.3rem;
  font-weight: 850;
}

.equation-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #f9fcff;
}

.equation-card.mini {
  background: #fff7dc;
  border-color: #ffe39d;
}

.equation-card strong {
  display: block;
  margin-top: 10px;
  color: var(--blue);
  font-size: clamp(1.8rem, 3.8vw, 3.4rem);
  line-height: 1.05;
}

.equation-card:not(.mini) strong {
  font-size: clamp(1.65rem, 2.75vw, 2.8rem);
  line-height: 1.08;
}

.equation-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.45;
}

.equation-card.mini strong {
  font-size: clamp(1.55rem, 2.8vw, 2.65rem);
}

.syllable-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.syllable-strip i {
  display: grid;
  place-items: center;
  min-height: 58px;
  border-radius: 18px;
  color: var(--blue);
  background: var(--pale);
  font-style: normal;
  font-weight: 950;
}

.proof-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
}

.proof-band div {
  padding: 34px clamp(20px, 3vw, 42px);
  background: var(--white);
}

.proof-band strong {
  display: block;
  color: var(--blue);
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1;
}

.proof-band span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 850;
}

.fsi-preamble,
.product-section,
.explainer-section,
.equation-section,
.anatomy-section,
.mission-section,
.api-section,
.partnership {
  padding-block: clamp(70px, 9vw, 118px);
  padding-inline: max(clamp(20px, 5vw, 76px), calc((100vw - 1180px) / 2));
}

.fsi-preamble > *,
.product-section > *,
.explainer-section > *,
.anatomy-section > *,
.reasons > *,
.compare-section > * {
  max-width: 1180px;
  margin-inline: auto;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-heading.compact {
  margin-bottom: 24px;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.offer-grid article,
.explainer-grid article,
.payload-card,
.payload-card div,
.mission-grid article,
.reason-grid article,
.reason-feature,
.api-flow div,
.deal-card {
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 14px 42px rgba(0, 48, 135, 0.1);
}

.offer-grid article {
  min-height: 265px;
  padding: 30px;
  border-top: 6px solid var(--yellow);
}

.explainer-section {
  background: var(--white);
}

.explainer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.explainer-grid article {
  min-height: 250px;
  padding: 30px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.98)),
    var(--pale);
}

.explainer-grid article h3 {
  color: var(--blue);
}

.equation-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(460px, 1fr);
  gap: 44px;
  align-items: center;
  background: var(--blue);
}

.equation-section h2,
.equation-section .eyebrow {
  color: var(--white);
}

.equation-section p {
  color: rgba(255, 255, 255, 0.76);
}

.equation-stage {
  display: grid;
  gap: 18px;
}

.formula {
  min-height: 205px;
  padding: 32px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.formula.primary-formula {
  background: var(--white);
}

.formula span {
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.formula strong {
  display: block;
  margin: 14px 0 16px;
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.04;
}

.formula.primary-formula strong {
  font-size: clamp(1.75rem, 3.2vw, 3rem);
  line-height: 1.08;
}

.formula.primary-formula strong {
  color: var(--blue);
}

.formula.primary-formula p {
  color: var(--muted);
}

.anatomy-section {
  background: linear-gradient(135deg, #ffffff, #f0f8ff);
}

.payload-card {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  background: var(--white);
}

.payload-card div {
  min-height: 235px;
  padding: 22px;
  background: var(--pale);
  box-shadow: none;
}

.payload-card span {
  color: var(--blue-2);
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.payload-card strong {
  display: block;
  margin: 14px 0 12px;
  color: var(--blue);
  font-size: 1.18rem;
  line-height: 1.16;
}

.payload-card p {
  color: var(--muted);
  line-height: 1.5;
}

.mission-section {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(440px, 1fr);
  gap: 42px;
  align-items: start;
  background:
    radial-gradient(circle at 90% 12%, rgba(255, 196, 57, 0.35), transparent 30%),
    linear-gradient(135deg, var(--blue), #0067d7);
}

.mission-section h2,
.mission-section .eyebrow {
  color: var(--white);
}

.mission-section p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.06rem;
  line-height: 1.58;
}

.mission-grid {
  display: grid;
  gap: 16px;
}

.mission-grid article {
  padding: 26px;
  background: rgba(255, 255, 255, 0.96);
}

.mission-grid span {
  color: var(--blue-2);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mission-grid h3 {
  margin-top: 12px;
  color: var(--blue);
}

.mission-grid p {
  color: var(--muted);
}

.reasons {
  padding-block: clamp(70px, 9vw, 118px);
  padding-inline: max(clamp(20px, 5vw, 76px), calc((100vw - 1180px) / 2));
}

.reason-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr);
  gap: 32px;
  align-items: center;
  padding: 32px;
  margin-bottom: 18px;
}

.alphabet-graphic {
  display: grid;
  grid-template-columns: 1fr auto 1.4fr;
  gap: 14px;
  align-items: center;
}

.alphabet-graphic b {
  display: grid;
  place-items: center;
  min-height: 160px;
  padding: 22px;
  border-radius: 26px;
  color: var(--blue);
  background: var(--pale);
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  text-align: center;
}

.alphabet-graphic i {
  color: var(--blue-2);
  font-style: normal;
  font-weight: 950;
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.reason-grid article {
  min-height: 245px;
  padding: 24px;
}

.api-section,
.partnership {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
  gap: 42px;
  align-items: center;
}

.api-section {
  background: linear-gradient(135deg, #ffffff, #e8f6ff);
}

.api-flow {
  display: grid;
  gap: 16px;
}

.api-flow div {
  padding: 28px;
  border-left: 10px solid var(--yellow);
}

.api-flow strong {
  display: block;
  margin: 10px 0;
  color: var(--blue);
  font-size: clamp(1.55rem, 2.7vw, 2.4rem);
  line-height: 1.08;
}

.partnership {
  background: var(--white);
}

.deal-card {
  padding: 34px;
}

.deal-card strong {
  display: block;
  margin: 16px 0 28px;
  color: var(--blue);
  font-size: clamp(3.4rem, 7vw, 6.5rem);
  line-height: 1;
}

.deal-card .button {
  width: 100%;
}

.article-page {
  padding: clamp(44px, 7vw, 90px) clamp(20px, 5vw, 76px);
  background: linear-gradient(135deg, #ffffff, #eef8ff);
}

.article-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 58px);
  border-radius: 34px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.article-shell h1 {
  max-width: 100%;
  font-size: clamp(2.55rem, 5vw, 4.7rem);
  line-height: 1;
}

.article-shell h2 {
  margin-top: 46px;
  font-size: clamp(1.8rem, 3.6vw, 3rem);
}

.article-shell h3 {
  margin-top: 30px;
}

.article-shell p,
.article-shell li {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.article-shell blockquote {
  margin: 28px 0;
  padding: 24px;
  border-left: 8px solid var(--yellow);
  border-radius: 20px;
  background: var(--pale);
  color: var(--blue);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.5;
}

.article-shell pre {
  overflow-x: auto;
  padding: 20px;
  border-radius: 18px;
  background: var(--ink);
  color: var(--white);
}

.back-link {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--blue-2);
  font-weight: 900;
}

@media (max-width: 1060px) {
  .site-header,
  .hero,
  .equation-section,
  .mission-section,
  .api-section,
  .partnership,
  .reason-feature {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .proof-band,
  .offer-grid,
  .explainer-grid,
  .payload-card,
  .reason-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
    gap: 14px;
  }

  .nav-cta {
    justify-self: start;
  }

  h1 {
    font-size: clamp(2.55rem, 10.8vw, 3.05rem);
    line-height: 1;
    max-width: 100%;
  }

  .eyebrow {
    font-size: 0.7rem;
    line-height: 1.35;
  }

  .lead,
  .section-heading p,
  .fsi-preamble p,
  .product-section p,
  .equation-section p,
  .api-section p,
  .partnership p,
  .reason-grid p,
  .reason-feature p,
  .offer-grid p {
    font-size: 0.98rem;
  }

  .hero {
    padding-top: 36px;
  }

  .product-hero {
    min-height: auto;
    border-radius: 26px;
  }

  .product-topline,
  .alphabet-graphic {
    grid-template-columns: 1fr;
  }

  .equation-card:not(.mini) strong {
    font-size: clamp(1.5rem, 8vw, 2.1rem);
  }

  .product-topline {
    align-items: start;
  }

  .proof-band,
  .offer-grid,
  .explainer-grid,
  .payload-card,
  .reason-grid {
    grid-template-columns: 1fr;
  }

  .syllable-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Comparison player ─────────────────────────────────────────── */
.compare-section {
  padding-block: clamp(70px, 9vw, 118px);
  padding-inline: max(clamp(20px, 5vw, 76px), calc((100vw - 1180px) / 2));
  background: var(--white);
}

.workspace-page {
  padding-block: 34px clamp(70px, 9vw, 110px);
  padding-inline: max(clamp(20px, 5vw, 76px), calc((100vw - 1180px) / 2));
}

.workspace-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(34px, 5vw, 58px);
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff, #eff8ff);
  box-shadow: 0 18px 54px rgba(0, 48, 135, 0.1);
}

.workspace-hero h1 {
  max-width: 860px;
  margin: 6px 0 16px;
  font-size: clamp(2.25rem, 4.2vw, 4.4rem);
  line-height: 1;
}

.workspace-hero .lead {
  max-width: 800px;
}

.workspace-proof {
  margin: 24px 0 0;
  border-radius: 18px;
  overflow: hidden;
}

.admin-switcher {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 20px;
}

.workspace-player {
  max-width: 1180px;
  margin: 24px auto 0;
  border-radius: 24px;
  box-shadow: 0 18px 54px rgba(0, 48, 135, 0.1);
}

.signed-in-user {
  color: var(--muted);
  font-weight: 800;
}

.notice-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 12px max(clamp(20px, 5vw, 76px), calc((100vw - 1180px) / 2));
  color: #7a4a00;
  background: #fff7e6;
  border-bottom: 1px solid var(--yellow);
  font-weight: 800;
}

/* ── Enterprise app header (brand · account) + nav bar + Products dropdown ── */
.sh-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-name { font-size: 1.06rem; font-weight: 900; color: var(--blue); letter-spacing: -0.01em; }
.sh-product { font-size: 0.62rem; font-weight: 850; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); background: var(--pale); border: 1px solid #cfe1f6; padding: 3px 8px; border-radius: 6px; flex: none; }
.sh-account { display: flex; align-items: center; gap: 16px; flex: none; }
.sh-admin { font-size: 0.82rem; font-weight: 800; color: var(--muted); text-decoration: none; white-space: nowrap; }
.sh-admin:hover { color: var(--blue); }
.sh-user { display: flex; align-items: center; gap: 9px; }
.sh-avatar { width: 33px; height: 33px; border-radius: 50%; background: linear-gradient(150deg, #1f74d6, #0b3e88); color: #fff; display: inline-grid; place-items: center; font-weight: 850; font-size: 0.84rem; flex: none; }
.sh-user-meta { display: flex; flex-direction: column; line-height: 1.15; }
.sh-email { font-size: 0.8rem; font-weight: 750; color: var(--ink); }
.sh-tier { font-size: 0.64rem; font-weight: 850; letter-spacing: 0.04em; text-transform: uppercase; color: #0f7a37; }
.sh-signout { font-size: 0.8rem; font-weight: 850; color: var(--blue); border: 1px solid #cfe1f6; background: var(--pale); padding: 8px 15px; border-radius: 9px; text-decoration: none; white-space: nowrap; }
.sh-signout:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

.app-nav { display: flex; align-items: center; gap: 6px; padding: 0 clamp(20px, 5vw, 76px); background: var(--white); border-bottom: 1px solid var(--line); }
.app-nav-links { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.app-link { padding: 13px 14px; font-size: 0.88rem; font-weight: 800; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; transition: color 0.14s ease; white-space: nowrap; }
.app-link:hover { color: var(--blue); }
.app-link.on { color: var(--blue); border-bottom-color: var(--blue); }
.prod-switcher { margin-left: auto; position: relative; }
.prod-switcher > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; font-size: 0.85rem; font-weight: 800; color: var(--ink); border: 1px solid var(--line); border-radius: 9px; user-select: none; }
.prod-switcher > summary::-webkit-details-marker { display: none; }
.prod-switcher[open] > summary { border-color: var(--blue); color: var(--blue); background: var(--pale); }
.prod-switcher .chev { transition: transform 0.15s ease; }
.prod-switcher[open] .chev { transform: rotate(180deg); }
.prod-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 212px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 48px -16px rgba(0, 48, 135, 0.3); padding: 6px; z-index: 40; display: grid; gap: 1px; }
.prod-menu-label { margin: 4px 10px 4px; font-size: 0.64rem; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.prod-menu a { padding: 9px 12px; border-radius: 8px; font-size: 0.86rem; font-weight: 750; color: var(--ink); text-decoration: none; }
.prod-menu a:hover { background: var(--pale); color: var(--blue); }
@media (max-width: 720px) {
  .sh-user-meta { display: none; }
  .app-nav { overflow-x: auto; }
  .app-nav-links { flex-wrap: nowrap; }
}

.small-button {
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.84rem;
}

.auth-page {
  min-height: calc(100vh - 73px);
  display: grid;
  place-items: center;
  padding: clamp(34px, 7vw, 86px) 20px;
  background: linear-gradient(135deg, #ffffff, #e8f6ff);
}

.auth-card {
  width: min(100%, 460px);
  padding: clamp(28px, 5vw, 44px);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.auth-card h1 {
  margin-bottom: 10px;
  font-size: clamp(2.2rem, 5vw, 3.1rem);
  line-height: 1;
}

.auth-card p {
  color: var(--muted);
  line-height: 1.55;
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.auth-form label {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 850;
}

.auth-form input {
  width: 100%;
  margin-top: 7px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.auth-form input:focus {
  outline: 3px solid rgba(0, 112, 224, 0.18);
  border-color: var(--blue-2);
}

.form-error {
  padding: 12px 14px;
  border-radius: 12px;
  color: #991b1b !important;
  background: #fee2e2;
  font-weight: 850;
}
.compare-controls {
  display: flex; flex-wrap: wrap; gap: 22px 40px; align-items: flex-end;
  margin: 6px 0 26px;
}
.compare-onsets, .compare-langs { display: flex; flex-wrap: wrap; gap: 8px; }
.compare-langwrap { display: flex; flex-direction: column; gap: 8px; }
.compare-langlabel {
  font-size: 0.72rem; font-weight: 900; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.cmp-chip {
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  border-radius: 999px; padding: 9px 18px; font: inherit; font-weight: 800;
  font-size: 0.9rem; cursor: pointer; transition: all 0.16s ease;
  box-shadow: 0 1px 2px rgba(11, 40, 94, 0.06);
}
.cmp-chip:hover {
  border-color: var(--blue-2); color: var(--blue);
  box-shadow: 0 4px 12px rgba(0, 48, 135, 0.13); transform: translateY(-1px);
}
.cmp-chip.active {
  background: var(--blue); color: var(--white); border-color: var(--blue);
  box-shadow: 0 4px 14px rgba(0, 48, 135, 0.28);
}
.compare-grid { overflow-x: auto; border-radius: 26px; }
.cmp-table {
  width: 100%; border-collapse: separate; border-spacing: 10px;
  min-width: 560px;
}
.cmp-table th {
  font-size: 1.05rem; font-weight: 800; color: var(--blue);
  text-align: center; padding: 4px 0; letter-spacing: 0.02em;
}
.cmp-table th:first-child { text-align: left; color: var(--muted); font-size: 0.76rem;
  text-transform: uppercase; letter-spacing: 0.08em; }
.cmp-lang { white-space: nowrap; padding-right: 14px; }
.cmp-lang b { display: block; font-size: 1.06rem; }
.cmp-lang span { font-size: 0.74rem; color: var(--muted); }
.cmp-cell {
  width: 100%; min-width: 86px; min-height: 64px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; border: 1px solid var(--line); border-radius: 18px;
  background: var(--pale); color: var(--ink); font: inherit; cursor: pointer;
  transition: all 0.14s;
}
button.cmp-cell:hover { border-color: var(--blue-2); background: #dcefff; transform: translateY(-1px); }
.cmp-cell.playing { background: var(--blue); color: var(--white); border-color: var(--blue); box-shadow: var(--shadow); }
.cmp-surface { font-size: 1.18rem; font-weight: 800; }
.cmp-play { font-size: 0.72rem; opacity: 0.7; }
.cmp-cell.empty {
  background: transparent; border-style: dashed; color: var(--muted);
  cursor: default; font-weight: 700;
}
.cmp-voice {
  margin-top: 6px; max-width: 168px; font: inherit; font-size: 0.78rem;
  font-weight: 600; color: var(--blue); background: var(--white);
  border: 1px solid var(--line); border-radius: 10px; padding: 5px 8px; cursor: pointer;
}
.cmp-voice:hover { border-color: var(--blue-2); }
.compare-loading { color: var(--muted); padding: 28px 4px; }
.compare-foot { color: var(--muted); font-size: 0.86rem; margin-top: 14px; }

/* ── Site footer (corporate identity + trust/legal links) ───────────── */
.site-footer {
  background: var(--blue);
  color: rgba(255, 255, 255, 0.82);
  padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 76px) 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 900; color: var(--white); font-size: 1.15rem; }
.footer-brand .brand-mark {
  background: var(--white) url("bantunomics-icon.png") center / 80% no-repeat;
  border-radius: 11px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.28);
}
.site-footer p { color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; line-height: 1.6; margin-top: 12px; }
.footer-col h4 {
  color: var(--white); font-size: 0.74rem; font-weight: 900;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px;
}
.footer-col a { display: block; color: rgba(255, 255, 255, 0.8); font-size: 0.92rem; padding: 5px 0; }
.footer-col a:hover { color: var(--yellow); }
.site-footer p a, .footer-bottom a { color: var(--white); text-decoration: underline; text-underline-offset: 2px; }
.site-footer p a:hover, .footer-bottom a:hover { color: var(--yellow); }
.footer-bottom {
  max-width: 1200px; margin: 36px auto 0; padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.82rem; color: rgba(255, 255, 255, 0.6);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ── Coverage matrix table ─────────────────────────────────────────── */
.coverage-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 8px 0 18px; }
.coverage-search {
  flex: 1; min-width: 220px; padding: 12px 16px; font: inherit;
  border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink);
}
.coverage-chip {
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 700; font-size: 0.9rem; cursor: pointer;
}
.coverage-chip.active { background: var(--blue); color: var(--white); border-color: var(--blue); }
.coverage-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid var(--line); }
.coverage-table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 0.9rem; }
.coverage-table th {
  position: sticky; top: 0; background: var(--blue); color: var(--white);
  text-align: left; padding: 12px 14px; font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap;
}
.coverage-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.coverage-table tbody tr:hover td { background: var(--pale); }
.coverage-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.cov-pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.02em;
}
.cov-pill.audio { background: #e7f6ec; color: #066b3a; }
.cov-pill.text { background: var(--pale); color: var(--blue); }
.coverage-note { color: var(--muted); font-size: 0.86rem; margin-top: 14px; }

/* ── Trust/legal content niceties (inside .article-shell) ──────────── */
.trust-meta { color: var(--muted); font-size: 0.86rem; margin-bottom: 8px; }
.schema-box {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.84rem; line-height: 1.7; color: var(--ink); overflow-x: auto; margin: 14px 0;
}
.status-roadmap { display: grid; gap: 10px; margin: 14px 0; }
.status-roadmap div { display: flex; gap: 10px; align-items: baseline; }
.status-roadmap b { color: var(--blue); min-width: 130px; }

/* ── Benchmark (model vs ground truth) ─────────────────────────────── */
.bench-onsets { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 22px; }
.bench-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 12px 0 6px; }
@media (max-width: 720px) { .bench-cols { grid-template-columns: 1fr; } }
.bench-card { border: 1px solid var(--line); border-radius: 18px; padding: 20px; background: var(--white); }
.bench-card.gt { border-color: var(--blue-2); }
.bench-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.bench-card .sub { color: var(--muted); font-size: 0.84rem; margin-bottom: 14px; }
.bench-syls { display: flex; flex-wrap: wrap; gap: 8px; }
.bench-syl {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 52px; padding: 8px 12px; border-radius: 12px;
  background: var(--pale); color: var(--blue); font-weight: 800; font-size: 1rem;
}
.bench-syl.missing { background: #fdecea; color: #b3261e; }
.bench-syl.spurious { background: #fff4e0; color: #9a6700; text-decoration: line-through; }
.bench-legend { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 0.84rem; margin-top: 12px; }
.bench-legend i { font-style: normal; }
.bench-dot { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: -1px; margin-right: 6px; }
.bench-illustrative { color: var(--muted); font-size: 0.82rem; margin-top: 6px; }
.bench-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 0.92rem; }
.bench-table th { text-align: left; background: var(--pale); color: var(--blue); padding: 10px 14px; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; }
.bench-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); }
.bench-pending { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #fff4e0; color: #9a6700; font-size: 0.74rem; font-weight: 800; }

/* ── Admin console ──────────────────────────────────────────────────── */
.admin-tabbar {
  position: sticky; top: 73px; z-index: 15;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  flex-wrap: wrap;
  padding: 12px max(clamp(20px, 5vw, 76px), calc((100vw - 1180px) / 2));
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-page {
  padding-block: 28px clamp(60px, 8vw, 100px);
  padding-inline: max(clamp(20px, 5vw, 76px), calc((100vw - 1180px) / 2));
  min-height: 60vh;
}
.admin-head { margin-bottom: 26px; }
.admin-head h1 { font-size: clamp(2rem, 3.6vw, 3.2rem); margin-bottom: 10px; }
.admin-head .lead { max-width: 880px; }

.admin-flash {
  margin: 0 0 22px; padding: 14px 18px; border-radius: 14px;
  background: #e7f6ec; border: 1px solid #b6e2c6; color: #066b3a; font-weight: 800;
}
.admin-flash.warn { background: #fff7e6; border-color: var(--yellow); color: #7a4a00; }
.admin-flash p { margin: 0; color: inherit; line-height: 1.5; }
.admin-flash p + p { margin-top: 6px; }

.admin-kpis {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px; margin-bottom: 28px;
}
.kpi {
  padding: 22px 24px; border-radius: 20px; background: var(--white);
  box-shadow: 0 14px 42px rgba(0, 48, 135, 0.1); border-top: 5px solid var(--line);
}
.kpi.accent { border-top-color: var(--yellow); }
.kpi strong {
  display: block; color: var(--blue); font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1; font-weight: 900;
}
.kpi span {
  display: block; margin-top: 10px; color: var(--muted);
  font-size: 0.82rem; font-weight: 850; letter-spacing: 0.02em;
}

.admin-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 28px; }
@media (max-width: 1060px) { .admin-grid-2 { grid-template-columns: 1fr; } }

.admin-card {
  padding: 26px; border-radius: 20px; background: var(--white);
  box-shadow: 0 14px 42px rgba(0, 48, 135, 0.1);
}
.admin-card h3 { color: var(--blue); margin-bottom: 16px; }
.admin-card-text { color: var(--muted); line-height: 1.55; margin: 0 0 14px; }
.admin-card-text.small { font-size: 0.84rem; }
.admin-section-title { color: var(--blue); margin: 6px 0 14px; }

.admin-status-rows { display: grid; gap: 0; margin-bottom: 18px; }
.admin-status-rows > div {
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.admin-status-rows span { color: var(--muted); font-weight: 800; font-size: 0.86rem; }
.admin-status-rows b { color: var(--ink); font-weight: 850; text-align: right; word-break: break-all; }

.mono, .admin-status-rows b.mono, .token-reveal {
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.84rem;
}
.token-reveal { color: var(--blue); font-weight: 800; word-break: break-all; }

/* forms */
.admin-toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.admin-form { display: grid; gap: 14px; }
.admin-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.admin-inline-form { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.admin-form label, .admin-inline-form label {
  display: grid; gap: 7px; color: var(--ink); font-size: 0.82rem; font-weight: 850;
}
.admin-input {
  min-width: 200px; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 12px; color: var(--ink); background: var(--white); font: inherit;
}
.admin-input:focus { outline: 3px solid rgba(0, 112, 224, 0.18); border-color: var(--blue-2); }
select.admin-input { min-width: 220px; }
.copy-field { width: 100%; min-width: 260px; color: var(--blue); }

/* row actions */
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.admin-actions form { display: inline; margin: 0; }
.link-button, .link-danger {
  background: none; border: none; padding: 4px 2px; font: inherit; font-weight: 850;
  cursor: pointer; color: var(--blue-2);
}
.link-button:hover { text-decoration: underline; }
.link-danger { color: #b3261e; }
.link-danger:hover { text-decoration: underline; }
.button.small-button, .link-button.small-button, .link-danger.small-button { font-size: 0.82rem; }

.admin-sub { color: var(--muted); font-size: 0.8rem; }
.admin-empty { color: var(--muted); padding: 18px 4px; font-weight: 700; }

/* extra status-pill variants (audio=green & text=blue already defined) */
.cov-pill.warn { background: #fff4e0; color: #9a6700; }
.cov-pill.muted { background: #eef1f6; color: var(--muted); }

@media (max-width: 680px) {
  .admin-tabbar { position: static; }
  .admin-form-row { grid-template-columns: 1fr; }
}

/* ── Pipeline (/pipeline) + Speakers (/voices) — customer-app integration ── */
.pipe-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 8px;
}
.pipe-stat {
  flex: 1 1 140px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 8px 24px rgba(0, 48, 135, 0.06);
}
.pipe-stat b {
  display: block;
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--blue);
  line-height: 1.1;
}
.pipe-stat span {
  font-size: 0.82rem;
  color: var(--muted);
}
.pipe-flow {
  width: 100%;
  height: auto;
  margin: 18px 0 10px;
}
.pipe-gate {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 14px;
  font-size: 0.95rem;
}
.pipe-gate td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.pipe-gate .g-k {
  width: 130px;
  font-weight: 850;
  color: var(--blue);
}
.inout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 14px 0;
}
.inout-col {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  background: var(--white);
}
.inout-col h3 {
  margin: 0 0 8px;
  font-size: 0.96rem;
}
.inout-col ul {
  margin: 0;
  padding-left: 18px;
}
.inout-col li {
  margin: 4px 0;
  font-size: 0.9rem;
}
.inout-in {
  background: #f3fbf6;
  border-color: #cfe9d6;
}
.inout-in h3 { color: #1a7f37; }
.inout-out {
  background: #fbf4f4;
  border-color: #f0dede;
}
.inout-out h3 { color: #b3261e; }

.voices-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 14px;
}
.voices-switch label { font-weight: 800; color: var(--muted); }
.voices-switch select {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--white);
  font: inherit;
  font-weight: 700;
  color: var(--ink);
}
.voices-count { color: var(--muted); font-size: 0.9rem; }
.voices-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.voices-table th {
  text-align: left;
  padding: 9px 10px;
  border-bottom: 2px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.voices-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
}
.tier-pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
}
.tier-standard { background: #e7f5ec; color: #1a7f37; }
.tier-basic { background: var(--pale); color: var(--blue); }

@media (max-width: 680px) {
  .inout-grid { grid-template-columns: 1fr; }
  .voices-table { font-size: 0.82rem; }
}

/* ── Admin Roadmap (/admin/roadmap) ── */
.rm-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 6px 0 26px;
}
.rm-sum {
  flex: 1 1 130px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--white);
}
.rm-sum b { display: block; font-size: 1.6rem; font-weight: 900; line-height: 1.1; }
.rm-sum span { font-size: 0.8rem; color: var(--muted); }
.rm-sum.rm-done b { color: #1a7f37; }
.rm-sum.rm-todo b { color: var(--blue-2); }
.rm-sum.rm-next b { color: #6d28d9; }
.rm-sum.rm-owner b { color: #b45309; }
.rm-sum.rm-total b { color: var(--ink); }

.rm-section { margin: 0 0 26px; }
.rm-section h2 { font-size: 1.05rem; margin: 0 0 12px; }
.rm-list { display: flex; flex-direction: column; gap: 8px; }
.rm-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
.rm-body { flex: 1; }
.rm-title { font-weight: 700; font-size: 0.95rem; }
.rm-note { color: var(--muted); font-size: 0.85rem; margin-top: 3px; }
.rm-pill {
  flex-shrink: 0;
  display: inline-block;
  min-width: 92px;
  text-align: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}
.rm-done  { background: #e7f5ec; color: #1a7f37; }
.rm-todo  { background: var(--pale); color: var(--blue); }
.rm-next  { background: #efe9fb; color: #6d28d9; }
.rm-owner { background: #fdf1e3; color: #b45309; }
.rm-foot { margin-top: 22px; color: var(--muted); font-size: 0.85rem; }

@media (max-width: 680px) {
  .rm-item { flex-direction: column; gap: 6px; }
}

/* ── Customer data workspace (browse FSIs / detail / API) ── */
.ws-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px clamp(20px, 5vw, 76px);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.workspace-hero.compact { padding-top: 30px; padding-bottom: 18px; }
.ws-iso {
  font-size: 0.5em; font-weight: 800; color: var(--blue-2);
  background: var(--pale); padding: 3px 10px; border-radius: 999px;
  vertical-align: middle;
}
.ws-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ws-search { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.ws-search input[type=search] {
  flex: 1; min-width: 240px; padding: 11px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white); font: inherit;
}
.ws-tablewrap, .ws-section { padding: 0 clamp(20px, 5vw, 76px) 30px; }
.ws-count { color: var(--muted); font-size: 0.9rem; }
.ws-scroll { max-height: 520px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.ws-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; background: var(--white); }
.ws-table th {
  position: sticky; top: 0; background: var(--white); text-align: left;
  padding: 10px 12px; border-bottom: 2px solid var(--line);
  color: var(--muted); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.04em;
}
.ws-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ws-table.compact td, .ws-table.compact th { padding: 7px 10px; }
.ws-aud.yes { color: #1a7f37; font-weight: 700; }
.ws-aud.no { color: var(--muted); }
.ws-sylls { display: flex; flex-wrap: wrap; gap: 4px; }
.ws-syl {
  display: inline-block; padding: 1px 7px; border-radius: 6px;
  background: var(--paper); border: 1px solid var(--line); font-size: 0.82rem;
}
.ws-layer { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 0.7rem; font-weight: 800; }
.ws-nsi { background: var(--pale); color: var(--blue); }
.ws-asi { background: #fdf1e3; color: #b45309; }
.ws-long { font-size: 0.66rem; color: #b45309; font-weight: 800; }
.api-token { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.api-token code {
  background: #0d1117; color: #c9d1d9; padding: 9px 14px; border-radius: 8px;
  font-size: 0.95rem; letter-spacing: 0.04em;
}
.ws-code { white-space: pre-wrap; line-height: 1.6; }

@media (max-width: 680px) {
  .ws-table { font-size: 0.8rem; }
}

/* Individual FSI detail page */
.fsi-page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px clamp(18px, 4vw, 40px) 70px;
}
.fsi-page .fsi-hero,
.fsi-page .compare-section,
.fsi-page .ws-section {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 18px 54px rgba(0, 48, 135, 0.09);
}
.fsi-page .fsi-hero {
  padding: clamp(30px, 5vw, 48px);
  background:
    radial-gradient(circle at 96% 12%, rgba(0, 156, 222, 0.13), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #eef7ff 100%);
}
.fsi-page .fsi-hero h1 {
  max-width: 860px;
}
.fsi-page .fsi-hero .lead {
  max-width: 820px;
  color: var(--ink);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.58;
}
.fsi-page .workspace-proof {
  margin-top: 22px;
}
.fsi-page .compare-section {
  padding: clamp(24px, 4vw, 34px);
  margin-top: 24px;
}
.fsi-page .ws-section {
  padding: clamp(24px, 4vw, 34px);
  margin-top: 24px;
}
.fsi-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 18px;
}
.fsi-section-head h2 {
  margin: 6px 0 10px;
  color: var(--blue);
  font-size: clamp(1.7rem, 2.8vw, 2.7rem);
  line-height: 1.02;
}
.fsi-section-head p {
  max-width: 780px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.55;
}
.fsi-legend {
  display: grid;
  gap: 8px;
  min-width: 230px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}
/* FSI / NSI / ASI definitions key — professional glossary band */
.fsi-key {
  margin: 0 0 20px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 26px;
}
.fsi-key-row { display: flex; align-items: flex-start; gap: 12px; }
.fsi-key-tag {
  flex: none;
  display: inline-grid;
  place-items: center;
  min-width: 50px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 850;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}
.fsi-key-tag.tag-fsi { background: var(--blue); color: #fff; }
.fsi-key-tag.tag-nsi { background: var(--pale); color: var(--blue); }
.fsi-key-tag.tag-asi { background: #fdf1e3; color: #b45309; }
.fsi-key-body b {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 3px;
}
.fsi-key-body span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.45;
}
.fsi-key-eq {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 2px;
  padding-top: 15px;
  border-top: 1px dashed var(--line);
}
.fsi-eq {
  font-weight: 850;
  font-size: 1.02rem;
  color: var(--blue);
  background: var(--pale);
  padding: 6px 14px;
  border-radius: 10px;
  letter-spacing: 0.01em;
}
.fsi-eq-note {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.45;
}
.fsi-eq-note.fsi-eq-fn { flex-basis: 100%; }
.fsi-eq-note i { font-style: italic; font-weight: 800; color: var(--ink); }
@media (max-width: 760px) {
  .fsi-key { grid-template-columns: 1fr; gap: 14px; }
}

/* ── FSI detail: hero (BTS-FSI id + at-a-glance), recording stage, speakers, CR form ── */
.fsi-hero-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,360px); gap: 30px; align-items: start; }
.fsi-id-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.fsi-iso-chip { font-weight: 850; font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--blue); background: var(--pale); border: 1px solid #cfe1f6; padding: 3px 10px; border-radius: 8px; }
.fsi-badge { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 11px; border-radius: 999px; }
.fsi-badge.released { color: #0f7a37; background: #e7f6ec; }
.fsi-badge.soft { color: var(--blue); background: var(--pale); }
.fsi-bts-id { font-size: 0.78rem; font-weight: 700; color: var(--muted); letter-spacing: 0.02em; font-family: 'JetBrains Mono', ui-monospace, monospace; }
.fsi-bts-id b { color: var(--blue); }
.fsi-hero-main h1 { margin: 4px 0 8px; }
.fsi-meta-line { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 14px; color: var(--muted); font-size: 0.92rem; font-weight: 600; }
.fsi-meta-line span { position: relative; }
.fsi-meta-line span + span::before { content: "·"; position: absolute; left: -11px; color: #c4ccd6; }
.fsi-meta-line b { color: var(--ink); font-weight: 850; }
.fsi-badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.fsi-id-foot { margin-top: 12px; font-size: 0.72rem; color: #9aa6b4; font-family: 'JetBrains Mono', ui-monospace, monospace; letter-spacing: 0.04em; }
.fsi-glance { background: #0b1f44; border-radius: 20px; padding: 20px 22px; color: #fff; box-shadow: 0 18px 44px -20px rgba(11,31,68,0.55); }
.fsi-glance-title { font-size: 0.72rem; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; color: #93b4e6; margin-bottom: 14px; }
.fsi-glance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fsi-glance-grid > div { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.10); border-radius: 12px; padding: 12px 14px; }
.fsi-glance-grid b { display: block; font-size: 1.5rem; font-weight: 850; line-height: 1; }
.fsi-glance-grid b.accent { color: #5fb0ff; }
.fsi-glance-grid span { display: block; margin-top: 5px; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #93b4e6; }
.fsi-glance-sub { margin: 16px 0 9px; font-size: 0.72rem; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; color: #93b4e6; }
.fsi-vowel-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.fsi-vowel-pills span { display: inline-grid; place-items: center; min-width: 2.1rem; height: 2.1rem; padding: 0 6px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); border-radius: 9px; font-weight: 800; font-size: 0.84rem; }
.fsi-page .fsi-stage-band { margin: 24px 0 0; }
.fsi-stage-band { display: flex; gap: 20px; align-items: center; background: #eef8f1; border: 1px solid #cfe9d8; border-radius: 24px; padding: clamp(22px,3vw,30px) clamp(24px,4vw,38px); box-shadow: 0 18px 54px rgba(15,122,55,0.08); }
.fsi-stage-ico { flex: none; display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #fff; color: #0f7a37; border: 1px solid #cfe9d8; box-shadow: 0 6px 16px -8px rgba(15,122,55,0.4); }
.fsi-stage-ico svg { width: 24px; height: 24px; }
.fsi-stage-eyebrow { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: #0f7a37; margin-bottom: 4px; }
.fsi-stage-tag { background: #fff; border: 1px solid #cfe9d8; border-radius: 999px; padding: 1px 9px; }
.fsi-stage-body h2 { font-size: 1.2rem; color: var(--ink); margin: 0 0 6px; }
.fsi-stage-body p { color: var(--muted); font-size: 0.92rem; line-height: 1.55; font-weight: 600; max-width: 880px; }
.fsi-live-eyebrow { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: #0f7a37; margin-bottom: 8px; }
.fsi-speakers h2 { color: var(--blue); margin: 0 0 8px; }
.fsi-speakers-lead { color: var(--muted); font-size: 0.92rem; font-weight: 600; max-width: 880px; line-height: 1.5; margin-bottom: 18px; }
.fsi-speaker-tiles { display: flex; flex-wrap: wrap; gap: 24px 22px; }
.fsi-speaker-tile { display: flex; flex-direction: column; align-items: center; gap: 11px; width: 92px; }
.fsi-speaker-avatar { display: inline-grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: linear-gradient(150deg, #1f74d6 0%, #0b3e88 100%); color: #fff; font-weight: 850; font-size: 1.05rem; border: 3px solid #fff; box-shadow: 0 12px 26px -10px rgba(0,48,135,0.5), 0 0 0 1px #dbe8f7; transition: transform 140ms ease, box-shadow 140ms ease; }
.fsi-speaker-avatar svg { width: 34px; height: 34px; }
.fsi-speaker-tile:hover .fsi-speaker-avatar { transform: translateY(-3px); box-shadow: 0 16px 32px -10px rgba(0,48,135,0.55), 0 0 0 1px #cfe1f6; }
.fsi-speaker-tile.more .fsi-speaker-avatar { background: var(--pale); color: var(--blue); border: 3px solid #fff; box-shadow: 0 0 0 1px #a9c6ea inset; }
.fsi-speaker-id { font-size: 0.78rem; font-weight: 800; color: var(--ink); letter-spacing: 0.02em; }
.fsi-speakers-foot { margin-top: 18px; font-size: 0.8rem; color: #9aa6b4; font-weight: 600; max-width: 880px; }
.fsi-cr-card { max-width: none; }   /* the .ws-section already IS the card — fill its width */
.fsi-cr-card h2 { color: var(--blue); font-size: 1.4rem; margin: 0 0 8px; }
.fsi-cr-ico { color: var(--blue); }
.fsi-cr-intro { color: var(--muted); font-weight: 600; line-height: 1.55; margin-bottom: 18px; }
.fsi-cr-form label { display: block; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; }
.fsi-cr-hint { text-transform: none; letter-spacing: 0; color: #9aa6b4; font-weight: 600; }
.fsi-cr-form input, .fsi-cr-form select, .fsi-cr-form textarea { display: block; width: 100%; margin-top: 7px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-weight: 600; color: var(--ink); background: #fbfdff; text-transform: none; letter-spacing: 0; }
.fsi-cr-form textarea { resize: vertical; }
.fsi-cr-form input:focus, .fsi-cr-form select:focus, .fsi-cr-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--pale); }
.fsi-cr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.fsi-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fsi-cr-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.fsi-cr-msg { font-size: 0.86rem; font-weight: 700; }
.fsi-cr-msg.ok { color: #0f7a37; }
.fsi-cr-msg.err { color: #c0392b; }
.fsi-cr-fine { margin-top: 12px; font-size: 0.78rem; color: #9aa6b4; font-weight: 600; }
@media (max-width: 820px) {
  .fsi-hero-grid { grid-template-columns: 1fr; }
  .fsi-cr-grid { grid-template-columns: 1fr; }
}

/* ── Playable inventory atlas ── */
.fsi-inv-toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 14px; }
.fsi-inv-hint { color: var(--muted); font-size: 0.86rem; font-weight: 600; }
#invPlayAll.playing { background: var(--blue); color: #fff; border-color: var(--blue); }
.fsi-page .ws-syl.playable { cursor: pointer; }
.fsi-page .ws-syl.playable:hover { border-color: var(--blue); color: var(--blue); }
.fsi-page .ws-syl.on { background: var(--blue) !important; color: #fff !important; border-color: var(--blue) !important; animation: sylPulse 0.7s ease infinite; }
@keyframes sylPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(23,99,200,0.45); } 50% { box-shadow: 0 0 0 7px rgba(23,99,200,0); } }

/* ── FSI Audio Studio ── */
.fsi-studio-lead { color: var(--muted); font-size: 0.92rem; font-weight: 600; max-width: 900px; line-height: 1.5; margin-bottom: 20px; }
.fsi-studio-lead b { color: var(--ink); }
.fsi-studio-voices { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.fsi-voice-tile { display: flex; flex-direction: column; align-items: center; gap: 7px; width: 98px; padding: 12px 8px 10px; border: 1px solid var(--line); border-radius: 16px; background: #fbfdff; cursor: pointer; transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease; }
.fsi-voice-tile:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(0,48,135,0.4); }
.fsi-voice-tile.active { border-color: var(--blue); background: var(--pale); box-shadow: 0 0 0 2px var(--blue) inset; }
.fsi-voice-avatar { display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(150deg, #1f74d6 0%, #0b3e88 100%); color: #fff; border: 3px solid #fff; box-shadow: 0 10px 22px -10px rgba(0,48,135,0.5); }
.fsi-voice-tile.active .fsi-voice-avatar { box-shadow: 0 0 0 3px var(--blue); }
.fsi-voice-id { font-size: 0.8rem; font-weight: 850; color: var(--ink); }
.fsi-voice-meta { font-size: 0.68rem; font-weight: 650; color: var(--muted); }
.fsi-studio-modes { display: inline-flex; gap: 4px; padding: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 18px; }
.fsi-mode-btn { border: none; background: transparent; padding: 8px 18px; border-radius: 9px; font: inherit; font-weight: 800; font-size: 0.86rem; color: var(--muted); cursor: pointer; }
.fsi-mode-btn.active { background: var(--blue); color: #fff; }
.fsi-studio-panel[hidden] { display: none; }
.fsi-takes-feed { display: grid; gap: 12px; }
.fsi-studio .compare-onsets { display: flex; flex-wrap: wrap; gap: 8px; }
.tk-card { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.tk-play { flex: none; width: 42px; height: 42px; border-radius: 50%; border: none; background: var(--blue); color: #fff; font-size: 0.85rem; cursor: pointer; display: inline-grid; place-items: center; transition: transform 120ms ease; }
.tk-play:hover { transform: scale(1.06); }
.tk-play.is-playing { background: #0f7a37; }
.tk-body { flex: 1; min-width: 0; }
.tk-syls { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 7px; }
.tk-syl { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 3.5rem; height: 2.25rem; padding: 0 4px; border-radius: 9px; background: #eef7ff; border: 1px solid #cfe1f6; color: var(--blue); font-weight: 800; font-size: 0.82rem; letter-spacing: -0.01em; white-space: nowrap; transition: transform 120ms ease, background 120ms ease; }
.tk-syl.on { background: var(--blue); color: #fff; border-color: var(--blue); transform: translateY(-2px); box-shadow: 0 8px 18px -8px rgba(0,48,135,0.6); }
.tk-meta { font-size: 0.78rem; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cmp-cell.is-playing { background: var(--blue); color: #fff; border-color: var(--blue); }
@media (max-width: 820px) {
  .fsi-voice-tile { width: 84px; }
  .fsi-takes-feed { max-height: none; }
}

/* ── FSI revision history (de-identified) ── */
.fsi-rev-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.fsi-rev { border: 1px solid var(--line); border-radius: 16px; background: var(--white); padding: 16px 18px; position: relative; }
.fsi-rev.current { border-color: #bcd6f3; box-shadow: 0 0 0 1px #bcd6f3 inset; }
.fsi-rev-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fsi-rev-ver { font-weight: 850; font-size: 0.92rem; color: var(--blue); background: var(--pale); border-radius: 8px; padding: 2px 10px; font-family: 'JetBrains Mono', ui-monospace, monospace; }
.fsi-rev-badge { font-size: 0.66rem; font-weight: 850; letter-spacing: 0.05em; text-transform: uppercase; color: #0f7a37; background: #e7f6ec; border-radius: 999px; padding: 2px 9px; }
.fsi-rev-title { font-weight: 800; color: var(--ink); font-size: 0.96rem; }
.fsi-rev-spacer { flex: 1; }
.fsi-rev-fcr { font-size: 0.74rem; font-weight: 750; color: var(--blue); font-family: 'JetBrains Mono', ui-monospace, monospace; }
.fsi-rev-date { font-size: 0.78rem; font-weight: 650; color: var(--muted); }
.fsi-rev-summary { margin: 8px 0 0; font-size: 0.86rem; font-weight: 650; color: var(--muted); }
.fsi-rev details { margin-top: 10px; }
.fsi-rev summary { cursor: pointer; font-size: 0.8rem; font-weight: 800; color: var(--blue); letter-spacing: 0.01em; list-style: revert; }
.fsi-rev summary::-webkit-details-marker { color: var(--blue); }
.fsi-rev-md { margin-top: 8px; padding: 14px 16px; background: #fbfdff; border: 1px solid var(--line); border-radius: 12px; }
.fsi-rev-md h4 { margin: 0 0 8px; color: var(--blue); font-size: 1.02rem; }
.fsi-rev-md h5 { margin: 14px 0 6px; color: var(--ink); font-size: 0.9rem; }
.fsi-rev-md p { margin: 0 0 9px; color: var(--ink); font-size: 0.9rem; line-height: 1.55; font-weight: 550; }
.fsi-rev-md ul { margin: 0 0 9px; padding-left: 20px; }
.fsi-rev-md li { color: var(--ink); font-size: 0.88rem; line-height: 1.5; font-weight: 550; margin-bottom: 5px; }
.fsi-rev-md em { color: var(--muted); }
.fsi-rev-changelist { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.fsi-rev-changelist li { display: flex; align-items: center; gap: 9px; font-size: 0.85rem; color: var(--ink); }
.fsi-rev-disp { color: var(--muted); font-weight: 600; }
.fsi-rev-syls { color: var(--blue); font-weight: 750; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.8rem; }
.fsi-rev-foot { margin-top: 16px; font-size: 0.8rem; color: #9aa6b4; font-weight: 600; }
/* structured curated notes */
.fsi-rev-sumtext { margin: 0 0 12px; color: var(--ink); font-size: 0.9rem; line-height: 1.55; font-weight: 550; }
.fsi-rev-labels { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.fsi-rev-labels li { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 650; color: var(--muted); }
.fsi-rev-rules { margin: 0; padding-left: 26px; display: grid; gap: 8px; }
.fsi-rev-rules li { color: var(--ink); font-size: 0.9rem; line-height: 1.55; font-weight: 550; padding-left: 4px; }
.fsi-rev-rules li::marker { color: var(--blue); font-weight: 850; }
.fsi-rev-src { margin: 14px 0 0; font-size: 0.8rem; color: var(--muted); font-style: italic; font-weight: 600; }
.fsi-legend span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 750;
}
.fsi-page .ws-scroll {
  max-height: 660px;
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}
.fsi-page .ws-table {
  font-size: 0.94rem;
}
.fsi-page .ws-table th {
  padding: 13px 14px;
  background: #fbfdff;
}
.fsi-page .ws-table td {
  padding: 12px 14px;
}
.fsi-page .ws-table tbody tr:hover {
  background: #f6fbff;
}
.fsi-page .ws-table td:nth-child(2) b {
  display: inline-grid;
  place-items: center;
  min-width: 48px;
  min-height: 34px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--pale);
}
.fsi-page .ws-sylls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
/* Uniform syllable cells — identical width AND height so the inventory reads as
   a clean aligned grid regardless of token length (a / shwuu / ntlhaa). */
.fsi-page .ws-syl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 3.6rem;
  height: 2.45rem;
  padding: 0 4px;
  border-radius: 10px;
  color: var(--blue);
  background: #eef7ff;
  border: 1px solid #cfe1f6;
  font-weight: 850;
  font-size: 0.84rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.fsi-page .ws-layer {
  font-size: 0.68rem;
  border-radius: 999px;
}

/* (2) Inventory atlas shows ALL onset rows inline — no inner scroll box.
   (The σ-equation table below keeps its .ws-scroll cap: it's 1 row per
   syllable, hundreds of rows.) */
.fsi-page .fsi-inv-wrap {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--white);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}
.fsi-page .fsi-inv-table th {
  position: static;   /* no inner scroll → no sticky overlap with the sticky site header */
}

/* (3) ASI (augmented / borrowed) rows get a distinct amber wash — whole row +
   amber syllable chips — so they stand apart from native NSI rows at a glance.
   Applies to both the inventory and the equation table. */
.fsi-page .ws-table tbody tr.asi-row {
  background: #fff8ef;
}
.fsi-page .ws-table tbody tr.asi-row:hover {
  background: #fdf1e3;
}
.fsi-page .ws-table tbody tr.asi-row .ws-syl {
  background: #fdf3e6;
  border-color: #f1d9b6;
  color: #b45309;
}
.fsi-page .cmp-table {
  table-layout: fixed;
  min-width: 720px;
}
.fsi-page .cmp-table th:first-child,
.fsi-page .cmp-table td:first-child {
  width: 220px;
}
.fsi-page .cmp-cell {
  min-width: 0;
  border-radius: 14px;
}
@media (max-width: 820px) {
  .fsi-section-head {
    grid-template-columns: 1fr;
  }
  .fsi-legend {
    min-width: 0;
  }
}

/* Workspace console landing */
.workspace-console {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px clamp(20px, 4vw, 40px) clamp(58px, 8vw, 92px);
}

.workspace-console .workspace-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 28px;
  align-items: stretch;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff, #eef8ff);
  box-shadow: 0 18px 54px rgba(0, 48, 135, 0.1);
}

.workspace-console .workspace-dashboard h1 {
  max-width: 760px;
  margin: 6px 0 16px;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1;
}

.workspace-console .workspace-dashboard-copy p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.workspace-console .workspace-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.workspace-console .workspace-actions .button {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.9rem;
}

.workspace-console .workspace-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.workspace-console .workspace-metrics div {
  display: grid;
  align-content: center;
  min-height: 130px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

.workspace-console .workspace-metrics strong {
  color: var(--blue);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1;
}

.workspace-console .workspace-metrics span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.workspace-console .admin-mode-panel {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

.workspace-console .workspace-player {
  margin-top: 22px;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 18px 54px rgba(0, 48, 135, 0.1);
}

.workspace-console .workspace-section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.55fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}

.workspace-console .workspace-section-head h2 {
  margin-bottom: 0;
}

.workspace-console .workspace-section-head > p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.workspace-console .workspace-player .compare-controls {
  display: grid;
  grid-template-columns: minmax(240px, 0.58fr) minmax(0, 1fr);
  gap: 22px 34px;
  align-items: start;
  width: 100%;
  margin: 0 0 22px;
}

.workspace-console .workspace-player .compare-langwrap,
.workspace-console .workspace-player .compare-onsets,
.workspace-console .workspace-player .compare-langs,
.workspace-console .workspace-player .compare-grid {
  width: 100%;
}

.workspace-console .workspace-player .compare-onsets,
.workspace-console .workspace-player .compare-langs {
  justify-content: flex-start;
}

.workspace-console .workspace-player .cmp-chip {
  min-height: 38px;
}

.workspace-console .workspace-player .compare-grid {
  margin-top: 20px;
  overflow-x: auto;
  border-radius: 18px;
}

.workspace-console .workspace-player .cmp-table {
  width: 100%;
  min-width: 820px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 10px 12px;
}

.workspace-console .workspace-player .cmp-table th:first-child,
.workspace-console .workspace-player .cmp-table td:first-child {
  width: 220px;
}

.workspace-console .workspace-player .cmp-table td {
  vertical-align: middle;
}

.workspace-console .workspace-player .cmp-cell {
  min-width: 0;
  width: 100%;
  min-height: 58px;
  border-radius: 14px;
}

.workspace-console .workspace-player div.cmp-cell.empty {
  display: flex;
  align-items: center;
  justify-content: center;
}

.workspace-console .workspace-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.workspace-console .workspace-quick-grid a {
  display: block;
  min-height: 180px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(0, 48, 135, 0.08);
}

.workspace-console .workspace-quick-grid span {
  color: var(--blue-2);
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.workspace-console .workspace-quick-grid strong {
  display: block;
  margin: 12px 0 10px;
  color: var(--blue);
  font-size: 1.25rem;
  line-height: 1.15;
}

.workspace-console .workspace-quick-grid p {
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 980px) {
  .workspace-console .workspace-dashboard,
  .workspace-console .workspace-section-head,
  .workspace-console .workspace-player .compare-controls,
  .workspace-console .workspace-quick-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .workspace-console .workspace-metrics {
    grid-template-columns: 1fr;
  }
}

/* ── Master Bantu FSI Map (/app/map) ── */
.map-shell { padding-top: 18px; }
.map-toolbar {
  display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: flex-end;
  margin: 6px 0 16px;
}
.map-modes, .map-lengths { display: flex; gap: 8px; }
.map-lenwrap { display: flex; flex-direction: column; gap: 8px; }
.map-searchwrap { position: relative; flex: 1; min-width: 240px; }
.ws-search-input {
  width: 100%; padding: 11px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white); font: inherit; color: var(--ink);
}
.ws-search-input:focus { outline: 3px solid rgba(0, 112, 224, 0.18); border-color: var(--blue-2); }
.map-results {
  position: absolute; z-index: 12; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 8px; max-height: 320px; overflow: auto;
  display: flex; flex-direction: column; gap: 4px;
}
.map-result {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 9px 12px; border: none; background: var(--paper); border-radius: 10px;
  font: inherit; cursor: pointer; text-align: left;
}
.map-result:hover { background: var(--pale); }
.map-result b { color: var(--blue); font-size: 1.02rem; }
.map-result span { color: var(--muted); font-size: 0.8rem; }
.map-rempty { color: var(--muted); padding: 10px 12px; }

.map-comparebar {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px 18px; margin: 0 0 14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
}
.map-langpicker { display: flex; flex-wrap: wrap; gap: 7px; max-height: 168px; overflow: auto; }
.map-haudio { color: var(--blue-2); font-weight: 900; }

.map-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 12px; }
.map-legtxt { color: var(--muted); font-size: 0.8rem; font-weight: 700; }
.map-swatch { width: 26px; height: 14px; border-radius: 4px; border: 1px solid var(--line); }
.map-legdot { display: inline-flex; align-items: center; gap: 6px; color: var(--muted);
  font-size: 0.8rem; font-weight: 700; margin-left: 10px; }
.map-key { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 800;
  padding: 3px 12px; border-radius: 999px; }
.map-key.shared { background: var(--blue); color: var(--white); }
.map-key.partial { background: #cfe6ff; color: var(--blue); }
.map-key.one { background: #fff4e0; color: #9a6700; }

.map-gridwrap {
  max-height: 620px; overflow: auto; border: 1px solid var(--line);
  border-radius: 16px; background: var(--white);
}
.map-grid { display: grid; gap: 4px; padding: 8px; min-width: 520px; }
.map-corner {
  position: sticky; top: 0; left: 0; z-index: 4; background: var(--white);
  display: grid; place-items: center; color: var(--blue-2); font-weight: 900;
}
.map-vhead {
  position: sticky; top: 0; z-index: 3; background: var(--white);
  text-align: center; font-weight: 900; color: var(--blue); padding: 6px 0; font-size: 1.05rem;
}
.map-ohead {
  position: sticky; left: 0; z-index: 2; background: var(--white);
  display: flex; flex-direction: column; justify-content: center; padding-right: 8px;
  text-align: right; line-height: 1.1;
}
.map-ohead b { color: var(--ink); font-size: 0.96rem; font-weight: 850; }
.map-ohead span { color: var(--muted); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.02em; }
.map-cell {
  position: relative; min-height: 42px; border: 1px solid rgba(0, 48, 135, 0.06);
  border-radius: 9px; cursor: pointer; font: inherit; padding: 3px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  transition: transform 0.08s, box-shadow 0.08s;
}
.map-cell:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 48, 135, 0.18);
  outline: 2px solid var(--blue-2); z-index: 1; }
.map-cell.empty, .map-cell.dashed { border-style: dashed; cursor: default; }
.map-cell.empty:hover { transform: none; box-shadow: none; outline: none; }
.map-syl { font-size: 0.84rem; font-weight: 800; line-height: 1; }
.map-cov { font-size: 0.64rem; font-weight: 700; opacity: 0.85; }
.map-audiodot { position: absolute; top: 4px; right: 4px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 1px rgba(0,0,0,0.12); }
.map-cell.cmp-status-shared { background: var(--blue); color: var(--white); border-color: var(--blue); }
.map-cell.cmp-status-partial { background: #cfe6ff; color: var(--blue); }
.map-cell.cmp-status-none { background: transparent; color: var(--muted); border-style: dashed; }

/* detail panel */
.map-detail { margin-top: 22px; }
.map-detail-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px;
  padding: 22px 24px; border-radius: 20px 20px 0 0;
  background: linear-gradient(135deg, #ffffff, #eff8ff); border: 1px solid var(--line); border-bottom: none;
}
.map-bigsyl { margin: 2px 0 0; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1; }
.map-detail-stat strong { display: block; color: var(--blue); font-size: 1.7rem; font-weight: 900; line-height: 1; }
.map-detail-stat span { color: var(--muted); font-size: 0.8rem; font-weight: 700; }
.map-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
@media (max-width: 820px) { .map-detail-grid { grid-template-columns: 1fr; } }
.map-panel { padding: 20px 24px; background: var(--white); border: 1px solid var(--line); border-top: none; }
.map-panel h3 { color: var(--blue); font-size: 1rem; margin-bottom: 12px; }
.map-sub { color: var(--muted); font-size: 0.8rem; font-weight: 700; }
.map-eq { display: flex; gap: 8px; flex-wrap: wrap; }
.map-slot {
  display: flex; flex-direction: column; align-items: center; min-width: 52px;
  padding: 10px 6px; border-radius: 12px; background: var(--paper);
  border: 1px solid var(--line); font-size: 1.2rem; font-weight: 800; color: var(--muted);
}
.map-slot i { font-style: normal; font-size: 0.62rem; font-weight: 900; letter-spacing: 0.08em;
  color: var(--blue-2); text-transform: uppercase; margin-bottom: 3px; }
.map-slot.on { background: var(--pale); color: var(--blue); border-color: var(--blue-2); }
.map-zrow { display: flex; align-items: center; gap: 10px; margin: 5px 0; }
.map-zname { width: 20px; font-weight: 900; color: var(--blue); font-size: 0.86rem; }
.map-zbar { flex: 1; height: 9px; background: var(--paper); border-radius: 999px; overflow: hidden; }
.map-zbar span { display: block; height: 100%; background: var(--blue-2); border-radius: 999px; }
.map-zn { width: 30px; text-align: right; color: var(--muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.map-voices { display: flex; flex-wrap: wrap; gap: 8px; }
.map-voice {
  display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 96px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--pale); color: var(--ink); font: inherit; cursor: pointer; transition: all 0.12s;
}
.map-voice:hover { border-color: var(--blue-2); background: #dcefff; transform: translateY(-1px); }
.map-voice.playing { background: var(--blue); color: var(--white); border-color: var(--blue); }
.map-voice b { font-size: 0.86rem; font-weight: 800; }
.map-voice span { font-size: 0.78rem; opacity: 0.85; }
.map-lchips { display: flex; flex-wrap: wrap; gap: 6px; max-height: 260px; overflow: auto; }
.map-lchip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px;
  border-radius: 999px; background: var(--paper); border: 1px solid var(--line);
  font-size: 0.82rem; color: var(--ink);
}
.map-lchip.aud { background: var(--pale); border-color: var(--blue-2); }
.map-lchip .ws-layer { font-size: 0.6rem; padding: 0 6px; }

.map-locked-card {
  margin-top: 24px; padding: 28px 30px; border-radius: 20px; background: var(--white);
  border: 1px solid var(--line); box-shadow: 0 14px 42px rgba(0, 48, 135, 0.1); max-width: 720px;
}
.map-locked-card h3 { color: var(--blue); margin-bottom: 14px; }
.map-locked-list { margin: 0 0 20px; padding-left: 20px; }
.map-locked-list li { color: var(--muted); line-height: 1.6; margin: 7px 0; }

@media (max-width: 680px) {
  .map-gridwrap { max-height: 480px; }
  .map-cell { min-height: 38px; }
}

/* Production map workbench overrides */
.map-page {
  max-width: 1360px;
  margin: 0 auto;
  padding: 34px clamp(20px, 4vw, 44px) 86px;
}
.map-page .map-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
  padding: clamp(34px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 98% 12%, rgba(0, 156, 222, 0.14), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #eef7ff 100%);
  box-shadow: 0 22px 70px rgba(0, 48, 135, 0.12);
}
.map-page .map-dashboard-copy {
  min-width: 0;
}
.map-page .map-dashboard h1 {
  max-width: 820px;
  margin: 8px 0 16px;
  color: var(--blue);
  font-size: clamp(2.6rem, 5vw, 5.4rem);
  line-height: 0.92;
  letter-spacing: 0;
}
.map-page .map-dashboard .lead {
  max-width: 760px;
  color: var(--ink);
  font-size: clamp(1.04rem, 1.4vw, 1.3rem);
  line-height: 1.6;
}
.map-page .map-dashboard-note {
  max-width: 760px;
  margin: 16px 0 24px;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.58;
}
.map-page .map-dashboard-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
}
.map-page .map-dashboard-metrics div {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.map-page .map-dashboard-metrics div:nth-child(even) {
  border-right: 0;
}
.map-page .map-dashboard-metrics div:nth-last-child(-n + 2) {
  border-bottom: 0;
}
.map-page .map-dashboard-metrics strong {
  display: block;
  color: var(--blue);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 0.9;
}
.map-page .map-dashboard-metrics span {
  display: block;
  margin-top: 9px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.25;
}
.map-page .map-workbench {
  margin-top: 28px;
  padding: clamp(26px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 24px 72px rgba(0, 48, 135, 0.1);
}
.map-page .map-workbench-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: clamp(20px, 4vw, 44px);
  align-items: start;
  margin-bottom: 24px;
}
.map-page .map-workbench-head h2 {
  margin: 6px 0 10px;
  color: var(--blue);
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}
.map-page .map-workbench-head p {
  max-width: 760px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.58;
}
.map-page .map-workbench-card {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}
.map-page .map-workbench-card strong {
  color: var(--blue);
  font-size: 1rem;
}
.map-page .map-workbench-card span {
  color: var(--muted);
  font-weight: 650;
  line-height: 1.45;
}
.map-page .map-toolbar {
  display: grid;
  grid-template-columns: auto auto minmax(320px, 1fr);
  align-items: end;
  gap: 16px 22px;
  margin: 0 0 18px;
}
.map-page .map-modes,
.map-page .map-lengths {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.map-page .map-searchwrap {
  position: relative;
  min-width: 0;
  flex: unset;
}
.map-page .ws-search-input {
  width: 100%;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.98rem;
  background: var(--white);
}
.map-page .map-comparebar {
  padding: 18px;
  border-radius: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.map-page .map-legend {
  margin: 14px 0 14px;
}
.map-page .map-gridwrap {
  width: 100%;
  max-height: min(66vh, 720px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.map-page .map-grid {
  gap: 6px;
  padding: 16px;
  min-width: 820px;
}
.map-page .map-corner,
.map-page .map-vhead {
  min-height: 42px;
}
.map-page .map-ohead {
  min-height: 54px;
  padding-right: 12px;
}
.map-page .map-ohead b {
  font-size: 1rem;
}
.map-page .map-cell {
  min-height: 54px;
  border-radius: 12px;
  padding: 6px;
}
.map-page .map-syl {
  font-size: 0.95rem;
}
.map-page .map-cov {
  font-size: 0.7rem;
}
.map-page .compare-foot {
  margin-top: 12px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.45;
}
@media (max-width: 980px) {
  .map-page .map-dashboard,
  .map-page .map-workbench-head,
  .map-page .map-toolbar {
    grid-template-columns: 1fr;
  }
  .map-page .map-dashboard-metrics {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 620px) {
  .map-page {
    padding-inline: 14px;
  }
  .map-page .map-dashboard,
  .map-page .map-workbench {
    border-radius: 18px;
    padding: 22px;
  }
  .map-page .map-dashboard-metrics {
    grid-template-columns: 1fr;
  }
  .map-page .map-dashboard-metrics div,
  .map-page .map-dashboard-metrics div:nth-child(even),
  .map-page .map-dashboard-metrics div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .map-page .map-dashboard-metrics div:last-child {
    border-bottom: 0;
  }
}

/* Ecosystem-native FSI article (/article) */
.fsi-article-page {
  background: var(--paper);
}
.fsi-article-page .button.secondary {
  color: var(--blue);
  background: var(--white);
  border-color: var(--line);
}
.fsi-article-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.48fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: stretch;
  padding: clamp(46px, 7vw, 86px) max(clamp(20px, 5vw, 76px), calc((100vw - 1180px) / 2));
  background:
    radial-gradient(circle at 88% 4%, rgba(0, 168, 234, 0.18), transparent 26%),
    linear-gradient(135deg, #ffffff 0%, #eef8ff 62%, #dff2ff 100%);
  border-bottom: 1px solid var(--line);
}
.fsi-article-hero h1 {
  max-width: 880px;
  margin-bottom: 22px;
  color: var(--blue);
  font-size: clamp(2.7rem, 5vw, 5.5rem);
  line-height: 0.96;
}
.fsi-article-hero .lead {
  max-width: 780px;
}
.fsi-article-hero .hero-panel {
  display: grid;
  align-content: center;
  min-height: 340px;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.fsi-article-hero .panel-label,
.fsi-article-page .kicker,
.fsi-article-page .toc p {
  color: var(--blue-2);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.fsi-article-hero .hero-panel strong {
  display: block;
  margin: 14px 0;
  color: var(--blue);
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1;
}
.fsi-article-hero .hero-panel p {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
}
.fsi-article-page .summary-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}
.fsi-article-page .summary-band div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  min-height: 150px;
  padding: clamp(24px, 4vw, 38px);
  background: var(--white);
}
.fsi-article-page .summary-band span {
  color: var(--blue-2);
  font-weight: 950;
}
.fsi-article-page .summary-band p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.52;
}
.fsi-article-page .article-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 900px);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(42px, 6vw, 76px) clamp(20px, 4vw, 44px) clamp(70px, 8vw, 110px);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.fsi-article-page .toc {
  position: sticky;
  top: 164px;
  display: grid;
  gap: 7px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 14px 42px rgba(0, 48, 135, 0.08);
}
.fsi-article-page .toc a {
  padding: 9px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
}
.fsi-article-page .toc a:hover {
  color: var(--blue);
  background: var(--pale);
}
.fsi-article-page article {
  min-width: 0;
}
.fsi-article-page .article-section {
  margin-bottom: 18px;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 14px 42px rgba(0, 48, 135, 0.08);
}
.fsi-article-page .article-section.intro {
  background: linear-gradient(135deg, #ffffff, #eef8ff);
}
.fsi-article-page .article-section h2 {
  max-width: 820px;
  margin: 0 0 18px;
  color: var(--blue);
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  line-height: 1.05;
}
.fsi-article-page .article-section h3 {
  margin: 0 0 10px;
  color: var(--ink);
}
.fsi-article-page .article-section p,
.fsi-article-page .article-section li {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.72;
}
.fsi-article-page .formula-block,
.fsi-article-page blockquote,
.fsi-article-page .final-statement {
  margin: 28px 0;
  padding: clamp(22px, 4vw, 30px);
  border: 1px solid var(--line);
  border-left: 9px solid var(--yellow);
  border-radius: 22px;
  background: #fff9e7;
}
.fsi-article-page .formula-block span {
  display: block;
  color: var(--blue);
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  font-weight: 950;
  line-height: 0.95;
}
.fsi-article-page blockquote {
  color: var(--blue);
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  font-weight: 900;
  line-height: 1.38;
}
.fsi-article-page .syllable-grid,
.fsi-article-page .capability-list,
.fsi-article-page .product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0;
}
.fsi-article-page .syllable-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.fsi-article-page .syllable-grid span,
.fsi-article-page .capability-list p,
.fsi-article-page .product-grid section,
.fsi-article-page .application-row {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--pale);
}
.fsi-article-page .syllable-grid span {
  display: grid;
  place-items: center;
  min-height: 52px;
  color: var(--blue);
  font-weight: 950;
}
.fsi-article-page .capability-list p {
  margin: 0;
  color: var(--blue);
  font-weight: 900;
  line-height: 1.35;
}
.fsi-article-page .product-grid section {
  background: #f8fbff;
}
.fsi-article-page .split-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.45fr);
  gap: 24px;
}
.fsi-article-page .split-callout aside {
  align-self: start;
  padding: 24px;
  border-radius: 20px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
}
.fsi-article-page .split-callout aside span {
  color: var(--yellow);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.fsi-article-page .split-callout aside p {
  color: rgba(255,255,255,0.86);
}
.fsi-article-page .application-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  margin-top: 12px;
  background: #f8fbff;
}
.fsi-article-page .application-row h3 {
  color: var(--blue);
}
.fsi-article-page .standard-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  list-style: none;
}
.fsi-article-page .standard-list li {
  position: relative;
  padding: 14px 16px 14px 34px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbff;
}
.fsi-article-page .standard-list li::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 1.35em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
}
.fsi-article-page .final-statement {
  border-left-color: var(--blue);
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
}
.fsi-article-page .final-statement p {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  font-weight: 950;
  line-height: 1.05;
}
@media (max-width: 980px) {
  .fsi-article-hero,
  .fsi-article-page .article-shell,
  .fsi-article-page .split-callout {
    grid-template-columns: 1fr;
  }
  .fsi-article-page .toc {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fsi-article-page .toc p {
    grid-column: 1 / -1;
  }
  .fsi-article-page .summary-band,
  .fsi-article-page .capability-list,
  .fsi-article-page .product-grid,
  .fsi-article-page .standard-list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .fsi-article-page .article-section {
    padding: 22px;
    border-radius: 18px;
  }
  .fsi-article-page .toc,
  .fsi-article-page .syllable-grid,
  .fsi-article-page .application-row {
    grid-template-columns: 1fr;
  }
}

/* Dual short/long vowel atlas for the Master FSI Map */
.map-page {
  max-width: 1680px;
  padding-inline: clamp(18px, 2.8vw, 46px);
}
.map-page .map-dashboard,
.map-page .map-workbench {
  max-width: 1600px;
  margin-inline: auto;
}
.map-page .map-workbench {
  padding: clamp(22px, 2.7vw, 34px);
}
.map-page .map-toolbar {
  grid-template-columns: auto minmax(220px, 0.28fr) minmax(360px, 1fr);
}
.map-viewnote {
  display: grid;
  gap: 7px;
  align-content: end;
}
.map-viewnote strong {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue);
  background: var(--pale);
  font-size: 0.88rem;
}
.map-page .map-gridwrap-dual {
  max-height: min(72vh, 780px);
  padding: 10px;
  overflow: auto;
}
.map-dual-atlas {
  display: grid;
  grid-template-columns: minmax(570px, 1fr) minmax(570px, 1fr);
  gap: 22px;
  min-width: 1180px;
  align-items: start;
}
.map-vowel-panel {
  min-width: 0;
}
.map-vowel-title {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px 10px;
  background: var(--white);
}
.map-vowel-title strong {
  color: var(--blue);
  font-size: 1.02rem;
  line-height: 1.1;
}
.map-vowel-title span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}
.map-page .map-dual-atlas .map-grid {
  gap: 3px;
  padding: 0;
  min-width: 0;
}
.map-page .map-dual-atlas .map-corner,
.map-page .map-dual-atlas .map-vhead {
  min-height: 26px;
  font-size: 0.82rem;
}
.map-page .map-dual-atlas .map-corner {
  font-size: 0.65rem;
  overflow: hidden;
}
.map-page .map-dual-atlas .map-ohead {
  min-height: 33px;
  padding-right: 5px;
  line-height: 0.95;
}
.map-page .map-dual-atlas .map-ohead b {
  font-size: 0.77rem;
}
.map-page .map-dual-atlas .map-ohead span {
  font-size: 0.49rem;
  line-height: 0.95;
}
.map-page .map-dual-atlas .map-cell {
  min-height: 33px;
  border-radius: 7px;
  border-width: 1px;
  padding: 2px 3px;
  gap: 0;
}
.map-page .map-dual-atlas .map-syl {
  font-size: 0.77rem;
  line-height: 0.95;
}
.map-page .map-dual-atlas .map-cov {
  font-size: 0.58rem;
  line-height: 0.95;
}
.map-page .map-dual-atlas .map-audiodot {
  top: 3px;
  right: 3px;
  width: 5px;
  height: 5px;
}
@media (max-width: 1280px) {
  .map-dual-atlas {
    grid-template-columns: minmax(540px, 1fr) minmax(540px, 1fr);
    gap: 16px;
    min-width: 1110px;
  }
}
@media (max-width: 980px) {
  .map-page .map-toolbar {
    grid-template-columns: 1fr;
  }
}
