:root {
  color-scheme: light;
  --bg-top: #f6f7fd;
  --bg-bottom: #eef2ff;
  --text-main: #24304d;
  --text-secondary: rgba(36, 48, 77, 0.62);
  --text-muted: rgba(36, 48, 77, 0.48);
  --accent: #7c5cff;
  --accent-cyan: #22c7d6;
  --surface: rgba(255, 255, 255, 0.52);
  --surface-strong: rgba(255, 255, 255, 0.72);
  --surface-soft: rgba(255, 255, 255, 0.36);
  --line-soft: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(124, 92, 255, 0.18);
  --shadow-soft: 0 24px 60px rgba(113, 124, 171, 0.12);
  --shadow-deep: 0 36px 80px rgba(113, 124, 171, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable both-edges;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 12% 18%, rgba(139, 92, 246, 0.14), transparent 28%),
    radial-gradient(circle at 82% 14%, rgba(34, 199, 214, 0.16), transparent 26%),
    radial-gradient(circle at 50% 82%, rgba(167, 139, 250, 0.12), transparent 34%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.34), transparent 66%);
}

.ambient,
.noise {
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

.ambient {
  width: 34vw;
  height: 34vw;
  min-width: 320px;
  min-height: 320px;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.72;
}

.ambient-left {
  top: -5rem;
  left: -7rem;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.22) 0%, rgba(124, 92, 255, 0.06) 46%, transparent 72%);
}

.ambient-right {
  top: 6rem;
  right: -7rem;
  background: radial-gradient(circle, rgba(34, 199, 214, 0.22) 0%, rgba(34, 199, 214, 0.06) 46%, transparent 72%);
}

.ambient-center {
  bottom: -10rem;
  left: 38%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.16) 0%, rgba(139, 92, 246, 0.04) 52%, transparent 72%);
}

.noise {
  inset: 0;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.35) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.8), transparent 92%);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1220px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.build-version {
  margin: 20px 8px 0;
  text-align: right;
  color: var(--text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.hero-stage {
  position: relative;
  padding: 92px 24px 42px;
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.48)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.08));
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow-deep);
}

.hero-stage-minimal {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54vh;
}

.hero-copy-centered {
  text-align: center;
}

.eyebrow,
.kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  font-family: "Manrope", "Inter", sans-serif;
}

h1 {
  max-width: 900px;
  margin: 0 auto 16px;
  color: #24304d;
  font-size: clamp(3rem, 6vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  font-weight: 800;
}

h2 {
  margin-bottom: 0;
  color: #24304d;
  font-size: 1.48rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

h3 {
  margin-bottom: 10px;
  color: #24304d;
  font-size: 1.06rem;
}

.hero-text,
.muted-copy,
.metric-label,
.log-meta,
.field-label {
  color: var(--text-secondary);
}

.hero-text-centered {
  max-width: 560px;
  margin: 0 auto 26px;
  font-size: 1.04rem;
  line-height: 1.7;
}

.hero-search-shell {
  width: min(980px, 100%);
  margin: 0 auto;
}

.hero-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.hero-search-input {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 0 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(18px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 20px 50px rgba(113, 124, 171, 0.12);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.hero-search-input:focus-within,
.summary-card:hover,
.profile-summary-card:hover,
.plan-card:hover,
.question-card:hover,
.metric-card:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.76),
    0 24px 56px rgba(113, 124, 171, 0.16);
}

.hero-search-icon {
  color: rgba(36, 48, 77, 0.44);
  font-size: 1rem;
}

.brief-input,
.form-input,
.form-select {
  width: 100%;
  font: inherit;
  color: var(--text-main);
  background: transparent;
  border: none;
  outline: none;
}

.brief-input {
  height: 62px;
  padding: 0;
  font-size: 1rem;
}

.brief-input::placeholder,
.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(36, 48, 77, 0.34);
}

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: none;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease,
    background 180ms ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  box-shadow: 0 18px 34px rgba(124, 92, 255, 0.24);
}

.secondary-button,
.ghost-button {
  color: #334155;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.54;
  transform: none;
}

.profile-summary-slot {
  display: flex;
  justify-content: center;
  min-height: 52px;
  margin-top: 14px;
}

.summary-stack {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.summary-stack-inline {
  width: min(980px, 100%);
  margin: 14px auto 0;
}

.summary-slot {
  min-height: 0;
}

.summary-card {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 16px 20px;
  border: none;
  border-radius: 24px;
  text-align: left;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.54)),
    linear-gradient(135deg, rgba(124, 92, 255, 0.05), rgba(34, 199, 214, 0.05));
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.summary-card-static {
  cursor: default;
}

.profile-summary-collapsible {
  cursor: default;
}

.profile-summary-expanded {
  cursor: default;
}

.profile-summary-header,
.summary-card-summary {
  display: grid;
  gap: 8px;
}

.summary-card-summary {
  list-style: none;
  cursor: pointer;
}

.summary-card-summary::-webkit-details-marker {
  display: none;
}

.summary-card-body {
  margin-top: 16px;
}

.summary-card-wide {
  width: min(980px, 100%);
  margin: 0 auto;
}

