:root {
  --teal: #14696b;
  --teal-dark: #0c5356;
  --ink: #0c3646;
  --body: #475c68;
  --wash: #f4f8f8;
  --line: #dde7e9;
}
body { background: #f4f8f8; }
.header { border-bottom: 1px solid #e1eaea; }
.header-inner, .container { max-width: 1184px; padding-left: 28px; padding-right: 28px; }
.header-inner { min-height: 112px; }
.brand-lockup { gap: 0; flex-shrink: 0; }
.brand-logo { display: block; width: 354px; height: auto; }
.header-tools { gap: 22px; }
.research-pill { color: #4c6570; background: #f2f7f6; border: 1px solid #e2ece9; border-radius: 20px; padding: 5px 12px; gap: 7px; font-size: 11px; }
.research-pill i { width: 5px; height: 5px; background: #14696b; }
.research-pill small { margin-left: 4px; padding-left: 8px; border-left: 1px solid #dbe6e2; }
.language-button { display: flex; align-items: center; gap: 10px; border: 1px solid #e0e8e9; padding: 5px 9px; border-radius: 7px; font-size: 11px; }
.language-button .active { color: #14696b; font-weight: 600; }
.language-divider { height: 13px; border-left: 1px solid #dce5e5; }
.hero { margin: 27px 0 20px; }
.hero h1 { font-family: "Microsoft YaHei", "Segoe UI", sans-serif; letter-spacing: .4px; font-size: 28px; font-weight: 650; margin: 0 0 9px; }
.eyebrow { color: #397e7c; font-size: 11px; font-weight: 500; letter-spacing: 1px; margin-bottom: 9px; }
.hero-copy { max-width: 730px; font-size: 12px; }
.privacy-note { margin-top: 18px; }
.scope-banner { background: #eaf2f0; border-color: #dfeae7; padding: 11px 18px; margin-bottom: 21px; }
.workspace { grid-template-columns: 1.12fr 1fr; gap: 22px; }
.card { border-color: #dce6e9; padding: 23px; border-radius: 14px; }
.input-card, .result-card { min-height: 905px; }
h2 { font-size: 20px; font-weight: 650; }
.step-number { background: #e9f2ef; color: #14696b; }
.report-icon { color: #14696b; background: #e6f0eb; }
.report-upload { background: #f5f8f7; border-color: #e1eae8; }
.group-title::before { background: #7fac9e; }
.button.primary { background: #14696b; border-color: #14696b; }
.button.primary:hover:not(:disabled) { background: #0c5356; }
.primary-result { background: linear-gradient(115deg, #eaf4f0, #f0f7f5); border-color: #d7e7e0; padding-top: 13px; }
.outcome-meta { color: #14696b; }
.outcome-meta small { background: #e2eee7; border-color: #cee1d4; color: #346e60; }
.risk-number { color: #14696b; }
progress::-webkit-progress-value { background: #14696b; }
.derived-grid > div { background: #f3f6f5; }
.interpret-box { background: #faf8f3; }
.model-details > summary { color: #14696b; }
.below-card { margin: 19px 0 22px; }
footer { font-size: 10px; padding: 17px 0 20px; }
html[lang=en] .hero { align-items: center; }
html[lang=en] .hero > div { max-width: 800px; }
html[lang=en] .hero h1 { font: 650 30px/1.35 "Segoe UI", Arial, sans-serif; letter-spacing: -.6px; }
html[lang=en] .hero-copy { max-width: 745px; font-size: 12px; line-height: 1.8; }
html[lang=en] .privacy-note { flex-shrink: 0; }
html[lang=en] .input-card, html[lang=en] .result-card { min-height: 940px; }
html[lang=en] h2 { font-size: 19px; }
html[lang=en] .field-label { flex-wrap: nowrap; }
html[lang=en] .field-context { font-size: 10px; }
html[lang=en] .outcome-title { font-size: 17px; }
@media(max-width: 800px) {
  .header-inner, .container { padding-left: 20px; padding-right: 20px; }
  .header-inner { min-height: 98px; }
  .brand-logo { width: 300px; }
  .research-pill { display: none; }
  .workspace { grid-template-columns: 1fr; }
  .input-card, .result-card, html[lang=en] .input-card, html[lang=en] .result-card { min-height: 0; }
}
@media(max-width: 480px) {
  .header-inner, .container { padding-left: 16px; padding-right: 16px; }
  .header-inner { min-height: 86px; gap: 8px; }
  .brand-logo { width: 255px; }
  .header-tools { gap: 0; }
  .language-button { gap: 6px; padding: 4px 7px; font-size: 10px; }
  .hero h1 { font-size: 24px; }
  .card { padding: 20px 17px; }
  html[lang=en] .field-label { flex-wrap: wrap; }
}

/* Production integration: compact headers, narrow screens, and printed results. */
.brand-lockup { flex-shrink: 1; min-width: 0; }
.brand-logo { max-width: 100%; object-fit: contain; height: auto; }
.header-tools { flex-shrink: 0; }
.login-brand-logo { width: 300px; max-width: 100%; margin: 0 0 18px; }
progress::-moz-progress-bar { background: #14696b; }
@media (max-width: 480px) {
  .section-top { flex-wrap: wrap; row-gap: 7px; }
  .hero-copy, .subtle, .model-summary { overflow-wrap: anywhere; }
  html[lang=en] .hero h1 { font-size: 26px; }
}
@media (max-width: 359px) {
  .header-inner, .container { padding-left: 12px; padding-right: 12px; }
  .header-inner { min-height: 76px; }
  .brand-logo { width: 220px; }
  .hero h1 { font-size: 22px; }
  .card { padding: 18px 14px; }
}
@media print {
  body { background: white; }
  .header-inner, .container { max-width: none; padding-left: 0; padding-right: 0; }
  .header-inner { min-height: 76px; }
  .brand-logo { width: 270px; }
  .input-card, .result-card, html[lang=en] .input-card, html[lang=en] .result-card { min-height: 0; padding: 18px; }
}

/* Revised model description, matching the approved content preview. */

.model-details { margin-top: 16px; }
.model-description { border-top: 1px solid #e7eeec; margin-top: 6px; padding-top: 8px; }
.model-details .model-description p { margin: 0; color: #475c68; font-size: 12px; line-height: 1.95; text-align: justify; }
.model-details[open] > summary { font-size: 12px; font-weight: 600; }
.result-actions { padding-top: 15px; }
html[lang=en] .model-details .model-description p { font-size: 12px; line-height: 1.85; text-align: left; }

/* Probability-based interpretation: restrained colors, readable copy and responsive chips. */
.interpret-box.interpretation-card { --interpret-accent: #526b65; background: #f5f8f6; border-color: #dfe8e3; padding: 14px 15px; color: var(--ink); }
.interpretation-card[data-tone="followup"] { --interpret-accent: #2b7065; background: #eff7f3; border-color: #d7e9df; }
.interpretation-card[data-tone="assessment"] { --interpret-accent: #866439; background: #fbf7ef; border-color: #eaddc6; }
.interpretation-card[data-tone="incomplete"] { --interpret-accent: #44677b; background: #f1f6f8; border-color: #dce7ed; }
.interpretation-card[data-tone="research"] { --interpret-accent: #806842; background: #f8f5ef; border-color: #e7dfcf; }
.interpretation-card[data-tone="review"] { --interpret-accent: #925b48; background: #fbf3ef; border-color: #ebd7cf; }
.interpretation-card h3 { color: var(--interpret-accent); font-size: 11px; font-weight: 500; margin: 0; gap: 6px; }
.interpretation-card h4 { margin: 7px 0 8px; font-size: 13px; line-height: 1.65; color: var(--ink); font-weight: 600; }
.interpret-metrics { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 9px; font-size: 10px; color: #5b6c70; margin-bottom: 9px; }
.interpret-value { padding: 2px 7px; border: 1px solid #ffffff; border-radius: 5px; background: #ffffffb3; color: var(--interpret-accent); font: 600 12px/1.6 "Segoe UI", Arial, sans-serif; }
.interpret-relation { color: var(--interpret-accent); font-size: 10px; margin-left: auto; white-space: nowrap; }
.interpretation-card .interpret-copy { font-size: 11.5px; line-height: 1.9; color: #485d63; margin: 0; overflow-wrap: anywhere; }
.interpret-clinical { border-left: 2px solid #c4ad87; padding: 0 0 0 9px; margin: 10px 0 0; color: #795e3b; font-size: 11px; line-height: 1.85; }
.interpret-note { margin: 10px 0 0; padding-top: 9px; border-top: 1px solid #526b651c; font-size: 10px; color: #657576; line-height: 1.85; }
.interpret-precision { font-size: 10px; line-height: 1.8; color: #687977; margin: 7px 0 0; }
.interpretation-card[data-state="waiting"] h4, .interpretation-card[data-state="calculating"] h4 { margin-bottom: 4px; font-size: 12px; color: #405d59; }
html[lang=en] .interpretation-card h4 { font-size: 13px; line-height: 1.5; }
html[lang=en] .interpretation-card .interpret-copy { font-size: 11.5px; line-height: 1.85; }
@media(max-width:480px) {
  .interpret-box.interpretation-card { padding: 13px; }
  .interpretation-card h4 { font-size: 13px; }
  .interpretation-card .interpret-copy, html[lang=en] .interpretation-card .interpret-copy { font-size: 12px; line-height: 1.9; }
  .interpret-relation { margin-left: 0; }
}
@media print {
  .interpret-box.interpretation-card { break-inside: avoid; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
