
:root {
  --ink: #101c23;
  --ink-soft: #243842;
  --navy: #0c1b24;
  --navy-2: #122a34;
  --navy-3: #183e47;
  --paper: #f5f1e8;
  --paper-2: #fbfaf5;
  --surface: #fffdf8;
  --line: #dcd8cc;
  --line-strong: #c9c4b8;
  --muted: #718087;
  --coral: #f2765c;
  --coral-dark: #c65343;
  --mint: #b9e5d0;
  --mint-dark: #2f7564;
  --danger: #bd4e43;
  --shadow: 0 18px 50px rgba(18, 34, 41, 0.08);
  --shadow-deep: 0 24px 70px rgba(5, 18, 24, 0.28);
  --radius: 18px;
  --max: 1260px;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); font-size: 14px; line-height: 1.72; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .18; z-index: 20; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.055'/%3E%3C/svg%3E"); mix-blend-mode: multiply; }
#app, #toast { position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; border: 0; }
button:disabled { cursor: wait; opacity: .58; }
a, button { touch-action: manipulation; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.25; }
h1 { font-size: clamp(2.2rem, 4vw, 4rem); letter-spacing: -.055em; font-weight: 600; }
h2 { font-size: 1.35rem; letter-spacing: -.025em; font-weight: 650; }
h3 { font-size: 1rem; font-weight: 650; }
p { margin-bottom: 1.05rem; }
small { font-size: .75rem; }
button, a { transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(242,118,92,.6); outline-offset: 3px; }

