@import url("https://cdn.jsdelivr.net/gh/wanteddev/wanted-sans@v1.0.3/packages/wanted-sans/fonts/webfonts/variable/complete/WantedSansVariable.min.css");
@import url("https://cdn.jsdelivr.net/gh/sunn-us/SUIT/fonts/static/woff2/SUIT.css");
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css");

:root {
  --bg: #050608;
  --bg-elevated: #080a0f;
  --panel: rgba(10, 12, 18, 0.88);
  --panel-strong: rgba(14, 17, 25, 0.96);

  --font-display:
    "Wanted Sans Variable",
    "Wanted Sans",
    "SUIT",
    "Pretendard",
    "Noto Sans KR",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  --font-sans: var(--font-display);
  --font-ui: var(--font-sans);

  --ink: #f4f5f7;
  --text-main: #f4f5f7;
  --text-muted: rgba(190, 196, 210, 0.72);
  --text-label: rgba(150, 158, 176, 0.78);
  --muted: #9298a6;

  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.06);
  --line-card: rgba(255, 255, 255, 0.1);

  --card-bg: rgba(13, 16, 23, 0.9);
  --card-bg-strong: rgba(18, 21, 30, 0.96);
  --card-bg-muted: rgba(22, 25, 34, 0.88);
  --card-bg-risk: rgba(255, 30, 53, 0.08);

  --accent: #ff1e35;
  --accent-deep: #c41226;
  --accent-red: #ff3347;
  --accent-soft: rgba(255, 30, 53, 0.16);
  --accent-quiet: rgba(255, 30, 53, 0.08);

  --gold: #ff9f1a;
  --teal: #7ddc8a;

  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --shadow-card: 0 18px 44px rgba(0, 0, 0, 0.32);
  --shadow-card-hover: 0 26px 60px rgba(255, 30, 53, 0.16);

  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --home-page-max: 1220px;
  --home-page-padding: clamp(28px, 3vw, 40px);
  --home-hero-gap: clamp(28px, 4.6vw, 72px);
  --home-hero-card-max: 510px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: 0;
  word-break: keep-all;
  font-size: 16px;
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 30, 53, 0.16), transparent 28%),
    radial-gradient(circle at 92% 18%, rgba(255, 30, 53, 0.08), transparent 26%),
    linear-gradient(180deg, #020306 0%, #050608 44%, #080910 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.44), transparent 92%);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 30, 53, 0.08), transparent 18%),
    linear-gradient(90deg, transparent 0 9%, rgba(255, 30, 53, 0.035) 9.2%, transparent 9.6% 90%, rgba(255, 30, 53, 0.03) 90.2%, transparent 90.6%);
  pointer-events: none;
  opacity: 0.9;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.page-shell {
  position: relative;
  width: min(var(--home-page-max), calc(100% - (var(--home-page-padding) * 2)));
  margin: 0 auto;
  padding: 22px 0 64px;
}

body[data-page="home"] {
  color: var(--text-main);
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: 0;
  overflow-x: hidden;
}

@media (min-width: 1440px) {
  :root {
    --home-page-max: 1260px;
    --home-hero-card-max: 520px;
  }
}

.ambient {
  position: fixed;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.38;
  pointer-events: none;
}

.ambient-one {
  top: -10vw;
  left: 0;
  width: 26vw;
  height: 26vw;
  background: rgba(196, 63, 39, 0.12);
}

.ambient-two {
  right: 0;
  top: 16vw;
  width: 21vw;
  height: 21vw;
  background: rgba(196, 63, 39, 0.08);
}

.topbar,
.panel {
  position: relative;
  z-index: 1;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(15, 18, 26, 0.88), rgba(8, 10, 15, 0.82)),
    var(--panel);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
}

.topbar {
  position: relative;
  top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 18px;
  border-radius: 999px;
  margin-bottom: clamp(14px, 2.2vw, 24px);
}

body[data-page="home"] .section-label,
body[data-page="home"] .screen-label,
body[data-page="home"] .screen-subtitle,
body[data-page="home"] .table-panel-head span,
body[data-page="home"] .homepage-side-label,
body[data-page="home"] .homepage-note-kicker,
body[data-page="home"] .homepage-entry-index {
  color: var(--text-label);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

body[data-page="home"] .topnav a,
body[data-page="home"] .button,
body[data-page="home"] .homepage-action-button {
  font-family: var(--font-sans);
}

body[data-page="home"] .button,
body[data-page="home"] .homepage-action-button {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand span {
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(196, 63, 39, 0.18);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 244, 240, 0.98));
  box-shadow: 0 8px 18px rgba(196, 63, 39, 0.14);
}

.brand-monogram {
  color: #4e342a;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: 0;
}

.brand-logo {
  display: block;
  width: 34px;
  height: 34px;
  padding: 2px;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(255, 30, 53, 0.08);
  border-color: rgba(255, 30, 53, 0.26);
  box-shadow:
    0 0 0 1px rgba(255, 30, 53, 0.08),
    0 12px 24px rgba(255, 30, 53, 0.12);
}

.brand small,
.section-label,
.note-kicker,
.metric-card span,
.console-stat span,
.mini-label,
.result-label,
.card-label {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand strong {
  display: block;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: 0;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.topnav a {
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  color: rgba(225, 229, 238, 0.72);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.topnav a:hover {
  background: rgba(255, 30, 53, 0.1);
  border-color: rgba(255, 30, 53, 0.22);
  color: #fff;
}

.topnav a.is-active {
  background: rgba(255, 30, 53, 0.16);
  border-color: rgba(255, 30, 53, 0.34);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 24px rgba(255, 30, 53, 0.12);
}

.page-stack {
  display: grid;
  gap: 18px;
  padding-top: 8px;
}

.homepage-shell {
  gap: clamp(34px, 4.4vw, 56px);
  padding-top: 8px;
}

.homepage-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, 0.92fr);
  gap: var(--home-hero-gap);
  align-items: center;
  isolation: isolate;
  min-height: auto;
  padding: 8px 0 6px;
}

body[data-page="home"] .homepage-hero::after {
  content: "";
  position: absolute;
  inset: 4% 0 8% 52%;
  background: radial-gradient(circle at 38% 44%, rgba(255, 30, 53, 0.12), transparent 46%);
  filter: blur(8px);
  pointer-events: none;
  z-index: -1;
}

.homepage-copy {
  display: grid;
  gap: 0;
  max-width: 640px;
  align-content: center;
}

body[data-page="home"] .hero-title {
  margin: 0;
  max-width: 15.7ch;
  font-family: var(--font-display);
  font-size: clamp(46px, 3.78vw, 60px);
  font-weight: 720;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text-main);
  text-wrap: balance;
}

body[data-page="home"] .hero-eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
}

body[data-page="home"] .hero-title-accent-wrap {
  white-space: nowrap;
}

body[data-page="home"] .hero-title-accent {
  position: relative;
  display: inline-block;
  color: var(--accent-red);
  font-weight: 780;
  text-shadow: 0 0 28px rgba(255, 30, 53, 0.26);
  z-index: 0;
}

body[data-page="home"] .hero-title-accent::after {
  content: "";
  position: absolute;
  left: -0.05em;
  right: -0.05em;
  bottom: 0.03em;
  height: 0.34em;
  border-radius: 999px;
  background: rgba(255, 30, 53, 0.12);
  filter: blur(2px);
  z-index: -1;
}

body[data-page="home"] .hero-subcopy,
body[data-page="home"] .homepage-summary {
  margin: 0;
  max-width: 640px;
  color: var(--text-muted);
  font-size: clamp(16px, 1.08vw, 17px);
  font-weight: 450;
  letter-spacing: 0;
  line-height: 1.78;
  text-wrap: pretty;
}

body[data-page="home"] .homepage-summary {
  margin-top: 22px;
}

body[data-page="home"] .hero-description-break {
  display: none;
}

@media (min-width: 1210px) {
  body[data-page="home"] .hero-description-break {
    display: block;
  }
}

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

.hero-impact-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  margin-top: 18px;
}

.impact-card {
  display: grid;
  gap: 7px;
  min-height: 108px;
  padding: 15px 16px;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 30, 53, 0.2);
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 30, 53, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(18, 21, 30, 0.96), rgba(10, 12, 18, 0.94)),
    var(--card-bg-risk);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.26);
}

.impact-card:first-child {
  border-color: rgba(255, 30, 53, 0.34);
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 30, 53, 0.22), transparent 36%),
    linear-gradient(180deg, rgba(22, 25, 34, 0.98), rgba(10, 12, 18, 0.96)),
    var(--card-bg-risk);
}

body[data-page="home"] .impact-card::before,
body[data-page="home"] .project-summary-card::before,
body[data-page="home"] .homepage-mini-board::before,
body[data-page="home"] .screen-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(155, 51, 46, 0.22), rgba(155, 51, 46, 0.03) 72%);
}

.impact-card span {
  display: block;
  color: rgba(190, 196, 210, 0.68);
  font-size: 12px;
  font-weight: 650;
}

.impact-card strong {
  display: block;
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.impact-card p {
  margin: 0;
  color: rgba(190, 196, 210, 0.7);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.55;
}

.hero-facts div {
  min-height: 88px;
  padding: 14px 15px 13px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(17, 20, 28, 0.94), rgba(10, 12, 18, 0.9)),
    var(--card-bg);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.hero-facts dt {
  color: var(--text-label);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 9px 0 0;
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.homepage-footnote {
  display: grid;
  gap: 8px;
  max-width: 44rem;
  margin: 20px 0 0;
  padding: 15px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(17, 20, 28, 0.88), rgba(10, 12, 18, 0.82)),
    var(--card-bg-muted);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 28px rgba(0, 0, 0, 0.22);
}

.homepage-footnote-label {
  color: var(--text-label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.homepage-footnote p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 450;
  line-height: 1.75;
}

.homepage-project-strip {
  display: block;
}

.project-identity-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(320px, 0.86fr);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(14, 17, 25, 0.94), rgba(8, 10, 15, 0.9)),
    var(--card-bg);
  box-shadow: var(--shadow-card);
}

.project-summary-card {
  position: relative;
  overflow: hidden;
  padding: 30px 32px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.project-summary-card .section-label {
  margin-bottom: 10px;
  color: #ff6675;
}

.project-summary-lead,
.project-summary-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15.5px;
  font-weight: 450;
  line-height: 1.75;
}

.project-summary-primary {
  display: grid;
  gap: 18px;
}

.project-summary-role {
  display: grid;
  gap: 18px;
  align-content: start;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 30, 53, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(18, 21, 30, 0.88), rgba(10, 12, 18, 0.86)),
    var(--card-bg-risk);
}

.project-principle-list,
.role-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-pill,
.role-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 30, 53, 0.22);
  background: rgba(255, 30, 53, 0.1);
  color: #ff6675;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0;
}

.role-chip {
  min-height: 38px;
  padding: 0 15px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(225, 229, 238, 0.78);
  border-color: rgba(255, 255, 255, 0.1);
}

.homepage-screen {
  position: relative;
  width: min(100%, var(--home-hero-card-max));
  justify-self: end;
  align-self: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 30px;
  background:
    radial-gradient(circle at 74% 18%, rgba(255, 30, 53, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(16, 19, 27, 0.96), rgba(5, 6, 8, 0.98));
  box-shadow:
    0 34px 80px rgba(0, 0, 0, 0.52),
    0 0 70px rgba(255, 30, 53, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body[data-page="home"] .homepage-screen::before {
  content: "";
  position: absolute;
  inset: -48px 0;
  background: radial-gradient(circle at 70% 42%, rgba(255, 30, 53, 0.16), transparent 58%);
  filter: blur(10px);
  pointer-events: none;
  z-index: -1;
}

.screen-window-bar {
  display: flex;
  gap: 8px;
  padding: 0 2px 12px;
}

.screen-window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.screen-window-bar span:first-child {
  background: rgba(255, 30, 53, 0.78);
  box-shadow: 0 0 18px rgba(255, 30, 53, 0.38);
}

.screen-surface {
  position: relative;
  overflow: hidden;
  padding: 22px 22px 24px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 30, 53, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(12, 15, 22, 0.98), rgba(5, 6, 10, 0.98)),
    var(--card-bg-strong);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.screen-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at 50% 28%, rgba(0, 0, 0, 0.72), transparent 78%);
  pointer-events: none;
}

.screen-surface > * {
  position: relative;
  z-index: 1;
}

.screen-overview {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.screen-label,
.screen-subtitle,
.table-panel-head span,
.homepage-side-label,
.homepage-note-kicker,
.homepage-entry-index {
  color: #ff6675;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(255, 30, 53, 0.18);
}

.screen-overview h2 {
  margin: 6px 0 0;
  font-family: var(--font-sans);
  font-size: 30px;
  font-weight: 760;
  line-height: 1.16;
  letter-spacing: -0.025em;
  color: #fff;
}

.screen-score {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.screen-score strong {
  font-family: var(--font-sans);
  font-size: 32px;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 0 22px rgba(255, 30, 53, 0.28);
}

.screen-summary {
  max-width: 48ch;
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 14.5px;
  font-weight: 450;
  line-height: 1.66;
}

.screen-panel {
  position: relative;
  overflow: hidden;
  margin-top: 16px;
  padding: 17px 17px 19px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(180deg, rgba(18, 21, 30, 0.92), rgba(10, 12, 18, 0.88)),
    var(--card-bg-muted);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.screen-list {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.66;
}

.screen-list li::marker {
  color: var(--accent red);
}

.screen-list li + li {
  margin-top: 10px;
}

.homepage-section {
  display: grid;
  gap: 28px;
  padding-top: 72px;
  border-top: 1px solid var(--line-card);
}

.homepage-section-head {
  display: grid;
  gap: 12px;
  max-width: 760px;
}

.homepage-section-head h2,
.homepage-note h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 2.35vw, 34px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 0;
}

.homepage-section-head p,
.homepage-note-body {
  margin: 0;
  color: var(--text-muted);
  font-size: 15.5px;
  font-weight: 450;
  line-height: 1.8;
}

.homepage-entry-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.homepage-entry {
  display: grid;
  gap: 16px;
}

.homepage-entry-card {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  padding: 25px 24px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  background:
    radial-gradient(circle at 86% 14%, rgba(255, 30, 53, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(16, 19, 27, 0.94), rgba(9, 11, 17, 0.92)),
    var(--card-bg);
  box-shadow: 0 17px 38px rgba(0, 0, 0, 0.26);
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.homepage-entry-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 30, 53, 0.62), rgba(255, 159, 26, 0.12) 72%);
}

.homepage-entry-card:hover,
.homepage-entry-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255, 30, 53, 0.32);
  background:
    radial-gradient(circle at 86% 14%, rgba(255, 30, 53, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(20, 24, 34, 0.96), rgba(10, 12, 18, 0.94)),
    var(--card-bg-strong);
  box-shadow:
    0 24px 52px rgba(0, 0, 0, 0.34),
    0 0 44px rgba(255, 30, 53, 0.08);
}

.homepage-entry-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.homepage-entry-body {
  margin: 0;
  color: rgba(190, 196, 210, 0.72);
  font-size: 15px;
  font-weight: 450;
  line-height: 1.72;
}

.homepage-entry h3 {
  margin: 0;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.34;
}

.homepage-entry-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid rgba(255, 30, 53, 0.24);
  border-radius: 999px;
  background: rgba(255, 30, 53, 0.1);
  color: #ff6675;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

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

.entry-chip {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(190, 196, 210, 0.72);
  font-size: 13.5px;
  font-weight: 450;
  line-height: 1.6;
}

.entry-chip strong {
  flex: 0 0 auto;
  min-width: 32px;
  color: #ff6675;
  font-weight: 750;
}

.homepage-entry-linkline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: #ff6675;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
}

.homepage-entry-linkline::after {
  content: "→";
  opacity: 0.72;
  transition: transform 160ms ease;
}

.homepage-entry-card:hover .homepage-entry-arrow,
.homepage-entry-card:focus-visible .homepage-entry-arrow {
  border-color: rgba(255, 30, 53, 0.44);
  background: rgba(255, 30, 53, 0.86);
  color: #fff;
  box-shadow: 0 0 22px rgba(255, 30, 53, 0.28);
  transform: translateX(3px);
}

.homepage-entry-card:hover .homepage-entry-linkline::after,
.homepage-entry-card:focus-visible .homepage-entry-linkline::after {
  transform: translateX(2px);
}

.homepage-evidence-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(300px, 0.84fr);
  gap: 28px;
  align-items: start;
}

.homepage-evidence-copy {
  display: grid;
  gap: 20px;
}

.validation-lead {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0;
}

.evidence-axis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.evidence-axis-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 10px;
  padding: 22px 22px 20px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(circle at 88% 14%, rgba(255, 30, 53, 0.09), transparent 30%),
    linear-gradient(180deg, rgba(16, 19, 27, 0.94), rgba(9, 11, 17, 0.92)),
    var(--card-bg);
  box-shadow: 0 15px 34px rgba(0, 0, 0, 0.24);
}

.evidence-axis-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 30, 53, 0.42), rgba(255, 30, 53, 0.04) 72%);
}

.evidence-axis-index {
  color: #ff6675;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.evidence-axis-card strong {
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.evidence-axis-card p {
  margin: 0;
  color: rgba(190, 196, 210, 0.72);
  font-size: 14.5px;
  font-weight: 450;
  line-height: 1.68;
}

#hero-preview-signals .benchmark-line {
  margin-top: 12px;
}

#hero-preview-signals .interpretation-strip {
  margin-top: 10px;
}

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

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

.scenario-case-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 16px;
  min-height: 100%;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 30, 53, 0.09), transparent 30%),
    linear-gradient(180deg, rgba(16, 19, 27, 0.94), rgba(9, 11, 17, 0.92)),
    var(--card-bg);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.25);
}

.scenario-case-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, rgba(255, 30, 53, 0.72), rgba(255, 159, 26, 0.16));
}

.scenario-case-head {
  display: grid;
  gap: 8px;
}

.scenario-case-label {
  width: fit-content;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid rgba(255, 30, 53, 0.24);
  border-radius: 999px;
  background: rgba(196, 63, 39, 0.08);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 800;
}

.scenario-case-card strong {
  color: #fff;
  font-size: 19px;
  font-weight: 850;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.scenario-case-meta,
.scenario-evidence-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.scenario-case-meta span,
.scenario-evidence-list li {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(190, 196, 210, 0.76);
  font-size: 12.5px;
  font-weight: 750;
}

.scenario-case-card p,
.scenario-action-line p {
  margin: 0;
  color: rgba(190, 196, 210, 0.72);
  font-size: 14.5px;
  font-weight: 450;
  line-height: 1.72;
}

.scenario-action-line {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.scenario-action-line span {
  color: #ff6675;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.validation-card {
  position: relative;
  overflow: hidden;
  padding: 20px 20px 21px;
  border-radius: 18px;
  border: 1px solid rgba(255, 30, 53, 0.2);
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 30, 53, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(16, 19, 27, 0.94), rgba(9, 11, 17, 0.92)),
    var(--card-bg);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.26);
}

.validation-card::before,
.report-lines article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(255, 30, 53, 0.72), rgba(255, 159, 26, 0.18));
}

.validation-card strong {
  display: block;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.38;
  letter-spacing: -0.01em;
}

.validation-card p {
  margin: 10px 0 0;
  color: rgba(190, 196, 210, 0.72);
  font-size: 14.5px;
  font-weight: 450;
  line-height: 1.72;
}

.report-lines,
.source-lines {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.report-lines article,
.source-lines article {
  position: relative;
  overflow: hidden;
  padding: 20px 20px 21px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background:
    radial-gradient(circle at 90% 12%, rgba(255, 30, 53, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(16, 19, 27, 0.94), rgba(9, 11, 17, 0.92)),
    var(--card-bg);
  box-shadow: 0 15px 32px rgba(0, 0, 0, 0.24);
}

.report-lines p,
.source-lines p {
  margin: 10px 0 0;
  color: rgba(190, 196, 210, 0.72);
  font-size: 14.5px;
  font-weight: 450;
  line-height: 1.75;
}

.report-lines strong,
.source-lines strong {
  display: block;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.38;
  letter-spacing: -0.01em;
}

.evidence-number {
  display: inline-flex;
  align-items: baseline;
  padding: 0 0.18em;
  border-radius: 0.35em;
  background: rgba(255, 30, 53, 0.12);
  color: #ff6675;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.homepage-mini-board {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page="home"] .homepage-mini-board::before {
  display: none;
}

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

.homepage-info-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 30, 53, 0.09), transparent 30%),
    linear-gradient(180deg, rgba(16, 19, 27, 0.94), rgba(9, 11, 17, 0.92)),
    var(--card-bg);
  box-shadow: 0 15px 34px rgba(0, 0, 0, 0.24);
}

.homepage-info-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 30, 53, 0.42), rgba(255, 30, 53, 0.04) 72%);
}

.homepage-info-card-primary {
  grid-column: 1 / -1;
  border-color: rgba(255, 30, 53, 0.24);
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 30, 53, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(20, 24, 34, 0.96), rgba(10, 12, 18, 0.94)),
    var(--card-bg-risk);
}

.homepage-data-card .homepage-action-button-soft,
.homepage-info-card-primary .homepage-action-button-soft {
  width: fit-content;
}

.homepage-info-card > strong {
  display: block;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.42;
  letter-spacing: -0.01em;
}

.homepage-info-card > p:not(.homepage-side-label) {
  margin: 0;
  color: rgba(190, 196, 210, 0.72);
  font-size: 14.5px;
  font-weight: 450;
  line-height: 1.72;
}