.summary-kicker {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.summary-card strong {
  color: var(--text-main);
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
}

.summary-text {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
}

.summary-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.summary-detail-grid-profile {
  align-items: start;
}

.summary-detail-item {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
}

.summary-detail-item-wide {
  grid-column: 1 / -1;
}

.summary-detail-item span {
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.summary-detail-item strong {
  font-size: 0.92rem;
  line-height: 1.6;
}

.summary-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.profile-summary-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.profile-summary-title {
  display: block;
  color: var(--text-main);
  font-size: 0.94rem;
  font-weight: 700;
}

.profile-summary-text {
  color: var(--text-secondary);
  font-size: 0.86rem;
}

.plan-overview {
  margin-top: 22px;
}

.plan-tabs-inline {
  display: grid;
  gap: 14px;
}

.plan-comparison-shell {
  padding: 12px 0 0;
}

.plan-comparison-grid {
  display: grid;
  grid-template-columns: minmax(88px, 0.44fr) minmax(148px, 0.7fr) repeat(3, minmax(214px, 1.34fr));
  gap: 1px;
  padding: 10px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.plan-compare-head,
.section-name-cell,
.metric-name-cell,
.plan-compare-cell {
  min-height: 46px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.58);
  position: relative;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease,
    color 220ms ease;
}

.plan-compare-head {
  display: grid;
  gap: 6px;
  justify-content: center;
  align-content: center;
  border: none;
  color: var(--text-main);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}

.plan-compare-head span {
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.45;
}

.plan-compare-head[data-plan-id],
.plan-compare-cell[data-plan-id] {
  cursor: pointer;
}

.plan-compare-head.active,
.plan-compare-cell.active {
  background: rgba(244, 247, 255, 0.9);
}

.plan-column-selected {
  z-index: 2;
  font-weight: 700;
  transform: scale(1.015);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(219, 234, 254, 0.92));
  box-shadow:
    inset 2px 0 0 rgba(30, 64, 175, 0.18),
    inset -2px 0 0 rgba(30, 64, 175, 0.18),
    0 14px 28px rgba(30, 64, 175, 0.08);
}

.plan-column-start {
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow:
    inset 2px 0 0 rgba(30, 64, 175, 0.22),
    inset -2px 0 0 rgba(30, 64, 175, 0.22),
    inset 0 2px 0 rgba(30, 64, 175, 0.22),
    0 18px 34px rgba(30, 64, 175, 0.12);
}

.plan-column-end {
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  box-shadow:
    inset 2px 0 0 rgba(30, 64, 175, 0.22),
    inset -2px 0 0 rgba(30, 64, 175, 0.22),
    inset 0 -2px 0 rgba(30, 64, 175, 0.22),
    0 18px 34px rgba(30, 64, 175, 0.12);
}

.plan-compare-head.plan-column-selected strong,
.plan-compare-cell.plan-column-selected .feature-value {
  font-weight: 800;
}

.plan-compare-head.plan-column-selected span {
  color: var(--text-main);
}

.section-name-cell {
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  justify-content: center;
  text-align: center;
}

.section-name-cell.section-span {
  align-self: stretch;
  padding: 14px 12px;
  line-height: 1.4;
}

.metric-name-cell {
  color: var(--text-main);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.35;
  justify-content: center;
  text-align: center;
}

.section-name-cell.tone-violet,
.metric-name-cell.tone-violet,
.plan-compare-cell.tone-violet {
  background: rgba(124, 92, 255, 0.08);
}

.section-name-cell.tone-white,
.metric-name-cell.tone-white,
.plan-compare-cell.tone-white {
  background: rgba(255, 255, 255, 0.68);
}

.plan-compare-cell {
  justify-content: center;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.metric-label-with-help {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
}

.metric-name-cell .metric-label-with-help {
  justify-content: center;
}

.metric-help {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.12);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  cursor: help;
}

.metric-help::after {
  content: attr(data-help);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  min-width: 220px;
  max-width: 300px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(26, 27, 38, 0.96);
  color: white;
  font-size: 0.75rem;
  line-height: 1.5;
  text-align: left;
  box-shadow: 0 14px 30px rgba(14, 18, 34, 0.24);
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
  z-index: 20;
}

.metric-help:hover::after,
.metric-help:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

.metric-guide-overview {
  margin-top: 18px;
}

.metric-guide-shell {
  display: grid;
  gap: 12px;
  width: min(980px, 100%);
  margin: 0 auto;
}

.metric-guide-card {
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.54)),
    linear-gradient(135deg, rgba(124, 92, 255, 0.05), rgba(34, 199, 214, 0.05));
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.metric-guide-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
}

.metric-guide-summary::-webkit-details-marker {
  display: none;
}

.metric-guide-summary strong {
  display: block;
  color: var(--text-main);
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 800;
}

.metric-guide-summary span {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

.metric-guide-toggle {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.metric-guide-card[open] .metric-guide-toggle {
  color: var(--accent-cyan);
}

.metric-guide-content {
  display: grid;
  gap: 10px;
  padding: 0 22px 20px;
}

.metric-guide-item {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
}

.metric-guide-item strong {
  color: var(--text-main);
  font-size: 0.95rem;
}

.metric-guide-item p {
  margin: 6px 0 0;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.9rem;
}

.feature-value {
  display: block;
  width: 100%;
  line-height: 1.55;
  text-wrap: balance;
  word-break: break-word;
}

.feature-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
}

.feature-check.yes {
  color: #0f766e;
  background: rgba(16, 185, 129, 0.14);
}

.feature-check.no {
  color: rgba(36, 48, 77, 0.36);
  background: rgba(148, 163, 184, 0.14);
}

.workspace-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.card,
.metric-card,
.question-card,
.log-card,
.report-subsection,
.distribution-row,
.report-stat {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.44)),
    linear-gradient(135deg, rgba(124, 92, 255, 0.04), rgba(34, 199, 214, 0.04));
  box-shadow: var(--shadow-soft);
}

