:root {
  --bg-deep: #18302d;
  --bg-mid: #2b3f38;
  --bg-warm: #4c4034;
  --paper: #fbf7ef;
  --paper-2: #f2eadb;
  --paper-3: #e7dbc4;
  --ink: #1f2324;
  --ink-soft: #5b605d;
  --burgundy: #7f3140;
  --burgundy-deep: #55202b;
  --gold: #b89354;
  --green: #244b43;
  --green-soft: #5a736c;
  --line: rgba(63, 52, 43, .15);
  --line-strong: rgba(63, 52, 43, .28);
  --shadow-lg: 0 28px 70px rgba(0,0,0,.28), 0 8px 22px rgba(0,0,0,.12);
  --shadow-sm: 0 8px 24px rgba(33, 24, 19, .08);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --body-font: "Noto Sans Thai", system-ui, sans-serif;
  --display-font: "Prompt", "Noto Sans Thai", system-ui, sans-serif;
  --mono-font: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { background: var(--bg-deep); scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body-font);
  color: var(--ink);
  background:
    radial-gradient(circle at 0% 0%, rgba(184,147,84,.18), transparent 22%),
    radial-gradient(circle at 100% 0%, rgba(127,49,64,.18), transparent 20%),
    linear-gradient(135deg, rgba(255,255,255,.03), transparent 30%),
    linear-gradient(180deg, var(--bg-mid) 0%, var(--bg-deep) 40%, #142420 100%);
  background-attachment: fixed;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(to bottom, rgba(255,255,255,.04), transparent 15%),
    radial-gradient(circle at 50% 120%, rgba(0,0,0,.45), transparent 45%);
}
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible { outline: 3px solid rgba(184,147,84,.7); outline-offset: 3px; }
button:disabled { cursor: not-allowed; opacity: .45; filter: grayscale(.25); }

a { color: inherit; }

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .14;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.34'/%3E%3C/svg%3E");
}

.app-shell {
  position: relative;
  z-index: 2;
  width: min(1160px, calc(100% - 30px));
  margin: 0 auto;
  padding: clamp(14px, 3vw, 32px) 0 max(50px, env(safe-area-inset-bottom));
}

.paper {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(229, 218, 196, .6);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(rgba(255,255,255,.8), rgba(255,255,255,.15)),
    repeating-linear-gradient(0deg, rgba(111,84,52,.022) 0, rgba(111,84,52,.022) 1px, transparent 1px, transparent 34px),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  box-shadow: var(--shadow-lg);
}
.paper::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(107, 82, 50, .10);
  border-radius: calc(var(--radius-xl) - 8px);
  pointer-events: none;
}
.paper::after {
  content: none;
}

h1, h2, h3, h4, .program-name, .file-title { font-family: var(--display-font); }
h1, h2, h3, h4, p { overflow-wrap: break-word; }
.eyebrow, .case-id, .case-complete, .rank, .route-kicker, .docket-kicker, .scene-kicker {
  font-family: var(--mono-font);
  text-transform: uppercase;
  letter-spacing: .12em;
}

.cover {
  min-height: min(900px, calc(100vh - 28px));
  padding: clamp(26px, 4vw, 52px);
  display: flex;
  align-items: center;
}
.cover::before {
  content: none;
  display: none;
}
.cover-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr);
  gap: clamp(26px, 4vw, 42px);
  align-items: center;
  width: 100%;
}
.cover-main { min-width: 0; }
.eyebrow {
  color: var(--green);
  font-size: .75rem;
  font-weight: 800;
}
h1 {
  margin: .18em 0 .06em;
  font-size: clamp(3.1rem, 8vw, 5.8rem);
  line-height: .92;
  letter-spacing: -.03em;
  font-weight: 800;
}
.subtitle {
  color: var(--burgundy-deep);
  font: 700 clamp(1.3rem, 2.8vw, 2rem)/1.25 var(--display-font);
}
.en-sub {
  margin-top: 8px;
  color: var(--ink-soft);
  font: 700 .82rem/1.5 var(--mono-font);
  letter-spacing: .08em;
}
.lead {
  max-width: 690px;
  margin: 26px 0 0;
  font-size: clamp(1rem, 1.9vw, 1.13rem);
  line-height: 1.95;
}
.cover-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(36,75,67,.15);
  background: rgba(36,75,67,.06);
  color: var(--green);
  font-size: .78rem;
  font-weight: 700;
}
.quote {
  position: relative;
  margin: 24px 0 0;
  padding: 18px 20px 18px 22px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(127,49,64,.14);
  border-left: 5px solid var(--burgundy);
  background: linear-gradient(90deg, rgba(127,49,64,.08), rgba(255,255,255,.44));
  line-height: 1.75;
}

.result-close-note {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(239,209,136,.34);
  background: rgba(255,250,235,.12);
  color: #fffaf0;
  display: grid;
  gap: 6px;
  line-height: 1.6;
}
.result-close-note strong {
  font: 800 .92rem/1.2 var(--display-font);
  color: #fff2c7;
}
.result-close-note span {
  font-size: .9rem;
  color: rgba(255,247,233,.88);
}
.result-close-note b { color: #fff7df; }

.fineprint {
  color: var(--ink-soft);
  font-size: .92rem;
  line-height: 1.75;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.btn {
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.72);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 2px 0 rgba(47,33,23,.08);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(47,33,23,.10);
}
.btn-primary {
  border-color: rgba(85,32,43,.8);
  color: #fff;
  background: linear-gradient(180deg, #8e3b4d 0%, var(--burgundy-deep) 100%);
}
.btn-ghost { background: rgba(255,255,255,.4); }

.cover-stack {
  display: grid;
  gap: 18px;
}
.cover-scene,
.scene-banner {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr;
  gap: 18px;
  align-items: stretch;
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(95,75,49,.18);
  background: rgba(255,255,255,.68);
  box-shadow: var(--shadow-sm);
}
.cover-scene-art,
.scene-art {
  min-height: 180px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(75,57,38,.2);
  background-color: #d7c7ab;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}
.cover-scene-art {
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.1), rgba(0,0,0,.05)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 420'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='0' y1='0' y2='1'%3E%3Cstop stop-color='%23efd9ae'/%3E%3Cstop offset='1' stop-color='%23b9a17c'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='600' height='420' fill='url(%23g)'/%3E%3Crect y='280' width='600' height='140' fill='%23899278'/%3E%3Crect y='320' width='600' height='100' fill='%23766148'/%3E%3Crect x='120' y='120' width='360' height='170' fill='%23eee7d9' stroke='%23725a46' stroke-width='4'/%3E%3Crect x='145' y='145' width='310' height='120' fill='%23d2c0a2' stroke='%23725a46' stroke-width='3'/%3E%3Crect x='160' y='160' width='35' height='90' fill='%23f8f4ea' stroke='%23725a46' stroke-width='2'/%3E%3Crect x='210' y='160' width='35' height='90' fill='%23f8f4ea' stroke='%23725a46' stroke-width='2'/%3E%3Crect x='260' y='160' width='80' height='105' fill='%23f5f1e6' stroke='%23725a46' stroke-width='2'/%3E%3Crect x='355' y='160' width='35' height='90' fill='%23f8f4ea' stroke='%23725a46' stroke-width='2'/%3E%3Crect x='405' y='160' width='35' height='90' fill='%23f8f4ea' stroke='%23725a46' stroke-width='2'/%3E%3Cpolygon points='100,120 300,45 500,120' fill='%238b5c4d' stroke='%23694c3e' stroke-width='4'/%3E%3Cline x1='300' y1='45' x2='300' y2='15' stroke='%23694c3e' stroke-width='4'/%3E%3Ccircle cx='300' cy='12' r='7' fill='%238b5c4d'/%3E%3Cpath d='M60 325 h65 l25 30 h-90z' fill='%23475046'/%3E%3Ccircle cx='78' cy='355' r='10' fill='%232a2f31'/%3E%3Ccircle cx='125' cy='355' r='10' fill='%232a2f31'/%3E%3Cpath d='M500 250 q20 -50 40 0 l10 45 h-65z' fill='%23637d63'/%3E%3Cpath d='M520 220 q-10 -35 18 -60 q12 26 0 58' fill='%23637d63'/%3E%3C/svg%3E");
}
.scene-copy h3,
.cover-scene-copy h3 {
  margin: 8px 0 8px;
  font-size: 1.24rem;
  line-height: 1.35;
}
.scene-copy p,
.cover-scene-copy p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.75;
  font-size: .95rem;
}
.scene-kicker,
.docket-kicker {
  color: var(--green);
  font-size: .68rem;
  font-weight: 800;
}

.case-docket {
  position: relative;
  padding: 22px 22px 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(31,44,41,.98), rgba(22,31,28,.98));
  color: #f2ebde;
  box-shadow: 0 18px 35px rgba(17,22,21,.28);
}
.case-docket::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 44%;
  width: 80px;
  height: 20px;
  border-radius: 4px;
  transform: rotate(-2deg);
  background: rgba(211, 191, 148, .7);
}
.docket-number {
  margin: 10px 0 2px;
  font: 800 clamp(3rem, 6vw, 4.3rem)/.95 var(--display-font);
  color: #fff6ea;
}
.docket-sub { color: rgba(255,255,255,.72); }
.docket-rule { border: 0; border-top: 1px solid rgba(255,255,255,.15); margin: 18px 0; }
.docket-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.docket-item span {
  display: block;
  margin-bottom: 4px;
  color: #d7c592;
  font: 700 .66rem/1.2 var(--mono-font);
  letter-spacing: .12em;
}
.docket-item strong {
  display: block;
  line-height: 1.45;
  font-size: .95rem;
}
.docket-stamp {
  margin-top: 18px;
  padding: 9px 10px;
  border: 1px solid rgba(184,147,84,.7);
  border-radius: 999px;
  text-align: center;
  color: #e7d2a7;
  font: 700 .68rem/1.3 var(--mono-font);
}

.topbar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: end;
  padding: 22px clamp(20px, 4vw, 38px) 18px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(36,75,67,.08), rgba(255,255,255,.02)),
    linear-gradient(120deg, rgba(184,147,84,.10), transparent 30%);
}
.topbar::after {
  content: "ARCHIVE COPY";
  position: absolute;
  right: 24px;
  bottom: -8px;
  padding: 3px 8px;
  font: 700 .58rem/1 var(--mono-font);
  letter-spacing: .12em;
  color: rgba(91,96,93,.7);
  background: var(--paper);
}
.case-id {
  color: var(--burgundy);
  font-size: .72rem;
  font-weight: 800;
}
.file-title {
  margin: 4px 0 0;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.12;
  font-weight: 700;
}
.topbar-right {
  display: grid;
  justify-items: end;
  gap: 8px;
}
.timestamp {
  color: var(--green);
  font: 700 .8rem/1.2 var(--mono-font);
}
.progress-badge {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(36,75,67,.15);
  background: rgba(36,75,67,.06);
  color: var(--green);
  font-size: .74rem;
  font-weight: 800;
}
.progress-wrap {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}
.progress-track {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(31,35,36,.08);
}
.progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green) 0%, #327062 48%, var(--gold) 100%);
}
.progress-text {
  color: var(--ink-soft);
  font: 700 .74rem/1 var(--mono-font);
}

