:root {
  --ink: #0b0d12;
  --muted: #667085;
  --subtle: #8a94a6;
  --line: rgba(15, 23, 42, .1);
  --panel: rgba(255, 255, 255, .86);
  --panel-solid: #fff;
  --canvas: #f5f6f8;
  --canvas-strong: #eceff3;
  --blue: #0a84ff;
  --green: #15a46b;
  --amber: #b7791f;
  --danger: #b42318;
  --shadow: 0 18px 55px rgba(15, 23, 42, .08);
}

* {
  letter-spacing: 0;
}

body {
  min-height: 100vh;
  background:
    linear-gradient(180deg, #ffffff 0%, var(--canvas) 34%, var(--canvas-strong) 100%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang TC", "Noto Sans TC", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

a {
  color: #075bb5;
  text-decoration: none;
}

a:hover {
  color: #004a96;
}

.app-shell {
  max-width: 1180px;
  margin-inline: auto;
}

.app-nav {
  min-height: 52px;
  border-bottom: 1px solid rgba(15, 23, 42, .08);
  background: rgba(250, 251, 253, .78);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
}

.navbar-brand {
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: 0;
}

.navbar .nav-link {
  color: rgba(11, 13, 18, .72);
  font-size: .92rem;
  padding-inline: .85rem;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: var(--ink);
}

.navbar-toggler {
  border: 0;
  padding: 4px 6px;
}

.nav-user {
  color: var(--muted);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 0 26px;
}

.page-hero.compact {
  padding-top: 18px;
}

.eyebrow {
  color: var(--subtle);
  font-size: .8rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.page-title {
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 750;
  line-height: 1.02;
  margin: 0;
}

.page-title.small {
  font-size: clamp(1.7rem, 3vw, 2.8rem);
}

.page-subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 12px 0 0;
  max-width: 680px;
}

.hero-actions,
.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions form {
  margin: 0;
}

.panel,
.metric,
.table-shell,
.auth-shell {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel {
  padding: 22px;
}

.panel.narrow,
.auth-shell {
  max-width: 780px;
  margin-inline: auto;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.panel-title {
  font-size: 1.05rem;
  font-weight: 750;
  margin: 0;
}

.panel-kicker {
  color: var(--muted);
  font-size: .9rem;
  margin: 4px 0 0;
}

.metric {
  min-height: 118px;
  padding: 18px;
  position: relative;
}

.metric::before {
  background: var(--blue);
  border-radius: 999px;
  content: "";
  height: 5px;
  left: 18px;
  position: absolute;
  top: 14px;
  width: 38px;
}

.metric.success::before {
  background: var(--green);
}

.metric.warning::before {
  background: var(--amber);
}

.metric span {
  color: var(--muted);
  display: block;
  font-size: .86rem;
  font-weight: 650;
  margin: 18px 0 8px;
}

.metric strong {
  color: var(--ink);
  display: block;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 760;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.score-pill,
.status-pill,
.badge {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: .8rem;
  font-weight: 700;
  min-height: 26px;
  padding: 5px 10px;
}

.grade-pill {
  align-items: center;
  background: #eef4ff;
  border-radius: 999px;
  color: #1849a9;
  display: inline-flex;
  font-size: .82rem;
  font-weight: 800;
  justify-content: center;
  min-width: 42px;
  padding: 6px 10px;
}

.industry-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.industry-card {
  background: rgba(255, 255, 255, .78);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 260px;
  padding: 18px;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.industry-card:hover,
.industry-card:focus {
  border-color: rgba(10, 132, 255, .45);
  box-shadow: 0 18px 42px rgba(15, 23, 42, .1);
  color: var(--ink);
  transform: translateY(-2px);
}

.industry-card-head {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.industry-card h3 {
  font-size: 1.18rem;
  font-weight: 760;
  margin: 4px 0 0;
}

.industry-code {
  color: var(--subtle);
  font-size: .78rem;
  font-weight: 800;
}

.confidence-pill {
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  padding: 5px 8px;
}

.confidence-pill.high {
  background: rgba(21, 164, 107, .12);
  color: var(--green);
}

.confidence-pill.medium {
  background: rgba(183, 121, 31, .13);
  color: var(--amber);
}

.confidence-pill.low {
  background: rgba(180, 35, 24, .1);
  color: var(--danger);
}

.industry-card-metrics,
.insight-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.industry-card-metrics div,
.insight-item {
  background: rgba(245, 246, 248, .86);
  border: 1px solid rgba(15, 23, 42, .07);
  border-radius: 8px;
  padding: 12px;
}

.industry-card-metrics span,
.insight-item span {
  color: var(--muted);
  display: block;
  font-size: .78rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.industry-card-metrics strong,
.insight-item strong {
  font-size: 1.28rem;
  font-weight: 780;
}

.industry-card-foot,
.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.industry-card-foot span {
  background: rgba(10, 132, 255, .08);
  border-radius: 999px;
  color: #075bb5;
  font-size: .78rem;
  font-weight: 700;
  padding: 5px 9px;
}

.missing-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.missing-summary span {
  color: var(--muted);
  flex-basis: 100%;
  font-size: .78rem;
  font-weight: 800;
}

.missing-summary em {
  background: rgba(15, 23, 42, .06);
  border-radius: 999px;
  color: var(--ink);
  font-size: .78rem;
  font-style: normal;
  font-weight: 700;
  padding: 5px 9px;
}

.missing-summary.expanded {
  margin-top: 16px;
}

.table-actions form {
  margin: 0;
}

.score-pill {
  background: #0b0d12;
  color: #fff;
}

.status-pill,
.badge.text-bg-secondary {
  background: #eef2f7 !important;
  color: #364152 !important;
}

.table-shell {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}

.table-shell::-webkit-scrollbar {
  height: 10px;
}

.table-shell::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, .38);
  border-radius: 999px;
}

.table-shell::-webkit-scrollbar-track {
  background: rgba(226, 232, 240, .55);
}

.table {
  --bs-table-bg: transparent;
  margin: 0;
  min-width: max-content;
  width: 100%;
}

.table th {
  background: rgba(248, 250, 252, .82);
  border-bottom-color: var(--line);
  color: #475467;
  font-size: .78rem;
  font-weight: 750;
  padding: 13px 16px;
  text-transform: uppercase;
  white-space: nowrap;
}

.table td {
  border-bottom-color: rgba(15, 23, 42, .07);
  color: #1f2937;
  padding: 14px 16px;
  vertical-align: middle;
}

.table tr:last-child td {
  border-bottom: 0;
}

.quote-cell {
  max-width: 520px;
  overflow-wrap: anywhere;
  white-space: normal;
}

.btn {
  border-radius: 999px;
  font-weight: 720;
  min-height: 38px;
  padding-inline: 18px;
}

.btn-sm {
  min-height: 31px;
  padding-inline: 13px;
}

.btn-primary {
  --bs-btn-bg: var(--blue);
  --bs-btn-border-color: var(--blue);
  --bs-btn-hover-bg: #0071df;
  --bs-btn-hover-border-color: #0071df;
}

.btn-success {
  --bs-btn-bg: var(--green);
  --bs-btn-border-color: var(--green);
  --bs-btn-hover-bg: #11845b;
  --bs-btn-hover-border-color: #11845b;
}

.btn-outline-primary,
.btn-outline-secondary {
  --bs-btn-color: var(--ink);
  --bs-btn-border-color: rgba(15, 23, 42, .18);
  --bs-btn-hover-bg: var(--ink);
  --bs-btn-hover-border-color: var(--ink);
  --bs-btn-hover-color: #fff;
  background: rgba(255, 255, 255, .72);
}

.auth-layout {
  align-items: stretch;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1fr);
  margin: 22px auto 0;
  max-width: 980px;
}

.auth-copy {
  align-content: center;
  background: #0b0d12;
  border-radius: 8px;
  color: #fff;
  display: grid;
  min-height: 420px;
  padding: 34px;
}

.auth-copy h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 760;
  line-height: 1.02;
  margin: 0;
}

.auth-copy p {
  color: rgba(255, 255, 255, .68);
  line-height: 1.7;
  margin: 18px 0 0;
}

.auth-shell {
  padding: 28px;
}

form p {
  margin-bottom: 15px;
}

form p label {
  color: #202939;
  display: block;
  font-size: .92rem;
  font-weight: 700;
  margin-bottom: 6px;
}

form p input,
form p select,
form p textarea {
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(15, 23, 42, .14);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
  color: var(--ink);
  max-width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  width: 100%;
}

form p input:focus,
form p select:focus,
form p textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(10, 132, 255, .14);
  outline: 0;
}

form p input[type="checkbox"] {
  height: 1rem;
  margin-right: 6px;
  min-height: 1rem;
  vertical-align: -2px;
  width: 1rem;
}

form p:has(input[type="checkbox"]) label {
  display: inline;
  font-weight: 650;
}

form .helptext {
  color: var(--muted);
  display: block;
  font-size: .84rem;
  line-height: 1.45;
  margin-top: 4px;
}

form ul.errorlist {
  color: var(--danger);
  font-size: .9rem;
  list-style: none;
  margin: 0 0 6px;
  padding: 0;
}

.alert {
  border-radius: 8px;
}

.section-stack {
  display: grid;
  gap: 18px;
}

.chart-box {
  min-height: 275px;
}

.empty-state {
  color: var(--muted);
  padding: 28px;
  text-align: center;
}

.product-hero {
  align-items: stretch;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .8fr);
  padding: 48px 0 28px;
}

.product-hero-copy {
  align-content: center;
  display: grid;
  min-height: 520px;
}

.product-hero-copy h1 {
  font-size: clamp(2.65rem, 6vw, 5.8rem);
  font-weight: 780;
  line-height: .96;
  margin: 0;
  max-width: 840px;
}

.product-hero-copy p {
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.65;
  margin: 22px 0 28px;
  max-width: 680px;
}

.product-surface {
  align-self: center;
  background:
    linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.64)),
    repeating-linear-gradient(90deg, rgba(15,23,42,.045) 0 1px, transparent 1px 46px);
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(15, 23, 42, .16);
  min-height: 430px;
  overflow: hidden;
  padding: 18px;
}