.card,
.metric-card {
  border-radius: 28px;
}

.card {
  padding: 24px;
}

.metric-card {
  padding: 22px;
}

.metric-card-locked {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.54), rgba(248, 250, 252, 0.44)),
    linear-gradient(135deg, rgba(148, 163, 184, 0.08), rgba(124, 92, 255, 0.04));
}

.question-card,
.log-card,
.report-subsection,
.distribution-row,
.report-stat {
  border-radius: 18px;
}

.span-12 {
  grid-column: span 12;
}

.section-head,
.action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.section-head {
  margin-bottom: 16px;
}

.panel-stack,
.metrics-grid,
.run-summary,
.report-score-grid,
.report-grid,
.distribution-list {
  display: grid;
  gap: 14px;
}

.empty-state {
  padding: 22px;
  text-align: center;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.4);
  color: var(--text-muted);
}

.question-card,
.log-card,
.report-subsection,
.distribution-row,
.report-stat {
  padding: 16px 18px;
}

.progress-phase-note {
  margin: 12px 0 0;
}

.question-index {
  margin-bottom: 8px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.run-summary-bar,
.distribution-bar {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(167, 139, 250, 0.16);
}

.run-summary-fill,
.distribution-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b5cf6, #06b6d4);
}

.status-success {
  color: #0f766e;
}

.status-failed {
  color: #b91c1c;
}

.log-answer {
  margin-bottom: 0;
  color: rgba(36, 48, 77, 0.84);
  line-height: 1.72;
  white-space: pre-wrap;
}

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

.metric-card-wide {
  grid-column: 1 / -1;
}

.metric-value {
  display: block;
  margin-bottom: 8px;
  color: var(--text-main);
  font-size: clamp(1.7rem, 3.4vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.05em;
}

.metric-visual {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.metric-visual-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.12);
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 800;
}

.metric-visual-track {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(167, 139, 250, 0.16);
}

.metric-visual-track-empty {
  opacity: 0.55;
}

.metric-visual-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b5cf6, #06b6d4);
}

.report-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 18px;
}

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

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

.word-cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px 18px;
  margin-top: 12px;
}

.word-token {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--text-main);
  line-height: 1;
}

.word-token small {
  color: var(--text-secondary);
  font-size: 0.7em;
}

.word-cloud.positive .word-token {
  color: #0f7b91;
}

.word-cloud.negative .word-token {
  color: #b45309;
}

.word-xl {
  font-size: 1.12rem;
}

.word-lg {
  font-size: 1rem;
}

.word-md {
  font-size: 0.94rem;
}

.word-sm {
  font-size: 0.84rem;
}

.distribution-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.change-chip-row,
.chip-row,
.chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.change-chip,
.chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--text-secondary);
}

.metric-jump-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.metric-jump-link:hover {
  text-decoration: underline;
}

.scene-rank-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.scene-rank-row {
  display: grid;
  grid-template-columns: minmax(88px, 120px) minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}

.scene-rank-label,
.scene-rank-value,
.scene-rank-note {
  font-size: 0.84rem;
}

.scene-rank-label {
  color: var(--text-main);
  font-weight: 700;
}

.scene-rank-bar {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(167, 139, 250, 0.16);
}

.scene-rank-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b5cf6, #06b6d4);
}

.scene-rank-value {
  color: var(--text-main);
  font-weight: 700;
}

.scene-rank-note {
  color: var(--text-secondary);
  white-space: nowrap;
}

.dialog {
  width: min(980px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  padding: 0;
  border: none;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 247, 255, 0.86)),
    linear-gradient(135deg, rgba(124, 92, 255, 0.08), rgba(34, 199, 214, 0.08));
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow-deep);
}

.dialog::backdrop {
  background: rgba(228, 233, 248, 0.48);
  backdrop-filter: blur(10px);
}

.dialog-inner {
  max-height: calc(100vh - 48px);
  padding: 24px;
  overflow: auto;
}

.dialog-inner-large {
  padding-bottom: 16px;
}

.dialog-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 16px;
  background: linear-gradient(180deg, rgba(245, 247, 255, 0), rgba(245, 247, 255, 0.96) 32%);
}

.field-block {
  display: grid;
  gap: 8px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-input,
.form-select,
.form-textarea {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.form-textarea {
  min-height: 110px;
  resize: vertical;
}

.form-textarea-compact {
  min-height: 76px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
}

.plan-dialog-shell {
  display: grid;
  gap: 14px;
}

.chat-bubble {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
}

.chat-role {
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topbar,
.conversation-hero,
.search-toggle {
  display: none;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
}

.loading-overlay[hidden] {
  display: none;
}

.loading-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(246, 247, 253, 0.42);
  backdrop-filter: blur(18px);
}

.loading-overlay-card {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
  padding: 26px 24px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(245, 247, 255, 0.68)),
    linear-gradient(135deg, rgba(124, 92, 255, 0.08), rgba(34, 199, 214, 0.08));
  box-shadow: var(--shadow-deep);
  text-align: center;
}

.loading-overlay-card strong {
  color: var(--text-main);
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
}

.loading-overlay-card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 3px solid rgba(124, 92, 255, 0.16);
  border-top-color: var(--accent);
  border-right-color: var(--accent-cyan);
  animation: geo-spin 900ms linear infinite;
}

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

