:root {
  --teal: #0b4a5a;
  --teal-2: #17343b;
  --cream: #fbf5ee;
  --cream-deep: #f3e6da;
  --terracotta: #c86f43;
  --terracotta-dark: #a95430;
  --gold: #c99a55;
  --sage: #dce8e1;
  --blush: #f2dfd5;
  --white: #fff;
  --muted: #64767a;
  --border: #dfd4c8;
  --shadow: 0 18px 50px rgba(11, 74, 90, .10);
  --radius: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--teal-2);
  background: var(--cream);
  font-family: "Anuphan", system-ui, sans-serif;
  line-height: 1.65;
}
button, input { font: inherit; }
button { cursor: pointer; }
.skip-link {
  position: absolute;
  z-index: 100;
  top: -100px;
  left: 1rem;
  padding: .7rem 1rem;
  color: white;
  background: var(--teal);
}
.skip-link:focus { top: 1rem; }
.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--teal);
  text-decoration: none;
}
.brand-mark { position: relative; width: 32px; height: 36px; }
.brand-mark span {
  position: absolute;
  width: 14px;
  height: 20px;
  border-radius: 100% 0 100% 0;
  background: var(--teal);
}
.brand-mark span:nth-child(1) { left: 9px; top: 0; transform: rotate(25deg); }
.brand-mark span:nth-child(2) { left: 0; top: 14px; transform: rotate(-25deg); }
.brand-mark span:nth-child(3) { right: 0; top: 13px; transform: rotate(68deg); }
.brand-name { font-size: 1.05rem; font-weight: 700; line-height: 1.05; }
.brand-name small { display: block; font-size: .83rem; font-weight: 500; letter-spacing: .12em; }
.quiet-button, .text-button {
  border: 0;
  color: var(--teal);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.view { display: none; }
.view.is-active { display: block; animation: fadeUp .45s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }

.welcome {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 105px);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 110px) 0 80px;
}
.welcome-copy { position: relative; z-index: 2; max-width: 640px; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--terracotta-dark);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
h1, h2, p { margin-top: 0; }
.welcome h1, .result-heading h1 {
  margin-bottom: 24px;
  color: var(--teal);
  font-size: clamp(2.8rem, 7vw, 6.7rem);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: 1.05;
}
.welcome h1 em {
  color: var(--terracotta);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}