.surface-top {
  display: flex;
  gap: 7px;
  margin-bottom: 24px;
}

.surface-top span {
  background: #cbd5e1;
  border-radius: 999px;
  height: 10px;
  width: 10px;
}

.surface-score {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 28px;
  padding: 10px;
}

.surface-score small,
.brief-rating span,
.brief-rating small {
  color: var(--muted);
  display: block;
  font-size: .78rem;
  font-weight: 750;
  text-transform: uppercase;
}

.surface-score strong {
  font-size: 5.5rem;
  font-weight: 780;
  line-height: .9;
}

.surface-ring {
  align-items: center;
  background: #0b0d12;
  border-radius: 999px;
  color: #fff;
  display: flex;
  font-size: 3rem;
  font-weight: 780;
  height: 128px;
  justify-content: center;
  width: 128px;
}

.surface-list {
  display: grid;
  gap: 10px;
}

.surface-list div,
.role-grid div {
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.surface-list span {
  color: var(--blue);
  display: block;
  font-size: .78rem;
  font-weight: 750;
  margin-bottom: 5px;
}

.surface-list strong {
  font-size: .95rem;
}

.value-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 18px 0;
}

.value-grid article,
.workflow-band,
.role-band,
.analysis-brief {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.value-grid article {
  min-height: 230px;
  padding: 22px;
}

.value-grid span {
  color: var(--blue);
  display: block;
  font-size: .82rem;
  font-weight: 780;
  margin-bottom: 28px;
}

.value-grid h2,
.workflow-band h2 {
  font-size: 1.35rem;
  font-weight: 760;
  margin-bottom: 10px;
}

.value-grid p,
.role-grid span {
  color: var(--muted);
  line-height: 1.65;
}

.workflow-band {
  align-items: center;
  display: grid;
  gap: 20px;
  grid-template-columns: .8fr 1.2fr;
  margin: 18px 0;
  padding: 28px;
}

.workflow-steps {
  counter-reset: step;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.workflow-steps li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 720;
  padding: 14px;
}

.role-band {
  margin-bottom: 30px;
  padding: 24px;
}

.role-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.role-grid strong {
  display: block;
  margin-bottom: 6px;
}

.intro-story {
  color: #0b0d12;
  overflow: clip;
}

.intro-hero,
.intro-split,
.intro-founder {
  align-items: center;
  display: grid;
  gap: 56px;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, .78fr);
  min-height: calc(100vh - 86px);
  padding: 72px 0;
}