@media (max-width: 980px) {
  .hero-search-form,
  .report-hero,
  .report-grid,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .plan-comparison-grid {
    grid-template-columns: minmax(82px, 0.42fr) minmax(138px, 0.66fr) repeat(3, minmax(196px, 1.3fr));
    overflow-x: auto;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100vw - 18px, 1220px);
    padding-top: 16px;
  }

  .hero-stage {
    padding: 68px 18px 32px;
  }

  h1 {
    font-size: clamp(2.5rem, 12vw, 3.6rem);
  }

  .hero-search-form {
    grid-template-columns: 1fr;
  }

  .card,
  .metric-card,
  .dialog-inner {
    padding: 18px;
  }

  .report-score-grid,
  .report-grid,
  .summary-detail-grid {
    grid-template-columns: 1fr;
  }

  .plan-comparison-shell {
    overflow-x: auto;
  }

  .plan-comparison-grid {
    min-width: 1040px;
  }

  .scene-rank-row {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .scene-rank-bar {
    width: 100%;
  }
}

/* 20260404 site-wide UI refresh: light SaaS analytics dashboard language */

:root {
  color-scheme: light;
  --bg-top: #f8fafc;
  --bg-bottom: #eef4ff;
  --text-main: #0f172a;
  --text-secondary: rgba(51, 65, 85, 0.82);
  --text-muted: rgba(100, 116, 139, 0.78);
  --accent: #3b82f6;
  --accent-strong: #1e40af;
  --accent-warm: #f59e0b;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --surface-soft: rgba(226, 232, 240, 0.36);
  --line-soft: rgba(30, 64, 175, 0.12);
  --line-strong: rgba(59, 130, 246, 0.22);
  --shadow-soft: 0 22px 50px rgba(30, 64, 175, 0.1);
  --shadow-deep: 0 36px 80px rgba(30, 64, 175, 0.12);
}

body {
  font-family: "Fira Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 12% 16%, rgba(59, 130, 246, 0.14), transparent 26%),
    radial-gradient(circle at 88% 12%, rgba(245, 158, 11, 0.12), transparent 22%),
    radial-gradient(circle at 50% 82%, rgba(59, 130, 246, 0.08), transparent 32%),
    linear-gradient(180deg, #f8fafc 0%, #f5f8ff 46%, #eef4ff 100%);
}

body::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), transparent 22%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.44), transparent 66%);
}

.ambient-left {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.16) 0%, rgba(59, 130, 246, 0.05) 48%, transparent 74%);
}

.ambient-right {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.14) 0%, rgba(245, 158, 11, 0.04) 46%, transparent 72%);
}

.ambient-center {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0.03) 52%, transparent 72%);
}

.noise {
  opacity: 0.04;
  background-image:
    linear-gradient(rgba(30, 41, 59, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 41, 59, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
}

.page-shell {
  width: min(1180px, calc(100vw - 24px));
  padding: 18px 0 64px;
}

.site-header,
.topbar,
.hero-analytics-panel,
.trust-strip,
.feature-rail {
  display: none !important;
}

.hero-stage {
  overflow: hidden;
  border: 1px solid rgba(30, 64, 175, 0.1);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.76)),
    linear-gradient(135deg, rgba(59, 130, 246, 0.06), rgba(245, 158, 11, 0.04));
  box-shadow: var(--shadow-deep);
  backdrop-filter: blur(22px);
}

.hero-stage-dashboard {
  padding: 48px 40px 40px;
}

.hero-stage-minimal {
  min-height: 52vh;
  padding: 40px 28px;
}