.table-panel-head {
  display: grid;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.table-panel-head strong {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.homepage-side-section {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.homepage-side-section strong {
  display: block;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 740;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.homepage-side-section p {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-weight: 450;
  line-height: 1.75;
}

.district-brief-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.score-breakdown {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.score-breakdown .benchmark-line,
.score-breakdown .interpretation-strip {
  margin-top: 0;
}

.score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.score-row span {
  color: rgba(190, 196, 210, 0.72);
  font-size: 14px;
  font-weight: 500;
}

.score-row strong {
  color: #ff6675;
  font-size: 18px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.district-brief-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.district-brief-item strong {
  display: block;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.district-brief-item p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 450;
  line-height: 1.7;
}

.district-brief-item span {
  color: #ff6675;
  font-size: 17px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.source-note {
  display: grid;
  gap: 0;
  padding: 14px 15px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(17, 20, 28, 0.9), rgba(10, 12, 18, 0.84)),
    var(--card-bg-muted);
}

.source-note-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.source-note-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.source-note-row span {
  color: var(--text-label);
  font-size: 13px;
  font-weight: 650;
}

.source-note-row strong {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

.source-note-meta {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 450;
  line-height: 1.65;
}

.homepage-support-links {
  display: grid;
  gap: 18px;
  margin-top: 26px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 30, 53, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(15, 18, 26, 0.94), rgba(8, 10, 15, 0.9)),
    var(--card-bg-muted);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 40px rgba(0, 0, 0, 0.28);
}

.homepage-support-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(260px, 1fr);
  gap: 18px;
  align-items: end;
}

.homepage-support-head h3 {
  margin: 4px 0 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.homepage-support-head p:not(.section-label) {
  margin: 0;
  color: rgba(190, 196, 210, 0.72);
  font-size: 14.5px;
  font-weight: 450;
  line-height: 1.7;
}

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

.homepage-support-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 142px;
  padding: 19px 18px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(18, 21, 30, 0.9), rgba(10, 12, 18, 0.86)),
    rgba(255, 255, 255, 0.035);
  color: inherit;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 11px 24px rgba(0, 0, 0, 0.22);
}

.homepage-support-card span {
  color: #ff6675;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-shadow: 0 0 14px rgba(255, 30, 53, 0.18);
}

.homepage-support-card strong {
  color: #fff;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -0.01em;
}

.homepage-support-card p {
  margin: 0;
  color: rgba(190, 196, 210, 0.72);
  font-size: 14px;
  font-weight: 450;
  line-height: 1.65;
}

.homepage-support-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 3px;
  border-radius: 999px;
  background: rgba(255, 30, 53, 0.46);
  box-shadow: 0 0 18px rgba(255, 30, 53, 0.18);
}

.homepage-evidence-copy .homepage-support-links {
  margin-top: 0;
  padding: 22px;
}

.homepage-evidence-copy .homepage-support-head {
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
}

.homepage-evidence-copy .homepage-support-head h3 {
  font-size: clamp(20px, 1.8vw, 24px);
}

.homepage-evidence-copy .homepage-support-grid {
  grid-template-columns: 1fr;
  gap: 10px;
}

.homepage-evidence-copy .homepage-support-card {
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 5px 13px;
  min-height: auto;
  padding: 15px 17px;
}

.homepage-evidence-copy .homepage-support-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  grid-row: 1 / span 2;
  width: 32px;
  height: 28px;
  margin-top: 1px;
  border-radius: 999px;
  border: 1px solid rgba(255, 30, 53, 0.24);
  background: rgba(255, 30, 53, 0.1);
  padding-top: 0;
}

.homepage-evidence-copy .homepage-support-card p {
  grid-column: 2;
}

.homepage-evidence-copy .homepage-support-card::before {
  top: 14px;
  bottom: 14px;
}

#recent-review,
.review-note,
.review-empty {
  display: grid;
  gap: 6px;
}

.review-note strong,
.review-empty strong {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.review-note p,
.review-empty p {
  margin: 0;
  color: rgba(190, 196, 210, 0.72);
  font-size: 14px;
  font-weight: 450;
  line-height: 1.7;
}

.editorial-home {
  gap: 48px;
  padding-top: 18px;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 34px;
  align-items: start;
  padding: 18px 0 0;
}

.home-hero-copy {
  display: grid;
  gap: 18px;
  padding-top: 24px;
}

.home-hero-copy h1 {
  margin: 0;
  max-width: 11ch;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.18;
  letter-spacing: 0;
}

.home-hero-body {
  max-width: 30ch;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.home-inline-note {
  max-width: 38rem;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.home-inline-note p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.home-hero-preview {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.preview-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.2;
}

.preview-chart {
  margin-top: 18px;
  padding: 16px 0 10px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.preview-scoreline {
  margin-top: 18px;
}

.preview-scoreline strong {
  display: block;
  font-size: 22px;
  letter-spacing: 0;
}

.preview-scoreline p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.preview-list {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.preview-list li + li {
  margin-top: 8px;
}

.home-stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
}

.stat-line {
  display: grid;
  gap: 6px;
}

.stat-line span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-line strong {
  font-size: 24px;
  letter-spacing: 0;
}

.editorial-section {
  display: grid;
  gap: 24px;
  padding: 32px 0 0;
  border-top: 1px solid var(--line);
}

.section-intro {
  display: grid;
  gap: 10px;
}

.section-intro h2 {
  margin: 0;
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.22;
  letter-spacing: 0;
}

.split-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

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

.entry-block {
  display: grid;
  gap: 12px;
  padding-top: 16px;
  border-top: 2px solid var(--accent-soft);
}

.entry-block h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0;
}

.entry-block p,
.entry-block span {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.entry-block span {
  font-size: 14px;
}

.entry-block a {
  margin-top: 6px;
  color: var(--accent-deep);
  font-weight: 700;
  text-decoration: none;
}

.report-layout,
.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 28px;
}

.report-copy {
  display: grid;
  gap: 18px;
}

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

.plain-list article {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.plain-list strong {
  display: block;
  font-size: 15px;
}

.plain-list p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.report-table-wrap {
  overflow: auto;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
}

.report-table th,
.report-table td {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.report-table th {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-table td {
  font-size: 14px;
  line-height: 1.6;
}

.editorial-feature {
  padding-bottom: 12px;
}

.feature-copy {
  display: grid;
  gap: 14px;
}

.feature-kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-copy h3 {
  margin: 0;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.25;
}

.feature-copy p {
  max-width: 42rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.feature-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}

.feature-side {
  display: grid;
  gap: 18px;
}

.feature-side-block {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
}

.feature-side-block strong {
  display: block;
  font-size: 18px;
}

.feature-side-block p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.feature-links {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.feature-links a {
  color: var(--accent-deep);
  font-weight: 700;
  text-decoration: none;
}

.hero-grid,
.two-column-block,
.field-group,
.tool-grid,
.district-grid,
.archetype-grid,
.evidence-grid,
.recent-review-grid,
.metric-ribbon,
.console-stats {
  display: grid;
  gap: 14px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.06fr) minmax(400px, 0.94fr);
  align-items: start;
}

.panel {
  border-radius: var(--radius-xl);
}

.panel-hero {
  padding: 32px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 1), rgba(255, 250, 246, 0.98)),
    radial-gradient(circle at top right, rgba(196, 63, 39, 0.08), transparent 28%),
    var(--panel-strong);
}

.hero-copy h1,
.section-head h2,
.footer-cta h2,
.console-topline h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-copy h1 {
  max-width: 13ch;
  font-size: clamp(28px, 3.2vw, 40px);
}

.console-topline h2 {
  font-size: clamp(22px, 2.2vw, 28px);
}

.section-head h2,
.footer-cta h2 {
  max-width: 20ch;
  font-size: clamp(20px, 2vw, 26px);
}

.hero-body,
.section-copy,
.hero-note p,
.field span,
.result-copy,
.district-card p,
.memo-card p,
.review-mini p,
.tool-card p,
.archetype-card p,
.evidence-card p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-body {
  max-width: 34ch;
  margin: 18px 0 0;
  font-size: clamp(16px, 1.5vw, 18px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.32),
    0 0 26px rgba(255, 30, 53, 0.12);
}

.button:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

.button-primary {
  background: linear-gradient(135deg, #ff1e35, #c41226);
  color: #fff;
  border-color: rgba(255, 30, 53, 0.42);
  box-shadow:
    0 12px 28px rgba(255, 30, 53, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.055);
  color: rgba(245, 247, 252, 0.9);
}

.text-link,
.homepage-entry-meta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(196, 63, 39, 0.14);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 18px rgba(73, 37, 26, 0.06);
  color: var(--accent-deep);
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.text-link:hover,
.homepage-entry-meta a:hover {
  transform: translateY(-1px);
  border-color: rgba(196, 63, 39, 0.28);
  background: var(--accent-soft);
  box-shadow: 0 12px 22px rgba(73, 37, 26, 0.1);
}

.text-link:active,
.homepage-entry-meta a:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(73, 37, 26, 0.08);
}

.homepage-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 17px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 30, 53, 0.28);
  background: rgba(255, 30, 53, 0.1);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: #ff6675;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.homepage-action-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 30, 53, 0.44);
  background: rgba(255, 30, 53, 0.16);
  color: #fff;
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.3),
    0 0 28px rgba(255, 30, 53, 0.14);
}

.homepage-action-button:active {
  transform: translateY(0);
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.22);
}

.homepage-action-button-outline {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.11);
  color: rgba(245, 247, 252, 0.86);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.homepage-action-button-soft {
  width: fit-content;
  background: rgba(196, 63, 39, 0.11);
  border-color: rgba(155, 51, 46, 0.22);
}

.homepage-action-button-soft {
  width: fit-content;
  background: rgba(255, 30, 53, 0.1);
  border-color: rgba(255, 30, 53, 0.22);
}

.homepage-entry-link:hover {
  background: linear-gradient(135deg, rgba(255, 45, 64, 0.98), rgba(196, 18, 38, 0.98));
  color: #fff;
}

.button-wide {
  width: 100%;
}

.hero-note {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(18, 21, 30, 0.88), rgba(10, 12, 18, 0.84)),
    rgba(255, 255, 255, 0.035);
}

.hero-note p {
  margin: 0;
}

.metric-ribbon {
  margin-top: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card,
.console-stat,
.tool-card,
.archetype-card,
.evidence-card,
.district-card,
.review-mini {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(18, 21, 30, 0.9), rgba(10, 12, 18, 0.86)),
    rgba(255, 255, 255, 0.035);
}

.metric-card strong,
.console-stat strong {
  display: block;
  margin-top: 10px;
  font-size: 22px;
  letter-spacing: 0;
}

.hero-console {
  padding: 20px;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 30, 53, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(15, 18, 26, 0.94), rgba(8, 10, 15, 0.9)),
    var(--panel-strong);
}

.console-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.signal-pill,
.rank-pill,
.tone-pill,
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.signal-pill {
  background: rgba(196, 63, 39, 0.13);
  color: var(--accent-deep);
  border: 1px solid rgba(196, 63, 39, 0.22);
}

.signal-pill.tone-high,
.tone-pill.tone-high {
  background: rgba(196, 63, 39, 0.14);
  color: var(--accent-deep);
}

.signal-pill.tone-mid,
.tone-pill.tone-mid {
  background: rgba(201, 161, 90, 0.12);
  color: #8e6424;
}

.signal-pill.tone-low,
.tone-pill.tone-low {
  background: rgba(106, 167, 159, 0.12);
  color: #356c65;
}

.rank-pill,
.chip {
  border: 1px solid rgba(73, 37, 26, 0.09);
  background: #fff;
}

.chart-frame,
.result-card,
.memo-card {
  border-radius: 22px;
  border: 1px solid rgba(73, 37, 26, 0.09);
}

.chart-frame {
  margin-top: 18px;
  padding: 16px;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 30, 53, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(15, 18, 26, 0.94), rgba(8, 10, 15, 0.9)),
    rgba(255, 255, 255, 0.035);
}

.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.chart-head strong {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
}

.chart-head span {
  color: var(--text-label);
  font-size: 13px;
  font-weight: 650;
}

body[data-page="home"] .text-accent {
  color: var(--accent-red);
  font-weight: 650;
}

.hero-chart-head {
  align-items: flex-start;
  margin-bottom: 12px;
}

.hero-chart-head strong {
  line-height: 1.4;
}

.hero-chart-head span {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid rgba(73, 37, 26, 0.16);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.92);
  font-weight: 700;
}

svg {
  width: 100%;
  height: auto;
}

.console-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
}

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

.probe-form {
  margin-top: 14px;
}

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

.field span {
  font-size: 13px;
  font-weight: 600;
}

.field input,
.field select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  color: var(--ink);
  border: 1px solid rgba(73, 37, 26, 0.11);
  border-radius: 14px;
  background: #fff;
  font: inherit;
}

.field input::placeholder {
  color: rgba(116, 104, 98, 0.72);
}

.result-card {
  min-height: 220px;
  margin-top: 14px;
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(196, 63, 39, 0.08), transparent 28%),
    rgba(255, 255, 255, 0.96);
}

.result-card h3,
.memo-card strong,
.review-mini strong,
.tool-card strong,
.archetype-card strong,
.district-card strong {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.result-card p,
.district-card p,
.review-mini p,
.tool-card p,
.archetype-card p,
.evidence-card p {
  margin: 10px 0 0;
}

.result-score {
  display: block;
  margin-top: 12px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0;
}

.result-grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.result-list,
.district-list,
.case-list {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.result-list li + li,
.district-list li + li,
.case-list li + li {
  margin-top: 6px;
}

.interpretation-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.interpretation-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(73, 37, 26, 0.13);
  background: rgba(255, 252, 248, 0.82);
  color: rgba(54, 38, 32, 0.78);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
  white-space: nowrap;
}

.interpretation-badge.is-caution {
  border-color: rgba(155, 51, 46, 0.22);
  background: rgba(196, 63, 39, 0.08);
  color: var(--accent-deep);
}

.interpretation-note {
  margin: 9px 0 0;
  color: var(--text-label);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.55;
}

.benchmark-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 11px 12px;
  border: 1px solid rgba(155, 51, 46, 0.15);
  border-radius: 14px;
  background: rgba(255, 248, 244, 0.7);
}

.benchmark-line strong {
  color: var(--accent-deep);
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.35;
}

.benchmark-line span {
  color: rgba(54, 38, 32, 0.72);
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.35;
  text-align: right;
}

.risk-overlap-block,
.alternative-rationale {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(73, 37, 26, 0.12);
  border-radius: 16px;
  background: rgba(255, 252, 248, 0.76);
}

.risk-overlap-compact,
.alternative-rationale-compact {
  padding: 12px;
}

.risk-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 9px;
}

.risk-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(73, 37, 26, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: rgba(54, 38, 32, 0.72);
  font-size: 12.5px;
  font-weight: 750;
  line-height: 1.25;
}

.risk-chip.is-active {
  border-color: rgba(155, 51, 46, 0.28);
  background: rgba(196, 63, 39, 0.11);
  color: var(--accent-deep);
}

.risk-overlap-block p,
.alternative-rationale p {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.62;
}

.rationale-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.rationale-grid article {
  padding: 11px 12px;
  border: 1px solid rgba(73, 37, 26, 0.1);
  border-radius: 14px;
  background: rgba(255, 250, 246, 0.8);
}

.rationale-grid strong {
  display: block;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.35;
}

.section-block {
  padding: 22px;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-copy {
  max-width: 38ch;
  margin: 0;
}

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

.card-meta {
  color: var(--muted);
  font-size: 13px;
}

.tool-link,
.text-link {
  color: var(--accent-deep);
  font-weight: 700;
  text-decoration: none;
}

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

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

.archetype-card,
.district-card {
  position: relative;
  overflow: hidden;
}

.archetype-card::before,
.district-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--gold));
}

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

.district-score-row,
.district-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.risk-bar {
  margin-top: 14px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.risk-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--accent));
}

.memo-card {
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(249, 243, 238, 0.96)),
    rgba(255, 255, 255, 0.96);
}

.memo-card p {
  margin: 12px 0 0;
}

.memo-chips {
  margin-top: 16px;
}

.recent-review-grid {
  margin-top: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
}

.footer-actions {
  justify-content: flex-end;
}

.subhero {
  padding: 22px;
}

.subhero-copy {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.subhero-copy > div:first-child {
  min-width: 0;
  flex: 1 1 auto;
}

.subhero h2 {
  margin: 0;
  max-width: none;
  font-family: var(--font-display);
  font-size: clamp(25px, 1.85vw, 29px);
  font-weight: 750;
  line-height: 1.24;
  letter-spacing: 0;
}

.subhero-copy p:not(.section-label):not(.compact-note) {
  max-width: 42ch;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15.5px;
  font-weight: 450;
  line-height: 1.76;
}

.hero-status {
  min-width: 180px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(73, 37, 26, 0.09);
  background: rgba(255, 255, 255, 0.96);
}

.hero-status strong {
  display: block;
  margin-top: 10px;
  font-size: 24px;
}

.app-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
}

.app-grid.assessment-workspace {
  grid-template-columns: minmax(560px, 0.98fr) minmax(0, 1.02fr);
  align-items: start;
}

.assessment-input-column {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.assessment-insight-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
  min-width: 0;
}

.assessment-insight-grid > .panel {
  min-width: 0;
}

body[data-page="assessment"] .subhero:not(.service-subhero) {
  padding: 22px 24px;
}

body[data-page="assessment"] .section-label,
body[data-page="assessment"] .card-label,
body[data-page="assessment"] .result-label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
}

body[data-page="assessment"] .section-head h2 {
  max-width: none;
  font-family: var(--font-display);
  font-size: clamp(23px, 1.8vw, 28px);
  font-weight: 750;
  line-height: 1.28;
  letter-spacing: 0;
}

body[data-page="assessment"] .section-copy,
body[data-page="assessment"] .result-copy,
body[data-page="assessment"] .progress-card p {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 450;
  line-height: 1.74;
}

.diagnosis-result-card {
  display: grid;
  gap: 0;
  min-height: 0;
  margin-top: 0;
  padding: 0 18px;
}

.diagnosis-result-section {
  padding: 16px 0;
}

.diagnosis-result-section + .diagnosis-result-section {
  border-top: 1px solid rgba(73, 37, 26, 0.12);
}

.diagnosis-score-section {
  padding-top: 18px;
}

.diagnosis-result-card .result-score {
  margin-top: 8px;
  color: var(--text-main);
  font-size: 34px;
  font-weight: 820;
  font-variant-numeric: tabular-nums;
  line-height: 1.08;
}

.diagnosis-result-card .result-copy {
  margin: 0;
}

body[data-page="assessment"] .diagnosis-result-card .diagnosis-helper-copy {
  font-weight: 600;
}

.diagnosis-result-card .risk-overlap-block,
.diagnosis-result-card .alternative-rationale,
.diagnosis-result-card .benchmark-line,
.diagnosis-result-card .interpretation-strip,
.diagnosis-result-card .result-grid,
.diagnosis-result-card .chip-row {
  margin-top: 12px;
}

.diagnosis-result-card .result-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.app-grid-wide {
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(0, 0.74fr) minmax(0, 1.1fr);
  gap: 18px;
}

.panel-stack,
.form-stack,
.stat-list,
.progress-list,
.history-grid,
.compare-card-grid,
.comparison-grid,
.mini-board {
  display: grid;
  gap: 14px;
}

.form-panel,
.stack-panel,
.compare-card,
.stat-card,
.progress-card {
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(73, 37, 26, 0.09);
  background: rgba(255, 255, 255, 0.96);
}

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

.field textarea {
  min-height: 120px;
  padding: 14px;
  color: var(--ink);
  border: 1px solid rgba(73, 37, 26, 0.11);
  border-radius: 14px;
  background: #fff;
  font: inherit;
  resize: vertical;
}

.field textarea::placeholder {
  color: rgba(116, 104, 98, 0.72);
}

.full-span {
  grid-column: 1 / -1;
}

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

.review-entry,
.mini-compare-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(73, 37, 26, 0.09);
  background: rgba(255, 255, 255, 0.96);
}

.review-entry strong,
.mini-compare-card strong,
.stat-card strong,
.progress-card strong {
  display: block;
  font-size: 17px;
}

.review-entry p,
.mini-compare-card p,
.stat-card p,
.progress-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.inline-chart-card {
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(73, 37, 26, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(250, 245, 240, 0.96)),
    rgba(255, 255, 255, 0.96);
}

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

.district-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 20px;
  align-items: start;
}

body[data-page="districts"] .district-layout {
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
}

body[data-page="districts"] .district-layout > .panel-stack {
  display: contents;
}

body[data-page="districts"] .selected-district-card {
  grid-column: 2;
}

body[data-page="districts"] .district-drilldown-card,
body[data-page="districts"] .district-decision-support-grid,
body[data-page="districts"] .evidence-pair,
body[data-page="districts"] .district-trend-grid {
  grid-column: 1 / -1;
}

.district-drilldown-card {
  display: grid;
  gap: 0;
  border-color: rgba(155, 51, 46, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(252, 244, 237, 0.94)),
    var(--card-bg);
}

.district-drilldown-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

body[data-page="districts"] .district-drilldown-grid {
  grid-template-columns: minmax(0, 1fr);
}

.district-drilldown-grid > .risk-overlap-block {
  grid-column: auto;
  margin-top: 0;
}

.district-drilldown-grid > .district-factor-list {
  grid-column: auto;
  grid-row: auto;
}

.district-factor-list {
  display: grid;
  gap: 9px;
}

.district-factor-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 13px 15px;
}

.district-factor-list article.is-primary {
  border-color: rgba(155, 51, 46, 0.22);
  background: rgba(255, 248, 244, 0.92);
}

.district-factor-axis {
  display: block;
  color: var(--text-label);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.district-factor-list strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.45;
}

.district-factor-meta {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-top: 9px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(73, 37, 26, 0.11);
  background: rgba(255, 252, 248, 0.78);
  color: rgba(75, 48, 39, 0.68);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.district-factor-list em {
  color: var(--accent-deep);
  font-style: normal;
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.detail-grid,
.evidence-pair {
  display: grid;
  gap: 18px;
}

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

.evidence-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

body[data-page="districts"] .district-decision-support-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

body[data-page="districts"] .evidence-pair {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 18px;
}

body[data-page="districts"] .district-trend-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.district-list-panel {
  max-height: 336px;
  overflow-y: auto;
  padding-right: 4px;
}

.district-select-button {
  width: 100%;
  padding: 14px 16px;
  text-align: left;
  border: 1px solid rgba(73, 37, 26, 0.09);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  color: inherit;
  cursor: pointer;
  transition: 150ms ease;
}

.district-select-button:hover,
.district-select-button.is-active {
  border-color: rgba(223, 90, 58, 0.22);
  background: var(--accent-quiet);
}

.district-select-button strong,
.district-select-button span {
  display: block;
}

.district-select-button span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.headline-score {
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  min-width: 164px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(196, 63, 39, 0.12);
  background: rgba(255, 249, 246, 0.98);
}

.headline-score strong {
  font-size: 28px;
  letter-spacing: 0;
}

body[data-page="districts"],
body[data-page="districts"] * {
  font-family:
    "Wanted Sans Variable",
    "Wanted Sans",
    "Pretendard",
    -apple-system,
    BlinkMacSystemFont,
    system-ui,
    sans-serif;
}

body[data-page="districts"] {
  font-weight: 400;
  letter-spacing: 0;
}

body[data-page="districts"] svg text {
  font-family:
    "Wanted Sans Variable",
    "Wanted Sans",
    "Pretendard",
    -apple-system,
    BlinkMacSystemFont,
    system-ui,
    sans-serif;
}

body[data-page="districts"] .section-head {
  margin-bottom: 15px;
}

body[data-page="districts"] .section-head h2 {
  max-width: none;
  font-size: clamp(21px, 1.7vw, 25px);
  font-weight: 800;
  line-height: 1.26;
  letter-spacing: 0;
}

.district-selector-card {
  align-self: start;
  padding: 20px;
}

.district-selector-card .field {
  margin-bottom: 12px;
}

.district-selector-card .section-head {
  margin-bottom: 13px;
}

body[data-page="districts"] .district-select-button {
  padding: 12px 14px;
  border-color: rgba(73, 37, 26, 0.11);
  border-radius: 15px;
  background: rgba(255, 253, 249, 0.92);
  box-shadow: 0 8px 16px rgba(73, 37, 26, 0.035);
}

body[data-page="districts"] .district-select-button strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 820;
  line-height: 1.25;
}

body[data-page="districts"] .district-select-button span {
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.32;
}

body[data-page="districts"] .district-select-button.is-active {
  border-color: rgba(155, 51, 46, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 249, 245, 0.98), rgba(255, 241, 234, 0.88)),
    var(--accent-quiet);
  box-shadow:
    inset 3px 0 0 rgba(196, 63, 39, 0.68),
    0 12px 22px rgba(155, 51, 46, 0.09);
}

.selected-district-card {
  display: grid;
  gap: 16px;
  border-color: rgba(155, 51, 46, 0.18);
  background:
    radial-gradient(circle at top right, rgba(196, 63, 39, 0.075), transparent 28%),
    linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(252, 244, 237, 0.94)),
    var(--card-bg);
}

.selected-district-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.selected-district-hero h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(33px, 3vw, 44px);
  font-weight: 860;
  line-height: 1.08;
  letter-spacing: 0;
}

.selected-badge-row,
.district-risk-chip-list,
.district-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.selected-badge-row {
  margin-top: 12px;
}

.risk-level-badge,
.district-type-badge,
.district-risk-chip-list span,
.district-pill-list span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(73, 37, 26, 0.13);
  background: rgba(255, 253, 249, 0.88);
  color: rgba(54, 38, 32, 0.76);
  font-size: 12.5px;
  font-weight: 760;
  line-height: 1.25;
  white-space: nowrap;
}

.risk-level-badge {
  border-color: rgba(155, 51, 46, 0.24);
  background: rgba(196, 63, 39, 0.1);
  color: var(--accent-deep);
}

.risk-level-badge.tone-mid {
  border-color: rgba(201, 161, 90, 0.28);
  background: rgba(201, 161, 90, 0.12);
  color: #8e6424;
}

.risk-level-badge.tone-low {
  border-color: rgba(106, 167, 159, 0.24);
  background: rgba(106, 167, 159, 0.12);
  color: #356c65;
}

.district-type-badge {
  border-color: rgba(73, 37, 26, 0.14);
  background: rgba(255, 252, 248, 0.72);
  color: var(--text-muted);
}

.selected-district-card .headline-score {
  align-items: flex-end;
  min-width: 150px;
  padding: 15px 16px;
  border-color: rgba(155, 51, 46, 0.22);
  background: rgba(255, 247, 242, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.selected-district-card .headline-score strong {
  color: var(--accent-deep);
  font-size: clamp(34px, 3.2vw, 44px);
  font-weight: 850;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.district-decision-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(190px, 0.72fr) minmax(190px, 0.72fr);
  gap: 12px;
}

.district-decision-block {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(73, 37, 26, 0.12);
  border-radius: 17px;
  background: rgba(255, 253, 249, 0.82);
  box-shadow: 0 10px 20px rgba(73, 37, 26, 0.035);
}

.district-judgment-block {
  border-color: rgba(155, 51, 46, 0.18);
  background: rgba(255, 248, 244, 0.9);
}

.district-judgment-block p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(17px, 1.35vw, 20px);
  font-weight: 780;
  line-height: 1.55;
}

.district-risk-chip-list span {
  border-color: rgba(155, 51, 46, 0.2);
  background: rgba(196, 63, 39, 0.08);
  color: var(--accent-deep);
}

.district-pill-list span {
  border-color: rgba(106, 167, 159, 0.22);
  background: rgba(106, 167, 159, 0.09);
  color: #356c65;
}

.district-pill-list span.is-muted {
  border-color: rgba(73, 37, 26, 0.12);
  background: rgba(255, 252, 248, 0.72);
  color: var(--text-label);
}

.selected-district-card .district-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.selected-district-card .stat-card {
  padding: 12px 13px;
  border-radius: 16px;
  background: rgba(255, 253, 249, 0.8);
}

.selected-district-card .stat-card strong {
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.32;
}

.district-drilldown-card .district-drilldown-lead {
  display: grid;
  gap: 12px;
  padding: 22px;
  border-color: rgba(155, 51, 46, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 252, 248, 0.98), rgba(255, 247, 242, 0.9)),
    var(--card-bg-risk);
}

.district-drilldown-card .district-drilldown-lead strong {
  max-width: 68ch;
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.34;
}

.district-drilldown-card .district-drilldown-lead p {
  max-width: 74ch;
  font-size: 15px;
  line-height: 1.68;
}

.district-drilldown-card .benchmark-line,
.district-drilldown-card .interpretation-strip {
  margin-top: 2px;
}

.district-drilldown-card .interpretation-note {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin: 2px 0 0;
  padding: 6px 10px;
  border: 1px solid rgba(73, 37, 26, 0.12);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.8);
  color: rgba(75, 48, 39, 0.66);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.district-drilldown-grid > .risk-overlap-block {
  margin-top: 0;
}

body[data-page="districts"] .district-drilldown-card .risk-overlap-block {
  padding: 16px 18px;
  border-color: rgba(73, 37, 26, 0.13);
  background: rgba(255, 253, 249, 0.82);
}

body[data-page="districts"] .district-drilldown-card .district-factor-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.district-factor-list article {
  min-height: 74px;
}

body[data-page="districts"] .district-drilldown-card .district-factor-list article {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  min-height: 100%;
  padding: 16px;
}

body[data-page="districts"] .district-drilldown-card .district-factor-list em {
  justify-self: start;
}