.intro-hero-copy,
.intro-section-copy,
.founder-copy {
  display: grid;
  gap: 18px;
}

.intro-hero-title,
.intro-section-copy h2,
.intro-split h2,
.intro-split h3,
.intro-founder h2,
.intro-final h2 {
  font-weight: 790;
  letter-spacing: 0;
  line-height: .94;
  margin: 0;
}

.intro-hero-title {
  font-size: 5rem;
}

.intro-hero-title span,
.intro-section-copy h2 span,
.intro-founder h2 span,
.intro-final h2 span {
  display: block;
}

.intro-lead,
.intro-section-copy p,
.intro-split p,
.founder-copy p {
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.75;
  margin: 0;
  max-width: 760px;
}

.intro-hero-visual {
  align-self: stretch;
  min-height: 620px;
  position: relative;
}

.intro-portrait-frame {
  bottom: 0;
  position: absolute;
  right: 0;
  width: min(440px, 88%);
}

.intro-portrait {
  display: block;
  height: auto;
  max-width: 100%;
  object-fit: cover;
}

.intro-portrait-hero {
  max-height: 690px;
  width: 100%;
}

.intro-data-card,
.metric-tile,
.intelligence-panel div,
.process-card,
.project-story-panel div {
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 8px;
  box-shadow: 0 26px 72px rgba(15, 23, 42, .14);
}