.hero-grid,
.hero-grid-single {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.hero-copy {
  text-align: left;
}

.hero-copy-centered,
.hero-copy-narrow {
  text-align: center;
}

.hero-copy-narrow {
  max-width: 820px;
  margin: 0 auto;
}

h1,
h2,
h3,
.summary-card strong,
.loading-overlay-card strong {
  font-family: "Fira Sans", "Segoe UI", sans-serif;
}

h1 {
  max-width: 12ch;
  margin: 0 auto 18px;
  color: #0f172a;
  font-size: clamp(2.9rem, 6vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

h2,
h3 {
  color: #0f172a;
}

.eyebrow,
.kicker,
.summary-kicker,
.question-index,
.topbar-brand {
  color: #1e40af;
  font-family: "Fira Code", monospace;
  letter-spacing: 0.14em;
}

.hero-text,
.muted-copy,
.metric-label,
.log-meta,
.field-label,
.summary-text,
.plan-compare-head span,
.feature-check.no {
  color: var(--text-secondary);
}

.hero-text {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero-inline-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.hero-inline-facts li {
  padding: 10px 14px;
  border: 1px solid rgba(30, 64, 175, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #1e3a8a;
  font-size: 0.88rem;
  box-shadow: 0 10px 24px rgba(30, 64, 175, 0.08);
}

.hero-example-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 24px;
}

.hero-example-button {
  min-width: 132px;
}

.hero-search-shell,
.summary-card-wide,
.metric-guide-shell {
  width: 100%;
}

.hero-search-form {
  gap: 14px;
}

.hero-search-input,
.summary-card,
.profile-summary-card,
.metric-guide-card,
.plan-comparison-grid,
.dialog,
.loading-overlay-card {
  border: 1px solid rgba(30, 64, 175, 0.1);
}

.hero-search-input {
  min-height: 64px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 18px 40px rgba(30, 64, 175, 0.1);
}

.brief-input,
.form-input,
.form-select {
  color: #0f172a;
}

.brief-input::placeholder,
.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(100, 116, 139, 0.78);
}

.hero-search-icon {
  color: rgba(30, 64, 175, 0.62);
}

.primary-button,
.secondary-button,
.ghost-button {
  min-height: 48px;
  border: 1px solid transparent;
  font-family: "Fira Sans", sans-serif;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  box-shadow: 0 18px 36px rgba(59, 130, 246, 0.24);
}

.secondary-button,
.ghost-button {
  color: #1e3a8a;
  border-color: rgba(30, 64, 175, 0.12);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 28px rgba(30, 64, 175, 0.08);
}

.hero-search-input:focus-within,
.summary-card:hover,
.profile-summary-card:hover,
.plan-card:hover,
.question-card:hover,
.metric-card:hover,
.metric-guide-card:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.76),
    0 24px 54px rgba(30, 64, 175, 0.14);
}

.profile-summary-slot {
  justify-content: center;
}

.summary-card,
.profile-summary-card,
.metric-guide-card,
.card,
.metric-card,
.question-card,
.log-card,
.report-subsection,
.distribution-row,
.report-stat {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.86)),
    linear-gradient(135deg, rgba(59, 130, 246, 0.04), rgba(245, 158, 11, 0.03));
  box-shadow: var(--shadow-soft);
  color: var(--text-main);
}

.summary-detail-item,
.metric-guide-item,
.empty-state,
.change-chip,
.chip,
.chat-bubble,
.form-input,
.form-select,
.form-textarea {
  background: rgba(248, 250, 252, 0.92);
  color: var(--text-main);
}

.summary-detail-item span,
.metric-guide-item p,
.distribution-meta span,
.scene-rank-note,
.word-token small {
  color: var(--text-muted);
}

.plan-overview {
  margin-top: 28px;
}

.section-intro {
  max-width: 760px;
  margin: 0 auto 16px;
  text-align: center;
}

.section-intro-tight {
  margin-bottom: 12px;
}

.section-intro-spacer {
  min-height: 18px;
}

.section-text {
  max-width: 720px;
  margin: 0 auto;
}

.hero-entry-row {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.plan-comparison-grid {
  background: rgba(255, 255, 255, 0.82);
}

.plan-compare-head,
.section-name-cell,
.metric-name-cell,
.plan-compare-cell {
  background: rgba(255, 255, 255, 0.78);
  color: #0f172a;
}

.plan-compare-head.active,
.plan-compare-cell.active {
  background: rgba(219, 234, 254, 0.88);
}

.plan-column-selected {
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(219, 234, 254, 0.92));
  box-shadow:
    inset 2px 0 0 rgba(30, 64, 175, 0.2),
    inset -2px 0 0 rgba(30, 64, 175, 0.2),
    0 18px 34px rgba(59, 130, 246, 0.12);
}

.plan-column-start {
  box-shadow:
    inset 2px 0 0 rgba(30, 64, 175, 0.24),
    inset -2px 0 0 rgba(30, 64, 175, 0.24),
    inset 0 2px 0 rgba(30, 64, 175, 0.24),
    0 20px 36px rgba(59, 130, 246, 0.14);
}

.plan-column-end {
  box-shadow:
    inset 2px 0 0 rgba(30, 64, 175, 0.24),
    inset -2px 0 0 rgba(30, 64, 175, 0.24),
    inset 0 -2px 0 rgba(30, 64, 175, 0.24),
    0 20px 36px rgba(59, 130, 246, 0.14);
}

.section-name-cell {
  color: #1e40af;
}

.section-name-cell.section-span {
  color: #1e3a8a;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.section-name-cell.tone-violet,
.metric-name-cell.tone-violet,
.plan-compare-cell.tone-violet {
  background: rgba(219, 234, 254, 0.82);
}

.section-name-cell.tone-white,
.metric-name-cell.tone-white,
.plan-compare-cell.tone-white {
  background: rgba(255, 255, 255, 0.78);
}

.metric-help {
  background: rgba(59, 130, 246, 0.12);
  color: #1e40af;
}

.metric-help::after {
  background: rgba(255, 255, 255, 0.98);
  color: #0f172a;
  box-shadow: 0 18px 40px rgba(30, 64, 175, 0.14);
}

.feature-check.yes {
  color: #15803d;
  background: rgba(74, 222, 128, 0.16);
}

.feature-check.no {
  background: rgba(226, 232, 240, 0.66);
}

.metric-card-locked {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 250, 252, 0.86)),
    linear-gradient(135deg, rgba(148, 163, 184, 0.08), rgba(59, 130, 246, 0.03));
}

.run-summary-bar,
.distribution-bar,
.metric-visual-track,
.scene-rank-bar {
  background: rgba(191, 219, 254, 0.66);
}

