:root {
  color-scheme: light;
  --ink: #111111;
  --ink-soft: #262626;
  --paper: #f7f7f5;
  --white: #ffffff;
  --line: #ddddda;
  --muted: #73736d;
  --yellow: #f6c445;
  --yellow-soft: #fff3c8;
  --green: #26745b;
  --red: #c6453d;
  --shadow: 0 24px 70px rgba(17, 17, 17, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
button, input { font: inherit; }
button { color: inherit; }
.hidden { display: none !important; }

.shell { min-height: 100vh; }
.site-header {
  height: 82px;
  padding: 0 clamp(20px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(17,17,17,.1);
  background: rgba(247,247,245,.9);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand-mark {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
  background: var(--white);
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.45);
  transform-origin: center;
}
.brand-copy { display: grid; line-height: 1.1; }
.brand-copy strong { font-size: 1rem; letter-spacing: .08em; }
.brand-copy small { color: var(--muted); font-size: .75rem; margin-top: 4px; }
.header-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; margin-right: 24px; }
.header-nav button { border: 0; background: transparent; padding: 9px 12px; color: #55554f; font-size: .82rem; font-weight: 750; cursor: pointer; }
.header-nav button:hover { color: var(--ink); background: #ecece8; }
.header-nav button:disabled { opacity: .45; cursor: not-allowed; }

.view { min-height: calc(100vh - 82px); }
.intro-view {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(360px, .84fr);
  gap: clamp(34px, 6vw, 90px);
  align-items: center;
  padding: clamp(52px, 8vw, 110px) clamp(20px, 7vw, 110px);
  max-width: 1500px;
  margin: 0 auto;
}
.eyebrow, .section-heading > p {
  margin: 0 0 18px;
  font-size: .76rem;
  letter-spacing: .18em;
  font-weight: 800;
  color: #5e5e58;
}
.intro-copy h1 {
  margin: 0;
  max-width: 800px;
  font-size: clamp(2.7rem, 5.5vw, 5.8rem);
  letter-spacing: -.06em;
  line-height: 1.02;
  font-weight: 850;
}
.intro-copy h1 span { position: relative; display: inline-block; }
.mobile-break { display: none; }
.intro-copy h1 span::after {
  content: "";
  position: absolute;
  left: 2%; right: -2%; bottom: .08em;
  height: .18em;
  background: var(--yellow);
  z-index: -1;
}
.lead { max-width: 680px; margin: 28px 0 0; color: #55554f; font-size: 1.08rem; }
.lead strong { color: var(--ink); }
.intro-actions { display: flex; align-items: center; gap: 22px; margin-top: 36px; flex-wrap: wrap; }
.primary-button, .secondary-button, .utility-button, .text-button, .icon-button {
  border: 0;
  cursor: pointer;
  border-radius: 4px;
  font-weight: 750;
}
.primary-button {
  min-height: 54px;
  padding: 0 24px;
  background: var(--ink);
  color: var(--white);
  box-shadow: 6px 6px 0 var(--yellow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.primary-button:hover { transform: translate(-2px,-2px); box-shadow: 9px 9px 0 var(--yellow); }
.primary-button:focus-visible, .secondary-button:focus-visible, .text-button:focus-visible, .utility-button:focus-visible, .option-card input:focus-visible + span { outline: 3px solid rgba(246,196,69,.65); outline-offset: 3px; }
.text-button { padding: 9px 0; background: transparent; border-bottom: 1px solid var(--ink); border-radius: 0; }
.trust-row { display: flex; gap: clamp(24px, 5vw, 68px); margin-top: 70px; }
.trust-row div { display: grid; }
.trust-row strong { font-size: 1.35rem; }
.trust-row span { color: var(--muted); font-size: .82rem; }

.ai-card {
  background: var(--ink);
  color: var(--white);
  min-height: 610px;
  padding: clamp(28px, 4vw, 50px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.orbit-visual { height: 300px; position: relative; display: grid; place-items: center; }
.orbit { position: absolute; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; transform: rotate(-10deg); }
.orbit-one { width: 90%; height: 38%; }
.orbit-two { width: 64%; height: 64%; border-color: rgba(246,196,69,.48); transform: rotate(28deg); }
.core {
  width: 158px;
  height: 158px;
  background: var(--white);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 0 80px rgba(246,196,69,.18);
}
.core img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.28); }
.status-line { color: #d7d7d2; font-size: .78rem; font-weight: 700; letter-spacing: .08em; }
.status-line i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); margin-right: 8px; box-shadow: 0 0 0 5px rgba(246,196,69,.12); }
.ai-card h2 { margin: 16px 0 0; font-size: clamp(2rem, 3vw, 3rem); letter-spacing: -.04em; }
.ai-card-copy > p { margin: 2px 0 28px; color: #aaa9a2; }
.ai-card dl { margin: 0; border-top: 1px solid #373737; }
.ai-card dl div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid #373737; font-size: .88rem; }
.ai-card dt { color: #8e8e88; }
.ai-card dd { margin: 0; text-align: right; font-weight: 650; }

.profile-view {
  display: grid;
  grid-template-columns: minmax(320px, .72fr) minmax(520px, 1.28fr);
  background: var(--white);
}
.profile-intro {
  background: var(--ink);
  color: var(--white);
  padding: clamp(46px, 7vw, 90px) clamp(28px, 5vw, 72px);
  min-height: calc(100vh - 82px);
  position: sticky;
  top: 82px;
  align-self: start;
}
.profile-intro .eyebrow { color: var(--yellow); }
.profile-intro h1 { margin: 0; font-size: clamp(2.35rem, 4.2vw, 4.5rem); line-height: 1.07; letter-spacing: -.055em; }
.profile-intro > p:not(.eyebrow) { margin: 26px 0 0; max-width: 560px; color: #b9b9b3; }
.profile-context { margin-top: 54px; border-top: 1px solid #393939; }
.profile-context div { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px 0; border-bottom: 1px solid #393939; }
.profile-context span { color: #8f8f89; font-size: .82rem; }
.profile-context strong { text-align: right; font-size: .92rem; }
.profile-form { padding: clamp(38px, 6vw, 80px) clamp(22px, 6vw, 86px) 70px; max-width: 950px; width: 100%; }
.profile-topline { display: flex; justify-content: space-between; align-items: center; padding-bottom: 18px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.profile-topline span { font-weight: 850; font-size: 1.2rem; }
.profile-topline small { color: var(--muted); }
.intake-fields { margin-bottom: 34px; padding: 26px; background: #f6f6f3; border-top: 4px solid var(--ink); }
.intake-title { display: grid; gap: 5px; margin-bottom: 20px; }
.intake-title b { color: #8a6b13; font-size: .7rem; letter-spacing: .1em; }
.intake-title span { font-size: 1rem; font-weight: 750; }
.intake-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.intake-grid label { display: grid; gap: 7px; }
.intake-grid label.full { grid-column: 1 / -1; }
.intake-grid label > span { color: #4d4d48; font-size: .78rem; font-weight: 700; }
.intake-grid label em { color: #9a6a00; font-size: .67rem; font-style: normal; }
.intake-grid input { width: 100%; min-height: 48px; border: 1px solid #cecec8; background: white; padding: 0 13px; font: inherit; font-size: .88rem; }
.intake-grid input:focus { outline: 3px solid rgba(246,196,69,.28); border-color: #9d7b24; }
.intake-fields > p { margin: 13px 0 0; color: var(--muted); font-size: .73rem; }
.survey-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.privacy-consent { display: grid; grid-template-columns: 22px 1fr; gap: 11px; align-items: start; margin: 12px 0 4px; padding: 18px; background: #fffbec; border: 1px solid #eadcae; cursor: pointer; }
.privacy-consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); }
.privacy-consent span { color: #68635a; font-size: .76rem; line-height: 1.65; }
.privacy-consent strong { display: block; color: var(--ink); font-size: .82rem; }
.profile-question { border: 0; padding: 0 0 30px; margin: 0 0 30px; border-bottom: 1px solid var(--line); }
.profile-question legend { width: 100%; font-size: 1.04rem; font-weight: 750; margin-bottom: 16px; }
.profile-question legend b { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 8px; background: var(--yellow); font-size: .7rem; }
.profile-option-grid { display: grid; gap: 9px; }
.profile-option-grid.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.profile-option-grid.three-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.profile-option-grid label { position: relative; cursor: pointer; }
.profile-option-grid input { position: absolute; opacity: 0; pointer-events: none; }
.profile-option-grid span { display: grid; place-items: center; min-height: 52px; padding: 9px 12px; border: 1px solid #d6d6d1; background: #fbfbf9; text-align: center; font-size: .87rem; font-weight: 650; transition: .16s ease; }
.profile-option-grid label:hover span { border-color: #92928b; }
.profile-option-grid input:checked + span { color: var(--white); background: var(--ink); border-color: var(--ink); box-shadow: inset 0 -4px 0 var(--yellow); }
.profile-option-grid input:focus-visible + span { outline: 3px solid rgba(246,196,69,.65); outline-offset: 3px; }

.diagnosis-view { display: grid; grid-template-columns: 320px 1fr; background: var(--white); }
.step-rail { background: var(--ink); color: var(--white); padding: 42px 34px; min-height: calc(100vh - 82px); display: flex; flex-direction: column; }
.rail-heading p { color: var(--yellow); letter-spacing: .14em; font-size: .72rem; font-weight: 800; margin: 0 0 14px; }
.rail-heading h2 { font-size: 1.75rem; margin: 0; letter-spacing: -.03em; }
.rail-heading span { color: #969690; font-size: .85rem; }
#stepNav { margin: 44px 0; display: grid; gap: 7px; }
.step-item { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center; color: #85857f; padding: 9px 0; font-size: .88rem; }
.step-item b { font-size: .72rem; font-weight: 700; }
.step-item.active { color: var(--white); }
.step-item.active b { color: var(--yellow); }
.step-item.complete::after { content: "✓"; color: var(--yellow); font-weight: 900; }
.rail-note { margin-top: auto; border: 1px solid #373737; padding: 18px; }
.rail-note span { color: var(--yellow); font-size: .68rem; font-weight: 850; letter-spacing: .14em; }
.rail-note p { margin: 8px 0 0; color: #c7c7c1; font-size: .84rem; }

.question-workspace { padding: 0 clamp(24px, 7vw, 100px) 60px; max-width: 1100px; width: 100%; margin: 0 auto; }
.workspace-topbar { height: 90px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.icon-button { width: 40px; height: 40px; background: transparent; font-size: 1.7rem; color: var(--muted); }
.progress-copy { width: min(360px, 45%); display: flex; align-items: center; gap: 14px; }
.progress-copy > span { font-size: .76rem; font-weight: 850; white-space: nowrap; }
.progress-track { height: 5px; background: #e7e7e3; flex: 1; overflow: hidden; }
.progress-track span { display: block; height: 100%; width: 12.5%; background: var(--yellow); transition: width .3s ease; }
.utility-button { background: var(--yellow-soft); padding: 10px 14px; font-size: .8rem; }
.section-heading { margin: clamp(46px, 8vw, 82px) 0 36px; }
.section-heading h1 { font-size: clamp(2.15rem, 4vw, 3.7rem); letter-spacing: -.05em; margin: 0; line-height: 1.1; }
.section-heading > p:last-child { margin: 14px 0 0; color: var(--muted); max-width: 680px; }
.question-list { display: grid; gap: 18px; }
.question-card { border: 1px solid var(--line); padding: 26px; background: #fcfcfb; }
.question-card fieldset { border: 0; padding: 0; margin: 0; }
.question-card legend { font-size: 1.02rem; font-weight: 750; margin-bottom: 18px; width: 100%; }
.question-number { color: #989890; font-size: .72rem; letter-spacing: .08em; display: block; margin-bottom: 7px; }
.option-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.option-card { position: relative; cursor: pointer; }
.option-card input { position: absolute; opacity: 0; pointer-events: none; }
.option-card span { display: grid; place-items: center; min-height: 48px; padding: 8px; border: 1px solid #d6d6d1; background: var(--white); font-size: .82rem; font-weight: 650; text-align: center; transition: .16s ease; }
.option-card:hover span { border-color: #9a9a93; }
.option-card input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--white); box-shadow: inset 0 -4px 0 var(--yellow); }
.form-error { min-height: 24px; margin: 16px 0 0; color: var(--red); font-size: .86rem; font-weight: 650; }
.form-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; }
.secondary-button { min-height: 50px; padding: 0 22px; border: 1px solid var(--line); background: var(--white); }
.secondary-button:disabled { opacity: .35; cursor: default; }

.result-view { background: #ecece8; padding-bottom: 50px; }
.result-hero { background: var(--ink); color: var(--white); padding: 34px clamp(20px, 7vw, 110px) 48px; }
.result-brandline { display: flex; justify-content: space-between; align-items: center; color: #a8a8a2; font-size: .78rem; border-bottom: 1px solid #353535; padding-bottom: 18px; }
.result-brandline div span { color: var(--white); font-weight: 850; letter-spacing: .1em; margin-right: 8px; }
.result-summary { display: grid; grid-template-columns: 1fr 190px; gap: 60px; align-items: center; margin: 52px 0 38px; }
.result-summary h1 { margin: 0; font-size: clamp(2.3rem, 5vw, 4.8rem); letter-spacing: -.055em; }
.result-message { margin: 14px 0 0; color: #b8b8b2; max-width: 680px; font-size: 1.05rem; }
.score-ring { width: 170px; height: 170px; position: relative; }
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-ring circle { fill: none; stroke-width: 10; }
.score-bg { stroke: #323232; }
.score-value { stroke: var(--yellow); stroke-linecap: square; stroke-dasharray: 408.4; stroke-dashoffset: 408.4; transition: stroke-dashoffset 1s ease; }
.score-ring > div { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.score-ring strong { font-size: 3.2rem; line-height: 1; }
.score-ring span { color: #8f8f89; margin: 1.5rem 0 0 4px; font-size: .85rem; line-height: 1; }
.review-banner { display: grid; grid-template-columns: 42px 1fr auto; gap: 16px; align-items: center; background: #222; border: 1px solid #373737; padding: 18px 20px; }
.review-icon { width: 38px; height: 38px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: grid; place-items: center; font-weight: 950; font-style: italic; }
.review-banner strong { font-size: .95rem; }
.review-banner p { margin: 2px 0 0; color: #9c9c96; font-size: .82rem; }
.review-status { color: var(--yellow); font-weight: 800; font-size: .8rem; }

.result-grid { max-width: 1280px; margin: 28px auto; padding: 0 24px; display: grid; grid-template-columns: 1.3fr .7fr; gap: 20px; }
.result-panel { background: var(--white); padding: 28px; min-width: 0; }
.wide-panel { grid-column: 1 / -1; }
.panel-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.panel-title > div { display: flex; align-items: center; gap: 12px; }
.panel-title span { color: #a0a099; font-size: .72rem; font-weight: 800; }
.panel-title h2 { margin: 0; font-size: 1.15rem; letter-spacing: -.025em; }
.panel-title small { color: var(--muted); }
.bar-chart { display: grid; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 45px; align-items: center; gap: 12px; font-size: .82rem; }
.bar-row > span:first-child { color: #53534e; }
.bar-track { height: 9px; background: #ecece8; overflow: hidden; }
.bar-track i { display: block; height: 100%; background: var(--ink); border-right: 5px solid var(--yellow); transition: width .7s ease; }
.bar-row strong { text-align: right; }
.risk-list { display: grid; gap: 10px; }
.profile-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.profile-summary div { min-height: 88px; padding: 16px; background: #f6f6f3; border-top: 3px solid var(--yellow); display: grid; align-content: space-between; gap: 6px; }
.profile-summary span { color: var(--muted); font-size: .74rem; }
.profile-summary strong { font-size: .9rem; line-height: 1.35; }
.risk-item { padding: 14px; background: #f6f6f3; border-left: 4px solid var(--yellow); }
.risk-item.critical { border-color: var(--red); background: #fff5f3; }
.risk-item strong { display: block; font-size: .88rem; }
.risk-item span { color: var(--muted); font-size: .78rem; }
.action-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: actions; }
.action-list li { counter-increment: actions; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.action-list li::before { content: counter(actions, decimal-leading-zero); font-size: .72rem; font-weight: 850; color: #8e8e87; padding-top: 2px; }
.process-list { display: grid; gap: 20px; margin-bottom: 26px; }
.process-list > div { display: grid; grid-template-columns: 34px 1fr; gap: 12px; position: relative; }
.process-list > div:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 34px; width: 1px; height: 22px; background: #d4d4cf; }
.process-list b { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #c8c8c2; border-radius: 50%; font-size: .75rem; }
.process-list .done b { background: var(--ink); color: var(--white); border-color: var(--ink); }
.process-list .active b { background: var(--yellow); border-color: var(--yellow); }
.process-list span { display: grid; }
.process-list small { color: var(--muted); font-size: .76rem; }
.wide { width: calc(100% - 6px); }
.request-notice { margin: 16px 0 0; color: var(--green); font-size: .82rem; font-weight: 700; text-align: center; min-height: 20px; }
.result-footer { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--muted); font-size: .82rem; }

.commercial-login-view { display: grid; grid-template-columns: minmax(360px, 1fr) minmax(420px, 1fr); background: var(--white); }
.login-brand-panel { background: var(--ink); color: var(--white); min-height: calc(100vh - 82px); padding: clamp(54px, 7vw, 100px); display: flex; flex-direction: column; justify-content: center; }
.login-brand-panel .eyebrow { color: var(--yellow); }
.login-brand-panel h1 { margin: 0; font-size: clamp(3rem, 5vw, 5.7rem); line-height: 1.02; letter-spacing: -.06em; }
.login-brand-panel > p:not(.eyebrow) { max-width: 580px; color: #aaa9a4; margin: 28px 0 46px; }
.login-feature-list { display: grid; border-top: 1px solid #363636; }
.login-feature-list > div { display: grid; grid-template-columns: 38px 1fr; gap: 14px; padding: 17px 0; border-bottom: 1px solid #363636; }
.login-feature-list b { color: var(--yellow); font-size: .72rem; }
.login-feature-list span { display: grid; }
.login-feature-list small { color: #8e8e88; margin-top: 2px; }
.login-card-wrap { display: grid; place-items: center; padding: 40px; background: #f2f2ef; }
.login-card { width: min(480px, 100%); background: var(--white); padding: clamp(28px, 5vw, 48px); box-shadow: var(--shadow); }
.interface-badge { display: inline-flex; padding: 7px 9px; background: var(--yellow-soft); color: #6a5111; font-size: .68rem; font-weight: 850; letter-spacing: .12em; }
.login-card h2 { margin: 24px 0 8px; font-size: 1.8rem; letter-spacing: -.04em; }
.login-card > p { margin: 0 0 26px; color: var(--muted); font-size: .88rem; }
.social-login-stack { display: grid; gap: 10px; }
.social-login { min-height: 54px; border: 0; padding: 0 16px; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; text-align: left; font-weight: 750; cursor: pointer; }
.social-login:disabled { opacity: .58; cursor: not-allowed; }
.social-login b { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font-size: .78rem; }
.social-login small { font-size: .68rem; opacity: .65; }
.kakao-login { background: #fee500; color: #191919; }
.kakao-login b { background: #191919; color: #fee500; }
.naver-login { background: #03c75a; color: white; }
.naver-login b { background: white; color: #03a94d; }
.email-login { background: #f3f3f0; border: 1px solid #d9d9d5; }
.email-login b { background: var(--ink); color: white; }
.login-divider { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; margin: 24px 0; color: #999992; font-size: .72rem; }
.login-divider::before, .login-divider::after { content: ""; height: 1px; background: var(--line); }
.login-status { min-height: 22px; margin: 18px 0 0 !important; color: var(--green) !important; text-align: center; font-weight: 700; }
.login-terms { display: block; margin-top: 18px; color: #999992; text-align: center; font-size: .7rem; }
.access-code-form { display: grid; gap: 10px; margin: 16px 0; }
.access-code-form label { font-size: .78rem; font-weight: 750; }
.access-code-form input, .access-code-form select { width: 100%; min-height: 50px; border: 1px solid #d7d7d1; border-radius: 0; background: var(--white); padding: 0 14px; font: inherit; }
#memberAccessCode { text-transform: uppercase; letter-spacing: .08em; }
.access-code-form input:focus, .access-code-form select:focus { outline: 2px solid var(--yellow); outline-offset: 1px; }
.staff-access-link { display: block; margin: 16px auto 0; }
.staff-access-panel { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 4px; }
.staff-access-panel h3 { margin: 0 0 14px; font-size: 1.05rem; }
.issued-code-notice { display: grid; gap: 10px; background: var(--ink); color: var(--white); padding: 16px; margin: 18px 0; }
.issued-code-notice > span { color: #b9b9b2; font-size: .72rem; }
.issued-code-notice > strong { color: var(--yellow); font-size: .88rem; letter-spacing: .06em; overflow-wrap: anywhere; }
.access-code-list-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 24px 0 10px; }
.access-code-list-heading h4 { margin: 0; }
.access-code-list-wrap { max-height: 280px; overflow: auto; border-top: 1px solid var(--line); }
.access-code-table { width: 100%; border-collapse: collapse; font-size: .78rem; text-align: left; }
.access-code-table th, .access-code-table td { padding: 10px 6px; border-bottom: 1px solid var(--line); }
.access-code-table th { color: var(--muted); font-size: .7rem; }
.access-code-table button { border: 0; background: transparent; color: #a13a2e; font: inherit; font-weight: 750; text-decoration: underline; cursor: pointer; }
.access-code-revoked { color: #777770; font-weight: 700; }

.portal-view { display: grid; grid-template-columns: 270px 1fr; background: #efefeb; min-height: calc(100vh - 82px); }
.portal-sidebar { position: sticky; top: 82px; align-self: start; height: calc(100vh - 82px); background: var(--ink); color: var(--white); padding: 28px 20px; display: flex; flex-direction: column; }
.portal-academy { display: flex; align-items: center; gap: 12px; padding: 0 8px 26px; border-bottom: 1px solid #343434; }
.academy-avatar { width: 42px; height: 42px; display: grid; place-items: center; background: var(--yellow); color: var(--ink); font-weight: 900; }
.portal-academy div { display: grid; }
.portal-academy small { color: #8c8c86; margin-top: 2px; }
.portal-nav { display: grid; gap: 5px; margin-top: 24px; }
.portal-nav button { min-height: 46px; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 7px; border: 0; background: transparent; color: #aaa9a3; text-align: left; padding: 0 12px; cursor: pointer; font-size: .86rem; font-weight: 650; }
.portal-nav button span { font-size: .66rem; color: #666660; }
.portal-nav button i { min-width: 24px; border-radius: 999px; padding: 2px 7px; background: #353535; text-align: center; font-size: .66rem; font-style: normal; }
.portal-nav button:hover, .portal-nav button.active { background: #242424; color: var(--white); }
.portal-nav button.active { box-shadow: inset 3px 0 0 var(--yellow); }
.portal-nav button.active span { color: var(--yellow); }
.portal-help { margin-top: auto; padding: 16px; border: 1px solid #373737; }
.portal-help > span { color: var(--yellow); font-size: .65rem; font-weight: 850; letter-spacing: .12em; }
.portal-help strong { display: block; margin-top: 8px; font-size: .86rem; }
.portal-help p { margin: 4px 0 0; color: #8e8e88; font-size: .75rem; }
.portal-logout { margin-top: 12px; border: 0; background: transparent; color: #777772; text-align: left; padding: 9px 4px; cursor: pointer; font-size: .76rem; }
.portal-main { min-width: 0; }
.portal-topbar { height: 78px; background: var(--white); border-bottom: 1px solid var(--line); padding: 0 clamp(20px, 4vw, 54px); display: flex; justify-content: space-between; align-items: center; }
.portal-topbar > div:first-child { display: grid; }
.portal-topbar span { color: var(--muted); font-size: .7rem; }
.portal-topbar strong { font-size: .98rem; }
.portal-user { display: flex; align-items: center; gap: 10px; }
.portal-user b { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); font-style: italic; }
.portal-panel { padding: clamp(28px, 5vw, 58px); max-width: 1450px; width: 100%; margin: 0 auto; }
.portal-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 34px; }
.portal-heading p { margin: 0 0 12px; color: #74746e; font-size: .7rem; letter-spacing: .16em; font-weight: 850; }
.portal-heading h1 { margin: 0; font-size: clamp(2.3rem, 4vw, 4.2rem); line-height: 1.06; letter-spacing: -.055em; }
.portal-heading > div > span { display: block; margin-top: 10px; color: var(--muted); }
.compact-heading { align-items: start; }
.compact-heading h1 { font-size: clamp(2.2rem, 3.6vw, 3.7rem); }
.dashboard-metrics { display: grid; grid-template-columns: 1.25fr .75fr .75fr; gap: 16px; }
.readiness-card, .metric-card { min-height: 210px; padding: 24px; background: var(--white); border-top: 4px solid var(--ink); }
.readiness-card { background: var(--ink); color: var(--white); border-color: var(--yellow); }
.readiness-card > div:first-child { display: flex; justify-content: space-between; color: #a9a9a3; }
.readiness-card > strong, .metric-card > strong { display: block; margin-top: 24px; font-size: 3.2rem; line-height: 1; }
.readiness-card em, .metric-card em { font-size: .9rem; color: #8c8c86; font-style: normal; margin-left: 5px; }
.mini-progress { height: 7px; background: #333; margin: 22px 0 14px; }
.mini-progress i { display: block; height: 100%; background: var(--yellow); }
.readiness-card p, .metric-card p { margin: 0; color: #9a9a94; font-size: .8rem; }
.metric-card span { color: var(--muted); font-size: .78rem; }
.metric-card p { margin-top: 36px; }
.dashboard-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; margin-top: 16px; }
.portal-card { background: var(--white); padding: 26px; }
.portal-card-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.portal-card-title h2 { margin: 0; font-size: 1.08rem; }
.portal-card-title button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: .75rem; }
.empty-state { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.document-empty-state { min-height: 180px; display: grid; align-content: center; gap: 8px; padding: 30px; background: var(--white); border: 1px solid var(--line); }
.document-empty-state strong { font-size: 1.05rem; }
.document-empty-state p { margin: 0; color: var(--muted); }
.task-list { display: grid; }
.task-list label { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.task-list input { accent-color: var(--yellow); width: 17px; height: 17px; }
.task-list span { display: grid; font-size: .86rem; }
.task-list span b { color: var(--muted); font-size: .68rem; }
.task-list small { color: #8c701d; background: var(--yellow-soft); padding: 4px 7px; font-size: .65rem; }
.snapshot-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.snapshot-tags span { padding: 7px 9px; background: #f1f1ed; font-size: .75rem; font-weight: 700; }
.profile-snapshot dl { margin: 24px 0 0; }
.profile-snapshot dl div { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .8rem; }
.profile-snapshot dt { color: var(--muted); }
.profile-snapshot dd { margin: 0; font-weight: 700; }

.document-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; }
.document-filters { display: flex; gap: 7px; flex-wrap: wrap; }
.document-filters button { border: 1px solid #d0d0cb; background: var(--white); padding: 8px 11px; cursor: pointer; font-size: .75rem; }
.document-filters button.active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.document-toolbar > span { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.document-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.document-card { min-height: 205px; border: 1px solid #d9d9d5; background: var(--white); padding: 22px; text-align: left; cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; transition: transform .16s ease, box-shadow .16s ease; }
.document-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(17,17,17,.08); }
.document-card > span { color: #8a6b13; font-size: .68rem; font-weight: 850; letter-spacing: .08em; }
.document-card h3 { margin: 14px 0 7px; font-size: 1rem; line-height: 1.35; }
.document-card p { margin: 0; color: var(--muted); font-size: .78rem; }
.document-card small { margin-top: auto; padding: 5px 8px; font-size: .65rem; font-weight: 750; }
.document-card small.ready { background: #edf6f1; color: var(--green); }
.document-card small.review { background: var(--yellow-soft); color: #7b5e0b; }
.legal-note { margin: 18px 0 0; color: var(--muted); font-size: .72rem; }

.support-overview { background: var(--ink); color: var(--white); padding: 26px 30px; display: flex; justify-content: space-between; align-items: center; gap: 30px; margin-bottom: 18px; }
.support-overview span { color: #9a9a94; font-size: .72rem; }
.support-overview strong { display: block; margin-top: 4px; font-size: 1.2rem; }
.support-overview p { margin: 3px 0 0; color: #888882; font-size: .78rem; }
.support-progress { min-width: 250px; display: flex; align-items: center; gap: 12px; }
.support-progress > strong { color: var(--yellow); }
.support-progress > span { height: 7px; background: #333; }
.support-progress i { display: block; height: 100%; background: var(--yellow); }
.support-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; align-items: start; }
.support-timeline { list-style: none; margin: 0; padding: 0; background: var(--white); }
.support-timeline li { display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: start; padding: 21px 24px; border-bottom: 1px solid var(--line); }
.support-timeline li > b { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #cfcfca; font-size: .7rem; }
.support-timeline li.complete > b { background: var(--ink); color: white; border-color: var(--ink); }
.support-timeline li.active { background: #fffbec; box-shadow: inset 4px 0 0 var(--yellow); }
.support-timeline li.active > b { background: var(--yellow); border-color: var(--yellow); }
.support-timeline li div { display: grid; }
.support-timeline li p { margin: 2px 0; color: var(--muted); font-size: .78rem; }
.support-timeline li small { color: #8d8d86; }
.support-timeline li > span { color: var(--green); font-size: .7rem; font-weight: 800; }
.support-side-card { background: var(--white); padding: 28px; position: sticky; top: 180px; }
.support-side-card > span { color: #8a6b13; font-size: .68rem; font-weight: 850; letter-spacing: .1em; }
.support-side-card h2 { margin: 12px 0 8px; }
.support-side-card p { color: var(--muted); font-size: .83rem; }
.support-side-card ul { margin: 22px 0; padding-left: 20px; color: #464641; font-size: .82rem; }
.support-side-card li { margin: 8px 0; }

.payment-preview-banner { background: var(--ink); color: var(--white); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 18px 22px; margin-bottom: 18px; }
.payment-preview-banner b { color: var(--yellow); font-size: .68rem; letter-spacing: .12em; }
.payment-preview-banner span { color: #aaa9a3; font-size: .8rem; }
.payment-preview-banner em { border: 1px solid #4a4a4a; padding: 6px 9px; color: #8f8f89; font-style: normal; font-size: .68rem; }
.service-plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.service-plan { background: var(--white); border: 1px solid #d8d8d3; padding: 24px; min-height: 340px; display: flex; flex-direction: column; }
.service-plan.featured { border: 2px solid var(--ink); box-shadow: inset 0 5px 0 var(--yellow); }
.service-plan.current { background: #f8f8f5; }
.service-plan > span { color: #8a6b13; font-size: .67rem; font-weight: 850; letter-spacing: .1em; }
.service-plan h2 { margin: 17px 0 8px; font-size: 1.25rem; }
.service-plan p { color: var(--muted); font-size: .8rem; min-height: 58px; }
.service-plan ul { padding-left: 18px; font-size: .8rem; color: #4e4e49; }
.service-plan li { margin: 9px 0; }
.service-plan button { margin-top: auto; min-height: 48px; border: 1px solid var(--ink); background: var(--white); font-weight: 750; cursor: pointer; }
.service-plan.featured button { background: var(--ink); color: var(--white); }
.service-plan button:disabled { border-color: #d8d8d3; background: #f2f2ef; color: #777770; cursor: not-allowed; }
.service-plan button i { margin-left: 6px; color: #8c8c86; font-size: .64rem; font-style: normal; }
.admin-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.admin-metrics div { background: var(--white); padding: 22px; border-top: 3px solid var(--yellow); }
.admin-metrics span { color: var(--muted); font-size: .75rem; }
.admin-metrics strong { display: block; margin-top: 8px; font-size: 2rem; }
.admin-table-wrap { background: var(--white); overflow-x: auto; }
.admin-table-wrap table { width: 100%; border-collapse: collapse; min-width: 760px; }
.admin-table-wrap th, .admin-table-wrap td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); font-size: .8rem; }
.admin-table-wrap th { color: var(--muted); font-size: .7rem; background: #f7f7f4; }
.admin-table-wrap td:first-child { display: grid; }
.admin-table-wrap td:first-child small { color: var(--muted); }
.admin-table-wrap td button { border: 1px solid var(--ink); background: white; padding: 7px 10px; cursor: pointer; }
.status-waiting { color: #7b5e0b; background: var(--yellow-soft); padding: 5px 8px; font-weight: 750; }
.admin-gate { max-width: 620px; background: var(--white); border-top: 5px solid var(--yellow); padding: clamp(26px, 4vw, 44px); box-shadow: 0 16px 44px rgba(17,17,17,.08); }
.admin-gate > span { color: #8a6b13; font-size: .68rem; font-weight: 850; letter-spacing: .12em; }
.admin-gate h2 { margin: 14px 0 8px; font-size: clamp(1.35rem, 3vw, 2rem); }
.admin-gate > p { color: var(--muted); font-size: .82rem; }
.admin-gate form { margin-top: 24px; }
.admin-gate label { display: block; margin-bottom: 8px; font-size: .76rem; font-weight: 750; }
.admin-gate form div { display: grid; grid-template-columns: 1fr auto; }
.admin-gate input { min-width: 0; height: 50px; border: 1px solid #c9c9c3; padding: 0 13px; font: inherit; }
.admin-gate form button { min-width: 110px; border: 0; background: var(--ink); color: var(--white); font-weight: 750; cursor: pointer; }
.admin-login-status { min-height: 22px; margin: 12px 0 0 !important; color: #9a5515 !important; font-weight: 700; }
.admin-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; color: var(--muted); font-size: .75rem; }
.admin-actions div { display: flex; gap: 7px; }
.admin-actions button { border: 1px solid #c9c9c3; background: var(--white); padding: 8px 11px; cursor: pointer; font-size: .73rem; }
.admin-empty { margin: 0; padding: 36px; background: var(--white); color: var(--muted); text-align: center; }
.submission-modal-card { width: min(680px, 100%); max-height: 88vh; overflow-y: auto; }
.submission-detail { margin-top: 22px; }
.submission-contact { padding: 20px; background: var(--ink); color: var(--white); }
.submission-contact > span { color: var(--yellow); font-size: .67rem; font-weight: 800; letter-spacing: .06em; }
.submission-contact strong { display: block; margin-top: 10px; font-size: 1.2rem; }
.submission-contact p { margin: 4px 0; color: #c0c0ba; font-size: .8rem; }
.submission-contact small { color: #81817b; }
.submission-detail dl { margin: 16px 0; border: 1px solid var(--line); }
.submission-detail dl div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: .8rem; }
.submission-detail dl div:last-child { border-bottom: 0; }
.submission-detail dt { color: var(--muted); }
.submission-detail dd { margin: 0; font-weight: 700; }
.submission-scores h3 { margin: 24px 0 10px; font-size: .95rem; }
.submission-scores ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.submission-scores li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; background: #f5f5f2; font-size: .77rem; }
.submission-consent { margin: 18px 0 0; color: var(--muted); font-size: .7rem; }

.document-modal { position: fixed; inset: 0; z-index: 70; background: rgba(17,17,17,.72); display: grid; place-items: center; padding: 20px; }
.document-modal-card { width: min(520px, 100%); background: var(--white); padding: 34px; position: relative; box-shadow: var(--shadow); }
.modal-close { position: absolute; right: 18px; top: 14px; width: 36px; height: 36px; border: 0; background: transparent; font-size: 1.7rem; cursor: pointer; }
.document-modal-card > span { color: #8a6b13; font-size: .68rem; font-weight: 850; letter-spacing: .1em; }
.document-modal-card h2 { margin: 12px 0 8px; font-size: 1.6rem; }
.document-modal-card > p { color: var(--muted); font-size: .82rem; }
.document-preview-sheet { margin: 24px 0; min-height: 230px; padding: 28px; border: 1px solid #d8d8d3; background: #fafaf8; display: flex; flex-direction: column; }
.document-preview-sheet small { color: #8d8d86; }
.document-preview-sheet strong { margin: 22px 0; font-size: 1.15rem; }
.document-preview-sheet i { display: block; height: 8px; background: #e1e1dc; margin: 8px 0; }
.document-preview-sheet i.short { width: 62%; }

@media (max-width: 980px) {
  .intro-view { grid-template-columns: 1fr; }
  .ai-card { min-height: 520px; }
  .profile-view { grid-template-columns: 1fr; }
  .commercial-login-view { grid-template-columns: 1fr; }
  .login-brand-panel { min-height: auto; }
  .portal-view { grid-template-columns: 220px 1fr; }
  .dashboard-metrics { grid-template-columns: 1fr 1fr; }
  .readiness-card { grid-column: 1 / -1; }
  .dashboard-grid, .support-layout { grid-template-columns: 1fr; }
  .support-side-card { position: static; }
  .document-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-intro { position: static; min-height: auto; }
  .diagnosis-view { grid-template-columns: 230px 1fr; }
  .step-rail { padding: 34px 22px; }
  .result-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .site-header { height: 70px; padding: 0 16px; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-copy small { display: none; }
  .header-nav { display: flex; gap: 0; margin: 0 8px 0 auto; }
  .header-nav button { display: none; }
  .header-nav #backButton { display: inline-flex; align-items: center; padding: 7px 8px; font-size: .78rem; white-space: nowrap; }
  .view { min-height: calc(100vh - 70px); }
  .intro-view { padding: 46px 18px 60px; }
  .intro-copy h1 { font-size: clamp(2.35rem, 12vw, 4rem); }
  .trust-row { margin-top: 50px; gap: 22px; justify-content: space-between; }
  .ai-card { min-height: 500px; padding: 28px 22px; }
  .orbit-visual { height: 250px; }
  .profile-intro { padding: 42px 20px; }
  .login-brand-panel { padding: 48px 20px; }
  .login-brand-panel h1 { font-size: clamp(2.7rem, 12vw, 4.2rem); }
  .login-card-wrap { padding: 22px 14px 50px; }
  .portal-view { display: block; }
  .portal-sidebar { position: static; height: auto; padding: 18px 14px; }
  .portal-nav { display: flex; overflow-x: auto; gap: 6px; margin-top: 18px; padding-bottom: 4px; }
  .portal-nav button { min-width: max-content; display: flex; padding: 0 12px; }
  .portal-nav button span, .portal-nav button i { display: none; }
  .portal-help, .portal-logout { display: none; }
  .portal-topbar { height: 68px; padding: 0 16px; }
  .portal-panel { padding: 30px 14px 50px; }
  .portal-heading { align-items: flex-start; flex-direction: column; }
  .dashboard-metrics { grid-template-columns: 1fr; }
  .readiness-card { grid-column: auto; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .document-toolbar { align-items: flex-start; flex-direction: column; }
  .document-grid { grid-template-columns: 1fr; }
  .support-overview { align-items: flex-start; flex-direction: column; }
  .support-progress { min-width: 0; width: 100%; }
  .service-plan-grid { grid-template-columns: 1fr; }
  .payment-preview-banner { grid-template-columns: 1fr; }
  .admin-metrics { grid-template-columns: repeat(2, 1fr); }
  .profile-intro h1 { font-size: clamp(2.25rem, 10vw, 3.6rem); }
  .profile-context { margin-top: 36px; }
  .profile-form { padding: 38px 18px 52px; }
  .intake-fields { padding: 20px 16px; }
  .intake-grid { grid-template-columns: 1fr; }
  .intake-grid label.full { grid-column: auto; }
  .profile-option-grid.two-columns, .profile-option-grid.three-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compact-question .profile-option-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .diagnosis-view { display: block; }
  .step-rail { min-height: auto; padding: 20px; }
  .rail-heading span, .rail-note { display: none; }
  #stepNav { display: flex; overflow-x: auto; margin: 18px 0 0; gap: 18px; padding-bottom: 5px; }
  .step-item { display: flex; white-space: nowrap; padding: 0; }
  .step-item span { display: none; }
  .step-item.active span { display: inline; }
  .step-item.complete::after { display: none; }
  .question-workspace { padding: 0 18px 42px; }
  .workspace-topbar { height: 72px; }
  .utility-button { font-size: .72rem; padding: 9px; }
  .progress-copy { width: 42%; }
  .section-heading { margin: 38px 0 28px; }
  .question-card { padding: 20px 16px; }
  .option-grid { grid-template-columns: repeat(2, 1fr); }
  .result-hero { padding: 24px 18px 36px; }
  .result-brandline > span { display: none; }
  .result-summary { grid-template-columns: 1fr; gap: 30px; margin: 38px 0; }
  .score-ring { width: 145px; height: 145px; }
  .score-ring { justify-self: center; }
  .review-banner { grid-template-columns: 42px 1fr; }
  .review-status { grid-column: 2; }
  .result-grid { padding: 0 12px; }
  .result-panel { padding: 22px 18px; }
  .profile-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-gate form div { grid-template-columns: 1fr; gap: 8px; }
  .admin-gate form button { min-height: 48px; }
  .admin-actions { align-items: flex-start; flex-direction: column; }
  .submission-scores ul { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 88px 1fr 40px; gap: 8px; }
  .result-footer { padding: 0 18px; align-items: flex-start; flex-direction: column; }
}

@media (max-width: 430px) {
  .profile-option-grid.two-columns, .profile-option-grid.three-columns, .compact-question .profile-option-grid { grid-template-columns: 1fr; }
  .profile-summary { grid-template-columns: 1fr; }
  .admin-metrics { grid-template-columns: 1fr; }
}

/* Mobile-first interaction pass: prioritize one-hand survey completion. */
@media (max-width: 720px) {
  html { scroll-padding-top: 138px; }
  body { overflow-x: hidden; }
  button, input { -webkit-tap-highlight-color: transparent; }
  button { min-height: 44px; }

  .site-header {
    height: 64px;
    padding: 0 max(14px, env(safe-area-inset-left)) 0 max(14px, env(safe-area-inset-right));
  }
  .brand { gap: 9px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-copy strong { font-size: .9rem; }
  .view { min-height: calc(100dvh - 64px); }

  .intro-view { display: block; padding: 30px 16px 42px; }
  .intro-copy .eyebrow { margin-bottom: 12px; font-size: .68rem; letter-spacing: .12em; }
  .intro-copy h1 { font-size: clamp(2.25rem, 11vw, 3.15rem); line-height: 1.04; }
  .mobile-break { display: block; }
  .lead { margin-top: 20px; font-size: .98rem; line-height: 1.7; }
  .intro-actions { display: grid; grid-template-columns: 1fr; gap: 10px 12px; margin-top: 26px; }
  .intro-actions .primary-button { grid-column: 1 / -1; width: calc(100% - 6px); min-height: 58px; font-size: 1rem; }
  .intro-actions .text-button { width: 100%; min-height: 44px; font-size: .82rem; }
  .utility-note { color: var(--muted); font-size: .72rem; }
  .trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 36px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .trust-row div { padding: 14px 6px; text-align: center; border-right: 1px solid var(--line); }
  .trust-row div:last-child { border-right: 0; }
  .trust-row strong { font-size: 1.05rem; }
  .trust-row span { font-size: .72rem; }
  .ai-card { min-height: 0; margin-top: 24px; padding: 22px 18px; box-shadow: none; }
  .orbit-visual { display: none; }
  .status-line { font-size: .72rem; }
  .ai-card h2 { margin-top: 12px; font-size: 1.35rem; }
  .ai-card-copy > p { margin-bottom: 18px; font-size: .88rem; }
  .ai-card dl div { padding: 11px 0; font-size: .82rem; }

  .profile-view { display: block; }
  .profile-intro { min-height: 0; padding: 26px 18px 28px; position: static; }
  .profile-intro .eyebrow { margin-bottom: 10px; font-size: .67rem; }
  .profile-intro h1 { font-size: clamp(2rem, 9vw, 2.7rem); line-height: 1.08; }
  .profile-intro > p:not(.eyebrow), .profile-context { display: none; }
  .profile-form { padding: 0 14px 98px; }
  .profile-topline { position: sticky; top: 64px; z-index: 12; margin: 0 -14px 20px; padding: 14px 16px; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
  .profile-topline span { font-size: 1rem; }
  .profile-topline small { font-size: .78rem; }
  .intake-fields { margin-bottom: 28px; padding: 18px 14px; }
  .intake-title span { font-size: .94rem; }
  .intake-grid { gap: 14px; }
  .intake-grid label > span { font-size: .87rem; }
  .intake-grid input { min-height: 52px; padding: 0 14px; font-size: 1rem; border-radius: 3px; }
  .intake-fields > p { font-size: .78rem; }
  .profile-question { padding-bottom: 24px; margin-bottom: 24px; }
  .profile-question legend { display: grid; grid-template-columns: 30px 1fr; align-items: start; gap: 8px; font-size: .98rem; line-height: 1.5; }
  .profile-question legend b { margin: 0; }
  .profile-option-grid.two-columns, .profile-option-grid.three-columns, .compact-question .profile-option-grid { grid-template-columns: 1fr; }
  .profile-option-grid { gap: 8px; }
  .profile-option-grid span { min-height: 54px; padding: 12px 14px; place-items: center start; text-align: left; font-size: .95rem; }
  .profile-option-grid input:checked + span::after { content: "✓"; margin-left: auto; color: var(--yellow); font-weight: 900; }
  .profile-option-grid input:checked + span { grid-template-columns: 1fr auto; }
  .privacy-consent { padding: 16px 14px; }
  .privacy-consent span { font-size: .82rem; line-height: 1.6; }
  .privacy-consent strong { font-size: .9rem; }

  .form-actions { position: sticky; bottom: 0; z-index: 16; gap: 10px; margin: 24px -14px -98px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(14px); box-shadow: 0 -1px 0 var(--line), 0 -12px 24px rgba(17,17,17,.06); }
  .form-actions .secondary-button { flex: 0 0 92px; min-height: 54px; padding: 0 12px; }
  .form-actions .primary-button { flex: 1; min-height: 54px; padding: 0 14px; box-shadow: 4px 4px 0 var(--yellow); }

  .diagnosis-view { display: block; }
  .step-rail { position: sticky; top: 64px; z-index: 13; min-height: 0; padding: 11px 14px 9px; box-shadow: 0 1px 0 #333; }
  .rail-heading p, .rail-heading span, .rail-note { display: none; }
  .rail-heading h2 { font-size: 1rem; }
  #stepNav { margin: 8px 0 0; gap: 8px; overflow-x: visible; justify-content: space-between; }
  .step-item { min-width: 24px; justify-content: center; padding: 0; font-size: .8rem; }
  .step-item b { font-size: .7rem; }
  .step-item span, .step-item.active span, .step-item.complete::after { display: none; }
  .step-item.active b { width: 24px; height: 24px; display: grid; place-items: center; background: var(--yellow); color: var(--ink); border-radius: 50%; }
  .question-workspace { padding: 0 14px 96px; }
  .workspace-topbar { position: sticky; top: 126px; z-index: 12; height: 58px; margin: 0 -14px; padding: 0 14px; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
  .workspace-topbar .utility-button { display: none; }
  .progress-copy { width: calc(100% - 54px); }
  .progress-copy > span { font-size: .78rem; }
  .section-heading { margin: 28px 0 22px; }
  .section-heading > p:first-child { margin-bottom: 10px; font-size: .68rem; }
  .section-heading h1 { font-size: clamp(2rem, 9vw, 2.65rem); }
  .section-heading > p:last-child { margin-top: 10px; font-size: .9rem; line-height: 1.65; }
  .question-list { gap: 12px; }
  .question-card { padding: 18px 14px; }
  .question-card legend { margin-bottom: 15px; font-size: .98rem; line-height: 1.55; }
  .option-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .option-card span { min-height: 54px; padding: 9px 7px; font-size: .88rem; }
  #diagnosisForm .form-actions { margin-bottom: -96px; }

  .result-hero { padding: 20px 16px 28px; }
  .result-brandline { padding-bottom: 12px; font-size: .72rem; }
  .result-summary { gap: 22px; margin: 28px 0 24px; }
  .result-summary h1 { font-size: 2.2rem; }
  .result-message { font-size: .94rem; line-height: 1.65; }
  .score-ring { width: 132px; height: 132px; }
  .score-ring strong { font-size: 2.65rem; }
  .review-banner { grid-template-columns: 38px 1fr; gap: 12px; padding: 15px 14px; }
  .review-banner p { font-size: .76rem; }
  .result-grid { margin: 14px auto; padding: 0 10px; gap: 12px; }
  .result-panel { padding: 20px 14px; }
  .panel-title { align-items: flex-start; margin-bottom: 18px; }
  .panel-title h2 { font-size: 1.02rem; }
  .profile-summary { grid-template-columns: 1fr 1fr; gap: 7px; }
  .profile-summary div { min-height: 82px; padding: 13px; }
  .bar-row { grid-template-columns: 78px 1fr 36px; gap: 8px; font-size: .76rem; }
  .result-footer { padding: 0 16px; gap: 12px; font-size: .78rem; }

  .login-brand-panel { min-height: 0; padding: 32px 18px; }
  .login-brand-panel h1 { font-size: 2.55rem; }
  .login-brand-panel > p:not(.eyebrow) { margin: 18px 0 24px; }
  .login-feature-list { display: none; }
  .login-card-wrap { padding: 16px 12px 36px; }
  .login-card { padding: 24px 16px; box-shadow: none; }
  .social-login { min-height: 56px; }

  .portal-sidebar { position: sticky; top: 64px; z-index: 14; padding: 12px 10px 10px; }
  .portal-academy { padding: 0 4px 10px; }
  .academy-avatar { width: 34px; height: 34px; }
  .portal-nav { margin-top: 8px; gap: 5px; }
  .portal-nav button { min-height: 42px; padding: 0 11px; }
  .portal-topbar { height: 56px; padding: 0 12px; }
  .portal-panel { padding: 24px 10px 42px; }
  .portal-heading { gap: 12px; margin-bottom: 22px; }
  .portal-heading h1, .compact-heading h1 { font-size: 2.15rem; }
  .portal-heading > div > span { font-size: .86rem; }
  .admin-metrics { gap: 8px; }
  .admin-metrics div { padding: 16px; }
  .admin-gate { padding: 24px 16px; }
  .admin-table-wrap { overflow: visible; background: transparent; }
  .admin-table-wrap table, .admin-table-wrap tbody, .admin-table-wrap tr, .admin-table-wrap td { display: block; width: 100%; min-width: 0; }
  .admin-table-wrap thead { display: none; }
  .admin-table-wrap tr { margin-bottom: 10px; padding: 10px 14px; background: var(--white); border-top: 3px solid var(--yellow); }
  .admin-table-wrap td, .admin-table-wrap td:first-child { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .82rem; }
  .admin-table-wrap td:last-child { border-bottom: 0; }
  .admin-table-wrap td::before { content: attr(data-label); flex: 0 0 84px; color: var(--muted); font-size: .76rem; }
  .admin-table-wrap td:first-child { display: grid; grid-template-columns: 84px 1fr; justify-content: initial; }
  .admin-table-wrap td:first-child::before { grid-row: 1 / span 2; align-self: center; }
  .admin-table-wrap td button { min-width: 110px; min-height: 44px; }

  .document-modal { align-items: end; padding: 0; }
  .document-modal-card, .submission-modal-card { width: 100%; max-height: 92dvh; padding: 26px 18px calc(24px + env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0; overflow-y: auto; }
  .modal-close { right: 12px; top: 10px; }
  .submission-detail dl div { grid-template-columns: 105px 1fr; }
}

@media (max-width: 390px) {
  .intro-actions { grid-template-columns: 1fr; }
  .intro-actions .primary-button { grid-column: auto; }
  .trust-row strong { font-size: .96rem; }
  .profile-summary { grid-template-columns: 1fr; }
  .option-grid { grid-template-columns: 1fr; }
  .form-actions .secondary-button { flex-basis: 92px; padding: 0 6px; font-size: .84rem; white-space: nowrap; }
  .admin-metrics { grid-template-columns: 1fr 1fr; }
}

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