body[data-page="districts"] .district-risk-breakdown-card {
  padding: 19px 20px;
  border-color: rgba(73, 37, 26, 0.13);
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.94), rgba(250, 244, 238, 0.86)),
    var(--card-bg-muted);
  box-shadow: var(--shadow-card);
}

body[data-page="districts"] .district-risk-breakdown-card .section-head {
  margin-bottom: 14px;
}

body[data-page="districts"] .district-risk-breakdown-card .matrix-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

body[data-page="districts"] .district-risk-breakdown-card .metric-row {
  padding: 13px 14px;
  border: 1px solid rgba(73, 37, 26, 0.1);
  border-radius: 15px;
  background: rgba(255, 253, 249, 0.78);
}

body[data-page="districts"] .district-field-direction-card {
  position: relative;
  overflow: hidden;
  padding: clamp(21px, 2.4vw, 28px);
  border-color: rgba(155, 51, 46, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 249, 245, 0.98), rgba(255, 242, 235, 0.9)),
    var(--card-bg-risk);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 18px 36px rgba(155, 51, 46, 0.09);
}

body[data-page="districts"] .district-field-direction-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--gold));
}

body[data-page="districts"] .district-field-direction-card .section-head {
  margin-bottom: 17px;
}

body[data-page="districts"] .district-field-direction-card .section-label {
  margin-bottom: 7px;
}

body[data-page="districts"] .district-field-direction-card .section-head h2 {
  color: var(--accent-deep);
  font-size: clamp(25px, 2.25vw, 33px);
  font-weight: 880;
  line-height: 1.18;
}

body[data-page="districts"] .district-field-direction-card #detail-checks {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body[data-page="districts"] .district-field-direction-card #detail-checks article {
  min-height: 100%;
  padding: 16px 17px;
  border-color: rgba(155, 51, 46, 0.16);
  background: rgba(255, 253, 249, 0.88);
}

body[data-page="districts"] .district-field-direction-card #detail-checks article strong {
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-page="districts"] .district-field-direction-card #detail-checks article p {
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 650;
  line-height: 1.62;
}

.district-objections-card {
  align-self: start;
  border-color: rgba(155, 51, 46, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.96), rgba(255, 247, 242, 0.88)),
    var(--card-bg);
}

.district-objections-card .section-head {
  margin-bottom: 12px;
}

.district-objections-card #detail-objections {
  gap: 8px;
}

.district-objections-card .objection-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 14px;
  border-color: rgba(155, 51, 46, 0.14);
  background: rgba(255, 249, 245, 0.82);
}

.district-objections-card .objection-row strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  min-height: 24px;
  border-radius: 999px;
  background: rgba(196, 63, 39, 0.11);
  color: var(--accent-deep);
  font-size: 11.5px;
  font-weight: 850;
  line-height: 1;
}

.district-objections-card .objection-row p {
  margin: 1px 0 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.58;
}

.district-replacement-card {
  align-self: start;
  border-color: rgba(106, 167, 159, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.96), rgba(247, 252, 250, 0.88)),
    var(--card-bg);
}

.district-replacement-card .section-head {
  margin-bottom: 12px;
}

.district-replacement-card #replacement-candidates {
  gap: 9px;
}

.district-replacement-card #replacement-candidates > article {
  padding: 14px 15px;
  border-radius: 14px;
}

.district-replacement-card #replacement-candidates > article strong {
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 830;
  line-height: 1.32;
}

.district-replacement-card #replacement-candidates > article p {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 540;
  line-height: 1.6;
}

.replacement-summary-strip {
  padding: 12px 13px;
  border: 1px solid rgba(106, 167, 159, 0.18);
  border-radius: 14px;
  background: rgba(248, 253, 251, 0.76);
}

.replacement-summary-strip .result-label {
  margin-bottom: 6px;
  color: #356c65;
}

.replacement-summary-strip p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.52;
}

body[data-page="districts"] .district-trend-card {
  min-width: 0;
  border-color: rgba(73, 37, 26, 0.15);
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.97), rgba(252, 244, 237, 0.92)),
    var(--card-bg);
}

body[data-page="districts"] .district-trend-card .section-head {
  margin-bottom: 14px;
}

body[data-page="districts"] .district-trend-card .inline-chart-card {
  min-width: 0;
  padding: 18px;
}

body[data-page="districts"] .district-trend-card svg {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

@media (max-width: 980px) {
  body[data-page="districts"] .district-layout,
  body[data-page="districts"] .district-decision-support-grid,
  body[data-page="districts"] .evidence-pair,
  body[data-page="districts"] .district-trend-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="districts"] .selected-district-card,
  body[data-page="districts"] .district-drilldown-card,
  body[data-page="districts"] .district-decision-support-grid,
  body[data-page="districts"] .evidence-pair,
  body[data-page="districts"] .district-trend-grid {
    grid-column: auto;
  }

  .district-decision-grid,
  .district-drilldown-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="districts"] .district-drilldown-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="districts"] .district-drilldown-card .district-factor-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="districts"] .district-field-direction-card #detail-checks {
    grid-template-columns: 1fr;
  }

  .district-drilldown-grid > .risk-overlap-block {
    grid-column: auto;
  }

  .district-judgment-block {
    grid-row: auto;
  }

  .selected-district-card .district-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .district-list-panel {
    max-height: 320px;
  }
}

@media (max-width: 767px) {
  body[data-page="districts"] .district-drilldown-card .district-factor-list,
  body[data-page="districts"] .district-risk-breakdown-card .matrix-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="districts"] .district-field-direction-card {
    padding: 21px 18px;
  }

  .selected-district-hero,
  .selected-district-card .headline-score {
    align-items: flex-start;
  }

  .selected-district-hero {
    flex-direction: column;
  }

  .selected-district-card .headline-score {
    width: 100%;
  }

  .selected-district-card .district-stat-grid {
    grid-template-columns: 1fr;
  }

  .district-list-panel {
    max-height: 280px;
  }

  .district-factor-list article {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .district-factor-list em {
    justify-self: start;
  }
}

.matrix-grid {
  display: grid;
  gap: 12px;
}

.metric-row {
  display: grid;
  gap: 8px;
}

.metric-row header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.metric-row header span:last-child {
  color: var(--ink);
  font-weight: 700;
}

.metric-row .progress-track span {
  background: linear-gradient(90deg, var(--teal), var(--accent));
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 12px 0;
  border-bottom: 1px solid rgba(73, 37, 26, 0.09);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.data-table td {
  color: var(--ink);
  font-size: 14px;
}

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

.stacked-list article {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(73, 37, 26, 0.09);
  background: rgba(255, 255, 255, 0.96);
}

.stacked-list article strong {
  display: block;
  font-size: 16px;
}

.stacked-list article p {
  margin: 8px 0 0;
  color: var(--muted);
}

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

body[data-page="compare"],
body[data-page="compare"] * {
  font-family: var(--font-sans);
}

body[data-page="compare"] {
  color: var(--text-main);
  font-weight: 400;
  letter-spacing: 0;
  overflow-x: hidden;
}

body[data-page="compare"] .page-stack {
  gap: 20px;
}

body[data-page="compare"] .panel {
  border-color: var(--line-card);
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.97), rgba(252, 244, 237, 0.93)),
    var(--card-bg);
  box-shadow: var(--shadow-card);
}

body[data-page="compare"] .section-head h2 {
  max-width: none;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 0;
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: balance;
}

body[data-page="compare"] .compare-heading-phrase {
  white-space: nowrap;
}

@media (min-width: 768px) {
  body[data-page="compare"] .section-head h2.compare-section-title-keep {
    white-space: nowrap;
  }
}

body[data-page="compare"] .section-label,
body[data-page="compare"] .card-label,
body[data-page="compare"] .result-label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.compare-card {
  display: grid;
  gap: 13px;
  position: relative;
  overflow: hidden;
  min-height: 100%;
  padding: 18px;
}

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

.candidate-title {
  flex-direction: column;
  gap: 3px;
}

.candidate-title strong {
  display: block;
  color: var(--ink);
  font-size: 21px;
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: 0;
}

.candidate-title p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 650;
}

.compare-card .benchmark-line {
  margin-top: 0;
}

.compare-card .chip-row {
  margin-top: 0;
}

.compare-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--gold));
}

.risk-signal-board {
  display: grid;
  gap: 9px;
}

.risk-signal-grid {
  display: grid;
  gap: 8px;
}

.risk-signal-card {
  display: grid;
  grid-template-columns: minmax(78px, 0.7fr) auto minmax(110px, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid rgba(73, 37, 26, 0.1);
  border-radius: 14px;
  background: rgba(255, 253, 249, 0.86);
}

.risk-signal-card.tone-high {
  border-color: rgba(155, 51, 46, 0.2);
  background: rgba(255, 246, 241, 0.94);
}

.risk-signal-card span,
.risk-delta-card span,
.decision-memo-row span {
  color: var(--text-label);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.risk-signal-card strong {
  color: var(--accent-deep);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.risk-signal-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  text-align: right;
}

.decision-cue {
  padding: 12px 13px;
  border: 1px solid rgba(155, 51, 46, 0.14);
  border-radius: 15px;
  background: rgba(255, 248, 244, 0.72);
}

.decision-cue span {
  display: block;
  color: var(--accent-deep);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.decision-cue p {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
}

.comparison-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

#compare-metrics {
  gap: 12px;
}

.metric-compare-card {
  display: grid;
  gap: 10px;
  padding: 17px;
  border: 1px solid rgba(73, 37, 26, 0.11);
  border-radius: 18px;
  background: rgba(255, 253, 249, 0.9);
  box-shadow: 0 10px 22px rgba(73, 37, 26, 0.04);
}

.metric-compare-card strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.3;
}

.metric-scoreline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.metric-scoreline span {
  color: var(--accent-deep);
  font-size: 30px;
  font-weight: 850;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.metric-scoreline em {
  color: var(--text-label);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.metric-compare-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14.5px;
  font-weight: 550;
  line-height: 1.58;
}

.metric-mini-bars {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.metric-mini-row {
  display: grid;
  grid-template-columns: minmax(94px, 1fr) auto;
  gap: 8px 10px;
  align-items: center;
}

.metric-mini-row span,
.metric-mini-row strong {
  font-size: 12.5px;
  font-weight: 750;
}

.metric-mini-row span {
  color: var(--text-muted);
}

.metric-mini-row strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.metric-mini-row .progress-track {
  grid-column: 1 / -1;
  height: 7px;
}

.compare-memo-card {
  border-color: rgba(155, 51, 46, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 251, 247, 0.98), rgba(252, 242, 235, 0.93)),
    var(--card-bg-muted);
}

.alternative-board {
  display: grid;
  gap: 14px;
  height: 100%;
  padding: 17px;
  border: 1px solid rgba(155, 51, 46, 0.16);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.96), rgba(255, 247, 242, 0.9)),
    var(--card-bg);
  box-shadow: 0 10px 22px rgba(73, 37, 26, 0.04);
}

.alternative-hero {
  display: grid;
  gap: 5px;
}

.alternative-hero strong {
  color: var(--ink);
  font-size: 22px;
  font-weight: 850;
  line-height: 1.25;
}

.alternative-hero p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14.5px;
  font-weight: 650;
}

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

.risk-delta-card {
  padding: 12px;
  border: 1px solid rgba(73, 37, 26, 0.1);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.72);
}

.risk-delta-card strong {
  display: block;
  margin-top: 7px;
  color: var(--accent-deep);
  font-size: 20px;
  font-weight: 850;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.risk-delta-card p {
  margin: 7px 0 0;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
}

.alternative-support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.alternative-support-grid section {
  padding: 13px;
  border: 1px solid rgba(73, 37, 26, 0.1);
  border-radius: 16px;
  background: rgba(255, 253, 249, 0.74);
}

.compact-checklist {
  display: grid;
  gap: 7px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.compact-checklist li {
  position: relative;
  padding-left: 13px;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.42;
}

.compact-checklist li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
}

.decision-memo-board {
  display: grid;
  gap: 10px;
}

.decision-memo-row {
  display: grid;
  grid-template-columns: minmax(96px, 0.34fr) minmax(180px, 0.8fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 15px 16px;
  border: 1px solid rgba(73, 37, 26, 0.12);
  border-radius: 17px;
  background: rgba(255, 253, 249, 0.82);
}

.decision-memo-row.is-primary {
  border-color: rgba(155, 51, 46, 0.22);
  background: rgba(255, 247, 242, 0.9);
}

.decision-memo-row strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 850;
  line-height: 1.34;
}

.decision-memo-row p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 550;
  line-height: 1.58;
}

.compare-decision-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.8fr) minmax(0, 0.8fr);
  gap: 14px;
}

.compare-decision-summary {
  border-color: rgba(155, 51, 46, 0.22);
  background:
    radial-gradient(circle at top right, rgba(196, 63, 39, 0.1), transparent 30%),
    rgba(255, 253, 249, 0.95);
}

.compare-decision-grid strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.42;
}

.compare-decision-grid p {
  margin-top: 10px;
}

.progress-row {
  display: grid;
  gap: 8px;
}

.progress-row header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--accent));
}

.selected-card {
  border-color: rgba(255, 92, 57, 0.24);
  background:
    radial-gradient(circle at top right, rgba(255, 92, 57, 0.12), transparent 28%),
    rgba(255, 255, 255, 0.04);
}

.compact-note {
  color: var(--muted);
  font-size: 13px;
}

body[data-page="review"] {
  color: var(--text-main);
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: 0;
  overflow-x: hidden;
}

body[data-page="review"] .page-stack {
  gap: 20px;
}

body[data-page="review"] .panel {
  border-color: var(--line-card);
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.97), rgba(252, 244, 237, 0.93)),
    var(--card-bg);
  box-shadow: var(--shadow-card);
}

.review-subhero,
.service-subhero {
  padding: 19px 24px;
}

.review-subhero .subhero-copy,
.service-subhero .subhero-copy {
  align-items: center;
  gap: clamp(22px, 4vw, 64px);
}

.review-subhero .subhero-copy > div:first-child,
.service-subhero .subhero-copy > div:first-child {
  display: grid;
  gap: 8px;
}

.review-subhero h2,
.service-subhero h2 {
  max-width: none;
  text-wrap: balance;
}

.review-subhero .subhero-copy p:not(.section-label):not(.compact-note),
.service-subhero .subhero-copy p:not(.section-label):not(.compact-note) {
  margin: 0;
  max-width: 50ch;
  color: var(--text-muted);
  font-size: 15.5px;
  font-weight: 450;
  line-height: 1.62;
}

body[data-page="districts"] .service-subhero .subhero-copy {
  align-items: center;
  gap: clamp(24px, 3vw, 42px);
}

body[data-page="districts"] .service-subhero .subhero-copy > div:first-child {
  min-width: 0;
  max-width: 920px;
}

body[data-page="districts"] .service-subhero .subhero-copy p:not(.section-label):not(.compact-note) {
  max-width: min(920px, 100%);
}

.district-context-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.district-context-chip-row span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  max-width: 100%;
  padding: 10px 18px;
  border: 1px solid rgba(155, 51, 46, 0.18);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.92), rgba(255, 247, 242, 0.82)),
    rgba(255, 250, 246, 0.88);
  color: rgba(122, 51, 40, 0.92);
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: 0;
  white-space: normal;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 8px 18px rgba(73, 37, 26, 0.045);
}

@media (min-width: 1180px) {
  body[data-page="districts"] .service-subhero .subhero-copy p:not(.section-label):not(.compact-note) {
    white-space: nowrap;
  }
}

@media (min-width: 1180px) {
  .review-subhero h2 {
    white-space: nowrap;
  }
}

.review-status-card,
.service-status-card {
  display: grid;
  align-self: center;
  justify-self: end;
  width: min(184px, 100%);
  min-width: 176px;
  padding: 12px 15px;
  border-color: rgba(155, 51, 46, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 248, 244, 1), rgba(255, 240, 234, 0.94)),
    var(--card-bg-risk);
  box-shadow: 0 14px 28px rgba(73, 37, 26, 0.07);
}

.review-status-card strong,
.service-status-card strong {
  margin-top: 3px;
  color: var(--accent-deep);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.review-status-card .compact-note,
.service-status-card .compact-note {
  margin: 5px 0 0;
  color: rgba(75, 48, 39, 0.7);
  font-size: 12.5px;
  line-height: 1.35;
}

.review-workspace {
  grid-template-columns: minmax(0, 1.32fr) minmax(420px, 1fr);
  gap: 22px;
  align-items: start;
}

.review-input-panel {
  padding: 26px;
  border-color: rgba(73, 37, 26, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.99), rgba(252, 243, 236, 0.95)),
    var(--card-bg-strong);
}

.review-input-panel .section-head {
  margin-bottom: 18px;
}

.review-input-panel .section-head h2,
.review-context-card .section-head h2,
.review-output-card .section-head h2,
.review-history-panel .section-head h2 {
  font-family: var(--font-display);
  font-weight: 750;
  letter-spacing: 0;
}

.review-input-panel .section-head h2,
.review-history-panel .section-head h2 {
  font-size: clamp(23px, 1.8vw, 28px);
  line-height: 1.28;
}

.review-context-card .section-head h2 {
  font-size: clamp(27px, 2.2vw, 34px);
  line-height: 1.16;
}

.review-output-card .section-head h2 {
  max-width: 42ch;
  font-size: clamp(24px, 2vw, 31px);
  line-height: 1.24;
}

.review-input-panel .section-copy,
.review-history-panel .section-copy {
  margin-top: 8px;
  max-width: 48ch;
  color: var(--text-muted);
  font-size: 14.5px;
  font-weight: 450;
  line-height: 1.7;
}

.review-input-panel .form-stack {
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 0;
}

.review-form-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(73, 37, 26, 0.095);
  border-radius: 18px;
  background: rgba(255, 251, 247, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.review-form-group-required {
  border-color: rgba(155, 51, 46, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 250, 246, 0.96), rgba(255, 244, 239, 0.84)),
    var(--card-bg-risk);
}

.review-form-group-optional {
  border-color: rgba(73, 37, 26, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.78), rgba(250, 244, 239, 0.58)),
    var(--card-bg-muted);
}

.review-form-group legend {
  padding: 0 8px;
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.review-form-group-compact {
  grid-template-columns: minmax(220px, 0.5fr);
}

.review-form-group-memo {
  grid-template-columns: 1fr;
}

body[data-page="review"] .field {
  gap: 9px;
}

.review-example-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(155, 51, 46, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.96), rgba(252, 244, 237, 0.86)),
    var(--card-bg);
}

.review-example-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 14px;
  align-items: end;
}

.review-example-head strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  font-weight: 850;
  letter-spacing: 0;
}

.review-example-head p {
  margin: 0;
  color: rgba(54, 38, 32, 0.72);
  font-size: 14px;
  line-height: 1.65;
}

.review-example-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.review-example-button {
  appearance: none;
  display: grid;
  gap: 6px;
  min-height: 116px;
  padding: 15px;
  border: 1px solid rgba(73, 37, 26, 0.14);
  border-radius: 16px;
  background: rgba(255, 250, 246, 0.94);
  color: inherit;
  font-family: var(--font-sans);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(73, 37, 26, 0.04);
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.review-example-button:hover,
.review-example-button:focus-visible {
  border-color: rgba(155, 51, 46, 0.38);
  transform: translateY(-1px);
  box-shadow: 0 15px 28px rgba(73, 37, 26, 0.08);
}

.review-example-button span {
  width: fit-content;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(196, 63, 39, 0.08);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 850;
}

.review-example-button strong {
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0;
}

.review-example-button small {
  color: rgba(54, 38, 32, 0.72);
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.45;
}

body[data-page="review"] .field span {
  color: rgba(54, 38, 32, 0.86);
  font-size: 13px;
  font-weight: 700;
}

body[data-page="review"] .field input,
body[data-page="review"] .field select,
body[data-page="review"] .field textarea {
  border-color: rgba(73, 37, 26, 0.17);
  background: rgba(255, 253, 249, 0.98);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 450;
  letter-spacing: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    background-color 150ms ease;
}

body[data-page="review"] .field input,
body[data-page="review"] .field select {
  height: 50px;
}

body[data-page="review"] .field textarea {
  min-height: 136px;
  line-height: 1.65;
}

body[data-page="review"] .field input::placeholder,
body[data-page="review"] .field textarea::placeholder {
  color: rgba(102, 88, 82, 0.66);
}

body[data-page="review"] .field input:focus,
body[data-page="review"] .field select:focus,
body[data-page="review"] .field textarea:focus {
  outline: 0;
  border-color: rgba(155, 51, 46, 0.52);
  background: #fffdf9;
  box-shadow:
    0 0 0 3px rgba(196, 63, 39, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

body[data-page="review"] .button-wide {
  min-height: 52px;
  font-size: 15.5px;
  font-weight: 750;
  background: linear-gradient(135deg, #96301f, #c94831);
  border-color: rgba(122, 41, 28, 0.48);
  box-shadow: 0 17px 30px rgba(155, 51, 46, 0.22);
}

body[data-page="review"] .button-wide:hover {
  background: linear-gradient(135deg, #8e291b, #bd3f2b);
  box-shadow: 0 21px 36px rgba(155, 51, 46, 0.27);
}

.review-context-card,
.review-output-card {
  padding: 26px;
}

.review-context-card {
  display: grid;
  align-content: start;
  min-height: 610px;
  border-color: rgba(155, 51, 46, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 251, 247, 0.98), rgba(252, 241, 234, 0.94)),
    var(--card-bg);
}

.review-context-card .section-head,
.review-output-card .section-head {
  margin-bottom: 18px;
}

.review-chart-card {
  margin-top: 0;
  padding: 18px;
  border-color: rgba(155, 51, 46, 0.16);
  background:
    linear-gradient(rgba(155, 51, 46, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 51, 46, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 250, 246, 0.98), rgba(252, 242, 235, 0.94)),
    var(--card-bg-muted);
  background-size: 42px 42px, 42px 42px, auto, auto;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.76),
    0 10px 22px rgba(73, 37, 26, 0.045);
}

.review-chart-card svg {
  min-height: 190px;
}

.chart-empty-title {
  fill: rgba(54, 38, 32, 0.86);
  font-size: 15px;
  font-weight: 800;
}

.chart-empty-copy {
  fill: rgba(75, 48, 39, 0.66);
  font-size: 12px;
  font-weight: 650;
}

.chart-empty-grid line {
  stroke: rgba(155, 51, 46, 0.08);
  stroke-width: 1;
}

.chart-empty-area {
  fill: rgba(196, 63, 39, 0.07);
}

.chart-empty-line {
  fill: none;
  stroke: rgba(196, 63, 39, 0.32);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 5 7;
}

.chart-empty-dot {
  fill: rgba(196, 63, 39, 0.36);
}

.review-spotlight-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

body[data-page="review"] .stat-card {
  border-color: rgba(73, 37, 26, 0.14);
  background: rgba(255, 253, 249, 0.94);
  box-shadow: 0 10px 22px rgba(73, 37, 26, 0.04);
}

body[data-page="review"] .stat-card strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 750;
}

.review-context-empty {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  padding: 17px;
  border: 1px solid rgba(155, 51, 46, 0.16);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.94), rgba(252, 244, 237, 0.84)),
    var(--card-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.review-context-status {
  width: fit-content;
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(155, 51, 46, 0.18);
  border-radius: 999px;
  background: rgba(196, 63, 39, 0.08);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.review-context-empty strong {
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.55;
}

.review-context-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
}

.review-context-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(155, 51, 46, 0.18);
  border-radius: 999px;
  background: rgba(255, 248, 244, 0.9);
  color: var(--accent-deep);
  font-size: 12.5px;
  font-weight: 700;
}

.review-output-card {
  border-color: rgba(155, 51, 46, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 248, 244, 0.98), rgba(255, 242, 235, 0.93)),
    var(--card-bg-risk);
}

.review-output-preview {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(155, 51, 46, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.88), rgba(255, 248, 244, 0.72)),
    var(--card-bg);
}

.review-output-preview p {
  margin: 0;
  color: rgba(54, 38, 32, 0.72);
  font-size: 14.5px;
  font-weight: 450;
  line-height: 1.72;
}

.review-memo-outline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.review-memo-outline article {
  min-height: 118px;
  padding: 15px;
  border: 1px solid rgba(73, 37, 26, 0.13);
  border-radius: 16px;
  background: rgba(255, 253, 249, 0.88);
  box-shadow: 0 10px 22px rgba(73, 37, 26, 0.04);
}

.review-memo-outline span {
  display: block;
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.review-memo-outline p {
  margin-top: 9px;
}

.review-result-memo {
  margin-top: 0;
  border-color: rgba(155, 51, 46, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 1), rgba(252, 244, 237, 0.95)),
    var(--card-bg-strong);
  box-shadow: 0 14px 28px rgba(73, 37, 26, 0.06);
}

.review-result-scoreline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.review-result-scoreline strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.35;
}

.review-result-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.review-result-sections section {
  padding: 14px 15px;
  border: 1px solid rgba(73, 37, 26, 0.12);
  border-radius: 16px;
  background: rgba(255, 250, 246, 0.76);
}

.review-result-sections p {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.68;
}

.review-detail-panel {
  border-color: rgba(73, 37, 26, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(252, 245, 239, 0.94)),
    var(--card-bg);
}

.review-detail-empty {
  display: grid;
  gap: 8px;
  min-height: 142px;
  align-content: center;
  padding: 20px;
  border: 1px dashed rgba(155, 51, 46, 0.24);
  border-radius: 18px;
  background: rgba(255, 250, 246, 0.72);
}

.review-detail-empty strong,
.review-detail-hero strong,
.compare-decision-summary strong,
.district-drilldown-lead strong {
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
}