.run-summary-fill,
.distribution-fill,
.metric-visual-fill,
.scene-rank-fill {
  background: linear-gradient(90deg, #1e40af, #3b82f6);
}

.metric-visual-icon {
  background: rgba(59, 130, 246, 0.12);
  color: #1e40af;
}

.change-chip,
.chip {
  background: rgba(255, 255, 255, 0.88);
}

.urgency-high {
  color: #c2410c;
  background: rgba(251, 146, 60, 0.16);
}

.urgency-medium {
  color: #15803d;
  background: rgba(74, 222, 128, 0.16);
}

.urgency-low {
  color: #1e40af;
  background: rgba(59, 130, 246, 0.12);
}

.metric-jump-link {
  color: #1e40af;
}

.dialog {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92)),
    linear-gradient(135deg, rgba(59, 130, 246, 0.04), rgba(245, 158, 11, 0.03));
}

.dialog::backdrop {
  background: rgba(226, 232, 240, 0.62);
  backdrop-filter: blur(10px);
}

.dialog-actions {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(248, 250, 252, 0.94) 34%);
}

.checkbox-row {
  color: var(--text-secondary);
}

.loading-overlay-backdrop {
  background: rgba(226, 232, 240, 0.72);
}

.loading-overlay-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.94)),
    linear-gradient(135deg, rgba(59, 130, 246, 0.04), rgba(245, 158, 11, 0.03));
}

.loading-spinner {
  border-color: rgba(59, 130, 246, 0.14);
  border-top-color: var(--accent);
  border-right-color: var(--accent-warm);
}

.build-version {
  margin-top: 24px;
  color: var(--text-muted);
  text-align: center;
}

.conversation-hero,
.search-toggle {
  display: none;
}

button.plan-compare-cell {
  width: 100%;
  border: none;
  text-align: center;
  font: inherit;
}

.summary-slot-stack {
  display: grid;
  gap: 10px;
}

.summary-inline-actions {
  display: flex;
  justify-content: flex-end;
}

.summary-inline-actions .ghost-button {
  min-width: 132px;
}

.summary-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: min(980px, 100%);
  margin: 0 auto;
}

.summary-metric-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(30, 64, 175, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88)),
    linear-gradient(135deg, rgba(59, 130, 246, 0.04), rgba(245, 158, 11, 0.03));
  box-shadow: var(--shadow-soft);
}

.summary-metric-card-locked {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.86)),
    linear-gradient(135deg, rgba(148, 163, 184, 0.08), rgba(59, 130, 246, 0.03));
}