.intro-data-card {
  backdrop-filter: blur(20px);
  min-width: 164px;
  padding: 16px;
  position: absolute;
}

.intro-data-card-a {
  left: 4px;
  top: 16%;
}

.intro-data-card-b {
  bottom: 24%;
  left: 28px;
}

.intro-data-card-c {
  right: 0;
  top: 36%;
}

.intro-data-card span,
.metric-tile span,
.intelligence-panel span,
.benchmark-row span,
.benchmark-total span,
.process-card span,
.project-story-panel span {
  color: var(--muted);
  display: block;
  font-size: .78rem;
  font-weight: 760;
  text-transform: uppercase;
}

.intro-data-card strong,
.metric-tile strong {
  display: block;
  font-size: 2.2rem;
  font-weight: 790;
  line-height: 1;
  margin-top: 8px;
}

.intro-chapter {
  min-height: 140vh;
  padding: 80px 0;
}

.intro-sticky {
  align-content: center;
  display: grid;
  gap: 40px;
  min-height: calc(100vh - 96px);
  position: sticky;
  top: 86px;
}

.intro-section-copy h2,
.intro-split h2,
.intro-split h3,
.intro-founder h2,
.intro-final h2 {
  font-size: 4.2rem;
}

.intro-flow {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 980px;
}

.story-chip {
  background: #f5f5f7;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 999px;
  color: #0b0d12;
  display: inline-flex;
  font-size: 1.02rem;
  font-weight: 740;
  padding: 14px 18px;
}

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

.metric-tile {
  min-height: 156px;
  padding: 22px;
}

.metric-tile strong {
  font-size: 3.4rem;
}

.intro-process {
  display: grid;
  gap: 42px;
  min-height: 100vh;
  padding: 90px 0;
}