.review-detail-empty p,
.review-detail-hero p,
.compare-decision-grid p,
.district-drilldown-lead p,
.district-factor-list p,
.review-detail-candidates p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.68;
}

.district-drilldown-lead .benchmark-line strong,
.compare-decision-grid .benchmark-line strong,
.mini-compare-card .benchmark-line strong,
.compare-card .benchmark-line strong,
.result-card .benchmark-line strong {
  color: var(--accent-deep);
  font-size: 13.5px;
  font-weight: 800;
}

.district-drilldown-lead .benchmark-line span,
.compare-decision-grid .benchmark-line span,
.mini-compare-card .benchmark-line span,
.compare-card .benchmark-line span,
.result-card .benchmark-line span {
  font-size: 12.5px;
  font-weight: 650;
}

.review-detail-grid,
.review-detail-sections {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 14px;
}

.review-detail-hero,
.review-detail-chart-card,
.review-detail-sections section,
.compare-decision-grid > article,
.district-drilldown-lead,
.district-factor-list article {
  border: 1px solid rgba(73, 37, 26, 0.13);
  border-radius: 18px;
  background: rgba(255, 253, 249, 0.9);
  box-shadow: 0 10px 22px rgba(73, 37, 26, 0.04);
}

.review-detail-hero,
.review-detail-chart-card,
.review-detail-sections section,
.compare-decision-grid > article,
.district-drilldown-lead {
  padding: 18px;
}

.review-detail-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.review-detail-kpis div {
  padding: 12px;
  border: 1px solid rgba(155, 51, 46, 0.14);
  border-radius: 14px;
  background: rgba(255, 248, 244, 0.86);
}

.review-detail-kpis span {
  display: block;
  color: var(--text-label);
  font-size: 12px;
  font-weight: 700;
}

.review-detail-kpis strong {
  display: block;
  margin-top: 6px;
  color: var(--accent-deep);
  font-size: 17px;
  font-weight: 800;
}

.review-detail-sections {
  grid-template-columns: 0.85fr 1fr 1fr;
  margin-top: 14px;
}

.review-detail-factor + .review-detail-factor {
  margin-top: 12px;
}

.review-detail-factor header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}

.review-detail-factor header strong,
.review-detail-factor header span {
  font-size: 13.5px;
  font-weight: 800;
}

.review-detail-candidates {
  display: grid;
  gap: 9px;
  margin-top: 10px;
}

.review-detail-candidates article {
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(73, 37, 26, 0.1);
  background: rgba(255, 250, 246, 0.8);
}

.review-detail-candidates strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.review-history-panel {
  padding: 24px;
}

.review-history-panel .history-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

body[data-page="review"] .review-entry {
  display: grid;
  gap: 11px;
  padding: 19px;
  border-color: rgba(73, 37, 26, 0.17);
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(252, 244, 237, 0.93)),
    var(--card-bg);
  box-shadow: 0 13px 26px rgba(73, 37, 26, 0.06);
}

.review-entry-empty {
  grid-column: 1 / -1;
  min-height: 148px;
  align-content: center;
}

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

.review-entry-time {
  color: var(--text-label);
  font-size: 12.5px;
  font-weight: 650;
  text-align: right;
}

body[data-page="review"] .review-entry strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

body[data-page="review"] .review-entry p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.68;
}

.review-entry-meta {
  color: rgba(54, 38, 32, 0.72);
}

.review-entry-risk {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(255, 246, 241, 0.92);
  border: 1px solid rgba(155, 51, 46, 0.16);
}

.review-entry-risk span {
  color: var(--accent-deep);
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.review-replay-button {
  width: fit-content;
  min-height: 38px;
  margin-top: 2px;
  padding-inline: 14px;
}

.hero-actions,
.footer-actions,
.result-meta,
.chip-row,
.memo-chips,
.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  gap: 12px;
  margin-top: 30px;
}

body[data-page="home"] .hero-actions a {
  gap: 8px;
}

body[data-page="home"] .hero-actions a::after {
  content: "→";
  opacity: 0.72;
  transition:
    transform 160ms ease,
    opacity 160ms ease;
}

body[data-page="home"] .hero-actions a:hover::after {
  opacity: 1;
  transform: translateX(2px);
}

body[data-page="home"] .hero-actions .button-primary {
  border-color: rgba(122, 41, 28, 0.48);
  background: linear-gradient(135deg, #8f2b1d, #c24630);
  color: #fffaf7;
  box-shadow:
    0 18px 32px rgba(155, 51, 46, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

body[data-page="home"] .hero-actions .button-primary:hover,
body[data-page="home"] .hero-actions .button-primary:focus-visible {
  background: linear-gradient(135deg, #8e291b, #bd3f2b);
  box-shadow:
    0 22px 38px rgba(155, 51, 46, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

body[data-page="home"] .hero-actions .homepage-action-button-outline {
  color: rgba(122, 51, 40, 0.95);
}

body[data-page="home"] .hero-actions .homepage-action-button-outline:hover,
body[data-page="home"] .hero-actions .homepage-action-button-outline:focus-visible {
  background: rgba(255, 248, 244, 1);
  border-color: rgba(155, 51, 46, 0.34);
  box-shadow: 0 14px 26px rgba(73, 37, 26, 0.09);
}

body[data-page="home"] .hero-actions .button,
body[data-page="home"] .hero-actions .homepage-action-button {
  min-height: 50px;
  padding-inline: 20px;
}

@media (max-width: 1200px) {
  .homepage-hero,
  .homepage-evidence-layout,
  .home-hero,
  .report-layout,
  .feature-layout,
  .hero-grid,
  .two-column-block,
  .tool-grid,
  .district-grid,
  .app-grid,
  .app-grid-wide,
  .compare-card-grid,
  .comparison-grid,
  .compare-decision-grid,
  .district-layout,
  .district-drilldown-grid,
  .detail-grid,
  .evidence-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .homepage-hero {
    min-height: auto;
  }

  .homepage-entry-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .scenario-case-grid,
  .review-example-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-impact-strip {
    grid-template-columns: 1fr;
  }

  .homepage-project-strip {
    grid-template-columns: 1fr;
  }

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

  .hero-grid,
  .footer-cta {
    grid-template-columns: 1fr;
    display: grid;
  }

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

@media (min-width: 1440px) {
  body[data-page="home"] .hero-title {
    max-width: 16ch;
    font-size: clamp(52px, 3.55vw, 62px);
    line-height: 1.1;
  }
}

@media (min-width: 1800px) {
  body[data-page="home"] .hero-title {
    font-size: 62px;
  }
}

@media (min-width: 768px) and (max-width: 1200px) {
  body[data-page="home"] .hero-impact-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .page-shell {
    width: min(100% - 40px, 1120px);
    padding-top: 18px;
  }

  .topbar {
    margin-bottom: 16px;
  }

  body[data-page="home"] .homepage-hero {
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: start;
    padding-top: 4px;
  }

  body[data-page="home"] .homepage-copy {
    max-width: none;
  }

  body[data-page="home"] .hero-title {
    max-width: 12.8ch;
    font-size: clamp(40px, 5vw, 51px);
    line-height: 1.13;
    letter-spacing: 0;
  }

  body[data-page="home"] .homepage-copy .hero-break {
    display: none;
  }

  body[data-page="home"] .homepage-summary {
    max-width: 100%;
    font-size: 16px;
  }

  body[data-page="home"] .homepage-screen {
    width: min(100%, 620px);
    justify-self: start;
  }

  body[data-page="home"] .homepage-hero::after {
    display: none;
  }

  body[data-page="home"] .homepage-project-strip {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body[data-page="home"] .project-identity-panel,
  body[data-page="home"] .homepage-evidence-layout {
    grid-template-columns: 1fr;
  }

  body[data-page="home"] .project-summary-role {
    border-left: 0;
    border-top: 1px solid var(--line-card);
  }

  body[data-page="home"] .homepage-entry-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="home"] .report-lines,
  body[data-page="home"] .homepage-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="home"] .homepage-section {
    padding-top: 56px;
    gap: 24px;
  }

  body[data-page="home"] .homepage-support-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .app-grid.assessment-workspace {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .page-shell {
    width: min(100% - 18px, 1380px);
    padding-top: 18px;
  }

  .rationale-grid {
    grid-template-columns: 1fr;
  }

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

  .benchmark-line span {
    text-align: left;
  }

  .interpretation-badge {
    white-space: normal;
  }

  .risk-signal-card,
  .decision-memo-row {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .risk-signal-card p {
    text-align: left;
  }

  .risk-delta-grid,
  .alternative-support-grid {
    grid-template-columns: 1fr;
  }

  .metric-scoreline {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .district-drilldown-grid > .risk-overlap-block,
  .district-drilldown-grid > .district-factor-list {
    grid-column: auto;
    grid-row: auto;
  }

  .topbar {
    position: static;
    border-radius: 28px;
    flex-direction: column;
    align-items: flex-start;
  }

  .homepage-hero,
  .homepage-entry-list,
  .scenario-case-grid,
  .homepage-evidence-layout,
  .home-stat-strip,
  .entry-grid,
  .report-layout,
  .feature-layout,
  .metric-ribbon,
  .console-stats,
  .field-group,
  .form-stack,
  .tool-grid,
  .archetype-grid,
  .evidence-grid,
  .district-grid,
  .recent-review-grid,
  .two-column-block,
  .app-grid,
  .app-grid-wide,
  .history-grid,
  .compare-selector-grid,
  .compare-card-grid,
  .comparison-grid,
  .compare-decision-grid,
  .district-layout,
  .district-drilldown-grid,
  .detail-grid,
  .evidence-pair {
    grid-template-columns: 1fr;
  }

  .app-grid.assessment-workspace,
  .assessment-insight-grid,
  .diagnosis-result-card .result-grid {
    grid-template-columns: 1fr;
  }

  .subhero h2 {
    font-size: clamp(24px, 6.2vw, 29px);
    line-height: 1.28;
  }

  .homepage-shell {
    gap: 34px;
    padding-top: 8px;
  }

  .page-shell {
    width: min(100% - 24px, 1000px);
    padding: 16px 0 48px;
  }

  .topbar {
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
  }

  .brand-logo {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .brand small {
    font-size: 9.5px;
    letter-spacing: 0.08em;
    white-space: nowrap;
  }

  .topnav {
    width: 100%;
    flex-wrap: wrap;
    overflow-x: visible;
    padding-bottom: 0;
  }

  .topnav a {
    flex: 0 0 auto;
  }

  body[data-page="home"] .homepage-hero {
    gap: 24px;
    padding: 2px 0 0;
  }

  body[data-page="home"] .hero-title {
    max-width: 10.8ch;
    font-size: clamp(32px, 8.6vw, 40px);
    line-height: 1.16;
    letter-spacing: 0;
  }

  body[data-page="home"] .hero-title-accent::after {
    bottom: 0.06em;
    height: 0.24em;
  }

  body[data-page="home"] .homepage-summary {
    font-size: 14.5px;
    line-height: 1.7;
  }

  body[data-page="home"] .hero-impact-strip {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body[data-page="home"] .hero-actions {
    margin-top: 26px;
  }

  body[data-page="home"] .hero-impact-strip {
    margin-top: 18px;
  }

  .hero-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
    margin-top: 20px;
  }

  .hero-facts div:last-child {
    grid-column: 1 / -1;
  }

  .homepage-project-strip {
    gap: 12px;
  }

  body[data-page="home"] .homepage-section {
    gap: 22px;
    padding-top: 48px;
  }

  body[data-page="home"] .project-identity-panel,
  body[data-page="home"] .homepage-entry-list,
  body[data-page="home"] .scenario-case-grid,
  body[data-page="home"] .evidence-axis-grid,
  body[data-page="home"] .validation-grid,
  body[data-page="home"] .report-lines,
  body[data-page="home"] .homepage-info-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="home"] .project-summary-card,
  body[data-page="home"] .homepage-entry-card,
  body[data-page="home"] .scenario-case-card,
  body[data-page="home"] .homepage-support-links,
  body[data-page="home"] .evidence-axis-card,
  body[data-page="home"] .homepage-info-card,
  body[data-page="home"] .validation-card,
  body[data-page="home"] .report-lines article {
    padding: 20px 18px;
  }

  body[data-page="home"] .homepage-support-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="home"] .homepage-support-card {
    min-height: auto;
  }

  body[data-page="home"] .project-summary-role {
    border-left: 0;
    border-top: 1px solid var(--line-card);
  }

  body[data-page="home"] .homepage-screen {
    width: 100%;
    max-width: none;
    padding: 10px;
    box-shadow: 0 14px 30px rgba(74, 39, 27, 0.065);
  }

  .screen-surface {
    padding: 18px;
  }

  .screen-overview,
  .homepage-entry-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .screen-score {
    justify-items: start;
  }

  body[data-page="home"] .screen-summary {
    font-size: 14px;
    line-height: 1.68;
  }

  body[data-page="home"] .screen-panel {
    padding: 15px 14px 16px;
  }

  body[data-page="home"] #hero-preview-chart {
    max-height: 156px;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button,
  .hero-actions .homepage-action-button {
    width: 100%;
  }

  .project-summary-card,
  .homepage-footnote {
    padding: 16px 18px;
  }

  body[data-page="home"] .entry-chip {
    flex-direction: column;
    gap: 4px;
  }

  body[data-page="home"] .entry-chip strong {
    min-width: 0;
  }

  body[data-page="home"] .source-note-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  body[data-page="home"] .source-note-row strong {
    text-align: left;
  }

  .panel-hero,
  .hero-console,
  .section-block,
  .footer-cta {
    padding: 20px;
  }

  .hero-copy h1,
  .homepage-copy h1,
  .home-hero-copy h1,
  .console-topline h2,
  .section-head h2,
  .footer-cta h2 {
    max-width: none;
    line-height: 1.18;
  }

  .section-head,
  .subhero-copy,
  .split-intro,
  .chart-head,
  .console-topline,
  .footer-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-hero {
    gap: 20px;
    padding-top: 6px;
  }

  .editorial-home {
    gap: 34px;
  }
}

@media (max-width: 1100px) {
  body[data-page="review"] .review-workspace {
    grid-template-columns: 1fr;
  }

  body[data-page="review"] .review-context-card {
    min-height: 0;
  }

  body[data-page="review"] .review-history-panel .history-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="review"] .review-memo-outline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) and (max-width: 900px) {
  body[data-page="review"] .review-output-preview,
  body[data-page="review"] .review-memo-outline,
  body[data-page="review"] .review-result-sections {
    grid-template-columns: 1fr;
  }

  body[data-page="review"] .review-output-card .review-memo-outline {
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  body[data-page="review"] .review-subhero,
  body[data-page="assessment"] .service-subhero,
  .service-subhero,
  body[data-page="review"] .review-input-panel,
  body[data-page="review"] .review-context-card,
  body[data-page="review"] .review-output-card,
  body[data-page="review"] .review-history-panel {
    padding: 20px 18px;
  }

  body[data-page="review"] .review-subhero .subhero-copy,
  .service-subhero .subhero-copy {
    align-items: stretch;
  }

  body[data-page="review"] .review-status-card,
  .service-status-card {
    width: 100%;
  }

  body[data-page="review"] .review-example-head,
  body[data-page="review"] .review-example-list {
    grid-template-columns: 1fr;
  }

  body[data-page="review"] .review-history-panel .history-grid,
  body[data-page="review"] .review-form-group,
  body[data-page="review"] .review-form-group-compact,
  body[data-page="review"] .review-spotlight-stats,
  body[data-page="review"] .review-detail-grid,
  body[data-page="review"] .review-detail-sections,
  body[data-page="review"] .review-detail-kpis,
  body[data-page="review"] .review-output-preview,
  body[data-page="review"] .review-result-sections {
    grid-template-columns: 1fr;
  }

  body[data-page="review"] .review-output-card .review-memo-outline {
    justify-content: flex-start;
  }

  body[data-page="review"] .review-form-group {
    padding: 16px;
  }

  body[data-page="review"] .review-result-scoreline,
  body[data-page="review"] .review-entry-head,
  body[data-page="review"] .review-entry-risk {
    align-items: flex-start;
    flex-direction: column;
  }

  body[data-page="review"] .review-entry-time {
    text-align: left;
  }

  body[data-page="review"] .review-replay-button {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .brand small {
    font-size: 8.5px;
    letter-spacing: 0.04em;
  }
}

/* ================================
   Redveil App Showcase Mockup
   ================================ */

.app-showcase-page {
  position: relative;
  z-index: 1;
  padding: clamp(18px, 2.4vw, 32px) 0 clamp(36px, 5vw, 72px);
}

.app-showcase-hero {
  display: grid;
  grid-template-columns: repeat(4, minmax(250px, 1fr));
  gap: clamp(18px, 2vw, 28px);
  align-items: start;
}

.legacy-homepage {
  margin-top: clamp(56px, 7vw, 96px);
  opacity: 0.22;
}

.phone-frame {
  position: relative;
  min-width: 0;
  aspect-ratio: 430 / 880;
  border-radius: 38px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    #050608;
  box-shadow:
    0 38px 90px rgba(0, 0, 0, 0.56),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.phone-frame::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 12px;
  width: 30%;
  height: 26px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #010204;
  z-index: 3;
}

.phone-screen {
  position: relative;
  overflow: hidden;
  height: 100%;
  border-radius: 30px;
  padding: 22px 20px;
  color: #f6f7fb;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 30, 53, 0.12), transparent 32%),
    radial-gradient(circle at 100% 42%, rgba(255, 30, 53, 0.08), transparent 30%),
    linear-gradient(180deg, #050608 0%, #080a0f 48%, #030406 100%);
}

.phone-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at 50% 42%, rgba(0, 0, 0, 0.72), transparent 78%);
  pointer-events: none;
}

.phone-screen > * {
  position: relative;
  z-index: 1;
}

.phone-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 22px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.phone-status-icons {
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
  letter-spacing: 0.03em;
}

.welcome-visual {
  display: grid;
  place-items: center;
  min-height: 210px;
  margin-top: 26px;
}

.city-grid-scene {
  position: relative;
  width: min(82%, 250px);
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 30, 53, 0.2), transparent 34%),
    radial-gradient(circle at 50% 68%, rgba(255, 30, 53, 0.16), transparent 42%),
    linear-gradient(rgba(255, 30, 53, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 30, 53, 0.1) 1px, transparent 1px);
  background-size: auto, auto, 22px 22px, 22px 22px;
  box-shadow:
    0 0 60px rgba(255, 30, 53, 0.22),
    inset 0 0 40px rgba(255, 30, 53, 0.08);
}

.city-beam {
  position: absolute;
  left: 50%;
  top: 18%;
  width: 2px;
  height: 62%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, rgba(255, 30, 53, 0.95), transparent);
  box-shadow: 0 0 24px rgba(255, 30, 53, 0.8);
}

.city-block {
  position: absolute;
  bottom: 28%;
  width: 18px;
  border-radius: 4px 4px 1px 1px;
  background: linear-gradient(180deg, rgba(255, 30, 53, 0.88), rgba(90, 8, 18, 0.9));
  box-shadow: 0 0 20px rgba(255, 30, 53, 0.36);
}

.city-block-one {
  left: 38%;
  height: 54px;
}

.city-block-two {
  left: 50%;
  height: 78px;
  transform: translateX(-50%);
}

.city-block-three {
  right: 36%;
  height: 44px;
}

.welcome-copy {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  text-align: center;
}

.app-logo-word,
.app-logo-mini {
  margin: 0;
  color: #ff3347;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-shadow: 0 0 18px rgba(255, 30, 53, 0.34);
}

.welcome-copy h1 {
  margin: 0 auto;
  max-width: 9.2em;
  color: #fff;
  font-size: clamp(28px, 3vw, 34px);
  font-weight: 850;
  line-height: 1.14;
  letter-spacing: -0.055em;
}

.welcome-copy h1 span {
  color: #ff3347;
}

.welcome-feature-list {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.welcome-feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(18, 21, 30, 0.88), rgba(10, 12, 18, 0.82)),
    rgba(255, 255, 255, 0.035);
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 12px;
  color: #ff6675;
  background: rgba(255, 30, 53, 0.12);
  border: 1px solid rgba(255, 30, 53, 0.22);
}

.welcome-feature-list strong {
  display: block;
  color: #fff;
  font-size: 14px;
  font-weight: 780;
}

.welcome-feature-list p {
  margin: 4px 0 0;
  color: rgba(190, 196, 210, 0.72);
  font-size: 12.5px;
  line-height: 1.45;
}

.app-primary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  margin-top: 24px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 30, 53, 0.44);
  background: linear-gradient(135deg, #ff1e35, #c41226);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow:
    0 16px 34px rgba(255, 30, 53, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.app-primary-button.compact {
  min-height: 44px;
  margin-top: auto;
  font-size: 13px;
}

.phone-pager {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 18px;
}

.phone-pager span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.phone-pager span.is-active {
  width: 18px;
  background: #ff3347;
}

.app-topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-top: 28px;
}

.app-topbar h2 {
  margin: 12px 0 0;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.app-topbar h2 span {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 4px;
  border-radius: 999px;
  background: #ff3347;
  box-shadow: 0 0 14px rgba(255, 30, 53, 0.62);
}

.app-topbar p:not(.app-logo-mini) {
  margin: 8px 0 0;
  color: rgba(190, 196, 210, 0.72);
  font-size: 12.5px;
  font-weight: 500;
}

.app-topbar button,
.analysis-header a,
.analysis-header span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(245, 247, 252, 0.88);
  font: inherit;
  text-decoration: none;
}

.dashboard-risk-card {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  background:
    radial-gradient(circle at 86% 12%, rgba(255, 30, 53, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(18, 21, 30, 0.9), rgba(10, 12, 18, 0.86)),
    rgba(255, 255, 255, 0.035);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.dashboard-risk-head {
  display: flex;
  justify-content: space-between;
  color: rgba(225, 229, 238, 0.76);
  font-size: 11.5px;
  font-weight: 700;
}

.dashboard-risk-body {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(110px, 1fr);
  gap: 16px;
  align-items: end;
  margin-top: 18px;
}

.dashboard-risk-body strong {
  color: #ff3347;
  font-size: 48px;
  font-weight: 850;
  line-height: 0.92;
  letter-spacing: -0.07em;
  text-shadow: 0 0 28px rgba(255, 30, 53, 0.28);
}

.dashboard-risk-body small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  letter-spacing: -0.03em;
}

.dashboard-risk-card > p {
  margin: 10px 0 0;
  color: #ff3347;
  font-size: 13px;
  font-weight: 800;
}

.mini-sparkline {
  position: relative;
  height: 54px;
  overflow: hidden;
}

.mini-sparkline::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 1px),
    linear-gradient(90deg, transparent 0 23%, rgba(255, 255, 255, 0.08) 23.5%, transparent 24% 48%, rgba(255, 255, 255, 0.08) 48.5%, transparent 49% 74%, rgba(255, 255, 255, 0.08) 74.5%, transparent 75%);
  opacity: 0.45;
}

.mini-sparkline span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 34px;
  background:
    linear-gradient(135deg, transparent 0 8%, #ff3347 8.5% 10%, transparent 10.5% 22%, #ff3347 22.5% 24%, transparent 24.5% 38%, #ff3347 38.5% 41%, transparent 41.5% 56%, #ff3347 56.5% 58%, transparent 58.5% 72%, #ff3347 72.5% 75%, transparent 75.5% 88%, #ff3347 88.5% 91%, transparent 91.5%);
  filter: drop-shadow(0 0 8px rgba(255, 30, 53, 0.52));
}

.dashboard-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.dashboard-stat-grid article {
  min-width: 0;
  padding: 14px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.dashboard-stat-grid span {
  display: block;
  color: rgba(190, 196, 210, 0.72);
  font-size: 11px;
  font-weight: 700;
}

.dashboard-stat-grid strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 24px;
  font-weight: 820;
  letter-spacing: -0.04em;
}

.dashboard-stat-grid p {
  margin: 7px 0 0;
  color: #ff3347;
  font-size: 11px;
  font-weight: 800;
}

.risk-map-card {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(18, 21, 30, 0.9), rgba(10, 12, 18, 0.86)),
    rgba(255, 255, 255, 0.035);
}

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

.app-section-head h3 {
  margin: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.app-section-head a {
  color: rgba(225, 229, 238, 0.62);
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
}

.seoul-risk-map {
  position: relative;
  height: 220px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(circle at 48% 48%, rgba(255, 30, 53, 0.24), transparent 28%),
    linear-gradient(rgba(255, 30, 53, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 30, 53, 0.12) 1px, transparent 1px),
    #07090d;
  background-size: auto, 28px 28px, 28px 28px, auto;
  box-shadow: inset 0 0 46px rgba(0, 0, 0, 0.48);
}

.map-zone {
  position: absolute;
  border: 1px solid rgba(255, 30, 53, 0.42);
  background: rgba(255, 30, 53, 0.14);
  filter: drop-shadow(0 0 20px rgba(255, 30, 53, 0.22));
}

.map-zone-one {
  left: 18%;
  top: 34%;
  width: 38%;
  height: 28%;
  clip-path: polygon(0 22%, 32% 0, 100% 18%, 86% 100%, 18% 88%);
}

.map-zone-two {
  left: 43%;
  top: 42%;
  width: 28%;
  height: 24%;
  clip-path: polygon(12% 0, 92% 18%, 100% 84%, 24% 100%, 0 46%);
}

.map-zone-three {
  left: 26%;
  top: 54%;
  width: 44%;
  height: 22%;
  clip-path: polygon(0 24%, 44% 0, 100% 30%, 78% 100%, 12% 82%);
}

.map-target {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255, 30, 53, 0.42);
  color: #ff3347;
  background: rgba(255, 30, 53, 0.08);
  box-shadow: 0 0 26px rgba(255, 30, 53, 0.18);
}

.map-legend {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  color: rgba(190, 196, 210, 0.7);
  font-size: 11.5px;
  font-weight: 700;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.map-legend i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
}

.map-legend .high {
  background: #ff3347;
}

.map-legend .watch {
  background: #ff9f1a;
}

.map-legend .low {
  background: rgba(255, 255, 255, 0.36);
}

.app-tabbar {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  padding: 10px 8px 8px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 6, 8, 0.86);
  backdrop-filter: blur(18px);
}

.app-tabbar a {
  display: grid;
  gap: 3px;
  place-items: center;
  color: rgba(190, 196, 210, 0.54);
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
}

.app-tabbar a span {
  font-size: 10px;
  font-weight: 700;
}

.app-tabbar a.is-active {
  color: #ff3347;
}

.analysis-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 26px;
}