/* shared chrome */
.site-header { height: 82px; padding: 0 max(4.8vw, 26px); display: flex; align-items: center; justify-content: space-between; gap: 28px; position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: rgba(251,250,245,.9); backdrop-filter: blur(18px); }
.site-header.public, .site-header.admin { color: #eef4f1; border-color: rgba(217,239,229,.13); background: rgba(12,27,36,.92); }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; font-size: 21px; letter-spacing: .06em; font-weight: 700; }
.brand small { display: block; margin-top: 2px; font-size: 8px; line-height: 1; letter-spacing: .17em; font-weight: 600; opacity: .55; }
.brand-icon { width: 42px; height: 42px; display: grid; place-items: center; position: relative; border-radius: 13px 13px 4px 13px; background: var(--coral); color: var(--navy); font-family: "Noto Serif SC", serif; font-size: 23px; letter-spacing: 0; box-shadow: 5px 5px 0 rgba(242,118,92,.22); }
.brand-icon > span { position: absolute; right: -1px; top: -8px; font-size: 12px; color: var(--mint); }
.site-header:not(.public):not(.admin) .brand-icon { background: var(--navy); color: var(--mint); box-shadow: 5px 5px 0 rgba(12,27,36,.12); }
.main-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; font-size: 13px; }
.main-nav a { opacity: .74; padding: 8px 0; border-bottom: 1px solid transparent; }
.main-nav a:hover, .main-nav a.active { opacity: 1; color: var(--coral); border-color: currentColor; }
.site-header.public .main-nav a:hover, .site-header.public .main-nav a.active, .site-header.admin .main-nav a:hover, .site-header.admin .main-nav a.active { color: var(--mint); }
.nav-label { opacity: .62; font-size: 12px; letter-spacing: .05em; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.user-name { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.avatar { width: 30px; height: 30px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--mint); color: var(--navy); font-weight: 700; }
.text-button, .plain-link { background: none; padding: 0; color: var(--ink-soft); }
.site-header.public .text-button, .site-header.admin .text-button { color: #dbe7e3; }
.text-button:hover, .plain-link:hover { color: var(--coral); }
.plain-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 13px; padding: 12px 20px; border: 1px solid transparent; border-radius: 10px; background: var(--coral); color: var(--navy); font-size: 13px; font-weight: 700; white-space: nowrap; box-shadow: 0 9px 24px rgba(242,118,92,.22); }
.button:hover { background: #ff8c75; color: var(--navy); transform: translateY(-2px); box-shadow: 0 13px 30px rgba(242,118,92,.28); }
.button.small { min-height: 40px; padding: 9px 16px; font-size: 12px; }
.button.secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); box-shadow: none; }
.button.secondary:hover { background: var(--surface); border-color: var(--coral); }
.button.cream { background: var(--paper-2); color: var(--navy); box-shadow: none; }
.button.cream:hover { background: #fff; }
.button.full { width: 100%; justify-content: space-between; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 10px; line-height: 1.2; letter-spacing: .17em; font-weight: 700; text-transform: uppercase; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 5px rgba(242,118,92,.13); }
.muted { color: var(--muted); font-size: 12px; }
.error-text { min-height: 1.2em; margin: 12px 0; color: var(--danger); font-size: 12px; white-space: pre-wrap; }
.error-text:empty { display: none; }
.badge { display: inline-flex; align-items: center; min-height: 25px; padding: 4px 9px; border: 1px solid rgba(47,117,100,.24); border-radius: 999px; background: rgba(185,229,208,.48); color: var(--mint-dark); font-size: 10px; font-weight: 700; white-space: nowrap; }
.badge.orange { border-color: rgba(242,118,92,.24); background: rgba(242,118,92,.13); color: var(--coral-dark); }

/* landing */
.site-header.public + .landing { margin-top: 0; }
.landing { max-width: none; padding: 0; background: var(--navy); color: #eef5f1; overflow: hidden; }
.landing .hero { max-width: var(--max); min-height: 690px; margin: 0 auto; padding: 90px 5vw 78px; display: grid; grid-template-columns: minmax(0, .98fr) minmax(420px, 1.02fr); gap: clamp(30px, 5vw, 70px); align-items: center; }
.hero-copy { min-width: 0; }
.hero-copy .eyebrow { color: var(--mint); }
.hero-copy h1 { max-width: 690px; margin: 25px 0 24px; color: #f7f7ef; font-family: "Noto Serif SC", serif; font-size: clamp(3.1rem, 4.9vw, 5.2rem); font-weight: 500; line-height: 1.12; letter-spacing: -.085em; }
.serif-accent { position: relative; display: inline-block; color: var(--coral); white-space: nowrap; }
.serif-accent::after { content: ""; position: absolute; left: 2px; right: 3px; bottom: -8px; height: 2px; background: var(--coral); transform: rotate(-2deg); transform-origin: left center; opacity: .8; }
.hero-description { max-width: 440px; margin: 0 0 28px; color: #b6c5c2; font-size: 15px; line-height: 2.05; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin: 28px 0 30px; }
.landing .plain-link { color: var(--mint); }
.landing .plain-link:hover { color: #fff; }
.hero-note { display: flex; align-items: center; gap: 12px; color: #84999a; font-size: 11px; }
.tiny-icons { padding: 5px 10px; border: 1px solid rgba(185,229,208,.28); border-radius: 999px; color: var(--mint); letter-spacing: .22em; font-size: 9px; }
.hero-art { min-height: 500px; position: relative; overflow: hidden; border: 1px solid rgba(185,229,208,.25); border-radius: 28px; background: radial-gradient(circle at 52% 48%, #245561 0, #15343f 45%, #102731 100%); box-shadow: var(--shadow-deep); isolation: isolate; }
.hero-art::before { content: ""; position: absolute; width: 330px; height: 330px; border-radius: 50%; right: -92px; top: -96px; background: var(--coral); opacity: .88; filter: blur(1px); z-index: -1; }
.hero-art::after { content: ""; position: absolute; width: 190px; height: 190px; border-radius: 50%; left: -84px; bottom: -86px; background: var(--mint); opacity: .72; z-index: -1; }
.art-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(185,229,208,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(185,229,208,.1) 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.82), transparent 95%); }
.art-orbit { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(185,229,208,.34); border-radius: 50%; transform: translate(-50%, -50%); }
.orbit-one { width: min(72%, 410px); aspect-ratio: 1; }
.orbit-two { width: min(56%, 310px); aspect-ratio: 1; border-style: dashed; transform: translate(-50%, -50%) rotate(-18deg); }
.art-kicker { position: absolute; top: 26px; left: 0; right: 0; text-align: center; color: rgba(234,245,238,.64); font-size: 9px; letter-spacing: .26em; }
.art-center { position: absolute; inset: 50% auto auto 50%; display: flex; width: 210px; transform: translate(-50%, -50%); flex-direction: column; align-items: center; gap: 4px; color: #e4f2e9; text-align: center; }
.art-center > span { color: var(--mint); font-size: 11px; }
.art-center strong { font-family: "Noto Serif SC", serif; font-size: 26px; font-weight: 500; }
.art-center i { margin-top: 8px; color: rgba(185,229,208,.24); font-family: "Noto Serif SC", serif; font-size: 56px; font-style: normal; line-height: 1; }
.floating-card { position: absolute; display: flex; align-items: center; gap: 12px; width: 245px; padding: 15px; border: 1px solid rgba(255,255,255,.44); border-radius: 14px; background: rgba(255,253,248,.95); color: var(--ink); box-shadow: 0 18px 38px rgba(5,20,25,.25); }
.floating-card div { display: flex; min-width: 0; flex-direction: column; }
.floating-card small { color: var(--muted); font-size: 9px; }
.floating-card strong { margin: 3px 0; font-size: 14px; }
.floating-card div > span { color: var(--muted); font-size: 9px; }
.floating-card em { margin-left: auto; color: var(--coral-dark); font-size: 17px; font-style: normal; }
.mini-icon { width: 34px; height: 34px; display: grid; place-items: center; flex-shrink: 0; border-radius: 9px; background: rgba(242,118,92,.14); color: var(--coral-dark); font-family: ui-monospace, monospace; font-size: 12px; font-weight: 700; }
.card-one { left: 25px; top: 92px; transform: rotate(-6deg); }
.card-two { right: 16px; top: 245px; border-color: rgba(185,229,208,.34); background: var(--navy-3); color: #eff7f2; transform: rotate(5deg); }
.card-two small, .card-two div > span { color: #b4ceca; }
.card-two .mini-icon { background: rgba(185,229,208,.17); color: var(--mint); }
.card-two em { color: var(--mint); }
.card-three { bottom: 45px; left: 17px; transform: rotate(-3deg); }
.card-three .mini-icon { background: rgba(121,180,213,.17); color: #3b7d9d; }
.art-caption { position: absolute; right: 18px; bottom: 16px; color: rgba(234,245,238,.67); font-size: 9px; }
.art-caption > span { margin-right: 5px; color: var(--coral); font-size: 16px; }
.value-strip { max-width: var(--max); margin: 0 auto; padding: 28px 5vw 32px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-top: 1px solid rgba(185,229,208,.18); border-bottom: 1px solid rgba(185,229,208,.18); color: #d8e6e0; }
.value-strip > p { min-width: 220px; margin: 0; color: #f2f5ed; font-family: "Noto Serif SC", serif; font-size: 17px; line-height: 1.7; }
.value-strip strong { color: var(--coral); font-weight: 500; }
.value-strip > div { display: flex; align-items: baseline; gap: 10px; }
.value-strip b { color: var(--mint); font-family: ui-monospace, monospace; font-size: 30px; font-weight: 500; }
.value-strip span { max-width: 64px; color: #90a5a3; font-size: 10px; line-height: 1.5; }
.value-strip .strip-note { padding-left: 26px; border-left: 1px solid rgba(185,229,208,.18); color: #8ea4a0; font-size: 10px; line-height: 1.8; }
.journey-section { padding: 100px max(5vw, 30px) 104px; background: var(--paper); color: var(--ink); }
.section-intro { max-width: var(--max); margin: 0 auto 35px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.section-intro .eyebrow { color: var(--coral-dark); }
.section-intro h2 { margin: 13px 0 0; font-family: "Noto Serif SC", serif; font-size: clamp(1.8rem, 3vw, 2.7rem); font-weight: 500; }
.section-intro > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.9; }
.journey-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 13px; }
.journey-card { min-height: 202px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.journey-card:nth-child(2), .journey-card:nth-child(4) { transform: translateY(22px); }
.journey-card:hover { border-color: var(--coral); background: #fff; transform: translateY(-4px); box-shadow: var(--shadow); }
.journey-card:nth-child(2):hover, .journey-card:nth-child(4):hover { transform: translateY(18px); }
.journey-number { display: flex; align-items: center; justify-content: space-between; color: var(--coral-dark); font-family: ui-monospace, monospace; font-size: 21px; }
.journey-number i { color: var(--muted); font-size: 15px; font-style: normal; }
.journey-card h3 { margin: 0 0 7px; font-family: "Noto Serif SC", serif; font-size: 18px; font-weight: 600; }
.journey-card p { margin: 0; color: var(--muted); font-size: 11px; }
.closing { max-width: var(--max); margin: 0 auto; padding: 68px 30px 80px; color: #f2f7f2; text-align: center; background: var(--navy); }
.closing > span { color: var(--mint); font-size: 9px; letter-spacing: .22em; }
.closing h2 { margin: 16px 0 26px; font-family: "Noto Serif SC", serif; font-size: clamp(1.7rem, 3vw, 2.45rem); font-weight: 500; }
.site-footer { max-width: none; padding: 22px max(5vw, 30px); display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.site-header.public + .landing + .site-footer, .site-header.admin + .admin-layout + .site-footer { color: #91a7a4; border-color: rgba(185,229,208,.17); background: var(--navy); }

/* student workspace */
.step-nav { max-width: none; padding: 14px max(4.8vw, 26px); display: grid; grid-template-columns: repeat(5, minmax(130px, 1fr)); gap: 10px; border-bottom: 1px solid var(--line); background: rgba(251,250,245,.86); }
.step { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid transparent; border-radius: 12px; }
.step:hover { border-color: var(--line-strong); background: rgba(255,253,248,.72); }
.step-number { width: 29px; height: 29px; display: grid; place-items: center; flex-shrink: 0; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--muted); font-family: ui-monospace, monospace; font-size: 10px; }
.step strong { display: block; font-size: 12px; font-weight: 700; }
.step small { display: block; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.step i { margin-left: auto; color: var(--line-strong); font-size: 17px; font-style: normal; }
.step.current { border-color: rgba(242,118,92,.38); background: #fff8f2; box-shadow: inset 4px 0 0 var(--coral); }
.step.current .step-number { border-color: var(--coral); background: var(--coral); color: var(--navy); }
.step.current strong { color: var(--coral-dark); }
.step.done .step-number { border-color: var(--mint-dark); background: var(--mint); color: var(--navy); }
.workspace { max-width: var(--max); min-height: calc(100vh - 220px); margin: 0 auto; padding: 54px max(4.8vw, 26px) 70px; }
.page-heading { margin-bottom: 34px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.page-heading h1 { margin: 13px 0 10px; color: var(--ink); font-family: "Noto Serif SC", serif; font-size: clamp(2rem, 4vw, 3.35rem); font-weight: 500; }
.page-heading p { max-width: 650px; margin: 0; color: var(--muted); font-size: 13px; }
.page-heading .eyebrow { color: var(--coral-dark); }
.heading-stamp { position: relative; display: block; padding: 0 50px 0 0; color: var(--muted); font-family: "Noto Serif SC", serif; font-size: 12px; line-height: 1.8; text-align: right; }
.heading-stamp b { position: absolute; top: -13px; right: 0; color: var(--coral); font-size: 39px; font-weight: 500; }
.panel { min-width: 0; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,253,248,.92); box-shadow: 0 8px 30px rgba(18,34,41,.045); }
.panel-heading { margin-bottom: 21px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.panel-heading h2 { margin: 0; font-size: 17px; }
.question-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; }
.mode-grid { margin: 20px 0 27px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mode-card { position: relative; min-height: 126px; padding: 16px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; }
.mode-card:hover { border-color: var(--coral); transform: translateY(-2px); }
.mode-card.selected { border-color: var(--coral); background: #fff6f1; box-shadow: 0 0 0 2px rgba(242,118,92,.16); }
.mode-card input { position: absolute; top: 13px; right: 12px; width: 14px; height: 14px; margin: 0; accent-color: var(--coral); }
.mode-icon { display: block; margin-bottom: 11px; color: var(--coral-dark); font-family: "Noto Serif SC", serif; font-size: 22px; }
.mode-card strong { display: block; font-size: 13px; }
.mode-card small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
form > label, .panel > label { display: block; margin-top: 21px; font-size: 13px; font-weight: 700; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 9px; outline: none; background: #fffefa; color: var(--ink); padding: 12px 14px; transition: border-color .2s, box-shadow .2s, background .2s; }
input:focus, textarea:focus, select:focus { border-color: var(--coral); background: #fff; box-shadow: 0 0 0 4px rgba(242,118,92,.11); }
textarea { min-height: 88px; resize: vertical; line-height: 1.8; font-size: 13px; }
input::placeholder, textarea::placeholder { color: #a8aca5; }
label textarea, label > input, label select { display: block; margin-top: 9px; }
.field-note { margin-left: 8px; color: var(--muted); font-size: 10px; font-weight: 400; }
.course-label { display: flex !important; align-items: center; gap: 22px; }
.course-label select { width: 245px; margin: 0; font-size: 12px; }
.materials { margin: 24px 0 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.materials summary { color: var(--ink-soft); cursor: pointer; font-size: 12px; font-weight: 650; }
.materials summary span { margin-left: 9px; color: var(--muted); font-size: 10px; font-weight: 400; }
.upload-box { display: block; padding-top: 14px; }
.upload-box input { margin: 9px 0; font-size: 12px; }
.upload-box::before { content: "↥"; display: inline-grid; width: 30px; height: 30px; margin-right: 9px; place-items: center; border: 1px solid rgba(242,118,92,.35); border-radius: 9px; color: var(--coral-dark); background: #fff4ed; font-size: 17px; vertical-align: middle; }
.attachment-list { display: grid; gap: 8px; margin-top: 12px; }
.attachment-item { position: relative; display: grid; grid-template-columns: 29px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 52px; padding: 9px 35px 9px 10px; border: 1px solid rgba(47,117,100,.18); border-radius: 10px; background: rgba(185,229,208,.14); }
.attachment-item > div { min-width: 0; }
.attachment-item strong, .attachment-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-item strong { color: var(--ink-soft); font-size: 11px; }
.attachment-item small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.attachment-icon { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 8px; color: var(--coral-dark); background: #fff2ea; font-size: 16px; }
.attachment-item img { width: 36px; height: 36px; border: 1px solid rgba(47,117,100,.18); border-radius: 7px; object-fit: cover; }
.attachment-remove { position: absolute; top: 7px; right: 8px; width: 20px; height: 20px; border-radius: 50%; color: var(--muted); background: transparent; font-size: 17px; line-height: 1; }
.attachment-remove:hover { color: var(--coral-dark); background: #fff1e9; }
.type-section > label { font-size: 13px; font-weight: 700; }
.type-choices { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.type-chip { position: relative; cursor: pointer; }
.type-chip input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.type-chip span { display: block; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 10px; }
.type-chip input:checked + span { border-color: var(--mint-dark); background: var(--mint); color: var(--navy); }
.form-bottom { margin-top: 25px; padding-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); }
.mentor-note { position: relative; min-height: 325px; overflow: hidden; padding: 28px; border-radius: var(--radius); color: #f1f7f3; background: var(--navy); box-shadow: var(--shadow-deep); }
.mentor-note::after { content: ""; position: absolute; width: 180px; height: 180px; right: -84px; bottom: -80px; border: 1px solid rgba(185,229,208,.36); border-radius: 50%; box-shadow: 0 0 0 24px rgba(185,229,208,.06), 0 0 0 48px rgba(185,229,208,.04); }
.mentor-note .eyebrow { color: var(--mint); font-size: 8px; }
.note-symbol { display: block; margin: 21px 0 11px; color: var(--coral); font-family: "Noto Serif SC", serif; font-size: 54px; line-height: 1; }
.mentor-note h2 { margin: 0 0 15px; color: #f6f2e8; font-family: "Noto Serif SC", serif; font-size: 25px; font-weight: 500; line-height: 1.45; }
.mentor-note p { max-width: 230px; color: #b4c4c1; font-size: 12px; line-height: 1.9; }
.note-line { width: 34px; margin: 26px 0 14px; border-top: 1px solid var(--coral); }
.mentor-note small { color: #9bb2ad; font-size: 10px; }
.suggestions { margin-top: 25px; }
.suggestions h3 { display: flex; justify-content: space-between; font-size: 12px; }
.suggestions h3 span { color: var(--coral); }
.suggestions button { width: 100%; padding: 18px 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.suggestions button:hover strong { color: var(--coral-dark); }
.suggestions small, .suggestions button > span { color: var(--muted); font-size: 9px; }
.suggestions strong { display: block; margin: 7px 0; font-size: 14px; }
.generation-status { margin-top: 18px; display: flex; align-items: flex-start; gap: 12px; padding: 15px; border: 1px solid rgba(47,117,100,.22); border-radius: 12px; background: rgba(185,229,208,.25); }
.generation-status p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.spinner { width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px; border: 2px solid rgba(47,117,100,.23); border-top-color: var(--mint-dark); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* motion system: short feedback, slow atmosphere, visible content */
.route-enter { animation: route-in .42s cubic-bezier(.22,.75,.25,1) both; }
.reveal-item { opacity: 0; transform: translateY(18px); transition: opacity .52s cubic-bezier(.22,.75,.25,1), transform .52s cubic-bezier(.22,.75,.25,1); transition-delay: var(--reveal-delay, 0ms); }
.reveal-item.is-visible { opacity: 1; transform: none; }
@keyframes route-in { from { opacity: 0; } to { opacity: 1; } }
.site-header { transition: background .25s ease, border-color .25s ease, box-shadow .25s ease; }
.site-header:hover { box-shadow: 0 8px 24px rgba(12,27,36,.06); }
.live-dot { animation: live-pulse 2.2s ease-in-out infinite; }
@keyframes live-pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(242,118,92,.12); } 50% { box-shadow: 0 0 0 8px rgba(242,118,92,.03); } }
.hero-art { animation: art-in .8s cubic-bezier(.22,.75,.25,1) .12s both; }
@keyframes art-in { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.hero-art::before { animation: coral-orb 12s ease-in-out infinite alternate; transform-origin: center; }
.hero-art::after { animation: mint-orb 10s ease-in-out infinite alternate; transform-origin: center; }
@keyframes coral-orb { from { transform: translate(0,0) scale(1); } to { transform: translate(-18px, 18px) scale(1.08); } }
@keyframes mint-orb { from { transform: translate(0,0) scale(1); } to { transform: translate(18px, -14px) scale(1.12); } }
.art-orbit { animation: orbit-spin 26s linear infinite; transform-origin: center; }
.orbit-two { animation-duration: 19s; animation-direction: reverse; }
@keyframes orbit-spin { from { transform: translate(-50%,-50%) rotate(0deg); } to { transform: translate(-50%,-50%) rotate(360deg); } }
.art-center i { animation: center-breathe 4s ease-in-out infinite; }
@keyframes center-breathe { 0%,100% { opacity: .2; transform: scale(.96); } 50% { opacity: .38; transform: scale(1.04); } }
.floating-card { will-change: translate; }
.journey-card.reveal-item.is-visible:nth-child(2) { transform: translateY(22px); }
.journey-card.reveal-item.is-visible:nth-child(4) { transform: translateY(22px); }
.journey-card.reveal-item.is-visible:nth-child(2):hover, .journey-card.reveal-item.is-visible:nth-child(4):hover { transform: translateY(18px); }
.step.current { position: relative; overflow: hidden; }
.step.current::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; border-radius: 2px; background: var(--coral); transform-origin: left; animation: step-sweep 1.1s cubic-bezier(.22,.75,.25,1) both; }
@keyframes step-sweep { from { transform: scaleX(0); opacity: .2; } to { transform: scaleX(1); opacity: 1; } }
.button:active, .mode-card:active, .knowledge-chain button:active, .journey-card:active, .admin-sidebar nav a:active { transform: scale(.975) translateY(0); }
.button:focus-visible { box-shadow: 0 0 0 4px rgba(242,118,92,.2), 0 9px 24px rgba(242,118,92,.22); }
.panel, .mode-card, .knowledge-chain button, .history-card { transition: border-color .22s ease, box-shadow .22s ease, background .22s ease, transform .22s ease; }
.panel:hover { border-color: rgba(16,28,35,.2); }
.admin-main .panel:hover { border-color: rgba(185,229,208,.28); }
.case-panel[open] { box-shadow: 0 15px 36px rgba(18,34,41,.08); }
.case-panel > *:not(summary), .explanation > *:not(summary), .materials > *:not(summary) { animation: detail-in .28s ease both; }
@keyframes detail-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }

/* learning result pages */
.diagnosis-layout, .reflection-layout { display: grid; grid-template-columns: 1.08fr 1fr; gap: 22px; }
.diagnosis-main h2 { max-width: 600px; margin: 16px 0 24px; font-family: "Noto Serif SC", serif; font-size: 27px; font-weight: 500; }
.quote { margin: 23px 0; padding: 17px 19px; border-left: 3px solid var(--coral); border-radius: 0 10px 10px 0; background: #f7f4ec; }
.quote small { color: var(--muted); font-size: 10px; }
.quote p { margin: 6px 0 0; color: var(--ink-soft); font-size: 14px; }
.goal { display: flex; gap: 15px; margin: 27px 0; }
.goal > span { color: var(--coral); font-size: 30px; line-height: 1; }
.goal small { color: var(--muted); font-size: 10px; }
.goal h3 { margin: 5px 0 0; font-size: 16px; }
.tags { margin: 19px 0; display: flex; flex-wrap: wrap; gap: 7px; }
.tags > span { padding: 5px 9px; border: 1px solid rgba(47,117,100,.2); border-radius: 999px; background: rgba(185,229,208,.3); color: var(--mint-dark); font-size: 10px; }
.plan-list { padding: 0; margin: 25px 0; list-style: none; }
.plan-list li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; padding: 13px 0; border-bottom: 1px solid var(--line); }
.plan-list li > span { color: var(--coral-dark); font-family: ui-monospace, monospace; font-size: 11px; }
.plan-list p { margin: 0; font-size: 13px; }
.soft-note { margin-top: 23px; padding: 15px 17px; border-left: 3px solid var(--mint-dark); border-radius: 0 10px 10px 0; background: rgba(185,229,208,.28); }
.soft-note strong { display: block; font-size: 12px; }
.soft-note p { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.knowledge-chain { margin-bottom: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.knowledge-chain button { min-width: 0; display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-align: left; }
.knowledge-chain button:hover { border-color: var(--coral); transform: translateY(-2px); }
.knowledge-chain button.active { border-color: var(--coral); background: #fff6f1; box-shadow: inset 4px 0 0 var(--coral); }
.knowledge-chain button > span { color: var(--coral-dark); font-family: ui-monospace, monospace; font-size: 11px; }
.knowledge-chain button div { min-width: 0; }
.knowledge-chain strong { display: block; font-size: 12px; }
.knowledge-chain small { display: block; color: var(--muted); font-size: 9px; }
.knowledge-chain i { margin-left: auto; color: var(--muted); font-style: normal; }
.explore-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; }
.role-reading h2, .sources h2 { margin: 15px 0 18px; font-family: "Noto Serif SC", serif; font-size: 24px; font-weight: 500; }
.lead-text { color: var(--ink-soft); font-size: 15px; line-height: 1.95; }
.read-list { margin: 20px 0; padding: 0 0 0 20px; color: var(--ink-soft); }
.read-list li { margin: 9px 0; padding-left: 5px; }
.read-list li::marker { color: var(--coral); }
.bridge-note { margin: 24px 0; padding: 16px; display: flex; gap: 13px; border: 1px solid rgba(121,180,213,.35); border-radius: 12px; background: rgba(121,180,213,.12); }
.bridge-note > span { color: #3b7d9d; font-size: 22px; }
.bridge-note strong { font-size: 12px; }
.bridge-note p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.sources article { display: flex; gap: 11px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.sources article > span { color: var(--coral); font-size: 17px; }
.sources article h3 { margin: 0 0 3px; font-size: 12px; }
.sources article p, .sources article small { display: block; margin: 0; color: var(--muted); font-size: 10px; }
.case-panel { margin-top: 22px; }
.case-panel summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; cursor: pointer; }
.case-panel summary > span:first-child { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.case-panel summary strong { font-size: 14px; }
.case-panel summary > span:last-child { color: var(--coral-dark); font-size: 11px; white-space: nowrap; }
.case-panel > .lead-text { margin-top: 25px; }
.evidence-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin: 22px 0; }
.evidence-grid details { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fffefa; }
.evidence-grid summary { cursor: pointer; font-size: 11px; font-weight: 650; }
.evidence-grid p { margin: 9px 0 0; color: var(--muted); font-size: 11px; }
.practice-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: start; }
.practice-list { display: grid; gap: 15px; }
.practice-item h2 { margin: 15px 0; font-family: "Noto Serif SC", serif; font-size: 20px; font-weight: 500; }
.options { display: grid; gap: 7px; margin: 15px 0 21px; }
.options div { padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink-soft); font-size: 12px; }
.options div span { display: inline-grid; width: 20px; height: 20px; margin-right: 8px; place-items: center; border-radius: 50%; background: #f3efe6; color: var(--coral-dark); font-family: ui-monospace, monospace; font-size: 10px; }
.explanation { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.explanation summary { color: var(--coral-dark); cursor: pointer; font-size: 11px; font-weight: 700; }
.explanation p { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.answer-panel { position: sticky; top: 105px; }
.answer-panel h2 { margin: 15px 0 10px; font-family: "Noto Serif SC", serif; font-size: 24px; font-weight: 500; }
.answer-panel > .plain-link { margin: 11px 0 15px; color: var(--coral-dark); font-size: 11px; }
.answer-panel textarea { min-height: 180px; }
.answer-panel small { display: block; margin-top: 12px; }
.side-quote { margin: 20px 0 0; padding: 18px 20px; color: var(--muted); font-family: "Noto Serif SC", serif; font-size: 15px; line-height: 1.8; }
.completion-mark { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border: 1px solid rgba(47,117,100,.23); border-radius: 999px; color: var(--mint-dark); background: rgba(185,229,208,.38); font-size: 11px; }
.answer-comparison { display: grid; gap: 10px; margin: 22px 0; }
.answer-comparison article { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #f8f5ed; }
.answer-comparison article.after { border-color: rgba(47,117,100,.25); background: rgba(185,229,208,.23); }
.answer-comparison small { color: var(--muted); font-size: 10px; }
.answer-comparison p { margin: 8px 0 0; color: var(--ink-soft); font-size: 12px; white-space: pre-wrap; }
.answer-comparison > span { color: var(--coral); font-size: 18px; text-align: center; }
.reflection-layout.lower { margin-top: 22px; }
.transfer-card { padding: 28px; border-radius: var(--radius); background: var(--navy); color: #eff6f1; box-shadow: var(--shadow-deep); }
.transfer-card .eyebrow { color: var(--mint); }
.transfer-card h2 { margin: 16px 0 12px; color: #f6f3e8; font-family: "Noto Serif SC", serif; font-size: 23px; font-weight: 500; }
.transfer-card p { color: #b5c5c2; font-size: 12px; line-height: 1.9; }
.transfer-card small { display: block; margin-top: 16px; color: #8da4a0; font-size: 10px; }
.green-text { color: var(--mint-dark); }
.orange-text { color: var(--coral-dark); }
.timeline { position: relative; margin: 22px 0 0; padding: 0 0 0 22px; list-style: none; }
.timeline::before { content: ""; position: absolute; top: 6px; bottom: 6px; left: 4px; width: 1px; background: var(--line-strong); }
.timeline li { position: relative; padding: 0 0 19px 13px; }
.timeline li::before { content: ""; position: absolute; left: -22px; top: 5px; width: 9px; height: 9px; border: 2px solid var(--coral); border-radius: 50%; background: var(--surface); }
.timeline strong { display: block; font-size: 12px; }
.timeline small { color: var(--muted); font-size: 10px; }
.version { padding: 13px 0; border-top: 1px solid var(--line); }
.version strong { color: var(--coral-dark); font-size: 11px; }
.version p { margin: 6px 0 0; color: var(--muted); font-size: 11px; white-space: pre-wrap; }
.step-footer { margin-top: 30px; padding-top: 21px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); }
.step-footer > span { color: var(--muted); font-size: 11px; }
.history-summary { margin-bottom: 24px; padding: 22px 25px; border: 1px solid rgba(47,117,100,.21); border-radius: var(--radius); background: rgba(185,229,208,.3); }
.history-summary > span { color: var(--mint-dark); font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.history-summary strong { display: block; margin: 5px 0 0; color: var(--navy); font-family: ui-monospace, monospace; font-size: 38px; font-weight: 500; }
.history-summary strong small { color: var(--muted); font-size: 12px; }
.history-summary p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.history-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.history-card { width: 100%; cursor: pointer; text-align: left; }
.history-card:hover { border-color: var(--coral); transform: translateY(-3px); }
.history-card h2 { margin: 8px 0 28px; font-family: "Noto Serif SC", serif; font-size: 18px; font-weight: 500; }
.history-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 10px; }
.history-card-bottom span:last-child { color: var(--coral-dark); font-weight: 700; }
.empty-state { padding: 54px 25px; text-align: center; }
.empty-symbol { display: block; margin-bottom: 12px; color: var(--coral); font-size: 34px; }
.empty-state h2 { font-family: "Noto Serif SC", serif; font-weight: 500; }
.empty-state p { color: var(--muted); font-size: 12px; }

/* authentication */
.auth-layout { max-width: none; min-height: calc(100vh - 82px); margin: 0; padding: 70px max(7vw, 28px) 95px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 480px); gap: clamp(40px, 9vw, 130px); align-items: center; color: #edf5f0; background: var(--navy); }
.auth-story { position: relative; overflow: hidden; padding: 18px 0 18px 5vw; }
.auth-story::before { content: ""; position: absolute; width: 350px; height: 350px; left: -130px; bottom: -150px; border: 1px solid rgba(185,229,208,.3); border-radius: 50%; box-shadow: 0 0 0 28px rgba(185,229,208,.06), 0 0 0 62px rgba(185,229,208,.035); }
.auth-story .eyebrow { color: var(--mint); }
.auth-story h1 { max-width: 610px; margin: 28px 0 31px; color: #f4f4eb; font-family: "Noto Serif SC", serif; font-size: clamp(2.7rem, 4.3vw, 4.7rem); font-weight: 500; line-height: 1.23; }
.auth-story h1 > span { color: var(--coral); }
.auth-illustration { display: flex; align-items: center; gap: 19px; margin: 32px 0 35px; }
.auth-illustration > span { width: 75px; height: 75px; display: grid; place-items: center; border: 1px solid rgba(185,229,208,.45); border-radius: 50%; color: var(--mint); background: rgba(185,229,208,.08); font-family: "Noto Serif SC", serif; font-size: 29px; }
.auth-illustration > span:last-child { border-color: var(--coral); color: var(--navy); background: var(--coral); }
.auth-illustration i { color: #779391; font-size: 24px; font-style: normal; }
.auth-story p { color: #b5c5c2; font-size: 13px; line-height: 1.95; }
.auth-story > small { display: block; margin-top: 44px; color: #809793; font-size: 10px; letter-spacing: .08em; }
.auth-panel { padding: 39px; border-radius: 24px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-deep); }
.auth-box { width: 100%; max-width: 355px; margin: 0 auto; }
.auth-box .eyebrow { color: var(--coral-dark); }
.auth-box h2 { margin: 16px 0 8px; font-family: "Noto Serif SC", serif; font-size: 29px; font-weight: 500; }
.auth-box form { margin-top: 30px; }
.auth-box label { margin-top: 19px; }
.auth-box input { font-size: 13px; }
.password-field { position: relative; display: flex; align-items: center; margin-top: 9px; }
.password-field input { padding-right: 60px; }
.password-field button { position: absolute; right: 13px; color: var(--coral-dark); font-size: 11px; }
.auth-box button.full { margin-top: 20px; }
.auth-switch { margin-top: 23px; color: var(--muted); font-size: 11px; text-align: center; }
.auth-switch a { margin-left: 7px; color: var(--coral-dark); font-weight: 700; }
.auth-footnote { margin: 33px 0 0; color: var(--muted); font-size: 10px; line-height: 1.8; text-align: center; }

/* admin */
.admin-layout { min-height: calc(100vh - 82px); display: grid; grid-template-columns: 245px minmax(0, 1fr); color: #e9f3ee; background: #101d24; }
.admin-sidebar { padding: 34px 22px 28px; border-right: 1px solid rgba(185,229,208,.12); background: #0c1a21; }
.admin-sidebar .eyebrow { color: var(--mint); font-size: 9px; }
.admin-sidebar h2 { margin: 15px 0 31px; color: #f0f5ed; font-family: "Noto Serif SC", serif; font-size: 23px; font-weight: 500; }
.admin-sidebar nav { display: grid; gap: 6px; }
.admin-sidebar nav a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid transparent; border-radius: 10px; color: #9fb5b1; font-size: 12px; }
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { border-color: rgba(185,229,208,.18); color: #f4f8f2; background: rgba(185,229,208,.09); }
.admin-sidebar nav a > span { width: 22px; color: var(--coral); font-size: 16px; }
.admin-sidebar nav a i { margin-left: auto; color: #6f8b86; font-style: normal; }
.admin-side-note { margin: 60px 0 20px; padding: 15px 12px; border-top: 1px solid rgba(185,229,208,.15); border-bottom: 1px solid rgba(185,229,208,.15); color: #94aaa6; font-family: "Noto Serif SC", serif; font-size: 14px; line-height: 1.65; }
.admin-side-note small { color: #6f8985; font-size: 9px; }
.admin-sidebar > .plain-link { color: var(--mint); font-size: 11px; }
.admin-main { min-width: 0; padding: 45px max(4vw, 28px) 70px; }
.admin-main .page-heading h1 { color: #f2f6ef; }
.admin-main .page-heading p { color: #94aaa6; }
.admin-main .page-heading .eyebrow { color: var(--mint); }
.admin-main .panel { border-color: rgba(185,229,208,.14); background: #172b33; color: #eaf2ee; box-shadow: none; }
.admin-main .panel-heading h2, .admin-main .panel h2 { color: #f0f5ee; }
.admin-main .muted, .admin-main .table-scroll td, .admin-main .empty-state { color: #91aaa5; }
.admin-main .badge { border-color: rgba(185,229,208,.25); background: rgba(185,229,208,.12); color: var(--mint); }
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.admin-stats .panel { min-height: 118px; }
.admin-stats .panel > span { color: #9ab2ad; font-size: 11px; }
.admin-stats strong { display: block; margin-top: 8px; color: var(--coral); font-family: ui-monospace, monospace; font-size: 36px; font-weight: 500; }
.admin-recent { margin-top: 18px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 11px; }
th, td { padding: 12px 10px; border-bottom: 1px solid rgba(185,229,208,.11); text-align: left; vertical-align: top; }
th { color: var(--mint); font-size: 10px; font-weight: 650; }
td { color: #c2d0cc; }

.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
#toast { position: fixed; left: 50%; bottom: 24px; z-index: 50; max-width: min(420px, calc(100vw - 40px)); padding: 12px 16px; border-radius: 10px; background: var(--navy); color: #f4f7f2; box-shadow: var(--shadow-deep); transform: translate(-50%, 140%); transition: transform .25s ease; font-size: 12px; }
#toast:empty { display: none; }
#toast.show { transform: translate(-50%, 0); }
.boot { min-height: 100vh; display: grid; place-items: center; color: var(--muted); font-family: "Noto Serif SC", serif; font-size: 24px; }
.boot span { display: block; margin-top: 9px; color: var(--muted); font-size: 11px; text-align: center; }

@media (prefers-reduced-motion: no-preference) {
  .hero-art .floating-card { animation: drift 7s ease-in-out infinite; }
  .hero-art .card-two { animation-delay: -2.4s; }
  .hero-art .card-three { animation-delay: -4.8s; }
  @keyframes drift { 0%,100% { translate: 0 0; } 50% { translate: 0 -5px; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal-item { opacity: 1; transform: none; }
}
@media (max-width: 1080px) {
  .landing .hero { grid-template-columns: 1fr; padding-top: 72px; }
  .hero-copy { max-width: 730px; }
  .hero-art { min-height: 440px; }
  .journey-grid { grid-template-columns: repeat(3, 1fr); }
  .journey-card:nth-child(2), .journey-card:nth-child(4) { transform: none; }
  .journey-card:nth-child(2):hover, .journey-card:nth-child(4):hover { transform: translateY(-4px); }
  .question-layout, .explore-layout, .practice-layout { grid-template-columns: 1fr; }
  .study-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
  .suggestions { margin-top: 0; }
  .answer-panel { position: static; }
}
@media (max-width: 820px) {
  .site-header { height: 72px; padding: 0 20px; }
  .main-nav { display: none; }
  .header-actions { margin-left: auto; }
  .step-nav { display: flex; overflow-x: auto; padding: 10px 20px; scrollbar-width: none; }
  .step-nav::-webkit-scrollbar { display: none; }
  .step { min-width: 155px; }
  .workspace { padding: 40px 20px 56px; }
  .auth-layout { min-height: calc(100vh - 72px); padding: 45px 22px 65px; grid-template-columns: 1fr; gap: 30px; }
  .auth-story { padding: 0; }
  .auth-story h1 { font-size: clamp(2.6rem, 9vw, 4.3rem); }
  .auth-story > small { margin-top: 25px; }
  .auth-panel { padding: 30px 23px; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { padding: 20px; border-right: 0; border-bottom: 1px solid rgba(185,229,208,.12); }
  .admin-sidebar h2 { margin: 10px 0 17px; }
  .admin-sidebar nav { display: flex; overflow-x: auto; }
  .admin-sidebar nav a { min-width: 122px; }
  .admin-side-note, .admin-sidebar > .plain-link { display: none; }
  .admin-main { padding: 36px 20px 55px; }
}
@media (max-width: 620px) {
  .brand { font-size: 18px; }
  .brand-icon { width: 37px; height: 37px; font-size: 20px; }
  .header-actions .user-name { display: none; }
  .header-actions .button.small { min-height: 37px; padding: 8px 12px; }
  .landing .hero { min-height: auto; padding: 60px 20px 52px; }
  .hero-copy h1 { font-size: clamp(2.75rem, 13vw, 4.2rem); }
  .hero-description { font-size: 13px; }
  .hero-art { min-height: 380px; border-radius: 20px; }
  .floating-card { width: 195px; padding: 10px; gap: 8px; }
  .floating-card strong { font-size: 12px; }
  .floating-card div > span, .floating-card small { font-size: 8px; }
  .card-one { left: 10px; top: 57px; }
  .card-two { right: -8px; top: 192px; }
  .card-three { left: 8px; bottom: 25px; }
  .value-strip { padding: 24px 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 12px; }
  .value-strip > p { grid-column: 1 / -1; min-width: 0; }
  .value-strip .strip-note { display: none; }
  .journey-section { padding: 66px 20px 70px; }
  .section-intro { display: block; }
  .section-intro > p { margin-top: 16px; }
  .journey-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .journey-card { min-height: 175px; padding: 16px; }
  .closing { padding: 55px 20px 65px; }
  .site-footer { padding: 19px 20px; display: block; line-height: 2; }
  .site-footer span { display: block; }
  .page-heading { display: block; }
  .page-heading h1 { font-size: 2.35rem; }
  .heading-stamp { margin-top: 20px; text-align: left; }
  .heading-stamp b { left: 124px; right: auto; }
  .panel { padding: 20px 17px; }
  .mode-grid { grid-template-columns: repeat(2, 1fr); }
  .mode-card { min-height: 112px; }
  .course-label { display: block !important; }
  .course-label select { width: 100%; margin-top: 9px; }
  .form-bottom, .step-footer { align-items: stretch; flex-direction: column; }
  .form-bottom .button, .step-footer .button { width: 100%; }
  .study-aside { display: block; }
  .suggestions { margin-top: 23px; }
  .diagnosis-layout, .reflection-layout { grid-template-columns: 1fr; }
  .knowledge-chain { grid-template-columns: 1fr; }
  .evidence-grid { grid-template-columns: 1fr; }
  .history-grid { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: 1fr; }
}

/* landing v3: editorial narrative system */
.landing-v3 { --v3-max: 1320px; background: var(--navy); color: #eef5f1; }
.landing-v3 em { color: var(--coral); font-style: normal; }
.landing-v3 .eyebrow { color: var(--mint); }
.landing-v3 .plain-link { color: #d8eee2; }
.landing-v3 .plain-link:hover { color: var(--coral); }
.landing-v3 .v3-statement { position: relative; isolation: isolate; }
.landing-v3 .v3-statement::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; z-index: -1; pointer-events: none; transform: translateX(-50%); }
.landing-v3 .v3-statement::before { background: var(--paper); }
.hero-v3 { max-width: var(--v3-max); min-height: min(810px, calc(100vh - 82px)); margin: 0 auto; padding: clamp(74px, 9vw, 126px) max(5vw, 30px) clamp(70px, 8vw, 112px); display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(430px, .8fr); gap: clamp(44px, 8vw, 132px); align-items: center; }
.hero-v3-copy { min-width: 0; max-width: 720px; }
.hero-v3-copy h1 { max-width: 700px; margin: 28px 0 26px; color: #f5f4ea; font-family: "Noto Serif SC", serif; font-size: clamp(3.25rem, 5.4vw, 6.2rem); font-weight: 500; line-height: 1.1; letter-spacing: -.11em; }
.hero-v3-copy h1 em { white-space: normal; }
.hero-v3-lead { max-width: 560px; margin: 0; color: #a9c0bb; font-size: 15px; line-height: 2.05; }
.hero-v3-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 23px; margin-top: 34px; }
.hero-v3-actions .plain-link { font-size: 12px; }
.hero-v3-actions .plain-link span { margin-left: 5px; color: var(--coral); font-size: 17px; }
.hero-v3-proof { display: flex; align-items: center; gap: 13px; margin-top: 46px; color: #89a49f; font-size: 10px; letter-spacing: .04em; }
.hero-v3-proof span { padding-bottom: 6px; border-bottom: 1px solid rgba(185,229,208,.25); }
.hero-v3-proof i { color: var(--coral); font-style: normal; }
.hero-v3-console { position: relative; min-height: 510px; padding: 22px 23px 20px; border: 1px solid rgba(185,229,208,.27); border-radius: 2px 34px 2px 34px; background: linear-gradient(145deg, rgba(28,65,73,.96), rgba(12,31,40,.97)); box-shadow: 24px 28px 0 rgba(242,118,92,.15), var(--shadow-deep); overflow: hidden; isolation: isolate; }
.hero-v3-console::before { content: ""; position: absolute; width: 280px; height: 280px; right: -110px; top: -110px; border: 1px solid rgba(242,118,92,.4); border-radius: 50%; box-shadow: 0 0 0 28px rgba(242,118,92,.06), 0 0 0 68px rgba(242,118,92,.035); }
.hero-v3-console::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(to top, rgba(9,24,31,.84), transparent); pointer-events: none; }
.console-top, .console-foot, .console-agents { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.console-kicker { color: #8eada7; font-family: ui-monospace, monospace; font-size: 9px; letter-spacing: .15em; }
.console-status { color: var(--mint); font-size: 10px; }
.console-status i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(185,229,208,.1); animation: console-pulse 2.2s ease-in-out infinite; }
.console-question { position: relative; z-index: 1; margin: 64px 0 54px; }
.console-question small { display: block; color: #88aaa2; font-size: 10px; letter-spacing: .11em; }
.console-question strong { display: block; max-width: 400px; margin-top: 12px; color: #f4f4e9; font-family: "Noto Serif SC", serif; font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 500; line-height: 1.4; letter-spacing: -.06em; }
.console-question p { margin: 14px 0 0; color: #9fb9b4; font-size: 12px; }
.signal-route { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; padding-top: 19px; border-top: 1px solid rgba(185,229,208,.2); }
.route-line { position: absolute; top: 0; left: 9%; right: 9%; height: 1px; background: linear-gradient(to right, var(--coral) 0 67%, rgba(185,229,208,.2) 67%); transform: translateY(-1px); }
.route-node { position: relative; display: grid; grid-template-columns: 27px 1fr; column-gap: 7px; align-items: center; opacity: .46; }
.route-node.active { opacity: 1; }
.route-node b { width: 27px; height: 27px; display: grid; grid-row: span 2; place-items: center; border: 1px solid #6e8e89; border-radius: 50%; color: #9bb7b0; font-family: ui-monospace, monospace; font-size: 9px; }
.route-node.active b { border-color: var(--coral); color: var(--coral); background: rgba(242,118,92,.1); }
.route-node span { color: #edf4ee; font-size: 11px; font-weight: 700; }
.route-node small { color: #88a39e; font-size: 9px; }
.console-agents { z-index: 1; margin-top: 45px; padding-top: 16px; border-top: 1px solid rgba(185,229,208,.14); }
.console-agents > span { color: #7d9994; font-size: 10px; }
.console-agents > div { display: flex; align-items: center; gap: 5px; }
.console-agents b { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: var(--navy); background: var(--mint); font-family: "Noto Serif SC", serif; font-size: 11px; }
.console-agents b:nth-child(2n) { color: #fff8ed; background: var(--coral); }
.console-agents small { margin-left: 5px; color: #8ba7a0; font-size: 9px; }
.console-foot { z-index: 1; position: absolute; left: 23px; right: 23px; bottom: 20px; }
.console-foot span { color: #799690; font-size: 9px; }
.console-foot strong { color: var(--mint); font-size: 10px; }
.v3-statement { max-width: var(--v3-max); margin: 0 auto; padding: 132px max(5vw, 30px) 126px; display: grid; grid-template-columns: 140px minmax(0, 1fr) 265px; gap: clamp(25px, 5vw, 95px); align-items: start; background: var(--paper); color: var(--ink); }
.statement-index { padding-top: 10px; color: var(--coral-dark); font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: .12em; }
.statement-kicker { margin: 0 0 20px; color: var(--muted); font-size: 12px; letter-spacing: .06em; }
.v3-statement h2 { max-width: 680px; margin: 0; font-family: "Noto Serif SC", serif; font-size: clamp(2.25rem, 4vw, 4.2rem); font-weight: 500; line-height: 1.23; letter-spacing: -.08em; }
.statement-aside { max-width: 250px; margin: 55px 0 0; color: var(--muted); font-size: 12px; line-height: 2; }
.pain-section { padding: 108px max(5vw, 30px) 124px; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: clamp(30px, 5vw, 86px); background: #102832; color: #edf5ef; }
.pain-section > * { max-width: calc(var(--v3-max) - 30px); }
.section-rail { display: flex; flex-direction: column; gap: 15px; }
.section-rail .eyebrow { color: var(--coral); }
.section-rail strong { color: #f1f3e9; font-family: "Noto Serif SC", serif; font-size: 17px; font-weight: 500; line-height: 1.55; }
.section-rail > span:last-child { color: #799895; font-family: ui-monospace, monospace; font-size: 10px; }
.pain-rail { display: grid; grid-template-columns: repeat(5, minmax(145px, 1fr)); gap: 1px; align-items: stretch; border-top: 1px solid rgba(185,229,208,.23); border-bottom: 1px solid rgba(185,229,208,.23); }
.pain-card { position: relative; min-height: 278px; padding: 23px 17px 18px; border-right: 1px solid rgba(185,229,208,.18); background: rgba(17,48,58,.55); }
.pain-card:last-child { border-right: 0; }
.pain-card > span { color: var(--coral); font-family: ui-monospace, monospace; font-size: 11px; }
.pain-card h3 { margin: 74px 0 15px; color: #f0f4ec; font-family: "Noto Serif SC", serif; font-size: 18px; font-weight: 500; }
.pain-card p { margin: 0; color: #94b0aa; font-size: 11px; line-height: 1.85; }
.pain-card i { position: absolute; right: 17px; bottom: 16px; color: var(--mint); font-size: 15px; font-style: normal; }
.pain-card:hover { background: rgba(242,118,92,.1); }
.chain-section { padding: 124px max(5vw, 30px) 113px; background: #e6efe8; color: var(--ink); }
.chain-heading { max-width: var(--v3-max); margin: 0 auto; display: grid; grid-template-columns: 1fr .72fr; column-gap: 80px; align-items: end; }
.chain-heading .eyebrow { color: var(--mint-dark); }
.chain-heading h2 { grid-row: span 2; margin: 17px 0 0; font-family: "Noto Serif SC", serif; font-size: clamp(2.25rem, 4.3vw, 4.45rem); font-weight: 500; line-height: 1.17; letter-spacing: -.09em; }
.chain-heading p { max-width: 310px; margin: 0; color: #58716e; font-size: 12px; line-height: 1.95; }
.chain-track { max-width: var(--v3-max); margin: 78px auto 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid rgba(16,28,35,.25); border-bottom: 1px solid rgba(16,28,35,.25); }
.chain-node { position: relative; min-height: 158px; padding: 21px 20px 19px 0; border-right: 1px solid rgba(16,28,35,.18); }
.chain-node:not(:first-child) { padding-left: 20px; }
.chain-node:last-child { border-right: 0; }
.chain-node > span { color: var(--coral-dark); font-family: ui-monospace, monospace; font-size: 11px; }
.chain-node div { margin-top: 36px; }
.chain-node strong { display: block; color: var(--ink); font-family: "Noto Serif SC", serif; font-size: 17px; font-weight: 600; }
.chain-node small { display: block; margin-top: 5px; color: #667d79; font-size: 10px; }
.chain-node i { position: absolute; right: -9px; top: 50%; z-index: 1; width: 18px; height: 18px; display: grid; place-items: center; color: var(--coral); background: #e6efe8; font-size: 17px; font-style: normal; transform: translateY(-50%); }
.chain-node > b { position: absolute; right: 18px; bottom: 19px; color: var(--mint-dark); font-size: 15px; }
.chain-caption { max-width: var(--v3-max); margin: 22px auto 0; display: flex; align-items: baseline; gap: 18px; }
.chain-caption span { color: var(--coral-dark); font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: .11em; }
.chain-caption p { margin: 0; color: #4f6865; font-family: "Noto Serif SC", serif; font-size: 14px; }
.collaboration-section { position: relative; max-width: var(--v3-max); margin: 0 auto; padding: 128px max(5vw, 30px) 120px; display: grid; grid-template-columns: minmax(260px, .74fr) minmax(420px, 1fr); gap: 46px clamp(50px, 8vw, 140px); background: var(--navy); color: #edf5f0; }
.collab-intro .eyebrow { color: var(--coral); }
.collab-intro h2 { margin: 19px 0 23px; font-family: "Noto Serif SC", serif; font-size: clamp(2.25rem, 4vw, 4.2rem); font-weight: 500; line-height: 1.2; letter-spacing: -.08em; }
.collab-intro p { max-width: 340px; color: #9cb4af; font-size: 12px; line-height: 2; }
.collab-metric { display: flex; align-items: baseline; gap: 11px; margin-top: 26px; padding-top: 15px; border-top: 1px solid rgba(185,229,208,.18); }
.collab-metric strong { color: var(--coral); font-family: ui-monospace, monospace; font-size: 28px; font-weight: 500; letter-spacing: .04em; }
.collab-metric span { color: #9cb4af; font-size: 10px; line-height: 1.6; }
.text-arrow { display: inline-flex; align-items: center; gap: 13px; margin-top: 22px; color: var(--mint); font-size: 11px; font-weight: 700; }
.text-arrow span { color: var(--coral); font-size: 17px; }
.loop-board { min-height: 450px; padding: 30px 22px 21px; border: 1px solid rgba(185,229,208,.22); border-radius: 2px 31px 2px 31px; background: linear-gradient(135deg, rgba(25,61,70,.72), rgba(11,29,38,.84)); }
.loop-orbit { position: relative; width: min(100%, 420px); aspect-ratio: 1; margin: 0 auto; border: 1px dashed rgba(185,229,208,.38); border-radius: 50%; transform: rotate(-16deg); }
.loop-orbit::before, .loop-orbit::after { content: ""; position: absolute; inset: 12%; border: 1px solid rgba(185,229,208,.23); border-radius: 50%; transform-origin: center; animation: loop-ring-breathe 7s ease-in-out infinite; }
.loop-orbit::after { inset: 31%; border-style: solid; border-color: rgba(242,118,92,.45); animation-direction: reverse; animation-duration: 5.5s; }
.loop-core { position: absolute; inset: 50% auto auto 50%; width: 152px; height: 152px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; background: var(--coral); color: var(--navy); text-align: center; transform: translate(-50%, -50%) rotate(16deg); box-shadow: 0 0 0 11px rgba(242,118,92,.1); animation: loop-core-breathe 4.5s ease-in-out infinite; }
.loop-core::before { content: ""; position: absolute; inset: -10px; border: 1px solid rgba(242,118,92,.52); border-right-color: rgba(185,229,208,.28); border-radius: 50%; animation: loop-core-ring 7s linear infinite; }
.loop-core small { font-size: 10px; }
.loop-core strong { margin: 3px 0; font-family: "Noto Serif SC", serif; font-size: 22px; font-weight: 600; }
.loop-core span { font-size: 9px; }
.orbit-label { position: absolute; z-index: 1; display: grid; width: 63px; height: 63px; place-items: center; border: 1px solid rgba(185,229,208,.6); border-radius: 50%; color: var(--mint); background: #183e47; font-family: "Noto Serif SC", serif; font-size: 15px; transform: rotate(16deg); transition: color .45s ease, background .45s ease, border-color .45s ease, box-shadow .45s ease; animation: orbit-node-float 4.8s ease-in-out infinite; }
.orbit-label::after { content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); transition: width .45s ease, height .45s ease, box-shadow .45s ease; }
.orbit-label.is-active { border-color: var(--coral); color: #fff7ed; background: #20515a; box-shadow: 0 0 0 8px rgba(242,118,92,.08), 0 0 24px rgba(185,229,208,.12); }
.orbit-label.is-active::after { width: 11px; height: 11px; box-shadow: 0 0 0 5px rgba(242,118,92,.13); }
.orbit-plan { top: 2%; left: 8%; }.orbit-plan::after { right: -15px; bottom: 5px; }.orbit-act { top: 7%; right: 5%; }.orbit-act::after { left: -15px; bottom: 3px; }.orbit-reflect { right: 9%; bottom: 3%; }.orbit-reflect::after { left: -14px; top: 3px; }
.orbit-plan { animation-delay: -1.1s; }.orbit-act { animation-delay: -2.6s; }.orbit-reflect { animation-delay: -4s; }
.orbit-signal { --orbit-radius: 187px; position: absolute; top: 50%; left: 50%; z-index: 2; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 5px rgba(242,118,92,.1), 0 0 18px rgba(242,118,92,.45); transform-origin: 0 0; animation: orbit-signal-run 9s linear infinite; }
.orbit-signal-two { --orbit-radius: 143px; width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--mint); box-shadow: 0 0 0 4px rgba(185,229,208,.1), 0 0 15px rgba(185,229,208,.4); animation-duration: 6.5s; animation-delay: -2.6s; animation-direction: reverse; }
.loop-board.is-paused .loop-orbit::before, .loop-board.is-paused .loop-orbit::after, .loop-board.is-paused .loop-core, .loop-board.is-paused .loop-core::before, .loop-board.is-paused .orbit-label, .loop-board.is-paused .orbit-label::after, .loop-board.is-paused .orbit-signal { animation-play-state: paused; }
.loop-note { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(185,229,208,.17); }
.loop-note span { color: #779892; font-family: ui-monospace, monospace; font-size: 9px; letter-spacing: .12em; }
.loop-note p { max-width: 390px; margin: 8px 0 0; color: #aac2bc; font-size: 11px; line-height: 1.8; }
.loop-now { display: block; margin-top: 9px; color: var(--mint); font-size: 10px; font-weight: 600; }
.agent-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; border-top: 1px solid rgba(185,229,208,.2); border-bottom: 1px solid rgba(185,229,208,.2); }
.agent-grid-head { grid-column: 1 / -1; min-height: 52px; padding: 15px; display: flex; align-items: baseline; justify-content: space-between; gap: 20px; background: rgba(17,47,57,.24); }
.agent-grid-head span { color: #779892; font-family: ui-monospace, monospace; font-size: 9px; letter-spacing: .12em; }
.agent-grid-head strong { color: #b8d1c9; font-size: 11px; font-weight: 500; }
.agent-card { min-height: 138px; padding: 18px 15px; display: flex; flex-direction: column; justify-content: space-between; background: rgba(17,47,57,.46); }
.agent-card:hover { background: rgba(185,229,208,.09); }
.agent-num { color: var(--coral); font-family: ui-monospace, monospace; font-size: 10px; }
.agent-card strong { color: #edf4ee; font-size: 12px; }
.agent-card p { min-height: 36px; margin: 7px 0 0; color: #8fa9a4; font-size: 10px; line-height: 1.65; }
.agent-card i { align-self: flex-end; color: var(--mint); font-size: 17px; font-style: normal; }
.pneumonia-experience { min-width: 0; overflow: hidden; border: 1px solid rgba(185,229,208,.24); border-radius: 2px 30px 2px 30px; background: rgba(8,25,33,.72); box-shadow: 0 25px 60px rgba(3,13,18,.18); }
.experience-topline { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 20px 14px; color: #789491; font-family: ui-monospace, monospace; font-size: 9px; letter-spacing: .14em; }
.experience-status { display: inline-flex; align-items: center; gap: 7px; color: #b6d8ce; font-family: inherit; letter-spacing: .04em; }
.experience-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(185,229,208,.08); animation: experience-pulse 2.6s ease-in-out infinite; }
.experience-stage { position: relative; height: 450px; overflow: hidden; background: radial-gradient(circle at 52% 47%, rgba(31,82,90,.6), rgba(10,30,39,.94) 61%, rgba(6,20,27,.98)); isolation: isolate; }
.experience-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .24; background-image: linear-gradient(rgba(185,229,208,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(185,229,208,.16) 1px, transparent 1px); background-size: 36px 36px; mask-image: radial-gradient(circle at 50% 48%, #000 0, transparent 75%); }
.experience-stage::after { content: ""; position: absolute; inset: 12% 16%; z-index: -1; border: 1px solid rgba(185,229,208,.12); border-radius: 50%; box-shadow: 0 0 0 38px rgba(185,229,208,.025), 0 0 0 82px rgba(185,229,208,.02); pointer-events: none; }
.experience-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.experience-canvas:active { cursor: grabbing; }
.experience-rings { position: absolute; inset: 0; pointer-events: none; }
.experience-rings i { position: absolute; left: 50%; top: 50%; width: 58%; aspect-ratio: 1; border: 1px solid rgba(185,229,208,.14); border-radius: 50%; transform: translate(-50%, -50%); animation: experience-ring 9s ease-in-out infinite; }
.experience-rings i + i { width: 42%; border-style: dashed; border-color: rgba(242,118,92,.23); animation-delay: -3s; animation-direction: reverse; }
.experience-node-label { position: absolute; z-index: 2; display: flex; align-items: flex-start; gap: 7px; pointer-events: none; }
.experience-node-label button { min-width: 58px; padding: 6px 10px; border: 1px solid rgba(185,229,208,.44); border-radius: 999px; color: #d9eee7; background: rgba(9,31,39,.68); font-family: "Noto Serif SC", serif; font-size: 11px; pointer-events: auto; transition: border-color .25s ease, color .25s ease, background .25s ease, transform .25s ease; }
.experience-node-label button:hover, .experience-node-label button.is-active { border-color: var(--coral); color: #fff5ee; background: rgba(87,53,52,.78); transform: translateY(-2px); }
.experience-node-label small { margin-top: 8px; color: #88a6a0; font-size: 9px; white-space: nowrap; }
.node-structure { left: 8%; top: 31%; }.node-mechanism { left: 10%; bottom: 22%; }.node-clinical { right: 7%; top: 35%; }
.node-mechanism button { border-color: rgba(255,154,125,.54); }.node-clinical button { border-color: rgba(145,200,225,.5); }
.experience-fallback { position: absolute; inset: 50% 12% auto; padding: 18px; border: 1px solid rgba(185,229,208,.26); border-radius: 14px; color: #e8f1eb; background: rgba(10,32,40,.9); text-align: center; transform: translateY(-50%); }
.experience-fallback[hidden] { display: none; }
.experience-fallback strong { display: block; color: var(--mint); font-family: "Noto Serif SC", serif; font-size: 16px; font-weight: 500; }
.experience-fallback p { margin: 9px auto 0; max-width: 300px; color: #a9c2bb; font-size: 11px; line-height: 1.8; }
.experience-controls { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(185,229,208,.17); border-bottom: 1px solid rgba(185,229,208,.17); }
.experience-controls button { min-width: 0; padding: 15px 13px 14px; display: grid; grid-template-columns: 27px 1fr; column-gap: 9px; align-items: center; border-right: 1px solid rgba(185,229,208,.13); color: #86a29d; background: rgba(9,31,39,.26); text-align: left; transition: color .25s ease, background .25s ease, box-shadow .25s ease; }
.experience-controls button:last-child { border-right: 0; }
.experience-controls button:hover { color: #e8f3ec; background: rgba(185,229,208,.07); }
.experience-controls button.is-active { color: #f6f4ea; background: rgba(242,118,92,.1); box-shadow: inset 0 -3px 0 var(--coral); }
.experience-controls button > span { grid-row: 1 / span 2; color: var(--coral); font-family: ui-monospace, monospace; font-size: 10px; }
.experience-controls strong { font-size: 12px; font-weight: 600; }.experience-controls small { margin-top: 3px; color: #718e89; font-size: 9px; }
.experience-story { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr); gap: 1px; background: rgba(185,229,208,.14); }
.experience-story-copy, .experience-focus-panel { min-height: 146px; padding: 20px; background: rgba(9,31,39,.78); }
.experience-story-copy .eyebrow { color: var(--coral); font-size: 9px; }.experience-story-copy h3 { margin: 11px 0 8px; color: #f2f4ec; font-family: "Noto Serif SC", serif; font-size: 20px; font-weight: 500; letter-spacing: -.04em; }
.experience-story-copy p { margin: 0; color: #a9c2bb; font-size: 11px; line-height: 1.8; }
.experience-focus-readout { display: flex; align-items: baseline; gap: 8px; margin-top: 16px; padding-top: 11px; border-top: 1px solid rgba(185,229,208,.15); color: #718e89; font-size: 9px; }
.experience-focus-readout strong { color: var(--mint); font-size: 11px; font-weight: 500; }
.experience-focus-panel { background: rgba(17,47,57,.48); }.experience-focus-tabs { display: flex; gap: 7px; margin-bottom: 15px; }
.experience-focus-tabs button { padding: 6px 9px; border: 1px solid rgba(185,229,208,.24); border-radius: 999px; color: #8ba9a3; background: transparent; font-size: 10px; transition: color .25s ease, border-color .25s ease, background .25s ease; }
.experience-focus-tabs button:hover, .experience-focus-tabs button.is-active { border-color: var(--mint); color: var(--navy); background: var(--mint); }
.experience-focus-panel p { min-height: 40px; margin: 0; color: #c1d8d0; font-size: 11px; line-height: 1.8; }.experience-next { display: block; margin-top: 14px; color: var(--coral); font-family: ui-monospace, monospace; font-size: 9px; letter-spacing: .03em; }
.pneumonia-experience.is-fallback .experience-stage { background: radial-gradient(circle at 50% 48%, rgba(31,82,90,.66), rgba(8,25,33,.95)); }.pneumonia-experience.is-fallback .experience-rings { opacity: .5; }
@keyframes experience-pulse { 0%,100% { opacity: .62; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.12); } }
@keyframes experience-ring { 0%,100% { opacity: .42; transform: translate(-50%, -50%) scale(1); } 50% { opacity: .82; transform: translate(-50%, -50%) scale(1.025); } }
.landing-final { max-width: var(--v3-max); margin: 0 auto; padding: 78px max(5vw, 30px) 86px; display: flex; align-items: center; justify-content: space-between; gap: 40px; color: #f4f4ea; background: var(--navy); }
.landing-final .eyebrow { color: var(--mint); }
.landing-final h2 { margin: 14px 0 0; font-family: "Noto Serif SC", serif; font-size: clamp(1.9rem, 3.2vw, 3.35rem); font-weight: 500; line-height: 1.22; letter-spacing: -.08em; }
.landing-final p { max-width: 540px; margin: 13px 0 0; color: #a8beb7; font-size: 12px; line-height: 1.8; }
.landing-final .button { flex: 0 0 auto; }
@keyframes console-pulse { 0%, 100% { opacity: .55; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.16); } }
@keyframes loop-ring-breathe { 0%, 100% { opacity: .52; transform: scale(1); } 50% { opacity: .96; transform: scale(1.018); } }
@keyframes loop-core-breathe { 0%, 100% { transform: translate(-50%, -50%) rotate(16deg) scale(1); box-shadow: 0 0 0 11px rgba(242,118,92,.1), 0 0 0 rgba(242,118,92,0); } 50% { transform: translate(-50%, -50%) rotate(16deg) scale(1.035); box-shadow: 0 0 0 11px rgba(242,118,92,.13), 0 0 34px rgba(242,118,92,.2); } }
@keyframes loop-core-ring { to { transform: rotate(360deg); } }
@keyframes orbit-node-float { 0%, 100% { transform: rotate(16deg) translateY(0); } 50% { transform: rotate(16deg) translateY(-5px); } }
@keyframes orbit-signal-run { from { transform: rotate(0deg) translateX(var(--orbit-radius)); } to { transform: rotate(360deg) translateX(var(--orbit-radius)); } }
@media (prefers-reduced-motion: reduce) {
  .loop-orbit::before, .loop-orbit::after, .loop-core, .loop-core::before, .orbit-label, .orbit-signal { animation: none; }
  .experience-status i, .experience-rings i { animation: none; }
}

@media (max-width: 920px) {
  .pneumonia-experience { max-width: 700px; }
  .experience-stage { height: 420px; }
}

@media (max-width: 720px) {
  .experience-topline { padding: 15px 15px 12px; font-size: 8px; }
  .experience-stage { height: 355px; }
  .experience-stage::after { inset: 14% 10%; }
  .experience-node-label small { display: none; }
  .node-structure { left: 5%; top: 23%; }.node-mechanism { left: 6%; bottom: 18%; }.node-clinical { right: 4%; top: 28%; }
  .experience-node-label button { min-width: 52px; padding: 5px 8px; font-size: 10px; }
  .experience-controls button { grid-template-columns: 20px 1fr; column-gap: 6px; padding: 12px 9px; }
  .experience-controls strong { font-size: 11px; }.experience-controls small { font-size: 8px; }
  .experience-story { grid-template-columns: 1fr; }
  .experience-story-copy, .experience-focus-panel { min-height: 0; padding: 16px; }
  .experience-story-copy h3 { font-size: 18px; }
}

/* brand system v5: calm clinical workspace */
:root {
  --brand-ink: #17233a;
  --brand-blue: #1550bc;
  --brand-blue-deep: #0d347d;
  --brand-coral: #ef907c;
  --brand-paper: #f7f4ee;
  --brand-surface: #fffdfa;
  --brand-mist: #eaf0f7;
  --brand-line: #dbe1e9;
  --brand-muted: #687486;
  --brand-green: #187b68;
  --brand-amber: #ad741e;
  color-scheme: light;
}

body {
  background: var(--brand-paper);
  color: var(--brand-ink);
}

body::before { opacity: .055; }

.ui-icon {
  width: 1.05em;
  height: 1.05em;
  display: inline-block;
  flex: 0 0 auto;
  vertical-align: -.16em;
}

.site-header.student,
.site-header.admin {
  height: 76px;
  color: var(--brand-ink);
  border-color: rgba(21, 54, 110, .13);
  background: rgba(248, 246, 240, .93);
  box-shadow: 0 8px 26px rgba(34, 55, 83, .045);
}

.site-header.student .header-brand,
.site-header.admin .header-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.site-header.student .brand,
.site-header.admin .brand {
  gap: 10px;
  color: var(--brand-ink);
  font-size: 18px;
  letter-spacing: .035em;
}

.site-header.student .brand-mark,
.site-header.admin .brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px 12px 12px 5px;
  background: var(--brand-blue);
  color: #fff;
  box-shadow: 0 7px 16px rgba(21, 80, 188, .18);
}

.site-header.student .brand-mark .ui-icon,
.site-header.admin .brand-mark .ui-icon { width: 22px; height: 22px; }
.site-header.student .brand-copy,
.site-header.admin .brand-copy { display: flex; min-width: 0; flex-direction: column; }
.site-header.student .brand-copy small,
.site-header.admin .brand-copy small { color: #7a8492; opacity: 1; font-size: 8px; letter-spacing: .16em; }
.header-context { padding-left: 18px; border-left: 1px solid var(--brand-line); color: #748096; font-size: 11px; letter-spacing: .12em; }

.site-header.student .main-nav,
.site-header.admin .main-nav { gap: 24px; font-size: 12px; }
.site-header.student .main-nav a,
.site-header.admin .main-nav a,
.site-header.admin .nav-label { display: inline-flex; align-items: center; gap: 7px; color: #617087; opacity: 1; }
.site-header.student .main-nav a:hover,
.site-header.student .main-nav a.active,
.site-header.admin .main-nav a:hover,
.site-header.admin .main-nav a.active { color: var(--brand-blue); border-color: var(--brand-blue); }
.site-header.admin .nav-label { color: var(--brand-blue); }
.site-header .main-nav .ui-icon { width: 15px; height: 15px; }
.site-header.student .header-actions,
.site-header.admin .header-actions { gap: 14px; }
.site-header.student .user-name,
.site-header.admin .user-name { color: #526176; }
.site-header.student .avatar,
.site-header.admin .avatar { width: 30px; height: 30px; background: var(--brand-mist); color: var(--brand-blue); }
.site-header.student .text-button,
.site-header.admin .text-button { display: inline-flex; align-items: center; gap: 6px; color: #687486; }
.site-header.student .text-button:hover,
.site-header.admin .text-button:hover { color: var(--brand-blue); }
.site-header.student .text-button .ui-icon,
.site-header.admin .text-button .ui-icon { width: 15px; height: 15px; }

.site-header.student + .step-nav {
  padding: 13px max(4.8vw, 26px) 14px;
  border-color: var(--brand-line);
  background: rgba(247, 244, 238, .93);
  box-shadow: 0 8px 26px rgba(34, 55, 83, .035);
}
.site-header.student + .step-nav::before { background: linear-gradient(to right, var(--brand-blue), rgba(21, 80, 188, .18) 42%, transparent); }
.site-header.student + .step-nav .step { border-radius: 10px; }
.site-header.student + .step-nav .step:hover { border-color: var(--brand-line); background: rgba(255, 253, 250, .8); }
.site-header.student + .step-nav .step.current { border-color: rgba(21, 80, 188, .2); background: rgba(21, 80, 188, .06); box-shadow: inset 3px 0 0 var(--brand-blue); }
.site-header.student + .step-nav .step.current::after { background: var(--brand-blue); }
.site-header.student + .step-nav .step-number { border-color: #cfd6df; background: transparent; color: #718096; }
.site-header.student + .step-nav .step.current .step-number { border-color: var(--brand-blue); background: var(--brand-blue); color: #fff; }
.site-header.student + .step-nav .step.done .step-number { border-color: rgba(24, 123, 104, .3); background: #dff1eb; color: var(--brand-green); }
.site-header.student + .step-nav .step-arrow { width: 16px; height: 16px; margin-left: auto; color: #aab3c0; }
.site-header.student + .step-nav .step-number .ui-icon { width: 14px; height: 14px; }

.workspace {
  max-width: 1420px;
  min-height: calc(100vh - 232px);
  padding-top: 66px;
  padding-bottom: 92px;
}
.workspace::before { display: none; }
.workspace .page-heading { max-width: 1160px; margin-bottom: 40px; }
.workspace .page-heading h1 { color: var(--brand-ink); font-size: clamp(2.35rem, 4vw, 4rem); letter-spacing: -.075em; }
.workspace .page-heading p { color: var(--brand-muted); max-width: 590px; line-height: 1.9; }
.workspace .page-heading .eyebrow { color: var(--brand-blue); }
.workspace .heading-stamp { color: #7b8798; }
.workspace .heading-stamp b { color: var(--brand-coral); }
.workspace .heading-stamp .ui-icon { width: 35px; height: 35px; }

.workspace .panel {
  border-color: var(--brand-line);
  border-radius: 16px;
  background: rgba(255, 253, 250, .86);
  box-shadow: 0 15px 38px rgba(33, 52, 82, .055);
}
.workspace .panel:hover { border-color: rgba(21, 80, 188, .25); }
.workspace .panel-heading { border-color: var(--brand-line); }
.workspace .panel-heading h2 { color: var(--brand-ink); }
.workspace .muted { color: var(--brand-muted); }
.workspace label { color: var(--brand-ink); }
.workspace .field-note { color: #8a95a4; }
.workspace input[type="text"],
.workspace input[type="password"],
.workspace textarea,
.workspace select {
  border-color: #d3dae4;
  border-radius: 10px;
  background: #fff;
  color: var(--brand-ink);
}
.workspace input:focus,
.workspace textarea:focus,
.workspace select:focus { border-color: var(--brand-blue); box-shadow: 0 0 0 4px rgba(21, 80, 188, .1); }
.workspace .button { background: var(--brand-blue); color: #fff; box-shadow: 0 10px 24px rgba(21, 80, 188, .18); }
.workspace .button:hover { background: #0e43a5; color: #fff; box-shadow: 0 14px 30px rgba(21, 80, 188, .23); }
.workspace .button.secondary { color: var(--brand-ink); background: transparent; border-color: var(--brand-line); box-shadow: none; }
.workspace .button.secondary:hover { color: var(--brand-blue); background: #fff; border-color: rgba(21, 80, 188, .35); }
.workspace .plain-link { color: #53627a; }
.workspace .plain-link:hover { color: var(--brand-blue); }
.workspace .plain-link .ui-icon,
.workspace .button .ui-icon { width: 16px; height: 16px; }

.question-layout { grid-template-columns: minmax(0, 1fr) minmax(270px, 310px); gap: 30px; }
.question-layout > form > .panel { padding: clamp(28px, 4vw, 46px); border-radius: 18px; background: rgba(255, 253, 250, .92); box-shadow: 0 20px 50px rgba(33, 52, 82, .08); }
.question-layout > form > .panel::before { content: "BEGIN WITH YOUR QUESTION"; color: #9aa4b2; top: 28px; right: 38px; letter-spacing: .14em; }
.question-layout .panel-heading { margin-bottom: 27px; padding-bottom: 18px; }
.question-layout .panel-heading h2 { font-family: "Noto Serif SC", serif; font-size: 21px; font-weight: 600; }
.question-layout .mode-grid { gap: 11px; }
.question-layout .mode-card { min-height: 132px; padding: 17px 15px; border: 1px solid #e1e5ea; border-radius: 12px; background: #fbfaf7; }
.question-layout .mode-card:hover { border-color: rgba(21, 80, 188, .34); background: #fff; transform: translateY(-2px); }
.question-layout .mode-card.selected { border-color: rgba(21, 80, 188, .42); background: #f1f5fb; box-shadow: inset 0 -3px 0 var(--brand-blue); }
.question-layout .mode-icon { width: 30px; height: 30px; display: grid; place-items: center; margin-bottom: 10px; border-radius: 9px; background: var(--brand-mist); color: var(--brand-blue); }
.question-layout .mode-icon .ui-icon { width: 17px; height: 17px; }
.question-layout .mode-card strong { color: var(--brand-ink); }
.question-layout .mode-card small { color: var(--brand-muted); }
.question-layout .type-chip span { border-radius: 999px; border-color: #d7dee7; background: #fff; color: #647187; }
.question-layout .type-chip input:checked + span { border-color: rgba(21, 80, 188, .35); background: var(--brand-mist); color: var(--brand-blue); }
.question-layout .materials { border-color: var(--brand-line); background: #fbfaf7; }
.question-layout .materials summary { color: var(--brand-blue); }
.question-layout .materials summary .ui-icon { width: 15px; height: 15px; }
.question-layout .upload-box { border-color: #cfd8e4; background: #fff; color: var(--brand-muted); }
.attachment-icon { color: var(--brand-blue); }
.attachment-remove { color: #9aa4b2; }
.attachment-remove:hover { color: var(--brand-coral); }
.mentor-note { border-radius: 16px; background: var(--brand-blue-deep); color: #f4f7fb; box-shadow: 10px 12px 0 rgba(21, 80, 188, .09); }
.mentor-note .eyebrow { color: #aec7ee; }
.mentor-note h2 { color: #fff; }
.mentor-note p { color: #cfdbed; }
.mentor-note small { color: #a2b7d4; }
.note-symbol { color: var(--brand-coral); }
.note-symbol .ui-icon { width: 30px; height: 30px; }
.suggestions { border-color: var(--brand-line); border-radius: 16px; background: rgba(255, 253, 250, .7); }
.suggestions h3 { color: var(--brand-ink); }
.suggestions button { border-color: var(--brand-line); }
.suggestions button strong { color: var(--brand-ink); }
.suggestions button > span { display: inline-flex; align-items: center; gap: 3px; color: var(--brand-blue); }
.suggestions button .ui-icon { width: 13px; height: 13px; }
.suggestion-arrow { width: 15px; height: 15px; color: var(--brand-coral); }

.step-footer {
  max-width: 1160px;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--brand-line);
}
.step-footer > span { color: #8a95a4; font-size: 11px; }
.step-footer .plain-link,
.step-footer .button { display: inline-flex; align-items: center; gap: 8px; }

/* diagnosis */
.diagnosis-v5-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 24px; align-items: stretch; }
.diagnosis-report,
.diagnosis-plan { min-width: 0; padding: clamp(25px, 3.2vw, 38px); border: 1px solid var(--brand-line); border-radius: 18px; background: rgba(255, 253, 250, .88); box-shadow: 0 18px 42px rgba(33, 52, 82, .06); }
.diagnosis-report { background: #fffdfa; }
.diagnosis-plan { border-color: rgba(21, 80, 188, .18); background: var(--brand-blue); color: #fff; }
.diagnosis-plan .eyebrow { color: #b7caf0; }
.diagnosis-plan h2 { margin: 16px 0 11px; color: #fff; font-family: "Noto Serif SC", serif; font-size: clamp(1.45rem, 2.3vw, 2rem); font-weight: 500; }
.diagnosis-plan .plan-intro { color: #d5e0f1; font-size: 12px; line-height: 1.9; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 25px; padding-bottom: 17px; border-bottom: 1px solid var(--brand-line); }
.section-heading .eyebrow { color: var(--brand-blue); }
.section-heading p { max-width: 250px; margin: 0; color: var(--brand-muted); font-size: 11px; line-height: 1.75; }
.diagnosis-findings { display: grid; gap: 0; }
.diagnosis-finding { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 18px 0; border-bottom: 1px solid #e8ebef; }
.diagnosis-finding:first-child { padding-top: 2px; }
.finding-number { color: var(--brand-blue); font-family: ui-monospace, monospace; font-size: 12px; letter-spacing: .08em; }
.diagnosis-finding h3 { margin: -2px 0 5px; color: var(--brand-ink); font-size: 14px; }
.diagnosis-finding p { max-width: 520px; margin: 0; color: var(--brand-muted); font-size: 12px; line-height: 1.7; }
.finding-status { display: inline-flex; align-items: center; gap: 7px; padding-top: 2px; color: var(--brand-green); font-size: 10px; white-space: nowrap; }
.finding-status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.finding-status.link { color: var(--brand-blue); }
.finding-status.focus { color: var(--brand-coral); }
.diagnosis-question { display: flex; gap: 14px; margin-top: 25px; padding: 18px; border: 1px solid rgba(239, 144, 124, .3); border-radius: 12px; background: #fff6f1; }
.diagnosis-icon { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; background: #ffe3d9; color: #d9745f; }
.diagnosis-icon .ui-icon { width: 17px; height: 17px; }
.diagnosis-question .eyebrow { display: block; margin-bottom: 7px; color: #d9745f; }
.diagnosis-question strong { display: block; color: var(--brand-ink); font-size: 13px; line-height: 1.65; }
.diagnosis-question p { margin: 7px 0 0; color: #7b6b68; font-size: 11px; line-height: 1.7; }
.diagnosis-chain { margin-top: 27px; }
.diagnosis-chain > .eyebrow { color: var(--brand-blue); }
.diagnosis-chain-track { display: flex; align-items: stretch; gap: 0; margin-top: 14px; padding: 13px 0; border-top: 1px solid var(--brand-line); border-bottom: 1px solid var(--brand-line); }
.diagnosis-chain-node { position: relative; display: flex; min-width: 0; flex: 1; align-items: center; gap: 9px; padding: 3px 24px 3px 0; color: var(--brand-ink); }
.diagnosis-chain-node > span { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 8px; background: var(--brand-mist); color: var(--brand-blue); }
.diagnosis-chain-node > span .ui-icon { width: 15px; height: 15px; }
.diagnosis-chain-node strong { overflow: hidden; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.diagnosis-chain-node .chain-arrow,
.diagnosis-chain-node .chain-check { position: absolute; right: 7px; width: 15px; height: 15px; color: #acb7c6; }
.diagnosis-chain-node .chain-check { color: var(--brand-green); }
.diagnosis-plan-list { display: grid; gap: 0; margin: 27px 0 0; padding: 0; list-style: none; }
.diagnosis-plan-list li { display: grid; grid-template-columns: 29px minmax(0, 1fr); gap: 10px; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .17); }
.diagnosis-plan-list li > span { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .38); border-radius: 50%; color: #dbe5f5; font-family: ui-monospace, monospace; font-size: 10px; }
.diagnosis-plan-list strong { display: block; color: #fff; font-size: 12px; font-weight: 600; line-height: 1.65; }
.diagnosis-plan-list small { display: block; margin-top: 4px; color: #b7c9e4; font-size: 10px; }
.plan-note { margin-top: 25px; padding: 14px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 10px; background: rgba(255, 255, 255, .08); }
.plan-note strong { display: block; margin-bottom: 5px; color: #fff; font-size: 11px; }
.plan-note p { margin: 0; color: #c3d1e5; font-size: 10px; line-height: 1.75; }

/* remaining student surfaces inherit the same brand language */
.knowledge-chain { gap: 9px; }
.knowledge-chain button { border-color: var(--brand-line); border-radius: 12px; background: rgba(255, 253, 250, .82); }
.knowledge-chain button:hover { border-color: rgba(21, 80, 188, .32); background: #fff; }
.knowledge-chain button.active { border-color: rgba(21, 80, 188, .3); background: #f1f5fb; box-shadow: inset 0 -3px 0 var(--brand-blue); }
.knowledge-chain button i { color: var(--brand-blue); }
.knowledge-chain button .ui-icon { width: 16px; height: 16px; }
.explore-layout, .practice-layout, .reflection-layout { gap: 24px; }
.explore-layout .panel, .practice-layout .panel, .reflection-layout .panel { border-radius: 16px; }
.bridge-note, .soft-note { border-color: var(--brand-line); background: #f7f9fb; }
.bridge-note > span { color: var(--brand-blue); }
.sources article { border-color: var(--brand-line); }
.sources article > span { color: var(--brand-blue); }
.case-panel { border-color: rgba(21, 80, 188, .18); background: #f1f5fb; }
.practice-item .options > div { border-color: var(--brand-line); background: #fbfcfd; }
.practice-item .options > div > span { background: var(--brand-mist); color: var(--brand-blue); }
.side-quote { color: #6c7890; border-color: var(--brand-line); }
.reflection-layout .green-text { color: var(--brand-green); }
.reflection-layout .orange-text { color: #d9745f; }
.history-summary { border-color: var(--brand-line); background: var(--brand-blue); color: #fff; }
.history-summary p { color: #c5d4ea; }
.history-card { border-color: var(--brand-line); background: rgba(255, 253, 250, .84); }
.history-card:hover { border-color: rgba(21, 80, 188, .34); background: #fff; }
.history-card h2 { color: var(--brand-ink); }
.history-card-bottom { border-color: var(--brand-line); color: var(--brand-muted); }
.history-card-bottom span:last-child { color: var(--brand-blue); }

/* admin workspace */
.site-header.admin .header-context { color: var(--brand-blue); }
.admin-layout { min-height: calc(100vh - 76px); grid-template-columns: 238px minmax(0, 1fr); color: var(--brand-ink); background: var(--brand-paper); }
.admin-sidebar { padding: 30px 18px 24px; border-right: 1px solid var(--brand-line); background: #fbfaf7; }
.admin-sidebar .eyebrow { color: var(--brand-blue); }
.admin-sidebar-brand h2 { margin: 13px 0 5px; color: var(--brand-ink); font-family: "Noto Serif SC", serif; font-size: 22px; font-weight: 600; }
.admin-sidebar-brand p { margin: 0 0 28px; color: var(--brand-muted); font-size: 11px; }
.admin-sidebar nav { gap: 5px; }
.admin-sidebar nav a { padding: 11px 12px; border-radius: 10px; color: #738096; }
.admin-sidebar nav a:hover { border-color: rgba(21, 80, 188, .12); color: var(--brand-blue); background: #f3f6fb; }
.admin-sidebar nav a.active { border-color: rgba(21, 80, 188, .16); color: var(--brand-blue); background: #eef3fb; box-shadow: inset 3px 0 0 var(--brand-blue); }
.admin-sidebar nav a > span { width: 20px; color: currentColor; }
.admin-sidebar nav .ui-icon { width: 17px; height: 17px; }
.admin-side-note { margin: 54px 0 18px; padding: 16px 12px; border-color: var(--brand-line); color: #6c7890; }
.admin-side-note span { color: var(--brand-ink); }
.admin-side-note small { color: #9aa4b2; }
.admin-student-link { display: inline-flex; align-items: center; gap: 7px; color: var(--brand-blue); font-size: 11px; }
.admin-student-link .ui-icon { width: 15px; height: 15px; }
.admin-main { min-width: 0; padding: 46px max(4vw, 30px) 72px; background: var(--brand-paper); }
.admin-page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; max-width: 1190px; margin-bottom: 34px; }
.admin-page-heading h1 { margin: 12px 0 9px; color: var(--brand-ink); font-family: "Noto Serif SC", serif; font-size: clamp(2rem, 3.7vw, 3.3rem); font-weight: 500; letter-spacing: -.07em; }
.admin-page-heading p { max-width: 570px; margin: 0; color: var(--brand-muted); font-size: 12px; line-height: 1.9; }
.admin-page-heading .eyebrow { color: var(--brand-blue); }
.admin-heading-actions .button { min-height: 42px; }
.admin-heading-actions .button .ui-icon { width: 15px; height: 15px; }
.admin-status-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 1190px; margin-bottom: 19px; }
.admin-metric { display: flex; align-items: center; gap: 14px; padding: 19px 20px; border: 1px solid var(--brand-line); border-radius: 14px; background: rgba(255, 253, 250, .9); box-shadow: 0 12px 28px rgba(33, 52, 82, .045); }
.metric-icon { width: 37px; height: 37px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; background: var(--brand-mist); color: var(--brand-blue); }
.metric-icon .ui-icon { width: 18px; height: 18px; }
.admin-metric strong { display: block; color: var(--brand-ink); font-family: ui-monospace, monospace; font-size: 27px; font-weight: 600; line-height: 1; }
.admin-metric span { display: block; margin-top: 4px; color: var(--brand-ink); font-size: 12px; font-weight: 600; }
.admin-metric small { display: block; margin-top: 2px; color: #9aa4b2; font-size: 10px; }
.admin-overview-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr); gap: 19px; max-width: 1190px; }
.admin-panel { min-width: 0; padding: 25px; border: 1px solid var(--brand-line); border-radius: 16px; background: rgba(255, 253, 250, .88); box-shadow: 0 14px 34px rgba(33, 52, 82, .045); }
.admin-panel-heading { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
.admin-panel-heading h2 { margin: 9px 0 0; color: var(--brand-ink); font-family: "Noto Serif SC", serif; font-size: 20px; font-weight: 600; }
.admin-panel-heading .eyebrow { color: var(--brand-blue); }
.panel-note { color: #8b96a5; font-size: 10px; }
.health-summary { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-green); font-size: 10px; }
.health-summary i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.health-list { display: grid; gap: 0; }
.health-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 11px; align-items: center; padding: 15px 0; border-top: 1px solid #e8ebef; }
.health-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; background: #e4f3ee; color: var(--brand-green); }
.health-icon.is-warn { background: #fff0da; color: var(--brand-amber); }
.health-icon .ui-icon { width: 15px; height: 15px; }
.health-row strong { display: block; color: var(--brand-ink); font-size: 12px; }
.health-row small { display: block; margin-top: 2px; color: var(--brand-muted); font-size: 10px; }
.status-chip { display: inline-flex; align-items: center; min-height: 23px; padding: 3px 8px; border-radius: 999px; font-size: 10px; font-weight: 600; white-space: nowrap; }
.status-chip.success { color: var(--brand-green); background: #e4f3ee; }
.status-chip.warning { color: var(--brand-amber); background: #fff0da; }
.status-chip.danger { color: #c14e4e; background: #fde8e5; }
.status-chip.neutral { color: #6f7d90; background: #edf0f4; }
.admin-info { display: flex; gap: 9px; margin-top: 22px; padding: 13px; border-radius: 10px; background: #f4f7fa; color: var(--brand-blue); }
.admin-info .ui-icon { width: 16px; height: 16px; margin-top: 1px; }
.admin-info p { margin: 0; color: var(--brand-muted); font-size: 10px; line-height: 1.7; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { padding: 0 12px 11px 0; border-bottom: 1px solid var(--brand-line); color: #8994a4; font-size: 10px; font-weight: 600; letter-spacing: .06em; text-align: left; white-space: nowrap; }
.admin-table td { padding: 14px 12px 14px 0; border-bottom: 1px solid #edf0f3; color: #53627a; font-size: 11px; vertical-align: top; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table .question-cell { max-width: 330px; color: var(--brand-ink); font-weight: 500; line-height: 1.65; }
.admin-empty { padding: 38px 20px; color: #8d98a6; font-size: 12px; text-align: center; }
.admin-main > #adminContent > .panel { max-width: 1190px; border-color: var(--brand-line); background: rgba(255, 253, 250, .88); color: var(--brand-ink); box-shadow: 0 14px 34px rgba(33, 52, 82, .045); }
.admin-main .table-scroll { overflow-x: auto; }
.admin-main .empty-state { color: var(--brand-muted); }

@media (max-width: 980px) {
  .diagnosis-v5-grid, .admin-overview-grid { grid-template-columns: 1fr; }
  .diagnosis-plan { order: -1; }
  .admin-status-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-metric { padding: 16px; }
}

@media (max-width: 820px) {
  .site-header.student .header-context,
  .site-header.admin .header-context { display: none; }
  .site-header.student .main-nav,
  .site-header.admin .main-nav { display: none; }
  .question-layout { grid-template-columns: 1fr; }
  .diagnosis-plan { order: 0; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { padding: 22px 20px 18px; border-right: 0; border-bottom: 1px solid var(--brand-line); }
  .admin-sidebar-brand h2 { margin: 8px 0 3px; }
  .admin-sidebar-brand p { margin-bottom: 15px; }
  .admin-sidebar nav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
  .admin-sidebar nav a { min-width: 104px; }
  .admin-side-note, .admin-student-link { display: none; }
  .admin-main { padding: 36px 20px 58px; }
}

@media (max-width: 620px) {
  .site-header.student, .site-header.admin { height: 70px; padding: 0 20px; }
  .site-header.student .brand, .site-header.admin .brand { font-size: 16px; }
  .site-header.student .brand-mark, .site-header.admin .brand-mark { width: 34px; height: 34px; }
  .header-actions .user-name { display: none; }
  .workspace { padding-top: 43px; padding-bottom: 65px; }
  .workspace .page-heading { display: block; margin-bottom: 28px; }
  .workspace .page-heading h1 { font-size: 2.45rem; }
  .heading-stamp { margin-top: 17px; padding-right: 44px; text-align: left; }
  .heading-stamp b { left: 128px; right: auto; }
  .section-heading { display: block; }
  .section-heading p { max-width: none; margin-top: 10px; }
  .diagnosis-report, .diagnosis-plan { padding: 22px 18px; }
  .diagnosis-finding { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; }
  .finding-status { grid-column: 2; padding-top: 0; }
  .diagnosis-chain-track { display: grid; gap: 7px; }
  .diagnosis-chain-node { padding-right: 25px; }
  .admin-page-heading { display: block; }
  .admin-heading-actions { margin-top: 18px; }
  .admin-heading-actions .button { width: 100%; }
  .admin-status-strip { grid-template-columns: 1fr; }
  .admin-panel { padding: 20px 16px; }
  .admin-table { min-width: 610px; }
  .step-footer { align-items: stretch; flex-direction: column; }
  .step-footer .button { width: 100%; }
}

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

/* landing v4: quiet ivory field with cobalt glass study object */
:root { --cobalt: #1550bc; --cobalt-deep: #0d347d; --blue-ink: #13253a; --mist: #eaf0f7; }
.site-header.public { color: var(--blue-ink); border-color: rgba(17,48,91,.14); background: rgba(248,246,240,.84); box-shadow: 0 7px 24px rgba(34,55,83,.035); }
.site-header.public .brand-icon { width: 38px; height: 38px; border-radius: 13px 13px 13px 5px; background: var(--cobalt); color: transparent; box-shadow: none; font-size: 0; }
.site-header.public .brand-icon::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 12px -8px 0 rgba(255,255,255,.82), 13px 9px 0 rgba(255,255,255,.92); transform: translate(-5px, 2px); }
.site-header.public .brand-icon > span { display: none; }
.site-header.public .brand small { color: #697384; opacity: .75; }
.site-header.public .main-nav a { color: #1f2d40; opacity: .82; }
.site-header.public .main-nav a:hover, .site-header.public .main-nav a.active { color: var(--cobalt); border-color: currentColor; }
.site-header.public .header-login { color: #223046; font-size: 12px; }
.site-header.public .header-login:hover { color: var(--cobalt); }
.site-header.public .button.small { min-height: 44px; padding: 10px 18px; border: 1px solid #223046; border-radius: 999px; background: transparent; color: #223046; box-shadow: none; font-weight: 500; }
.site-header.public .button.small:hover { border-color: var(--cobalt); background: #fff; color: var(--cobalt); transform: translateY(-1px); }
.landing-v4 { background: #f7f4ee; color: var(--blue-ink); }
.landing-v4 em { color: var(--cobalt); }
.landing-v4 .hero-v4 { max-width: 1500px; min-height: min(760px, calc(100vh - 82px)); padding: clamp(46px, 6vw, 82px) max(4.6vw, 30px) 34px; grid-template-columns: minmax(330px, .8fr) minmax(560px, 1.2fr); gap: clamp(28px, 5vw, 90px); align-items: center; background: #f7f4ee; }
.landing-v4 .hero-v3-copy { max-width: 570px; padding-left: clamp(0px, 1vw, 18px); }
.landing-v4 .hero-v3-copy .eyebrow { color: #536c9a; }
.landing-v4 .hero-v3-copy h1 { max-width: 560px; margin: 24px 0 25px; color: var(--blue-ink); font-size: clamp(3.2rem, 5.2vw, 6rem); letter-spacing: -.1em; }
.landing-v4 .hero-v3-copy h1 em { color: var(--blue-ink); font-weight: 500; }
.landing-v4 .hero-v3-copy h1 em::after { content: ""; display: block; width: 38px; height: 3px; margin-top: 24px; background: #f0927a; }
.landing-v4 .hero-v3-lead { max-width: 470px; color: #687486; font-size: 14px; line-height: 2.05; }
.landing-v4 .hero-v3-actions { margin-top: 32px; }
.landing-v4 .hero-v3-actions .button { min-height: 52px; padding: 13px 26px; border-radius: 999px; background: var(--cobalt); color: #fff; box-shadow: 0 12px 24px rgba(21,80,188,.2); }
.landing-v4 .hero-v3-actions .button:hover { background: #0e43a5; color: #fff; box-shadow: 0 16px 30px rgba(21,80,188,.26); }
.landing-v4 .hero-v3-actions .plain-link { color: #40516b; }
.landing-v4 .hero-v3-actions .plain-link:hover { color: var(--cobalt); }
.landing-v4 .hero-v3-actions .plain-link span { color: #ee907b; }
.landing-v4 .hero-v3-proof { gap: 10px; margin-top: 68px; color: #8b929c; }
.landing-v4 .hero-v3-proof span { border-color: rgba(21,80,188,.22); }
.landing-v4 .hero-v3-proof i { color: #ee907b; }
.hero-v4-visual { position: relative; min-height: 560px; overflow: visible; }
.hero-v4-visual::before { content: ""; position: absolute; inset: 6% 3% 8% 7%; z-index: 0; border-radius: 50%; background: radial-gradient(circle at 55% 45%, rgba(255,255,255,.9), rgba(224,232,241,.24) 46%, transparent 72%); filter: blur(1px); }
.hero-v4-visual-head { position: absolute; top: 0; left: 4%; right: 3%; z-index: 4; display: flex; justify-content: space-between; color: #6d7786; font-family: ui-monospace, monospace; font-size: 9px; letter-spacing: .15em; }
.hero-v4-visual-head span:last-child { display: inline-flex; align-items: center; gap: 7px; letter-spacing: .06em; }
.hero-v4-visual-head i { width: 6px; height: 6px; border-radius: 50%; background: #f08f7a; box-shadow: 0 0 0 4px rgba(240,143,122,.14); }
.hero-v4-story { position: relative; z-index: 1; min-height: 535px; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.hero-v4-story .experience-stage { height: 500px; overflow: visible; background: transparent; }
.hero-v4-story .experience-stage::before { opacity: .36; background-image: linear-gradient(rgba(21,80,188,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(21,80,188,.1) 1px, transparent 1px); background-size: 42px 42px; mask-image: radial-gradient(circle at 54% 48%, #000 0, transparent 72%); }
.hero-v4-story .experience-stage::after { inset: 10% 9%; border-color: rgba(21,80,188,.17); box-shadow: 0 0 0 44px rgba(21,80,188,.025), 0 0 0 95px rgba(21,80,188,.018); }
.hero-v4-story .experience-rings i { border-color: rgba(21,80,188,.18); }
.hero-v4-story .experience-rings i + i { border-color: rgba(240,143,122,.42); }
.hero-v4-story .experience-node-label button { min-width: 66px; padding: 7px 12px; border-color: rgba(21,80,188,.35); color: #1c3557; background: rgba(255,255,255,.75); box-shadow: 0 8px 20px rgba(54,77,108,.08); }
.hero-v4-story .experience-node-label button:hover, .hero-v4-story .experience-node-label button.is-active { border-color: var(--cobalt); color: #fff; background: var(--cobalt); box-shadow: 0 10px 22px rgba(21,80,188,.18); }
.hero-v4-story .experience-node-label small { color: #6b7585; }
.hero-v4-story .node-structure { left: 8%; top: 27%; }.hero-v4-story .node-mechanism { left: 12%; bottom: 20%; }.hero-v4-story .node-clinical { right: 7%; top: 31%; }
.hero-v4-story .experience-fallback { color: var(--blue-ink); border-color: rgba(21,80,188,.2); background: rgba(255,255,255,.86); box-shadow: 0 18px 40px rgba(28,50,82,.08); }
.hero-v4-story .experience-fallback strong { color: var(--cobalt); }.hero-v4-story .experience-fallback p { color: #687486; }
.hero-v4-phase-rail { position: absolute; left: 8%; right: 4%; bottom: 3px; z-index: 5; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(21,80,188,.24); }
.hero-v4-phase-rail button { min-width: 0; padding: 13px 14px 7px 0; display: grid; grid-template-columns: 28px 1fr; column-gap: 8px; align-items: center; border-right: 1px solid rgba(21,80,188,.13); color: #7c8795; background: transparent; text-align: left; }
.hero-v4-phase-rail button:last-child { border-right: 0; }.hero-v4-phase-rail button > span { grid-row: 1 / span 2; color: #ee907b; font-family: ui-monospace, monospace; font-size: 10px; }.hero-v4-phase-rail strong { color: #42536b; font-size: 12px; font-weight: 600; }.hero-v4-phase-rail small { color: #8d96a1; font-size: 9px; }.hero-v4-phase-rail button.is-active { color: var(--cobalt); }.hero-v4-phase-rail button.is-active strong { color: var(--cobalt); }.hero-v4-phase-rail button:hover strong { color: var(--cobalt); }
.hero-v4-caption { position: absolute; left: 4%; right: 3%; bottom: -31px; z-index: 5; display: flex; align-items: baseline; gap: 13px; color: #7b8490; font-size: 10px; }
.hero-v4-caption span { color: #ee907b; font-family: ui-monospace, monospace; letter-spacing: .09em; }.hero-v4-caption strong { color: #344b69; font-family: "Noto Serif SC", serif; font-weight: 500; }.hero-v4-caption small { margin-left: auto; color: #7b8490; }.hero-v4-caption b { color: var(--cobalt); font-size: 15px; font-weight: 400; }
.landing-v4 .v3-statement { background: #f7f4ee; }.landing-v4 .v3-statement::before { background: #f7f4ee; }.landing-v4 .statement-index, .landing-v4 .section-rail .eyebrow { color: #ef907c; }.landing-v4 .v3-statement h2 { color: var(--blue-ink); }.landing-v4 .statement-kicker, .landing-v4 .statement-aside { color: #748091; }
.landing-v4 .pain-section { background: #eaf0f7; color: var(--blue-ink); }.landing-v4 .pain-card { border-color: rgba(21,80,188,.15); background: rgba(255,255,255,.54); }.landing-v4 .pain-card h3, .landing-v4 .section-rail strong { color: var(--blue-ink); }.landing-v4 .pain-card p, .landing-v4 .section-rail > span:last-child { color: #708096; }.landing-v4 .pain-card:hover { background: rgba(255,255,255,.86); }.landing-v4 .pain-rail { border-color: rgba(21,80,188,.2); }
.landing-v4 .chain-section { background: #f0f4f8; }.landing-v4 .chain-heading .eyebrow, .landing-v4 .chain-caption span { color: var(--cobalt); }.landing-v4 .chain-heading p, .landing-v4 .chain-node small, .landing-v4 .chain-caption p { color: #718096; }.landing-v4 .chain-track { border-color: rgba(21,80,188,.24); }.landing-v4 .chain-node { border-color: rgba(21,80,188,.17); }.landing-v4 .chain-node i { color: #ee907b; background: #f0f4f8; }.landing-v4 .chain-node > b { color: var(--cobalt); }
.landing-v4 .collaboration-section { background: #f7f4ee; color: var(--blue-ink); }.landing-v4 .collab-intro .eyebrow { color: #ef907c; }.landing-v4 .collab-intro h2 { color: var(--blue-ink); }.landing-v4 .collab-intro p, .landing-v4 .collab-metric span { color: #708096; }.landing-v4 .collab-metric { border-color: rgba(21,80,188,.16); }.landing-v4 .collab-metric strong { color: var(--cobalt); }.landing-v4 .text-arrow { color: var(--cobalt); }.landing-v4 .text-arrow span { color: #ef907c; }
.landing-v4 .pneumonia-experience:not(.hero-v4-story) { border-color: rgba(21,80,188,.18); background: #eef3f8; box-shadow: 0 22px 55px rgba(38,59,88,.08); }.landing-v4 .pneumonia-experience:not(.hero-v4-story) .experience-stage { background: radial-gradient(circle at 52% 47%, rgba(219,232,244,.9), rgba(237,243,248,.94) 63%, #eef3f8); }.landing-v4 .pneumonia-experience:not(.hero-v4-story) .experience-stage::before { opacity: .18; background-image: linear-gradient(rgba(21,80,188,.15) 1px, transparent 1px), linear-gradient(90deg, rgba(21,80,188,.15) 1px, transparent 1px); }.landing-v4 .pneumonia-experience:not(.hero-v4-story) .experience-stage::after { border-color: rgba(21,80,188,.14); }.landing-v4 .pneumonia-experience:not(.hero-v4-story) .experience-node-label button { color: var(--blue-ink); background: rgba(255,255,255,.74); border-color: rgba(21,80,188,.3); }.landing-v4 .pneumonia-experience:not(.hero-v4-story) .experience-node-label button.is-active { color: #fff; background: var(--cobalt); border-color: var(--cobalt); }.landing-v4 .pneumonia-experience:not(.hero-v4-story) .experience-topline { color: #718096; }.landing-v4 .pneumonia-experience:not(.hero-v4-story) .experience-status { color: var(--cobalt); }.landing-v4 .pneumonia-experience:not(.hero-v4-story) .experience-controls button { color: #718096; background: rgba(255,255,255,.3); border-color: rgba(21,80,188,.13); }.landing-v4 .pneumonia-experience:not(.hero-v4-story) .experience-controls button.is-active { color: var(--blue-ink); background: rgba(21,80,188,.08); box-shadow: inset 0 -3px 0 var(--cobalt); }.landing-v4 .pneumonia-experience:not(.hero-v4-story) .experience-story-copy, .landing-v4 .pneumonia-experience:not(.hero-v4-story) .experience-focus-panel { background: rgba(255,255,255,.54); }.landing-v4 .pneumonia-experience:not(.hero-v4-story) .experience-story-copy h3 { color: var(--blue-ink); }.landing-v4 .pneumonia-experience:not(.hero-v4-story) .experience-story-copy p, .landing-v4 .pneumonia-experience:not(.hero-v4-story) .experience-focus-panel p { color: #687486; }.landing-v4 .pneumonia-experience:not(.hero-v4-story) .experience-focus-tabs button { color: #718096; }.landing-v4 .pneumonia-experience:not(.hero-v4-story) .experience-focus-tabs button.is-active { color: #fff; background: var(--cobalt); border-color: var(--cobalt); }
.landing-v4 .agent-grid { border-color: rgba(21,80,188,.18); }.landing-v4 .agent-grid-head, .landing-v4 .agent-card { background: rgba(255,255,255,.48); }.landing-v4 .agent-grid-head strong, .landing-v4 .agent-card strong { color: var(--blue-ink); }.landing-v4 .agent-grid-head span, .landing-v4 .agent-card p { color: #718096; }.landing-v4 .agent-card:hover { background: rgba(255,255,255,.9); }.landing-v4 .agent-card i { color: var(--cobalt); }
.landing-v4 .landing-final { background: #eaf0f7; color: var(--blue-ink); }.landing-v4 .landing-final .eyebrow { color: var(--cobalt); }.landing-v4 .landing-final p { color: #708096; }.landing-v4 .landing-final h2 em { color: var(--cobalt); }.landing-v4 .landing-final .button { background: var(--cobalt); color: #fff; box-shadow: 0 12px 26px rgba(21,80,188,.17); }
.site-header.public + .landing-v4 + .site-footer { color: #7c8795; border-color: rgba(21,80,188,.14); background: #f7f4ee; }
@media (max-width: 980px) {
  .landing-v4 .hero-v4 { grid-template-columns: 1fr; gap: 44px; padding-top: 65px; }
  .landing-v4 .hero-v3-copy { max-width: 720px; }
  .hero-v4-visual { max-width: 760px; width: 100%; min-height: 600px; margin: 0 auto; }
}
@media (max-width: 720px) {
  .site-header.public .header-login { display: none; }
  .landing-v4 .hero-v4 { padding: 52px 20px 70px; }
  .landing-v4 .hero-v3-copy h1 { font-size: clamp(2.8rem, 12.5vw, 4.2rem); }
  .landing-v4 .hero-v3-proof { margin-top: 43px; gap: 7px; font-size: 9px; }
  .hero-v4-visual { min-height: 475px; }
  .hero-v4-story { min-height: 450px; }
  .hero-v4-story .experience-stage { height: 410px; }
  .hero-v4-story .node-structure { left: 3%; top: 23%; }.hero-v4-story .node-mechanism { left: 5%; bottom: 18%; }.hero-v4-story .node-clinical { right: 1%; top: 27%; }
  .hero-v4-phase-rail { left: 3%; right: 1%; }.hero-v4-phase-rail button { padding-right: 6px; grid-template-columns: 20px 1fr; column-gap: 4px; }.hero-v4-phase-rail strong { font-size: 10px; }.hero-v4-phase-rail small { font-size: 8px; }
  .hero-v4-caption { left: 3%; right: 1%; bottom: -28px; gap: 7px; }.hero-v4-caption strong { font-size: 10px; }.hero-v4-caption small { display: none; }
}

/* workspace v3: calmer canvas, stronger hierarchy */
.site-header.student + .step-nav { position: relative; z-index: 2; padding: 12px max(4.8vw, 26px) 14px; background: rgba(246,243,235,.92); box-shadow: 0 8px 26px rgba(16,28,35,.035); }
.site-header.student + .step-nav::before { content: ""; position: absolute; left: max(4.8vw, 26px); right: max(4.8vw, 26px); bottom: 0; height: 1px; background: linear-gradient(to right, var(--coral), rgba(220,216,204,.35) 38%, transparent); }
.site-header.student + .step-nav .step { position: relative; padding: 10px 13px; border-radius: 2px 12px 2px 12px; }
.site-header.student + .step-nav .step.current { background: rgba(242,118,92,.08); }
.site-header.student + .step-nav .step.current::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: -15px; height: 3px; background: var(--coral); }
.site-header.student + .step-nav .step-number { border-color: #c7c1b4; background: var(--paper-2); }
.site-header.student + .step-nav .step.current .step-number { border-color: var(--coral); color: var(--coral-dark); background: #fff4ee; }
.site-header.student + .step-nav .step > span:nth-child(2) strong { letter-spacing: -.02em; }
.workspace { position: relative; max-width: 1400px; padding-top: 70px; padding-bottom: 94px; }
.workspace::before { content: ""; position: absolute; top: 0; right: max(4vw, 25px); width: 260px; height: 260px; border: 1px solid rgba(47,117,100,.13); border-top: 0; border-right: 0; border-radius: 0 0 0 100%; pointer-events: none; }
.workspace .page-heading { position: relative; z-index: 1; max-width: 1120px; margin-bottom: 42px; }
.workspace .page-heading h1 { max-width: 800px; font-size: clamp(2.45rem, 4vw, 4.15rem); letter-spacing: -.085em; }
.workspace .page-heading p { max-width: 520px; font-size: 13px; line-height: 1.95; }
.question-layout { gap: 28px; grid-template-columns: minmax(0, 1fr) 286px; align-items: start; }
.question-layout > form { min-width: 0; }
.question-layout > form > .panel { position: relative; padding: clamp(28px, 4vw, 45px); border-radius: 2px 26px 2px 26px; background: rgba(255,253,248,.96); box-shadow: 16px 18px 0 rgba(242,118,92,.08), 0 20px 42px rgba(18,34,41,.07); }
.question-layout > form > .panel::before { content: "START HERE"; position: absolute; top: 26px; right: 36px; color: #b1aaa0; font-family: ui-monospace, monospace; font-size: 9px; letter-spacing: .17em; }
.question-layout .panel-heading { margin-bottom: 29px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.question-layout .panel-heading h2 { font-family: "Noto Serif SC", serif; font-size: 21px; font-weight: 600; }
.question-layout .mode-grid { gap: 9px; }
.question-layout .mode-card { min-height: 126px; padding: 15px 14px; border-radius: 2px 12px 2px 12px; background: #fbf8f0; }
.question-layout .mode-card.selected { background: #fff1eb; box-shadow: inset 0 -3px 0 var(--coral); }
.question-layout .mode-card:hover { transform: translateY(-3px); }
.question-layout .mode-icon { font-size: 19px; }
.question-layout textarea, .question-layout select { background: #fffefa; border-radius: 2px 10px 2px 10px; }
.question-layout .type-chip span { border-radius: 2px 999px 2px 999px; }
.study-aside { gap: 17px; }
.mentor-note { position: relative; padding: 26px 23px 24px; border-radius: 2px 23px 2px 23px; background: var(--navy); color: #eef5ef; box-shadow: 10px 12px 0 rgba(185,229,208,.28); }
.mentor-note .eyebrow { color: var(--mint); }
.mentor-note h2 { margin: 18px 0 16px; color: #f3f1e8; font-family: "Noto Serif SC", serif; font-size: 24px; font-weight: 500; line-height: 1.4; }
.mentor-note p { color: #a5bdb7; font-size: 11px; line-height: 1.85; }
.mentor-note small { color: #78918d; }
.suggestions { padding: 20px 19px; border: 1px solid var(--line); border-radius: 2px 17px 2px 17px; background: rgba(255,253,248,.6); }
.suggestions h3 { margin-bottom: 15px; font-family: "Noto Serif SC", serif; font-size: 15px; font-weight: 600; }
.suggestions button { padding: 14px 0; border-top: 1px solid var(--line); background: transparent; text-align: left; }
.suggestions button:hover { padding-left: 5px; }
.diagnosis-layout, .explore-layout, .practice-layout, .reflection-layout { gap: 28px; }
.diagnosis-layout > .panel, .explore-layout > .panel, .practice-layout > .panel, .reflection-layout > .panel { border-radius: 2px 22px 2px 22px; }
.knowledge-chain { gap: 7px; }
.knowledge-chain button { border-radius: 2px 13px 2px 13px; background: rgba(255,253,248,.84); }
.knowledge-chain button.active { box-shadow: inset 0 -3px 0 var(--coral); }
.step-footer { max-width: 1100px; margin-top: 38px; }

@media (max-width: 1160px) {
  .hero-v3 { gap: 44px; grid-template-columns: minmax(0, 1fr) minmax(390px, .82fr); }
  .pain-section { grid-template-columns: 110px minmax(0, 1fr); gap: 34px; }
  .pain-rail { grid-template-columns: repeat(5, minmax(125px, 1fr)); overflow-x: auto; }
  .pain-card { min-width: 145px; }
  .collaboration-section { gap: 42px; }
  .agent-card { min-height: 143px; }
}
@media (max-width: 920px) {
  .hero-v3 { min-height: auto; grid-template-columns: 1fr; padding-top: 75px; }
  .hero-v3-copy { max-width: 760px; }
  .hero-v3-console { max-width: 640px; width: 100%; }
  .v3-statement { grid-template-columns: 90px minmax(0, 1fr); }
  .statement-aside { grid-column: 2; margin-top: 0; }
  .chain-heading { grid-template-columns: 1fr; gap: 36px; }
  .chain-heading p { max-width: 520px; }
  .collaboration-section { grid-template-columns: 1fr; }
  .collab-intro p { max-width: 600px; }
  .loop-board { max-width: 620px; }
}
@media (max-width: 720px) {
  .hero-v3 { padding: 65px 20px 75px; }
  .hero-v3-copy h1 { font-size: clamp(2.75rem, 12.5vw, 4.3rem); }
  .hero-v3-copy h1 em { white-space: normal; }
  .hero-v3-lead { font-size: 13px; }
  .hero-v3-console { min-height: 450px; padding: 18px 17px; border-radius: 2px 24px 2px 24px; }
  .console-question { margin: 53px 0 42px; }.console-question strong { font-size: 1.65rem; }
  .console-agents { margin-top: 36px; }.console-agents small { display: none; }
  .console-foot { left: 17px; right: 17px; }.console-foot strong { font-size: 9px; }
  .v3-statement, .pain-section, .chain-section { padding-left: 20px; padding-right: 20px; }
  .v3-statement { padding-top: 83px; padding-bottom: 80px; grid-template-columns: 1fr; gap: 19px; }
  .statement-aside { grid-column: auto; margin-top: 0; }
  .v3-statement h2 { font-size: clamp(2rem, 9vw, 3.2rem); }
  .pain-section { display: block; padding-top: 78px; padding-bottom: 84px; }
  .section-rail { margin-bottom: 30px; }.pain-rail { margin: 0 -20px; padding: 0 20px; border-right: 0; border-left: 0; }
  .pain-card { min-width: 205px; min-height: 249px; }.pain-card h3 { margin-top: 54px; }
  .chain-section { padding-top: 82px; padding-bottom: 78px; }
  .chain-heading h2 { font-size: clamp(2rem, 9vw, 3.2rem); }
  .chain-track { margin-top: 48px; display: block; border-bottom: 0; }
  .chain-node, .chain-node:not(:first-child) { min-height: 105px; padding: 17px 38px 17px 0; border-right: 0; border-bottom: 1px solid rgba(16,28,35,.18); }
  .chain-node div { margin-top: 11px; }.chain-node i { right: 8px; top: 50%; transform: translateY(-50%) rotate(90deg); }.chain-node > b { right: 9px; bottom: 18px; }
  .chain-caption { display: block; }.chain-caption p { margin-top: 10px; font-size: 12px; line-height: 1.8; }
  .collaboration-section { padding: 83px 20px 82px; }
  .collab-intro h2 { font-size: clamp(2rem, 9vw, 3.2rem); }
  .loop-board { min-height: 390px; padding: 21px 14px 17px; border-radius: 2px 23px 2px 23px; }.loop-orbit { width: min(100%, 310px); }.orbit-signal { --orbit-radius: 130px; }.orbit-signal-two { --orbit-radius: 100px; }
  .loop-core { width: 112px; height: 112px; }.loop-core strong { font-size: 17px; }.loop-core small, .loop-core span { font-size: 8px; }
  .orbit-label { width: 49px; height: 49px; font-size: 12px; }.loop-note { margin-top: 15px; }.loop-note p { font-size: 10px; }
  .agent-grid { grid-template-columns: repeat(2, 1fr); }.agent-grid-head { display: block; padding: 14px; }.agent-grid-head strong { display: block; margin-top: 7px; }.agent-card { min-height: 125px; }
  .landing-final { display: block; padding: 66px 20px 72px; }.landing-final h2 { font-size: clamp(2rem, 9vw, 3.35rem); }.landing-final .button { display: inline-flex; margin-top: 25px; }
  .workspace { padding-top: 47px; }
  .workspace::before { right: 20px; width: 150px; height: 150px; }
  .question-layout, .diagnosis-layout, .explore-layout, .practice-layout, .reflection-layout { grid-template-columns: 1fr; }
  .question-layout > form, .question-layout > aside { min-width: 0; width: 100%; }
  .study-aside { display: block; }
  .question-layout > form > .panel { padding: 24px 18px; border-radius: 2px 20px 2px 20px; }
  .question-layout > form > .panel::before { top: 19px; right: 20px; }.question-layout .panel-heading { padding-right: 58px; }
}
@media (max-width: 420px) {
  .hero-v3-proof { gap: 7px; font-size: 9px; }.hero-v3-proof span { padding-bottom: 4px; }.hero-v3-actions { align-items: flex-start; flex-direction: column; gap: 17px; }
  .hero-v3-console { min-height: 433px; }.console-question strong { font-size: 1.48rem; }.route-node { grid-template-columns: 22px 1fr; column-gap: 5px; }.route-node b { width: 22px; height: 22px; font-size: 8px; }.route-node span { font-size: 10px; }.route-node small { font-size: 8px; }
  .console-agents > span { display: none; }.console-agents { justify-content: flex-start; }.console-foot { display: block; }.console-foot strong { display: block; margin-top: 4px; }
  .agent-grid { grid-template-columns: 1fr; }.agent-card { min-height: 93px; }
}

/* v5 final cascade: keep the brand rules last so legacy page experiments cannot override them */
.site-header.public .header-brand { display: flex; align-items: center; }
.site-header.public .brand { gap: 10px; color: var(--brand-ink); font-size: 18px; letter-spacing: .035em; }
.site-header.public .brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px 12px 12px 5px; background: var(--brand-blue); color: #fff; box-shadow: 0 7px 16px rgba(21, 80, 188, .18); }
.site-header.public .brand-mark .ui-icon { width: 22px; height: 22px; }
.site-header.public .brand-copy { display: flex; min-width: 0; flex-direction: column; }
.site-header.public .brand-copy small { color: #7a8492; opacity: 1; font-size: 8px; letter-spacing: .16em; }
.site-header.public .header-actions { gap: 14px; }
.site-header.public .header-login { color: #526176; }
.site-header.public .header-login:hover { color: var(--brand-blue); }
.site-header.public .button.small { border-color: var(--brand-blue); background: var(--brand-blue); color: #fff; }
.site-header.public .button.small:hover { background: #0e43a5; color: #fff; }

.site-header.student + .step-nav { position: relative; z-index: 2; padding: 13px max(4.8vw, 26px) 14px; border-color: var(--brand-line); background: rgba(247, 244, 238, .93); box-shadow: 0 8px 26px rgba(34, 55, 83, .035); }
.site-header.student + .step-nav::before { background: linear-gradient(to right, var(--brand-blue), rgba(21, 80, 188, .18) 42%, transparent); }
.site-header.student + .step-nav .step { padding: 10px 13px; border-radius: 10px; }
.site-header.student + .step-nav .step:hover { border-color: var(--brand-line); background: rgba(255, 253, 250, .8); }
.site-header.student + .step-nav .step.current { border-color: rgba(21, 80, 188, .2); background: rgba(21, 80, 188, .06); box-shadow: inset 3px 0 0 var(--brand-blue); }
.site-header.student + .step-nav .step.current::after { background: var(--brand-blue); }
.site-header.student + .step-nav .step-number { border-color: #cfd6df; background: transparent; color: #718096; }
.site-header.student + .step-nav .step.current .step-number { border-color: var(--brand-blue); background: var(--brand-blue); color: #fff; }
.site-header.student + .step-nav .step.done .step-number { border-color: rgba(24, 123, 104, .3); background: #dff1eb; color: var(--brand-green); }
.site-header.student + .step-nav .step-arrow { width: 16px; height: 16px; margin-left: auto; color: #aab3c0; }
.site-header.student + .step-nav .step-number .ui-icon { width: 14px; height: 14px; }

.workspace { position: relative; max-width: 1420px; min-height: calc(100vh - 232px); padding-top: 66px; padding-bottom: 92px; }
.workspace::before { display: none; }
.workspace .page-heading { max-width: 1160px; margin-bottom: 40px; }
.workspace .page-heading h1 { color: var(--brand-ink); font-size: clamp(2.35rem, 4vw, 4rem); letter-spacing: -.075em; }
.workspace .page-heading p { color: var(--brand-muted); max-width: 590px; line-height: 1.9; }
.workspace .page-heading .eyebrow { color: var(--brand-blue); }
.workspace .heading-stamp { color: #7b8798; }
.workspace .heading-stamp b { color: var(--brand-coral); }
.workspace .heading-stamp .ui-icon { width: 35px; height: 35px; }
.question-layout > form > .panel { padding: clamp(28px, 4vw, 46px); border: 1px solid var(--brand-line); border-radius: 18px; background: rgba(255, 253, 250, .92); box-shadow: 0 20px 50px rgba(33, 52, 82, .08); }
.question-layout > form > .panel::before { content: "BEGIN WITH YOUR QUESTION"; top: 28px; right: 38px; color: #9aa4b2; letter-spacing: .14em; }
.question-layout .panel-heading { margin-bottom: 27px; padding-bottom: 18px; border-color: var(--brand-line); }
.question-layout .panel-heading h2 { font-family: "Noto Serif SC", serif; font-size: 21px; font-weight: 600; }
.question-layout .mode-card { min-height: 132px; padding: 17px 15px; border: 1px solid #e1e5ea; border-radius: 12px; background: #fbfaf7; }
.question-layout .mode-card:hover { border-color: rgba(21, 80, 188, .34); background: #fff; transform: translateY(-2px); }
.question-layout .mode-card.selected { border-color: rgba(21, 80, 188, .42); background: #f1f5fb; box-shadow: inset 0 -3px 0 var(--brand-blue); }
.question-layout .mode-icon { width: 30px; height: 30px; display: grid; place-items: center; margin-bottom: 10px; border-radius: 9px; background: var(--brand-mist); color: var(--brand-blue); font-size: 0; }
.question-layout .mode-icon .ui-icon { width: 17px; height: 17px; }
.question-layout .mode-card strong { color: var(--brand-ink); }
.question-layout .mode-card small { color: var(--brand-muted); }
.question-layout > form > .panel input[type="text"], .question-layout > form > .panel textarea, .question-layout > form > .panel select { border-color: #d3dae4; border-radius: 10px; background: #fff; color: var(--brand-ink); }
.question-layout > form > .panel input:focus, .question-layout > form > .panel textarea:focus, .question-layout > form > .panel select:focus { border-color: var(--brand-blue); box-shadow: 0 0 0 4px rgba(21, 80, 188, .1); }
.question-layout .type-chip span { border-color: #d7dee7; border-radius: 999px; background: #fff; color: #647187; }
.question-layout .type-chip input:checked + span { border-color: rgba(21, 80, 188, .35); background: var(--brand-mist); color: var(--brand-blue); }
.question-layout .materials { border-color: var(--brand-line); background: #fbfaf7; }
.question-layout .materials summary { color: var(--brand-blue); }
.question-layout .materials summary .ui-icon { width: 15px; height: 15px; }
.question-layout .upload-box { border-color: #cfd8e4; background: #fff; color: var(--brand-muted); }
.attachment-icon { color: var(--brand-blue); }
.mentor-note { border-radius: 16px; background: var(--brand-blue-deep); color: #f4f7fb; box-shadow: 10px 12px 0 rgba(21, 80, 188, .09); }
.mentor-note .eyebrow { color: #aec7ee; }
.mentor-note h2 { color: #fff; }
.mentor-note p { color: #cfdbed; }
.mentor-note small { color: #a2b7d4; }
.note-symbol { color: var(--brand-coral); }
.note-symbol .ui-icon { width: 30px; height: 30px; }
.suggestions { border-color: var(--brand-line); border-radius: 16px; background: rgba(255, 253, 250, .7); }
.suggestions h3 { color: var(--brand-ink); }
.suggestions button { border-color: var(--brand-line); }
.suggestions button strong { color: var(--brand-ink); }
.suggestions button > span { display: inline-flex; align-items: center; gap: 3px; color: var(--brand-blue); }
.suggestions button .ui-icon { width: 13px; height: 13px; }

.step-footer { max-width: 1160px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--brand-line); }
.step-footer > span { color: #8a95a4; font-size: 11px; }
.step-footer .plain-link, .step-footer .button { display: inline-flex; align-items: center; gap: 8px; }
.workspace .button { background: var(--brand-blue); color: #fff; box-shadow: 0 10px 24px rgba(21, 80, 188, .18); }
.workspace .button:hover { background: #0e43a5; color: #fff; }
.workspace .plain-link { color: #53627a; }
.workspace .plain-link:hover { color: var(--brand-blue); }
.workspace .button .ui-icon, .workspace .plain-link .ui-icon { width: 16px; height: 16px; }

/* auth is part of the product, not a default framework screen */
.auth-layout { min-height: calc(100vh - 76px); padding: clamp(45px, 7vw, 90px) max(7vw, 28px); grid-template-columns: minmax(0, 1fr) minmax(360px, 470px); gap: clamp(45px, 9vw, 140px); color: var(--brand-ink); background: var(--brand-paper); }
.auth-story { padding: 18px 0 18px 4vw; color: var(--brand-ink); }
.auth-story::before { border-color: rgba(21, 80, 188, .16); box-shadow: 0 0 0 28px rgba(21, 80, 188, .035), 0 0 0 62px rgba(21, 80, 188, .02); }
.auth-story .eyebrow { color: var(--brand-blue); }
.auth-story h1 { color: var(--brand-ink); font-family: "Noto Serif SC", serif; font-weight: 500; letter-spacing: -.08em; }
.auth-story h1 span { color: var(--brand-blue); }
.auth-story > p { color: var(--brand-muted); }
.auth-story > small { color: #8b96a5; }
.auth-illustration { min-height: 100px; display: flex; align-items: center; gap: 14px; margin: 38px 0 25px; color: var(--brand-blue); }
.auth-illustration > span { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 16px; background: #e9f0fb; }
.auth-illustration > span .ui-icon { width: 27px; height: 27px; }
.auth-illustration > i { color: var(--brand-coral); font-style: normal; }
.auth-illustration > i .ui-icon { width: 24px; height: 24px; }
.auth-panel { padding: 36px 38px; border: 1px solid var(--brand-line); border-radius: 18px; background: rgba(255, 253, 250, .92); box-shadow: 0 20px 55px rgba(33, 52, 82, .08); }
.auth-box .eyebrow { color: var(--brand-blue); }
.auth-box h2 { color: var(--brand-ink); font-family: "Noto Serif SC", serif; font-size: 28px; font-weight: 600; }
.auth-box .muted { color: var(--brand-muted); }
.auth-box label { color: var(--brand-ink); }
.auth-box input { border-color: #d3dae4; border-radius: 10px; background: #fff; color: var(--brand-ink); }
.auth-box input:focus { border-color: var(--brand-blue); box-shadow: 0 0 0 4px rgba(21, 80, 188, .1); }
.auth-box .text-button { color: var(--brand-blue); }
.auth-box .button { background: var(--brand-blue); color: #fff; box-shadow: 0 10px 24px rgba(21, 80, 188, .18); }
.auth-box .button:hover { background: #0e43a5; }
.auth-switch { color: var(--brand-muted); }
.auth-switch a { color: var(--brand-blue); }
.auth-footnote { color: #8b96a5; }
.auth-admin .auth-story h1 span { color: var(--brand-coral); }

@media (max-width: 980px) {
  .diagnosis-v5-grid, .admin-overview-grid { grid-template-columns: 1fr; }
  .diagnosis-plan { order: -1; }
}
@media (max-width: 820px) {
  .site-header.student .header-context, .site-header.admin .header-context { display: none; }
  .site-header.student .main-nav, .site-header.admin .main-nav { display: none; }
  .question-layout { grid-template-columns: 1fr; }
  .diagnosis-plan { order: 0; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { padding: 22px 20px 18px; border-right: 0; border-bottom: 1px solid var(--brand-line); }
  .admin-sidebar nav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
  .admin-sidebar nav a { min-width: 104px; }
  .admin-side-note, .admin-student-link { display: none; }
  .admin-main { padding: 36px 20px 58px; }
  .auth-layout { min-height: calc(100vh - 70px); padding: 45px 22px 65px; grid-template-columns: 1fr; gap: 30px; }
  .auth-story { padding: 0; }
}
@media (max-width: 620px) {
  .site-header.public .brand, .site-header.student .brand, .site-header.admin .brand { font-size: 16px; }
  .site-header.public .brand-mark, .site-header.student .brand-mark, .site-header.admin .brand-mark { width: 34px; height: 34px; }
  .site-header.public .header-login { display: none; }
  .workspace { padding: 43px 20px 65px; }
  .workspace .page-heading { display: block; margin-bottom: 28px; }
  .workspace .page-heading h1 { font-size: 2.45rem; }
  .heading-stamp { margin-top: 17px; padding-right: 44px; text-align: left; }
  .heading-stamp b { left: 128px; right: auto; }
  .diagnosis-report, .diagnosis-plan { padding: 22px 18px; }
  .diagnosis-finding { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; }
  .finding-status { grid-column: 2; padding-top: 0; }
  .diagnosis-chain-track { display: grid; gap: 7px; }
  .diagnosis-chain-node { padding-right: 25px; }
  .admin-page-heading { display: block; }
  .admin-heading-actions { margin-top: 18px; }
  .admin-heading-actions .button { width: 100%; }
  .admin-status-strip { grid-template-columns: 1fr; }
  .admin-panel { padding: 20px 16px; }
  .admin-table { min-width: 610px; }
  .step-footer { align-items: stretch; flex-direction: column; }
  .step-footer .button { width: 100%; }
  .auth-panel { padding: 30px 23px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
