@import url('data:text/css,');

:root {
  --ink: #26203a;
  --ink-soft: #5f6075;
  --forest: #392867;
  --forest-2: #167693;
  --mint: #dceff5;
  --mint-2: #f1f0f8;
  --paper: #f8f7fb;
  --white: #fff;
  --line: #dddbe8;
  --coral: #d10f42;
  --brand-red: #f20545;
  --gold: #e487a7;
  --shadow: 0 24px 70px rgba(57, 40, 103, .16);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.visually-hidden { position: fixed; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.skip-link { position: fixed; z-index: 100; left: 12px; top: -60px; padding: 10px 16px; background: var(--forest); color: white; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.site-header { min-height: 86px; padding: 9px clamp(20px, 4vw, 70px); display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(57,40,103,.12); background: rgba(248,247,251,.93); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 20; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-logo { width: 64px; height: 60px; object-fit: cover; border-radius: 11px; box-shadow: 0 7px 18px rgba(57,40,103,.18); }
.brand-suffix strong, .brand-suffix small { display: block; }
.brand-suffix strong { color: var(--forest); font-size: 11px; letter-spacing: .22em; }
.brand-suffix small { margin-top: 5px; color: var(--forest-2); font-size: 7px; font-weight: 800; letter-spacing: .18em; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.privacy-pill, .icon-button { border: 1px solid var(--line); background: var(--white); color: var(--forest); box-shadow: 0 6px 20px rgba(57,40,103,.08); }
.privacy-pill { display: flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 999px; font-size: 12px; font-weight: 750; }
.privacy-pill svg { width: 17px; fill: var(--forest); }
.icon-button { width: 37px; height: 37px; border-radius: 50%; font-weight: 800; }

.hero { min-height: 660px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(410px, .84fr); gap: clamp(44px, 8vw, 130px); align-items: center; padding: clamp(54px, 8vw, 108px) clamp(24px, 7vw, 120px); position: relative; overflow: hidden; background: radial-gradient(circle at 78% 8%, rgba(38,131,164,.13), transparent 34%), radial-gradient(circle at 5% 92%, rgba(111,39,99,.09), transparent 38%); }
.hero::before { content: ""; position: absolute; width: 560px; height: 560px; right: -180px; top: -240px; border: 1px solid rgba(38,131,164,.18); border-radius: 45% 55% 51% 49%; box-shadow: 0 0 0 50px rgba(57,40,103,.035), 0 0 0 100px rgba(38,131,164,.025); pointer-events: none; }
.hero::after { content: ""; position: absolute; width: 330px; height: 330px; left: -95px; bottom: -155px; background: radial-gradient(circle, rgba(242,5,69,.33) 0 2px, transparent 2.6px); background-size: 18px 18px; -webkit-mask-image: radial-gradient(circle, #000 0 28%, transparent 72%); mask-image: radial-gradient(circle, #000 0 28%, transparent 72%); opacity: .38; pointer-events: none; }
.hero-copy { max-width: 690px; position: relative; z-index: 1; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; color: var(--forest-2); font-size: 11px; font-weight: 850; letter-spacing: .18em; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-red); box-shadow: 0 0 0 5px rgba(242,5,69,.12); }
h1 { margin: 20px 0 20px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(48px, 6.2vw, 80px); line-height: .96; font-weight: 400; letter-spacing: -.055em; }
h1 em { color: var(--forest-2); font-weight: 400; }
.hero-lede { max-width: 600px; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.65; color: var(--ink-soft); }
.portal-identity { max-width: 620px; min-height: 74px; display: grid; grid-template-columns: 42px 1fr auto; gap: 13px; align-items: center; margin-top: 28px; padding: 13px 15px; border: 1px solid rgba(57,40,103,.15); border-radius: 16px; background: rgba(255,255,255,.72); box-shadow: 0 10px 30px rgba(57,40,103,.07); }
.portal-symbol { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--mint); color: var(--forest-2); font-size: 22px; font-weight: 800; }
.portal-clinician .portal-symbol { background: #ffe5ed; color: var(--coral); }
.portal-identity small, .portal-identity strong { display: block; }
.portal-identity small { margin-bottom: 4px; color: var(--ink-soft); font-size: 8px; font-weight: 900; letter-spacing: .14em; }
.portal-identity strong { font-size: 13px; }
.portal-identity a { color: var(--forest-2); font-size: 11px; font-weight: 850; text-underline-offset: 3px; }
.portal-locked .role-picker { display: none; }
.portal-locked .guide-link { margin-top: 20px; }
.role-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 34px; max-width: 620px; }
.role-option { min-height: 80px; display: grid; grid-template-columns: 38px 1fr 18px; gap: 12px; align-items: center; text-align: left; color: var(--ink); border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.64); padding: 14px; transition: .2s ease; }
.role-option:hover { transform: translateY(-2px); border-color: #a9a0c1; }
.role-option.active { background: linear-gradient(135deg, #f2eef9, #edf7fa); border-color: #9e90bc; box-shadow: inset 0 0 0 1px #9e90bc; }
.role-icon { width: 37px; height: 37px; border-radius: 12px; display: grid; place-items: center; background: var(--mint); font-size: 21px; font-weight: 700; }
.role-icon.nurse { background: #ffe5ed; color: var(--coral); }
.role-option strong, .role-option small { display: block; }
.role-option strong { font-size: 13px; }
.role-option small { color: var(--ink-soft); font-size: 11px; margin-top: 4px; }
.radio-dot { width: 16px; height: 16px; border: 1.5px solid #aaa5b9; border-radius: 50%; position: relative; }
.role-option.active .radio-dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--forest-2); }
.guide-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; color: var(--forest-2); font-size: 12px; font-weight: 800; text-underline-offset: 4px; }
.guide-link span { color: var(--coral); font-size: 17px; }

.check-card { position: relative; z-index: 2; background: var(--white); border: 1px solid rgba(57,40,103,.12); border-radius: 28px; padding: 22px; box-shadow: var(--shadow); min-height: 500px; }
.card-topline { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 800; color: var(--ink); }
.step-number { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: white; background: var(--forest); margin-right: 8px; }
.not-saved { color: var(--ink-soft); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.not-saved i { display: inline-block; width: 6px; height: 6px; background: #2683a4; border-radius: 50%; margin-right: 5px; }
.empty-photo { margin-top: 18px; min-height: 410px; border-radius: 19px; background: linear-gradient(145deg, #eef1fa 0%, #edf8fa 75%); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; border: 1px dashed #c8c4da; }
.focus-frame { width: 154px; height: 126px; position: relative; display: grid; place-items: center; margin-bottom: 12px; }
.focus-frame > span, .camera-guide > span { position: absolute; width: 30px; height: 30px; border-color: var(--forest-2); border-style: solid; }
.focus-frame span:nth-child(1), .camera-guide span:nth-child(1) { top: 0; left: 0; border-width: 2px 0 0 2px; border-radius: 8px 0 0 0; }
.focus-frame span:nth-child(2), .camera-guide span:nth-child(2) { top: 0; right: 0; border-width: 2px 2px 0 0; border-radius: 0 8px 0 0; }
.focus-frame span:nth-child(3), .camera-guide span:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 2px 2px; border-radius: 0 0 0 8px; }
.focus-frame span:nth-child(4), .camera-guide span:nth-child(4) { bottom: 0; right: 0; border-width: 0 2px 2px 0; border-radius: 0 0 8px 0; }
.wound-shape { width: 79px; height: 55px; border-radius: 46% 54% 61% 39% / 55% 45% 55% 45%; background: radial-gradient(circle at 48% 48%, #ce7962 0 24%, #e9aa8b 27% 52%, #d9b49d 54% 67%, transparent 69%); filter: saturate(.8); opacity: .85; transform: rotate(-8deg); }
.empty-photo h2 { font-family: Georgia, serif; font-size: 24px; font-weight: 400; margin: 12px 0 8px; }
.empty-photo p { color: var(--ink-soft); font-size: 13px; margin: 0 0 24px; }
.photo-actions { display: flex; gap: 10px; width: 100%; justify-content: center; }
.primary-button, .secondary-button { min-height: 47px; border-radius: 13px; padding: 0 18px; font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; transition: transform .15s, box-shadow .15s, background .15s; }
.primary-button { background: linear-gradient(135deg, #392867, #167693); color: white; box-shadow: 0 9px 22px rgba(57,40,103,.22); }
.primary-button:hover:not(:disabled) { transform: translateY(-2px); background: linear-gradient(135deg, #2d1d58, #0d667f); }
.secondary-button { background: white; color: var(--forest); border-color: #d0cce0; }
.secondary-button:hover { background: var(--mint-2); }
.primary-button svg, .secondary-button svg { width: 17px; height: 17px; fill: currentColor; }
.primary-button:disabled { opacity: .5; cursor: not-allowed; }

.photo-ready { margin-top: 18px; }
.preview-wrap { height: 316px; border-radius: 19px; overflow: hidden; position: relative; background: #e0dfeb; }
.preview-wrap img { width: 100%; height: 100%; object-fit: contain; background: #e9e8f0; }
.session-badge { position: absolute; left: 12px; top: 12px; padding: 7px 9px; border-radius: 99px; background: rgba(57,40,103,.86); backdrop-filter: blur(8px); color: white; font-size: 9px; letter-spacing: .14em; font-weight: 850; }
.remove-photo { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255,255,255,.88); color: var(--ink); font-size: 22px; }
.quality-checks { display: flex; gap: 15px; color: var(--ink-soft); font-size: 11px; margin: 13px 2px; }
.quality-checks i { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--mint); color: var(--forest); font-style: normal; margin-right: 5px; }
.analyze-button { width: 100%; justify-content: space-between; padding-inline: 20px; }
.button-arrow { font-size: 18px; }
.model-status { margin: 11px 4px 0; color: var(--ink-soft); font-size: 11px; text-align: center; }
.model-status.error { color: #a54435; }

.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 30px clamp(24px, 7vw, 120px); background: linear-gradient(110deg, #392867 0%, #6b2b66 45%, #167693 100%); color: white; }
.trust-strip > div { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 8px 20px; border-right: 1px solid rgba(255,255,255,.14); }
.trust-strip > div:last-child { border-right: 0; }
.trust-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.09); color: var(--mint); font-size: 22px; }
.trust-strip strong, .trust-strip small { display: block; }
.trust-strip strong { font-size: 13px; }
.trust-strip small { margin-top: 4px; color: rgba(255,255,255,.66); font-size: 10px; }

.guide-section { scroll-margin-top: 86px; padding: 32px clamp(24px, 7vw, 120px) 40px; background: linear-gradient(180deg, #f5f3fa, var(--paper)); }
.clinical-guide { max-width: 1180px; margin: 0 auto; overflow: hidden; border: 1px solid rgba(57,40,103,.16); border-radius: 24px; background: white; box-shadow: 0 16px 48px rgba(57,40,103,.08); }
.clinical-guide > summary { min-height: 118px; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 24px 30px; cursor: pointer; list-style: none; background: radial-gradient(circle at 88% 20%, rgba(38,131,164,.12), transparent 30%), linear-gradient(135deg, #fff, #f4f1f9); }
.clinical-guide > summary::-webkit-details-marker { display: none; }
.guide-summary-copy { display: grid; gap: 6px; }
.guide-summary-copy > strong { font: 400 clamp(26px, 3vw, 38px)/1.05 Georgia, serif; letter-spacing: -.035em; }
.guide-summary-copy > small { color: var(--ink-soft); font-size: 12px; line-height: 1.45; }
.guide-summary-action { display: flex; align-items: center; gap: 12px; color: var(--forest); font-size: 11px; font-weight: 850; white-space: nowrap; }
.guide-summary-action i { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--forest), var(--forest-2)); color: white; font-size: 20px; font-style: normal; transition: transform .2s ease; }
.clinical-guide[open] .guide-summary-action i { transform: rotate(45deg); }
.guide-content { padding: 32px 30px 30px; border-top: 1px solid var(--line); }
.guide-match-note { display: grid; grid-template-columns: 1fr auto; gap: 5px 24px; align-items: center; margin: 0 0 26px; padding: 15px 17px; border: 1px solid rgba(38,131,164,.2); border-left: 4px solid var(--forest-2); border-radius: 12px; background: #edf7fa; }
.guide-match-note span { grid-column: 1; color: var(--forest-2); font-size: 8px; font-weight: 900; letter-spacing: .14em; }
.guide-match-note strong { grid-column: 1; font: 400 18px Georgia, serif; }
.guide-match-note a { grid-column: 2; grid-row: 1 / 3; color: var(--forest-2); font-size: 11px; font-weight: 850; text-underline-offset: 3px; }
.guide-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.guide-heading h2 { margin: 10px 0 0; font: 400 clamp(30px, 3.5vw, 46px)/1 Georgia, serif; letter-spacing: -.04em; }
.guide-select-label { display: grid; gap: 7px; min-width: min(100%, 275px); color: var(--ink-soft); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.guide-select-label select { appearance: none; min-height: 46px; padding: 0 42px 0 14px; border: 1px solid #bfcfc7; border-radius: 12px; color: var(--forest); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath fill='%2323564d' d='m7 10 5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 12px center; font-size: 13px; font-weight: 750; letter-spacing: 0; text-transform: none; }
.guide-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 22px; }
.guide-copy-card, .guide-photo-card, .tissue-guide { border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 18px 48px rgba(23,61,55,.07); }
.guide-copy-card { padding: clamp(26px, 4vw, 42px); }
.guide-copy-card > small { color: var(--coral); font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.guide-copy-card h3 { margin: 9px 0 14px; font: 400 clamp(29px, 3vw, 40px)/1.05 Georgia, serif; }
.guide-copy-card > p { max-width: 720px; margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.7; }
.guide-steps { list-style: none; display: grid; gap: 13px; padding: 0; margin: 28px 0 0; }
.guide-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.guide-steps li > span { color: var(--coral); font: italic 400 18px Georgia, serif; }
.guide-steps p { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.55; }
.guide-steps strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: 13px; }
.guide-photo-card { padding: 24px; background: linear-gradient(145deg, #f1eef8, #e8f5f8); }
.guide-photo-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 15px; }
.guide-photo-heading span, .guide-photo-heading strong { display: block; }
.guide-photo-heading span { color: var(--ink-soft); font-size: 9px; font-weight: 850; letter-spacing: .13em; }
.guide-photo-heading strong { max-width: 160px; text-align: right; font: 400 15px Georgia, serif; }
.guide-examples { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.guide-examples figure { position: relative; min-width: 0; aspect-ratio: 1 / 1; margin: 0; overflow: hidden; border-radius: 15px; background: #d8e2dc; }
.guide-examples img { width: 100%; height: 100%; display: block; object-fit: cover; }
.guide-examples figcaption { position: absolute; left: 9px; bottom: 9px; padding: 5px 7px; border-radius: 7px; color: white; background: rgba(57,40,103,.86); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.guide-photo-card > p { margin: 14px 2px 0; color: var(--ink-soft); font-size: 10px; line-height: 1.55; }
.no-reference-image { grid-column: 1 / -1; min-height: 180px; display: grid; place-items: center; padding: 30px; border: 1px dashed #b8c9bf; border-radius: 15px; color: var(--ink-soft); text-align: center; font-size: 11px; }
.tissue-guide { margin-top: 22px; padding: 0 26px 26px; }
.tissue-guide summary { display: flex; align-items: center; justify-content: space-between; min-height: 78px; cursor: pointer; list-style: none; }
.tissue-guide summary::-webkit-details-marker { display: none; }
.tissue-guide summary span:first-child { display: grid; gap: 5px; }
.tissue-guide summary small { color: var(--ink-soft); font-size: 9px; font-weight: 850; letter-spacing: .14em; }
.tissue-guide summary strong { font: 400 23px Georgia, serif; }
.tissue-guide summary > span:last-child { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--forest); background: var(--mint); font-size: 19px; transition: transform .2s; }
.tissue-guide[open] summary > span:last-child { transform: rotate(45deg); }
.tissue-guide > p { max-width: 760px; margin: 0 0 19px; color: var(--ink-soft); font-size: 12px; line-height: 1.6; }
.tissue-library { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.tissue-library article { padding: 16px; border-radius: 14px; background: var(--mint-2); }
.tissue-library h4 { margin: 0 0 8px; font-size: 12px; }
.tissue-library p { margin: 0; color: var(--ink-soft); font-size: 10px; line-height: 1.55; }

.results-shell { padding: 80px clamp(24px, 7vw, 120px); background: linear-gradient(145deg, #f2f0f8, #edf6f8); }
.results-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 26px; }
.results-heading h2 { font: 400 clamp(34px, 4vw, 52px)/1 Georgia, serif; margin: 10px 0 0; letter-spacing: -.035em; }
.text-button { border: 0; background: transparent; color: var(--forest-2); font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.results-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 22px; }
.summary-card, .details-card, .research-card { background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 16px 44px rgba(23,61,55,.07); }
.summary-card { padding: 28px; }
.summary-head { display: grid; grid-template-columns: 46px 1fr auto; gap: 14px; align-items: center; }
.result-icon { width: 46px; height: 46px; border-radius: 15px; background: #ffe5ed; color: var(--coral); display: grid; place-items: center; font: italic 700 25px Georgia, serif; }
.summary-head small, .research-card small, .modal-head small { color: var(--ink-soft); font-size: 9px; font-weight: 850; letter-spacing: .16em; }
.summary-head h3 { margin: 4px 0 0; font: 400 25px Georgia, serif; }
.urgency-chip { padding: 8px 10px; border-radius: 99px; background: #fff0cf; color: #7c591e; font-size: 10px; font-weight: 850; white-space: nowrap; }
.summary-card > p { color: var(--ink-soft); line-height: 1.65; font-size: 14px; margin: 25px 0; }
.confidence-block { border-top: 1px solid var(--line); padding-top: 20px; }
.confidence-block > div:first-child { display: flex; justify-content: space-between; font-size: 12px; }
.confidence-track { height: 8px; border-radius: 99px; background: #edf1ed; overflow: hidden; margin-top: 10px; }
.confidence-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #76549a, #2683a4); transition: width .7s ease; }
.urgent-note { margin-top: 22px; padding: 16px; border-left: 3px solid var(--brand-red); background: #fff3f7; border-radius: 4px 12px 12px 4px; }
.urgent-note strong, .urgent-note span { display: block; }
.urgent-note strong { font-size: 12px; margin-bottom: 6px; }
.urgent-note span { color: #69524d; font-size: 11px; line-height: 1.5; }
.details-card { padding: 8px 26px 28px; }
.tab-row { display: flex; gap: 25px; border-bottom: 1px solid var(--line); }
.tab { border: 0; background: transparent; padding: 19px 2px 14px; color: var(--ink-soft); font-size: 12px; font-weight: 800; border-bottom: 2px solid transparent; }
.tab.active { color: var(--forest); border-bottom-color: var(--forest); }
.tab-panel { padding-top: 22px; }
.tab-panel h3 { margin: 0 0 10px; font: 400 23px Georgia, serif; }
.tab-panel > p { color: var(--ink-soft); font-size: 13px; line-height: 1.55; }
.next-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.next-list li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; padding: 13px; border-radius: 14px; background: var(--mint-2); }
.next-list li > span { width: 29px; height: 29px; border-radius: 9px; display: grid; place-items: center; background: var(--forest); color: white; font-size: 11px; font-weight: 850; }
.next-list p { margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.45; }
.next-list strong { display: block; color: var(--ink); font-size: 12px; margin-bottom: 2px; }
.probability-list { display: grid; gap: 10px; margin: 18px 0 24px; }
.probability-row { display: grid; grid-template-columns: minmax(120px, 1fr) 2fr 44px; align-items: center; gap: 10px; font-size: 11px; }
.probability-row .bar { height: 7px; background: #edf1ed; border-radius: 99px; overflow: hidden; }
.probability-row .bar i { display: block; height: 100%; background: linear-gradient(90deg, #76549a, #2683a4); border-radius: inherit; }
.probability-row strong { text-align: right; font-size: 10px; }
.tab-panel h4 { margin: 0 0 10px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.signal-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.signal-chips span { padding: 7px 10px; border-radius: 99px; background: #eef3ef; color: var(--ink-soft); font-size: 10px; }
.tissue-signal-heading { margin-top: 22px !important; }
.tissue-explanations { display: grid; gap: 8px; }
.tissue-explanations article { padding: 11px 12px; border-left: 3px solid #2683a4; border-radius: 4px 11px 11px 4px; background: var(--mint-2); }
.tissue-explanations strong { display: block; font-size: 11px; }
.tissue-explanations p, .empty-signal-copy { margin: 4px 0 0; color: var(--ink-soft); font-size: 10px; line-height: 1.5; }
.detail-note { border-top: 1px solid var(--line); padding-top: 15px; margin-top: 18px; }
.research-card { margin-top: 22px; padding: 22px 25px; display: grid; grid-template-columns: 50px 1fr auto; align-items: center; gap: 20px; }
.research-mark { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; color: #81501f; background: #fff1d7; font-size: 23px; }
.research-card h3 { font: 400 22px Georgia, serif; margin: 4px 0; }
.research-card p { color: var(--ink-soft); font-size: 11px; margin: 0; line-height: 1.5; }
.safety-note { max-width: 840px; margin: 0 auto; padding: 45px 24px 60px; display: flex; gap: 16px; align-items: start; }
.safety-note > span { width: 32px; height: 32px; flex: 0 0 auto; display: grid; place-items: center; color: #a44a3c; background: #fce6e0; border-radius: 50%; font-weight: 850; }
.safety-note p { color: var(--ink-soft); font-size: 12px; line-height: 1.6; margin: 0; }
.safety-note strong { color: var(--ink); }
footer { border-top: 1px solid var(--line); padding: 20px clamp(24px, 7vw, 120px); display: flex; justify-content: space-between; color: var(--ink-soft); font-size: 10px; }

.modal { border: 0; padding: 0; background: transparent; width: min(680px, calc(100% - 28px)); max-height: calc(100dvh - 28px); color: var(--ink); }
.modal::backdrop { background: rgba(12,37,32,.62); backdrop-filter: blur(5px); }
.modal-card { background: var(--paper); border-radius: 24px; padding: 27px; box-shadow: var(--shadow); max-height: calc(100dvh - 28px); overflow: auto; }
.modal-head { display: flex; justify-content: space-between; align-items: start; margin-bottom: 20px; }
.modal-head h2 { margin: 5px 0 0; font: 400 30px Georgia, serif; }
.about-logo { display: block; width: min(210px, 58vw); height: auto; margin: 0 auto 22px; border-radius: 18px; box-shadow: 0 18px 42px rgba(57,40,103,.22); }
.close-button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: white; color: var(--ink); font-size: 22px; }
.privacy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 24px; }
.privacy-grid > div { background: white; border: 1px solid var(--line); padding: 17px; border-radius: 15px; }
.privacy-grid span { font: italic 400 20px Georgia, serif; color: var(--coral); }
.privacy-grid h3 { font-size: 13px; margin: 10px 0 6px; }
.privacy-grid p, .modal-card > p { color: var(--ink-soft); font-size: 12px; line-height: 1.55; }
.full-button { width: 100%; }
.camera-card { width: 100%; }
.camera-viewport { aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: #0d1e1a; position: relative; }
.camera-viewport video { width: 100%; height: 100%; object-fit: cover; }
.camera-guide { position: absolute; inset: 16% 20%; }
.camera-guide > span { width: 44px; height: 44px; border-color: white; filter: drop-shadow(0 1px 3px #000); }
.camera-card > p { text-align: center; }
.modal-actions { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.shutter-button { width: 66px; height: 66px; border-radius: 50%; border: 3px solid white; outline: 2px solid var(--forest); background: var(--forest); display: grid; place-items: center; }
.shutter-button span { width: 45px; height: 45px; border-radius: 50%; background: white; }
.action-spacer { width: 94px; }
.research-warning { padding: 15px; border-radius: 13px; background: #fff0d5; color: #694c20; font-size: 11px; line-height: 1.5; margin-bottom: 18px; }
.research-warning strong, .research-warning span { display: block; }
.research-warning span { margin-top: 4px; }
.consent-check { display: grid !important; grid-template-columns: 20px 1fr; gap: 10px; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: white; margin-bottom: 18px; }
.consent-check input { width: 18px; height: 18px; accent-color: var(--forest); }
.consent-check span { font-size: 11px; line-height: 1.5; color: var(--ink-soft); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.research-form label { display: grid; gap: 6px; color: var(--ink); font-size: 11px; font-weight: 750; }
.research-form select, .research-form textarea { width: 100%; border: 1px solid #cbd8d1; border-radius: 11px; padding: 11px; background: white; color: var(--ink); }
.research-form > label:last-of-type { margin-top: 14px; }
.form-status { font-size: 11px !important; color: #9a493c !important; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 44px; padding-top: 58px; }
  .hero-copy { max-width: none; }
  .check-card { max-width: 590px; width: 100%; justify-self: center; }
  .results-grid { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
  .tissue-library { grid-template-columns: repeat(2, 1fr); }
  .trust-strip { gap: 0; padding-inline: 18px; }
  .trust-strip > div { padding-inline: 10px; }
}

@media (max-width: 640px) {
  .site-header { min-height: 72px; padding: 7px 16px; }
  .brand-logo { width: 54px; height: 51px; border-radius: 9px; }
  .brand-suffix { display: none; }
  .privacy-pill { font-size: 0; width: 39px; height: 39px; padding: 0; justify-content: center; }
  .hero { padding: 44px 16px 56px; }
  h1 { font-size: 49px; }
  .role-picker { grid-template-columns: 1fr; }
  .portal-identity { grid-template-columns: 42px 1fr; }
  .portal-identity a { grid-column: 2; }
  .check-card { border-radius: 22px; padding: 15px; }
  .empty-photo { padding: 24px 15px; }
  .photo-actions { flex-direction: column; }
  .photo-actions button { width: 100%; }
  .preview-wrap { height: 280px; }
  .trust-strip { grid-template-columns: 1fr; padding: 18px 20px; }
  .trust-strip > div { justify-content: flex-start; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); padding: 14px 4px; }
  .trust-strip > div:last-child { border-bottom: 0; }
  .guide-section { padding: 22px 16px 28px; }
  .clinical-guide > summary { min-height: 106px; align-items: flex-start; padding: 22px 20px; }
  .guide-summary-copy > small { max-width: 235px; }
  .guide-summary-action { align-self: center; }
  .guide-action-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .guide-content { padding: 26px 18px 20px; }
  .guide-match-note { grid-template-columns: 1fr; }
  .guide-match-note a { grid-column: 1; grid-row: auto; margin-top: 5px; }
  .guide-heading { align-items: start; flex-direction: column; }
  .guide-select-label { width: 100%; }
  .guide-copy-card { padding: 24px 20px; }
  .guide-photo-card { padding: 16px; }
  .guide-photo-heading { align-items: start; flex-direction: column; gap: 5px; }
  .guide-photo-heading strong { max-width: none; text-align: left; }
  .tissue-guide { padding-inline: 18px; }
  .tissue-library { grid-template-columns: 1fr; }
  .results-shell { padding: 55px 16px; }
  .results-heading { align-items: start; gap: 20px; flex-direction: column; }
  .summary-head { grid-template-columns: 46px 1fr; }
  .urgency-chip { grid-column: 2; justify-self: start; }
  .research-card { grid-template-columns: 46px 1fr; }
  .research-card button { grid-column: 1 / -1; width: 100%; }
  .privacy-grid, .form-grid { grid-template-columns: 1fr; }
  .modal-card { padding: 20px; border-radius: 20px; }
  .camera-guide { inset: 13% 12%; }
  footer { flex-direction: column; gap: 6px; }
}

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