.process-track {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.process-card {
  align-content: start;
  display: grid;
  gap: 12px;
  min-height: 210px;
  padding: 18px;
  transform: translateY(34px);
}

.process-card strong {
  font-size: 1.08rem;
  line-height: 1.25;
}

.process-card p {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.55;
  margin: 0;
}

.intro-benchmark {
  display: grid;
  gap: 48px;
  min-height: 100vh;
  padding: 90px 0;
}

.intro-center {
  justify-items: center;
  margin: 0 auto;
  max-width: 920px;
  text-align: center;
}

.benchmark-visual {
  background: #0b0d12;
  border-radius: 8px;
  color: #fff;
  display: grid;
  gap: 20px;
  margin: 0 auto;
  max-width: 920px;
  padding: 34px;
  width: 100%;
}

.benchmark-row {
  display: grid;
  gap: 14px;
  grid-template-columns: 120px 1fr;
}

.benchmark-row span,
.benchmark-total span {
  color: rgba(255, 255, 255, .62);
}

.data-bar {
  background: linear-gradient(90deg, #f5f5f7, #9cc7ff);
  border-radius: 999px;
  display: block;
  height: 34px;
  transform: scaleX(.02);
  transform-origin: left;
  transition: transform 1200ms cubic-bezier(.2, .8, .2, 1);
}

.data-bar-1 {
  max-width: 46%;
}

.data-bar-2 {
  max-width: 72%;
}

.data-bar-3 {
  max-width: 92%;
}

.data-bar.is-visible {
  transform: scaleX(1);
}

.benchmark-total {
  align-items: end;
  border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  padding-top: 24px;
}

.benchmark-total strong {
  font-size: 4.4rem;
  font-weight: 790;
  line-height: .9;
}

.intelligence-panel {
  display: grid;
  gap: 12px;
}

.intelligence-panel div {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 82px;
  padding: 18px 20px;
}

.intelligence-panel strong {
  font-size: 1.35rem;
}

.intro-founder {
  grid-template-columns: minmax(0, .9fr) minmax(340px, .78fr);
}

.project-story-panel {
  display: grid;
  gap: 12px;
}

.project-story-panel div {
  padding: 20px;
}

.project-story-panel strong {
  display: block;
  font-size: 1.35rem;
  margin-top: 8px;
}

.intro-final {
  align-content: center;
  display: grid;
  justify-items: center;
  min-height: calc(100vh - 86px);
  padding: 88px 0;
  text-align: center;
}

.intro-final h2 {
  margin-bottom: 30px;
}

.intro-reveal,
.story-chip,
.metric-tile,
.intro-data-card,
.process-card {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.story-chip:nth-child(2),
.metric-tile:nth-child(2),
.process-card:nth-child(2) {
  transition-delay: 100ms;
}

.story-chip:nth-child(3),
.metric-tile:nth-child(3),
.process-card:nth-child(3) {
  transition-delay: 180ms;
}

.story-chip:nth-child(4),
.metric-tile:nth-child(4),
.process-card:nth-child(4) {
  transition-delay: 260ms;
}

.story-chip:nth-child(5),
.process-card:nth-child(5) {
  transition-delay: 340ms;
}

.story-chip:nth-child(6),
.process-card:nth-child(6) {
  transition-delay: 420ms;
}

.intro-reveal.is-visible,
.story-chip.is-visible,
.metric-tile.is-visible,
.intro-data-card.is-visible,
.process-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .intro-reveal,
  .story-chip,
  .metric-tile,
  .intro-data-card,
  .process-card,
  .data-bar {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.admin-upload-context {
  background: rgba(10, 132, 255, .07);
  border: 1px solid rgba(10, 132, 255, .18);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  padding: 16px;
}

.admin-upload-context label {
  font-size: .9rem;
  font-weight: 720;
}

.admin-upload-context select,
.admin-upload-context input {
  border: 1px solid rgba(15, 23, 42, .14);
  border-radius: 8px;
  min-height: 40px;
  padding: 8px 10px;
}

.upload-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.upload-block strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.upload-block p {
  color: var(--muted);
}

.analysis-brief {
  align-items: stretch;
  display: grid;
  gap: 0;
  grid-template-columns: 220px 1fr;
  overflow: hidden;
}

.brief-rating {
  align-content: center;
  background: #0b0d12;
  color: #fff;
  display: grid;
  justify-items: center;
  padding: 28px;
  text-align: center;
}

.brief-rating strong {
  font-size: 5rem;
  font-weight: 790;
  line-height: 1;
}

.brief-rating small,
.brief-rating span {
  color: rgba(255,255,255,.68);
}

.brief-copy {
  padding: 30px;
}

.brief-copy h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 760;
  line-height: 1.15;
  margin: 0 0 12px;
}

.brief-copy p,
.panel p {
  color: var(--muted);
  line-height: 1.65;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud span {
  background: #eef2f7;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 999px;
  color: #344054;
  font-size: .84rem;
  font-weight: 650;
  padding: 7px 11px;
}

.insight-list,
.timeline-list {
  color: #344054;
  display: grid;
  gap: 10px;
  line-height: 1.6;
  margin: 0;
  padding-left: 18px;
}

.loading-stage {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  margin: 34px auto;
  max-width: 820px;
  min-height: 560px;
  padding: 46px 28px;
  text-align: center;
}

.loading-stage h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 780;
  line-height: 1;
  margin: 14px 0;
}

.loading-stage p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 620px;
}

.loading-orbit {
  animation: spin 1.05s linear infinite;
  border: 6px solid rgba(10, 132, 255, .14);
  border-top-color: var(--blue);
  border-radius: 999px;
  height: 86px;
  width: 86px;
}

.loading-progress {
  background: #e5eaf0;
  border-radius: 999px;
  height: 10px;
  margin: 24px auto 10px;
  max-width: 520px;
  overflow: hidden;
  width: 100%;
}

.loading-progress .progress-bar {
  background: linear-gradient(90deg, var(--blue), var(--green));
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.compare-picker {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.filter-row {
  align-items: end;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
}

.filter-row.wide {
  grid-template-columns: repeat(6, minmax(120px, 1fr)) auto;
}

.filter-row.compact {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.range-pair {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}

.compare-picker label,
.filter-row label {
  color: #202939;
  display: block;
  font-weight: 750;
  margin-bottom: 8px;
}

.compare-picker select,
.filter-row input,
.filter-row select {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .14);
  border-radius: 8px;
  min-height: 42px;
  padding: 10px;
  width: 100%;
}

.compare-picker select {
  min-height: 170px;
}

.compare-actions {
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.filter-actions {
  display: flex;
  gap: 10px;
}

.comparison-table th {
  min-width: 130px;
}

.comparison-table {
  position: relative;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  min-width: 80px;
}

.comparison-table th:nth-child(2),
.comparison-table td:nth-child(2) {
  min-width: 220px;
}

.matrix-pill {
  border-radius: 999px;
  cursor: help;
  display: inline-flex;
  font-size: .78rem;
  font-weight: 760;
  line-height: 1.15;
  min-width: 78px;
  padding: 6px 10px;
}

.matrix-pill.complete {
  background: rgba(21, 164, 107, .12);
  color: #087443;
}

.matrix-pill.missing {
  background: rgba(180, 35, 24, .1);
  color: var(--danger);
}

.comparison-tooltip {
  background: rgba(11, 13, 18, .96);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, .28);
  color: #fff;
  left: 0;
  max-width: min(380px, calc(100vw - 28px));
  opacity: 0;
  padding: 14px;
  pointer-events: none;
  position: fixed;
  top: 0;
  transform: translate3d(-9999px, -9999px, 0);
  transition: opacity .12s ease;
  width: 380px;
  z-index: 2000;
}

.comparison-tooltip.visible {
  opacity: 1;
}

.comparison-tooltip h3 {
  font-size: .95rem;
  font-weight: 780;
  margin: 0 0 4px;
}

.comparison-tooltip p {
  color: rgba(255, 255, 255, .78);
  font-size: .78rem;
  line-height: 1.45;
  margin: 0 0 10px;
}

.tooltip-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 10px;
}

.tooltip-grid div {
  background: rgba(255, 255, 255, .08);
  border-radius: 8px;
  padding: 8px;
}

.tooltip-grid span,
.tooltip-section span {
  color: rgba(255, 255, 255, .56);
  display: block;
  font-size: .68rem;
  font-weight: 760;
  letter-spacing: 0;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.tooltip-grid strong {
  display: block;
  font-size: .85rem;
  line-height: 1.25;
}

.tooltip-section {
  margin-top: 10px;
}

.tooltip-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tooltip-tags em {
  background: rgba(255, 255, 255, .1);
  border-radius: 999px;
  font-size: .72rem;
  font-style: normal;
  padding: 4px 7px;
}

.chart-grid,
.leader-grid,
.step-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.chart-box.compact {
  min-height: 250px;
  padding: 14px;
}

.chart-box.wide,
.step-card.wide {
  grid-column: span 2;
}

.subsection-title {
  font-size: .95rem;
  font-weight: 760;
  margin: 0 0 10px;
}

.leader-list {
  background: rgba(245, 246, 248, .72);
  border: 1px solid rgba(15, 23, 42, .07);
  border-radius: 8px;
  margin: 0;
  padding: 12px 12px 12px 34px;
}

.leader-list li {
  margin: 8px 0;
  padding-right: 8px;
}

.leader-list span {
  color: var(--muted);
  float: right;
  font-size: .82rem;
  font-weight: 700;
}

.step-card {
  background: rgba(255, 255, 255, .78);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.step-card > span {
  color: var(--subtle);
  display: block;
  font-size: .76rem;
  font-weight: 800;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.step-card h2 {
  font-size: 1rem;
  font-weight: 760;
  margin: 0 0 12px;
}

.step-card label {
  display: inline-flex;
  gap: 7px;
  margin: 0 16px 8px 0;
}

.candidate-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
}

.candidate-row {
  align-items: center;
  background: rgba(245, 246, 248, .76);
  border: 1px solid rgba(15, 23, 42, .07);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
}

.candidate-row span {
  display: grid;
  gap: 2px;
}

.candidate-row small,
.muted-empty {
  color: var(--muted);
}

.mini-tag {
  background: rgba(15, 23, 42, .06);
  border-radius: 999px;
  display: inline-flex;
  font-size: .76rem;
  font-weight: 700;
  margin: 2px;
  padding: 4px 8px;
}


@media (max-width: 991px) {
  .app-nav {
    background: rgba(250, 251, 253, .94);
  }

  .page-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-copy {
    min-height: 260px;
  }

  .product-hero,
  .intro-hero,
  .intro-split,
  .intro-founder,
  .workflow-band,
  .analysis-brief {
    grid-template-columns: 1fr;
  }

  .product-hero-copy {
    min-height: auto;
  }

  .value-grid,
  .role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro-hero,
  .intro-split,
  .intro-founder {
    gap: 44px;
    min-height: auto;
    padding: 48px 0;
  }

  .intro-hero-copy {
    position: relative;
    z-index: 2;
  }

  .intro-hero-title {
    font-size: 3.35rem;
  }

  .intro-section-copy h2,
  .intro-split h2,
  .intro-split h3,
  .intro-founder h2,
  .intro-final h2 {
    font-size: 2.95rem;
  }

  .intro-hero-visual {
    margin-top: 18px;
    min-height: 560px;
    transform: none !important;
    z-index: 1;
  }

  .intro-portrait-frame {
    left: auto;
    right: 7%;
    width: min(390px, 88%);
  }

  .intro-sticky {
    position: relative;
    top: auto;
  }

  .benchmark-row {
    grid-template-columns: 1fr;
  }

  .process-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compare-picker {
    grid-template-columns: 1fr;
  }

  .filter-row {
    grid-template-columns: 1fr;
  }

  .filter-row.wide,
  .filter-row.compact,
  .chart-grid,
  .leader-grid,
  .step-grid {
    grid-template-columns: 1fr;
  }

  .chart-box.wide,
  .step-card.wide {
    grid-column: span 1;
  }

  .compare-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 576px) {
  main.app-shell,
  .app-shell {
    padding-inline: 14px;
  }

  .page-hero {
    padding-top: 22px;
  }

  .panel,
  .auth-shell {
    padding: 16px;
  }

  .metric {
    min-height: 104px;
  }

  .table th,
  .table td {
    padding: 11px 12px;
  }

  .value-grid,
  .workflow-steps,
  .role-grid,
  .intro-metrics-grid {
    grid-template-columns: 1fr;
  }

  .surface-score strong,
  .brief-rating strong {
    font-size: 3.8rem;
  }

  .intro-hero-title {
    font-size: 2.55rem;
  }

  .intro-hero {
    gap: 38px;
    padding-bottom: 58px;
  }

  .intro-section-copy h2,
  .intro-split h2,
  .intro-split h3,
  .intro-founder h2,
  .intro-final h2 {
    font-size: 2.2rem;
  }

  .intro-lead,
  .intro-section-copy p,
  .intro-split p,
  .founder-copy p {
    font-size: 1rem;
  }

  .intro-hero-visual {
    margin-top: 20px;
    min-height: 470px;
  }

  .intro-portrait-frame {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(320px, 88%);
  }

  .intro-data-card {
    min-width: 132px;
    padding: 12px;
  }

  .intro-data-card-a {
    left: 4px;
    top: 8%;
  }

  .intro-data-card-b {
    bottom: 10%;
    left: 8px;
  }

  .intro-data-card-c {
    right: 0;
    top: 44%;
  }

  .intro-data-card strong,
  .metric-tile strong {
    font-size: 2.4rem;
  }

  .intro-process,
  .intro-benchmark {
    min-height: auto;
    padding: 56px 0;
  }

  .process-track {
    grid-template-columns: 1fr;
  }

  .process-card {
    min-height: auto;
  }

  .benchmark-visual {
    padding: 20px;
  }

  .benchmark-total {
    align-items: flex-start;
    flex-direction: column;
  }
}