.file-body,
.result-grid {
  position: relative;
  z-index: 2;
  padding: clamp(22px, 4vw, 38px);
}
.file-body::before {
  content: attr(data-file-watermark);
  position: absolute;
  top: 18px;
  right: 28px;
  font: 800 clamp(4rem, 11vw, 8rem)/1 var(--display-font);
  color: rgba(127,49,64,.06);
  pointer-events: none;
}
.prompt-card,
.epi-card {
  padding: 18px 18px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(95,75,49,.16);
  background: rgba(255,255,255,.66);
  box-shadow: var(--shadow-sm);
}
.prompt-label {
  margin-bottom: 10px;
  color: var(--green);
  font: 800 .66rem/1 var(--mono-font);
  letter-spacing: .12em;
}
.prompt {
  margin: 0;
  max-width: 860px;
  font-size: clamp(1.06rem, 2.1vw, 1.22rem);
  line-height: 1.9;
  font-weight: 600;
}
.options {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.option {
  position: relative;
  width: 100%;
  text-align: left;
  min-height: 88px;
  padding: 18px 18px 18px 64px;
  border-radius: 18px;
  border: 1px solid rgba(95,75,49,.16);
  background: rgba(255,255,255,.84);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.option:hover {
  transform: translateY(-1px);
  border-color: rgba(36,75,67,.26);
  box-shadow: 0 14px 24px rgba(39,29,20,.08);
  background: #fff;
}
.option .letter {
  position: absolute;
  left: 18px;
  top: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 28px;
  padding: 0 8px;
  border-radius: 9px;
  background: rgba(36,75,67,.08);
  border: 1px solid rgba(36,75,67,.18);
  color: var(--green);
  font: 700 .84rem/1 var(--display-font);
}
.option-text {
  display: block;
  line-height: 1.76;
  font-size: .99rem;
}
.option::after {
  content: "บันทึกการตัดสินใจ";
  position: absolute;
  right: 16px;
  bottom: 12px;
  color: rgba(91,96,93,.4);
  font: 700 .56rem/1 var(--mono-font);
  letter-spacing: .1em;
}
.option.selected {
  border-color: rgba(127,49,64,.4);
  background: linear-gradient(90deg, rgba(127,49,64,.08), rgba(255,255,255,.92));
  box-shadow: 0 18px 26px rgba(77,35,48,.08);
}
.option.selected .letter {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: #fff;
}
.option.selected::before {
  content: "เลือกแล้ว";
  position: absolute;
  top: 14px;
  right: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(127,49,64,.08);
  border: 1px solid rgba(127,49,64,.18);
  color: var(--burgundy);
  font: 700 .62rem/1 var(--display-font);
}
.nav-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 0 clamp(20px, 4vw, 38px) clamp(22px, 4vw, 34px);
}

.epilogue-grid {
  display: grid;
  gap: 18px;
}
.epilogue-scene { margin-bottom: 4px; }
.scale-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.scale-btn,
.outcome {
  border-radius: 14px;
  border: 1px solid rgba(95,75,49,.16);
  background: rgba(255,255,255,.85);
}
.scale-btn {
  min-height: 52px;
  padding: 10px 6px;
  font-weight: 800;
}
.scale-btn.selected {
  color: #fff;
  border-color: var(--burgundy-deep);
  background: linear-gradient(180deg, #8e3b4d, var(--burgundy-deep));
}
.outcome-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.outcome {
  padding: 14px 16px;
  text-align: left;
  line-height: 1.65;
}
.outcome:hover { background: #fff; }
.outcome.selected {
  border-color: rgba(36,75,67,.35);
  background: rgba(36,75,67,.08);
}

.result-head {
  position: relative;
  z-index: 2;
  padding: 32px clamp(20px, 4vw, 38px) 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(127,49,64,.08), rgba(255,255,255,0));
}
.result-head::after {
  content: "CASE CLOSED";
  position: absolute;
  right: clamp(20px, 4vw, 38px);
  top: 28px;
  transform: rotate(5deg);
  padding: 8px 12px;
  border-radius: 999px;
  border: 2px solid rgba(127,49,64,.5);
  color: var(--burgundy);
  font: 800 .62rem/1 var(--display-font);
}
.case-complete {
  color: var(--burgundy);
  font-size: .73rem;
  font-weight: 800;
}
.result-grid { display: grid; gap: 18px; }
.hero-result {
  display: grid;
  grid-template-columns: minmax(250px, 330px) 1fr;
  gap: clamp(20px, 3vw, 30px);
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(127,49,64,.2);
  background: linear-gradient(135deg, rgba(127,49,64,.08), rgba(184,147,84,.08), rgba(255,255,255,.72));
}
.portrait-dossier {
  position: relative;
  min-height: 400px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(95,75,49,.18);
  background: linear-gradient(180deg, #e4d6b9, #d6c4a0);
  box-shadow: var(--shadow-sm);
}
.portrait-dossier::before {
  content: "PERSONNEL DOSSIER";
  position: absolute;
  left: 18px;
  top: 16px;
  z-index: 3;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--burgundy);
  color: #fff;
  font: 700 .56rem/1 var(--mono-font);
  letter-spacing: .12em;
}
.portrait-window {
  position: absolute;
  inset: 48px 22px 70px;
  border-radius: 18px;
  border: 10px solid rgba(255,248,236,.9);
  box-shadow: inset 0 0 0 1px rgba(47,33,23,.18);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(0,0,0,.08)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 540 720'%3E%3Cdefs%3E%3ClinearGradient id='bg' x1='0' x2='0' y1='0' y2='1'%3E%3Cstop stop-color='%23d8c6a7'/%3E%3Cstop offset='1' stop-color='%2397a08b'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='540' height='720' fill='url(%23bg)'/%3E%3Ccircle cx='270' cy='205' r='88' fill='%23353b38' opacity='.45'/%3E%3Crect x='145' y='310' width='250' height='250' rx='120' fill='%23353b38' opacity='.38'/%3E%3Cpath d='M0 560 C140 500 380 505 540 560 L540 720 L0 720 Z' fill='%235f736b' opacity='.55'/%3E%3Ctext x='270' y='660' fill='rgba(255,248,236,.8)' text-anchor='middle' font-size='22' font-family='monospace'%3ECHARACTER ART PLACEHOLDER%3C/text%3E%3C/svg%3E") center/cover;
}
.portrait-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}
.portrait-code {
  color: var(--burgundy-deep);
  font: 800 1.95rem/1 var(--display-font);
}
.portrait-name {
  text-align: right;
  color: var(--ink-soft);
  font-size: .78rem;
  line-height: 1.45;
  font-weight: 700;
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.result-card-head {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: start;
  margin-top: 12px;
}
.mini-portrait {
  width: 88px;
  height: 112px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(95,75,49,.18);
  background: #eadfcb;
}
.rank {
  color: var(--burgundy);
  font-size: .73rem;
  font-weight: 800;
}
.program-name {
  margin: 8px 0 4px;
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  line-height: 1.04;
}
.program-meta {
  color: var(--ink-soft);
  font-size: .96rem;
  line-height: 1.6;
}
.archetype {
  display: inline-flex;
  margin: 12px 0 14px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(36,75,67,.15);
  background: rgba(36,75,67,.06);
  color: var(--green);
  font: 700 .8rem/1.3 var(--display-font);
}
.reason {
  line-height: 1.85;
  font-size: 1rem;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 4px; }
.evidence {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.evidence > strong {
  font-size: 1.05rem;
  font-family: var(--display-font);
}
.evidence-item,
.review-item,
.result-card,
.route-item,
.modal {
  box-shadow: var(--shadow-sm);
}
.evidence-item {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(184,147,84,.18);
  background: rgba(184,147,84,.08);
  line-height: 1.6;
}
.secondary-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.result-card {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  padding: 24px 22px 22px;
  border-radius: 18px;
  border: 1px solid rgba(95,75,49,.16);
  background: rgba(255,255,255,.72);
}
.result-card::before {
  content: attr(data-rank);
  position: absolute;
  right: 18px;
  top: 12px;
  color: rgba(127,49,64,.08);
  font: 800 5.6rem/1 var(--display-font);
}
.result-card h3 { margin: 10px 0 4px; font-size: 1.58rem; }
.result-card h4 { margin: 16px 0 8px; font-size: .95rem; }
.route {
  border-top: 1px dashed rgba(63,52,43,.18);
  padding-top: 22px;
}
.route h2 { margin: 0 0 12px; font-size: 1.6rem; }
.route-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.route-item {
  position: relative;
  min-height: 118px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(95,75,49,.16);
  background: rgba(255,255,255,.76);
}
.route-item::after {
  content: "→";
  position: absolute;
  right: 16px;
  bottom: 8px;
  color: rgba(127,49,64,.18);
  font: 800 2rem/1 var(--display-font);
}
.route-kicker {
  color: var(--burgundy);
  font-size: .62rem;
  font-weight: 800;
}
.route-name {
  margin-top: 12px;
  line-height: 1.6;
  font-weight: 700;
}

.debug {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  border: 1px dashed rgba(127,49,64,.35);
  background: rgba(127,49,64,.05);
  color: var(--ink);
  font: .76rem/1.5 var(--mono-font);
  white-space: pre-wrap;
  overflow: auto;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  padding: 18px;
  display: grid;
  place-items: center;
  background: rgba(13,17,16,.72);
  backdrop-filter: blur(6px);
}
.modal {
  width: min(760px, 100%);
  max-height: 88vh;
  overflow: auto;
  padding: 24px;
  border-radius: 22px;
  border: 1px solid rgba(229, 218, 196, .7);
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
}
.modal::before {
  content: "SUPHAVET ARCHIVE";
  display: inline-block;
  margin-bottom: 14px;
  color: var(--burgundy);
  font: 800 .62rem/1 var(--mono-font);
  letter-spacing: .12em;
}
.review-list {
  display: grid;
  gap: 10px;
}
.review-item {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(95,75,49,.14);
  background: rgba(255,255,255,.78);
  line-height: 1.65;
}


.scene-art-1 { background-image: linear-gradient(180deg, rgba(255,255,255,.12), rgba(0,0,0,.05)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 360'%3E%3Crect width='600' height='360' fill='%23dac9ac'/%3E%3Crect y='250' width='600' height='110' fill='%23948465'/%3E%3Crect x='100' y='95' width='400' height='170' fill='%23efe7d8' stroke='%23705c44' stroke-width='4'/%3E%3Cpolygon points='80,95 300,30 520,95' fill='%23885a49' stroke='%23705c44' stroke-width='4'/%3E%3Crect x='135' y='125' width='60' height='95' fill='%23faf6ee' stroke='%23705c44' stroke-width='2'/%3E%3Crect x='220' y='125' width='160' height='110' fill='%23ddd1ba' stroke='%23705c44' stroke-width='2'/%3E%3Crect x='405' y='125' width='60' height='95' fill='%23faf6ee' stroke='%23705c44' stroke-width='2'/%3E%3Crect x='250' y='145' width='100' height='55' fill='%23f4eee1' stroke='%23705c44' stroke-width='2'/%3E%3Cpath d='M35 275 h80 l30 25 h-110z' fill='%234c5b56'/%3E%3Ccircle cx='58' cy='305' r='10' fill='%23272d2e'/%3E%3Ccircle cx='103' cy='305' r='10' fill='%23272d2e'/%3E%3C/svg%3E"); }
.scene-art-2 { background-image: linear-gradient(180deg, rgba(255,255,255,.12), rgba(0,0,0,.06)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 360'%3E%3Crect width='600' height='360' fill='%23d8cbb4'/%3E%3Crect y='250' width='600' height='110' fill='%23b79f7a'/%3E%3Crect x='90' y='165' width='250' height='70' rx='10' fill='%23f1ede4' stroke='%23756348' stroke-width='4'/%3E%3Crect x='105' y='140' width='115' height='30' rx='6' fill='%23fbf8ef' stroke='%23756348' stroke-width='3'/%3E%3Crect x='90' y='235' width='250' height='20' fill='%2389724f'/%3E%3Cline x1='90' y1='165' x2='90' y2='275' stroke='%23756348' stroke-width='5'/%3E%3Cline x1='340' y1='165' x2='340' y2='275' stroke='%23756348' stroke-width='5'/%3E%3Crect x='405' y='110' width='110' height='140' fill='%23f6f2e7' stroke='%23756348' stroke-width='4'/%3E%3Cline x1='420' y1='145' x2='500' y2='145' stroke='%237f3140' stroke-width='4'/%3E%3Cline x1='420' y1='175' x2='500' y2='175' stroke='%23244b43' stroke-width='4'/%3E%3Cline x1='420' y1='205' x2='480' y2='205' stroke='%23756348' stroke-width='4'/%3E%3C/svg%3E"); }
.scene-art-3 { background-image: linear-gradient(180deg, rgba(255,255,255,.12), rgba(0,0,0,.05)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 360'%3E%3Crect width='600' height='360' fill='%23d9c9ad'/%3E%3Crect y='255' width='600' height='105' fill='%23927d5c'/%3E%3Crect x='70' y='95' width='460' height='160' rx='12' fill='%23f4eee1' stroke='%23705c44' stroke-width='4'/%3E%3Cpath d='M150 115 v85 l-28 45 h88 l-28-45 v-85' fill='%2385a29a' stroke='%2348635d' stroke-width='4'/%3E%3Cpath d='M280 110 h80 v18 l-14 12 v60 l34 42 h-120 l34-42 v-60 l-14-12z' fill='%23b0737b' stroke='%237f3140' stroke-width='4'/%3E%3Ccircle cx='450' cy='160' r='45' fill='none' stroke='%2348635d' stroke-width='8'/%3E%3Ccircle cx='450' cy='160' r='18' fill='none' stroke='%2348635d' stroke-width='6'/%3E%3Cpath d='M486 196 l34 34' stroke='%2348635d' stroke-width='8' stroke-linecap='round'/%3E%3C/svg%3E"); }
.scene-art-4 { background-image: linear-gradient(180deg, rgba(255,255,255,.12), rgba(0,0,0,.05)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 360'%3E%3Crect width='600' height='360' fill='%23ddcfb4'/%3E%3Crect y='205' width='600' height='155' fill='%23a79370'/%3E%3Crect x='110' y='125' width='110' height='95' fill='%23efe6d7' stroke='%23705c44' stroke-width='4'/%3E%3Cpolygon points='95,125 165,80 235,125' fill='%23885c4a' stroke='%23705c44' stroke-width='4'/%3E%3Crect x='145' y='165' width='26' height='55' fill='%23845d4b'/%3E%3Crect x='280' y='150' width='120' height='70' fill='%23f0e8d9' stroke='%23705c44' stroke-width='4'/%3E%3Cpolygon points='265,150 340,102 415,150' fill='%23895b48' stroke='%23705c44' stroke-width='4'/%3E%3Cpath d='M460 150 q22 -55 48 0 l12 70 h-72z' fill='%23738868'/%3E%3Cpath d='M485 126 q-12 -30 15 -58 q16 20 5 52' fill='%23738868'/%3E%3Ccircle cx='65' cy='235' r='18' fill='%23a23f49'/%3E%3C/svg%3E"); }
.scene-art-5 { background-image: linear-gradient(180deg, rgba(15,15,15,.02), rgba(0,0,0,.22)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 360'%3E%3Crect width='600' height='360' fill='%239d8e78'/%3E%3Crect y='235' width='600' height='125' fill='%23655f58'/%3E%3Ccircle cx='90' cy='75' r='36' fill='%23f1deb2' opacity='.7'/%3E%3Crect x='100' y='150' width='250' height='62' rx='10' fill='%23f4efe3' stroke='%23685a46' stroke-width='4'/%3E%3Crect x='100' y='212' width='250' height='16' fill='%23856d52'/%3E%3Cline x1='100' y1='150' x2='100' y2='270' stroke='%23685a46' stroke-width='5'/%3E%3Cline x1='350' y1='150' x2='350' y2='270' stroke='%23685a46' stroke-width='5'/%3E%3Crect x='408' y='116' width='92' height='126' fill='%23f0eadb' stroke='%23685a46' stroke-width='4'/%3E%3Cline x1='424' y1='155' x2='484' y2='155' stroke='%23d6b46e' stroke-width='4'/%3E%3Cline x1='424' y1='185' x2='475' y2='185' stroke='%23b0737b' stroke-width='4'/%3E%3C/svg%3E"); }
.scene-art-6 { background-image: linear-gradient(180deg, rgba(255,255,255,.12), rgba(0,0,0,.05)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 360'%3E%3Crect width='600' height='360' fill='%23d9c8aa'/%3E%3Crect y='190' width='600' height='170' fill='%23af9a74'/%3E%3Cpath d='M40 250 C150 210 290 205 560 255 V360 H40 Z' fill='%23887758'/%3E%3Crect x='120' y='120' width='140' height='80' fill='%23f0e6d5' stroke='%23705c44' stroke-width='4'/%3E%3Cpolygon points='105,120 190,72 275,120' fill='%23885b47' stroke='%23705c44' stroke-width='4'/%3E%3Crect x='165' y='148' width='26' height='52' fill='%23835b49'/%3E%3Crect x='330' y='132' width='145' height='68' fill='%23f5edde' stroke='%23705c44' stroke-width='4'/%3E%3Cline x1='344' y1='156' x2='460' y2='156' stroke='%237f3140' stroke-width='4'/%3E%3Cline x1='344' y1='179' x2='430' y2='179' stroke='%23244b43' stroke-width='4'/%3E%3Ccircle cx='514' cy='138' r='22' fill='%23738868'/%3E%3C/svg%3E"); }
.scene-art-7 { background-image: linear-gradient(180deg, rgba(255,255,255,.12), rgba(0,0,0,.05)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 360'%3E%3Crect width='600' height='360' fill='%23dccdb1'/%3E%3Crect y='220' width='600' height='140' fill='%23ac9872'/%3E%3Crect x='70' y='132' width='120' height='88' fill='%23f5ecdd' stroke='%23705c44' stroke-width='4'/%3E%3Cline x1='86' y1='155' x2='172' y2='155' stroke='%237f3140' stroke-width='4'/%3E%3Cline x1='86' y1='180' x2='160' y2='180' stroke='%23244b43' stroke-width='4'/%3E%3Crect x='245' y='118' width='120' height='102' fill='%23f5ecdd' stroke='%23705c44' stroke-width='4'/%3E%3Cline x1='260' y1='145' x2='348' y2='145' stroke='%23705c44' stroke-width='4'/%3E%3Cline x1='260' y1='170' x2='340' y2='170' stroke='%237f3140' stroke-width='4'/%3E%3Crect x='430' y='130' width='92' height='92' fill='%23efe3cf' stroke='%23705c44' stroke-width='4'/%3E%3Ccircle cx='476' cy='176' r='24' fill='none' stroke='%23738868' stroke-width='6'/%3E%3C/svg%3E"); }
.scene-art-8 { background-image: linear-gradient(180deg, rgba(255,255,255,.12), rgba(0,0,0,.05)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 360'%3E%3Crect width='600' height='360' fill='%23d9c9ad'/%3E%3Crect y='245' width='600' height='115' fill='%23948062'/%3E%3Crect x='65' y='96' width='470' height='155' rx='14' fill='%23f4eee1' stroke='%23705c44' stroke-width='4'/%3E%3Crect x='110' y='128' width='82' height='90' fill='%23fefbf4' stroke='%23705c44' stroke-width='3'/%3E%3Cline x1='235' y1='143' x2='355' y2='143' stroke='%23244b43' stroke-width='5'/%3E%3Cline x1='235' y1='178' x2='390' y2='178' stroke='%237f3140' stroke-width='5'/%3E%3Cline x1='235' y1='208' x2='340' y2='208' stroke='%23705c44' stroke-width='5'/%3E%3Ccircle cx='465' cy='178' r='36' fill='none' stroke='%2348635d' stroke-width='8'/%3E%3C/svg%3E"); }
.scene-art-9 { background-image: linear-gradient(180deg, rgba(255,255,255,.12), rgba(0,0,0,.05)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 360'%3E%3Crect width='600' height='360' fill='%23dac9ac'/%3E%3Cg stroke='%23705c44' stroke-width='3' opacity='.55'%3E%3Cpath d='M60 300 C120 220 180 220 250 130 S390 20 520 80' fill='none'/%3E%3Cpath d='M70 80 C130 120 180 150 240 140 S360 110 450 180 S520 260 560 310' fill='none'/%3E%3Cpath d='M170 35 L190 330'/%3E%3Cpath d='M330 35 L355 325'/%3E%3Cpath d='M460 45 L470 320'/%3E%3C/g%3E%3Cg fill='%23a23f49'%3E%3Ccircle cx='125' cy='210' r='10'/%3E%3Ccircle cx='275' cy='145' r='10'/%3E%3Ccircle cx='410' cy='185' r='10'/%3E%3Ccircle cx='515' cy='110' r='10'/%3E%3C/g%3E%3C/svg%3E"); }
.scene-art-10 { background-image: linear-gradient(180deg, rgba(255,255,255,.12), rgba(0,0,0,.05)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 360'%3E%3Crect width='600' height='360' fill='%23ddd2bb'/%3E%3Crect y='245' width='600' height='115' fill='%23baab8a'/%3E%3Crect x='85' y='145' width='228' height='62' rx='10' fill='%23f4efe4' stroke='%23756348' stroke-width='4'/%3E%3Crect x='84' y='207' width='228' height='16' fill='%2389724f'/%3E%3Cline x1='84' y1='145' x2='84' y2='275' stroke='%23756348' stroke-width='5'/%3E%3Cline x1='312' y1='145' x2='312' y2='275' stroke='%23756348' stroke-width='5'/%3E%3Cpath d='M382 225 q30 -20 70 0 q45 24 92 -6' fill='none' stroke='%23244b43' stroke-width='6' stroke-linecap='round'/%3E%3Ccircle cx='410' cy='155' r='22' fill='none' stroke='%237f3140' stroke-width='5'/%3E%3Ccircle cx='472' cy='145' r='18' fill='none' stroke='%23b89354' stroke-width='5'/%3E%3C/svg%3E"); }
.scene-art-11 { background-image: linear-gradient(180deg, rgba(255,255,255,.12), rgba(0,0,0,.05)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 360'%3E%3Crect width='600' height='360' fill='%23dac8aa'/%3E%3Crect y='250' width='600' height='110' fill='%23978362'/%3E%3Crect x='55' y='102' width='490' height='148' rx='14' fill='%23f4eee1' stroke='%23705c44' stroke-width='4'/%3E%3Crect x='90' y='128' width='110' height='84' fill='%23fffaf0' stroke='%23705c44' stroke-width='3'/%3E%3Crect x='225' y='128' width='126' height='84' fill='%23fffaf0' stroke='%23705c44' stroke-width='3'/%3E%3Crect x='376' y='128' width='132' height='84' fill='%23fffaf0' stroke='%23705c44' stroke-width='3'/%3E%3Cline x1='108' y1='154' x2='180' y2='154' stroke='%237f3140' stroke-width='4'/%3E%3Cline x1='245' y1='170' x2='328' y2='170' stroke='%23244b43' stroke-width='4'/%3E%3Cline x1='392' y1='146' x2='488' y2='146' stroke='%23b89354' stroke-width='4'/%3E%3C/svg%3E"); }
.scene-art-12 { background-image: linear-gradient(180deg, rgba(255,255,255,.12), rgba(0,0,0,.05)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 360'%3E%3Crect width='600' height='360' fill='%23dcccaf'/%3E%3Crect x='85' y='70' width='430' height='220' fill='%23f2eadb' stroke='%23705c44' stroke-width='4'/%3E%3Cline x1='195' y1='70' x2='195' y2='290' stroke='%23b79f7a' stroke-width='5'/%3E%3Cline x1='300' y1='70' x2='300' y2='290' stroke='%23b79f7a' stroke-width='5'/%3E%3Cline x1='405' y1='70' x2='405' y2='290' stroke='%23b79f7a' stroke-width='5'/%3E%3Crect x='145' y='105' width='280' height='115' fill='%23d1c1a4' stroke='%23705c44' stroke-width='4'/%3E%3Cline x1='160' y1='130' x2='410' y2='130' stroke='%237f3140' stroke-width='4'/%3E%3Cline x1='160' y1='160' x2='395' y2='160' stroke='%23244b43' stroke-width='4'/%3E%3Cline x1='160' y1='190' x2='380' y2='190' stroke='%23705c44' stroke-width='4'/%3E%3Ccircle cx='470' cy='120' r='28' fill='%23b89354' opacity='.45'/%3E%3C/svg%3E"); }
.scene-art-13 { background-image: linear-gradient(180deg, rgba(255,255,255,.10), rgba(0,0,0,.05)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 360'%3E%3Crect width='600' height='360' fill='%23d9c8ab'/%3E%3Crect x='70' y='75' width='470' height='210' fill='%23f2eadb' stroke='%23705c44' stroke-width='4'/%3E%3Cline x1='116' y1='140' x2='490' y2='140' stroke='%23705c44' stroke-width='4'/%3E%3Cline x1='116' y1='182' x2='460' y2='182' stroke='%23244b43' stroke-width='4'/%3E%3Cline x1='116' y1='224' x2='430' y2='224' stroke='%237f3140' stroke-width='4'/%3E%3Crect x='100' y='100' width='90' height='34' fill='%23b89354' opacity='.55'/%3E%3Crect x='470' y='95' width='38' height='38' fill='%23a23f49' opacity='.45'/%3E%3Ccircle cx='515' cy='235' r='26' fill='%23738868' opacity='.4'/%3E%3C/svg%3E"); }
.scene-art-14 { background-image: linear-gradient(180deg, rgba(255,255,255,.12), rgba(0,0,0,.05)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 360'%3E%3Crect width='600' height='360' fill='%23ddcfb4'/%3E%3Crect y='225' width='600' height='135' fill='%23b5a17d'/%3E%3Crect x='88' y='100' width='424' height='124' rx='14' fill='%23f5edde' stroke='%23705c44' stroke-width='4'/%3E%3Crect x='115' y='130' width='80' height='68' fill='%23e8dcc4' stroke='%23705c44' stroke-width='3'/%3E%3Crect x='220' y='130' width='80' height='68' fill='%23e8dcc4' stroke='%23705c44' stroke-width='3'/%3E%3Crect x='325' y='130' width='80' height='68' fill='%23e8dcc4' stroke='%23705c44' stroke-width='3'/%3E%3Crect x='430' y='130' width='55' height='68' fill='%23e8dcc4' stroke='%23705c44' stroke-width='3'/%3E%3Cline x1='135' y1='160' x2='175' y2='160' stroke='%237f3140' stroke-width='4'/%3E%3Cline x1='240' y1='160' x2='280' y2='160' stroke='%23244b43' stroke-width='4'/%3E%3Cline x1='345' y1='160' x2='385' y2='160' stroke='%23b89354' stroke-width='4'/%3E%3C/svg%3E"); }
.scene-art-15 { background-image: linear-gradient(180deg, rgba(255,255,255,.12), rgba(0,0,0,.05)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 360'%3E%3Crect width='600' height='360' fill='%23dcccaf'/%3E%3Crect x='100' y='82' width='400' height='210' fill='%23f4ecdc' stroke='%23705c44' stroke-width='4'/%3E%3Crect x='140' y='118' width='320' height='38' fill='%23fffaf0' stroke='%23705c44' stroke-width='3'/%3E%3Crect x='140' y='170' width='92' height='92' fill='%23ece0ca' stroke='%23705c44' stroke-width='3'/%3E%3Crect x='252' y='170' width='92' height='92' fill='%23ece0ca' stroke='%23705c44' stroke-width='3'/%3E%3Crect x='364' y='170' width='92' height='92' fill='%23ece0ca' stroke='%23705c44' stroke-width='3'/%3E%3Ccircle cx='186' cy='216' r='16' fill='%237f3140' opacity='.5'/%3E%3Ccircle cx='298' cy='216' r='16' fill='%23244b43' opacity='.45'/%3E%3Ccircle cx='410' cy='216' r='16' fill='%23b89354' opacity='.5'/%3E%3C/svg%3E"); }

@media (max-width: 980px) {
  .cover-grid { grid-template-columns: 1fr; }
  .hero-result { grid-template-columns: 1fr; }
  .portrait-dossier { max-width: 420px; width: 100%; margin: 0 auto; }
}

@media (max-width: 720px) {
  .app-shell { width: min(100% - 12px, 1160px); padding-top: 6px; }
  .cover { min-height: auto; padding: 20px 16px 18px; }
  .cover::before {
  content: none;
  display: none;
}
  .cover-scene,
  .scene-banner { grid-template-columns: 1fr; }
  .cover-scene-art,
  .scene-art { min-height: 180px; }
  .docket-list { grid-template-columns: 1fr; }
  .topbar {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 20px 16px 16px;
  }
  .topbar-right { justify-items: start; }
  .topbar::after { display: none; }
  .file-body,
  .result-grid { padding: 18px 16px; }
  .file-body::before { right: 12px; top: 14px; font-size: 5rem; }
  .option { padding: 16px 14px 20px 56px; }
  .option::after { display: none; }
  .option.selected::before { top: auto; bottom: 12px; }
  .nav-row {
    position: sticky;
    bottom: 0;
    z-index: 4;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(242,234,219,0), rgba(242,234,219,.96) 28%);
  }
  .btn { flex: 1 1 0; justify-content: center; }
  .secondary-results,
  .route-grid { grid-template-columns: 1fr; }
  .result-card-head { grid-template-columns: 76px 1fr; gap: 12px; }
  .mini-portrait { width: 76px; height: 98px; }
  .result-head { padding: 26px 16px 16px; }
  .result-head::after { right: 16px; top: 18px; font-size: .56rem; }
  .hero-result { padding: 16px; }
  .program-name { font-size: 2.2rem; }
  .scale-row { gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}


.cover-final {
  min-height: auto;
}
.cover-final::before {
  content: none;
  display: none;
}
.cover-main {
  display: grid;
  align-content: start;
  gap: 0;
}
.home-highlights {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
.home-highlight {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(95,75,49,.14);
  background: rgba(255,255,255,.72);
  box-shadow: var(--shadow-sm);
}
.home-highlight strong {
  font-size: .92rem;
  color: var(--green);
}
.home-highlight span {
  color: var(--ink);
  line-height: 1.65;
  font-size: .96rem;
}
.home-quote {
  margin-top: 18px;
}
.theory-strip {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(95,75,49,.14);
  background: rgba(36,75,67,.06);
}
.theory-label {
  color: var(--green);
  font-size: .84rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.theory-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.theory-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(36,75,67,.14);
  font-size: .82rem;
  font-weight: 800;
  color: var(--green);
}
.home-note {
  margin-top: 16px;
}
.cover-scene-large .cover-scene-art {
  min-height: 280px;
}
.case-docket-clean {
  padding-top: 18px;
}
.case-docket-clean::before {
  display: none;
}
.docket-list-single {
  grid-template-columns: 1fr;
  margin-top: 18px;
}
.result-paper .result-head::after {
  transform: rotate(4deg);
}
.result-summary-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.summary-card {
  padding: 16px 16px 15px;
  border-radius: 16px;
  border: 1px solid rgba(95,75,49,.14);
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow-sm);
}
.summary-card span {
  display: block;
  color: var(--burgundy);
  font: 800 .68rem/1.2 var(--mono-font);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.summary-card strong {
  display: block;
  margin-top: 10px;
  font-family: var(--display-font);
  font-size: 1.1rem;
  line-height: 1.35;
}
.summary-card small {
  display: block;
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: .84rem;
  line-height: 1.45;
}
.hero-result {
  padding: 24px;
  border-width: 1px;
}
.result-card {
  padding-top: 20px;
}
.result-card h3 {
  margin-top: 2px;
  line-height: 1.25;
}
.result-card .archetype {
  margin-top: 8px;
}
@media (max-width: 720px) {
  .cover-grid {
    gap: 18px;
  }
  h1 {
    font-size: clamp(2.6rem, 12vw, 3.5rem);
  }
  .subtitle {
    font-size: 1.12rem;
  }
  .lead {
    margin-top: 16px;
    font-size: .99rem;
    line-height: 1.8;
  }
  .home-highlights {
    gap: 10px;
    margin-top: 16px;
  }
  .home-highlight {
    padding: 12px 14px;
  }
  .theory-strip {
    padding: 12px 14px;
  }
  .theory-chip {
    min-height: 32px;
    padding: 5px 10px;
  }
  .cover-stack {
    gap: 14px;
  }
  .cover-scene-large .cover-scene-art,
  .cover-scene-art {
    min-height: 220px;
  }
  .quote {
    padding: 15px 16px 15px 18px;
  }
  .actions {
    margin-top: 20px;
  }
  .actions .btn {
    width: 100%;
  }
  .result-summary-strip {
    grid-template-columns: 1fr;
  }
  .summary-card strong {
    font-size: 1.02rem;
  }
  .hero-result {
    gap: 16px;
    padding: 16px;
  }
}

.scene-art, .cover-scene-art {
  position: relative;
  overflow: hidden;
}
.scene-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 2;
}

/* ===== v0.8: deeper questions + mobile-first readability + radar result ===== */
.game-paper .file-title {
  font-size: clamp(2.15rem, 5vw, 3.15rem);
}
.game-paper .scene-copy h3 {
  font-size: clamp(1.35rem, 2.8vw, 1.65rem);
}
.game-paper .scene-copy p {
  font-size: 1.02rem;
  line-height: 1.82;
}
.game-paper .prompt-card {
  margin-top: 18px;
  padding: 22px 22px 20px;
}
.game-paper .prompt-label {
  font-size: .76rem;
}
.game-paper .prompt {
  font-size: clamp(1.18rem, 2.8vw, 1.42rem);
  line-height: 1.72;
  font-weight: 700;
}
.game-paper .options {
  gap: 14px;
}
.game-paper .option {
  min-height: 82px;
  padding: 20px 18px 20px 66px;
}
.game-paper .option-text {
  font-size: clamp(1.04rem, 2.2vw, 1.14rem);
  line-height: 1.66;
  font-weight: 550;
}
.game-paper .option .letter {
  top: 20px;
  left: 18px;
  min-width: 32px;
  height: 30px;
  font-size: .92rem;
}
.game-paper .option::after {
  display: none;
}
.profile-panel {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(300px, 1.08fr);
  gap: 24px;
  align-items: center;
  padding: 24px;
  border-radius: 22px;
  border: 1px solid rgba(36,75,67,.15);
  background: linear-gradient(135deg, rgba(36,75,67,.07), rgba(255,255,255,.78));
  box-shadow: var(--shadow-sm);
}
.profile-copy h2 {
  margin: 4px 0 8px;
  font-size: clamp(1.55rem, 3vw, 2rem);
}
.profile-copy p {
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0 0 16px;
}
.profile-highlights {
  display: grid;
  gap: 9px;
}
.profile-highlight {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 11px 13px;
  border-radius: 13px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(95,75,49,.12);
}
.profile-highlight strong {
  font-size: .94rem;
  line-height: 1.4;
}
.profile-highlight span {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 30px;
  padding: 0 8px;
  border-radius: 9px;
  color: var(--green);
  background: rgba(36,75,67,.08);
  font-weight: 800;
}
.radar-wrap {
  min-width: 0;
  display: grid;
  place-items: center;
}
.radar-svg {
  width: min(100%, 390px);
  height: auto;
  overflow: visible;
}
.radar-grid polygon,
.radar-grid line {
  fill: none;
  stroke: rgba(91,96,93,.24);
  stroke-width: 1.2;
}
.radar-data {
  fill: rgba(127,49,64,.18);
  stroke: var(--burgundy);
  stroke-width: 3;
  stroke-linejoin: round;
}
.radar-svg text {
  fill: var(--ink);
  font-family: var(--body-font);
  font-size: 12px;
  font-weight: 700;
}
.result-summary-strip .summary-card:first-child {
  border-color: rgba(127,49,64,.26);
  background: linear-gradient(135deg, rgba(127,49,64,.09), rgba(255,255,255,.8));
}
.route-name span {
  color: var(--ink-soft);
  font-size: .82rem;
  font-weight: 500;
}
.result-card .reason,
.hero-result .reason {
  font-size: 1.02rem;
  line-height: 1.82;
}
.result-card h4,
.hero-result h3 {
  font-size: 1.08rem;
}

@media (max-width: 760px) {
  .app-shell { width: min(100% - 8px, 1160px); }
  .paper { border-radius: 18px; }
  .game-paper .topbar {
    padding: 20px 16px 16px;
  }
  .game-paper .file-title {
    font-size: clamp(2rem, 9vw, 2.75rem);
  }
  .game-paper .file-body {
    padding: 14px 12px 18px;
  }
  .game-paper .scene-banner {
    gap: 12px;
    padding: 12px;
  }
  .game-paper .scene-art {
    min-height: 205px;
  }
  .game-paper .scene-copy h3 {
    font-size: 1.34rem;
    margin-top: 5px;
  }
  .game-paper .scene-copy p {
    font-size: 1rem;
    line-height: 1.68;
  }
  .game-paper .prompt-card {
    padding: 18px 16px;
  }
  .game-paper .prompt {
    font-size: 1.21rem;
    line-height: 1.65;
  }
  .game-paper .option {
    min-height: 76px;
    padding: 17px 14px 17px 58px;
    border-radius: 15px;
  }
  .game-paper .option-text {
    font-size: 1.07rem;
    line-height: 1.58;
  }
  .game-paper .option .letter {
    left: 14px;
    top: 17px;
  }
  .game-paper .option.selected::before {
    display: none;
  }
  .profile-panel {
    grid-template-columns: 1fr;
    padding: 18px 14px;
    gap: 10px;
  }
  .radar-svg {
    width: min(100%, 340px);
  }
  .radar-svg text { font-size: 11.5px; }
  .hero-result .program-name { font-size: 2.25rem; }
  .result-card .reason,
  .hero-result .reason {
    font-size: 1rem;
    line-height: 1.72;
  }
  .result-summary-strip { gap: 8px; }
  .summary-card { padding: 13px 14px; }
  .result-paper .actions .btn { width: 100%; }
}

/* ===== FINAL PRODUCTION: cinematic scenes + shareable result ===== */
.cover-scene-art,
.game-paper .scene-art {
  background-color: #d9c9ad;
  background-size: cover;
  background-position: center;
  image-rendering: auto;
}
.cover-scene-art::after,
.game-paper .scene-art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,248,236,.02) 45%, rgba(36,75,67,.08) 100%);
}
.cover-scene-art .scene-photo,
.game-paper .scene-art .scene-photo {
  filter: saturate(.92) contrast(1.03);
}
.cover-scene-large {
  background: rgba(255,255,255,.82);
}
.cover-scene-large .cover-scene-art {
  min-height: 320px;
}

.result-paper {
  background:
    linear-gradient(180deg, #12362f 0, #173f36 235px, #f5eee1 235px, #f5eee1 100%);
}
.result-paper::before { border-color: rgba(231,193,110,.16); }
.result-paper .result-head {
  color: #fff7e9;
  border-bottom-color: rgba(255,255,255,.12);
  background: transparent;
}
.result-paper .result-head .file-title { color: #fffaf0; }
.result-paper .result-head .fineprint { color: rgba(255,247,233,.74); }
.result-paper .result-head::after {
  color: #efd188;
  border-color: rgba(239,209,136,.7);
}
.result-paper .case-complete { color: #efd188; }
.result-summary-strip { margin-top: -4px; }
.result-summary-strip .summary-card {
  border-color: rgba(79,55,35,.12);
  background: rgba(255,252,245,.94);
}
.result-summary-strip .summary-card:first-child {
  background: linear-gradient(135deg, #fff6df, #f3e0b5);
  border-color: rgba(184,147,84,.46);
  box-shadow: 0 14px 32px rgba(74,49,23,.13);
}
.hero-result {
  border-color: rgba(184,147,84,.38);
  background: linear-gradient(135deg, #fff8e8, #f2dfb9 55%, #fbf5e9);
  box-shadow: 0 18px 44px rgba(56,38,21,.13);
}
.hero-result .rank { color: #70501c; }
.hero-result .archetype { background: rgba(36,75,67,.09); }
.profile-panel {
  background: linear-gradient(135deg, #fdf9f1, #edf3ee);
  border-color: rgba(36,75,67,.18);
}
.secondary-results .result-card {
  background: rgba(255,253,248,.95);
}
.route {
  padding: 22px;
  border: 1px solid rgba(36,75,67,.12);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(36,75,67,.07), rgba(255,255,255,.7));
}

.share-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(250px, .58fr);
  gap: 22px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(231,193,110,.28);
  color: #fff7e9;
  background:
    radial-gradient(circle at 85% 0%, rgba(231,193,110,.16), transparent 28%),
    linear-gradient(145deg, #0d2d27, #163c34);
  box-shadow: 0 20px 45px rgba(10,31,27,.18);
}
.share-copy h2 {
  margin: 4px 0 8px;
  color: #fff7e9;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
}
.share-copy > p {
  margin: 0;
  color: rgba(255,247,233,.76);
  line-height: 1.72;
}
.share-panel .prompt-label { color: #e7c16e; }
.share-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
  margin-top: 18px;
}
.share-btn {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 66px;
  padding: 10px 12px;
  text-align: left;
  color: #17342f;
  border: 0;
  border-radius: 16px;
  background: #fffaf0;
  box-shadow: 0 9px 22px rgba(0,0,0,.12);
  transition: transform .15s ease, filter .15s ease;
}
.share-btn:hover { transform: translateY(-1px); filter: brightness(1.02); }
.share-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  font: 800 1.18rem/1 var(--display-font);
  color: #fff;
  background: #244b43;
}
.share-btn strong,
.share-btn small { display:block; }
.share-btn strong { font-size: .92rem; line-height: 1.25; }
.share-btn small { margin-top: 3px; color: #65716c; font-size: .72rem; line-height: 1.25; }
.share-ig .share-icon { background: linear-gradient(135deg,#833ab4,#fd1d1d,#fcb045); }
.share-fb .share-icon { background: #1877f2; }
.share-x .share-icon { background: #0b0b0b; }
.share-save .share-icon { background: #2d665a; }
.share-more .share-icon { background: #a47d38; }
.share-more { grid-column: 1 / -1; }

.story-preview {
  position: relative;
  aspect-ratio: 9/16;
  min-height: 430px;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(231,193,110,.4);
  background: url('assets/share-bg.svg') center/cover no-repeat;
  box-shadow: 0 16px 38px rgba(0,0,0,.24);
}
.story-preview-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,23,20,.2), rgba(7,23,20,.62) 48%, rgba(7,23,20,.94));
}
.story-preview-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 28px 18px 30px;
  text-align: center;
  color: #fff7e9;
}
.story-brand { margin-bottom: auto; width:100%; text-align:center; font: 700 .62rem/1.4 var(--mono-font); letter-spacing: .08em; color: #efd188; }
.story-result-label { font-size: .8rem; color: rgba(255,247,233,.72); }
.story-rank { margin-top: 9px; color: #efd188; font: 800 .78rem/1 var(--display-font); }
.story-program { margin-top: 8px; width:100%; font: 800 1.52rem/1.18 var(--display-font); text-align:center; }
.story-en { margin-top: 5px; width:100%; text-align:center; font-size: .73rem; line-height:1.35; color: rgba(255,247,233,.78); }
.story-top3-box {
  margin-top: 18px;
  width: 100%;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(239,209,136,.18);
}
.story-top3-title {
  text-align: center;
  color: #efd188;
  font: 700 .7rem/1 var(--display-font);
  letter-spacing: .08em;
}
.story-top3-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.story-top3-row {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: start;
  min-width: 0;
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(239,209,136,.18);
}
.story-top3-row strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(239,209,136,.14);
  color: #efd188;
  font: 800 .72rem/1 var(--display-font);
}
.story-top3-row span {
  display: block;
  min-width: 0;
  font-size: .72rem;
  line-height: 1.35;
  word-break: break-word;
}
.story-social {
  margin-top: 14px;
  width: 100%;
  padding: 10px 12px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(239,209,136,.28);
}
.story-social-label {
  display: block;
  color: #efd188;
  font: 700 .68rem/1 var(--display-font);
  letter-spacing: .05em;
}
.story-social strong {
  display: block;
  margin-top: 5px;
  color: #fff7e9;
  text-align:center;
  font-size: .76rem;
  line-height: 1.2;
}
.result-actions { justify-content: center; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 100;
  transform: translate(-50%, 20px);
  opacity: 0;
  padding: 12px 16px;
  border-radius: 999px;
  background: #102f29;
  color: #fff7e9;
  box-shadow: 0 14px 32px rgba(0,0,0,.24);
  font-size: .9rem;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 760px) {
  body { background: #102821; }
  .app-shell { width: 100%; padding: 0 0 max(32px, env(safe-area-inset-bottom)); }
  .paper { border-radius: 0 0 22px 22px; border-left: 0; border-right: 0; }
  .cover { padding: 22px 16px 24px; }
  .cover-grid { gap: 16px; }
  .cover-stack { order: -1; }
  .cover-scene { padding: 0; display:block; overflow:hidden; background:#fff; }
  .cover-scene-large .cover-scene-art { min-height: 250px; border:0; border-radius:0; }
  .cover-scene-copy { padding: 14px 16px 16px; }
  .case-docket { display: none; }
  .cover-main h1 { font-size: clamp(2.8rem, 14vw, 4rem); }
  .cover-main .lead { line-height: 1.72; }
  .home-highlights { grid-template-columns: 1fr; }
  .game-paper .scene-banner { padding: 0; overflow:hidden; }
  .game-paper .scene-art { min-height: 250px; border:0; border-radius:0; }
  .game-paper .scene-copy { padding: 2px 14px 14px; }
  .game-paper .prompt-card { margin-top: 12px; }
  .nav-row .btn { min-height: 52px; }
  .result-paper { background: linear-gradient(180deg,#12362f 0,#173f36 215px,#f5eee1 215px); }
  .result-grid { padding: 14px 12px 20px; }
  .result-summary-strip { grid-template-columns: repeat(3,1fr); gap: 6px; }
  .summary-card { padding: 11px 9px; min-width:0; }
  .summary-card span { font-size:.54rem; }
  .summary-card strong { font-size:.84rem; line-height:1.25; }
  .hero-result { padding: 14px; }
  .portrait-dossier { min-height: 330px; }
  .profile-panel { padding: 16px 12px; }
  .secondary-results { gap: 12px; }
  .result-card { min-height: auto; padding: 18px 14px; }
  .route { padding: 18px 14px; }
  .share-panel { grid-template-columns: 1fr; padding: 18px 14px; border-radius:20px; }
  .share-actions { grid-template-columns: 1fr 1fr; gap:8px; }
  .share-btn { grid-template-columns:36px 1fr; min-height:62px; padding:9px 10px; }
  .share-icon { width:36px; height:36px; border-radius:11px; }
  .share-btn strong { font-size:.84rem; }
  .share-btn small { display:none; }
  .share-more { grid-column:1 / -1; }
  .story-preview { width:min(76vw,310px); min-height:0; justify-self:center; }
  .story-program { font-size:1.35rem; }
  .result-actions { padding-bottom: 8px; }
}

/* ===== LINE-ART FINAL ===== */
.scene-photo { display:none !important; }
.cover-lineart {
  background-color:#d9c9ad;
  background-size:cover;
  background-position:center;
}
.choice-guidance {
  margin: 14px 0 0;
  padding: 11px 14px;
  border-radius: 13px;
  border: 1px dashed rgba(36,75,67,.2);
  background: rgba(36,75,67,.055);
  color: #40544e;
  font-size: .88rem;
  line-height: 1.55;
}
.choice-guidance strong { color: var(--green); }
.profile-highlight span {
  min-width: 84px;
  padding: 0 10px;
  font-size: .79rem;
  white-space: nowrap;
}
.story-preview {
  background-image: url('assets/share-bg.svg');
  background-color:#173a32;
}
@media (max-width:760px){
  .choice-guidance { margin-top:10px; font-size:.84rem; }
  .profile-highlight span { min-width:76px; font-size:.74rem; }
}

/* ===== OPEN HOUSE FOLLOW LINKS ===== */
.follow-panel {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(95,75,49,.16);
  background: rgba(255,255,255,.72);
  box-shadow: var(--shadow-sm);
}
.follow-panel-home { margin-top: 16px; }
.follow-panel-result {
  grid-template-columns: minmax(0,1fr) minmax(320px,.85fr);
  align-items: center;
  background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(238,229,211,.9));
}
.follow-title {
  color: var(--green);
  font-family: var(--display-font);
  font-size: 1rem;
  font-weight: 800;
}
.follow-panel h2 {
  margin: 4px 0 6px;
  font-size: 1.35rem;
}
.follow-panel p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
  font-size: .92rem;
}
.follow-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.follow-link {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0,1fr);
  gap: 10px;
  align-items: center;
  min-height: 68px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(95,75,49,.14);
  background: rgba(255,255,255,.9);
  color: var(--ink);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.follow-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(39,29,20,.08);
}
.follow-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #fff;
  font: 800 1.15rem/1 var(--display-font);
}
.follow-ig .follow-icon { background: linear-gradient(135deg,#9146d8,#d62976 50%,#f77737); }
.follow-fb .follow-icon { background: #1877f2; }
.follow-link strong {
  display: block;
  font-size: .9rem;
  line-height: 1.35;
}
.follow-link small {
  display: block;
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: .75rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  .follow-panel {
    padding: 14px;
    border-radius: 16px;
  }
  .follow-panel-result { grid-template-columns: 1fr; }
  .follow-links { grid-template-columns: 1fr; }
  .follow-link { min-height: 62px; }
  .follow-icon { width: 38px; height: 38px; border-radius: 11px; }
}

/* ===== MOBILE-FIRST PRODUCTION PASS v10 ===== */
.mobile-game-meta { display:none; }

@media (max-width: 760px) {
  body { background:#102821; }
  .app-shell { width:100%; padding:0 0 max(26px,env(safe-area-inset-bottom)); }
  .paper { border-radius:0; box-shadow:none; }

  /* Home: one clear visual, short copy, CTA above secondary detail */
  .cover { padding:0 0 18px; }
  .cover-grid { display:flex; flex-direction:column; gap:0; }
  .cover-stack { order:0; width:100%; }
  .cover-main { order:1; padding:20px 18px 8px; display:flex; flex-direction:column; }
  .cover-scene { border:0; border-radius:0; box-shadow:none; }
  .cover-scene-large .cover-scene-art { min-height:220px; height:33vh; max-height:290px; border-radius:0; background-position:center 52%; }
  .cover-scene-copy { display:none; }
  .case-docket { display:none !important; }

  .cover-main .eyebrow { order:1; font-size:.61rem; letter-spacing:.08em; margin-bottom:7px; }
  .cover-main h1 { order:2; margin:0; font-size:clamp(2.65rem,13vw,3.75rem); line-height:.98; letter-spacing:-.025em; }
  .cover-main .subtitle { order:3; margin-top:5px; font-size:1.08rem; }
  .cover-main .en-sub { display:none; }
  .cover-main .lead { order:4; margin:14px 0 0; font-size:1rem; line-height:1.72; }
  .mobile-game-meta { order:5; display:flex; flex-wrap:wrap; gap:6px; margin-top:12px; }
  .mobile-game-meta span { padding:6px 9px; border-radius:999px; background:rgba(36,75,67,.07); border:1px solid rgba(36,75,67,.11); color:#34564e; font-size:.72rem; font-weight:700; }
  .cover-main .actions { order:6; margin:16px 0 0; display:grid; grid-template-columns:1fr; gap:8px; }
  .cover-main .actions .btn { width:100%; min-height:54px; font-size:1rem; }
  .cover-main .home-quote { order:7; margin:14px 0 0; padding:13px 14px 13px 16px; font-size:.89rem; line-height:1.6; }
  .cover-main .home-highlights { display:none; }
  .cover-main .home-note { order:8; margin:12px 0 0; font-size:.77rem; line-height:1.55; }
  .follow-panel-home { order:9; margin-top:15px; padding:14px; }
  .follow-panel-home .follow-title { font-size:.86rem; }
  .follow-panel-home .follow-links { grid-template-columns:1fr; gap:7px; }
  .follow-panel-home .follow-link { min-height:52px; padding:8px 10px; }

  /* Gameplay: maximize reading comfort */
  .game-paper { border-radius:0; }
  .topbar { padding:15px 15px 12px; gap:7px; }
  .file-title { font-size:clamp(1.65rem,7.5vw,2.05rem); line-height:1.18; }
  .timestamp { font-size:.72rem; }
  .game-paper .scene-banner { margin:0; border-radius:0; border-left:0; border-right:0; }
  .game-paper .scene-art { min-height:190px; height:27vh; max-height:235px; }
  .game-paper .scene-copy { padding:12px 16px 14px; }
  .scene-copy h3 { font-size:1.08rem; margin:4px 0 4px; }
  .scene-copy p { font-size:.88rem; line-height:1.55; }
  .file-body { padding:14px 12px 14px; }
  .prompt-card { padding:15px 14px; }
  .prompt { font-size:1.08rem; line-height:1.72; }
  .choice-guidance { font-size:.83rem; line-height:1.5; padding:10px 12px; }
  .options { gap:10px; margin-top:12px; }
  .option { min-height:76px; padding:15px 13px 16px 55px; border-radius:15px; }
  .option-text { font-size:.98rem; line-height:1.62; }
  .option .letter { left:14px; top:15px; }
  .nav-row { padding:10px 12px calc(10px + env(safe-area-inset-bottom)); gap:8px; }
  .nav-row .btn { min-height:52px; font-size:.95rem; }

  /* Result: remove repeated summary and make the first answer obvious */
  .result-paper { border-radius:0; background:linear-gradient(180deg,#12362f 0,#173f36 178px,#f5eee1 178px); }
  .result-head { padding:22px 16px 18px; }
  .result-head .file-title { font-size:2rem; }
  .result-head .fineprint { font-size:.82rem; line-height:1.5; max-width:88%; }
  .result-close-note { margin-top:14px; padding:12px 13px; gap:4px; }
  .result-close-note strong { font-size:.84rem; }
  .result-close-note span { font-size:.8rem; line-height:1.5; }
  .result-summary-strip { display:none; }
  .result-grid { padding:12px 10px 20px; gap:12px; }
  .hero-result { padding:14px; gap:12px; border-radius:18px; }
  .portrait-dossier { min-height:225px; max-width:210px; width:100%; margin:0 auto; }
  .portrait-window { inset:40px 14px 56px; border-width:6px; border-radius:14px; }
  .portrait-dossier::before { left:12px; top:12px; font-size:.49rem; }
  .portrait-caption { left:12px; right:12px; bottom:11px; }
  .portrait-code { font-size:1.35rem; }
  .portrait-name { font-size:.67rem; }
  .hero-result .rank { margin-top:2px; font-size:.64rem; }
  .hero-result .program-name { margin-top:5px; font-size:2.1rem; }
  .hero-result .program-meta { font-size:.84rem; }
  .hero-result .archetype { margin:8px 0 10px; font-size:.72rem; }
  .hero-result h3 { margin:8px 0 4px; font-size:1.03rem; }
  .hero-result .reason { font-size:.93rem; line-height:1.68; }
  .tags { margin-top:10px; gap:5px; }
  .tag { padding:6px 9px; font-size:.68rem; }

  .profile-panel { padding:15px 12px; border-radius:18px; grid-template-columns:1fr; }
  .profile-copy h2 { font-size:1.25rem; margin-bottom:5px; }
  .profile-copy p { font-size:.84rem; line-height:1.52; }
  .profile-highlights { gap:7px; }
  .profile-highlight { padding:9px 10px; }
  .profile-highlight strong { font-size:.8rem; }
  .profile-highlight span { font-size:.72rem; min-width:70px; }
  .radar-wrap { max-width:300px; margin:0 auto; }

  .secondary-results { display:grid; gap:10px; }
  .result-card { padding:15px 13px; border-radius:17px; }
  .result-card-head { grid-template-columns:68px 1fr; gap:10px; }
  .mini-portrait { width:68px; height:86px; }
  .result-card h3 { font-size:1.2rem; }
  .result-card h4 { margin:12px 0 5px; font-size:.94rem; }
  .result-card .reason { font-size:.88rem; line-height:1.62; }
  .result-card .program-meta { font-size:.75rem; }

  .route { padding:15px 12px; }
  .route h2 { font-size:1.2rem; }
  .route-grid { gap:7px; }
  .route-item { min-height:auto; padding:12px; }
  .route-name { margin-top:6px; font-size:.9rem; }

  .share-panel { padding:15px 12px; gap:12px; border-radius:18px; }
  .share-copy h2 { font-size:1.2rem; }
  .share-copy p { font-size:.83rem; line-height:1.52; }
  .share-actions { grid-template-columns:1fr 1fr; gap:7px; }
  .share-btn { min-height:58px; padding:8px; grid-template-columns:32px 1fr; border-radius:13px; }
  .share-icon { width:32px; height:32px; }
  .share-btn strong { font-size:.78rem; }
  .share-btn small { display:none; }
  .share-more { grid-column:1/-1; }
  .story-preview { width:min(70vw,270px); }

  .follow-panel-result { padding:14px 12px; }
  .follow-panel-result h2 { font-size:1.15rem; }
  .follow-panel-result p { font-size:.82rem; }
  .follow-panel-result .follow-links { grid-template-columns:1fr; gap:7px; }
  .result-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
  .result-actions .btn { width:100%; min-height:50px; }
}


.scene-banner.mood-only {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(95,75,49,.14);
  background:
    linear-gradient(135deg, rgba(36,75,67,.08), rgba(127,49,64,.06)),
    linear-gradient(180deg, rgba(255,255,255,.82), rgba(248,244,236,.92));
  box-shadow: var(--shadow-sm);
}
.scene-banner.mood-only::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--gold), var(--burgundy));
  opacity: .85;
}
.scene-banner.mood-only::after {
  content: '✦';
  position: absolute;
  right: 16px;
  top: 14px;
  color: rgba(127,49,64,.18);
  font-size: 1.2rem;
}
.scene-banner.mood-only .scene-copy {
  padding: 18px 18px 16px;
}
.scene-banner.mood-only .scene-copy h3 {
  margin-top: 6px;
}
.scene-banner.mood-only .scene-copy p {
  margin-top: 8px;
}
.game-paper .scene-banner.mood-only {
  margin-bottom: 12px;
}
@media (max-width: 720px) {
  .game-paper .scene-banner.mood-only {
    margin: 0 0 10px;
    border-radius: 16px;
  }
  .scene-banner.mood-only .scene-copy {
    padding: 14px 14px 13px;
  }
  .scene-banner.mood-only::after {
    right: 12px;
    top: 10px;
    font-size: 1rem;
  }
}

.story-program {
  max-width: 100%;
  word-break: break-word;
  text-wrap: balance;
}
.story-en {
  max-width: 100%;
  word-break: break-word;
}


.story-preview-content {
  gap: 0;
}
.story-result-label,
.story-rank,
.story-program,
.story-en,
.story-social,
.story-top3-box {
  position: relative;
  z-index: 2;
}
.story-top3-row {
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: center;
}
.story-top3-row strong {
  width: 30px;
  height: 30px;
  font-size: .75rem;
}
.story-top3-row span {
  text-align: left;
  font-size: .74rem;
  line-height: 1.35;
}
.story-social {
  max-width: 100%;
}
.story-social-label,
.story-social strong {
  width: 100%;
  text-align: center;
}
.story-preview {
  isolation: isolate;
}

/* ===== FINAL 2026-08-31: realistic cover + clean social card ===== */
.cover-photo {
  background-image: linear-gradient(180deg, rgba(12,31,27,.02), rgba(12,31,27,.12)), url('assets/home-realistic.jpg') !important;
  background-size: cover !important;
  background-position: center 50% !important;
  background-repeat: no-repeat !important;
}
.cover-scene-large .cover-photo {
  min-height: 330px;
}

.story-preview-final {
  background: #12372f !important;
  padding: 10px;
  border: 2px solid rgba(200,155,66,.85);
  box-shadow: 0 18px 42px rgba(13,35,30,.25);
}
.story-preview-final .story-preview-content {
  position: absolute;
  inset: 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 18px 16px 16px;
  border-radius: 16px;
  border: 1px solid rgba(196,154,74,.8);
  background: #f7eed8;
  color: #173a31;
  overflow: hidden;
}
.story-preview-final .story-brand {
  margin: 0;
  width: 100%;
  color: #173a31;
  font: 700 .64rem/1.35 var(--display-font);
  letter-spacing: 0;
  text-align: center;
}
.story-preview-final .story-result-label {
  margin-top: 14px;
  padding: 6px 16px;
  border-radius: 999px;
  background: #7b2f3d;
  color: #fff8eb;
  font-size: .7rem;
  font-weight: 700;
}
.story-preview-final .story-rank {
  margin-top: 15px;
  color: #173a31;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1;
}
.story-preview-final .story-program-box {
  margin-top: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(195,154,80,.52);
  background: linear-gradient(180deg, #fffaf0, #f8efdb);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 5px 14px rgba(53,81,72,.08);
}
.story-preview-final .story-program {
  margin-top: 0;
  width: 100%;
  color: #173a31;
  font-size: .95rem;
  line-height: 1.24;
  text-align: center;
  overflow-wrap: anywhere;
}
.story-preview-final .story-en {
  margin-top: 5px;
  width: 100%;
  color: #a4772d;
  font-size: .58rem;
  line-height: 1.3;
  text-align: center;
}
.story-preview-final .story-faculty {
  margin-top: 6px;
  width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  background: #365248;
  color: #fff8eb;
  font-size: .53rem;
  line-height: 1.25;
  text-align: center;
}
.story-preview-final .story-insight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  width: 100%;
  margin-top: 10px;
}
.story-preview-final .story-insight-card {
  min-width: 0;
  padding: 8px 8px 9px;
  border-radius: 11px;
  border: 1px solid rgba(195,154,80,.45);
  background: #fbf3e0;
  text-align: center;
}
.story-preview-final .story-insight-card span {
  display: block;
  color: #7b2f3d;
  font-size: .5rem;
  font-weight: 700;
  line-height: 1.25;
}
.story-preview-final .story-insight-card strong {
  display: block;
  margin-top: 3px;
  color: #173a31;
  font-size: .54rem;
  line-height: 1.2;
}
.story-preview-final .story-top3-box {
  margin-top: 14px;
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
}
.story-preview-final .story-top3-title {
  display: inline-flex;
  justify-content: center;
  min-width: 74px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #7b2f3d;
  color: #fff8eb;
  font-size: .62rem;
  letter-spacing: .05em;
}
.story-preview-final .story-top3-list {
  gap: 6px;
  margin-top: 8px;
}
.story-preview-final .story-top3-row {
  grid-template-columns: 28px minmax(0,1fr);
  gap: 8px;
  align-items: center;
  padding: 7px 10px;
  border-radius: 9px;
  border: 1px solid rgba(195,154,80,.65);
  background: #fbf2dd;
}
.story-preview-final .story-top3-row strong {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #7b2f3d;
  color: #fff8eb;
  font-size: .68rem;
}
.story-preview-final .story-top3-row span {
  color: #173a31;
  font-size: .63rem;
  font-weight: 700;
  line-height: 1.22;
  text-align: left;
  overflow-wrap: anywhere;
}
.story-map-label {
  margin-top: 8px;
  color: #173a31;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.story-mini-radar {
  position: relative;
  width: 70px;
  height: 62px;
  margin-top: 6px;
}
.story-mini-radar::before,
.story-mini-radar::after,
.story-mini-radar span {
  content: '';
  position: absolute;
  inset: 7px 14px;
  border: 1px solid rgba(23,58,49,.28);
  transform: rotate(30deg);
}
.story-mini-radar::after { transform: rotate(90deg); }
.story-mini-radar span { transform: rotate(150deg); }
.story-preview-final .story-social {
  margin-top: auto;
  width: 92%;
  padding: 8px 12px 9px;
  border: 1px solid rgba(200,155,66,.75);
  border-radius: 18px;
  background: #173a31;
  display: grid;
  justify-items: center;
  gap: 2px;
}
.story-preview-final .story-social strong {
  margin: 0;
  color: #fff8eb;
  font-size: .66rem;
  text-align: center;
}
.story-preview-final .story-social small {
  color: rgba(255,248,235,.82);
  font-size: .5rem;
  line-height: 1.2;
}

@media (max-width: 720px) {
  .cover-scene-large .cover-photo {
    min-height: 220px;
    height: 31vh;
    max-height: 290px;
    background-position: center 50% !important;
  }
  .story-preview-final {
    width: min(78vw, 318px);
  }
}


.fit-feedback {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(95,75,49,.16);
  background: rgba(255,255,255,.72);
}
.fit-feedback h2 {
  margin: 4px 0 6px;
  font-size: 1.35rem;
}
.fit-feedback p {
  margin: 0;
  line-height: 1.7;
  color: var(--ink-soft);
}
.fit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.fit-btn {
  appearance: none;
  border: 1px solid rgba(95,75,49,.16);
  background: #fffdf7;
  color: var(--green);
  border-radius: 999px;
  padding: 11px 16px;
  font: 700 .95rem/1.2 var(--display-font);
  cursor: pointer;
}
.fit-btn.selected,
.fit-btn:hover {
  background: linear-gradient(180deg, #8e3b4d, var(--burgundy-deep));
  color: #fff;
  border-color: var(--burgundy-deep);
}
@media (max-width: 720px) {
  .game-paper .topbar {
    padding: 14px 14px 10px;
  }
  .game-paper .file-title {
    font-size: 1.5rem;
    line-height: 1.15;
  }
  .game-paper .prompt-card {
    padding: 16px 14px;
  }
  .game-paper .prompt-label {
    font-size: .74rem;
    line-height: 1.35;
  }
  .game-paper .prompt {
    font-size: 1.04rem;
    line-height: 1.75;
    text-wrap: pretty;
  }
  .game-paper .option {
    min-height: 82px;
    padding: 16px 14px 16px 54px;
  }
  .game-paper .option-text {
    font-size: .98rem;
    line-height: 1.58;
    text-wrap: pretty;
  }
  .choice-guidance {
    font-size: .86rem;
    line-height: 1.55;
  }
  .hero-result .reason,
  .result-card .reason {
    text-wrap: pretty;
  }
  .fit-feedback {
    padding: 16px 14px;
    gap: 12px;
  }
  .fit-feedback h2 {
    font-size: 1.15rem;
  }
  .fit-feedback p {
    font-size: .86rem;
    line-height: 1.6;
  }
  .fit-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .fit-btn {
    width: 100%;
    justify-content: center;
    font-size: .92rem;
  }
}


.share-launch {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
}
.share-ready {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(231,193,110,.24), rgba(231,193,110,.12));
  border: 1px solid rgba(231,193,110,.45);
  color: #fff3cf;
  font: 800 .82rem/1 var(--display-font);
  letter-spacing: .03em;
}
.share-launch-copy p { margin: 0; }
.share-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.share-steps span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(231,193,110,.18);
  color: rgba(255,247,233,.88);
  font: 700 .75rem/1 var(--display-font);
}
.share-btn-primary {
  grid-column: 1 / -1;
  min-height: 74px;
  background: linear-gradient(180deg, #fffaf0, #f6ecda);
}
.share-footnote {
  margin-top: 12px;
  color: rgba(255,247,233,.78);
  font-size: .78rem;
  line-height: 1.6;
}
.share-preview-wrap {
  display: grid;
  align-items: center;
  justify-items: center;
}
.story-preview-final .story-result-label {
  margin-top: 10px;
}
.story-preview-final .story-rank {
  margin-top: 12px;
}
.story-preview-final .story-program {
  margin-top: 8px;
  font-size: .98rem;
  line-height: 1.18;
}
.story-preview-final .story-en {
  margin-top: 4px;
}
.story-preview-final .story-persona {
  margin-top: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(123,47,61,.08);
  color: #7b2f3d;
  font: 700 .56rem/1.3 var(--display-font);
  letter-spacing: .04em;
  text-align: center;
}
.story-preview-final .story-program-box {
  margin-top: 8px;
}
.story-preview-final .story-bullet-box {
  margin-top: 10px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid rgba(195,154,80,.35);
  background: rgba(255,250,240,.9);
}
.story-preview-final .story-bullet-title {
  display: inline-flex;
  justify-content: center;
  min-width: 92px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #7b2f3d;
  color: #fff8eb;
  font-size: .58rem;
  font-weight: 800;
}
.story-preview-final .story-bullet-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
.story-preview-final .story-bullet-list li {
  position: relative;
  padding: 6px 8px 6px 20px;
  border-radius: 10px;
  background: rgba(255,255,255,.62);
  color: #355148;
  font-size: .58rem;
  line-height: 1.4;
  text-align: left;
}
.story-preview-final .story-bullet-list li::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #7b2f3d;
}
.story-preview-final .story-top3-box {
  margin-top: 10px;
}
@media (max-width: 760px) {
  .share-launch {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .share-ready {
    justify-self: start;
  }
  .share-preview-wrap {
    order: -1;
  }
  .share-steps {
    gap: 6px;
  }
  .share-steps span {
    font-size: .68rem;
  }
  .share-btn-primary {
    min-height: 66px;
  }
}
@media (max-width: 560px) {
  .share-actions {
    grid-template-columns: 1fr 1fr;
  }
  .share-btn-primary,
  .share-more {
    grid-column: 1 / -1;
  }
  .story-preview-final .story-bullet-list li {
    font-size: .53rem;
    line-height: 1.32;
  }
  .story-preview-final .story-program {
    font-size: .9rem;
  }
  .story-preview-final .story-insight-card strong {
    font-size: .54rem;
  }
  .story-preview-final .story-faculty {
    font-size: .52rem;
  }
}

.story-preview-final .story-preview-content {
  gap: 0;
}
.story-preview-final .story-map-label {
  margin-top: 10px;
}

/* ===== v11 FINAL STORY PREVIEW QA ===== */
.story-preview-final { width:min(78vw,320px); padding:10px; }
.story-preview-final .story-preview-content { padding:16px 15px; gap:0; }
.story-preview-final .story-brand { font-size:.62rem; }
.story-preview-final .story-result-label { margin-top:9px; padding:5px 14px; font-size:.64rem; }
.story-preview-final .story-rank { margin-top:10px; font-size:1.05rem; }
.story-preview-final .story-program-box { margin-top:8px; padding:9px 10px; }
.story-preview-final .story-program { margin-top:0; font-size:.94rem; line-height:1.18; }
.story-preview-final .story-en { font-size:.56rem; }
.story-preview-final .story-faculty { margin-top:5px; font-size:.5rem; }
.story-preview-final .story-persona { margin-top:7px; font-size:.51rem; padding:5px 10px; }
.story-preview-final .story-bullet-box { margin-top:8px; padding:8px 9px; }
.story-preview-final .story-bullet-title { font-size:.54rem; }
.story-preview-final .story-bullet-list { gap:5px; margin-top:6px; }
.story-preview-final .story-bullet-list li { font-size:.54rem; line-height:1.28; padding:5px 7px 5px 18px; }
.story-preview-final .story-insight-grid { margin-top:8px; gap:6px; }
.story-preview-final .story-insight-card { padding:6px 7px; }
.story-preview-final .story-insight-card span { font-size:.47rem; }
.story-preview-final .story-insight-card strong { font-size:.51rem; line-height:1.18; }
.story-preview-final .story-map-label { margin-top:8px; font-size:.52rem; }
.story-mini-radar { width:58px; height:50px; margin-top:4px; }
.story-preview-final .story-top3-box { margin-top:6px; padding:6px 0 0; }
.story-preview-final .story-top3-title { font-size:.55rem; padding:4px 11px; }
.story-preview-final .story-top3-list { margin-top:6px; gap:4px; }
.story-preview-final .story-top3-row { padding:5px 7px; grid-template-columns:24px minmax(0,1fr); }
.story-preview-final .story-top3-row strong { width:23px; height:23px; font-size:.6rem; }
.story-preview-final .story-top3-row span { font-size:.57rem; line-height:1.18; text-align:left; }
.story-preview-final .story-social { padding:6px 10px 7px; margin-top:auto; }
.story-preview-final .story-social strong { font-size:.58rem; }
.story-preview-final .story-social small { font-size:.45rem; }


/* ===== v13 SHARE REDESIGN ===== */
.story-preview-final {
  width: min(82vw, 336px);
}
.story-preview-final .story-preview-content {
  padding: 16px 16px 14px;
}
.story-preview-final .story-brand {
  font-size: .64rem;
}
.story-preview-final .story-program-box {
  margin-top: 10px;
}
.story-preview-final .story-program {
  font-size: 1rem;
  line-height: 1.18;
}
.story-preview-final .story-en { font-size: .58rem; }
.story-preview-final .story-faculty { font-size: .53rem; }
.story-preview-final .story-persona {
  margin-top: 10px;
  font-size: .55rem;
}
.story-preview-final .story-core-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  width: 100%;
  margin-top: 10px;
}
.story-preview-final .story-core-card {
  min-width: 0;
  padding: 8px 8px 9px;
  border-radius: 12px;
  border: 1px solid rgba(195,154,80,.42);
  background: #fbf2de;
  text-align: center;
}
.story-preview-final .story-core-card span {
  display:block;
  color:#7b2f3d;
  font-size:.46rem;
  font-weight:700;
  line-height:1.2;
}
.story-preview-final .story-core-card strong {
  display:block;
  margin-top:4px;
  color:#173a31;
  font-size:.53rem;
  line-height:1.18;
}
.story-preview-final .story-bars-box {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border-radius: 13px;
  border: 1px solid rgba(195,154,80,.4);
  background: rgba(255,250,240,.95);
}
.story-preview-final .story-bars-title {
  color:#173a31;
  font-size:.58rem;
  font-weight:800;
  letter-spacing:.04em;
  text-align:center;
}
.story-preview-final .story-bar-row {
  display:grid;
  grid-template-columns: 90px 1fr;
  gap:8px;
  align-items:center;
  margin-top:7px;
}
.story-preview-final .story-bar-row label {
  color:#173a31;
  font-size:.5rem;
  font-weight:700;
  line-height:1.15;
}
.story-preview-final .story-bar-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(23,58,49,.11);
  overflow:hidden;
}
.story-preview-final .story-bar-fill {
  height:100%;
  border-radius:999px;
  background: linear-gradient(90deg, #d8b063, #6e8d80);
}
.story-preview-final .story-next-box {
  width:100%;
  margin-top:10px;
  padding:10px 11px;
  border-radius:13px;
  border:1px solid rgba(195,154,80,.42);
  background:#fbf3e0;
}
.story-preview-final .story-next-title {
  display:inline-flex;
  padding:4px 10px;
  border-radius:999px;
  background:#7b2f3d;
  color:#fff8eb;
  font-size:.56rem;
  font-weight:800;
}
.story-preview-final .story-next-box p {
  margin:8px 0 0;
  color:#173a31;
  font-size:.57rem;
  font-weight:700;
  line-height:1.35;
  text-align:left;
}
.story-preview-final .story-social {
  margin-top: 10px;
}
@media (max-width:560px){
  .story-preview-final { width:min(84vw, 326px); }
  .story-preview-final .story-core-grid { grid-template-columns: 1fr; }
  .story-preview-final .story-core-card strong { font-size:.56rem; }
  .story-preview-final .story-bar-row { grid-template-columns: 84px 1fr; }
  .story-preview-final .story-bar-row label { font-size:.48rem; }
  .story-preview-final .story-next-box p { font-size:.55rem; }
}

/* ===== v14 RESULT STYLE SWITCH + PREMIUM POLISH ===== */
/* v15: dual-style picker removed; single production style only. */

/* ===== v15 single-style share polish ===== */
.result-paper .share-steps {
  grid-template-columns: repeat(3, minmax(0,1fr));
}
.story-preview-final {
  width:min(82vw, 336px);
  padding:12px;
  border-color:rgba(196,154,69,.78);
  background:linear-gradient(180deg, #10312a 0%, #173830 100%);
}
.story-preview-final .story-preview-content {
  background:#f5ecd7;
  border:2px solid rgba(196,154,69,.62);
  box-shadow: inset 0 0 0 1px rgba(196,154,69,.18);
  padding:16px 15px 14px;
  gap:0;
}
.story-preview-final .story-brand {
  font-size:.62rem;
  color:#6f5a33;
}
.story-preview-final .story-result-label,
.story-preview-final .story-bars-title,
.story-preview-final .story-next-title,
.story-preview-final .story-why-title {
  background:#173a31;
  color:#f6e4b7;
  border:1px solid rgba(196,154,69,.68);
}
.story-preview-final .story-rank {
  margin-top:10px;
  font-size:1.06rem;
  color:#fff8ec;
  background:#173a31;
  border:1px solid rgba(196,154,69,.68);
  padding:6px 16px;
  border-radius:999px;
}
.story-preview-final .story-program-box {
  margin-top:10px;
  border:1px solid rgba(196,154,69,.42);
  background:#fffaf0;
}
.story-preview-final .story-program {
  font-size:1rem;
  line-height:1.18;
}
.story-preview-final .story-en { font-size:.58rem; color:#9a7734; }
.story-preview-final .story-faculty { font-size:.52rem; }
.story-preview-final .story-persona {
  margin-top:9px;
  font-size:.54rem;
  background:rgba(20,58,50,.06);
  border-color:rgba(20,58,50,.12);
}
.story-preview-final .story-core-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  margin-top:11px;
}
.story-preview-final .story-core-card {
  min-width:0;
  padding:8px 7px 9px;
  border-radius:12px;
  border:1px solid rgba(195,154,80,.38);
  background:#fbf2de;
  text-align:center;
}
.story-preview-final .story-core-card span {
  display:block;
  color:#7b2f3d;
  font-size:.45rem;
  font-weight:700;
  line-height:1.18;
}
.story-preview-final .story-core-card strong {
  display:block;
  margin-top:4px;
  color:#173a31;
  font-size:.51rem;
  line-height:1.17;
}
.story-preview-final .story-bars-box,
.story-preview-final .story-next-box,
.story-preview-final .story-why-box {
  width:100%;
  margin-top:10px;
  padding:10px;
  border-radius:14px;
  border:1px solid rgba(195,154,80,.42);
  background:#fffaf0;
}
.story-preview-final .story-bars-title,
.story-preview-final .story-next-title,
.story-preview-final .story-why-title {
  display:inline-flex;
  padding:4px 12px;
  border-radius:999px;
  font-size:.55rem;
  font-weight:800;
}
.story-preview-final .story-bar-row {
  display:grid;
  grid-template-columns: 84px 1fr 34px;
  gap:8px;
  align-items:center;
  margin-top:7px;
}
.story-preview-final .story-bar-row label {
  color:#173a31;
  font-size:.49rem;
  font-weight:700;
  line-height:1.15;
}
.story-preview-final .story-bar-track {
  height:9px;
  border-radius:999px;
  background:rgba(23,58,49,.10);
  overflow:hidden;
}
.story-preview-final .story-bar-fill {
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,#d7b368,#79907f);
}
.story-preview-final .story-bar-row strong {
  color:#173a31;
  font-size:.49rem;
  font-weight:800;
  text-align:right;
}
.story-preview-final .story-next-box p {
  margin:8px 0 0;
  color:#173a31;
  font-size:.56rem;
  font-weight:700;
  line-height:1.34;
  text-align:left;
}
.story-preview-final .story-why-box ul {
  margin:8px 0 0;
  padding-left:18px;
  color:#173a31;
  display:grid;
  gap:6px;
}
.story-preview-final .story-why-box li {
  font-size:.53rem;
  line-height:1.28;
}
.story-preview-final .story-social {
  margin-top:11px;
  padding:7px 10px 8px;
  background:#173a31;
  border:1px solid rgba(196,154,69,.68);
}
.story-preview-final .story-social strong { font-size:.58rem; color:#fff2cf; }
.story-preview-final .story-social small { font-size:.44rem; color:rgba(255,242,207,.82); }
@media (max-width:560px){
  .story-preview-final { width:min(84vw,328px); }
  .story-preview-final .story-core-grid { grid-template-columns:1fr; }
  .story-preview-final .story-core-card strong { font-size:.55rem; }
  .story-preview-final .story-bar-row { grid-template-columns:76px 1fr 32px; }
  .story-preview-final .story-next-box p,
  .story-preview-final .story-why-box li { font-size:.54rem; }
}


/* ===== v17 EDITORIAL ARCHIVE SHARE CARD ===== */
.story-preview-final {
  width:min(82vw,336px);
  aspect-ratio:9/16;
  padding:9px;
  overflow:hidden;
  border:2px solid rgba(195,154,74,.78);
  border-radius:8px;
  background:#0d2e27;
  box-shadow:0 18px 42px rgba(13,35,30,.26);
}
.story-preview-final .story-preview-hero {
  position:relative;
  height:24%;
  padding:14px 13px;
  overflow:hidden;
  border:1px solid rgba(195,154,74,.72);
  background:
    linear-gradient(180deg, rgba(8,42,34,.40), rgba(8,42,34,.76)),
    url('assets/home-realistic.jpg') center 48% / cover no-repeat;
  color:#fff0c8;
}
.story-preview-final .story-preview-meta {
  font:700 .42rem/1.2 var(--display-font);
  letter-spacing:.04em;
  color:#e7cb8d;
}
.story-preview-final .story-preview-brand {
  margin-top:16px;
  font:800 1.18rem/1.08 var(--display-font);
  text-align:left;
}
.story-preview-final .story-preview-lore {
  margin-top:5px;
  font:600 .56rem/1.2 var(--display-font);
  color:rgba(255,240,200,.86);
}
.story-preview-final .story-preview-paper {
  height:76%;
  padding:15px 14px 13px;
  background:#f3ead5;
  color:#183a32;
}
.story-preview-final .story-preview-match {
  color:#7a3440;
  font:800 .47rem/1.1 var(--display-font);
  letter-spacing:.05em;
}
.story-preview-final .story-preview-program {
  margin-top:7px;
  font:800 1.34rem/1.1 var(--display-font);
  text-align:left;
}
.story-preview-final .story-preview-en {
  margin-top:3px;
  color:#9d7737;
  font:600 .56rem/1.2 Georgia, serif;
  text-align:left;
}
.story-preview-final .story-preview-archetype {
  margin-top:9px;
  padding:7px 0;
  border-top:1px solid rgba(195,154,74,.42);
  border-bottom:1px solid rgba(195,154,74,.42);
  font:700 .51rem/1.2 Georgia, serif;
  letter-spacing:.03em;
  text-align:center;
}
.story-preview-final .story-preview-faculty {
  margin-top:6px;
  font:600 .46rem/1.2 var(--display-font);
  color:rgba(24,58,50,.72);
}
.story-preview-final .story-preview-core {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:0;
  margin-top:13px;
  padding:9px 0;
  border-top:1px solid rgba(24,58,50,.16);
  border-bottom:1px solid rgba(24,58,50,.16);
}
.story-preview-final .story-preview-core > div {
  min-width:0;
  padding:0 7px;
}
.story-preview-final .story-preview-core > div + div { border-left:1px solid rgba(24,58,50,.15); }
.story-preview-final .story-preview-core span {
  display:block;
  color:rgba(24,58,50,.62);
  font:700 .39rem/1.15 var(--display-font);
}
.story-preview-final .story-preview-core strong {
  display:block;
  margin-top:4px;
  font:700 .48rem/1.18 var(--display-font);
}
.story-preview-final .story-preview-dna {
  margin-top:12px;
}
.story-preview-final .story-preview-section-title {
  color:rgba(24,58,50,.68);
  font:700 .43rem/1.2 var(--display-font);
  letter-spacing:.05em;
}
.story-preview-final .story-preview-dna-row {
  display:grid;
  grid-template-columns:30px 1fr;
  align-items:center;
  gap:7px;
  padding:4px 0;
  border-bottom:1px solid rgba(24,58,50,.12);
}
.story-preview-final .story-preview-dna-row b {
  color:#c39a4a;
  font:700 .72rem/1 Georgia, serif;
}
.story-preview-final .story-preview-dna-row span {
  font:700 .48rem/1.15 var(--display-font);
}
.story-preview-final .story-preview-dna small {
  display:block;
  margin-top:5px;
  color:rgba(24,58,50,.60);
  font:500 .36rem/1.25 var(--display-font);
}
.story-preview-final .story-preview-route {
  margin:12px -14px 0;
  padding:10px 12px 11px;
  background:#143a31;
  color:#fff4d5;
}
.story-preview-final .story-preview-route-title {
  color:#e7cb8d;
  font:700 .43rem/1.2 var(--display-font);
  letter-spacing:.05em;
}
.story-preview-final .story-preview-route-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:5px;
  margin-top:7px;
}
.story-preview-final .story-preview-route-row > div {
  flex:1;
  min-width:0;
  text-align:center;
}
.story-preview-final .story-preview-route-row b {
  display:block;
  color:#d9b76b;
  font:700 .64rem/1 Georgia, serif;
}
.story-preview-final .story-preview-route-row span {
  display:block;
  margin-top:3px;
  font:700 .45rem/1.13 var(--display-font);
}
.story-preview-final .story-preview-route-row small {
  display:block;
  margin-top:3px;
  color:rgba(255,244,213,.62);
  font:700 .30rem/1 var(--display-font);
}
.story-preview-final .story-preview-route-row i {
  color:#d9b76b;
  font-style:normal;
  font-size:.58rem;
}
.story-preview-final .story-preview-quote {
  margin-top:12px;
  color:#183a32;
  font:600 .54rem/1.38 var(--display-font);
  text-align:left;
}
.story-preview-final .story-preview-footer {
  margin-top:10px;
  padding-top:7px;
  border-top:1px solid rgba(195,154,74,.44);
  color:rgba(24,58,50,.64);
  font:600 .32rem/1.2 var(--display-font);
  letter-spacing:.02em;
  text-align:center;
}
@media(max-width:560px){
  .story-preview-final { width:min(84vw,330px); }
  .story-preview-final .story-preview-program { font-size:1.24rem; }
  .story-preview-final .story-preview-core strong { font-size:.46rem; }
}


/* ===== v18 EDITORIAL RADAR SHARE POLISH ===== */
.story-preview-final .story-preview-hero { height:21.5%; }
.story-preview-final .story-preview-paper { height:78.5%; padding-top:13px; }
.story-preview-final .story-preview-brand { margin-top:13px; }
.story-preview-final .story-preview-lore { font-size:.50rem; letter-spacing:.02em; }
.story-preview-final .story-preview-program { margin-top:6px; font-size:1.28rem; }
.story-preview-final .story-preview-en { font-size:.52rem; font-style:normal; }
.story-preview-final .story-preview-archetype { position:relative; margin-top:8px; border:0; padding:5px 14px; }
.story-preview-final .story-preview-archetype::before,
.story-preview-final .story-preview-archetype::after { content:''; position:absolute; top:50%; width:23%; height:1px; background:rgba(195,154,74,.42); }
.story-preview-final .story-preview-archetype::before { left:0; }
.story-preview-final .story-preview-archetype::after { right:0; }
.story-preview-final .story-preview-faculty { margin-top:3px; }
.story-preview-final .story-preview-core { margin-top:10px; padding:8px 0; }
.story-preview-final .story-preview-core strong { font-size:.46rem; }
.story-preview-final .story-preview-dna { margin-top:10px; }
.story-preview-final .story-preview-dna-layout { display:grid; grid-template-columns:56% 44%; gap:7px; align-items:center; margin-top:5px; }
.story-preview-final .story-preview-dna-list { min-width:0; }
.story-preview-final .story-preview-dna-row { grid-template-columns:26px 1fr; padding:3px 0; }
.story-preview-final .story-preview-dna-row b { font-size:.66rem; }
.story-preview-final .story-preview-dna-row span { font-size:.45rem; }
.story-preview-final .story-preview-radar { display:grid; place-items:center; min-width:0; }
.story-preview-final .story-preview-radar svg { width:100%; max-width:92px; height:auto; }
.story-preview-final .story-preview-radar em { margin-top:-2px; color:rgba(24,58,50,.52); font:700 .26rem/1 var(--display-font); font-style:normal; letter-spacing:.03em; }
.story-preview-final .story-preview-dna small { font-size:.33rem; line-height:1.25; }
.story-preview-final .story-preview-route { margin-top:9px; padding-top:8px; padding-bottom:8px; }
.story-preview-final .story-preview-route-row { margin-top:5px; }
.story-preview-final .story-preview-route-row b { font-size:.60rem; }
.story-preview-final .story-preview-route-row small { font-size:.33rem; }
.story-preview-final .story-preview-quote { margin-top:9px; font-size:.50rem; font-weight:600; }
.story-preview-final .story-preview-footer { margin-top:8px; text-align:left; }


/* ===== v19 HYBRID COLLECTIBLE SHARE ===== */
.story-preview-final { width:min(82vw,334px); }
.story-preview-final .story-preview-hero { height:18.9%; background-position:center 42%; }
.story-preview-final .story-preview-paper { height:81.1%; padding:12px 13px 11px; background:linear-gradient(rgba(243,234,213,.96),rgba(243,234,213,.96)),url('assets/home-realistic.jpg') center 42%/cover no-repeat; }
.story-preview-final .story-preview-result-grid { display:grid; grid-template-columns:minmax(0,1fr) 84px; gap:8px; align-items:center; }
.story-preview-final .story-preview-match { margin-top:0; font-size:.48rem; color:#7a3440; }
.story-preview-final .story-preview-program { margin-top:5px; font-size:1.15rem; line-height:1.04; }
.story-preview-final .story-preview-en { margin-top:4px; font-size:.52rem; }
.story-preview-final .story-preview-archetype { margin-top:7px; font-size:.43rem; letter-spacing:.035em; }
.story-preview-final .story-preview-faculty { margin-top:4px; font-size:.40rem; }
.story-preview-final .story-preview-dossier { border:1px solid rgba(195,154,74,.55); background:#f8efd9; padding:5px; display:grid; gap:3px; border-radius:7px; box-shadow:0 5px 12px rgba(20,36,31,.10); }
.story-preview-final .story-preview-dossier span,.story-preview-final .story-preview-dossier small { font:700 .30rem/1.15 var(--display-font); color:#173a31; text-align:center; }
.story-preview-final .story-preview-dossier small { color:#7a3440; }
.story-preview-final .story-preview-dossier img { width:100%; display:block; }
.story-preview-final .story-preview-why { margin-top:8px; padding:8px 9px; background:#143a31; color:#fff1cf; border-radius:6px; }
.story-preview-final .story-preview-why b { color:#e4c47c; font:800 .45rem/1.1 var(--display-font); }
.story-preview-final .story-preview-why p { margin:5px 0 0; font-size:.48rem; line-height:1.35; font-weight:600; }
.story-preview-final .story-preview-dna { margin-top:8px; }
.story-preview-final .story-preview-dna-layout { grid-template-columns:43% 57%; gap:4px; align-items:center; }
.story-preview-final .story-preview-dna-row { grid-template-columns:24px 1fr; padding:2px 0; }
.story-preview-final .story-preview-dna-row b { font-size:.60rem; }
.story-preview-final .story-preview-dna-row span { font-size:.43rem; }
.story-preview-final .story-preview-radar svg { width:100%; max-width:116px; margin-inline:auto; display:block; }
.story-preview-final .story-preview-radar em { font-size:.30rem; }
.story-preview-final .story-preview-dna small { font-size:.31rem; line-height:1.28; }
.story-preview-final .story-preview-route { margin-top:7px; padding:7px 7px 8px; border-radius:5px; }
.story-preview-final .story-preview-route-row { margin-top:5px; align-items:center; }
.story-preview-final .story-preview-route-row > div { min-width:0; }
.story-preview-final .story-preview-route-row b { border:1px solid #d9b76b; width:20px; height:20px; display:inline-grid; place-items:center; border-radius:999px; font-size:.48rem; }
.story-preview-final .story-preview-route-row .start b { background:#d9b76b; color:#143a31; }
.story-preview-final .story-preview-route-row span { font-size:.45rem; margin-top:3px; }
.story-preview-final .story-preview-route-row small { font-size:.34rem; margin-top:2px; }
.story-preview-final .story-preview-route-row i { color:rgba(217,183,107,.58); font-size:.52rem; }
.story-preview-final .story-preview-cta { margin-top:8px; text-align:center; display:grid; gap:2px; }
.story-preview-final .story-preview-cta b { color:#173a31; font-size:.62rem; }
.story-preview-final .story-preview-cta span { color:rgba(23,58,49,.70); font-size:.42rem; }
.story-preview-final .story-preview-cta strong { color:#9d7737; font:700 .42rem/1.2 var(--display-font); }
.story-preview-final .story-preview-footer { margin-top:7px; padding-top:5px; border-top:1px solid rgba(195,154,74,.34); text-align:left; font-size:.29rem; }


/* ===== v20 COMPOSITION / READABILITY FIXES ===== */
.story-preview-final .story-preview-paper {
  background:linear-gradient(rgba(243,234,213,.975),rgba(243,234,213,.975)),url('assets/home-realistic.jpg') center 42%/cover no-repeat;
}
.story-preview-final .story-preview-result-grid {
  grid-template-columns:minmax(0,1fr) 105px;
  gap:10px;
  align-items:center;
}
.story-preview-final .story-preview-program { margin-top:4px; }
.story-preview-final .story-preview-archetype {
  font-size:.47rem;
  padding-inline:18px;
}
.story-preview-final .story-preview-archetype::before,
.story-preview-final .story-preview-archetype::after { width:18%; }
.story-preview-final .story-preview-dossier { padding:6px; }
.story-preview-final .story-preview-dossier span,
.story-preview-final .story-preview-dossier small { font-size:.34rem; }
.story-preview-final .story-preview-why { margin-top:7px; padding:7px 9px; }
.story-preview-final .story-preview-why p { line-height:1.42; }
.story-preview-final .story-preview-dna-layout {
  grid-template-columns:44% 56%;
  gap:7px;
}
.story-preview-final .story-preview-dna-list > em {
  display:block;
  margin-bottom:3px;
  color:rgba(24,58,50,.48);
  font:700 .28rem/1.1 var(--display-font);
  font-style:normal;
  letter-spacing:.04em;
}
.story-preview-final .story-preview-dna-row { padding:1.8px 0; }
.story-preview-final .story-preview-dna-row span { font-size:.45rem; }
.story-preview-final .story-preview-radar svg { max-width:112px; }
.story-preview-final .story-preview-radar em { margin-top:2px; font-size:.27rem; }
.story-preview-final .story-preview-dna small {
  max-width:82%;
  margin-top:6px;
  font-size:.33rem;
  line-height:1.34;
}
.story-preview-final .story-preview-route {
  margin-top:8px;
  padding:9px 7px 10px;
}
.story-preview-final .story-preview-route-row { margin-top:6px; }
.story-preview-final .story-preview-route-row span { margin-top:4px; }
.story-preview-final .story-preview-route-row .start span { font-weight:800; }
.story-preview-final .story-preview-cta { margin-top:6px; gap:2px; }
.story-preview-final .story-preview-cta b { font-size:.67rem; }
.story-preview-final .story-preview-cta strong { font-size:.46rem; }
.story-preview-final .story-preview-footer { color:rgba(24,58,50,.70); }


/* ===== v21 LOCKED-COMPOSITION STORY REFINEMENTS ===== */
.story-preview-final .story-preview-hero { height:18%; background-position:center 42%; }
.story-preview-final .story-preview-paper { height:82%; padding:11px 13px 10px; }
.story-preview-final .story-preview-result-grid { grid-template-columns:minmax(0,1fr) 116px; gap:10px; align-items:center; }
.story-preview-final .story-preview-match { margin-top:0; }
.story-preview-final .story-preview-program { margin-top:3px; }
.story-preview-final .story-preview-en { margin-top:3px; font-size:.55rem; }
.story-preview-final .story-preview-archetype { margin-top:6px; font-size:.50rem; padding-inline:20px; }
.story-preview-final .story-preview-archetype::before,
.story-preview-final .story-preview-archetype::after { width:14%; }
.story-preview-final .story-preview-faculty { margin-top:3px; }
.story-preview-final .story-preview-dossier { padding:7px; }
.story-preview-final .story-preview-dossier span,
.story-preview-final .story-preview-dossier small,
.story-preview-final .story-preview-dossier em { font:700 .35rem/1.15 var(--display-font); text-align:center; font-style:normal; }
.story-preview-final .story-preview-dossier em { color:rgba(23,58,49,.64); }
.story-preview-final .story-preview-dossier small { color:#7a3440; }
.story-preview-final .story-preview-why { margin-top:6px; padding:6px 10px; }
.story-preview-final .story-preview-why p { margin-top:4px; font-size:.50rem; line-height:1.43; }
.story-preview-final .story-preview-dna { margin-top:7px; }
.story-preview-final .story-preview-dna-layout { grid-template-columns:44% 56%; gap:7px; }
.story-preview-final .story-preview-dna-list > em { font-size:.30rem; }
.story-preview-final .story-preview-dna-row { padding:1.5px 0; }
.story-preview-final .story-preview-dna-row span { font-size:.47rem; }
.story-preview-final .story-preview-radar svg { max-width:116px; }
.story-preview-final .story-preview-radar em { margin-top:4px; font-size:.29rem; }
.story-preview-final .story-preview-dna small { max-width:80%; margin-top:6px; font-size:.34rem; line-height:1.34; }
.story-preview-final .story-preview-route { margin-top:7px; padding:9px 7px 10px; }
.story-preview-final .story-preview-route-row span { font-size:.47rem; }
.story-preview-final .story-preview-route-row small { font-size:.35rem; }
.story-preview-final .story-preview-cta { margin-top:5px; }
.story-preview-final .story-preview-cta b { font-size:.70rem; }
.story-preview-final .story-preview-cta strong { font-size:.49rem; color:#8f6c31; }
.story-preview-final .story-preview-footer { margin-top:5px; padding-top:5px; color:rgba(24,58,50,.76); font-size:.30rem; }


/* ===== v22 HERITAGE EDITORIAL DOSSIER ===== */
.story-preview-final.story-preview-editorial {
  width:min(82vw,334px);
  background:#0d2e27;
  border:2px solid rgba(195,154,74,.74);
  box-shadow:0 18px 42px rgba(13,35,30,.24);
}
.story-preview-editorial .story-preview-hero {
  height:18%;
  padding:12px 14px;
  background:
    linear-gradient(180deg,rgba(7,40,32,.18),rgba(7,40,32,.54)),
    url('assets/home-realistic.jpg') center 42%/cover no-repeat;
}
.story-preview-editorial .story-preview-meta { font-size:.30rem; color:#ead6a7; }
.story-preview-editorial .story-preview-brand { margin-top:10px; font-size:1.20rem; color:#fff4d0; }
.story-preview-editorial .story-preview-lore { margin-top:4px; font-size:.48rem; color:rgba(255,240,200,.86); }
.story-preview-editorial .story-preview-paper-editorial {
  height:82%;
  padding:13px 14px 11px;
  background:#f3ead5;
  color:#183a32;
}
.story-preview-editorial .story-preview-result-editorial {
  display:grid;
  grid-template-columns:minmax(0,1fr) 92px;
  gap:10px;
  align-items:center;
}
.story-preview-editorial .story-preview-match { color:#7a3440; font-size:.44rem; }
.story-preview-editorial .story-preview-program { margin-top:4px; font-size:1.26rem; line-height:1.02; color:#183a32; }
.story-preview-editorial .story-preview-en { margin-top:4px; font-size:.48rem; color:#9d7737; font-style:normal; }
.story-preview-editorial .story-preview-archetype {
  margin-top:6px;
  padding:0;
  border:0;
  color:#183a32;
  font-size:.40rem;
  letter-spacing:.02em;
  text-align:left;
}
.story-preview-editorial .story-preview-archetype::before,
.story-preview-editorial .story-preview-archetype::after { display:none; }
.story-preview-editorial .story-preview-faculty { margin-top:4px; font-size:.37rem; color:rgba(24,58,50,.68); }
.story-preview-editorial .story-preview-plate {
  position:relative;
  min-height:102px;
  display:grid;
  place-items:center;
  color:#173a31;
  background:
    linear-gradient(#c39a4a,#c39a4a) left top/18px 1px no-repeat,
    linear-gradient(#c39a4a,#c39a4a) left top/1px 18px no-repeat,
    linear-gradient(#c39a4a,#c39a4a) right top/18px 1px no-repeat,
    linear-gradient(#c39a4a,#c39a4a) right top/1px 18px no-repeat,
    linear-gradient(#c39a4a,#c39a4a) left bottom/18px 1px no-repeat,
    linear-gradient(#c39a4a,#c39a4a) left bottom/1px 18px no-repeat,
    linear-gradient(#c39a4a,#c39a4a) right bottom/18px 1px no-repeat,
    linear-gradient(#c39a4a,#c39a4a) right bottom/1px 18px no-repeat;
}
.story-preview-editorial .story-preview-plate small { position:absolute; top:7px; left:7px; font:700 .27rem/1 var(--display-font); color:rgba(23,58,49,.54); }
.story-preview-editorial .story-preview-plate strong { font:800 1.36rem/1 var(--display-font); color:rgba(23,58,49,.72); }
.story-preview-editorial .story-preview-plate i { position:absolute; width:54px; height:54px; border:1px solid rgba(23,58,49,.28); border-radius:50%; }
.story-preview-editorial .story-preview-plate i::after { content:''; position:absolute; inset:10px; border:1px solid rgba(195,154,74,.46); border-radius:50%; }
.story-preview-editorial .story-preview-plate em { position:absolute; bottom:7px; right:7px; font:700 .27rem/1 var(--display-font); color:#7a3440; font-style:normal; }
.story-preview-editorial .story-preview-why-editorial {
  margin-top:10px;
  padding:8px 0 8px 12px;
  border-left:2px solid rgba(122,52,64,.50);
  border-top:1px solid rgba(122,52,64,.14);
}
.story-preview-editorial .story-preview-why-editorial b { color:#7a3440; font:800 .38rem/1 var(--display-font); }
.story-preview-editorial .story-preview-why-editorial p { margin:5px 0 0; color:#183a32; font-size:.48rem; line-height:1.36; font-weight:600; }
.story-preview-editorial .story-preview-profile-field {
  margin:10px -14px 0;
  padding:10px 14px 11px;
  background:
    linear-gradient(rgba(20,58,49,.965),rgba(20,58,49,.965)),
    url('assets/home-realistic.jpg') center 45%/cover no-repeat;
  color:#fff4d5;
}
.story-preview-editorial .story-preview-profile-field .story-preview-section-title { color:#e5c985; font-size:.40rem; }
.story-preview-editorial .story-preview-profile-layout { display:grid; grid-template-columns:46% 54%; gap:8px; align-items:center; margin-top:6px; }
.story-preview-editorial .story-preview-dna-list > em { display:block; margin-bottom:4px; color:rgba(255,244,213,.52); font:700 .26rem/1 var(--display-font); font-style:normal; }
.story-preview-editorial .story-preview-dna-row { grid-template-columns:25px 1fr; padding:3px 0; border-bottom:1px solid rgba(255,244,213,.10); }
.story-preview-editorial .story-preview-dna-row b { color:#c39a4a; font-size:.62rem; }
.story-preview-editorial .story-preview-dna-row span { color:#fff4d5; font-size:.43rem; }
.story-preview-editorial .story-preview-radar svg { width:100%; max-width:122px; display:block; margin:auto; }
.story-preview-editorial .story-preview-radar em { display:block; margin-top:2px; color:rgba(255,244,213,.50); font:700 .25rem/1 var(--display-font); font-style:normal; text-align:center; }
.story-preview-editorial .story-preview-route-editorial { margin-top:10px; }
.story-preview-editorial .story-preview-route-editorial .story-preview-section-title { color:#7a3440; font-size:.38rem; }
.story-preview-editorial .story-preview-route-line {
  display:grid;
  grid-template-columns:28px 1fr 68px;
  gap:8px;
  align-items:center;
  padding:6px 0;
  border-bottom:1px solid rgba(24,58,50,.12);
}
.story-preview-editorial .story-preview-route-line b { color:#c39a4a; font:700 .65rem/1 Georgia,serif; }
.story-preview-editorial .story-preview-route-line span { color:#183a32; font:700 .47rem/1.15 var(--display-font); }
.story-preview-editorial .story-preview-route-line small { color:rgba(24,58,50,.56); font:700 .29rem/1 var(--display-font); text-align:right; }
.story-preview-editorial .story-preview-cta-editorial { margin-top:11px; display:grid; gap:3px; }
.story-preview-editorial .story-preview-cta-editorial small { color:#7a3440; font:800 .36rem/1 var(--display-font); }
.story-preview-editorial .story-preview-cta-editorial b { color:#183a32; font-size:.68rem; }
.story-preview-editorial .story-preview-cta-editorial strong { color:#8f6c31; font:700 .44rem/1.2 var(--display-font); }
.story-preview-editorial .story-preview-footer { margin-top:8px; padding-top:5px; border-top:1px solid rgba(195,154,74,.32); color:rgba(24,58,50,.62); font-size:.28rem; text-align:left; }
@media(max-width:560px){
  .story-preview-final.story-preview-editorial { width:min(84vw,330px); }
  .story-preview-editorial .story-preview-program { font-size:1.18rem; }
}


/* ===== v23 EDITORIAL REFINEMENT — preserve v22 art direction ===== */
.story-preview-editorial .story-preview-result-editorial {
  grid-template-columns:minmax(0,1fr) 108px;
  gap:8px;
}
.story-preview-editorial .story-preview-program {
  font-size:1.18rem;
}
.story-preview-editorial .story-preview-plate {
  min-height:116px;
}
.story-preview-editorial .story-preview-plate small {
  top:7px;
  left:7px;
  font-size:.29rem;
  color:rgba(23,58,49,.64);
  white-space:nowrap;
}
.story-preview-editorial .story-preview-plate em { display:none; }
.story-preview-editorial .story-preview-plate strong { font-size:1.48rem; }
.story-preview-editorial .story-preview-plate i { width:63px; height:63px; }
.story-preview-editorial .story-preview-why-editorial {
  padding-left:9px;
}
.story-preview-editorial .story-preview-why-editorial p {
  line-height:1.42;
}
.story-preview-editorial .story-preview-profile-field {
  background:
    linear-gradient(rgba(24,68,58,.985),rgba(24,68,58,.985)),
    url('assets/home-realistic.jpg') center 45%/cover no-repeat;
}
.story-preview-editorial .story-preview-dna-list > em { color:rgba(255,244,213,.66); }
.story-preview-editorial .story-preview-dna-row span { color:#fff7df; font-size:.45rem; }
.story-preview-editorial .story-preview-radar em { color:rgba(255,244,213,.68); font-size:.27rem; margin-top:4px; }
.story-preview-editorial .story-preview-profile-note {
  margin-top:6px;
  max-width:94%;
  color:rgba(255,244,213,.78);
  font-size:.31rem;
  line-height:1.32;
}
.story-preview-editorial .story-preview-route-editorial { margin-top:8px; }
.story-preview-editorial .story-preview-route-line {
  grid-template-columns:28px minmax(0,1fr) 54px;
  gap:7px;
  padding:5px 0;
  width:82%;
}
.story-preview-editorial .story-preview-route-line span { font-size:.49rem; }
.story-preview-editorial .story-preview-route-line small { font-size:.30rem; color:rgba(24,58,50,.66); }
.story-preview-editorial .story-preview-cta-editorial { margin-top:8px; gap:2px; }
.story-preview-editorial .story-preview-cta-editorial b { font-size:.74rem; }
.story-preview-editorial .story-preview-cta-editorial strong { font-size:.47rem; }
.story-preview-editorial .story-preview-footer { margin-top:6px; }
@media(max-width:560px){
  .story-preview-editorial .story-preview-program { font-size:1.12rem; }
}


/* ===== v25 RESTORED HERITAGE TYPOGRAPHY ===== */
.story-preview-editorial .story-preview-hero{height:17%;background:linear-gradient(180deg,rgba(7,40,32,.14),rgba(7,40,32,.48)),url('assets/home-realistic.jpg') center 42%/cover no-repeat}
.story-preview-editorial .story-preview-paper-editorial{height:83%;background:#f7efdc}
.story-preview-editorial .story-preview-program{font-size:1.16rem;line-height:1.06}
.story-preview-editorial .story-preview-en{font-size:.56rem;margin-top:5px;color:#a17834}
.story-preview-editorial .story-preview-archetype{font-size:.47rem;letter-spacing:.025em;margin-top:5px}
.story-preview-editorial .story-preview-faculty{font-size:.42rem;margin-top:4px;color:rgba(22,56,47,.76)}
.story-preview-editorial .story-preview-plate{min-height:108px}
.story-preview-editorial .story-preview-plate small{font-size:.31rem}
.story-preview-editorial .story-preview-why-editorial{margin-top:9px;padding:7px 0 8px 10px;border-top:0;border-left:2px solid rgba(116,50,60,.52)}
.story-preview-editorial .story-preview-why-editorial b{font-size:.43rem;color:#74323c}
.story-preview-editorial .story-preview-why-editorial p{font-size:.55rem;line-height:1.42;margin-top:5px;color:#16382f}
.story-preview-editorial .story-preview-profile-field{margin-top:9px;padding-top:11px;background:linear-gradient(rgba(21,63,53,.988),rgba(21,63,53,.988)),url('assets/home-realistic.jpg') center 45%/cover no-repeat}
.story-preview-editorial .story-preview-profile-field .story-preview-section-title{font-size:.45rem;color:#e8cf91}
.story-preview-editorial .story-preview-dna-list>em{font-size:.31rem;color:rgba(255,247,222,.76)}
.story-preview-editorial .story-preview-dna-row{padding:4px 0;grid-template-columns:27px 1fr}
.story-preview-editorial .story-preview-dna-row b{font-size:.66rem}
.story-preview-editorial .story-preview-dna-row span{font-size:.50rem;color:#fff8e2}
.story-preview-editorial .story-preview-radar em{font-size:.30rem;color:rgba(255,247,222,.76)}
.story-preview-editorial .story-preview-profile-note{font-size:.35rem;line-height:1.34;color:rgba(255,247,222,.82)}
.story-preview-editorial .story-preview-route-editorial{margin-top:9px}
.story-preview-editorial .story-preview-route-editorial .story-preview-section-title{font-size:.42rem;color:#74323c}
.story-preview-editorial .story-preview-route-line{grid-template-columns:28px auto 1fr;gap:7px;width:86%;padding:6px 0}
.story-preview-editorial .story-preview-route-line span{font-size:.54rem}
.story-preview-editorial .story-preview-route-line small{font-size:.34rem;text-align:left;margin-left:4px;color:rgba(22,56,47,.66)}
.story-preview-editorial .story-preview-cta-editorial{margin-top:9px}
.story-preview-editorial .story-preview-cta-editorial small{font-size:.41rem;color:#74323c}
.story-preview-editorial .story-preview-cta-editorial b{font-size:.79rem}
.story-preview-editorial .story-preview-cta-editorial strong{font-size:.51rem;color:#98702e}
.story-preview-editorial .story-preview-footer{font-size:.30rem;margin-top:7px;color:rgba(22,56,47,.64)}


/* ===== v26 richer heritage editorial preview ===== */
.story-preview-editorial .story-preview-core-rich{margin-top:8px;padding:7px 0 8px;border-top:1px solid rgba(195,154,74,.28);border-bottom:1px solid rgba(24,58,50,.08)}
.story-preview-editorial .story-preview-core-rich>em{display:block;color:#75313c;font:800 .39rem/1 var(--display-font);font-style:normal;letter-spacing:.04em}
.story-preview-editorial .story-preview-core-rich>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin-top:6px}
.story-preview-editorial .story-preview-core-rich span{padding:0 7px;min-width:0}
.story-preview-editorial .story-preview-core-rich span:first-child{padding-left:0}.story-preview-editorial .story-preview-core-rich span+span{border-left:1px solid rgba(24,58,50,.12)}
.story-preview-editorial .story-preview-core-rich small{display:block;color:rgba(117,49,60,.72);font:700 .31rem/1.1 var(--display-font)}
.story-preview-editorial .story-preview-core-rich b{display:block;margin-top:3px;color:#16382f;font:700 .43rem/1.23 var(--display-font)}
.story-preview-editorial .story-preview-why-framed{margin-top:8px;padding:8px 10px 8px 13px;border:1px solid rgba(195,154,74,.36);border-left:3px solid rgba(117,49,60,.62);border-radius:5px;background:rgba(255,250,239,.66)}
.story-preview-editorial .story-preview-why-framed p{font-size:.49rem;line-height:1.38}.story-preview-editorial .story-preview-why-framed small{display:block;margin-top:4px;color:rgba(22,56,47,.68);font-size:.34rem;line-height:1.32}
.story-preview-editorial .story-preview-key{display:block;margin-top:8px!important;color:#e5c985!important;font-size:.32rem!important}
.story-preview-editorial .story-preview-key-line{margin:4px 0 0;color:rgba(255,248,226,.88);font-size:.32rem;line-height:1.3}
.story-preview-editorial .story-preview-route-line-rich{display:grid;grid-template-columns:25px 1fr;gap:6px;padding:5px 0;border-bottom:1px solid rgba(24,58,50,.08)}
.story-preview-editorial .story-preview-route-line-rich:last-child{border-bottom:0}.story-preview-editorial .story-preview-route-line-rich>b{color:#c39a4a;font:700 .60rem/1 Georgia,serif}.story-preview-editorial .story-preview-route-line-rich>span{color:#16382f;font:700 .47rem/1.2 var(--display-font)}
.story-preview-editorial .story-preview-route-line-rich i{margin-left:5px;color:#75313c;font:700 .30rem/1 var(--display-font);font-style:normal}.story-preview-editorial .story-preview-route-line-rich small{display:block;margin-top:2px;color:rgba(22,56,47,.64);font:500 .30rem/1.2 var(--display-font)}
.story-preview-editorial .story-preview-cta-rich{margin-top:7px;padding-top:7px;border-top:1px solid rgba(195,154,74,.30)}.story-preview-editorial .story-preview-cta-rich p{margin:3px 0 0;color:rgba(22,56,47,.65);font-size:.31rem;line-height:1.25}


/* ===== v27 clinical-integrator polish: no structural redesign ===== */
.story-preview-result-editorial .story-preview-en{font-size:.72rem;line-height:1.2;color:#9f742c}
.story-preview-result-editorial .story-preview-faculty{font-size:.60rem;color:rgba(21,56,47,.80)}
.story-preview-core-rich{margin-top:10px}
.story-preview-core-rich>em{font-size:.54rem;letter-spacing:.05em}
.story-preview-core-rich>div>span{padding:6px 12px 7px}
.story-preview-core-rich>div>span+span{border-left-color:rgba(200,154,70,.30)}
.story-preview-core-rich small{font-size:.50rem}
.story-preview-why-framed{padding:13px 16px 14px 22px}
.story-preview-why-framed b{font-size:.57rem}
.story-preview-why-framed p{font-size:.65rem;line-height:1.42;margin:6px 0}
.story-preview-why-framed small{font-size:.53rem;line-height:1.38;color:rgba(21,56,47,.76)}
.story-preview-profile-field{padding-top:15px;padding-bottom:13px}
.story-preview-dna-list .story-preview-key{font-size:.52rem;margin-top:9px}
.story-preview-key-line{font-size:.52rem!important;line-height:1.42!important}
.story-preview-radar{padding-top:10px}
.story-preview-radar>em{font-size:.46rem!important;opacity:.72}
.story-preview-profile-note{font-size:.48rem!important;opacity:.84}
.story-preview-route-line-rich{padding:9px 0}
.story-preview-route-line-rich span{font-size:.59rem}
.story-preview-route-line-rich span i{margin-left:7px}
.story-preview-route-line-rich span small{font-size:.49rem;opacity:.78}
.story-preview-cta-rich{padding-top:11px;margin-top:8px}
.story-preview-cta-rich>b{font-size:.82rem}
.story-preview-cta-rich>p{font-size:.53rem;line-height:1.35}
.story-preview-cta-rich>strong{font-size:.58rem;color:#9a6b24}


/* ===== v28 FINAL COMPOSITION / ALIGNMENT POLISH — no new content ===== */
.story-preview-editorial .story-preview-result-editorial{
  grid-template-columns:minmax(0,1fr) 120px;
  gap:8px;
  align-items:center;
}
.story-preview-editorial .story-preview-plate{
  min-height:120px;
  transform:translateY(5px);
}
.story-preview-editorial .story-preview-core-rich{
  margin-top:6px;
  padding:5px 0 6px;
}
.story-preview-editorial .story-preview-core-rich>div{margin-top:5px}
.story-preview-editorial .story-preview-core-rich>div>span{padding:3px 12px 4px}
.story-preview-editorial .story-preview-why-framed{
  margin-top:7px;
  padding:13px 28px 14px 22px;
}
.story-preview-editorial .story-preview-why-framed p{max-width:92%;line-height:1.44}
.story-preview-editorial .story-preview-why-framed small{max-width:94%}
.story-preview-editorial .story-preview-profile-field{
  margin-top:8px;
  padding-top:14px;
  padding-bottom:13px;
}
.story-preview-editorial .story-preview-profile-layout{
  grid-template-columns:44% 56%;
  gap:10px;
  align-items:start;
}
.story-preview-editorial .story-preview-key-line{line-height:1.50!important;margin-top:5px}
.story-preview-editorial .story-preview-radar{
  padding-top:0;
  transform:translateY(-7px);
}
.story-preview-editorial .story-preview-radar>em{
  margin-top:7px;
  opacity:.68;
}
.story-preview-editorial .story-preview-profile-note{margin-top:8px}
.story-preview-editorial .story-preview-route-line-rich{
  padding:8px 0;
  grid-template-columns:25px minmax(0,1fr);
  gap:7px;
}
.story-preview-editorial .story-preview-route-line-rich span i{margin-left:5px}
.story-preview-editorial .story-preview-route-line-rich span small{max-width:94%;margin-top:3px}
.story-preview-editorial .story-preview-cta-rich{
  margin-top:4px;
  padding-top:9px;
}
.story-preview-editorial .story-preview-footer{
  margin-top:-11px;
  padding-top:0;
  border-top:0;
  text-align:right;
}


/* ===== v29 FINAL TYPOGRAPHY / ALIGNMENT POLISH — no redesign, no new content ===== */
.story-preview-editorial .story-preview-result-editorial{
  grid-template-columns:minmax(0,1fr) 130px;
  gap:7px;
  align-items:center;
}
.story-preview-editorial .story-preview-en{
  font-size:.80rem;
  margin-top:3px;
}
.story-preview-editorial .story-preview-archetype{
  font-size:.52rem;
  letter-spacing:.035em;
  margin-top:4px;
}
.story-preview-editorial .story-preview-faculty{
  font-size:.68rem;
  margin-top:3px;
}
.story-preview-editorial .story-preview-plate{
  min-height:130px;
  transform:translateY(9px);
}
.story-preview-editorial .story-preview-core-rich small{
  font-size:.56rem;
}
.story-preview-editorial .story-preview-core-rich b{
  font-size:.46rem;
  line-height:1.26;
}
.story-preview-editorial .story-preview-core-rich>div>span{
  padding:4px 12px 5px;
  align-self:stretch;
}
.story-preview-editorial .story-preview-why-framed b{
  font-size:.63rem;
}
.story-preview-editorial .story-preview-why-framed p{
  line-height:1.48;
}
.story-preview-editorial .story-preview-why-framed small{
  font-size:.60rem;
  line-height:1.40;
  color:rgba(21,56,47,.82);
}
.story-preview-editorial .story-preview-profile-field .story-preview-section-title{
  font-size:.50rem;
}
.story-preview-editorial .story-preview-dna-list>em{
  font-size:.36rem;
}
.story-preview-editorial .story-preview-dna-row{
  padding:5px 0;
  grid-template-columns:29px 1fr;
}
.story-preview-editorial .story-preview-dna-row b{
  font-size:.71rem;
}
.story-preview-editorial .story-preview-dna-row span{
  font-size:.56rem;
}
.story-preview-editorial .story-preview-dna-list .story-preview-key{
  font-size:.60rem!important;
  margin-top:10px!important;
}
.story-preview-editorial .story-preview-key-line{
  font-size:.58rem!important;
  line-height:1.50!important;
}
.story-preview-editorial .story-preview-radar>em{
  font-size:.50rem!important;
  margin-top:9px;
}
.story-preview-editorial .story-preview-profile-note{
  font-size:.53rem!important;
  line-height:1.38;
}
.story-preview-editorial .story-preview-route-line-rich{
  display:grid;
  grid-template-columns:25px minmax(0,46%) minmax(0,1fr);
  gap:7px;
  align-items:center;
  padding:9px 0;
}
.story-preview-editorial .story-preview-route-line-rich>b{
  font-size:.64rem;
}
.story-preview-editorial .story-preview-route-left{
  color:#16382f;
  font:700 .64rem/1.2 var(--display-font);
  min-width:0;
}
.story-preview-editorial .story-preview-route-left i{
  margin-left:4px;
  color:#75313c;
  font:700 .38rem/1 var(--display-font);
  font-style:normal;
  white-space:nowrap;
}
.story-preview-editorial .story-preview-route-reason{
  color:rgba(22,56,47,.76);
  font:500 .55rem/1.30 var(--display-font);
  min-width:0;
}
.story-preview-editorial .story-preview-cta-rich>p{
  font-size:.59rem;
  line-height:1.38;
  color:rgba(22,56,47,.80);
}
.story-preview-editorial .story-preview-cta-rich>strong{
  font-size:.63rem;
  color:#a2742b;
}


/* ===== v30 DENTISTRY FINAL POLISH — typography/alignment/plate only ===== */
.story-preview-editorial .story-preview-archetype{font-size:.56rem;letter-spacing:.045em}
.story-preview-editorial .story-preview-faculty{font-size:.73rem;color:rgba(21,56,47,.84)}
.story-preview-editorial .story-preview-result-editorial{grid-template-columns:minmax(0,1fr) 140px;align-items:center}
.story-preview-editorial .story-preview-plate{min-height:136px;transform:translateY(12px)}
.story-preview-editorial .story-preview-plate[data-code="DT"] i{
  width:72px;height:72px;border-radius:48% 48% 43% 43%;
  border:1.2px solid rgba(23,58,49,.36);
  box-shadow:0 0 0 10px rgba(195,154,74,.06), inset 0 0 0 10px rgba(195,154,74,.05);
}
.story-preview-editorial .story-preview-plate[data-code="DT"] i::before{
  content:'';position:absolute;left:50%;top:-16px;width:1px;height:104px;background:rgba(195,154,74,.55);transform:translateX(-50%);
}
.story-preview-editorial .story-preview-plate[data-code="DT"] i::after{
  inset:12px;border-radius:50% 50% 42% 42%;border-color:rgba(23,58,49,.32);
}
.story-preview-editorial .story-preview-core-rich small{font-size:.62rem;color:rgba(117,49,60,.86)}
.story-preview-editorial .story-preview-core-rich b{font-size:.49rem;line-height:1.28}
.story-preview-editorial .story-preview-core-rich>div>span{padding:5px 12px 6px}
.story-preview-editorial .story-preview-why-framed b{font-size:.69rem}
.story-preview-editorial .story-preview-why-framed p{font-weight:600;line-height:1.52}
.story-preview-editorial .story-preview-why-framed small{font-size:.64rem;line-height:1.42;color:rgba(21,56,47,.86)}
.story-preview-editorial .story-preview-profile-field .story-preview-section-title{font-size:.55rem}
.story-preview-editorial .story-preview-dna-list>em{font-size:.41rem}
.story-preview-editorial .story-preview-dna-row{padding:6px 0;grid-template-columns:31px 1fr}
.story-preview-editorial .story-preview-dna-row b{font-size:.75rem;color:#cc9d43}
.story-preview-editorial .story-preview-dna-row span{font-size:.60rem}
.story-preview-editorial .story-preview-dna-list .story-preview-key{font-size:.66rem!important;margin-top:11px!important}
.story-preview-editorial .story-preview-key-line{font-size:.62rem!important;line-height:1.54!important}
.story-preview-editorial .story-preview-profile-layout{grid-template-columns:44% 56%;gap:10px;align-items:start}
.story-preview-editorial .story-preview-radar{transform:translateY(-9px);padding-top:8px}
.story-preview-editorial .story-preview-radar svg{max-width:125px}
.story-preview-editorial .story-preview-radar>em{font-size:.54rem!important;margin-top:11px}
.story-preview-editorial .story-preview-profile-note{font-size:.57rem!important;line-height:1.40}
.story-preview-editorial .story-preview-route-line-rich{grid-template-columns:25px minmax(0,47%) minmax(0,1fr);gap:7px;padding:9px 0}
.story-preview-editorial .story-preview-route-line-rich>b{font-size:.67rem;color:#cc9d43}
.story-preview-editorial .story-preview-route-left{font-size:.68rem;line-height:1.2}
.story-preview-editorial .story-preview-route-left i{font-size:.42rem;margin-left:3px;color:#75313c}
.story-preview-editorial .story-preview-route-reason{font-size:.59rem;line-height:1.30;color:rgba(21,56,47,.80)}
.story-preview-editorial .story-preview-cta-rich>p{font-size:.64rem;line-height:1.38;color:rgba(21,56,47,.84)}
.story-preview-editorial .story-preview-cta-rich>strong{font-size:.67rem;color:#a87525}


/* ===== v31 FINAL MICRO-TYPOGRAPHY FIX ===== */
.story-preview-editorial .story-preview-core-rich>div {
  align-items: stretch;
}
.story-preview-editorial .story-preview-core-rich>div>span {
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  min-height:44px;
}
.story-preview-editorial .story-preview-core-rich b {
  font-size:.47rem;
  line-height:1.34;
  overflow-wrap:normal;
  word-break:normal;
}
.story-preview-editorial .story-preview-why-framed p {
  line-height:1.50;
}
.story-preview-editorial .story-preview-why-framed small {
  line-height:1.47;
  max-width:90%;
  overflow-wrap:normal;
  word-break:normal;
}
.story-preview-editorial .story-preview-dna-row {
  padding-top:6.4px;
  padding-bottom:6.4px;
}
.story-preview-editorial .story-preview-key {
  display:block;
  margin-top:9px;
}
.story-preview-editorial .story-preview-key-line {
  margin:6px 0 0!important;
  line-height:1.60!important;
  padding-left:1px;
  overflow-wrap:normal;
  word-break:normal;
}


/* ===== v32 FINAL GRID / ALIGNMENT ORDER PASS — no new content ===== */
.story-preview-editorial .story-preview-paper-editorial{
  --ws-main-left: 0px;
  --ws-inner: 12px;
}
.story-preview-editorial .story-preview-result-editorial{
  grid-template-columns:minmax(0,1fr) 142px;
  gap:12px;
  align-items:center;
}
.story-preview-editorial .story-preview-result-editorial>div:first-child{min-width:0;padding-right:2px}
.story-preview-editorial .story-preview-archetype{
  display:flex;
  align-items:baseline;
  gap:5px;
  max-width:100%;
  white-space:nowrap;
  overflow:hidden;
}
.story-preview-editorial .story-preview-archetype>span{
  flex:0 0 auto;
  color:#75313c;
  font:800 .36rem/1 var(--display-font);
  letter-spacing:.04em;
}
.story-preview-editorial .story-preview-archetype>b{
  min-width:0;
  overflow:hidden;
  text-overflow:clip;
  color:#16382f;
  font:700 .53rem/1.15 Georgia,serif;
  letter-spacing:.015em;
}
.story-preview-editorial .story-preview-plate{transform:translateY(13px);min-height:138px}
.story-preview-editorial .story-preview-plate[data-code="VM"] i{
  box-shadow:0 0 0 9px rgba(195,154,74,.055),inset 0 0 0 8px rgba(23,58,49,.035);
}
.story-preview-editorial .story-preview-core-rich>div{
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:stretch;
}
.story-preview-editorial .story-preview-core-rich>div>span{
  padding:5px 10px 6px;
  min-height:46px;
  justify-content:flex-start;
}
.story-preview-editorial .story-preview-core-rich small{min-height:12px;line-height:1.12}
.story-preview-editorial .story-preview-core-rich b{margin-top:4px;line-height:1.28}
.story-preview-editorial .story-preview-why-framed p,
.story-preview-editorial .story-preview-why-framed small{max-width:90%}
.story-preview-editorial .story-preview-profile-layout{
  grid-template-columns:44% 56%;
  gap:12px;
  align-items:start;
}
.story-preview-editorial .story-preview-dna-row{min-height:31px;align-items:center}
.story-preview-editorial .story-preview-key-line{padding-left:0;margin-top:6px!important;line-height:1.56!important}
.story-preview-editorial .story-preview-radar{transform:translateY(1px);padding-top:8px;display:flex;flex-direction:column;align-items:center}
.story-preview-editorial .story-preview-radar svg{max-width:122px;margin:0 auto}
.story-preview-editorial .story-preview-radar>em{margin-top:12px!important}
.story-preview-editorial .story-preview-profile-note{
  margin-top:9px;
  padding-top:7px;
  border-top:1px solid rgba(232,216,177,.08);
  text-align:center;
}
.story-preview-editorial .story-preview-route-line-rich{
  grid-template-columns:25px minmax(0,52%) minmax(0,1fr);
  gap:7px;
  align-items:center;
  min-height:35px;
  padding:8px 0;
}
.story-preview-editorial .story-preview-route-left{white-space:nowrap;overflow:hidden}
.story-preview-editorial .story-preview-route-left i{margin-left:3px}
.story-preview-editorial .story-preview-route-reason{padding-left:4px}
.story-preview-editorial .story-preview-cta-rich{margin-top:4px;padding-top:9px;text-align:left}
.story-preview-editorial .story-preview-cta-rich>*{margin-left:0}
.story-preview-editorial .story-preview-footer{text-align:right;margin-top:5px;padding-top:0}


/* ===== v33 MASTER GRID / GEOMETRY CLEANUP ONLY ===== */
.story-preview-editorial .story-preview-result-editorial{
  grid-template-columns:minmax(0,1fr) 136px;
  gap:14px;
  align-items:center;
}
.story-preview-editorial .story-preview-archetype{gap:5px;max-width:100%;padding-right:3px}
.story-preview-editorial .story-preview-archetype>b{font-size:.51rem;max-width:100%}
.story-preview-editorial .story-preview-plate{transform:translateY(0);min-height:116px;align-self:center}
.story-preview-editorial .story-preview-core-rich{margin-top:10px}
.story-preview-editorial .story-preview-core-rich>em{padding-bottom:7px}
.story-preview-editorial .story-preview-core-rich>div{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;margin-top:0}
.story-preview-editorial .story-preview-core-rich>div>span{min-height:48px;padding:7px 10px 6px;justify-content:flex-start}
.story-preview-editorial .story-preview-core-rich small{min-height:13px;display:flex;align-items:center}
.story-preview-editorial .story-preview-core-rich b{margin-top:5px;white-space:nowrap;font-size:.45rem}
.story-preview-editorial .story-preview-why-framed{padding:11px 16px 12px 22px}
.story-preview-editorial .story-preview-why-framed b{display:block;margin-bottom:8px}
.story-preview-editorial .story-preview-why-framed p{margin:0;max-width:88%;line-height:1.48}
.story-preview-editorial .story-preview-why-framed small{margin-top:7px;max-width:92%;line-height:1.44}
.story-preview-editorial .story-preview-profile-layout{grid-template-columns:44% 56%;gap:12px;align-items:start}
.story-preview-editorial .story-preview-radar::before{content:'YOUR HERO DNA';display:block;color:rgba(255,247,222,.90);font:700 .48rem/1 var(--display-font);letter-spacing:.04em;margin-bottom:8px}
.story-preview-editorial .story-preview-dna-row{min-height:32px;padding:5px 0}
.story-preview-editorial .story-preview-key{margin-top:13px}
.story-preview-editorial .story-preview-key-line{line-height:1.60!important;margin-top:7px!important;padding-left:0}
.story-preview-editorial .story-preview-radar{transform:translateY(4px);padding-top:0}
.story-preview-editorial .story-preview-radar svg{max-width:118px}
.story-preview-editorial .story-preview-radar>em{margin-top:15px!important}
.story-preview-editorial .story-preview-profile-note{margin-top:11px;padding-top:8px;text-align:center}
.story-preview-editorial .story-preview-route-line-rich{
  display:grid;
  grid-template-columns:minmax(0,57%) minmax(0,43%);
  gap:10px;
  align-items:center;
  min-height:39px;
  padding:8px 0;
}
.story-preview-editorial .story-preview-route-left{display:flex;align-items:baseline;gap:5px;min-width:0;white-space:nowrap;overflow:hidden}
.story-preview-editorial .story-preview-route-left>b{flex:0 0 24px;color:#cc9d43;font:700 .66rem/1 Georgia,serif}
.story-preview-editorial .story-preview-route-left>span{min-width:0;overflow:hidden;text-overflow:clip;font-size:.66rem;line-height:1.2;color:#16382f;font-weight:700}
.story-preview-editorial .story-preview-route-left i{margin-left:4px;font-size:.43rem;color:#75313c}
.story-preview-editorial .story-preview-route-reason{padding-left:0;font-size:.57rem;line-height:1.28}
.story-preview-editorial .story-preview-cta-rich{margin-top:5px;padding-top:9px}
.story-preview-editorial .story-preview-cta-rich>p{font-size:.65rem}
.story-preview-editorial .story-preview-cta-rich>strong{font-size:.64rem}
.story-preview-editorial .story-preview-footer{text-align:right;margin-top:4px}

/* v33 final radar breathing-room nudge */
.story-preview-editorial .story-preview-radar{transform:translateY(8px)}


/* ===== v34 COLLECTION MASTER SYSTEM ===== */
.story-preview-editorial .story-preview-enjoy-editorial{margin-top:9px;padding-top:7px;border-top:1px solid rgba(200,154,70,.24)}
.story-preview-editorial .story-preview-enjoy-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:7px}
.story-preview-editorial .story-preview-enjoy-grid>span{display:grid;grid-template-columns:22px minmax(0,1fr);align-items:start;gap:5px;min-width:0}
.story-preview-editorial .story-preview-enjoy-grid b{color:#b48332;font:700 .48rem/1 Georgia,serif}
.story-preview-editorial .story-preview-enjoy-grid small{color:#173a31;font:600 .50rem/1.34 var(--body-font)}
.story-preview-editorial .story-preview-route-editorial{margin-top:9px}
.story-preview-editorial .story-preview-cta-rich>b{font-size:.82rem}


/* ===== v35 MEDICINE THAI TYPOGRAPHY + LINE-BREAK QA ONLY ===== */
.story-preview-editorial .story-preview-why-framed p{
  text-wrap:balance;
  line-height:1.46;
}
.story-preview-editorial .story-preview-why-framed small{
  text-wrap:balance;
  line-height:1.45;
}
.story-preview-editorial .story-preview-profile-layout{
  grid-template-columns:45% 55%;
}
.story-preview-editorial .story-preview-dna-row{
  min-height:34px;
  padding:6px 0;
}
.story-preview-editorial .story-preview-dna-list .story-preview-key{
  margin-top:15px!important;
}
.story-preview-editorial .story-preview-key-line{
  line-height:1.48!important;
  margin-top:8px!important;
  text-wrap:pretty;
}
.story-preview-editorial .story-preview-radar>em{
  margin-top:16px!important;
}
.story-preview-editorial .story-preview-profile-note{
  margin-top:12px;
  padding-top:9px;
}
.story-preview-editorial .story-preview-enjoy-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.story-preview-editorial .story-preview-enjoy-grid small{
  font-size:.52rem;
  line-height:1.38;
  text-wrap:balance;
}
.story-preview-editorial .story-preview-route-line-rich{
  grid-template-columns:minmax(0,57%) minmax(0,43%);
}
.story-preview-editorial .story-preview-route-reason{
  text-wrap:balance;
}
.story-preview-editorial .story-preview-cta-rich>p{
  font-size:.69rem;
  line-height:1.40;
}

/* ===== v36 MEDICAL TECHNOLOGY FINAL GRID + TYPOGRAPHY CLEANUP ONLY ===== */
.story-preview-editorial[data-result-code="MT"] .story-preview-en{
  font-size:.85rem;
}
.story-preview-editorial[data-result-code="MT"] .story-preview-archetype{
  gap:7px;
  padding-right:10px;
}
.story-preview-editorial[data-result-code="MT"] .story-preview-archetype>span{
  font-size:.32rem;
}
.story-preview-editorial[data-result-code="MT"] .story-preview-archetype>b{
  font-size:.53rem;
}
.story-preview-editorial[data-result-code="MT"] .story-preview-plate i{
  width:68px;
  height:68px;
  transform:translateY(7px);
}
.story-preview-editorial[data-result-code="MT"] .story-preview-core-rich>div{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.story-preview-editorial[data-result-code="MT"] .story-preview-core-rich>div>span{
  min-height:48px;
  padding-inline:10px;
}
.story-preview-editorial[data-result-code="MT"] .story-preview-core-rich b{
  white-space:nowrap;
}
.story-preview-editorial[data-result-code="MT"] .story-preview-why-framed p,
.story-preview-editorial[data-result-code="MT"] .story-preview-why-framed small{
  text-wrap:balance;
}
.story-preview-editorial[data-result-code="MT"] .story-preview-why-framed small{
  margin-top:9px;
  font-weight:500;
}
.story-preview-editorial[data-result-code="MT"] .story-preview-profile-field{
  padding-left:12px;
  padding-right:12px;
}
.story-preview-editorial[data-result-code="MT"] .story-preview-profile-layout{
  grid-template-columns:45% 55%;
  gap:12px;
}
.story-preview-editorial[data-result-code="MT"] .story-preview-dna-row{
  min-height:35px;
  padding-block:6px;
}
.story-preview-editorial[data-result-code="MT"] .story-preview-dna-list .story-preview-key{
  margin-top:17px!important;
}
.story-preview-editorial[data-result-code="MT"] .story-preview-key-line{
  line-height:1.50!important;
  margin-top:8px!important;
}
.story-preview-editorial[data-result-code="MT"] .story-preview-radar{
  transform:translateY(10px);
}
.story-preview-editorial[data-result-code="MT"] .story-preview-radar>em{
  margin-top:17px!important;
}
.story-preview-editorial[data-result-code="MT"] .story-preview-profile-note{
  margin-top:13px;
  font-size:.51rem!important;
}
.story-preview-editorial[data-result-code="MT"] .story-preview-enjoy-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.story-preview-editorial[data-result-code="MT"] .story-preview-enjoy-grid>span{
  min-height:34px;
}
.story-preview-editorial[data-result-code="MT"] .story-preview-enjoy-grid small{
  text-wrap:balance;
}
.story-preview-editorial[data-result-code="MT"] .story-preview-route-line-rich{
  grid-template-columns:minmax(0,57%) minmax(0,43%);
  min-height:39px;
}
.story-preview-editorial[data-result-code="MT"] .story-preview-route-reason{
  text-wrap:balance;
}
.story-preview-editorial[data-result-code="MT"] .story-preview-cta-rich>b{
  font-size:.86rem;
}
.story-preview-editorial[data-result-code="MT"] .story-preview-cta-rich>p{
  font-size:.74rem;
}

/* ===== v37 INSTAGRAM SHARE POLISH — MT share card only; no redesign ===== */
.story-preview-editorial[data-result-code="MT"] .story-preview-result-editorial{
  grid-template-columns:minmax(0,1fr) 140px;
  gap:15px;
  align-items:center;
}
.story-preview-editorial[data-result-code="MT"] .story-preview-match{
  display:flex;
  align-items:center;
  gap:9px;
  white-space:nowrap;
}
.story-preview-editorial[data-result-code="MT"] .story-preview-match::after{
  content:'';
  display:block;
  height:1px;
  flex:1 1 auto;
  max-width:78px;
  background:rgba(200,154,70,.34);
}
.story-preview-editorial[data-result-code="MT"] .story-preview-en{
  font-size:.90rem;
  line-height:1.16;
}
.story-preview-editorial[data-result-code="MT"] .story-preview-archetype{
  gap:8px;
}
.story-preview-editorial[data-result-code="MT"] .story-preview-archetype>span{
  font-size:.31rem;
  letter-spacing:.035em;
}
.story-preview-editorial[data-result-code="MT"] .story-preview-archetype>b{
  font-size:.54rem;
}
.story-preview-editorial[data-result-code="MT"] .story-preview-plate{
  transform:translateY(8px);
  min-height:120px;
}
.story-preview-editorial[data-result-code="MT"] .story-preview-plate i{
  width:72px;
  height:72px;
}
.story-preview-editorial[data-result-code="MT"] .story-preview-core-rich>div{
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:stretch;
}
.story-preview-editorial[data-result-code="MT"] .story-preview-core-rich>div>span{
  min-height:50px;
  padding:7px 10px 6px;
}
.story-preview-editorial[data-result-code="MT"] .story-preview-core-rich small{
  min-height:13px;
  align-items:center;
}
.story-preview-editorial[data-result-code="MT"] .story-preview-core-rich b{
  margin-top:5px;
  white-space:nowrap;
}
.story-preview-editorial[data-result-code="MT"] .story-preview-why-framed{
  padding:12px 18px 13px 22px;
}
.story-preview-editorial[data-result-code="MT"] .story-preview-why-framed p{
  max-width:94%;
  line-height:1.48;
}
.story-preview-editorial[data-result-code="MT"] .story-preview-why-framed small{
  margin-top:11px;
  max-width:94%;
  font-weight:400;
  line-height:1.44;
}
.story-preview-editorial[data-result-code="MT"] .story-preview-profile-field{
  padding-left:14px;
  padding-right:14px;
}
.story-preview-editorial[data-result-code="MT"] .story-preview-profile-layout{
  grid-template-columns:45% 55%;
  gap:13px;
  align-items:start;
}
.story-preview-editorial[data-result-code="MT"] .story-preview-dna-list>em,
.story-preview-editorial[data-result-code="MT"] .story-preview-radar::before{
  line-height:1;
}
.story-preview-editorial[data-result-code="MT"] .story-preview-dna-row{
  min-height:36px;
  padding:6px 0;
  align-items:center;
}
.story-preview-editorial[data-result-code="MT"] .story-preview-dna-list .story-preview-key{
  margin-top:18px!important;
}
.story-preview-editorial[data-result-code="MT"] .story-preview-key-line{
  margin-top:9px!important;
  line-height:1.50!important;
}
.story-preview-editorial[data-result-code="MT"] .story-preview-radar{
  transform:translateY(8px);
}
.story-preview-editorial[data-result-code="MT"] .story-preview-radar svg{
  max-width:120px;
}
.story-preview-editorial[data-result-code="MT"] .story-preview-radar>em{
  margin-top:16px!important;
}
.story-preview-editorial[data-result-code="MT"] .story-preview-profile-note{
  margin-top:14px;
  padding-top:9px;
  font-size:.49rem!important;
}
.story-preview-editorial[data-result-code="MT"] .story-preview-enjoy-editorial{
  margin-top:10px;
  padding-top:8px;
}
.story-preview-editorial[data-result-code="MT"] .story-preview-enjoy-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-top:8px;
}
.story-preview-editorial[data-result-code="MT"] .story-preview-enjoy-grid>span{
  min-height:38px;
  align-items:start;
}
.story-preview-editorial[data-result-code="MT"] .story-preview-enjoy-grid small{
  line-height:1.35;
  text-wrap:balance;
}
.story-preview-editorial[data-result-code="MT"] .story-preview-route-line-rich{
  grid-template-columns:minmax(0,57%) minmax(0,43%);
  min-height:40px;
  padding:8px 0;
  align-items:center;
}
.story-preview-editorial[data-result-code="MT"] .story-preview-route-left i{
  font-size:.43rem;
  font-weight:700;
}
.story-preview-editorial[data-result-code="MT"] .story-preview-route-reason{
  padding-left:0;
  text-wrap:balance;
}
.story-preview-editorial[data-result-code="MT"] .story-preview-cta-rich>b{
  font-size:.90rem;
  line-height:1.18;
}
.story-preview-editorial[data-result-code="MT"] .story-preview-cta-rich>p{
  margin-top:4px;
  font-size:.76rem;
  line-height:1.36;
}
.story-preview-editorial[data-result-code="MT"] .story-preview-cta-rich>strong{
  margin-top:2px;
  font-size:.62rem;
}


/* ===== v38 VETERINARY MEDICINE FINAL TYPOGRAPHY + READABILITY MASTER PASS =====
   Share-card only. Preserve composition; improve Thai reading, wraps, and hierarchy. */
.story-preview-editorial[data-result-code="VM"]{
  --vm-display-font:"Noto Serif Thai", Georgia, serif;
  --vm-body-font:"Noto Sans Thai", system-ui, sans-serif;
}
.story-preview-editorial[data-result-code="VM"] .story-preview-result-editorial{
  grid-template-columns:minmax(0,1fr) 132px;
  gap:14px;
  align-items:center;
}
.story-preview-editorial[data-result-code="VM"] .story-preview-match,
.story-preview-editorial[data-result-code="VM"] .story-preview-archetype,
.story-preview-editorial[data-result-code="VM"] .story-preview-faculty,
.story-preview-editorial[data-result-code="VM"] .story-preview-section-title,
.story-preview-editorial[data-result-code="VM"] .story-preview-core-rich,
.story-preview-editorial[data-result-code="VM"] .story-preview-why-framed,
.story-preview-editorial[data-result-code="VM"] .story-preview-profile-field,
.story-preview-editorial[data-result-code="VM"] .story-preview-enjoy-editorial,
.story-preview-editorial[data-result-code="VM"] .story-preview-route-editorial,
.story-preview-editorial[data-result-code="VM"] .story-preview-cta-rich,
.story-preview-editorial[data-result-code="VM"] .story-preview-footer{
  font-family:var(--vm-body-font);
}
.story-preview-editorial[data-result-code="VM"] .story-preview-program{
  font-family:var(--vm-display-font);
  font-size:1.32rem;
  line-height:1.08;
  font-weight:800;
  white-space:nowrap;
}
.story-preview-editorial[data-result-code="VM"] .story-preview-en{
  font-family:var(--vm-display-font);
  font-size:.76rem;
  line-height:1.18;
  font-weight:600;
  margin-top:4px;
}
.story-preview-editorial[data-result-code="VM"] .story-preview-archetype{
  gap:7px;
  margin-top:6px;
  padding-right:2px;
  overflow:visible;
}
.story-preview-editorial[data-result-code="VM"] .story-preview-archetype>span{
  font:800 .34rem/1 var(--vm-body-font);
  letter-spacing:.035em;
}
.story-preview-editorial[data-result-code="VM"] .story-preview-archetype>b{
  font:700 .55rem/1.15 var(--vm-body-font);
  letter-spacing:.015em;
  white-space:nowrap;
}
.story-preview-editorial[data-result-code="VM"] .story-preview-faculty{
  font-size:.57rem;
  line-height:1.25;
  font-weight:600;
}
.story-preview-editorial[data-result-code="VM"] .story-preview-plate{
  min-height:124px;
  transform:translateY(8px);
}
.story-preview-editorial[data-result-code="VM"] .story-preview-core-rich{
  margin-top:8px;
  padding:7px 0 8px;
}
.story-preview-editorial[data-result-code="VM"] .story-preview-core-rich>em{
  font:800 .43rem/1 var(--vm-body-font);
}
.story-preview-editorial[data-result-code="VM"] .story-preview-core-rich>div{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:0;
  align-items:stretch;
  margin-top:7px;
}
.story-preview-editorial[data-result-code="VM"] .story-preview-core-rich>div>span{
  min-height:50px;
  padding:6px 8px;
}
.story-preview-editorial[data-result-code="VM"] .story-preview-core-rich small{
  font:700 .48rem/1.18 var(--vm-body-font);
  min-height:13px;
}
.story-preview-editorial[data-result-code="VM"] .story-preview-core-rich b{
  font:700 .55rem/1.30 var(--vm-body-font);
  margin-top:5px;
  white-space:nowrap;
}
.story-preview-editorial[data-result-code="VM"] .story-preview-why-framed{
  margin-top:8px;
  padding:11px 16px 12px 18px;
}
.story-preview-editorial[data-result-code="VM"] .story-preview-why-framed>b{
  font:800 .48rem/1 var(--vm-body-font);
}
.story-preview-editorial[data-result-code="VM"] .story-preview-why-framed p{
  font:600 .64rem/1.45 var(--vm-body-font);
  margin:6px 0 0;
  max-width:100%;
  text-wrap:balance;
}
.story-preview-editorial[data-result-code="VM"] .story-preview-why-framed small{
  font:500 .53rem/1.45 var(--vm-body-font);
  margin-top:8px;
  max-width:100%;
  text-wrap:balance;
}
.story-preview-editorial[data-result-code="VM"] .story-preview-profile-field{
  margin-top:9px;
  padding:12px 13px 11px;
}
.story-preview-editorial[data-result-code="VM"] .story-preview-profile-field .story-preview-section-title{
  font:800 .46rem/1 var(--vm-body-font);
}
.story-preview-editorial[data-result-code="VM"] .story-preview-profile-layout{
  grid-template-columns:52% 48%;
  gap:12px;
  align-items:start;
}
.story-preview-editorial[data-result-code="VM"] .story-preview-dna-list>em{
  font:700 .39rem/1 var(--vm-body-font);
}
.story-preview-editorial[data-result-code="VM"] .story-preview-dna-row{
  grid-template-columns:29px minmax(0,1fr);
  min-height:34px;
  padding:6px 0;
  align-items:center;
}
.story-preview-editorial[data-result-code="VM"] .story-preview-dna-row b{
  font:800 .65rem/1 var(--vm-body-font);
}
.story-preview-editorial[data-result-code="VM"] .story-preview-dna-row span{
  font:700 .56rem/1.25 var(--vm-body-font);
  white-space:nowrap;
}
.story-preview-editorial[data-result-code="VM"] .story-preview-dna-list .story-preview-key{
  font:700 .45rem/1 var(--vm-body-font)!important;
  margin-top:14px!important;
}
.story-preview-editorial[data-result-code="VM"] .story-preview-key-line{
  font:500 .53rem/1.45 var(--vm-body-font)!important;
  margin:8px 0 0!important;
  white-space:nowrap;
}
.story-preview-editorial[data-result-code="VM"] .story-preview-radar{
  transform:translateY(5px);
  padding-top:4px;
}
.story-preview-editorial[data-result-code="VM"] .story-preview-radar svg{
  max-width:121px;
}
.story-preview-editorial[data-result-code="VM"] .story-preview-radar>em{
  font:600 .36rem/1.2 var(--vm-body-font)!important;
  margin-top:12px!important;
}
.story-preview-editorial[data-result-code="VM"] .story-preview-profile-note{
  margin-top:11px;
  padding-top:8px;
  font:500 .46rem/1.35 var(--vm-body-font)!important;
  text-align:center;
}
.story-preview-editorial[data-result-code="VM"] .story-preview-enjoy-editorial{
  margin-top:9px;
  padding-top:8px;
}
.story-preview-editorial[data-result-code="VM"] .story-preview-enjoy-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
  margin-top:8px;
}
.story-preview-editorial[data-result-code="VM"] .story-preview-enjoy-grid>span{
  grid-template-columns:22px minmax(0,1fr);
  gap:5px;
  min-height:39px;
}
.story-preview-editorial[data-result-code="VM"] .story-preview-enjoy-grid b{
  font:700 .52rem/1 var(--vm-body-font);
}
.story-preview-editorial[data-result-code="VM"] .story-preview-enjoy-grid small{
  font:600 .52rem/1.42 var(--vm-body-font);
  text-wrap:balance;
}
.story-preview-editorial[data-result-code="VM"] .story-preview-route-editorial{
  margin-top:9px;
}
.story-preview-editorial[data-result-code="VM"] .story-preview-route-line-rich{
  grid-template-columns:minmax(0,56%) minmax(0,44%);
  min-height:39px;
  padding:8px 0;
  gap:9px;
  align-items:center;
}
.story-preview-editorial[data-result-code="VM"] .story-preview-route-left{
  font:700 .57rem/1.25 var(--vm-body-font);
  white-space:nowrap;
  overflow:visible;
}
.story-preview-editorial[data-result-code="VM"] .story-preview-route-left>b{
  display:inline-block;
  min-width:23px;
  color:#b48332;
  font:800 .57rem/1 var(--vm-body-font);
}
.story-preview-editorial[data-result-code="VM"] .story-preview-route-left i{
  font:700 .44rem/1 var(--vm-body-font);
  margin-left:4px;
}
.story-preview-editorial[data-result-code="VM"] .story-preview-route-reason{
  font:500 .51rem/1.38 var(--vm-body-font);
  padding-left:0;
  text-wrap:balance;
}
.story-preview-editorial[data-result-code="VM"] .story-preview-cta-rich{
  margin-top:6px;
  padding-top:9px;
  gap:3px;
}
.story-preview-editorial[data-result-code="VM"] .story-preview-cta-rich>small{
  font:800 .42rem/1 var(--vm-body-font);
}
.story-preview-editorial[data-result-code="VM"] .story-preview-cta-rich>b{
  font:800 .90rem/1.18 var(--vm-display-font);
}
.story-preview-editorial[data-result-code="VM"] .story-preview-cta-rich>p{
  font:500 .61rem/1.40 var(--vm-body-font);
  margin:3px 0 0;
}
.story-preview-editorial[data-result-code="VM"] .story-preview-cta-event{
  display:block;
  margin-top:2px;
  color:rgba(22,56,47,.68);
  font:600 .45rem/1.2 var(--vm-body-font);
  font-style:normal;
}
.story-preview-editorial[data-result-code="VM"] .story-preview-cta-rich>strong{
  font:700 .56rem/1.25 var(--vm-body-font);
  color:#a87525;
  margin-top:1px;
}
.story-preview-editorial[data-result-code="VM"] .story-preview-footer{
  font:500 .29rem/1.2 var(--vm-body-font);
}