.lead { max-width: 570px; font-size: clamp(1.05rem, 2vw, 1.28rem); }
.welcome-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 32px 0;
  color: var(--muted);
  font-size: .88rem;
}
.welcome-meta i { color: var(--terracotta); font-style: normal; font-weight: 700; }
.primary-button, .secondary-button {
  min-height: 52px;
  padding: 13px 24px;
  border-radius: 100px;
  font-weight: 650;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.primary-button {
  border: 1px solid var(--terracotta);
  color: white;
  background: var(--terracotta);
  box-shadow: 0 10px 22px rgba(200, 111, 67, .2);
}
.primary-button:hover { background: var(--terracotta-dark); transform: translateY(-1px); }
.secondary-button { border: 1px solid var(--border); color: var(--teal); background: transparent; }
.secondary-button:hover { border-color: var(--teal); background: white; }
.hero-button { min-width: 245px; }
.hero-button span { padding-left: 18px; }
.medical-note { max-width: 550px; margin-top: 18px; color: var(--muted); font-size: .78rem; }
.welcome-art {
  position: absolute;
  right: -20px;
  bottom: 0;
  width: 48%;
  height: 90%;
  overflow: hidden;
  border-radius: 240px 240px 22px 22px;
  background: linear-gradient(155deg, #e9d8c5, #f5e9de 48%, #d8e2dc);
}
.sun { position: absolute; top: 11%; left: 10%; width: 120px; height: 120px; border-radius: 50%; background: #f4c991; opacity: .7; }
.portrait-shape { position: absolute; inset: 15% 2% 0 13%; }
.face { position: absolute; z-index: 2; top: 15%; left: 37%; width: 30%; height: 33%; border-radius: 48% 48% 46% 46%; background: linear-gradient(140deg, #d9a984, #f3c8a7); }
.hair { position: absolute; z-index: 3; top: 10%; left: 32%; width: 41%; height: 30%; border-radius: 55% 48% 36% 44%; border-top: 44px solid #253d3d; transform: rotate(-6deg); }
.neck { position: absolute; z-index: 1; top: 41%; left: 45%; width: 16%; height: 20%; background: #e7b895; }
.body-shape { position: absolute; bottom: -8%; left: 15%; width: 75%; height: 58%; border-radius: 50% 50% 0 0; background: linear-gradient(145deg, var(--teal), #16333a); transform: rotate(-5deg); }
.art-quote {
  position: absolute;
  z-index: 4;
  right: 5%;
  bottom: 7%;
  max-width: 230px;
  color: white;
  font-size: clamp(1rem, 2vw, 1.35rem);
  text-align: right;
}
.line-flower { position: absolute; z-index: 1; width: 160px; height: 160px; opacity: .55; }
.flower-one { top: 9%; right: -2%; }
.flower-two { bottom: 7%; left: -3%; transform: scale(.75); }
.line-flower b { position: absolute; left: 78px; top: 50px; width: 1px; height: 120px; background: var(--gold); transform: rotate(15deg); }
.line-flower i { position: absolute; width: 48px; height: 72px; border: 1px solid var(--gold); border-radius: 100% 0 100% 0; }
.line-flower i:nth-child(1) { left: 28px; top: 12px; }
.line-flower i:nth-child(2) { left: 75px; top: 5px; transform: rotate(50deg); }
.line-flower i:nth-child(3) { left: 62px; top: 56px; transform: rotate(90deg); }

.assessment { width: min(900px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 80px; }
.progress-shell { margin: 8px 0 48px; }
.progress-copy { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--muted); font-size: .82rem; }
.progress-track { height: 7px; overflow: hidden; border-radius: 100px; background: #e6ddd3; }
.progress-track div { width: 0; height: 100%; border-radius: inherit; background: var(--terracotta); transition: width .35s ease; }
.step-dots { display: flex; justify-content: space-between; margin-top: 10px; color: #9a9f9e; font-size: .68rem; }
.step-dots span.is-current { color: var(--teal); font-weight: 700; }
.question-shell {
  padding: clamp(24px, 5vw, 54px);
  border: 1px solid rgba(201, 154, 85, .35);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .72);
  box-shadow: var(--shadow);
}
.section-intro { max-width: 650px; margin-bottom: 35px; }
.section-intro h2 { margin-bottom: 8px; color: var(--teal); font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.25; }
.section-intro > p:last-child { color: var(--muted); }
.question-group { margin: 0 0 38px; padding: 0; border: 0; }
.question-group legend { width: 100%; margin-bottom: 14px; color: var(--teal-2); font-size: 1.05rem; font-weight: 650; }
.question-number { display: inline-block; min-width: 28px; color: var(--terracotta); font-size: .76rem; }
.optional { color: var(--muted); font-size: .75rem; font-weight: 400; }
.option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.option-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.option {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 13px 16px 13px 48px;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--teal-2);
  background: white;
  transition: border .2s, background .2s, transform .2s;
}
.option:hover { border-color: var(--gold); transform: translateY(-1px); }
.option input { position: absolute; opacity: 0; }
.option::before {
  content: "";
  position: absolute;
  left: 17px;
  width: 18px;
  height: 18px;
  border: 1.5px solid #9baaa9;
  border-radius: 50%;
}
.option:has(input:checked) { border-color: var(--terracotta); background: #fff8f3; box-shadow: 0 0 0 1px var(--terracotta); }
.option:has(input:checked)::before { border: 5px solid var(--terracotta); }
.age-input {
  width: 100%;
  max-width: 220px;
  min-height: 58px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--teal);
  background: white;
  font-size: 1.15rem;
}
.age-input:focus, button:focus-visible, input:focus-visible { outline: 3px solid rgba(200, 111, 67, .28); outline-offset: 2px; }
.scale-hint { margin: -5px 0 24px; padding: 12px 14px; border-radius: 12px; color: var(--muted); background: var(--sage); font-size: .78rem; }
.form-error { min-height: 26px; color: #a43c31; font-size: .86rem; }
.form-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 24px; border-top: 1px solid var(--border); }

.results { width: min(1060px, calc(100% - 32px)); margin: 0 auto; padding: 45px 0 80px; }
.result-heading { max-width: 730px; margin-bottom: 40px; }
.result-heading h1 { margin-bottom: 14px; font-size: clamp(2.3rem, 6vw, 4.8rem); }
.result-heading > p:last-child { color: var(--muted); font-size: 1.05rem; }
.alert-card {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  padding: 20px;
  border: 1px solid #dc8672;
  border-radius: 18px;
  background: #fff0ec;
}
.alert-icon { display: grid; flex: 0 0 34px; height: 34px; place-items: center; border-radius: 50%; color: white; background: #b74332; font-weight: 700; }
.alert-card strong { display: block; color: #85372d; }
.alert-card[hidden] { display: none !important; }
.alert-card--clear { border-color: #b9d8cf; background: #edf7f3; }
.alert-card--clear .alert-icon { background: #2f8a73; }
.alert-card--clear strong { color: #155f51; }
.alert-title-reason { display: block !important; margin-top: 8px; color: #5d3934; font-size: .94rem; font-weight: 500; line-height: 1.6; }
.alert-card p { margin: 4px 0 0; }
.result-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; }
.score-card, .result-card, .next-step-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow);
}
.score-card { display: flex; align-items: center; gap: 32px; padding: clamp(24px, 5vw, 44px); }
.score-ring {
  --score: 0;
  display: grid;
  flex: 0 0 190px;
  height: 190px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--terracotta) calc(var(--score) * 1%), #eadfd4 0);
}
.score-ring::before { content: ""; position: absolute; width: 154px; height: 154px; border-radius: 50%; background: var(--cream); }
.score-ring div { position: relative; z-index: 1; color: var(--teal); }
.score-ring strong { font-size: 3.4rem; line-height: 1; }
.score-ring span { font-size: 1rem; }
.label, .card-kicker { margin-bottom: 6px; color: var(--terracotta-dark); font-size: .74rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.score-copy h2, .result-card h2, .next-step-card h2 { margin-bottom: 10px; color: var(--teal); line-height: 1.25; }
.score-copy p:not(.label) { color: var(--muted); }
.confidence { display: inline-block; padding: 6px 10px; border-radius: 100px; color: var(--teal); background: var(--sage); font-size: .73rem; }
.result-card { padding: clamp(23px, 4vw, 34px); }
.reason-list, .next-step-card ul { margin: 16px 0 0; padding: 0; list-style: none; }
.reason-list li, .next-step-card li { position: relative; margin: 10px 0; padding-left: 28px; }
.reason-list li::before, .next-step-card li::before { content: "✓"; position: absolute; left: 0; color: var(--terracotta); font-weight: 700; }
.symptom-card { display: grid; grid-template-columns: .7fr 1.3fr; gap: 30px; margin-top: 20px; }
.bar-row { display: grid; grid-template-columns: 145px 1fr 45px; align-items: center; gap: 12px; margin: 16px 0; font-size: .85rem; }
.bar-track { height: 9px; overflow: hidden; border-radius: 100px; background: #eadfd4; }
.bar-fill { height: 100%; border-radius: inherit; background: var(--terracotta); }
.bar-value { color: var(--muted); text-align: right; }
.next-step-card { display: grid; grid-template-columns: 80px 1fr; gap: 25px; margin-top: 20px; padding: clamp(24px, 5vw, 42px); color: white; border-color: var(--teal); background: var(--teal); }
.next-step-card h2, .next-step-card .card-kicker { color: white; }
.next-step-number { font-family: Georgia, serif; font-size: 3rem; color: #e5bb7e; }
.next-step-card li::before { color: #e5bb7e; }

.clinic-review-card { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 20px; padding: clamp(24px, 5vw, 38px); border: 1px solid rgba(6, 75, 84, .14); border-radius: 28px; background: linear-gradient(135deg, #fff 0%, #edf7f4 100%); box-shadow: 0 18px 45px rgba(12, 67, 74, .08); }
.clinic-review-card > div { max-width: 720px; }
.clinic-review-card h2 { margin: 6px 0 10px; color: var(--teal); line-height: 1.3; }
.clinic-review-card p:last-child { margin: 0; color: var(--muted); }
.clinic-line-button { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; min-height: 54px; padding: 13px 22px; border-radius: 999px; color: #fff; background: #06c755; font-weight: 700; text-decoration: none; box-shadow: 0 12px 28px rgba(6, 199, 85, .2); }
.clinic-line-button:hover { background: #05ae4a; }
.clinic-line-button { border: 0; cursor: pointer; font: inherit; }
.clinic-share-actions { flex: 0 0 auto; text-align: center; }
.share-line-status { max-width: 310px; margin: 10px 0 0 !important; font-size: .88rem; color: var(--muted); }
.clinic-detail-consent { display: flex; gap: 12px; grid-column: 1 / -1; width: min(100%, 620px); margin: 0 auto 8px; padding: 16px; border: 1px solid #cbded9; border-radius: 16px; text-align: left; background: #fff; cursor: pointer; }
.clinic-detail-consent input { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 2px; accent-color: var(--teal); }
.clinic-detail-consent strong, .clinic-detail-consent small { display: block; }
.clinic-detail-consent strong { color: var(--teal); line-height: 1.55; }
.clinic-detail-consent small { margin-top: 6px; color: var(--muted); line-height: 1.6; }
.clinic-save-button:disabled { cursor: not-allowed; opacity: .5; box-shadow: none; }
.result-detail-download { grid-column: 1 / -1; width: min(100%, 360px); margin: 4px auto 0; text-decoration: none; background: #e9f3f0; color: var(--teal); }

.result-actions { display: flex; gap: 12px; margin-top: 30px; }
.consent-card {
  margin-top: 20px;
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid rgba(201, 154, 85, .55);
  border-radius: var(--radius);
  background: #fffaf5;
  box-shadow: var(--shadow);
}
.consent-card h2 { margin-bottom: 8px; color: var(--teal); }
.consent-card > div > p:not(.card-kicker):not(.save-status) { max-width: 760px; color: var(--muted); }
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 22px 0 18px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: white;
}
.consent-check input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 3px; accent-color: var(--terracotta); }
.consent-card .primary-button:disabled { cursor: not-allowed; opacity: .45; transform: none; }
.save-status { min-height: 24px; margin: 12px 0 0; color: var(--teal); font-size: .85rem; }
.save-status.is-error { color: #a43c31; }
.result-disclaimer { max-width: 760px; margin: 30px auto 0; color: var(--muted); font-size: .78rem; text-align: center; }

footer {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px max(16px, calc((100% - 1180px)/2));
  color: #e4eeee;
  background: var(--teal);
  font-size: .8rem;
}
footer p { margin: 0; }
.footer-brand { color: white; font-weight: 700; }
footer .text-button { margin-left: auto; color: white; }

dialog { width: min(640px, calc(100% - 30px)); max-height: 85vh; padding: 32px; overflow: auto; border: 0; border-radius: 22px; color: var(--teal-2); background: var(--cream); box-shadow: 0 20px 80px rgba(0,0,0,.24); }
dialog::backdrop { background: rgba(10,35,40,.55); backdrop-filter: blur(3px); }
.dialog-close { position: absolute; top: 12px; right: 15px; border: 0; color: var(--teal); background: transparent; font-size: 1.8rem; }
dialog h2 { color: var(--teal); }
dialog h3 { margin-top: 24px; color: var(--teal); }
dialog li { margin-bottom: 8px; }

@media (max-width: 820px) {
  .welcome { padding-top: 35px; }
  .welcome-copy { max-width: 100%; }
  .welcome-art { position: relative; right: auto; bottom: auto; width: 100%; height: 490px; margin-top: 45px; border-radius: 180px 180px 20px 20px; }
  .result-grid { grid-template-columns: 1fr; }
  .symptom-card { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .site-header { padding: 15px 0; }
  .quiet-button { font-size: .75rem; }
  .welcome { min-height: auto; }
  .welcome h1 { font-size: clamp(2.65rem, 14vw, 4.2rem); }
  .welcome-meta { display: grid; }
  .hero-button { width: 100%; }
  .welcome-art { height: 410px; }
  .art-quote { font-size: 1rem; }
  .step-dots span { display: none; }
  .step-dots span.is-current { display: block; }
  .option-grid, .option-grid.compact { grid-template-columns: 1fr; }
  .question-shell { padding: 24px 18px; }
  .form-actions { position: sticky; bottom: 0; margin-inline: -18px; padding: 14px 18px; background: rgba(251,245,238,.96); backdrop-filter: blur(8px); }
  .form-actions button { flex: 1; padding-inline: 12px; }
  .score-card { display: block; text-align: center; }
  .score-ring { width: 170px; height: 170px; margin: 0 auto 25px; }
  .score-ring::before { width: 138px; height: 138px; }
  .bar-row { grid-template-columns: 105px 1fr 38px; gap: 8px; }
  .next-step-card { grid-template-columns: 1fr; }
  .next-step-number { font-size: 2rem; }
  .clinic-review-card { display: block; padding: 24px 20px; }
  .clinic-line-button { width: 100%; margin-top: 18px; }
  .result-actions { display: grid; }
  footer { display: block; text-align: center; }
  footer p { margin: 8px 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
@media print {
  .site-header, footer, .result-actions, .quiet-button { display: none !important; }
  body { background: white; }
  .results { width: 100%; padding: 0; }
  .result-card, .score-card, .next-step-card { box-shadow: none; break-inside: avoid; }
  .next-step-card { color: var(--teal-2); background: white; }
  .next-step-card h2, .next-step-card .card-kicker { color: var(--teal); }
}

.alert-card ul { margin: 10px 0 0; padding-left: 1.25rem; }
.alert-card li { margin: 5px 0; }
#alertAction { font-weight: 650; }
.score-thresholds { margin: 12px 0; color: #657b80; font-size: .78rem; line-height: 1.65; }
.test-run-check { margin-top: 10px; background: #f8f3ec; }

.final-action { margin-top: 34px; }

.clinic-share-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; min-width: min(100%, 660px); }
.clinic-save-button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 13px 20px; border: 1px solid #0b5966; border-radius: 999px; color: #0b5966; background: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.clinic-share-actions .clinic-line-button { width: auto; margin: 0; }
.clinic-share-actions .share-line-status, .result-image-preview { grid-column: 1 / -1; }
.result-image-preview { width: min(100%, 360px); margin: 8px auto 0; border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 12px 30px rgba(12,67,74,.12); }
.result-image-download { grid-column: 1 / -1; width: min(100%, 360px); margin: 4px auto 0; text-decoration: none; }
.result-image-download[hidden], .result-detail-download[hidden] { display: none; }
@media (max-width: 700px) { .clinic-share-actions { grid-template-columns: 1fr; width: 100%; margin-top: 18px; } .clinic-share-actions .clinic-line-button, .clinic-save-button { width: 100%; } .clinic-share-actions .share-line-status, .result-image-preview { grid-column: 1; } }

.statistics-notice { max-width: 980px; margin: 12px auto 28px; padding: 14px 18px; border-radius: 14px; color: #536b70; background: #eef5f3; font-size: .88rem; line-height: 1.7; }

.external-browser-gate { min-height: 100svh; padding: 28px 20px; align-items: center; justify-content: center; background: radial-gradient(circle at top right, #e5f2ef 0, transparent 42%), #fbf6f0; }
.external-browser-gate[hidden] { display: none; }
.external-browser-card { width: min(100%, 560px); padding: 34px 26px; border: 1px solid #d8e2df; border-radius: 28px; text-align: center; background: rgba(255,255,255,.96); box-shadow: 0 24px 60px rgba(11,74,90,.13); }
.external-browser-card h1 { margin: 8px 0 14px; color: #0b4a5a; font-size: clamp(1.8rem,7vw,2.65rem); line-height: 1.2; }
.external-browser-card > p:not(.card-kicker):not(.external-browser-status) { color: #536b70; line-height: 1.8; }
.external-open-button, .external-copy-button { width: 100%; margin-top: 14px; }
.external-browser-help { margin-top: 24px; padding: 18px; border-radius: 18px; text-align: left; color: #38565c; background: #eef5f3; }
.external-browser-help p { margin: 8px 0 0; line-height: 1.65; }
.external-browser-status { min-height: 26px; margin: 14px 0 0; color: #a75a3d; font-weight: 600; }
.in-app-browser body > .skip-link, .in-app-browser body > .site-header, .in-app-browser body > main, .in-app-browser body > footer { display: none !important; }
.in-app-browser .external-browser-gate { display: flex; }

.result-line-after-save { grid-column: 1 / -1; width: min(100%, 360px) !important; margin: 4px auto 0 !important; }
.restart-last {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  margin-bottom: 12px;
}
.restart-last .primary-button,
.restart-last .secondary-button { width: min(100%, 420px); }

.result-line-after-save[hidden] { display: none !important; }


.clinic-submit-form { display: grid; gap: 14px; }
.clinic-submit-form > p { margin: 0; line-height: 1.7; }
.clinic-submit-consent { width: 100%; margin-top: 4px; }
.clinic-submit-button { width: 100%; margin-top: 4px; }
.clinic-submit-status { max-width: none; color: #155f51; }
.named-submission-list { display: grid; gap: 12px; }
.named-submission-card { overflow: hidden; border: 1px solid #d9e4e1; border-radius: 16px; background: #fff; }
.named-submission-card summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; cursor: pointer; }
.named-submission-card summary > span { display: grid; gap: 4px; }
.named-submission-card summary small { color: #687d82; font-weight: 400; }
.named-answer-list { display: grid; gap: 1px; padding: 1px; background: #e5ecea; }
.named-answer-row { display: grid; grid-template-columns: 150px minmax(240px,1fr) minmax(150px,.65fr); gap: 16px; padding: 14px 18px; background: #fff; }
.named-answer-row small { color: #a75a3d; }
.named-answer-row span { color: #526a70; }
@media (max-width: 700px) {
  .named-submission-card summary { align-items: flex-start; flex-direction: column; }
  .named-answer-row { grid-template-columns: 1fr; gap: 5px; }
}

.clinic-submit-line-button { display: flex; align-items: center; justify-content: center; width: 100%; color: #fff; background: #06c755; text-decoration: none; }
.clinic-submit-line-button[hidden], .clinic-submit-line-help[hidden] { display: none; }
.clinic-submit-line-help { margin: -2px 0 0; color: #5e7479; font-size: .88rem; text-align: center; }

.expert-plan { margin-top: 20px; padding: clamp(24px, 5vw, 40px); border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(145deg, #fff 0%, #f4faf8 100%); box-shadow: var(--shadow); }
.expert-plan-heading { max-width: 780px; }
.expert-plan-heading h2 { margin: 6px 0 10px; color: var(--teal); }
.expert-plan-heading > p:last-child { color: var(--muted); line-height: 1.75; }
.expert-plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.expert-plan-grid article { padding: 22px; border: 1px solid rgba(7,63,77,.1); border-radius: 20px; background: rgba(255,255,255,.86); }
.expert-plan-grid h3 { margin: 8px 0 14px; color: var(--teal); }
.expert-plan-grid ul { margin: 0; padding: 0; list-style: none; }
.expert-plan-grid li { position: relative; margin: 11px 0; padding-left: 22px; color: var(--muted); line-height: 1.65; }
.expert-plan-grid li::before { content: "•"; position: absolute; left: 3px; color: var(--terracotta); font-weight: 800; }
.expert-plan-number { color: var(--terracotta-dark); font-family: Georgia, serif; font-size: 1.35rem; font-weight: 700; }
@media (max-width: 820px) { .expert-plan-grid { grid-template-columns: 1fr; } }
@media print { .expert-plan { box-shadow: none; break-inside: auto; } .expert-plan-grid article { break-inside: avoid; } }