.analysis-header strong {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.search-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  margin-top: 18px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.065);
  color: rgba(245, 247, 252, 0.92);
  font-size: 13px;
  font-weight: 650;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.search-pill span {
  color: rgba(245, 247, 252, 0.74);
}

.analysis-tabs {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.analysis-tabs span {
  position: relative;
  color: rgba(190, 196, 210, 0.68);
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
}

.analysis-tabs span.is-active {
  color: #ff3347;
}

.analysis-tabs span.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -11px;
  height: 2px;
  border-radius: 999px;
  background: #ff3347;
  box-shadow: 0 0 16px rgba(255, 30, 53, 0.7);
}

.analysis-score-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(120px, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: 22px;
}

.risk-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  border-radius: 999px;
  background:
    radial-gradient(circle, #07090d 0 54%, transparent 55%),
    conic-gradient(#ff1e35 0 78%, rgba(255, 255, 255, 0.1) 78% 100%);
  box-shadow:
    0 0 30px rgba(255, 30, 53, 0.18),
    inset 0 0 24px rgba(0, 0, 0, 0.38);
}

.risk-ring strong {
  color: #fff;
  font-size: 34px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.06em;
}

.risk-ring small {
  color: rgba(245, 247, 252, 0.66);
  font-size: 13px;
  letter-spacing: -0.02em;
}

.risk-ring span {
  margin-top: 5px;
  color: rgba(190, 196, 210, 0.72);
  font-size: 10.5px;
  font-weight: 700;
}

.radar-card {
  position: relative;
  height: 132px;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 30, 53, 0.16), transparent 34%),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    rgba(255, 255, 255, 0.035);
  background-size: auto, 24px 24px, 24px 24px, auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.radar-card::before {
  content: "";
  position: absolute;
  inset: 20px;
  clip-path: polygon(50% 2%, 92% 34%, 78% 88%, 22% 88%, 8% 34%);
  border: 1px solid rgba(255, 30, 53, 0.46);
  background: rgba(255, 30, 53, 0.12);
  box-shadow: 0 0 24px rgba(255, 30, 53, 0.18);
}

.radar-card span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: #ff3347;
  box-shadow: 0 0 18px rgba(255, 30, 53, 0.82);
}

.risk-alert-card {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 30, 53, 0.24);
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 30, 53, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(255, 30, 53, 0.12), rgba(255, 30, 53, 0.065));
}

.risk-alert-card strong {
  display: block;
  color: #ff6675;
  font-size: 14px;
  font-weight: 850;
}

.risk-alert-card p {
  margin: 8px 0 0;
  color: rgba(245, 247, 252, 0.78);
  font-size: 12.5px;
  line-height: 1.55;
}

.risk-alert-card > span {
  color: #ff3347;
  font-size: 19px;
}

.metric-list-card {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(18, 21, 30, 0.9), rgba(10, 12, 18, 0.86)),
    rgba(255, 255, 255, 0.035);
}

.metric-row {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(90px, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.metric-row:first-of-type {
  border-top: 0;
}

.metric-row span {
  color: rgba(190, 196, 210, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.metric-row strong {
  color: #fff;
  font-size: 14px;
  font-weight: 820;
  letter-spacing: -0.02em;
}

.metric-row em {
  color: #ff3347;
  font-size: 11.5px;
  font-style: normal;
  font-weight: 850;
}

.metric-row.muted em {
  color: rgba(245, 247, 252, 0.58);
}

.recommend-head {
  display: grid;
  gap: 8px;
  margin-top: 26px;
}

.recommend-head h2 {
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.recommend-head p {
  margin: 0;
  color: rgba(190, 196, 210, 0.72);
  font-size: 12.5px;
  font-weight: 500;
}

.recommend-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.recommend-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 14px;
  min-height: 142px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  background:
    radial-gradient(circle at 82% 42%, rgba(255, 30, 53, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(18, 21, 30, 0.92), rgba(9, 11, 17, 0.88)),
    rgba(255, 255, 255, 0.035);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.recommend-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: rgba(255, 30, 53, 0.62);
  box-shadow: 0 0 20px rgba(255, 30, 53, 0.22);
}

.recommend-card.is-watch::before {
  background: rgba(255, 159, 26, 0.72);
  box-shadow: 0 0 20px rgba(255, 159, 26, 0.18);
}

.recommend-card.is-low::before {
  background: rgba(190, 196, 210, 0.54);
  box-shadow: none;
}

.recommend-rank {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: #ff3347;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.recommend-card.is-watch .recommend-rank {
  color: #ff9f1a;
}

.recommend-card.is-low .recommend-rank {
  color: rgba(245, 247, 252, 0.72);
}

.recommend-card strong {
  display: block;
  margin-top: 2px;
  color: #fff;
  font-size: 14.5px;
  font-weight: 850;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.recommend-card p {
  margin: 18px 0 0;
  color: rgba(190, 196, 210, 0.68);
  font-size: 11.5px;
  font-weight: 700;
}

.recommend-card b {
  display: block;
  margin-top: 5px;
  color: #ff3347;
  font-size: 28px;
  font-weight: 880;
  line-height: 1;
  letter-spacing: -0.06em;
}

.recommend-card.is-watch b {
  color: #ff9f1a;
}

.recommend-card.is-low b {
  color: rgba(245, 247, 252, 0.68);
}

.recommend-card b small {
  color: rgba(245, 247, 252, 0.62);
  font-size: 11px;
  letter-spacing: -0.02em;
}

.recommend-card b em {
  margin-left: 6px;
  color: currentColor;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0;
}

.recommend-map {
  position: relative;
  align-self: stretch;
  min-height: 92px;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 30, 53, 0.5), transparent 10%),
    radial-gradient(circle at 50% 50%, rgba(255, 30, 53, 0.18), transparent 36%),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    #07090d;
  background-size: auto, auto, 20px 20px, 20px 20px, auto;
}

.recommend-map::before {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 999px;
  border: 1px solid rgba(255, 30, 53, 0.28);
  box-shadow:
    0 0 0 18px rgba(255, 30, 53, 0.035),
    0 0 32px rgba(255, 30, 53, 0.18);
}

.recommend-map.orange {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 159, 26, 0.65), transparent 10%),
    radial-gradient(circle at 50% 50%, rgba(255, 159, 26, 0.2), transparent 36%),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    #07090d;
  background-size: auto, auto, 20px 20px, 20px 20px, auto;
}

.recommend-map.orange::before {
  border-color: rgba(255, 159, 26, 0.28);
  box-shadow:
    0 0 0 18px rgba(255, 159, 26, 0.035),
    0 0 32px rgba(255, 159, 26, 0.16);
}

.recommend-map.gray {
  background:
    radial-gradient(circle at 50% 50%, rgba(245, 247, 252, 0.5), transparent 10%),
    radial-gradient(circle at 50% 50%, rgba(245, 247, 252, 0.12), transparent 36%),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    #07090d;
  background-size: auto, auto, 20px 20px, 20px 20px, auto;
}

.recommend-map.gray::before {
  border-color: rgba(245, 247, 252, 0.18);
  box-shadow:
    0 0 0 18px rgba(245, 247, 252, 0.025),
    0 0 28px rgba(245, 247, 252, 0.08);
}

.recommend-card footer {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.recommend-card footer span {
  color: rgba(190, 196, 210, 0.66);
  font-size: 10.5px;
  font-weight: 700;
}

.phone-recommend .app-primary-button {
  margin-top: 18px;
}

/* ================================
   App Showcase Responsive Polish
   ================================ */

.app-showcase-page {
  min-height: calc(100vh - 120px);
}

.app-showcase-hero {
  max-width: 1720px;
  margin: 0 auto;
}

.phone-frame {
  transform-origin: top center;
}

.phone-frame:nth-child(1) {
  margin-top: 0;
}

.phone-frame:nth-child(2) {
  margin-top: 10px;
}

.phone-frame:nth-child(3) {
  margin-top: 0;
}

.phone-frame:nth-child(4) {
  margin-top: 10px;
}

.phone-screen {
  isolation: isolate;
}

.phone-dashboard .phone-screen,
.phone-analysis .phone-screen,
.phone-recommend .phone-screen {
  display: flex;
  flex-direction: column;
}

.legacy-homepage {
  display: none;
}

@media (max-width: 1380px) {
  .app-showcase-hero {
    grid-template-columns: repeat(2, minmax(280px, 430px));
    justify-content: center;
  }

  .phone-frame:nth-child(n) {
    margin-top: 0;
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding-inline: 14px;
  }

  .topbar {
    display: none;
  }

  .app-showcase-page {
    padding-top: 10px;
  }

  .app-showcase-hero {
    grid-template-columns: minmax(0, 430px);
    gap: 22px;
  }

  .phone-frame {
    width: min(100%, 430px);
    justify-self: center;
    border-radius: 34px;
    padding: 8px;
  }

  .phone-screen {
    border-radius: 27px;
    padding: 20px 18px;
  }

  .welcome-visual {
    min-height: 190px;
  }

  .dashboard-risk-body {
    grid-template-columns: 1fr;
  }

  .mini-sparkline {
    height: 44px;
  }

  .analysis-score-card {
    grid-template-columns: 1fr;
  }

  .risk-ring {
    margin-inline: auto;
  }

  .recommend-card {
    grid-template-columns: 1fr;
  }

  .recommend-map {
    min-height: 110px;
  }
}

@media (max-width: 430px) {
  .phone-frame {
    aspect-ratio: auto;
    min-height: 820px;
  }

  .phone-screen {
    min-height: 800px;
  }

  .dashboard-stat-grid {
    gap: 8px;
  }

  .dashboard-stat-grid article {
    padding: 12px 10px;
  }

  .dashboard-stat-grid strong {
    font-size: 21px;
  }

  .seoul-risk-map {
    height: 190px;
  }

  .app-tabbar {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }
}

/* ================================
   Redveil Web Product Hero
   ================================ */

.product-hero-page {
  position: relative;
  z-index: 1;
  padding: clamp(28px, 4vw, 54px) 0 clamp(48px, 6vw, 90px);
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(340px, 0.78fr) minmax(640px, 1.22fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
  max-width: 1540px;
  margin: 0 auto;
}

.product-hero-copy {
  display: grid;
  gap: 22px;
}

.product-kicker {
  margin: 0;
  color: #ff3347;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(255, 30, 53, 0.32);
}

.product-hero-copy h1 {
  margin: 0;
  max-width: 11ch;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(52px, 5vw, 84px);
  font-weight: 880;
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.product-hero-copy h1 span {
  color: #ff3347;
  text-shadow: 0 0 34px rgba(255, 30, 53, 0.32);
}

.product-lead {
  margin: 0;
  max-width: 680px;
  color: rgba(210, 216, 230, 0.76);
  font-size: clamp(16px, 1.2vw, 18px);
  font-weight: 450;
  line-height: 1.82;
}

.product-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.product-primary-button,
.product-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.product-primary-button {
  border: 1px solid rgba(255, 30, 53, 0.52);
  background: linear-gradient(135deg, #ff1e35, #b90f22);
  color: #fff;
  box-shadow:
    0 16px 36px rgba(255, 30, 53, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.product-secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(245, 247, 252, 0.88);
}

.product-metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.product-metric-strip article {
  min-width: 0;
  padding: 16px 15px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(18, 21, 30, 0.84), rgba(10, 12, 18, 0.78)),
    rgba(255, 255, 255, 0.035);
}

.product-metric-strip span {
  display: block;
  color: rgba(190, 196, 210, 0.62);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-metric-strip strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 28px;
  font-weight: 850;
  letter-spacing: -0.05em;
}

.product-metric-strip p {
  margin: 4px 0 0;
  color: rgba(190, 196, 210, 0.66);
  font-size: 12.5px;
  line-height: 1.45;
}

.web-dashboard-mockup {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 34px;
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 30, 53, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(16, 19, 27, 0.96), rgba(5, 6, 8, 0.98));
  box-shadow:
    0 44px 110px rgba(0, 0, 0, 0.58),
    0 0 80px rgba(255, 30, 53, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.dashboard-browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.dashboard-browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.dashboard-browser-bar span:first-child {
  background: rgba(255, 30, 53, 0.78);
  box-shadow: 0 0 18px rgba(255, 30, 53, 0.36);
}

.dashboard-browser-bar p {
  margin: 0 0 0 10px;
  color: rgba(190, 196, 210, 0.56);
  font-size: 12px;
  font-weight: 700;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 620px;
}

.dashboard-sidebar {
  padding: 24px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.dashboard-sidebar strong {
  display: block;
  color: #ff3347;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.dashboard-sidebar nav {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.dashboard-sidebar nav span {
  padding: 11px 12px;
  border-radius: 14px;
  color: rgba(190, 196, 210, 0.62);
  font-size: 13px;
  font-weight: 750;
}

.dashboard-sidebar nav span.is-active {
  color: #fff;
  background: rgba(255, 30, 53, 0.13);
  border: 1px solid rgba(255, 30, 53, 0.24);
}

.dashboard-main-panel {
  padding: 26px;
}

.dashboard-main-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.dashboard-main-head p {
  margin: 0;
  color: #ff6675;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dashboard-main-head h2 {
  margin: 8px 0 0;
  color: #fff;
  font-size: clamp(25px, 2.2vw, 34px);
  font-weight: 850;
  letter-spacing: -0.045em;
}

.dashboard-main-head > span {
  color: rgba(190, 196, 210, 0.62);
  font-size: 12px;
  font-weight: 700;
}

.dashboard-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 16px;
  margin-top: 24px;
}

.web-risk-map-panel,
.web-score-card,
.web-alert-card,
.web-table-panel {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(18, 21, 30, 0.9), rgba(10, 12, 18, 0.86)),
    rgba(255, 255, 255, 0.035);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.web-risk-map-panel {
  padding: 20px;
}

.panel-label-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.panel-label-row span {
  color: #ff6675;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-label-row strong {
  color: rgba(245, 247, 252, 0.88);
  font-size: 13px;
  font-weight: 800;
}

.web-seoul-map {
  position: relative;
  height: 360px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at 48% 50%, rgba(255, 30, 53, 0.22), transparent 28%),
    linear-gradient(rgba(255, 30, 53, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 30, 53, 0.09) 1px, transparent 1px),
    #07090d;
  background-size: auto, 30px 30px, 30px 30px, auto;
  box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.56);
}

.web-map-shape {
  position: absolute;
  border: 1px solid rgba(255, 30, 53, 0.44);
  background: rgba(255, 30, 53, 0.12);
  filter: drop-shadow(0 0 22px rgba(255, 30, 53, 0.24));
}

.shape-one {
  left: 15%;
  top: 28%;
  width: 34%;
  height: 26%;
  clip-path: polygon(0 18%, 40% 0, 100% 22%, 78% 100%, 16% 82%);
}

.shape-two {
  left: 40%;
  top: 36%;
  width: 30%;
  height: 28%;
  clip-path: polygon(16% 0, 94% 14%, 100% 78%, 28% 100%, 0 42%);
}

.shape-three {
  left: 26%;
  top: 53%;
  width: 42%;
  height: 22%;
  clip-path: polygon(0 26%, 42% 0, 100% 28%, 78% 100%, 10% 80%);
}

.shape-four {
  left: 54%;
  top: 24%;
  width: 24%;
  height: 22%;
  clip-path: polygon(0 32%, 56% 0, 100% 34%, 74% 100%, 18% 76%);
}

.web-map-pulse {
  position: absolute;
  left: 48%;
  top: 48%;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: #ff3347;
  box-shadow:
    0 0 0 18px rgba(255, 30, 53, 0.08),
    0 0 48px rgba(255, 30, 53, 0.6);
}

.web-map-legend {
  display: flex;
  gap: 18px;
  margin-top: 16px;
  color: rgba(190, 196, 210, 0.68);
  font-size: 12px;
  font-weight: 750;
}

.web-map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.web-map-legend i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.web-map-legend .high {
  background: #ff3347;
}

.web-map-legend .watch {
  background: #ff9f1a;
}

.web-map-legend .low {
  background: rgba(255, 255, 255, 0.36);
}

.web-risk-side {
  display: grid;
  gap: 16px;
}

.web-score-card,
.web-alert-card {
  padding: 20px;
}

.web-score-card span,
.web-alert-card span {
  display: block;
  color: rgba(190, 196, 210, 0.68);
  font-size: 12px;
  font-weight: 800;
}

.web-score-card strong {
  display: block;
  margin-top: 14px;
  color: #ff3347;
  font-size: 58px;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.08em;
}

.web-score-card small {
  color: rgba(245, 247, 252, 0.66);
  font-size: 18px;
  letter-spacing: -0.02em;
}

.web-score-card p,
.web-alert-card p {
  margin: 12px 0 0;
  color: rgba(190, 196, 210, 0.72);
  font-size: 13px;
  line-height: 1.65;
}

.web-alert-card strong {
  display: block;
  margin-top: 10px;
  color: #fff;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.web-table-panel {
  grid-column: 1 / -1;
  padding: 18px;
}

.web-table-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 120px 110px;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  margin-top: 10px;
  padding: 0 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(225, 229, 238, 0.78);
}

.web-table-row span {
  color: rgba(190, 196, 210, 0.62);
  font-weight: 900;
}

.web-table-row strong {
  color: #fff;
  font-weight: 800;
}

.web-table-row em {
  color: #ff6675;
  font-style: normal;
  font-weight: 850;
}

.web-table-row p {
  margin: 0;
  color: rgba(190, 196, 210, 0.62);
  font-size: 12px;
  font-weight: 700;
}

.web-table-row.is-watch em {
  color: #ff9f1a;
}

/* App mockups are now supporting previews below the web hero */
.app-showcase-page {
  margin-top: clamp(36px, 5vw, 72px);
  padding-top: clamp(28px, 4vw, 56px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0.92;
}

.app-showcase-page::before {
  content: "MOBILE PREVIEW";
  display: block;
  max-width: 1720px;
  margin: 0 auto 22px;
  color: #ff6675;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.16em;
}

@media (max-width: 1180px) {
  .product-hero {
    grid-template-columns: 1fr;
  }

  .web-dashboard-mockup {
    width: min(100%, 980px);
    justify-self: center;
  }
}

@media (max-width: 760px) {
  .product-hero-page {
    padding-top: 18px;
  }

  .product-hero {
    gap: 28px;
  }

  .product-hero-copy h1 {
    font-size: clamp(42px, 14vw, 62px);
  }

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

  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    display: none;
  }

  .dashboard-main-panel {
    padding: 18px;
  }

  .dashboard-content-grid {
    grid-template-columns: 1fr;
  }

  .web-seoul-map {
    height: 260px;
  }

  .web-table-row {
    grid-template-columns: 32px minmax(0, 1fr);
    padding: 12px;
  }

  .web-table-row em,
  .web-table-row p {
    grid-column: 2;
  }
}

/* ================================
   Redveil Hero Direction Reset
   ================================ */

.app-showcase-page {
  display: none !important;
}

.product-hero-page {
  display: block !important;
  position: relative;
  z-index: 2;
  padding: clamp(44px, 6vw, 86px) 0 clamp(72px, 8vw, 120px);
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.72fr) minmax(720px, 1.28fr);
  gap: clamp(42px, 5.5vw, 86px);
  align-items: center;
  max-width: 1540px;
  margin: 0 auto;
}

.product-hero-copy {
  display: grid;
  gap: 24px;
}

.product-kicker {
  margin: 0;
  color: #ff3347;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(255, 30, 53, 0.32);
}

.product-hero-copy h1 {
  margin: 0;
  max-width: 10.8ch;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(58px, 5.8vw, 96px);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: -0.075em;
}

.product-hero-copy h1 span {
  color: #ff3347;
  text-shadow: 0 0 34px rgba(255, 30, 53, 0.34);
}

.product-lead {
  margin: 0;
  max-width: 680px;
  color: rgba(210, 216, 230, 0.78);
  font-size: clamp(16px, 1.18vw, 18px);
  font-weight: 450;
  line-height: 1.82;
}

.product-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.product-primary-button,
.product-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.product-primary-button {
  border: 1px solid rgba(255, 30, 53, 0.52);
  background: linear-gradient(135deg, #ff1e35, #b90f22);
  color: #fff;
  box-shadow:
    0 16px 36px rgba(255, 30, 53, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.product-secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(245, 247, 252, 0.88);
}

.product-metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.product-metric-strip article {
  min-width: 0;
  padding: 16px 15px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(18, 21, 30, 0.84), rgba(10, 12, 18, 0.78)),
    rgba(255, 255, 255, 0.035);
}

.product-metric-strip span {
  display: block;
  color: rgba(190, 196, 210, 0.62);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-metric-strip strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 28px;
  font-weight: 850;
  letter-spacing: -0.05em;
}

.product-metric-strip p {
  margin: 4px 0 0;
  color: rgba(190, 196, 210, 0.66);
  font-size: 12.5px;
  line-height: 1.45;
}

/* ================================
   Redveil Web Dashboard Mockup Force
   ================================ */

.web-dashboard-mockup {
  display: block !important;
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 620px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 34px;
  background:
    radial-gradient(circle at 70% 18%, rgba(255, 30, 53, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(16, 19, 27, 0.98), rgba(5, 6, 8, 0.98));
  box-shadow:
    0 44px 110px rgba(0, 0, 0, 0.58),
    0 0 80px rgba(255, 30, 53, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.dashboard-browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.dashboard-browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.dashboard-browser-bar span:first-child {
  background: rgba(255, 30, 53, 0.8);
  box-shadow: 0 0 18px rgba(255, 30, 53, 0.36);
}

.dashboard-browser-bar p {
  margin: 0 0 0 10px;
  color: rgba(190, 196, 210, 0.56);
  font-size: 12px;
  font-weight: 700;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 576px;
}

.dashboard-sidebar {
  padding: 24px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.dashboard-sidebar strong {
  display: block;
  color: #ff3347;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.dashboard-sidebar nav {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.dashboard-sidebar nav span {
  padding: 11px 12px;
  border-radius: 14px;
  color: rgba(190, 196, 210, 0.62);
  font-size: 13px;
  font-weight: 750;
}

.dashboard-sidebar nav span.is-active {
  color: #fff;
  background: rgba(255, 30, 53, 0.13);
  border: 1px solid rgba(255, 30, 53, 0.24);
}

.dashboard-main-panel {
  padding: 26px;
}

.dashboard-main-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.dashboard-main-head p {
  margin: 0;
  color: #ff6675;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dashboard-main-head h2 {
  margin: 8px 0 0;
  color: #fff;
  font-size: clamp(25px, 2.2vw, 34px);
  font-weight: 850;
  letter-spacing: -0.045em;
}

.dashboard-main-head > span {
  color: rgba(190, 196, 210, 0.62);
  font-size: 12px;
  font-weight: 700;
}

.dashboard-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 16px;
  margin-top: 24px;
}

.web-risk-map-panel,
.web-score-card,
.web-alert-card,
.web-table-panel {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(18, 21, 30, 0.9), rgba(10, 12, 18, 0.86)),
    rgba(255, 255, 255, 0.035);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.web-risk-map-panel {
  padding: 20px;
}

.panel-label-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.panel-label-row span {
  color: #ff6675;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-label-row strong {
  color: rgba(245, 247, 252, 0.88);
  font-size: 13px;
  font-weight: 800;
}

.web-seoul-map {
  position: relative;
  height: 330px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at 48% 50%, rgba(255, 30, 53, 0.22), transparent 28%),
    linear-gradient(rgba(255, 30, 53, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 30, 53, 0.09) 1px, transparent 1px),
    #07090d;
  background-size: auto, 30px 30px, 30px 30px, auto;
  box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.56);
}

.web-map-shape {
  position: absolute;
  border: 1px solid rgba(255, 30, 53, 0.44);
  background: rgba(255, 30, 53, 0.12);
  filter: drop-shadow(0 0 22px rgba(255, 30, 53, 0.24));
}

.shape-one {
  left: 15%;
  top: 28%;
  width: 34%;
  height: 26%;
  clip-path: polygon(0 18%, 40% 0, 100% 22%, 78% 100%, 16% 82%);
}

.shape-two {
  left: 40%;
  top: 36%;
  width: 30%;
  height: 28%;
  clip-path: polygon(16% 0, 94% 14%, 100% 78%, 28% 100%, 0 42%);
}

.shape-three {
  left: 26%;
  top: 53%;
  width: 42%;
  height: 22%;
  clip-path: polygon(0 26%, 42% 0, 100% 28%, 78% 100%, 10% 80%);
}

.shape-four {
  left: 54%;
  top: 24%;
  width: 24%;
  height: 22%;
  clip-path: polygon(0 32%, 56% 0, 100% 34%, 74% 100%, 18% 76%);
}

.web-map-pulse {
  position: absolute;
  left: 48%;
  top: 48%;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: #ff3347;
  box-shadow:
    0 0 0 18px rgba(255, 30, 53, 0.08),
    0 0 48px rgba(255, 30, 53, 0.6);
}

.web-map-legend {
  display: flex;
  gap: 18px;
  margin-top: 16px;
  color: rgba(190, 196, 210, 0.68);
  font-size: 12px;
  font-weight: 750;
}

.web-map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.web-map-legend i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.web-map-legend .high {
  background: #ff3347;
}

.web-map-legend .watch {
  background: #ff9f1a;
}

.web-map-legend .low {
  background: rgba(255, 255, 255, 0.36);
}

.web-risk-side {
  display: grid;
  gap: 16px;
}

.web-score-card,
.web-alert-card {
  padding: 20px;
}

.web-score-card span,
.web-alert-card span {
  display: block;
  color: rgba(190, 196, 210, 0.68);
  font-size: 12px;
  font-weight: 800;
}

.web-score-card strong {
  display: block;
  margin-top: 14px;
  color: #ff3347;
  font-size: 58px;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.08em;
}

.web-score-card small {
  color: rgba(245, 247, 252, 0.66);
  font-size: 18px;
  letter-spacing: -0.02em;
}

.web-score-card p,
.web-alert-card p {
  margin: 12px 0 0;
  color: rgba(190, 196, 210, 0.72);
  font-size: 13px;
  line-height: 1.65;
}

.web-alert-card strong {
  display: block;
  margin-top: 10px;
  color: #fff;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.web-table-panel {
  grid-column: 1 / -1;
  padding: 18px;
}

.web-table-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 120px 110px;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  margin-top: 10px;
  padding: 0 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(225, 229, 238, 0.78);
}

.web-table-row span {
  color: rgba(190, 196, 210, 0.62);
  font-weight: 900;
}

.web-table-row strong {
  color: #fff;
  font-weight: 800;
}

.web-table-row em {
  color: #ff6675;
  font-style: normal;
  font-weight: 850;
}

.web-table-row p {
  margin: 0;
  color: rgba(190, 196, 210, 0.62);
  font-size: 12px;
  font-weight: 700;
}

.web-table-row.is-watch em {
  color: #ff9f1a;
}

@media (max-width: 1180px) {
  .product-hero {
    grid-template-columns: 1fr;
  }

  .web-dashboard-mockup {
    width: min(100%, 980px);
    justify-self: center;
  }
}

@media (max-width: 760px) {
  .web-dashboard-mockup {
    min-height: auto;
    border-radius: 26px;
  }

  .dashboard-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .dashboard-sidebar {
    display: none;
  }

  .dashboard-main-panel {
    padding: 18px;
  }

  .dashboard-main-head {
    display: grid;
  }

  .dashboard-content-grid {
    grid-template-columns: 1fr;
  }

  .web-seoul-map {
    height: 250px;
  }

  .web-table-row {
    grid-template-columns: 32px minmax(0, 1fr);
    padding: 12px;
  }

  .web-table-row em,
  .web-table-row p {
    grid-column: 2;
  }
}

/* ================================
   Redveil Hero + Product Flow Refinement
   ================================ */

.product-hero-page {
  padding: clamp(30px, 4.4vw, 58px) 0 clamp(54px, 6vw, 82px) !important;
}

.product-hero {
  grid-template-columns: minmax(300px, 0.56fr) minmax(760px, 1.44fr) !important;
  gap: clamp(34px, 4.4vw, 64px) !important;
  align-items: center !important;
}

.product-hero-copy {
  gap: 18px !important;
}

.product-kicker {
  font-size: 11px !important;
  letter-spacing: 0.17em !important;
}

.product-hero-copy h1 {
  max-width: 8.9ch !important;
  font-size: clamp(48px, 4.75vw, 76px) !important;
  line-height: 0.94 !important;
  letter-spacing: -0.078em !important;
}

.product-lead {
  max-width: 560px !important;
  font-size: 15.5px !important;
  line-height: 1.76 !important;
}

.product-hero-actions {
  margin-top: 2px !important;
}

.product-primary-button,
.product-secondary-button {
  min-height: 46px !important;
  padding: 0 18px !important;
  font-size: 13px !important;
}

.product-metric-strip {
  max-width: 470px;
  gap: 9px !important;
}

.product-metric-strip article {
  padding: 13px 13px !important;
  border-radius: 16px !important;
}

.product-metric-strip strong {
  font-size: 23px !important;
}

.product-metric-strip p {
  font-size: 11.5px !important;
}

/* right product dashboard */
.web-dashboard-mockup {
  min-height: 560px !important;
  border-radius: 30px !important;
  transform: translateY(2px);
}

.dashboard-shell {
  grid-template-columns: 220px minmax(0, 1fr) !important;
  min-height: 516px !important;
}

.dashboard-sidebar {
  padding: 22px 16px !important;
}

.dashboard-sidebar strong {
  margin-bottom: 20px;
}

.dashboard-product-nav {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.dashboard-product-nav a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 3px 10px;
  align-items: start;
  min-height: 74px;
  padding: 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.032);
  color: rgba(226, 231, 242, 0.78);
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.dashboard-product-nav a:hover,
.dashboard-product-nav a:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 30, 53, 0.36);
  background: rgba(255, 30, 53, 0.08);
  box-shadow: 0 14px 28px rgba(255, 30, 53, 0.08);
  outline: 0;
}

.dashboard-product-nav a.is-active {
  border-color: rgba(255, 30, 53, 0.44);
  background:
    linear-gradient(135deg, rgba(255, 30, 53, 0.16), rgba(255, 255, 255, 0.035));
  box-shadow:
    inset 3px 0 0 rgba(255, 30, 53, 0.9),
    0 16px 34px rgba(255, 30, 53, 0.1);
}

.dashboard-product-nav a span {
  grid-row: 1 / 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #ff6675;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.dashboard-product-nav a strong {
  display: block;
  margin: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.dashboard-product-nav a small {
  display: block;
  color: rgba(190, 196, 210, 0.58);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.42;
  word-break: keep-all;
}

.dashboard-main-panel {
  padding: 24px !important;
}

.dashboard-main-head h2 {
  font-size: clamp(25px, 2vw, 31px) !important;
}

.dashboard-main-head p {
  font-size: 11px !important;
}

.dashboard-content-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr) !important;
  gap: 14px !important;
  margin-top: 20px !important;
}

.web-seoul-map {
  height: 260px !important;
}

.web-score-card strong {
  font-size: 50px !important;
}

.web-score-card,
.web-alert-card {
  min-height: 132px;
  padding: 18px !important;
}

.web-table-panel {
  padding: 16px !important;
}

.web-table-row {
  min-height: 43px !important;
  grid-template-columns: 38px minmax(0, 1fr) 102px 96px !important;
  font-size: 12.5px;
}

@media (max-width: 1280px) {
  .product-hero {
    grid-template-columns: minmax(280px, 0.68fr) minmax(620px, 1.32fr) !important;
  }

  .product-hero-copy h1 {
    font-size: clamp(44px, 5.2vw, 66px) !important;
  }

  .dashboard-shell {
    grid-template-columns: 190px minmax(0, 1fr) !important;
  }

  .dashboard-product-nav a {
    min-height: 66px;
  }

  .dashboard-product-nav a small {
    display: none;
  }
}

@media (max-width: 980px) {
  .product-hero {
    grid-template-columns: 1fr !important;
  }

  .product-hero-copy h1 {
    max-width: 11ch !important;
  }

  .product-metric-strip {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .product-hero-page {
    padding-top: 24px !important;
  }

  .product-hero-copy h1 {
    font-size: clamp(40px, 13vw, 58px) !important;
  }

  .dashboard-shell {
    grid-template-columns: 1fr !important;
  }

  .dashboard-sidebar {
    display: block !important;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

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

  .dashboard-product-nav a {
    min-height: 64px;
  }

  .dashboard-product-nav a small {
    display: none;
  }

  .dashboard-content-grid {
    grid-template-columns: 1fr !important;
  }

  .web-seoul-map {
    height: 220px !important;
  }
}

/* ================================
   Redveil Review Page Dark Intelligence Pass
   ================================ */

body[data-page="review"] {
  background:
    radial-gradient(circle at 72% 8%, rgba(255, 30, 53, 0.13), transparent 34%),
    radial-gradient(circle at 12% 28%, rgba(255, 30, 53, 0.08), transparent 26%),
    linear-gradient(180deg, #050608 0%, #07080d 48%, #030405 100%) !important;
  color: #f4f5f7 !important;
}

body[data-page="review"] .page-stack {
  gap: 18px !important;
  padding-top: clamp(22px, 3.4vw, 42px) !important;
}

body[data-page="review"] .panel,
body[data-page="review"] .section-block,
body[data-page="review"] .review-subhero,
body[data-page="review"] .review-input-panel,
body[data-page="review"] .review-context-card,
body[data-page="review"] .review-output-card,
body[data-page="review"] .review-history-panel {
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  background:
    radial-gradient(circle at 96% 0%, rgba(255, 30, 53, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(18, 21, 30, 0.94), rgba(8, 10, 15, 0.92)) !important;
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

body[data-page="review"] .review-subhero {
  overflow: hidden;
  position: relative;
  padding: clamp(22px, 3vw, 30px) !important;
}

body[data-page="review"] .review-subhero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 30, 53, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 30, 53, 0.04) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, #000, transparent 72%);
}

body[data-page="review"] .subhero-copy {
  position: relative;
  z-index: 1;
}

body[data-page="review"] .section-label,
body[data-page="review"] .card-label {
  color: #ff6675 !important;
  font-size: 11px !important;
  font-weight: 850 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}

body[data-page="review"] .section-head h2,
body[data-page="review"] .subhero-copy h2 {
  color: #fff !important;
  font-family: var(--font-display);
  font-weight: 850 !important;
  letter-spacing: -0.045em !important;
}

body[data-page="review"] .subhero-copy h2 {
  max-width: 780px;
  font-size: clamp(28px, 3.2vw, 46px) !important;
  line-height: 1.08 !important;
}

body[data-page="review"] .section-copy,
body[data-page="review"] .subhero-copy p,
body[data-page="review"] .compact-note {
  color: rgba(210, 216, 230, 0.68) !important;
}

body[data-page="review"] .review-status-card {
  border: 1px solid rgba(255, 30, 53, 0.24) !important;
  background:
    linear-gradient(180deg, rgba(255, 30, 53, 0.12), rgba(255, 255, 255, 0.035)) !important;
}

body[data-page="review"] .review-status-card strong {
  color: #ff3347 !important;
}

body[data-page="review"] .review-workspace {
  align-items: stretch !important;
}

body[data-page="review"] .review-input-panel,
body[data-page="review"] .review-context-card {
  min-height: auto !important;
  padding: clamp(20px, 2.2vw, 26px) !important;
}

body[data-page="review"] .form-stack {
  gap: 14px !important;
}

body[data-page="review"] .review-example-panel,
body[data-page="review"] .review-form-group,
body[data-page="review"] .review-output-preview,
body[data-page="review"] .review-context-empty,
body[data-page="review"] .review-chart-card {
  border: 1px solid rgba(255, 255, 255, 0.085) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.025)) !important;
  box-shadow: none !important;
}

body[data-page="review"] .review-example-panel,
body[data-page="review"] .review-form-group {
  border-radius: 18px !important;
  padding: 16px !important;
}

body[data-page="review"] .review-example-head strong,
body[data-page="review"] .review-form-group legend {
  color: #fff !important;
  font-weight: 820 !important;
}

body[data-page="review"] .review-example-head p {
  color: rgba(190, 196, 210, 0.62) !important;
}

body[data-page="review"] .review-example-button {
  border-color: rgba(255, 255, 255, 0.09) !important;
  background:
    linear-gradient(180deg, rgba(18, 21, 30, 0.88), rgba(10, 12, 18, 0.78)) !important;
  color: rgba(245, 247, 252, 0.9) !important;
  box-shadow: none !important;
}

body[data-page="review"] .review-example-button:hover,
body[data-page="review"] .review-example-button:focus-visible {
  border-color: rgba(255, 30, 53, 0.38) !important;
  box-shadow: 0 16px 32px rgba(255, 30, 53, 0.1) !important;
}

body[data-page="review"] .review-example-button span {
  background: rgba(255, 30, 53, 0.12) !important;
  color: #ff6675 !important;
}

body[data-page="review"] .review-example-button strong {
  color: #fff !important;
}

body[data-page="review"] .review-example-button small {
  color: rgba(190, 196, 210, 0.62) !important;
}

body[data-page="review"] .field span {
  color: rgba(210, 216, 230, 0.78) !important;
}

body[data-page="review"] .field input,
body[data-page="review"] .field select,
body[data-page="review"] .field textarea {
  border-color: rgba(255, 255, 255, 0.11) !important;
  background: rgba(3, 5, 9, 0.66) !important;
  color: #fff !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(0, 0, 0, 0.18) !important;
}

body[data-page="review"] .field input::placeholder,
body[data-page="review"] .field textarea::placeholder {
  color: rgba(190, 196, 210, 0.38) !important;
}

body[data-page="review"] .field input:focus,
body[data-page="review"] .field select:focus,
body[data-page="review"] .field textarea:focus {
  border-color: rgba(255, 30, 53, 0.58) !important;
  background: rgba(8, 10, 15, 0.92) !important;
  box-shadow:
    0 0 0 3px rgba(255, 30, 53, 0.13),
    0 18px 34px rgba(0, 0, 0, 0.18) !important;
}

body[data-page="review"] .button-wide {
  border-color: rgba(255, 30, 53, 0.52) !important;
  background: linear-gradient(135deg, #ff1e35, #b90f22) !important;
  color: #fff !important;
  box-shadow:
    0 18px 34px rgba(255, 30, 53, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}

body[data-page="review"] .review-chart-card {
  overflow: hidden;
  border-radius: 20px !important;
  background:
    radial-gradient(circle at 60% 45%, rgba(255, 30, 53, 0.13), transparent 28%),
    linear-gradient(rgba(255, 30, 53, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 30, 53, 0.06) 1px, transparent 1px),
    #07090d !important;
  background-size: auto, 34px 34px, 34px 34px, auto !important;
}

body[data-page="review"] .chart-head strong {
  color: #fff !important;
}

body[data-page="review"] .chart-head span {
  color: rgba(190, 196, 210, 0.56) !important;
}

body[data-page="review"] .review-spotlight-stats .stat-card,
body[data-page="review"] .stat-card {
  border-color: rgba(255, 255, 255, 0.085) !important;
  background: rgba(255, 255, 255, 0.045) !important;
}

body[data-page="review"] .stat-card strong,
body[data-page="review"] .review-output-preview p,
body[data-page="review"] .review-memo-outline p {
  color: rgba(235, 239, 248, 0.86) !important;
}

body[data-page="review"] .review-output-card,
body[data-page="review"] .review-history-panel {
  padding: clamp(20px, 2.2vw, 26px) !important;
}

body[data-page="review"] .review-memo-outline article,
body[data-page="review"] .history-grid article,
body[data-page="review"] .history-card {
  border: 1px solid rgba(255, 255, 255, 0.085) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.025)) !important;
  box-shadow: none !important;
}

body[data-page="review"] .review-memo-outline article span {
  color: #ff6675 !important;
}

body[data-page="review"] .interpretation-note {
  border-color: rgba(255, 30, 53, 0.2) !important;
  background: rgba(255, 30, 53, 0.08) !important;
  color: rgba(245, 247, 252, 0.76) !important;
}

body[data-page="review"] .history-grid {
  min-height: 86px;
}

body[data-page="review"] .history-grid:empty {
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

/* ================================
   Redveil Review Result Dark Report Pass
   ================================ */

body[data-page="review"] .review-result-memo,
body[data-page="review"] .review-result-sections,
body[data-page="review"] .review-result-scoreline,
body[data-page="review"] .decision-cue,
body[data-page="review"] .risk-signal-board,
body[data-page="review"] .risk-signal-grid,
body[data-page="review"] .risk-signal-card,
body[data-page="review"] .compare-memo-card,
body[data-page="review"] .alternative-board,
body[data-page="review"] .risk-delta-card,
body[data-page="review"] .alternative-support-grid section {
  border-color: rgba(255, 255, 255, 0.085) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.024)) !important;
  box-shadow: none !important;
}

body[data-page="review"] .review-result-memo {
  padding: clamp(18px, 2vw, 24px) !important;
  border-radius: 22px !important;
}

body[data-page="review"] .review-result-scoreline {
  align-items: flex-start !important;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body[data-page="review"] .review-result-scoreline strong,
body[data-page="review"] .decision-cue p,
body[data-page="review"] .risk-signal-card strong,
body[data-page="review"] .alternative-hero strong,
body[data-page="review"] .metric-compare-card strong {
  color: #fff !important;
}

body[data-page="review"] .review-result-scoreline p,
body[data-page="review"] .risk-signal-card p,
body[data-page="review"] .risk-delta-card p,
body[data-page="review"] .alternative-hero p,
body[data-page="review"] .compact-checklist li,
body[data-page="review"] .metric-compare-card p {
  color: rgba(190, 196, 210, 0.68) !important;
}

body[data-page="review"] .decision-cue {
  padding: 14px 15px !important;
  border-radius: 17px !important;
  background:
    linear-gradient(180deg, rgba(255, 30, 53, 0.09), rgba(255, 255, 255, 0.026)) !important;
}

body[data-page="review"] .decision-cue span,
body[data-page="review"] .risk-signal-card span,
body[data-page="review"] .risk-delta-card span,
body[data-page="review"] .decision-memo-row span {
  color: #ff6675 !important;
}

body[data-page="review"] .risk-signal-card {
  min-height: 48px !important;
  border-radius: 15px !important;
}

body[data-page="review"] .risk-signal-card.tone-high {
  border-color: rgba(255, 30, 53, 0.25) !important;
  background:
    linear-gradient(180deg, rgba(255, 30, 53, 0.11), rgba(255, 255, 255, 0.025)) !important;
}

body[data-page="review"] .risk-signal-card strong,
body[data-page="review"] .metric-scoreline span,
body[data-page="review"] .risk-delta-card strong {
  color: #ff3347 !important;
}

body[data-page="review"] .alternative-board {
  padding: 17px !important;
  border-radius: 20px !important;
}

body[data-page="review"] .review-output-preview {
  background:
    radial-gradient(circle at 96% 0%, rgba(255, 30, 53, 0.09), transparent 34%),
    linear-gradient(180deg, rgba(12, 15, 22, 0.95), rgba(5, 7, 11, 0.92)) !important;
}

body[data-page="review"] .review-memo-outline article {
  border-radius: 16px !important;
}

/* force autofill / browser-white fields to stay dark */
body[data-page="review"] input:-webkit-autofill,
body[data-page="review"] input:-webkit-autofill:hover,
body[data-page="review"] input:-webkit-autofill:focus,
body[data-page="review"] textarea:-webkit-autofill,
body[data-page="review"] select:-webkit-autofill {
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff !important;
  box-shadow: 0 0 0 1000px rgba(3, 5, 9, 0.96) inset !important;
  transition: background-color 9999s ease-in-out 0s !important;
}

body[data-page="review"] select,
body[data-page="review"] option {
  background: #080a0f !important;
  color: #fff !important;
}

body[data-page="review"] .history-card,
body[data-page="review"] .history-item,
body[data-page="review"] .review-history-panel article {
  border-color: rgba(255, 255, 255, 0.085) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.024)) !important;
}

