:root {
    color-scheme: light;
    --navy: #092942;
    --navy-deep: #061b2d;
    --teal: #0a716d;
    --teal-dark: #075450;
    --teal-soft: #dfeeed;
    --gold: #c88a2c;
    --gold-soft: #f3e2c5;
    --ink: #142d2e;
    --muted: #677979;
    --cream: #f5f3eb;
    --surface: #ffffff;
    --surface-soft: #f7faf9;
    --line: #dce6e3;
    --success: #168267;
    --warning: #b77717;
    --danger: #b33e4a;
    --shadow: 0 24px 70px rgba(8, 42, 43, 0.1);
    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 32px;
    --font: Tahoma, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: var(--font); line-height: 1.7; }
button, input, select, textarea { color: inherit; font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; }
img { max-width: 100%; }
::selection { color: #fff; background: var(--teal); }
:focus-visible { outline: 3px solid rgba(200, 138, 44, 0.7); outline-offset: 3px; }

.container { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; inset-inline-start: 16px; top: -100px; z-index: 9999; padding: 10px 16px; border-radius: 10px; color: #fff; background: var(--navy); }
.skip-link:focus { top: 16px; }

.emergency-strip { display: flex; min-height: 34px; align-items: center; justify-content: center; gap: 8px; padding: 6px 20px; color: #f6ecdc; background: var(--navy-deep); text-align: center; font-size: .72rem; }
.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(10, 74, 72, .1); background: rgba(250, 249, 244, .92); backdrop-filter: blur(18px); }
.site-header__inner { display: flex; min-height: 78px; align-items: center; gap: 28px; }
.brand { display: inline-flex; min-width: max-content; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1.2; }
.brand strong { font-size: .95rem; }
.brand small { margin-top: 4px; color: var(--muted); font: 500 .58rem/1.2 Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.brand__mark { position: relative; display: grid; width: 40px; height: 40px; place-items: center; border-radius: 13px; background: var(--teal); transform: rotate(45deg); }
.brand__mark span { position: absolute; width: 18px; height: 6px; border-radius: 999px; background: #fff; }
.brand__mark span:last-child { transform: rotate(90deg); }
.brand--inverse, .brand--inverse small { color: #fff; }
.brand--inverse small { opacity: .58; }
.brand--footer .brand__mark { background: var(--gold); }
.site-nav { display: flex; align-items: center; gap: 24px; margin-inline: auto; }
.site-nav a, .text-link { position: relative; color: #415c5b; font-size: .82rem; font-weight: 700; text-decoration: none; }
.site-nav a::after { position: absolute; inset-inline: 0; bottom: -9px; height: 2px; content: ""; background: var(--teal); transform: scaleX(0); transition: transform .18s ease; }
.site-nav a:hover::after { transform: scaleX(1); }
.site-actions { display: flex; align-items: center; gap: 14px; }
.language-select select { min-height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.menu-toggle { display: none; border: 0; background: transparent; }

.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 10px; padding: 0 23px; border: 1px solid var(--teal); border-radius: 999px; color: #fff; background: var(--teal); box-shadow: 0 12px 30px rgba(10, 113, 109, .18); font-weight: 800; text-decoration: none; transition: background .18s ease, transform .18s ease, box-shadow .18s ease; }
.button:hover { background: var(--teal-dark); box-shadow: 0 16px 36px rgba(10, 113, 109, .25); transform: translateY(-2px); }
.button--small { min-height: 40px; padding: 0 16px; border-radius: 12px; font-size: .78rem; }
.button--ghost { border-color: rgba(255,255,255,.35); color: #fff; background: transparent; box-shadow: none; }
.button--ghost:hover { color: var(--navy); background: #fff; }
.button--ghost-dark { border-color: #b9ccca; color: var(--teal-dark); background: transparent; box-shadow: none; }
.button--ghost-dark:hover { color: #fff; background: var(--teal); }
.button--light { border-color: #fff; color: var(--navy); background: #fff; }
.button--light:hover { color: #fff; background: transparent; }
.button--block { width: 100%; }
.icon-button { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.circle-link { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; border-radius: 50%; color: #fff; background: var(--navy); text-decoration: none; }

.eyebrow, .card-kicker { display: inline-flex; align-items: center; gap: 7px; color: var(--teal); font: 800 .67rem/1.2 Arial, sans-serif; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow::before { width: 22px; height: 2px; content: ""; background: currentColor; }
.eyebrow--gold { color: #f0c677; }
.eyebrow--dark { color: #a6d2ce; }

.hero-section { position: relative; overflow: hidden; min-height: 690px; color: #fff; background: var(--navy); }
.hero-section::before { position: absolute; inset: 0; content: ""; opacity: .34; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to left, transparent 10%, #000 70%); }
.hero-section::after { position: absolute; width: 480px; height: 480px; inset-inline-end: -150px; top: -160px; border-radius: 50%; content: ""; background: rgba(10,113,109,.42); filter: blur(10px); }
.hero-grid { position: relative; z-index: 1; display: grid; min-height: 690px; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 80px; padding-block: 80px; }
.hero-copy h1, .page-hero h1 { max-width: 780px; margin: 24px 0 18px; font-size: clamp(2.65rem, 6vw, 5.4rem); line-height: 1.12; letter-spacing: -.055em; }
.hero-copy > p { max-width: 700px; margin: 0; color: #c7d8dd; font-size: 1rem; line-height: 2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 42px; color: #c8d9dd; font-size: .74rem; }
.trust-row span { display: flex; align-items: center; gap: 6px; }
.trust-row i { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; color: #fff; background: rgba(255,255,255,.12); font-style: normal; }

.journey-visual { position: relative; min-height: 470px; }
.journey-card { position: absolute; border: 1px solid rgba(255,255,255,.2); border-radius: 24px; background: rgba(255,255,255,.09); box-shadow: 0 32px 90px rgba(0,0,0,.28); backdrop-filter: blur(18px); }
.journey-card--main { inset: 80px 20px 60px 50px; z-index: 2; padding: 38px; transform: rotate(-2deg); }
[dir="rtl"] .journey-card--main { transform: rotate(2deg); }
.journey-card__label { color: #a9c9ce; font: 800 .62rem Arial; letter-spacing: .16em; }
.journey-card--main > strong { display: block; margin-top: 36px; font: 800 clamp(2.4rem, 5vw, 4.5rem)/1 Arial; letter-spacing: -.06em; }
.journey-line { display: flex; justify-content: space-between; margin-top: 72px; background: linear-gradient(90deg, var(--gold), #63aaa4); height: 2px; }
.journey-line span { width: 13px; height: 13px; margin-top: -6px; border: 3px solid #fff; border-radius: 50%; background: var(--teal); }
.journey-steps { display: flex; justify-content: space-between; margin-top: 18px; color: #b9d0d4; font: 700 .6rem Arial; }
.journey-card--status { z-index: 3; inset-inline-start: 0; bottom: 5px; width: 250px; padding: 18px 20px; }
.journey-card--status strong, .journey-card--status small { display: block; margin-inline-start: 22px; }
.journey-card--status small { color: #a9c5c8; font-size: .65rem; }
.journey-card--languages { z-index: 3; inset-inline-end: 0; top: 30px; padding: 16px 20px; }
.journey-card--languages strong, .journey-card--languages small { display: block; }
.journey-card--languages small { color: #a9c5c8; font: .62rem Arial; }
.visual-orbit { position: absolute; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.visual-orbit--one { inset: 15px -30px 0 15px; }
.visual-orbit--two { inset: 95px 30px 70px 90px; }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #45d3a5; box-shadow: 0 0 0 5px rgba(69,211,165,.15); }

.section { padding-block: 100px; }
.section--cream { background: var(--cream); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 42px; }
.section-heading h2 { max-width: 700px; margin: 14px 0 0; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.2; letter-spacing: -.04em; }
.section-heading > p { max-width: 460px; margin: 0; color: var(--muted); }
.section-heading--light h2 { color: #fff; }
.section-heading--light > p { color: #bcd1d4; }
.section-action { display: flex; justify-content: center; margin-top: 34px; }

.treatment-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.treatment-card { overflow: hidden; border: 1px solid rgba(12,65,64,.1); border-radius: 26px; background: #fff; box-shadow: 0 14px 50px rgba(17,58,57,.07); transition: transform .2s ease, box-shadow .2s ease; }
.treatment-card:hover { box-shadow: var(--shadow); transform: translateY(-6px); }
.treatment-card__art { position: relative; display: flex; height: 160px; align-items: end; justify-content: end; overflow: hidden; padding: 20px; background: var(--teal-soft); }
.treatment-card__art::before, .treatment-card__art::after { position: absolute; border-radius: 50%; content: ""; }
.treatment-card__art::before { width: 140px; height: 140px; inset: 25px auto auto 20px; border: 22px solid rgba(255,255,255,.5); }
.treatment-card__art::after { width: 90px; height: 90px; inset: -20px 10px auto auto; background: rgba(10,113,109,.14); }
.treatment-card__art--2 { background: #efe7d6; }
.treatment-card__art--3 { background: #e8e0eb; }
.treatment-card__art--4 { background: #dbe7eb; }
.treatment-card__art span { position: relative; z-index: 1; color: rgba(9,41,66,.65); font: 800 2.7rem/1 Arial; }
.treatment-card__body { padding: 24px; }
.treatment-card h3 { margin: 10px 0; font-size: 1.15rem; }
.treatment-card p { min-height: 95px; margin: 0; color: var(--muted); font-size: .78rem; }
.treatment-card__meta { display: grid; gap: 6px; margin-block: 18px; color: #516a69; font-size: .68rem; }
.treatment-card__body > a { color: var(--teal); font-size: .76rem; font-weight: 800; text-decoration: none; }

.process-section { color: #fff; background: var(--teal-dark); }
.process-list { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; padding: 0; list-style: none; }
.process-list li { position: relative; min-height: 280px; padding: 30px 24px; border-inline-start: 1px solid rgba(255,255,255,.13); }
.process-list li:first-child { border-inline-start: 0; }
.process-list > li > span { color: #f0c677; font: 800 1.5rem Arial; }
.process-list div { margin-top: 72px; }
.process-list h3 { margin: 0 0 12px; font-size: 1.03rem; }
.process-list p { margin: 0; color: #bad0d0; font-size: .75rem; }

.partner-section { background: #fff; }
.partner-grid, .provider-list { display: grid; gap: 14px; }
.partner-card, .provider-card { display: flex; align-items: center; gap: 18px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.partner-card > div, .provider-card > div:nth-child(2) { flex: 1; }
.partner-card h3, .provider-card h2 { margin: 0; font-size: 1rem; }
.partner-card p, .provider-card p { margin: 3px 0; color: var(--muted); font-size: .75rem; }
.partner-card small { color: #8a9999; }
.partner-logo, .provider-card__mark { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; border-radius: 15px; color: #fff; background: var(--navy); font: 800 1.4rem Arial; }
.provider-card { padding: 30px; }

.cta-section { padding: 70px 0; background: var(--cream); }
.cta-card { display: flex; min-height: 260px; align-items: center; justify-content: space-between; gap: 50px; padding: 56px; border-radius: var(--radius-lg); color: #fff; background: var(--navy); }
.cta-card h2 { margin: 12px 0; font-size: clamp(2rem, 4vw, 3.4rem); }
.cta-card p { max-width: 700px; margin: 0; color: #c5d6db; }

.site-footer { padding-top: 80px; color: #d3e0e2; background: var(--navy-deep); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr .7fr 1.2fr; gap: 50px; }
.footer-grid h2 { margin: 0 0 18px; color: #fff; font-size: .9rem; }
.footer-grid p { color: #9fb5b9; font-size: .76rem; }
.footer-grid > div > a:not(.brand, .button) { display: block; margin: 9px 0; color: #afc3c6; font-size: .74rem; text-decoration: none; }
.footer-cta { padding: 24px; border: 1px solid rgba(255,255,255,.12); border-radius: 20px; background: rgba(255,255,255,.04); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 60px; padding-block: 24px; border-top: 1px solid rgba(255,255,255,.1); color: #7f999e; font: .64rem Arial; }

.page-hero { padding: 100px 0 82px; color: #fff; background: var(--navy); }
.page-hero h1 { margin-bottom: 14px; }
.page-hero p { max-width: 720px; margin: 0; color: #c5d6da; }
.page-hero--compact { padding-block: 72px; }
.detail-hero { display: grid; grid-template-columns: 1.35fr .65fr; align-items: center; gap: 60px; }
.estimate-card { padding: 34px; border: 1px solid rgba(255,255,255,.18); border-radius: 26px; background: rgba(255,255,255,.08); }
.estimate-card > span { color: #f0c677; font: 800 .62rem Arial; letter-spacing: .13em; }
.estimate-card strong { display: block; margin: 20px 0 6px; font: 800 2rem/1.2 Arial; }
.estimate-card p { color: #fff; }
.estimate-card small { display: block; color: #b9ced2; line-height: 1.8; }

.search-bar { display: flex; max-width: 760px; gap: 10px; margin: -130px auto 50px; padding: 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; box-shadow: var(--shadow); }
.search-bar input { flex: 1; padding: 0 20px; border: 0; outline: 0; background: transparent; }
.catalog-list { display: grid; gap: 12px; }
.catalog-item { display: flex; align-items: center; gap: 26px; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.catalog-item__index { display: grid; width: 70px; height: 70px; flex: 0 0 70px; place-items: center; border-radius: 18px; color: var(--teal); background: var(--teal-soft); font: 800 1.35rem Arial; }
.catalog-item > div:nth-child(2) { flex: 1; }
.catalog-item h2 { margin: 4px 0; font-size: 1.25rem; }
.catalog-item p { margin: 0; color: var(--muted); font-size: .8rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.chip-row span { padding: 5px 9px; border-radius: 999px; color: #516b69; background: #eff5f3; font-size: .62rem; }

.detail-grid { display: grid; grid-template-columns: 1.35fr .65fr; align-items: start; gap: 24px; }
.prose-card { padding: 38px; border: 1px solid var(--line); border-radius: 26px; background: #fff; }
.prose-card--wide { max-width: 880px; margin-inline: auto; }
.prose-card h2 { margin: 8px 0 16px; font-size: 1.7rem; }
.prose-card h3 { margin-top: 34px; }
.prose-card p { color: #536b6a; }
.detail-aside { display: grid; gap: 18px; }
.aside-card { padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.aside-card h2 { margin-top: 0; font-size: 1rem; }
.aside-card--accent { color: #fff; background: var(--teal-dark); }
.aside-card--accent p { color: #c1d7d5; }
.provider-mini { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.provider-mini strong, .provider-mini small { display: block; }
.provider-mini small { color: var(--muted); }

.notice { padding: 18px 20px; border-inline-start: 4px solid var(--gold); border-radius: 12px; background: #fbf6eb; }
.notice p { margin: 4px 0 0; color: #6b614c; font-size: .76rem; }

.intake-layout { display: grid; grid-template-columns: 1.4fr .6fr; align-items: start; gap: 24px; }
.intake-form, .intake-aside { border: 1px solid var(--line); border-radius: 26px; background: #fff; box-shadow: 0 16px 50px rgba(17,58,57,.06); }
.intake-form { padding: 34px; }
.form-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 34px; }
.form-progress span { display: flex; align-items: center; gap: 8px; color: #899b9a; font-size: .68rem; }
.form-progress span::after { flex: 1; height: 2px; content: ""; background: var(--line); }
.form-progress span:last-child::after { display: none; }
.form-progress b { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; font: 800 .7rem Arial; }
.form-progress span.active { color: var(--teal); }
.form-progress span.active b { border-color: var(--teal); color: #fff; background: var(--teal); }
fieldset { margin: 0; padding: 0; border: 0; }
fieldset legend { margin-bottom: 24px; font-size: 1.25rem; font-weight: 800; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
label { display: grid; gap: 7px; }
label > span { color: #496261; font-size: .72rem; font-weight: 700; }
input, select, textarea { width: 100%; min-height: 46px; padding: 10px 13px; border: 1px solid #ccd9d7; border-radius: 11px; background: #fff; transition: border .15s ease, box-shadow .15s ease; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(10,113,109,.1); outline: 0; }
.span-2 { grid-column: span 2; }
.check-card { display: flex; min-height: 80px; grid-template-columns: auto 1fr; align-items: start; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-soft); }
.check-card input, .checkbox-inline input { width: 18px; min-height: 18px; margin-top: 3px; accent-color: var(--teal); }
.check-card strong, .check-card small { display: block; }
.check-card small { margin-top: 4px; color: var(--muted); line-height: 1.6; }
.check-card--warning { border-color: #e1c690; background: #fff8e9; }
.upload-zone { padding: 26px; border: 1px dashed #9bb8b4; border-radius: 16px; background: #f4f9f7; }
.upload-zone small { color: var(--muted); }
.form-actions { display: flex; justify-content: end; gap: 10px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.form-errors { margin-bottom: 24px; padding: 16px; border-radius: 12px; color: var(--danger); background: #fff0f1; }
.form-errors p { margin: 4px 0; font-size: .72rem; }
.field-error { color: var(--danger); }
.honeypot { position: absolute; inset-inline-start: -9999px; }
.intake-aside { position: sticky; top: 110px; padding: 28px; }
.intake-aside ol { margin: 24px 0; padding: 0; list-style: none; }
.intake-aside li { display: flex; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); }
.intake-aside li b { color: var(--gold); font: 800 .9rem Arial; }
.intake-aside strong, .intake-aside small { display: block; }
.intake-aside small { color: var(--muted); }

.success-section { min-height: 70vh; display: grid; place-items: center; padding-block: 100px; }
.success-card { max-width: 720px; padding: 54px; border: 1px solid var(--line); border-radius: 32px; background: #fff; box-shadow: var(--shadow); text-align: center; }
.success-mark { display: grid; width: 80px; height: 80px; margin: 0 auto 24px; place-items: center; border-radius: 50%; color: #fff; background: var(--success); font-size: 2rem; }
.success-card h1 { margin: 16px 0; font-size: clamp(2rem, 5vw, 3.4rem); }
.success-card p { color: var(--muted); }
.success-card .hero-actions { justify-content: center; }
.case-reference { max-width: 420px; margin: 30px auto; padding: 16px; border: 1px dashed var(--teal); border-radius: 14px; background: var(--teal-soft); }
.case-reference span, .case-reference strong { display: block; }
.case-reference strong { margin-top: 5px; font: 800 1.4rem Arial; }
.error-code { color: var(--gold); font: 900 5rem/1 Arial; }

.auth-section { display: grid; min-height: calc(100vh - 112px); place-items: center; padding: 60px 20px; background: var(--navy-deep); }
.auth-shell { display: grid; width: min(980px, 100%); grid-template-columns: 1fr 1fr; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 30px; box-shadow: 0 40px 100px rgba(0,0,0,.35); }
.auth-story { display: flex; min-height: 620px; flex-direction: column; justify-content: space-between; padding: 46px; color: #fff; background: var(--teal-dark); }
.auth-story h1 { margin: 14px 0; font-size: 2.7rem; line-height: 1.2; }
.auth-story p, .auth-story li { color: #bed4d2; }
.auth-story ul { margin: 0; padding-inline-start: 20px; font-size: .76rem; }
.auth-card { padding: 55px 44px; background: #fff; }
.auth-card h2, .auth-card h1 { margin: 12px 0; }
.auth-card > p { color: var(--muted); font-size: .78rem; }
.auth-card form { display: grid; gap: 17px; margin-top: 28px; }
.auth-help { display: block; margin-top: 24px; color: var(--muted); text-align: center; }
.auth-shell--single { max-width: 560px; grid-template-columns: 1fr; }
.auth-card--wide { padding: 48px; }
.mfa-secret { margin: 24px 0; padding: 20px; border-radius: 14px; background: var(--teal-soft); }
.mfa-secret span, .mfa-secret code, .mfa-secret small { display: block; }
.mfa-secret code { margin: 10px 0; color: var(--teal-dark); font-size: 1rem; overflow-wrap: anywhere; }
.break-code { display: block; margin: 10px 0; overflow-wrap: anywhere; }
.otp-input { direction: ltr; text-align: center; font: 800 1.8rem/1 Arial; letter-spacing: .35em; }

.flash-stack { display: grid; gap: 8px; margin-block: 18px; }
.flash { padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: .78rem; }
.flash--success { border-color: #adddcd; color: #0d6852; background: #edf9f5; }
.flash--warning { border-color: #e7d09e; color: #865a13; background: #fff8e9; }
.flash--danger { border-color: #ebbec3; color: #8d2e38; background: #fff0f1; }

.badge { display: inline-flex; width: max-content; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 999px; color: #506362; background: #edf2f1; font-size: .62rem; font-weight: 800; white-space: nowrap; }
.badge--success { color: #0b6b51; background: #def4ec; }
.badge--warning { color: #8d5b0d; background: #fff0ce; }
.badge--danger { color: #9a2f3b; background: #ffe3e6; }
.badge--neutral { color: #425b5a; background: #e9f0ef; }
.empty-state { padding: 50px; color: var(--muted); text-align: center; }
.empty-state strong { display: block; color: var(--ink); }

/* Panel */
.panel-body { overflow-x: hidden; background: #eef3f2; }
.panel-shell { display: grid; min-height: 100vh; grid-template-columns: 250px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; display: flex; height: 100vh; flex-direction: column; z-index: 30; color: #fff; background: var(--navy-deep); }
.sidebar__brand { padding: 28px 24px; border-bottom: 1px solid rgba(255,255,255,.1); }
.side-nav { display: grid; gap: 5px; padding: 24px 14px; }
.side-nav a { display: flex; min-height: 46px; align-items: center; gap: 12px; padding: 0 14px; border-radius: 12px; color: #9fb6ba; font-size: .78rem; font-weight: 700; text-decoration: none; }
.side-nav a span { width: 22px; color: #a9c7c5; font: 1rem Arial; text-align: center; }
.side-nav a:hover, .side-nav a.active { color: #fff; background: rgba(255,255,255,.1); }
.side-nav a.active::after { width: 4px; height: 20px; margin-inline-start: auto; border-radius: 3px; content: ""; background: var(--gold); }
.sidebar__meta { display: flex; align-items: center; gap: 9px; margin-top: auto; padding: 20px 24px; border-top: 1px solid rgba(255,255,255,.1); color: #83a4a8; font: .62rem Arial; }
.panel-main { min-width: 0; }
.panel-topbar { position: sticky; top: 0; z-index: 25; display: flex; min-height: 92px; align-items: center; gap: 20px; padding: 16px 32px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.92); backdrop-filter: blur(15px); }
.panel-heading { flex: 1; }
.panel-heading h1 { margin: 4px 0 0; font-size: 1.42rem; line-height: 1.2; }
.user-menu { display: flex; align-items: center; gap: 10px; }
.user-menu > span:nth-child(2) { display: flex; flex-direction: column; min-width: 120px; }
.user-menu strong { font-size: .75rem; }
.user-menu small { color: var(--muted); font-size: .62rem; }
.avatar { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; color: #fff; background: var(--teal); font-weight: 900; }
.sidebar-toggle { display: none; border: 0; background: transparent; font-size: 1.4rem; }
.panel-content { padding: 28px 32px 60px; }
.panel-main > .flash-stack { margin-inline: 32px; }

.metric-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.metric-card { min-height: 150px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.metric-card > span, .metric-card > small { display: block; color: var(--muted); font-size: .65rem; }
.metric-card > strong { display: block; margin: 18px 0 10px; font: 800 2rem/1 Arial; }
.metric-card--primary { color: #fff; border-color: var(--teal-dark); background: var(--teal-dark); }
.metric-card--primary > span, .metric-card--primary > small { color: #b8d0ce; }
.dashboard-grid, .report-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 14px; margin-top: 14px; }
.report-grid { grid-template-columns: repeat(3, 1fr); }
.panel-card { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 8px 30px rgba(16,52,52,.04); }
.panel-card--wide { grid-column: span 2; }
.report-grid .panel-card--wide { grid-column: span 3; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.card-header h2 { margin: 4px 0 0; font-size: 1rem; }
.card-header > a { color: var(--teal); font-size: .7rem; font-weight: 800; text-decoration: none; }

.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: .72rem; white-space: nowrap; }
th { padding: 11px 10px; color: #7a8b8b; background: #f7f9f8; text-align: start; font-size: .62rem; }
td { padding: 13px 10px; border-bottom: 1px solid #edf1f0; vertical-align: middle; }
td strong, td small { display: block; }
td small { margin-top: 3px; color: var(--muted); font-size: .6rem; }
.record-link { color: var(--teal); font-weight: 900; text-decoration: none; }
.row-alert { background: #fffaf0; }
.demo-label { display: block; color: var(--warning); font-size: .55rem; }

.bar-list { display: grid; gap: 16px; }
.bar-item > div { display: flex; justify-content: space-between; font-size: .7rem; }
.bar-item i { display: block; height: 7px; margin-top: 7px; overflow: hidden; border-radius: 999px; background: #e8efed; }
.bar-item b { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), #4fb4aa); transition: width .6s ease; }
.activity-list { display: grid; }
.activity-list a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #edf1f0; text-decoration: none; }
.activity-list strong, .activity-list small { display: block; }
.activity-list small, .activity-list time { color: var(--muted); font-size: .58rem; }
.activity-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.toolbar p { margin: 3px 0 0; color: var(--muted); font-size: .7rem; }
.filter-bar, .inline-form { display: flex; flex: 1; flex-wrap: wrap; align-items: end; gap: 10px; }
.filter-bar label:first-child { min-width: 280px; flex: 1; }
.inline-form label { min-width: 130px; }
.inline-form .grow { min-width: 210px; flex: 1; }
.checkbox-inline { display: flex; min-width: auto !important; grid-template-columns: auto 1fr; align-items: center; gap: 6px; min-height: 46px; }

.dialog { width: min(720px, calc(100% - 28px)); max-height: 90vh; padding: 0; overflow: auto; border: 0; border-radius: 22px; box-shadow: 0 30px 100px rgba(0,0,0,.3); }
.dialog::backdrop { background: rgba(5,25,31,.65); backdrop-filter: blur(4px); }
.dialog form { padding: 26px; }
.dialog__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.dialog__header h2 { margin: 4px 0; }
.dialog__header button { width: 38px; height: 38px; border: 0; border-radius: 10px; background: #eef3f2; font-size: 1.4rem; }
.dialog__actions { display: flex; justify-content: end; gap: 10px; margin-top: 24px; }

.case-summary { display: grid; grid-template-columns: 1.3fr auto 1fr; align-items: center; gap: 24px; padding: 24px; border-radius: 20px; color: #fff; background: var(--navy); }
.case-summary h2 { margin: 5px 0; font-size: 1.55rem; }
.case-summary p, .case-summary small { color: #a9c0c5; }
.case-summary__status, .case-summary__next { display: flex; flex-direction: column; gap: 6px; }
.case-summary__next { padding-inline-start: 24px; border-inline-start: 1px solid rgba(255,255,255,.15); }
.case-summary__next > span { color: #91aeb2; font-size: .64rem; }
.risk-row { display: flex; grid-column: 1 / -1; flex-wrap: wrap; gap: 7px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.13); }
.risk { padding: 5px 9px; border-radius: 999px; font-size: .6rem; }
.risk--ok { color: #a9dfd0; background: rgba(45,174,139,.13); }
.risk--high { color: #ffd0d5; background: rgba(255,84,103,.15); }
.case-layout { display: grid; grid-template-columns: 195px minmax(0, 1fr); align-items: start; gap: 14px; margin-top: 14px; }
.case-sidebar { position: sticky; top: 108px; }
.tab-nav { display: grid; gap: 5px; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.tab-nav button { display: flex; min-height: 42px; align-items: center; justify-content: space-between; padding: 0 12px; border: 0; border-radius: 10px; color: #5d7271; background: transparent; text-align: start; font-size: .7rem; }
.tab-nav button span { display: grid; min-width: 22px; height: 22px; place-items: center; border-radius: 999px; background: #eef3f2; font: .6rem Arial; }
.tab-nav button:hover, .tab-nav button.active { color: #fff; background: var(--teal); }
.tab-panel { display: none; gap: 14px; }
.tab-panel.active { display: grid; }
.detail-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.detail-list { margin: 0; }
.detail-list div { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-top: 1px solid #edf1f0; }
.detail-list dt { color: var(--muted); font-size: .67rem; }
.detail-list dd { margin: 0; font-size: .72rem; font-weight: 800; }
.mini-list { display: grid; }
.mini-list > div { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid #edf1f0; }
.mini-list > div > div { flex: 1; }
.mini-list strong, .mini-list small { display: block; }
.mini-list small { color: var(--muted); font-size: .6rem; }
.status-dot { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: #9eb0af; }
.status-dot--ok { background: var(--success); box-shadow: 0 0 0 4px rgba(22,130,103,.12); }
.status-dot--off { background: #aab7b6; }

.task-list, .quote-list, .incident-list { display: grid; }
.task-item, .quote-item { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid #edf1f0; }
.task-item > div, .quote-item > div { flex: 1; }
.task-item strong, .task-item small, .quote-item strong, .quote-item small { display: block; }
.task-item small, .quote-item small { color: var(--muted); font-size: .6rem; }
.priority { width: 5px; height: 34px; border-radius: 999px; background: #afbfbd; }
.priority--high { background: var(--warning); }
.priority--urgent { background: var(--danger); }

.timeline { position: relative; display: grid; }
.timeline::before { position: absolute; width: 2px; inset-block: 10px; inset-inline-start: 5px; content: ""; background: var(--line); }
.timeline-item { position: relative; display: grid; grid-template-columns: 12px 1fr; gap: 16px; padding: 14px 0; }
.timeline-item > span { z-index: 1; width: 12px; height: 12px; margin-top: 4px; border: 3px solid #fff; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 2px var(--teal); }
.timeline-item--note > span { background: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.timeline-item p { margin: 7px 0; color: #506867; font-size: .72rem; }
.timeline-item small { color: var(--muted); font-size: .6rem; }
.timeline-meta { display: flex; justify-content: space-between; gap: 16px; }
.timeline-meta time { color: var(--muted); font-size: .6rem; }

.document-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.document-card { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; text-decoration: none; }
.document-card:hover { border-color: var(--teal); }
.document-icon { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; border-radius: 11px; color: var(--teal); background: var(--teal-soft); font: 800 .58rem Arial; }
.document-card strong, .document-card small { display: block; }
.document-card strong { max-width: 250px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .7rem; }
.document-card small { color: var(--muted); font-size: .55rem; }
.schedule-list { display: grid; }
.schedule-list > div { display: grid; grid-template-columns: 120px 80px 1fr auto; align-items: center; gap: 10px; padding: 13px 0; border-top: 1px solid #edf1f0; }
.schedule-list time, .schedule-list small { color: var(--muted); font-size: .6rem; }
.schedule-list strong, .schedule-list small { display: block; }
.event-type { color: var(--teal); font-size: .65rem; font-weight: 800; }
.incident-list > div { display: flex; align-items: start; gap: 12px; padding: 14px 0; border-top: 1px solid #edf1f0; }
.incident-list > div > div { flex: 1; }
.incident-list p { margin: 4px 0; color: var(--muted); font-size: .68rem; }
.incident-list small { color: var(--muted); font-size: .6rem; }
.severity { min-width: 54px; padding: 5px; border-radius: 8px; color: #fff; background: #718584; text-align: center; font: 800 .58rem Arial; }
.severity--high, .severity--critical { background: var(--danger); }
.severity--medium { background: var(--warning); }

.kanban { display: grid; grid-auto-columns: minmax(270px, 1fr); grid-auto-flow: column; gap: 12px; overflow-x: auto; padding-bottom: 18px; }
.kanban-column { min-height: 70vh; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: #e7eeec; }
.kanban-column > header { display: flex; align-items: center; gap: 9px; padding: 8px; }
.kanban-column h2 { flex: 1; margin: 0; font-size: .75rem; }
.kanban-column > header b { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: #fff; font: .65rem Arial; }
.kanban-column > div { display: grid; gap: 8px; }
.kanban-card { display: block; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #fff; text-decoration: none; }
.kanban-card > strong { display: block; margin: 6px 0; }
.kanban-card p { min-height: 42px; margin: 0; color: var(--muted); font-size: .64rem; }
.kanban-card footer { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: .55rem; }

.donut-list { display: grid; }
.donut-list > div { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid #edf1f0; font-size: .7rem; }
.donut-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--teal); }
.portal-hero { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 14px; padding: 30px; border-radius: 20px; color: #fff; background: var(--teal-dark); }
.portal-hero h2 { margin: 5px 0; font-size: 2rem; }
.portal-hero p { max-width: 620px; margin: 0; color: #bfd3d2; }
.portal-status { display: flex; min-width: 270px; flex-direction: column; padding: 18px; border: 1px solid rgba(255,255,255,.15); border-radius: 15px; background: rgba(255,255,255,.08); }
.portal-status span, .portal-status small { color: #c1d5d3; font-size: .64rem; }
.operational-controls { margin-top: 14px; }
.operational-controls .detail-cards > form { display: grid; align-content: start; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); }
.operational-controls h3 { margin: 0 0 4px; font-size: .83rem; }
.capa-form { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.capa-form h3 { margin-top: 0; }

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

@media (max-width: 1100px) {
    .site-nav { gap: 14px; }
    .site-actions .text-link { display: none; }
    .treatment-grid { grid-template-columns: repeat(2, 1fr); }
    .metric-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .process-list { grid-template-columns: repeat(3, 1fr); }
    .report-grid { grid-template-columns: repeat(2, 1fr); }
    .report-grid .panel-card--wide { grid-column: span 2; }
}

@media (max-width: 900px) {
    .site-header__inner { min-height: 70px; }
    .menu-toggle { display: grid; width: 42px; height: 42px; place-content: center; gap: 4px; margin-inline-start: auto; }
    .menu-toggle span:not(.sr-only) { width: 20px; height: 2px; background: var(--ink); }
    .site-nav { position: absolute; inset-inline: 20px; top: calc(100% + 8px); display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
    .site-nav.open { display: flex; }
    .site-nav a { padding: 10px; }
    .site-actions .button { display: none; }
    .hero-grid, .detail-hero, .detail-grid, .intake-layout { grid-template-columns: 1fr; }
    .hero-grid { gap: 20px; }
    .journey-visual { min-height: 390px; }
    .section-heading { align-items: start; flex-direction: column; }
    .intake-aside { position: static; }
    .panel-shell { grid-template-columns: 1fr; }
    .sidebar { position: fixed; inset-block: 0; inset-inline-start: 0; width: 250px; transform: translateX(110%); transition: transform .2s ease; }
    [dir="ltr"] .sidebar { transform: translateX(-110%); }
    .sidebar.open { transform: translateX(0); }
    .sidebar-toggle { display: block; }
    .panel-content { padding-inline: 18px; }
    .panel-topbar { padding-inline: 18px; }
    .panel-main > .flash-stack { margin-inline: 18px; }
    .case-layout { grid-template-columns: 1fr; }
    .case-sidebar { position: static; }
    .tab-nav { display: flex; overflow-x: auto; }
    .tab-nav button { min-width: max-content; }
    .metric-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-grid { grid-template-columns: 1fr; }
    .panel-card--wide { grid-column: auto; }
}

@media (max-width: 680px) {
    .container { width: min(100% - 24px, 1200px); }
    .brand strong { font-size: .78rem; }
    .brand small { display: none; }
    .site-actions { gap: 6px; }
    .hero-grid { min-height: auto; padding-block: 60px; }
    .hero-copy h1, .page-hero h1 { font-size: 2.45rem; }
    .journey-visual { min-height: 330px; }
    .journey-card--main { inset: 50px 5px 45px; padding: 24px; }
    .journey-card--main > strong { margin-top: 26px; font-size: 2.4rem; }
    .journey-line { margin-top: 54px; }
    .journey-card--status { width: 210px; }
    .journey-card--languages { top: 5px; }
    .section { padding-block: 70px; }
    .treatment-grid, .footer-grid, .detail-cards, .document-grid, .report-grid { grid-template-columns: 1fr; }
    .process-list { grid-template-columns: 1fr; }
    .process-list li { min-height: auto; border-inline-start: 0; border-top: 1px solid rgba(255,255,255,.13); }
    .process-list div { margin-top: 24px; }
    .cta-card, .footer-bottom, .portal-hero { align-items: start; flex-direction: column; padding: 32px; }
    .page-hero { padding-block: 70px; }
    .search-bar { margin-top: -105px; border-radius: 18px; }
    .catalog-item { align-items: start; flex-wrap: wrap; padding: 20px; }
    .catalog-item__index { width: 50px; height: 50px; flex-basis: 50px; }
    .catalog-item .circle-link { margin-inline-start: auto; }
    .form-grid { grid-template-columns: 1fr; }
    .span-2 { grid-column: auto; }
    .form-progress span { font-size: 0; }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-story { display: none; }
    .auth-card { padding: 36px 24px; }
    .panel-heading .eyebrow, .user-menu > span:nth-child(2) { display: none; }
    .panel-topbar { min-height: 72px; }
    .metric-grid { grid-template-columns: 1fr 1fr; }
    .metric-card { min-height: 125px; padding: 17px; }
    .metric-card > strong { font-size: 1.6rem; }
    .case-summary { grid-template-columns: 1fr; }
    .case-summary__next { padding: 0; border: 0; }
    .toolbar { align-items: stretch; flex-direction: column; }
    .filter-bar { align-items: stretch; flex-direction: column; }
    .filter-bar label:first-child { min-width: 0; }
    .inline-form { align-items: stretch; flex-direction: column; }
    .schedule-list > div { grid-template-columns: 1fr 1fr; }
    .report-grid .panel-card--wide { grid-column: auto; }
    .success-card { padding: 34px 20px; }
}

@media (max-width: 420px) {
    .emergency-strip { font-size: .62rem; }
    .language-select select { width: 52px; padding: 0 4px; }
    .hero-actions .button { width: 100%; }
    .metric-grid { grid-template-columns: 1fr; }
    .panel-content { padding-inline: 12px; }
    .panel-topbar { padding-inline: 12px; }
}

/* UX refresh 2.1 */
[hidden] { display: none !important; }

:root {
    --ink: #102e34;
    --muted: #617777;
    --cream: #f3f6f3;
    --surface-soft: #f6f9f8;
    --line: #d8e4e1;
    --shadow: 0 22px 60px rgba(7, 45, 48, .11);
    --shadow-soft: 0 10px 30px rgba(7, 45, 48, .07);
    --font: Tahoma, "Segoe UI", Arial, sans-serif;
}

body { font-size: 15px; }
.site-header { transition: min-height .2s ease, box-shadow .2s ease, background .2s ease; }
.site-header.is-scrolled { background: rgba(255,255,255,.96); box-shadow: 0 8px 28px rgba(6,37,42,.08); }
.site-header__inner { min-height: 72px; gap: 22px; }
.brand__mark { width: 38px; height: 38px; border-radius: 12px; box-shadow: 0 8px 22px rgba(10,113,109,.2); }
.site-nav a[aria-current="page"] { color: var(--teal-dark); }
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.language-select select { min-width: 58px; border-color: #cbdad7; }
.button { min-height: 48px; padding-inline: 22px; border-radius: 14px; box-shadow: 0 10px 25px rgba(10,113,109,.17); }
.button--small { min-height: 40px; border-radius: 11px; }

.hero-section { min-height: 620px; background: linear-gradient(135deg, #071e31 0%, #092f45 52%, #07544f 135%); }
.hero-section::before { opacity: .25; background-size: 42px 42px; }
.hero-section::after { width: 560px; height: 560px; inset-inline-end: -220px; top: -230px; background: rgba(37,145,133,.32); filter: blur(16px); }
.hero-grid { min-height: 620px; grid-template-columns: 1.04fr .96fr; gap: 64px; padding-block: 64px; }
.hero-badge-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.response-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.13); border-radius: 999px; color: #c4d9da; background: rgba(255,255,255,.06); font-size: .62rem; }
.response-chip i { width: 7px; height: 7px; border-radius: 50%; background: #52d5a9; box-shadow: 0 0 0 4px rgba(82,213,169,.12); }
.hero-copy h1, .page-hero h1 { margin: 20px 0 16px; font-size: clamp(2.6rem, 4.8vw, 4.65rem); line-height: 1.08; letter-spacing: -.045em; }
.hero-copy > p { max-width: 650px; font-size: .96rem; line-height: 1.9; }
.hero-actions { margin-top: 26px; }
.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 30px; }
.trust-row span { min-width: 0; align-items: flex-start; padding: 12px; border: 1px solid rgba(255,255,255,.11); border-radius: 13px; background: rgba(255,255,255,.045); }
.trust-row i { width: 26px; height: 26px; flex: 0 0 26px; color: #f0c677; background: rgba(240,198,119,.1); font: 800 .58rem/1 Arial; }
.trust-row strong { font-size: .67rem; line-height: 1.55; }
.journey-visual { min-height: 420px; }
.journey-card { border-color: rgba(255,255,255,.16); box-shadow: 0 26px 70px rgba(0,0,0,.24); }
.journey-card--main { inset: 54px 18px 48px 42px; padding: 32px; }
.journey-card--main > strong { margin-top: 28px; font-size: clamp(2.5rem, 4vw, 4rem); }
.journey-line { margin-top: 56px; }
.journey-card--status { bottom: 2px; }
.journey-card--languages { top: 15px; }

.section { padding-block: 76px; }
.section-heading { gap: 38px; margin-bottom: 32px; }
.section-heading h2 { margin-top: 10px; font-size: clamp(1.8rem, 3.3vw, 3rem); }
.section-heading > p { font-size: .8rem; }
.treatment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.treatment-card { display: grid; min-height: 248px; grid-template-columns: 138px 1fr; border-radius: 22px; box-shadow: var(--shadow-soft); }
.treatment-card__art { height: auto; min-height: 100%; align-items: flex-end; padding: 18px; }
.treatment-card__art::before { width: 120px; height: 120px; inset: 45px auto auto -20px; border-width: 18px; }
[dir="rtl"] .treatment-card__art::before { inset: 45px -20px auto auto; }
.treatment-card__art span { font-size: 2.25rem; }
.treatment-card__body { display: flex; min-width: 0; flex-direction: column; padding: 24px; }
.treatment-card h3 { margin: 7px 0; }
.treatment-card p { min-height: auto; font-size: .75rem; line-height: 1.8; }
.treatment-card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: auto 0 12px; padding-top: 14px; }
.treatment-card__body > a { display: inline-flex; align-items: center; gap: 6px; }

.process-list { gap: 8px; }
.process-list li { min-height: 218px; padding: 24px 20px; border: 1px solid rgba(255,255,255,.1); border-radius: 17px; background: rgba(255,255,255,.035); }
.process-list li:first-child { border-inline-start: 1px solid rgba(255,255,255,.1); }
.process-list div { margin-top: 42px; }
.process-list p { font-size: .71rem; line-height: 1.8; }

.partner-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.partner-card { min-height: 145px; align-items: flex-start; padding: 20px; border-radius: 18px; box-shadow: 0 8px 24px rgba(7,45,48,.04); }
.partner-card .badge { margin-inline-start: auto; }
.cta-section { padding-block: 54px; }
.cta-card { min-height: 210px; padding: 44px 48px; border-radius: 26px; background: linear-gradient(120deg, var(--navy) 0%, #0a4e59 120%); }
.cta-card h2 { font-size: clamp(1.8rem, 3.4vw, 3rem); }
.site-footer { padding-top: 62px; }
.footer-grid { gap: 36px; }
.footer-bottom { margin-top: 38px; }

.page-hero { padding-block: 78px 70px; background: linear-gradient(135deg, var(--navy-deep), var(--navy)); }
.page-hero--compact { padding-block: 58px 66px; }
.page-hero p { font-size: .88rem; }
.catalog-item { box-shadow: 0 8px 25px rgba(7,45,48,.04); transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.catalog-item:hover { border-color: #a8c6c1; box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.search-bar { margin-top: -112px; border-radius: 18px; }

.intake-section { padding-top: 0; margin-top: -28px; position: relative; z-index: 2; }
.intake-layout { grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr); gap: 18px; }
.intake-form, .intake-aside { border-radius: 22px; box-shadow: var(--shadow-soft); }
.intake-form { padding: 30px; }
.form-progress { position: relative; margin-bottom: 18px; }
.form-progress span { position: relative; flex-direction: column; justify-content: center; gap: 5px; text-align: center; font-size: .62rem; }
.form-progress span::after { position: absolute; width: calc(100% - 38px); inset-inline-start: calc(50% + 19px); top: 15px; }
.form-progress b { position: relative; z-index: 1; width: 32px; height: 32px; box-shadow: 0 0 0 5px #fff; }
.form-step-status { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 26px; padding: 13px 15px; border-radius: 12px; background: var(--surface-soft); }
.form-step-status span { color: var(--teal); font: 800 .68rem Arial; }
.form-step-status strong { font-size: .78rem; }
fieldset legend { width: 100%; margin-bottom: 20px; font-size: 1.15rem; }
fieldset legend small { display: block; margin-top: 4px; color: var(--muted); font-size: .67rem; font-weight: 400; }
label > span { font-size: .7rem; }
input, select, textarea { min-height: 49px; border-radius: 12px; background: #fcfdfd; }
.input-ltr { direction: ltr; text-align: left; }
.field-help { color: var(--muted); font-size: .61rem; }
.upload-zone { padding: 20px; }
.form-actions { position: sticky; z-index: 4; bottom: 0; margin-inline: -30px; margin-bottom: -30px; padding: 16px 30px; border-radius: 0 0 22px 22px; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); }
.button.is-loading::after { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; content: ""; animation: ux-spin .8s linear infinite; }
@keyframes ux-spin { to { transform: rotate(360deg); } }
.intake-aside { top: 96px; padding: 24px; }
.intake-aside h2 { margin: 8px 0 0; font-size: 1.15rem; }
.intake-aside li { padding-block: 15px; }
.intake-aside .notice { margin-top: 8px; }
.secure-note { display: flex; align-items: center; gap: 8px; margin-top: 15px; color: var(--muted); font-size: .58rem; line-height: 1.7; }
.secure-note span { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border-radius: 9px; color: var(--teal); background: var(--teal-soft); }

.mobile-cta { display: none; }
.mobile-cta[hidden] { display: none !important; }

/* Operations workspace */
.panel-body { background: #f1f5f4; }
.panel-shell { grid-template-columns: 236px minmax(0, 1fr); }
.sidebar { background: linear-gradient(180deg, #061b2d, #082c3c); box-shadow: 12px 0 40px rgba(6,27,45,.09); }
.sidebar__brand { padding: 23px 20px; }
.side-nav { padding: 18px 12px; }
.side-nav a { min-height: 44px; }
.side-nav a.active { background: linear-gradient(90deg, rgba(31,145,132,.24), rgba(255,255,255,.06)); }
.panel-topbar { min-height: 78px; padding-block: 12px; }
.panel-content { width: min(1500px, 100%); margin-inline: auto; }
.metric-grid { gap: 10px; }
.metric-card { position: relative; min-height: 132px; overflow: hidden; padding: 19px; border: 0; box-shadow: var(--shadow-soft); }
.metric-card::before { position: absolute; width: 70px; height: 70px; inset-inline-end: -20px; top: -22px; border-radius: 50%; content: ""; background: rgba(10,113,109,.07); }
.metric-card--primary { background: linear-gradient(135deg, var(--teal-dark), #0b7972); }
.metric-card--primary::before { background: rgba(255,255,255,.1); }
.metric-card > strong { margin: 14px 0 8px; font-size: 1.8rem; }
.panel-card { border: 0; border-radius: 16px; box-shadow: var(--shadow-soft); }
th { position: sticky; top: 0; z-index: 1; color: #5f7775; background: #f1f6f4; }
tbody tr { transition: background .15s ease; }
tbody tr:hover { background: #f7fbfa; }
.record-link { text-underline-offset: 3px; }
.sidebar-backdrop { display: none; }

@media (max-width: 1100px) {
    .hero-grid { gap: 36px; }
    .trust-row { grid-template-columns: 1fr; }
    .trust-row span { padding: 8px 10px; }
    .partner-grid { grid-template-columns: 1fr 1fr; }
    .metric-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .hero-grid { padding-block: 54px; }
    .hero-copy { max-width: 720px; }
    .trust-row { grid-template-columns: repeat(3, 1fr); }
    .partner-grid { grid-template-columns: 1fr; }
    .sidebar { transform: translateX(105%); }
    [dir="ltr"] .sidebar { transform: translateX(-105%); }
    .sidebar.open { transform: translateX(0); }
    .sidebar-backdrop { position: fixed; inset: 0; z-index: 29; border: 0; background: rgba(3,19,27,.52); backdrop-filter: blur(2px); }
    .sidebar-is-open .sidebar-backdrop { display: block; }
}

@media (max-width: 680px) {
    .public-body { padding-bottom: 72px; }
    .emergency-strip { min-height: 38px; padding-block: 5px; font-size: .58rem; line-height: 1.5; }
    .site-header__inner { min-height: 64px; }
    .brand__mark { width: 34px; height: 34px; }
    .site-actions .text-link { display: none; }
    .hero-section { min-height: auto; }
    .hero-grid { padding-block: 44px 34px; }
    .hero-badge-row { gap: 9px; }
    .response-chip { width: max-content; max-width: 100%; font-size: .56rem; }
    .hero-copy h1, .page-hero h1 { margin-block: 16px 12px; font-size: clamp(2.18rem, 10vw, 2.75rem); }
    .hero-copy > p { font-size: .83rem; line-height: 1.85; }
    .hero-actions { margin-top: 22px; }
    .hero-actions .button { width: 100%; min-height: 46px; }
    .trust-row { grid-template-columns: 1fr; gap: 6px; margin-top: 22px; }
    .trust-row span { min-height: 44px; align-items: center; }
    .journey-visual { min-height: 270px; }
    .journey-card--main { inset: 38px 4px 32px; padding: 20px; }
    .journey-card--main > strong { margin-top: 18px; font-size: 2.15rem; }
    .journey-line { margin-top: 36px; }
    .journey-steps { gap: 4px; font-size: .49rem; }
    .journey-card--status { width: 195px; padding: 12px 14px; }
    .journey-card--languages { top: 0; padding: 11px 14px; }
    .section { padding-block: 54px; }
    .section-heading { gap: 14px; margin-bottom: 24px; }
    .section-heading h2 { font-size: 1.75rem; }
    .treatment-grid { grid-template-columns: 1fr; gap: 10px; }
    .treatment-card { min-height: 200px; grid-template-columns: 92px 1fr; border-radius: 17px; }
    .treatment-card:hover { transform: none; }
    .treatment-card__art { padding: 12px; }
    .treatment-card__art span { font-size: 1.55rem; }
    .treatment-card__body { padding: 17px; }
    .treatment-card h3 { font-size: 1rem; }
    .treatment-card p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; font-size: .69rem; }
    .treatment-card__meta { display: grid; gap: 3px; margin-bottom: 8px; font-size: .6rem; }
    .process-list { gap: 7px; }
    .process-list li { display: grid; min-height: 0; grid-template-columns: 46px 1fr; gap: 12px; padding: 18px; }
    .process-list div { margin-top: 0; }
    .process-list h3 { margin-bottom: 5px; }
    .process-list p { font-size: .67rem; }
    .partner-card { min-height: 0; padding: 17px; }
    .partner-logo { width: 42px; height: 42px; flex-basis: 42px; }
    .cta-section { padding-block: 38px; }
    .cta-card { min-height: 0; gap: 22px; padding: 28px; }
    .cta-card .button { width: 100%; }
    .site-footer { padding-top: 46px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
    .footer-grid > div:first-child, .footer-cta { grid-column: 1 / -1; }
    .footer-cta { padding: 19px; }
    .footer-bottom { margin-top: 28px; padding-bottom: 20px; }
    .page-hero, .page-hero--compact { padding-block: 52px 60px; }
    .intake-section { margin-top: -22px; }
    .intake-form { padding: 20px; }
    .form-progress { margin-bottom: 14px; }
    .form-progress span { font-size: .54rem; }
    .form-progress b { width: 29px; height: 29px; }
    .form-progress span::after { top: 14px; }
    .form-step-status { margin-bottom: 20px; }
    fieldset legend { font-size: 1.05rem; }
    .form-grid { gap: 13px; }
    .form-actions { margin-inline: -20px; margin-bottom: -20px; padding: 13px 20px; }
    .form-actions .button { flex: 1; min-width: 0; padding-inline: 13px; }
    .intake-aside { padding: 20px; }
    .mobile-cta { position: fixed; inset-inline: 12px; bottom: 10px; z-index: 95; display: flex; min-height: 52px; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px; border: 1px solid rgba(255,255,255,.2); border-radius: 16px; color: #fff; background: rgba(7,84,80,.96); box-shadow: 0 16px 42px rgba(5,38,41,.28); backdrop-filter: blur(12px); font-weight: 800; text-decoration: none; }
    .mobile-cta b { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; color: var(--navy); background: #fff; }
    .panel-content { padding: 18px 12px 44px; }
    .panel-topbar { padding-inline: 12px; }
    .metric-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .metric-card { min-height: 116px; padding: 15px; }
    .panel-card { padding: 17px; }
    .table-wrap { margin-inline: -17px; padding-inline: 17px; }
}

@media (max-width: 420px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-grid > div:first-child, .footer-cta { grid-column: auto; }
    .metric-grid { grid-template-columns: 1fr 1fr; }
    .metric-card > strong { font-size: 1.45rem; }
}