.summary-metric-kicker {
  color: #1e40af;
  font-family: "Fira Code", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.summary-metric-value {
  color: #1e40af;
  font-family: "Fira Code", monospace;
  font-size: 1rem;
  font-weight: 700;
}

.summary-metric-label {
  color: var(--text-main);
  font-size: 0.94rem;
  font-weight: 800;
}

.summary-metric-note {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.55;
}

.report-grid-dense {
  gap: 14px;
}

.metrics-report-layout {
  display: grid;
  grid-template-columns: minmax(178px, 212px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.report-section-block {
  display: block;
  grid-column: 1 / -1;
  min-width: 0;
  scroll-margin-top: 20px;
}

.report-main-section {
  display: grid;
  gap: 16px;
}

.report-main-section-header {
  display: grid;
  gap: 6px;
  padding: 2px 6px 0;
}

.report-main-section-title,
.report-main-section-copy {
  margin: 0;
}

.report-main-section-title {
  color: var(--text-main);
  font-size: 1.24rem;
  line-height: 1.34;
  letter-spacing: -0.02em;
}

.report-main-section-copy {
  color: var(--text-secondary);
  line-height: 1.68;
}

.report-main-section-stack {
  display: grid;
  gap: 16px;
}

.report-sidebar-nav {
  position: sticky;
  top: 12px;
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(30, 64, 175, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9)),
    linear-gradient(135deg, rgba(59, 130, 246, 0.04), rgba(14, 165, 233, 0.03));
  box-shadow: var(--shadow-soft);
}

.report-sidebar-title {
  margin: 0;
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 800;
}

.report-sidebar-links {
  display: grid;
  gap: 8px;
}

.report-sidebar-link {
  width: 100%;
  display: grid;
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.report-sidebar-link strong,
.report-sidebar-link span {
  display: block;
}

.report-sidebar-link strong {
  font-size: 0.84rem;
}

.report-sidebar-link span {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.45;
}

.report-sidebar-link:hover,
.report-sidebar-link:focus-visible {
  color: var(--accent-strong);
  border-color: rgba(30, 64, 175, 0.22);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.report-sidebar-link-active,
.report-sidebar-link[aria-current="true"] {
  color: var(--text-main);
  border-color: rgba(124, 92, 255, 0.28);
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.16), rgba(34, 199, 214, 0.1));
  box-shadow: 0 16px 30px rgba(76, 92, 165, 0.12);
}

.report-sidebar-link-active span,
.report-sidebar-link[aria-current="true"] span {
  color: var(--text-secondary);
}

.report-grid-triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.report-score-grid-detailed {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.report-hero-single {
  grid-template-columns: minmax(0, 1fr);
}

.report-anchor-copy {
  margin: 0 0 18px;
  color: var(--text-main);
  font-size: 1.04rem;
  line-height: 1.72;
  font-weight: 700;
}

.report-score-row {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(220px, 1fr);
  gap: 18px;
  align-items: end;
  margin-bottom: 14px;
}

.report-score-row-single {
  grid-template-columns: minmax(0, auto);
}

.report-inline-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.report-inline-label,
.report-ai-label {
  margin: 0;
  color: var(--text-main);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.report-inline-score,
.report-ai-score {
  margin: 0;
  color: #1e40af;
  font-family: "Fira Code", monospace;
  font-size: 1.34rem;
  font-weight: 700;
}

.report-ai-label {
  font-size: 1.36rem;
}

.report-ai-score {
  font-size: 1.72rem;
}

.report-dimension-card {
  display: grid;
  gap: 10px;
  min-height: 100%;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(30, 64, 175, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.report-dimension-title {
  margin: 0;
  color: var(--text-main);
  font-size: 0.96rem;
  font-weight: 700;
}

.report-dimension-title .metric-label-with-help,
.report-metric-name .metric-label-with-help,
.metric-label .metric-label-with-help,
.kicker .metric-label-with-help {
  width: auto;
  justify-content: flex-start;
  gap: 4px;
}

.report-dimension-score {
  margin: 0;
  color: #1e40af;
  font-family: "Fira Code", monospace;
  font-size: 1rem;
  font-weight: 600;
}

.report-dimension-copy {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.62;
}

.report-copy {
  display: grid;
  gap: 6px;
  margin: 0;
  line-height: 1.72;
}

.report-copy-compact {
  gap: 4px;
  line-height: 1.62;
}

.report-copy-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.report-copy-compact .report-copy-label {
  font-size: 0.74rem;
}

.report-copy-body {
  display: block;
}

.report-copy-meaning {
  color: var(--text-secondary);
}

.report-copy-meaning .report-copy-label {
  color: rgba(71, 85, 105, 0.88);
}

.report-copy-implication {
  padding-left: 12px;
  border-left: 2px solid rgba(59, 130, 246, 0.22);
  color: var(--text-main);
}

.report-copy-implication .report-copy-label {
  color: #0f172a;
}

.report-copy-implication.report-copy-compact {
  padding-left: 10px;
}

.report-copy-recommendation {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(59, 130, 246, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.86)),
    linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(14, 165, 233, 0.03));
  color: #0f172a;
}

.report-copy-recommendation .report-copy-label {
  color: #1d4ed8;
}

.report-copy-recommendation.report-copy-compact {
  padding: 10px 12px;
  border-radius: 14px;
}

.report-subsection-emphasis {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.84)),
    linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(245, 158, 11, 0.04));
}

.report-emphasis-score {
  margin: 0;
  color: #1e40af;
  font-family: "Fira Code", monospace;
  font-size: 0.92rem;
  font-weight: 600;
}

.report-metric-card {
  align-content: start;
}

.report-core-metrics-overview,
.report-metric-group {
  display: grid;
  gap: 16px;
}

.report-metric-group-header {
  display: grid;
  gap: 6px;
}

.report-metric-group-summary {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.64;
}

.report-core-metric-grid,
.report-support-metric-grid {
  display: grid;
  gap: 14px;
}

.report-core-metric-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.report-support-metric-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.report-metric-card-core {
  padding: 20px 20px 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.9)),
    linear-gradient(135deg, rgba(59, 130, 246, 0.06), rgba(245, 158, 11, 0.04));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 18px 36px rgba(59, 130, 246, 0.08);
}

.report-metric-card-support {
  padding: 16px 18px;
}

.report-metric-card-support .report-inline-heading {
  gap: 10px;
}

.report-metric-card-support .report-inline-label {
  font-size: 0.98rem;
}

.report-metric-card-support .report-inline-score {
  font-size: 0.94rem;
}

.report-metric-details {
  margin: 0;
}

.report-metric-details summary {
  color: #1e40af;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.report-metric-details summary::-webkit-details-marker {
  display: none;
}

.report-metric-details-body {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(148, 163, 184, 0.36);
}