body[data-page="review"] .history-card strong,
body[data-page="review"] .history-item strong,
body[data-page="review"] .review-history-panel strong {
  color: #fff !important;
}

body[data-page="review"] .history-card p,
body[data-page="review"] .history-item p,
body[data-page="review"] .review-history-panel p {
  color: rgba(190, 196, 210, 0.66) !important;
}

/* ================================
   Redveil Review Page Final Polish
   ================================ */

body[data-page="review"] .review-subhero {
  padding: clamp(26px, 3.2vw, 38px) !important;
}

body[data-page="review"] .subhero-copy {
  align-items: center !important;
}

body[data-page="review"] .subhero-copy h2 {
  max-width: 760px !important;
  font-size: clamp(26px, 2.7vw, 38px) !important;
  line-height: 1.16 !important;
  letter-spacing: -0.055em !important;
}

body[data-page="review"] .subhero-copy > div:first-child {
  display: grid;
  gap: 8px;
}

body[data-page="review"] .review-workspace {
  grid-template-columns: minmax(420px, 1fr) minmax(340px, 0.76fr) !important;
  gap: 18px !important;
}

body[data-page="review"] .review-context-card {
  display: grid !important;
  align-content: start !important;
  gap: 16px !important;
}

body[data-page="review"] .review-chart-card {
  min-height: 250px !important;
}

body[data-page="review"] .review-spotlight-stats {
  gap: 10px !important;
}

body[data-page="review"] .review-output-card {
  margin-top: 4px !important;
}

body[data-page="review"] .review-output-preview {
  padding: 18px !important;
  border-radius: 20px !important;
}

body[data-page="review"] .review-memo-outline {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

body[data-page="review"] .review-memo-outline article {
  min-height: 104px !important;
  padding: 15px !important;
}

body[data-page="review"] .review-memo-outline article span {
  display: block;
  margin-bottom: 8px;
  font-size: 11px !important;
}

body[data-page="review"] .review-memo-outline article p {
  font-size: 13px !important;
  line-height: 1.55 !important;
}

body[data-page="review"] .review-history-panel {
  min-height: 260px;
}

body[data-page="review"] .history-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)) !important;
  gap: 12px !important;
}

body[data-page="review"] .history-card,
body[data-page="review"] .history-item,
body[data-page="review"] .review-history-panel article {
  max-width: 280px;
  border-radius: 18px !important;
}

@media (max-width: 900px) {
  body[data-page="review"] .review-workspace {
    grid-template-columns: 1fr !important;
  }

  body[data-page="review"] .review-memo-outline {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  body[data-page="review"] .review-memo-outline {
    grid-template-columns: 1fr !important;
  }
}

/* ================================
   Redveil District Report Dark Intelligence Pass
   ================================ */

body[data-page="districts"] {
  background:
    radial-gradient(circle at 74% 8%, rgba(255, 30, 53, 0.13), transparent 34%),
    radial-gradient(circle at 12% 28%, rgba(255, 30, 53, 0.08), transparent 26%),
    linear-gradient(180deg, #050608 0%, #07080d 48%, #030405 100%) !important;
  color: #f4f5f7 !important;
}

body[data-page="districts"] .page-stack {
  gap: 18px !important;
  padding-top: clamp(22px, 3.4vw, 42px) !important;
}

body[data-page="districts"] .panel,
body[data-page="districts"] .section-block,
body[data-page="districts"] .service-subhero,
body[data-page="districts"] .district-selector-card,
body[data-page="districts"] .selected-district-card,
body[data-page="districts"] .district-drilldown-card,
body[data-page="districts"] .district-field-direction-card,
body[data-page="districts"] .district-risk-breakdown-card,
body[data-page="districts"] .district-objections-card,
body[data-page="districts"] .district-replacement-card,
body[data-page="districts"] .district-trend-card {
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  background:
    radial-gradient(circle at 96% 0%, rgba(255, 30, 53, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(18, 21, 30, 0.94), rgba(8, 10, 15, 0.92)) !important;
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

body[data-page="districts"] .service-subhero {
  overflow: hidden;
  position: relative;
  padding: clamp(26px, 3.2vw, 38px) !important;
}

body[data-page="districts"] .service-subhero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 30, 53, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 30, 53, 0.04) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, #000, transparent 72%);
}

body[data-page="districts"] .subhero-copy {
  position: relative;
  z-index: 1;
  align-items: center !important;
}

body[data-page="districts"] .section-label,
body[data-page="districts"] .card-label {
  color: #ff6675 !important;
  font-size: 11px !important;
  font-weight: 850 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}

body[data-page="districts"] .section-head h2,
body[data-page="districts"] .subhero-copy h2,
body[data-page="districts"] .selected-district-hero h2 {
  color: #fff !important;
  font-family: var(--font-display);
  font-weight: 850 !important;
  letter-spacing: -0.045em !important;
}

body[data-page="districts"] .subhero-copy h2 {
  max-width: 820px;
  font-size: clamp(28px, 3vw, 42px) !important;
  line-height: 1.14 !important;
}

body[data-page="districts"] .subhero-copy p,
body[data-page="districts"] .compact-note,
body[data-page="districts"] .section-copy {
  color: rgba(210, 216, 230, 0.68) !important;
}

body[data-page="districts"] .service-status-card {
  border: 1px solid rgba(255, 30, 53, 0.24) !important;
  background:
    linear-gradient(180deg, rgba(255, 30, 53, 0.12), rgba(255, 255, 255, 0.035)) !important;
}

body[data-page="districts"] .service-status-card strong {
  color: #ff3347 !important;
}

/* layout */
body[data-page="districts"] .district-layout {
  grid-template-columns: minmax(250px, 0.34fr) minmax(0, 1fr) !important;
  gap: 18px !important;
  align-items: start !important;
}

body[data-page="districts"] .panel-stack {
  gap: 18px !important;
}

body[data-page="districts"] .district-selector-card,
body[data-page="districts"] .selected-district-card,
body[data-page="districts"] .district-drilldown-card,
body[data-page="districts"] .district-field-direction-card,
body[data-page="districts"] .district-risk-breakdown-card,
body[data-page="districts"] .district-objections-card,
body[data-page="districts"] .district-replacement-card,
body[data-page="districts"] .district-trend-card {
  padding: clamp(18px, 2vw, 24px) !important;
  border-radius: 24px !important;
}

/* selector */
body[data-page="districts"] .field span {
  color: rgba(210, 216, 230, 0.78) !important;
}

body[data-page="districts"] .field input,
body[data-page="districts"] .field select,
body[data-page="districts"] .field textarea {
  border-color: rgba(255, 255, 255, 0.11) !important;
  background: rgba(3, 5, 9, 0.66) !important;
  color: #fff !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(0, 0, 0, 0.18) !important;
}

body[data-page="districts"] .field input::placeholder {
  color: rgba(190, 196, 210, 0.38) !important;
}

body[data-page="districts"] .district-list-panel,
body[data-page="districts"] .stacked-list {
  gap: 9px !important;
}

body[data-page="districts"] .district-select-button,
body[data-page="districts"] .stacked-list article {
  border: 1px solid rgba(255, 255, 255, 0.085) !important;
  border-radius: 16px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.024)) !important;
  color: rgba(245, 247, 252, 0.9) !important;
  box-shadow: none !important;
}

body[data-page="districts"] .district-select-button:hover,
body[data-page="districts"] .district-select-button:focus-visible,
body[data-page="districts"] .district-select-button.is-active {
  border-color: rgba(255, 30, 53, 0.42) !important;
  background:
    linear-gradient(180deg, rgba(255, 30, 53, 0.12), rgba(255, 255, 255, 0.032)) !important;
  box-shadow:
    inset 3px 0 0 rgba(255, 30, 53, 0.9),
    0 16px 34px rgba(255, 30, 53, 0.1) !important;
}

body[data-page="districts"] .district-select-button strong,
body[data-page="districts"] .stacked-list article strong {
  color: #fff !important;
}

body[data-page="districts"] .district-select-button p,
body[data-page="districts"] .stacked-list article p {
  color: rgba(190, 196, 210, 0.64) !important;
}

/* selected district */
body[data-page="districts"] .selected-district-card {
  gap: 18px !important;
}

body[data-page="districts"] .headline-score {
  border: 1px solid rgba(255, 30, 53, 0.24) !important;
  background:
    linear-gradient(180deg, rgba(255, 30, 53, 0.12), rgba(255, 255, 255, 0.035)) !important;
}

body[data-page="districts"] .headline-score strong,
body[data-page="districts"] #detail-score {
  color: #ff3347 !important;
}

body[data-page="districts"] .risk-level-badge,
body[data-page="districts"] .district-type-badge,
body[data-page="districts"] .district-risk-chip-list span,
body[data-page="districts"] .district-pill-list span,
body[data-page="districts"] .district-context-chip-row span {
  border-color: rgba(255, 30, 53, 0.22) !important;
  background: rgba(255, 30, 53, 0.09) !important;
  color: #ff6675 !important;
}

body[data-page="districts"] .district-decision-block,
body[data-page="districts"] .stat-card,
body[data-page="districts"] .matrix-grid article,
body[data-page="districts"] .detail-grid article,
body[data-page="districts"] .inline-chart-card {
  border: 1px solid rgba(255, 255, 255, 0.085) !important;
  border-radius: 18px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.024)) !important;
  box-shadow: none !important;
}

body[data-page="districts"] .district-judgment-block {
  background:
    linear-gradient(180deg, rgba(255, 30, 53, 0.09), rgba(255, 255, 255, 0.026)) !important;
}

body[data-page="districts"] .district-judgment-block p,
body[data-page="districts"] .stat-card strong,
body[data-page="districts"] .matrix-grid strong,
body[data-page="districts"] .detail-grid strong {
  color: #fff !important;
}

body[data-page="districts"] .stat-card span,
body[data-page="districts"] .matrix-grid span,
body[data-page="districts"] .detail-grid span,
body[data-page="districts"] .district-decision-block p {
  color: rgba(190, 196, 210, 0.68) !important;
}

/* drilldown / evidence */
body[data-page="districts"] .district-drilldown-lead,
body[data-page="districts"] .district-factor-list article,
body[data-page="districts"] .risk-overlap-block,
body[data-page="districts"] .interpretation-strip,
body[data-page="districts"] .benchmark-line {
  border-color: rgba(255, 255, 255, 0.085) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.024)) !important;
  box-shadow: none !important;
}

body[data-page="districts"] .district-drilldown-lead strong,
body[data-page="districts"] .district-factor-list strong,
body[data-page="districts"] .risk-overlap-block strong {
  color: #fff !important;
}

body[data-page="districts"] .district-drilldown-lead p,
body[data-page="districts"] .district-factor-list p,
body[data-page="districts"] .risk-overlap-block p,
body[data-page="districts"] .interpretation-note {
  color: rgba(190, 196, 210, 0.68) !important;
}

body[data-page="districts"] .interpretation-note {
  border-color: rgba(255, 30, 53, 0.2) !important;
  background: rgba(255, 30, 53, 0.08) !important;
}

/* charts */
body[data-page="districts"] .inline-chart-card {
  overflow: hidden;
  min-height: 230px;
  background:
    radial-gradient(circle at 60% 45%, rgba(255, 30, 53, 0.13), transparent 28%),
    linear-gradient(rgba(255, 30, 53, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 30, 53, 0.06) 1px, transparent 1px),
    #07090d !important;
  background-size: auto, 34px 34px, 34px 34px, auto !important;
}

body[data-page="districts"] svg text {
  fill: rgba(210, 216, 230, 0.72) !important;
}

body[data-page="districts"] svg .chart-grid,
body[data-page="districts"] svg line {
  stroke: rgba(255, 255, 255, 0.08) !important;
}

body[data-page="districts"] svg path {
  stroke-width: 2.4 !important;
}

/* responsive */
@media (max-width: 980px) {
  body[data-page="districts"] .district-layout {
    grid-template-columns: 1fr !important;
  }

  body[data-page="districts"] .district-selector-card {
    position: relative !important;
    top: auto !important;
  }

  body[data-page="districts"] .district-decision-grid,
  body[data-page="districts"] .district-decision-support-grid,
  body[data-page="districts"] .evidence-pair,
  body[data-page="districts"] .district-trend-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ================================
   Redveil District Report Final Polish
   ================================ */

body[data-page="districts"] .district-context-chip-row span,
body[data-page="districts"] .selected-badge-row span,
body[data-page="districts"] .district-risk-chip-list span,
body[data-page="districts"] .district-pill-list span,
body[data-page="districts"] .benchmark-line span,
body[data-page="districts"] .interpretation-strip span {
  border: 1px solid rgba(255, 30, 53, 0.24) !important;
  background: rgba(255, 30, 53, 0.095) !important;
  color: #ff6675 !important;
  box-shadow: none !important;
}

body[data-page="districts"] .selected-district-card {
  padding: clamp(22px, 2.4vw, 30px) !important;
}

body[data-page="districts"] .selected-district-hero {
  align-items: center !important;
  gap: 24px !important;
}

body[data-page="districts"] .selected-district-hero h2 {
  font-size: clamp(34px, 3.2vw, 48px) !important;
  line-height: 1 !important;
}

body[data-page="districts"] .headline-score {
  min-width: 148px !important;
  border-radius: 20px !important;
}

body[data-page="districts"] .headline-score strong {
  font-size: clamp(38px, 3.6vw, 52px) !important;
}

body[data-page="districts"] .district-decision-grid {
  gap: 12px !important;
}

body[data-page="districts"] .district-decision-block {
  min-height: 116px !important;
  padding: 17px !important;
}

body[data-page="districts"] .district-judgment-block {
  border-color: rgba(255, 30, 53, 0.2) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 30, 53, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(255, 30, 53, 0.09), rgba(255, 255, 255, 0.026)) !important;
}

body[data-page="districts"] .district-judgment-block p {
  font-size: clamp(17px, 1.45vw, 21px) !important;
  line-height: 1.5 !important;
}

body[data-page="districts"] .district-stat-grid {
  gap: 10px !important;
}

body[data-page="districts"] .stat-card {
  min-height: 92px !important;
  padding: 15px !important;
}

body[data-page="districts"] .stat-card strong {
  font-size: 18px !important;
}

body[data-page="districts"] .district-drilldown-card {
  padding: clamp(22px, 2.4vw, 30px) !important;
}

body[data-page="districts"] .district-drilldown-lead {
  border-radius: 20px !important;
  padding: 20px !important;
}

body[data-page="districts"] .district-drilldown-lead strong {
  font-size: clamp(22px, 2vw, 30px) !important;
  line-height: 1.35 !important;
}

body[data-page="districts"] .district-factor-list article,
body[data-page="districts"] .risk-overlap-block,
body[data-page="districts"] .district-field-direction-card .stacked-list article,
body[data-page="districts"] .district-objections-card .stacked-list article,
body[data-page="districts"] .district-replacement-card .stacked-list article {
  border-radius: 17px !important;
  border-color: rgba(255, 255, 255, 0.095) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.026)) !important;
}

body[data-page="districts"] .district-risk-breakdown-card .matrix-grid article {
  min-height: 92px !important;
  padding: 15px !important;
}

body[data-page="districts"] .inline-chart-card {
  border-color: rgba(255, 255, 255, 0.095) !important;
  border-radius: 20px !important;
  min-height: 250px !important;
  padding: 18px !important;
}

body[data-page="districts"] #price-chart path,
body[data-page="districts"] #price-chart polyline {
  stroke: #ff4b5f !important;
}

body[data-page="districts"] #volume-chart path,
body[data-page="districts"] #volume-chart polyline {
  stroke: #7ad8d1 !important;
}

body[data-page="districts"] #price-chart circle,
body[data-page="districts"] #volume-chart circle {
  fill: currentColor !important;
}

body[data-page="districts"] .district-selector-card {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow: hidden;
}

body[data-page="districts"] .district-list-panel {
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
}

body[data-page="districts"] .district-list-panel::-webkit-scrollbar {
  width: 6px;
}

body[data-page="districts"] .district-list-panel::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 30, 53, 0.42);
}

body[data-page="districts"] input:-webkit-autofill,
body[data-page="districts"] input:-webkit-autofill:hover,
body[data-page="districts"] input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff !important;
  box-shadow: 0 0 0 1000px rgba(3, 5, 9, 0.96) inset !important;
  transition: background-color 9999s ease-in-out 0s !important;
}

@media (max-width: 980px) {
  body[data-page="districts"] .district-selector-card {
    position: relative;
    top: auto;
    max-height: none;
  }

  body[data-page="districts"] .district-list-panel {
    max-height: 340px;
  }
}

/* Review page hero refinement */
body[data-page="review"] .review-subhero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 42px);
  border-color: rgba(255, 30, 53, 0.18);
  background:
    radial-gradient(circle at 82% 12%, rgba(255, 30, 53, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(16, 19, 27, 0.96), rgba(7, 8, 12, 0.94)),
    var(--panel-strong);
}

body[data-page="review"] .review-subhero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 30, 53, 0.58), rgba(255, 30, 53, 0.04) 72%);
}

body[data-page="review"] .review-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: clamp(22px, 4vw, 44px);
  align-items: end;
}

body[data-page="review"] .review-hero-main {
  display: grid;
  gap: 14px;
}

body[data-page="review"] .review-hero-main h2 {
  max-width: 12ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 780;
  line-height: 0.98;
  letter-spacing: -0.05em;
  color: #fff;
}

body[data-page="review"] .review-hero-main p:not(.section-label) {
  max-width: 760px;
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(15.5px, 1.2vw, 17px);
  line-height: 1.78;
}

body[data-page="review"] .review-status-grid {
  display: grid;
  gap: 12px;
}

body[data-page="review"] .review-status-card {
  position: relative;
  overflow: hidden;
  min-height: 96px;
  padding: 16px 17px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background:
    radial-gradient(circle at 90% 18%, rgba(255, 30, 53, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(18, 21, 30, 0.94), rgba(9, 11, 17, 0.92)),
    var(--card-bg);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

body[data-page="review"] .review-status-card strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 24px;
  font-weight: 820;
  letter-spacing: -0.025em;
}

body[data-page="review"] .review-status-card .compact-note {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.5;
}

@media (max-width: 860px) {
  body[data-page="review"] .review-hero-layout {
    grid-template-columns: 1fr;
  }

  body[data-page="review"] .review-hero-main h2 {
    max-width: 100%;
  }
}

/* Review district risk tags */
body[data-page="review"] .review-risk-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 16px;
}

body[data-page="review"] .review-risk-tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255, 30, 53, 0.24);
  border-radius: 999px;
  background: rgba(255, 30, 53, 0.09);
  color: #ff6675;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.08em;
}

/* Review console dark surface alignment */
body[data-page="review"] .review-workspace {
  align-items: start;
}

body[data-page="review"] .review-context-card {
  align-self: start;
}

body[data-page="review"] .review-output-card,
body[data-page="review"] .review-history-panel,
body[data-page="review"] .review-input-panel,
body[data-page="review"] .review-context-card {
  border-color: rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(circle at 92% 10%, rgba(255, 30, 53, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(16, 19, 27, 0.94), rgba(8, 10, 15, 0.9)),
    var(--card-bg);
}

/* Initial output preview */
body[data-page="review"] .review-output-preview,
body[data-page="review"] .review-memo-outline article {
  border-color: rgba(255, 255, 255, 0.09) !important;
  background:
    linear-gradient(180deg, rgba(20, 24, 34, 0.88), rgba(10, 12, 18, 0.84)),
    rgba(255, 255, 255, 0.035) !important;
  color: var(--text-main);
}

body[data-page="review"] .review-memo-outline article span {
  color: #ff6675;
}

/* Generated result memo: remove beige/white surfaces */
body[data-page="review"] .result-card,
body[data-page="review"] .review-result-memo,
body[data-page="review"] .benchmark-line,
body[data-page="review"] .risk-overlap-block,
body[data-page="review"] .alternative-rationale,
body[data-page="review"] .review-result-sections section,
body[data-page="review"] .rationale-grid article {
  border-color: rgba(255, 255, 255, 0.09) !important;
  background:
    linear-gradient(180deg, rgba(20, 24, 34, 0.88), rgba(10, 12, 18, 0.84)),
    rgba(255, 255, 255, 0.035) !important;
  color: var(--text-main) !important;
}

body[data-page="review"] .benchmark-line strong,
body[data-page="review"] .risk-overlap-block strong,
body[data-page="review"] .alternative-rationale strong,
body[data-page="review"] .rationale-grid article strong,
body[data-page="review"] .review-result-sections section strong {
  color: #fff !important;
}

body[data-page="review"] .benchmark-line span,
body[data-page="review"] .result-copy,
body[data-page="review"] .result-list,
body[data-page="review"] .result-list li,
body[data-page="review"] .review-result-sections p,
body[data-page="review"] .risk-overlap-block p,
body[data-page="review"] .alternative-rationale p {
  color: rgba(190, 196, 210, 0.76) !important;
}

/* Pills and chips */
body[data-page="review"] .interpretation-badge,
body[data-page="review"] .risk-chip,
body[data-page="review"] .chip {
  border-color: rgba(255, 255, 255, 0.11) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: rgba(225, 229, 238, 0.82) !important;
}

body[data-page="review"] .interpretation-badge.is-caution,
body[data-page="review"] .risk-chip.is-active {
  border-color: rgba(255, 30, 53, 0.32) !important;
  background: rgba(255, 30, 53, 0.12) !important;
  color: #ff6675 !important;
}

/* Review history cards */
body[data-page="review"] .review-entry {
  border-color: rgba(255, 255, 255, 0.09) !important;
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 30, 53, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(16, 19, 27, 0.9), rgba(8, 10, 15, 0.88)),
    var(--card-bg) !important;
  color: var(--text-main) !important;
}

body[data-page="review"] .review-entry strong {
  color: #fff !important;
}

body[data-page="review"] .review-entry p,
body[data-page="review"] .review-entry-meta,
body[data-page="review"] .review-entry-time {
  color: rgba(190, 196, 210, 0.72) !important;
}