.metric-card-frosted,
.report-dimension-card.metric-card-frosted {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(248, 250, 252, 0.34)),
    linear-gradient(135deg, rgba(148, 163, 184, 0.14), rgba(124, 92, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 20px 48px rgba(113, 124, 171, 0.1);
  backdrop-filter: blur(26px) saturate(135%);
}

.report-metric-name {
  margin: 0;
  color: var(--text-main);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.report-locked-note {
  margin: 0;
  color: #1e40af;
  font-size: 0.92rem;
  font-weight: 700;
}

.report-metric-score {
  margin: 0;
  color: #1e40af;
  font-family: "Fira Code", monospace;
  font-size: 0.96rem;
  font-weight: 600;
}

.report-scene-title {
  margin: 0;
  color: var(--text-main);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.report-scene-card,
.report-action-track {
  align-content: start;
}

.report-action-stack {
  display: grid;
  gap: 14px;
}

.report-action-list {
  display: grid;
  gap: 14px;
}

.report-action-card {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.report-action-title {
  margin: 0;
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 800;
}

.report-action-steps p,
.report-action-card .muted-copy,
.report-action-card .log-meta {
  margin-bottom: 0;
}

.report-action-steps {
  display: grid;
  gap: 6px;
}

.report-action-step-line {
  display: grid;
  gap: 6px;
}

.action-step-badge {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent-strong);
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.report-action-step-text {
  color: var(--text-primary);
  line-height: 1.72;
}

.report-action-draft {
  margin-top: 12px;
}

.report-action-draft-list {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.report-action-draft-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  cursor: pointer;
  list-style: none;
  border: 1px solid rgba(30, 64, 175, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92)),
    linear-gradient(135deg, rgba(59, 130, 246, 0.04), rgba(14, 165, 233, 0.03));
  color: var(--text-primary);
  font-weight: 700;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.report-action-draft-summary::-webkit-details-marker {
  display: none;
}

.report-action-draft-summary::after {
  content: "展开";
  flex-shrink: 0;
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 600;
}

.report-action-draft[open] .report-action-draft-summary {
  border-color: rgba(30, 64, 175, 0.2);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.06);
}

.report-action-draft[open] .report-action-draft-summary::after {
  content: "收起";
}

.report-action-draft-body {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(30, 64, 175, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.9)),
    linear-gradient(135deg, rgba(59, 130, 246, 0.03), rgba(245, 158, 11, 0.03));
}

.report-action-draft-state {
  margin: 0;
}

.report-action-draft-state-pending {
  color: var(--text-secondary);
}

.report-action-draft-state-success {
  color: #166534;
}

.report-action-draft-state-error {
  color: #b45309;
}

.report-action-draft-output {
  margin: 0;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--text-primary);
  line-height: 1.78;
  white-space: pre-wrap;
}

.report-stack-list {
  display: grid;
  gap: 0;
}

.report-stack-item {
  padding: 16px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.report-opportunity-item {
  display: grid;
  gap: 10px;
}

.report-opportunity-title {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.04rem;
  font-weight: 800;
}

.report-stack-item:first-child {
  padding-top: 0;
  border-top: none;
}

.report-semantic-heading {
  margin: 18px 0 10px;
  color: var(--text-primary);
  font-size: 1.02rem;
  font-weight: 800;
}

.report-semantic-item {
  display: grid;
  gap: 10px;
}

.report-semantic-item p {
  margin: 0;
}

.report-semantic-term {
  color: var(--text-primary);
  font-size: 1.08rem;
  line-height: 1.45;
  font-weight: 800;
}

.report-semantic-definition {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.72;
}

.report-dialog-header {
  margin-bottom: 10px;
}

.report-dialog-kicker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.report-dialog-kicker-row .kicker {
  margin-bottom: 0;
}

.report-dialog-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.report-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(124, 92, 255, 0.14);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text-secondary);
  font-size: 0.78rem;
  line-height: 1.2;
}

.report-meta-pill strong {
  color: var(--text-main);
  font-weight: 800;
}

.report-action-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.action-step-badge-emphasis {
  border-color: rgba(124, 92, 255, 0.24);
  background: rgba(124, 92, 255, 0.12);
  color: var(--accent);
}

.report-conversion-hook {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 12px;
  border: 1px solid rgba(30, 64, 175, 0.12);
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94)),
    linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(245, 158, 11, 0.04));
}

.report-conversion-hook::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.08);
  filter: blur(2px);
  transform: translate(-32%, -48%);
}

.report-conversion-hook > * {
  position: relative;
  z-index: 1;
}

.report-conversion-title {
  margin: 0;
  font-size: 1.16rem;
  line-height: 1.55;
  font-weight: 700;
  color: var(--text-primary);
}

.report-conversion-copy {
  margin: 0;
  max-width: 72ch;
}

.report-conversion-hook[data-tone="error"] .report-conversion-title {
  color: #9a3412;
}

.report-inline-panel {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(30, 64, 175, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.9)),
    linear-gradient(135deg, rgba(59, 130, 246, 0.04), rgba(245, 158, 11, 0.03));
  box-shadow: var(--shadow-soft);
}

.report-inline-panel[hidden] {
  display: none;
}

.report-inline-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.report-inline-form {
  display: grid;
  gap: 12px;
}

.dialog-actions-inline {
  position: static;
  justify-content: flex-start;
  margin-top: 0;
  padding-top: 0;
  background: none;
}

.inline-feedback {
  margin: 0;
}

.inline-feedback-pending {
  color: var(--text-secondary);
}

.inline-feedback-success {
  color: #15803d;
}

.inline-feedback-error {
  color: #c2410c;
}

@media (max-width: 1080px) {
  .hero-stage-dashboard {
    padding: 36px 24px 28px;
  }

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

  .report-sidebar-nav {
    position: static;
  }

  .report-sidebar-links {
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  }

  .report-grid-triple,
  .report-score-grid-detailed,
  .report-core-metric-grid,
  .report-support-metric-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .page-shell {
    width: min(100vw - 16px, 1180px);
  }

  .hero-stage-dashboard,
  .hero-stage-minimal {
    padding: 28px 18px 22px;
    border-radius: 26px;
  }

  h1 {
    font-size: clamp(2.45rem, 12vw, 3.7rem);
  }

  .report-inline-heading {
    align-items: flex-start;
  }

  .hero-example-actions {
    justify-content: stretch;
  }

  .hero-example-button {
    width: 100%;
  }

  .report-sidebar-links {
    grid-template-columns: 1fr;
  }

  .report-score-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .summary-metric-grid {
    grid-template-columns: 1fr;
  }

  .report-main-section-title {
    font-size: 1.12rem;
  }
}