body[data-page="review"] .review-entry-risk {
  border-color: rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

body[data-page="review"] .review-entry-risk span {
  color: #ff6675 !important;
}

body[data-page="review"] .review-entry-risk p {
  color: rgba(190, 196, 210, 0.58) !important;
}

/* Buttons */
body[data-page="review"] .review-submit-button {
  background: linear-gradient(135deg, #ff1e35, #c41226) !important;
  border-color: rgba(255, 30, 53, 0.48) !important;
  color: #fff !important;
  box-shadow:
    0 14px 28px rgba(255, 30, 53, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

body[data-page="review"] .review-replay-button,
body[data-page="review"] .homepage-action-button-soft {
  border-color: rgba(255, 30, 53, 0.28) !important;
  background: rgba(255, 30, 53, 0.1) !important;
  color: #ff9aaa !important;
}

body[data-page="review"] .review-replay-button:hover,
body[data-page="review"] .homepage-action-button-soft:hover {
  border-color: rgba(255, 30, 53, 0.48) !important;
  background: rgba(255, 30, 53, 0.16) !important;
  color: #fff !important;
}

/* Assessment page dark surface alignment */
body[data-page="assessment"] .service-subhero,
body[data-page="assessment"] .section-block,
body[data-page="assessment"] #assessment-result {
  border-color: rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(circle at 92% 10%, rgba(255, 30, 53, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(16, 19, 27, 0.94), rgba(8, 10, 15, 0.9)),
    var(--card-bg);
}

body[data-page="assessment"] .service-status-card {
  border-color: rgba(255, 30, 53, 0.28);
  background:
    radial-gradient(circle at 92% 14%, rgba(255, 30, 53, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(18, 21, 30, 0.94), rgba(9, 11, 17, 0.92)),
    var(--card-bg);
}

body[data-page="assessment"] .service-status-card strong {
  color: #fff;
}

/* Assessment form */
body[data-page="assessment"] .field input,
body[data-page="assessment"] .field select {
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.045);
}

body[data-page="assessment"] .field input::placeholder {
  color: rgba(190, 196, 210, 0.46);
}

body[data-page="assessment"] .field input:focus,
body[data-page="assessment"] .field select:focus {
  outline: none;
  border-color: rgba(255, 30, 53, 0.42);
  box-shadow: 0 0 0 3px rgba(255, 30, 53, 0.1);
}

/* Assessment chart and progress panels */
body[data-page="assessment"] .inline-chart-card,
body[data-page="assessment"] .progress-card {
  border-color: rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(180deg, rgba(20, 24, 34, 0.88), rgba(10, 12, 18, 0.84)),
    rgba(255, 255, 255, 0.035);
  color: var(--text-main);
}

body[data-page="assessment"] .chart-head strong,
body[data-page="assessment"] .progress-row strong {
  color: #fff;
}

body[data-page="assessment"] .chart-head span,
body[data-page="assessment"] .progress-row span {
  color: rgba(190, 196, 210, 0.72);
}

body[data-page="assessment"] .progress-track {
  background: rgba(255, 255, 255, 0.06);
}

body[data-page="assessment"] .progress-track span {
  background: linear-gradient(90deg, #ff9f1a, #ff1e35);
  box-shadow: 0 0 18px rgba(255, 30, 53, 0.22);
}

/* Assessment result card */
body[data-page="assessment"] .result-card,
body[data-page="assessment"] .diagnosis-result-card,
body[data-page="assessment"] .diagnosis-result-section,
body[data-page="assessment"] .benchmark-line,
body[data-page="assessment"] .risk-overlap-block,
body[data-page="assessment"] .alternative-rationale,
body[data-page="assessment"] .rationale-grid article {
  border-color: rgba(255, 255, 255, 0.09) !important;
  background:
    linear-gradient(180deg, rgba(20, 24, 34, 0.88), rgba(10, 12, 18, 0.84)),
    rgba(255, 255, 255, 0.035) !important;
  color: var(--text-main) !important;
}

body[data-page="assessment"] .result-score {
  color: #ff6675;
  text-shadow: 0 0 22px rgba(255, 30, 53, 0.22);
}

body[data-page="assessment"] .result-copy,
body[data-page="assessment"] .result-list,
body[data-page="assessment"] .result-list li,
body[data-page="assessment"] .diagnosis-result-section p,
body[data-page="assessment"] .benchmark-line span,
body[data-page="assessment"] .risk-overlap-block p,
body[data-page="assessment"] .alternative-rationale p {
  color: rgba(190, 196, 210, 0.76) !important;
}

body[data-page="assessment"] .benchmark-line strong,
body[data-page="assessment"] .risk-overlap-block strong,
body[data-page="assessment"] .alternative-rationale strong,
body[data-page="assessment"] .rationale-grid article strong {
  color: #fff !important;
}

/* Assessment chips */
body[data-page="assessment"] .chip,
body[data-page="assessment"] .risk-chip,
body[data-page="assessment"] .interpretation-badge {
  border-color: rgba(255, 255, 255, 0.11) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: rgba(225, 229, 238, 0.82) !important;
}

body[data-page="assessment"] .risk-chip.is-active,
body[data-page="assessment"] .interpretation-badge.is-caution {
  border-color: rgba(255, 30, 53, 0.32) !important;
  background: rgba(255, 30, 53, 0.12) !important;
  color: #ff6675 !important;
}

/* Assessment primary button */
body[data-page="assessment"] .button-primary {
  background: linear-gradient(135deg, #ff1e35, #c41226) !important;
  border-color: rgba(255, 30, 53, 0.48) !important;
  color: #fff !important;
  box-shadow:
    0 14px 28px rgba(255, 30, 53, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

/* Compare page dark surface alignment */
body[data-page="compare"] .service-subhero,
body[data-page="compare"] .section-block,
body[data-page="compare"] .compare-memo-card {
  border-color: rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(circle at 92% 10%, rgba(255, 30, 53, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(16, 19, 27, 0.94), rgba(8, 10, 15, 0.9)),
    var(--card-bg);
}

body[data-page="compare"] .service-status-card {
  border-color: rgba(255, 30, 53, 0.28);
  background:
    radial-gradient(circle at 92% 14%, rgba(255, 30, 53, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(18, 21, 30, 0.94), rgba(9, 11, 17, 0.92)),
    var(--card-bg);
}

body[data-page="compare"] .service-status-card strong {
  color: #fff;
}

/* Compare form */
body[data-page="compare"] .field select,
body[data-page="compare"] .field input {
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.045);
}

body[data-page="compare"] .field select:focus,
body[data-page="compare"] .field input:focus {
  outline: none;
  border-color: rgba(255, 30, 53, 0.42);
  box-shadow: 0 0 0 3px rgba(255, 30, 53, 0.1);
}

/* Candidate cards */
body[data-page="compare"] .compare-card {
  border-color: rgba(255, 255, 255, 0.09) !important;
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 30, 53, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(16, 19, 27, 0.92), rgba(8, 10, 15, 0.88)),
    var(--card-bg) !important;
  color: var(--text-main);
}

body[data-page="compare"] .compare-card.selected-card {
  border-color: rgba(255, 30, 53, 0.34) !important;
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.3),
    0 0 42px rgba(255, 30, 53, 0.08);
}

body[data-page="compare"] .candidate-title strong,
body[data-page="compare"] .compare-card strong {
  color: #fff;
}

body[data-page="compare"] .candidate-title p,
body[data-page="compare"] .compare-card p {
  color: rgba(190, 196, 210, 0.72);
}

/* Pills, badges, and chips */
body[data-page="compare"] .rank-pill,
body[data-page="compare"] .tone-pill,
body[data-page="compare"] .chip,
body[data-page="compare"] .interpretation-badge {
  border-color: rgba(255, 255, 255, 0.11) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: rgba(225, 229, 238, 0.82) !important;
}

body[data-page="compare"] .tone-pill.tone-high,
body[data-page="compare"] .interpretation-badge.is-caution {
  border-color: rgba(255, 30, 53, 0.32) !important;
  background: rgba(255, 30, 53, 0.12) !important;
  color: #ff6675 !important;
}

body[data-page="compare"] .tone-pill.tone-mid {
  border-color: rgba(255, 159, 26, 0.32) !important;
  background: rgba(255, 159, 26, 0.12) !important;
  color: #ffbf69 !important;
}

body[data-page="compare"] .tone-pill.tone-low {
  border-color: rgba(106, 167, 159, 0.28) !important;
  background: rgba(106, 167, 159, 0.12) !important;
  color: #8ee0d2 !important;
}

/* Inner compare result surfaces */
body[data-page="compare"] .benchmark-line,
body[data-page="compare"] .risk-signal-board,
body[data-page="compare"] .risk-signal-card,
body[data-page="compare"] .decision-cue,
body[data-page="compare"] .metric-compare-card,
body[data-page="compare"] .alternative-board,
body[data-page="compare"] .risk-delta-card,
body[data-page="compare"] .alternative-support-grid section,
body[data-page="compare"] .decision-memo-board,
body[data-page="compare"] .decision-memo-row {
  border-color: rgba(255, 255, 255, 0.09) !important;
  background:
    linear-gradient(180deg, rgba(20, 24, 34, 0.88), rgba(10, 12, 18, 0.84)),
    rgba(255, 255, 255, 0.035) !important;
  color: var(--text-main) !important;
}

body[data-page="compare"] .benchmark-line strong,
body[data-page="compare"] .risk-signal-card strong,
body[data-page="compare"] .decision-cue strong,
body[data-page="compare"] .metric-compare-card strong,
body[data-page="compare"] .alternative-board strong,
body[data-page="compare"] .risk-delta-card strong,
body[data-page="compare"] .decision-memo-row strong {
  color: #fff !important;
}

body[data-page="compare"] .benchmark-line span,
body[data-page="compare"] .risk-signal-card span,
body[data-page="compare"] .risk-signal-card p,
body[data-page="compare"] .decision-cue p,
body[data-page="compare"] .metric-compare-card p,
body[data-page="compare"] .alternative-board p,
body[data-page="compare"] .risk-delta-card p,
body[data-page="compare"] .decision-memo-row p,
body[data-page="compare"] .compact-checklist {
  color: rgba(190, 196, 210, 0.76) !important;
}

body[data-page="compare"] .risk-signal-card.tone-high,
body[data-page="compare"] .decision-memo-row.is-primary {
  border-color: rgba(255, 30, 53, 0.28) !important;
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 30, 53, 0.13), transparent 32%),
    linear-gradient(180deg, rgba(22, 25, 34, 0.94), rgba(10, 12, 18, 0.88)) !important;
}

body[data-page="compare"] .risk-signal-card.tone-mid {
  border-color: rgba(255, 159, 26, 0.22) !important;
}

body[data-page="compare"] .risk-signal-card.tone-low {
  border-color: rgba(106, 167, 159, 0.2) !important;
}

/* Compare metric bars */
body[data-page="compare"] .progress-track {
  background: rgba(255, 255, 255, 0.06);
}

body[data-page="compare"] .progress-track span {
  background: linear-gradient(90deg, #ff9f1a, #ff1e35);
  box-shadow: 0 0 18px rgba(255, 30, 53, 0.22);
}

body[data-page="compare"] .metric-scoreline {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

body[data-page="compare"] .metric-scoreline span,
body[data-page="compare"] .risk-delta-card strong {
  color: #ff6675 !important;
}

/* Compare primary button */
body[data-page="compare"] .button-primary {
  background: linear-gradient(135deg, #ff1e35, #c41226) !important;
  border-color: rgba(255, 30, 53, 0.48) !important;
  color: #fff !important;
  box-shadow:
    0 14px 28px rgba(255, 30, 53, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

/* Global chart and metric bar refinement */
body[data-page] .progress-track {
  position: relative;
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.055);
}

body[data-page] .progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #ff3650 !important;
  box-shadow: none !important;
}

body[data-page] .risk-bar {
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.055);
  overflow: hidden;
}

body[data-page] .risk-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #ff3650 !important;
  box-shadow: none !important;
}

/* Global metric bar refinement */
body[data-page] .progress-track {
  position: relative;
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.055);
}

body[data-page] .progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #ff3650 !important;
  box-shadow: none !important;
}

body[data-page] .risk-bar {
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.055);
  overflow: hidden;
}

body[data-page] .risk-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #ff3650 !important;
  box-shadow: none !important;
}

/* Make small metric rows cleaner */
body[data-page] .metric-mini-row .progress-track {
  height: 7px;
}

body[data-page] .progress-row header,
body[data-page] .metric-mini-row {
  gap: 10px;
}

/* Global line chart refinement */
body[data-page] .chart-grid-line {
  stroke: rgba(255, 255, 255, 0.055);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

body[data-page] .chart-axis-line {
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

body[data-page] .chart-line-path {
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(255, 30, 53, 0.14));
}

body[data-page] .chart-last-dot {
  stroke: rgba(255, 255, 255, 0.78);
  stroke-width: 1.4;
  filter: drop-shadow(0 0 8px rgba(255, 30, 53, 0.28));
}

body[data-page] .chart-axis-label {
  fill: rgba(190, 196, 210, 0.58);
  font-size: 11px;
  font-weight: 600;
}

/* Global chart card layout refinement */
body[data-page] .inline-chart-card {
  min-height: 248px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border-color: rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(180deg, rgba(20, 24, 34, 0.88), rgba(10, 12, 18, 0.84)),
    rgba(255, 255, 255, 0.035);
}

body[data-page] .chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 28px;
}

body[data-page] .chart-head strong {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

body[data-page] .chart-head span {
  color: rgba(190, 196, 210, 0.62);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

body[data-page] .inline-chart-card svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 178px;
  overflow: visible;
}

body[data-page] .review-chart-card,
body[data-page] .district-trend-card .inline-chart-card {
  min-height: 260px;
}

body[data-page="assessment"] .assessment-insight-grid .inline-chart-card {
  min-height: 250px;
}

body[data-page="districts"] .district-trend-card .inline-chart-card {
  padding: 20px;
}

body[data-page] .chart-axis-label {
  fill: rgba(190, 196, 210, 0.58);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

/* Redveil V1 portfolio surface */
.redveil-v1-page {
  display: grid;
  gap: clamp(28px, 5vw, 58px);
}

.redveil-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.88fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  min-height: min(720px, calc(100vh - 128px));
  padding: clamp(30px, 6vw, 72px) 0 clamp(18px, 4vw, 42px);
}

.redveil-hero-copy {
  display: grid;
  gap: 22px;
  max-width: 720px;
}

.redveil-kicker {
  margin: 0;
  color: var(--accent-red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.redveil-hero h1 {
  max-width: 11.5ch;
  margin: 0;
  color: #fff;
  font-size: clamp(52px, 8vw, 98px);
  font-weight: 850;
  line-height: 0.95;
  letter-spacing: 0;
}

.redveil-lead {
  max-width: 680px;
  margin: 0;
  color: rgba(224, 229, 241, 0.78);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.72;
}

.redveil-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.redveil-advisory-note {
  max-width: 620px;
  margin: 0;
  color: rgba(182, 189, 206, 0.68);
  font-size: 13px;
  line-height: 1.65;
}

.redveil-command-panel,
.redveil-card,
.redveil-workflow-card,
.redveil-limit-grid article {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(20, 24, 34, 0.92), rgba(8, 10, 15, 0.94)),
    rgba(11, 13, 19, 0.94);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.redveil-command-panel {
  overflow: hidden;
  border-radius: 24px;
}

.redveil-panel-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.redveil-panel-bar span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.redveil-panel-bar strong {
  margin-left: 8px;
  color: rgba(222, 228, 241, 0.72);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.redveil-score-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: clamp(22px, 4vw, 34px);
}

.redveil-score-row span,
.redveil-target-strip span,
.redveil-signal-stack span,
.redveil-metric-grid span,
.redveil-district-grid span,
.redveil-alternative-list span {
  color: rgba(170, 178, 196, 0.78);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.redveil-score-row strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

.redveil-score-orbit {
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  border: 1px solid rgba(255, 51, 71, 0.42);
  background:
    linear-gradient(145deg, rgba(255, 51, 71, 0.18), rgba(255, 51, 71, 0.04)),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 38px rgba(255, 51, 71, 0.16), 0 18px 42px rgba(255, 30, 53, 0.14);
}

.redveil-score-orbit strong {
  margin: 0;
  color: #fff;
  font-size: 42px;
}

.redveil-score-orbit span {
  margin-top: -26px;
  color: rgba(224, 229, 241, 0.64);
}

.redveil-target-strip {
  display: grid;
  gap: 8px;
  margin: 0 clamp(22px, 4vw, 34px);
  padding: 18px;
  border: 1px solid rgba(255, 51, 71, 0.18);
  border-radius: 16px;
  background: rgba(255, 30, 53, 0.08);
}

.redveil-target-strip strong {
  color: #fff;
  font-size: 22px;
}

.redveil-target-strip p,
.redveil-signal-stack p,
.redveil-card p,
.redveil-workflow-card p,
.redveil-limit-grid p {
  margin: 0;
  color: rgba(210, 216, 230, 0.72);
  line-height: 1.65;
}

.redveil-signal-stack {
  display: grid;
  gap: 12px;
  padding: clamp(22px, 4vw, 34px);
}

.redveil-signal-stack article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.redveil-signal-stack strong {
  color: var(--accent-red);
  font-size: 20px;
}

.redveil-signal-stack p {
  grid-column: 1 / -1;
  font-size: 13px;
}

.redveil-section,
.redveil-dashboard-grid,
.redveil-split-section {
  position: relative;
  z-index: 1;
}

.redveil-section {
  display: grid;
  gap: 20px;
}

.redveil-section-head {
  display: grid;
  gap: 10px;
  max-width: 820px;
}

.redveil-section-head h2,
.redveil-card h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: 0;
}

.redveil-section-head p:not(.section-label) {
  margin: 0;
  color: rgba(211, 218, 232, 0.72);
  line-height: 1.7;
}

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

.redveil-workflow-card {
  display: grid;
  gap: 12px;
  min-height: 190px;
  padding: 20px;
  border-radius: 18px;
}

.redveil-workflow-card span {
  color: var(--accent-red);
  font-size: 12px;
  font-weight: 900;
}

.redveil-workflow-card strong {
  color: #fff;
  font-size: 19px;
}

.redveil-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 16px;
}

.redveil-card {
  display: grid;
  gap: 20px;
  min-width: 0;
  padding: clamp(22px, 3vw, 30px);
  border-radius: 22px;
}

.redveil-card-primary {
  grid-row: span 2;
}

.redveil-card-head {
  display: grid;
  gap: 8px;
}

.redveil-metric-grid,
.redveil-district-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.redveil-metric-grid article,
.redveil-district-grid article {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.redveil-metric-grid strong,
.redveil-district-grid strong {
  color: #fff;
  font-size: clamp(22px, 3vw, 34px);
}

.redveil-reason-list,
.redveil-memo-panel ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.redveil-reason-list li,
.redveil-memo-panel li {
  position: relative;
  padding-left: 22px;
  color: rgba(224, 229, 241, 0.78);
  line-height: 1.62;
}

.redveil-reason-list li::before,
.redveil-memo-panel li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-red);
  box-shadow: 0 0 16px rgba(255, 51, 71, 0.55);
}

.redveil-alternative-list {
  display: grid;
  gap: 12px;
}

.redveil-alternative-list article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.redveil-alternative-list strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-size: 18px;
}

.redveil-split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 16px;
}

.redveil-factor-list {
  display: grid;
  gap: 16px;
}

.redveil-factor-list article {
  display: grid;
  gap: 10px;
}

.redveil-factor-list article > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.redveil-factor-list strong {
  color: #fff;
  font-size: 18px;
}

.redveil-factor-list span {
  color: var(--accent-red);
  font-weight: 800;
}

/* Home risk factor bars: match Redveil's solid red chart system */
.redveil-factor-bar {
  position: relative;
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.redveil-factor-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #ff6675;
  background-image: none;
  box-shadow: 0 0 14px rgba(255, 30, 53, 0.26);
}

.redveil-memo-card {
  align-content: start;
}

.redveil-memo-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 51, 71, 0.2);
  border-radius: 16px;
  background: rgba(255, 30, 53, 0.08);
}

.redveil-memo-panel strong {
  color: #fff;
  font-size: 21px;
}

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

.redveil-case-grid .scenario-case-card {
  min-height: 210px;
}

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

.redveil-limit-grid article {
  display: grid;
  gap: 10px;
  padding: 20px;
  border-radius: 18px;
}

.redveil-limit-grid strong {
  color: #fff;
  font-size: 18px;
}

@media (max-width: 980px) {
  .redveil-hero,
  .redveil-dashboard-grid,
  .redveil-split-section {
    grid-template-columns: 1fr;
  }

  .redveil-hero {
    min-height: 0;
  }

  .redveil-workflow-grid,
  .redveil-case-grid,
  .redveil-limit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .redveil-hero h1 {
    max-width: 10ch;
    font-size: clamp(44px, 14vw, 62px);
  }

  .redveil-score-row,
  .redveil-metric-grid,
  .redveil-district-grid,
  .redveil-workflow-grid,
  .redveil-case-grid,
  .redveil-limit-grid {
    grid-template-columns: 1fr;
  }

  .redveil-score-orbit {
    width: 112px;
    height: 112px;
  }
}

/* Korean product entry experience */
body[data-page="home"] .redveil-v1-page {
  gap: clamp(54px, 7vw, 92px);
}

body[data-page="home"] .redveil-hero {
  position: relative;
  grid-template-columns: minmax(0, 1.06fr) minmax(390px, 0.94fr);
  gap: clamp(34px, 5vw, 76px);
  min-height: min(780px, calc(100vh - 112px));
  padding: clamp(42px, 7vw, 88px) 0 clamp(24px, 4vw, 48px);
}

body[data-page="home"] .redveil-hero::before {
  content: "";
  position: absolute;
  inset: 6% -12% auto 38%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 30, 53, 0.13), transparent 68%);
  filter: blur(18px);
  pointer-events: none;
  z-index: -1;
}

body[data-page="home"] .redveil-hero-copy {
  gap: 20px;
}

body[data-page="home"] .redveil-hero h1 {
  max-width: 12.5ch;
  font-size: clamp(48px, 6.6vw, 84px);
  font-weight: 820;
  line-height: 1.04;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

body[data-page="home"] .redveil-hero h1 span {
  display: inline;
  color: #ff4054;
  text-shadow: 0 0 34px rgba(255, 30, 53, 0.25);
}

body[data-page="home"] .redveil-lead {
  max-width: 650px;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.78;
  text-wrap: pretty;
}

.redveil-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.redveil-quick-actions a {
  display: grid;
  gap: 7px;
  min-height: 106px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(20, 24, 34, 0.86), rgba(9, 11, 17, 0.86)),
    rgba(255, 255, 255, 0.03);
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.redveil-quick-actions a:hover,
.redveil-quick-actions a:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255, 51, 71, 0.42);
  background:
    linear-gradient(180deg, rgba(28, 30, 42, 0.92), rgba(12, 14, 21, 0.9)),
    rgba(255, 30, 53, 0.07);
}

.redveil-quick-actions strong {
  color: #fff;
  font-size: 14px;
}

.redveil-quick-actions span {
  color: rgba(190, 196, 210, 0.66);
  font-size: 12px;
  line-height: 1.55;
}

body[data-page="home"] .redveil-command-panel {
  position: sticky;
  top: 18px;
  border-color: rgba(255, 51, 71, 0.2);
  background:
    radial-gradient(circle at 82% 14%, rgba(255, 30, 53, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(20, 24, 34, 0.97), rgba(6, 8, 12, 0.98));
  box-shadow:
    0 34px 80px rgba(0, 0, 0, 0.48),
    0 0 76px rgba(255, 30, 53, 0.08);
}

.redveil-score-row em {
  display: inline-flex;
  margin-top: 14px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 51, 71, 0.28);
  border-radius: 999px;
  background: rgba(255, 30, 53, 0.1);
  color: #ff7a88;
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
}

.redveil-panel-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 clamp(22px, 4vw, 34px) clamp(22px, 4vw, 34px);
}

.redveil-panel-actions a,
.redveil-inline-link,
.redveil-case-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(238, 241, 248, 0.88);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.redveil-panel-actions a:last-child,
.redveil-inline-link:hover,
.redveil-inline-link:focus-visible,
.redveil-case-link:hover,
.redveil-case-link:focus-visible {
  border-color: rgba(255, 51, 71, 0.34);
  background: rgba(255, 30, 53, 0.12);
  color: #fff;
}

.redveil-panel-actions a:hover,
.redveil-panel-actions a:focus-visible {
  border-color: rgba(255, 51, 71, 0.45);
  background: rgba(255, 30, 53, 0.16);
  color: #fff;
}

.redveil-workflow-section {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 4%, rgba(255, 30, 53, 0.13), transparent 28%),
    linear-gradient(180deg, rgba(17, 20, 29, 0.9), rgba(8, 10, 15, 0.88));
  box-shadow: var(--shadow-card);
}

body[data-page="home"] .redveil-workflow-grid {
  gap: 10px;
}

body[data-page="home"] .redveil-workflow-card {
  position: relative;
  min-height: 220px;
  align-content: start;
  padding: 20px;
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

body[data-page="home"] .redveil-workflow-card::after {
  content: "";
  position: absolute;
  top: 24px;
  right: -8px;
  width: 16px;
  height: 1px;
  background: rgba(255, 51, 71, 0.55);
}

body[data-page="home"] .redveil-workflow-card:last-child::after {
  display: none;
}

body[data-page="home"] .redveil-workflow-card:hover,
body[data-page="home"] .redveil-workflow-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(255, 51, 71, 0.42);
  box-shadow: 0 24px 48px rgba(255, 30, 53, 0.12);
}

.redveil-workflow-card em {
  align-self: end;
  margin-top: auto;
  color: #ff6d7c;
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}

.redveil-pause-section {
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.redveil-pause-grid {
  display: grid;
  gap: 12px;
}

.redveil-pause-grid article {
  display: grid;
  grid-template-columns: minmax(118px, 0.35fr) 1fr;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(20, 24, 34, 0.88), rgba(9, 11, 17, 0.88)),
    rgba(255, 255, 255, 0.03);
}

.redveil-pause-grid span {
  color: #ff6675;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.redveil-pause-grid strong {
  color: #fff;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.55;
}

body[data-page="home"] .redveil-card {
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

body[data-page="home"] .redveil-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.4);
}

body[data-page="home"] .redveil-card-primary {
  grid-row: auto;
  border-color: rgba(255, 51, 71, 0.2);
  background:
    radial-gradient(circle at 90% 8%, rgba(255, 30, 53, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(20, 24, 34, 0.94), rgba(8, 10, 15, 0.96));
}

body[data-page="home"] .redveil-metric-grid article,
body[data-page="home"] .redveil-district-grid a,
body[data-page="home"] .redveil-alternative-list a {
  display: grid;
  gap: 8px;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

body[data-page="home"] .redveil-district-grid a:hover,
body[data-page="home"] .redveil-district-grid a:focus-visible,
body[data-page="home"] .redveil-alternative-list a:hover,
body[data-page="home"] .redveil-alternative-list a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 51, 71, 0.35);
  background: rgba(255, 30, 53, 0.07);
}

body[data-page="home"] .redveil-district-grid strong {
  font-size: clamp(20px, 2.5vw, 28px);
}

body[data-page="home"] .redveil-alternative-list a {
  grid-template-columns: auto 1fr auto;
  align-items: start;
}

.redveil-alternative-list em {
  color: #ff7a88;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

body[data-page="home"] .redveil-memo-panel > span {
  color: #ff7a88;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

body[data-page="home"] .redveil-memo-panel .product-primary-button {
  justify-self: start;
  margin-top: 4px;
}

body[data-page="home"] .redveil-case-grid .scenario-case-card {
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 300px;
}

body[data-page="home"] .redveil-case-grid .scenario-action-line {
  margin-top: auto;
}

body[data-page="home"] .redveil-case-link {
  justify-self: start;
}

body[data-page="home"] .redveil-limits {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.025);
}

@media (max-width: 1100px) {
  body[data-page="home"] .redveil-hero {
    grid-template-columns: minmax(0, 1fr) minmax(350px, 0.82fr);
    gap: 28px;
  }

  .redveil-quick-actions {
    grid-template-columns: 1fr;
  }

  .redveil-quick-actions a {
    min-height: 0;
  }
}

@media (max-width: 980px) {
  body[data-page="home"] .redveil-hero,
  .redveil-pause-section {
    grid-template-columns: 1fr;
  }

  body[data-page="home"] .redveil-command-panel {
    position: relative;
    top: auto;
  }

  body[data-page="home"] .redveil-workflow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="home"] .redveil-workflow-card::after {
    display: none;
  }
}

@media (max-width: 720px) {
  body[data-page="home"] .page-shell {
    width: min(100% - 28px, var(--home-page-max));
    padding-top: 12px;
  }

  body[data-page="home"] .topbar {
    align-items: flex-start;
    border-radius: 20px;
  }

  body[data-page="home"] .topnav {
    flex-wrap: nowrap;
    max-width: 100%;
    padding-bottom: 4px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  body[data-page="home"] .topnav a {
    flex: 0 0 auto;
  }

  body[data-page="home"] .redveil-v1-page {
    gap: 48px;
  }

  body[data-page="home"] .redveil-hero {
    padding-top: 34px;
  }

  body[data-page="home"] .redveil-hero h1 {
    max-width: none;
    font-size: clamp(42px, 12vw, 58px);
    line-height: 1.08;
  }

  body[data-page="home"] .redveil-hero-actions > a {
    flex: 1 1 100%;
    justify-content: center;
  }

  .redveil-panel-actions,
  body[data-page="home"] .redveil-workflow-grid,
  .redveil-pause-grid article {
    grid-template-columns: 1fr;
  }

  .redveil-workflow-section,
  body[data-page="home"] .redveil-limits {
    padding: 20px;
    border-radius: 22px;
  }

  body[data-page="home"] .redveil-workflow-card {
    min-height: 180px;
  }
}

@media (max-width: 520px) {
  body[data-page="home"] .topbar {
    display: grid;
    gap: 12px;
    padding: 12px;
  }

  body[data-page="home"] .brand small {
    font-size: 9px;
  }

  body[data-page="home"] .redveil-score-row {
    grid-template-columns: 1fr auto;
    padding: 20px;
  }

  body[data-page="home"] .redveil-score-row strong {
    font-size: 30px;
  }

  body[data-page="home"] .redveil-score-orbit {
    width: 96px;
    height: 96px;
  }

  body[data-page="home"] .redveil-score-orbit strong {
    font-size: 34px;
  }

  body[data-page="home"] .redveil-target-strip {
    margin: 0 20px;
  }

  body[data-page="home"] .redveil-signal-stack {
    padding: 20px;
  }

  body[data-page="home"] .redveil-alternative-list a {
    grid-template-columns: auto 1fr;
  }

  body[data-page="home"] .redveil-alternative-list em {
    grid-column: 2;
  }
}

/* Responsive layout refinement */
.page-stack,
.page-stack > *,
.app-grid,
.app-grid-wide,
.review-workspace,
.assessment-workspace,
.compare-selector-grid,
.compare-card-grid,
.comparison-grid,
.compare-decision-grid,
.inline-chart-card,
.inline-chart-card svg {
  min-width: 0;
  max-width: 100%;
}

body[data-page="home"] .redveil-hero {
  overflow: hidden;
}

@media (max-width: 1024px) {
  body[data-page="review"] .review-workspace,
  body[data-page="assessment"] .app-grid.assessment-workspace {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body[data-page="compare"] .compare-selector-grid,
  body[data-page="compare"] .compare-card-grid,
  body[data-page="compare"] .compare-decision-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .topnav {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  .topnav a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 42px;
  }

  body[data-page="compare"] .compare-selector-grid,
  body[data-page="compare"] .compare-card-grid,
  body[data-page="compare"] .comparison-grid,
  body[data-page="compare"] .compare-decision-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .page-shell {
    width: min(100% - 20px, 1000px);
  }

  .topbar {
    padding: 11px 12px;
  }

  .topnav {
    gap: 6px;
  }

  .topnav a {
    padding-inline: 11px;
  }

  body[data-page] .inline-chart-card {
    padding: 14px;
  }
}

.redveil-v2-preview {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 51, 71, 0.16);
  border-radius: 28px;
  padding: 28px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 51, 71, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(9, 12, 18, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 24px 56px rgba(0, 0, 0, 0.22);
}

.redveil-v2-flow-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
}

.redveil-v2-flow-card {
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(12, 15, 22, 0.76);
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.redveil-v2-flow-card span {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.redveil-v2-flow-card strong {
  display: block;
  font-size: clamp(1.1rem, 2vw, 1.42rem);
  letter-spacing: -0.04em;
}

.redveil-v2-flow-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.62;
}

.redveil-v2-flow-card:hover,
.redveil-v2-flow-card:focus {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.24);
  outline: none;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

.redveil-v2-flow-card.is-primary {
  border-color: rgba(255, 51, 71, 0.38);
  background:
    radial-gradient(circle at top left, rgba(255, 51, 71, 0.24), transparent 44%),
    linear-gradient(135deg, rgba(255, 51, 71, 0.16), rgba(255, 255, 255, 0.025)),
    rgba(16, 18, 25, 0.9);
}

.redveil-v2-flow-card.is-primary span {
  background: rgba(255, 51, 71, 0.2);
  color: #ff5f72;
}

@media (max-width: 900px) {
  .redveil-v2-flow-grid {
    grid-template-columns: 1fr;
  }

  .redveil-v2-preview {
    padding: 22px;
  }
}

.redveil-v2-preview {
  max-width: 980px;
  margin: 28px auto 0;
}

.redveil-v2-preview .redveil-section-head {
  max-width: 720px;
}

.redveil-v2-flow-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .redveil-v2-preview {
    max-width: none;
  }

  .redveil-v2-flow-grid {
    grid-template-columns: 1fr;
  }
}

.professional-review-checklist {
  display: grid;
  gap: 16px;
  margin-top: 16px;
  padding: clamp(16px, 2vw, 20px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background:
    radial-gradient(circle at 96% 0%, rgba(255, 30, 53, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(20, 24, 34, 0.9), rgba(10, 12, 18, 0.84)),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.professional-review-head {
  display: grid;
  gap: 8px;
  max-width: 760px;
}

.professional-review-head .result-label {
  margin-bottom: 0;
}

.professional-review-head strong {
  color: #fff;
  font-size: clamp(17px, 1.7vw, 20px);
  font-weight: 820;
  line-height: 1.34;
}

.professional-review-head p {
  margin: 0;
  color: rgba(190, 196, 210, 0.72);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.68;
}

.professional-review-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.professional-review-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(225, 229, 238, 0.84);
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.45;
}

.professional-review-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 0.48em;
  border-radius: 999px;
  background: #ff6675;
  box-shadow: 0 0 14px rgba(255, 30, 53, 0.45);
}

body[data-page="review"] .professional-review-checklist,
body[data-page="compare"] .professional-review-checklist {
  color: var(--text-main);
}

body[data-page="review"] .review-result-memo > .professional-review-checklist,
body[data-page="compare"] #compare-memo > .professional-review-checklist {
  margin-top: 18px;
}

@media (max-width: 720px) {
  .professional-review-list {
    grid-template-columns: minmax(0, 1fr);
  }
}
