html:has(body.ec-story) { background: #fff; }

body.ec-story {
    min-height: 100%;
    min-height: 100svh;
    height: auto;
    display: flex;
    flex-direction: column;
    --ec-checkin-width: 760px;
    --ec-checkin-gutter: 20px;
    background: #fff;
}

body.ec-story .ec-navbar-inner {
    width: 100%;
    max-width: calc(var(--ec-checkin-width) + 2 * var(--ec-checkin-gutter));
    padding-inline: var(--ec-checkin-gutter);
}

body.ec-story .ec-navbar {
    height: 84px;
    background: #fff;
    box-shadow: none;
}

body.ec-story .ec-logo {
    display: inline-block;
    height: 44px;
    aspect-ratio: 153 / 168;
    background-color: var(--ec-brand);
    -webkit-mask: url("../images/logo.png") center / contain no-repeat;
    mask: url("../images/logo.png") center / contain no-repeat;
}

body.ec-story .ec-brand, body.ec-story .ec-brand-name { color: var(--ec-brand); }
body.ec-story .ec-brand, body.ec-story .ec-brand:hover { text-decoration: none; }
body.ec-story .ec-navbar-back { color: var(--ec-primary); border-color: #cfe6da; background: var(--ec-surface); }
body.ec-story .ec-lang-select {
    color: var(--ec-text);
    background-color: var(--ec-tint);
    border: 1px solid var(--ec-border);
    border-radius: 20px;
    padding: 8px 28px 8px 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='m1 1 4 4 4-4' fill='none' stroke='%231f2933' stroke-width='2'/%3E%3C/svg%3E");
    background-position: right 10px center;
}
body.ec-story .ec-main { flex: 1; min-height: 0; width: 100%; padding: 32px var(--ec-checkin-gutter); }
body.ec-story .ec-page { width: 100%; max-width: var(--ec-checkin-width); margin-inline: auto; padding: 0; }
body.ec-story .ec-step-header { grid-template-columns: 1fr; text-align: center; }
body.ec-story .ec-step-header h2 { color: var(--ec-text); font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.15; letter-spacing: -.035em; }
body.ec-story .ec-step-desc { color: var(--ec-primary-dk); line-height: 1.45; }
body.ec-story .ec-btn { justify-content: center; text-align: center; gap: .6rem; }
body.ec-story .ec-nav-bar .ec-btn-primary { min-width: 140px; }
body.ec-story .ec-pain-scale-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.ec-story .ec-pain-scale-col { min-width: 0; }
body.ec-story .ec-pain-scale-header { overflow-wrap: anywhere; }

.ec-stepper { width: 100%; max-width: calc(var(--ec-checkin-width) + 2 * var(--ec-checkin-gutter)); margin: 0 auto; padding: 8px var(--ec-checkin-gutter) 12px; }
.ec-stepper-list { display: grid; grid-template-columns: repeat(var(--ec-step-count), minmax(0, 1fr)); gap: 8px; list-style: none; padding: 0; margin: 0; }
.ec-step { display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; min-width: 0; }
.ec-step-label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.4em;
    text-align: center;
    font-size: .85rem;
    line-height: 1.2;
    overflow-wrap: break-word;
    hyphens: auto;
    text-wrap: balance;
    text-decoration: none;
}
.ec-stepper-caption { display: none; }
.ec-stepper-stages { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 10px; font-size: .85rem; line-height: 1.2; color: var(--ec-text-muted); white-space: nowrap; }
.ec-stage { display: inline-flex; align-items: center; gap: 5px; }
.ec-stage-current { color: var(--ec-text); font-weight: 700; }
.ec-stage-completed { color: var(--ec-primary); }
.ec-stage-check { width: 16px; height: 16px; flex: 0 0 auto; }
body.ec-story .ec-navbar-inner { gap: 12px; }
.ec-navbar-hospital { display: flex; align-items: center; justify-content: center; gap: 8px; flex: 1 1 auto; min-width: 0; color: var(--ec-primary); font-size: .9rem; font-weight: 600; }
.ec-navbar-hospital i { flex-shrink: 0; }
.ec-navbar-hospital span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ec-step a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ec-step-completed .ec-step-label { color: var(--ec-primary); }
.ec-step-current .ec-step-label { color: var(--ec-primary); font-weight: 700; }
.ec-step-upcoming .ec-step-label { color: #8a939b; }
.ec-step-track { display: block; position: relative; height: 6px; border-radius: 10px; }
.ec-step-completed .ec-step-track { color: var(--ec-primary); background: currentColor; }
.ec-step-current .ec-step-track { background: var(--ec-primary); }
.ec-step-upcoming .ec-step-track { background: #e0e5ee; }
.ec-step-check { width: 24px; height: 24px; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.ec-step-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.ec-review-sections { display: grid; gap: 14px; margin-bottom: 24px; }
.ec-review-group { margin: 20px 0 8px; color: var(--ec-text-muted); font-size: .9rem; font-weight: 600; }
.ec-review-card { display: flex; align-items: center; gap: 18px; padding: 20px; border: 1px solid var(--ec-border); border-radius: 12px; background: #fff; }
.ec-review-icon { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; background: var(--ec-tint); color: var(--ec-primary); font-size: 1.65rem; }
.ec-review-copy { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ec-review-copy h3 { margin: 0 0 6px; color: var(--ec-text); font-size: 1.15rem; font-weight: 700; line-height: 1.25; }
.ec-review-copy p { margin: 0; color: var(--ec-text-muted); font-size: 1rem; line-height: 1.4; }
.ec-review-edit { display: inline-flex; flex-shrink: 0; align-items: center; gap: 7px; color: var(--ec-primary); text-decoration: none; font-size: .95rem; padding: 4px 0; }
.ec-review-edit:hover { color: var(--ec-primary); text-decoration: underline; }
.ec-review-edit:focus-visible,
.ec-step a:focus-visible { outline: 3px solid var(--ec-primary); outline-offset: 4px; border-radius: 3px; }
.ec-card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    margin-left: 6px;
    border-radius: 12px;
    color: #27624f;
    background: #e5f5ee;
    font-size: .7rem;
    font-weight: 600;
    vertical-align: middle;
}

body.ec-story .ec-page { overflow-wrap: anywhere; }
body.ec-story .ec-footer { display: none; }
body.ec-story .ec-card { max-width: none; padding: 28px; border: 1px solid var(--ec-border); border-radius: 16px; box-shadow: none; }
body.ec-story .ec-success-title,
body.ec-story .ec-card-error h1 { color: var(--ec-text); font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.15; letter-spacing: -.035em; font-weight: 700; }
body.ec-story .ec-success-subtitle { color: var(--ec-text-muted); line-height: 1.5; }
body.ec-story .ec-btn { min-height: 46px; padding: 12px 20px; border-radius: 10px; line-height: 1.35; }
body.ec-story .ec-btn-secondary,
body.ec-story .ec-btn-outline { color: var(--ec-primary); border: 1px solid #cfe6da; background: #fff; }
body.ec-story .ec-btn-secondary:hover,
body.ec-story .ec-btn-outline:hover { color: var(--ec-primary-dk); border-color: var(--ec-primary); background: var(--ec-tint); }
body.ec-story button:focus:not(:focus-visible),
body.ec-story a:focus:not(:focus-visible),
body.ec-story [tabindex]:focus:not(:focus-visible) { outline: none; box-shadow: none; }
body.ec-story .ec-btn:focus-visible,
body.ec-story a:focus-visible,
body.ec-story .ec-yesno-btn:focus-visible,
body.ec-story .ec-arrival-choice:focus-visible,
body.ec-story .ec-hospital-select:focus-visible,
body.ec-story .ec-arrival-action:focus-visible { outline: 3px solid var(--ec-primary); outline-offset: 3px; }
:where(body.ec-story) button:focus-visible,
:where(body.ec-story) summary:focus-visible,
:where(body.ec-story) select:focus-visible,
:where(body.ec-story) [tabindex]:not([tabindex="-1"]):focus-visible,
:where(body.ec-story) input[type="checkbox"]:focus-visible,
:where(body.ec-story) input[type="radio"]:focus-visible,
:where(body.ec-story) input[type="range"]:focus-visible { outline: 3px solid var(--ec-primary); outline-offset: 3px; }
body.ec-story a:not([class]), body.ec-story a:not([class]):hover { color: var(--ec-primary); }
body.ec-story .ec-nav-bar { gap: 12px; flex-wrap: wrap; margin-top: 28px; padding-top: 20px; }
body.ec-story .ec-nav-bar .ec-btn-primary { flex: 0 0 auto; min-width: 140px; margin-left: auto; }
body.ec-story .ec-nav-bar > .ec-btn, body.ec-story .ec-nav-bar-right > .ec-btn { min-width: 140px; height: 46px; box-sizing: border-box; justify-content: center; }
body.ec-story .ec-nav-bar-right { flex: 0 0 auto; margin-left: auto; gap: 16px; }
body.ec-story .ec-link-secondary { color: var(--ec-primary); }
body.ec-story .form-control,
body.ec-story .ec-select {
    min-width: 0;
    min-height: 50px;
    border: 1px solid var(--ec-border);
    border-radius: 10px;
    padding: 12px 14px;
    color: var(--ec-text);
    background-color: #fff;
    font-size: 1rem;
    line-height: 1.4;
}
body.ec-story .form-control::placeholder { color: #8a939b; opacity: 1; }
body.ec-story .form-control:focus,
body.ec-story .ec-select:focus { border-color: var(--ec-primary); box-shadow: 0 0 0 3px #37986b20; outline: none; }
body.ec-story .ec-select {
    appearance: none;
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%231f2933' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}
body.ec-story .ec-form-label,
body.ec-story .ec-question-label { color: var(--ec-text); font-size: 1rem; font-weight: 700; line-height: 1.4; margin-bottom: 8px; }
body.ec-story .ec-range-container input[type="range"] { accent-color: var(--ec-primary); }
body.ec-story .ec-checkbox-input,
body.ec-story .ec-page input[type="radio"] { width: 22px; height: 22px; accent-color: var(--ec-primary); flex-shrink: 0; }
body.ec-story .ec-checkbox-label,
body.ec-story .ec-radio-label { gap: 12px; color: var(--ec-text); line-height: 1.45; align-items: flex-start; }
body.ec-story .ec-checkbox-input { margin-top: 2px; }
body.ec-story .ec-radio-label input { margin-top: 2px; }
body.ec-story .ec-question-block,
body.ec-story .ec-followup-section,
body.ec-story .ec-info-block { border: 1px solid var(--ec-border); border-radius: 12px; padding: 20px; margin-bottom: 20px; box-shadow: none; }
body.ec-story .ec-question-sublabel { color: var(--ec-text-muted); line-height: 1.45; }
body.ec-story .ec-radio-group { gap: 12px; }
body.ec-story .ec-radio-label { flex: 1 1 140px; padding: 14px; border: 1px solid var(--ec-border); border-radius: 10px; }
body.ec-story .ec-radio-label:has(input:checked) { border-color: var(--ec-primary); background: var(--ec-tint); }
.ec-registration-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.ec-registration-field { grid-column: 1 / -1; min-width: 0; }
.ec-registration-field-compact { grid-column: auto; display: flex; flex-direction: column; justify-content: flex-end; }
.ec-registration-field:not(.ec-registration-field-compact) input[type="date"],
.ec-registration-field:not(.ec-registration-field-compact) select { max-width: 360px; }
body.ec-story .ec-form-label { text-wrap: balance; }
.ec-registration-scanned {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    margin-bottom: 24px;
    border: 1px solid #caeadd;
    border-radius: 12px;
    background: var(--ec-tint);
    color: var(--ec-text);
}
.ec-registration-scanned > i { color: var(--ec-primary); font-size: 2rem; }
.ec-registration-scanned p { margin: 4px 0 0; color: var(--ec-text-muted); line-height: 1.4; }
.ec-registration-field .ec-card-badge { margin: 6px 0 0; padding: 4px 10px; font-size: .75rem; }
.ec-registration-field:has(.ec-checkbox-input) { padding: 12px 16px; border-radius: 10px; background: var(--ec-tint); }
body.ec-story .ec-registration-field .ec-checkbox-label { margin: 0; }
body.ec-story .ec-complaint-echo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 14px 18px;
    background: var(--ec-surface);
    border: 1px solid var(--ec-border);
    border-radius: 10px;
    color: var(--ec-text-muted);
}
body.ec-story .ec-complaint-input { max-width: none; }
body.ec-story .ec-complaint-hint { font-size: .9rem; margin-top: 12px; text-align: left; }
body.ec-story .ec-no-results { display: flex; align-items: flex-start; gap: 10px; }
body.ec-story .ec-no-results > i { flex-shrink: 0; margin-top: .2em; }
body.ec-story .ec-options-list { gap: 12px; }
body.ec-story .ec-option-item { position: relative; padding: 18px; border-width: 1px; border-radius: 12px; }
body.ec-story .ec-option-label { font-weight: 600; min-width: 0; }
body.ec-story .ec-option-item:has(input:checked) { border-color: var(--ec-primary); background: var(--ec-tint); }
body.ec-story .ec-option-item input[type="radio"],
body.ec-story .ec-option-item input[type="checkbox"] { display: block; position: absolute; width: 1px; height: 1px; opacity: 0; }
body.ec-story .ec-option-item:has(:focus-visible) { outline: 3px solid var(--ec-primary); outline-offset: 3px; }
body.ec-story .ec-option-arrow { color: var(--ec-primary); }
body.ec-story .ec-option-check .ec-check-mark { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--ec-primary); border-radius: 4px; color: transparent; }
body.ec-story .ec-option-check:has(input:checked) .ec-check-mark { display: grid; background: var(--ec-primary); border-color: var(--ec-primary); color: #fff; }
body.ec-story .ec-followup-section-title { color: var(--ec-text); padding-bottom: 14px; border-bottom: 1px solid var(--ec-border); }
body.ec-story .ec-yesno-btn { border-width: 1px; border-radius: 10px; min-height: 46px; }
body.ec-story .ec-yesno-btn.ec-yesno-selected { background: var(--ec-tint); border-color: var(--ec-primary); color: var(--ec-text); }
body.ec-story .ec-choice-group { flex-wrap: wrap; }
body.ec-story .ec-choice-group .ec-yesno-btn { flex: 1 1 140px; }
body.ec-story .ec-triage-statics,
body.ec-story .ec-triage-list { display: flex; flex-direction: column; gap: 12px; padding: 0; border: 0; background: transparent; }
body.ec-story .ec-triage-list { max-height: 420px; scrollbar-width: thin; scrollbar-color: var(--ec-border) transparent; }
body.ec-story .ec-triage-item { margin: 0; padding: 16px 18px; border: 1px solid var(--ec-border); border-radius: 12px; background: #fff; align-items: center; font-weight: 600; }
body.ec-story .ec-triage-item:hover { background: var(--ec-surface); border-radius: 12px; }
body.ec-story .ec-triage-item:has(input:checked) { border-color: var(--ec-primary); background: var(--ec-tint); }
body.ec-story .ec-triage-item:focus-within { outline: 3px solid var(--ec-primary); outline-offset: -3px; }
body.ec-story .ec-triage-item .ec-checkbox-input { order: 2; margin: 0; accent-color: var(--ec-primary); }
.ec-triage-item-label { flex: 1; min-width: 0; }
body.ec-story .ec-triage-custom-row { color: var(--ec-primary); font-style: normal; }
body.ec-story .ec-triage-actions { display: grid; grid-template-columns: 1fr; gap: 12px; }
body.ec-story .ec-triage-actions .ec-btn { min-height: 50px; border-color: var(--ec-primary); }
body.ec-story .ec-trouble-hint {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 6px 12px;
    color: var(--ec-text-muted);
    padding: 18px;
    border: 1px solid var(--ec-border);
    background: var(--ec-tint);
    border-radius: 12px;
    line-height: 1.45;
}
body.ec-story .ec-trouble-hint > i { grid-row: 1 / span 2; align-self: center; color: var(--ec-primary); font-size: 1.5rem; }
body.ec-story .ec-trouble-link,
body.ec-story .ec-trouble-link:hover { color: var(--ec-primary); }
body.ec-story .ec-trouble-link > i { margin-inline-end: .4em; }
body.ec-story .ec-trouble-hint > span { min-width: 0; }
body.ec-story .ec-trouble-hint .ec-trouble-link { grid-column: 2; }
body.ec-story .input-group-text { color: var(--ec-primary); border: 1px solid var(--ec-border); border-radius: 10px 0 0 10px; background: #fff; }
body.ec-story .input-group .form-control { border-radius: 0 10px 10px 0; }
body.ec-story .ec-pain-scale-col { border-radius: 12px; border-color: var(--ec-border); }
body.ec-story .ec-pain-scale-header { text-transform: none; letter-spacing: 0; color: var(--ec-text); }
body.ec-story .ec-summary-section { border-radius: 12px; border-color: var(--ec-border); }
body.ec-story .ec-summary-section-title { padding: 16px 20px; background: var(--ec-surface); color: var(--ec-text); font-size: 1rem; text-transform: none; letter-spacing: 0; }
body.ec-story .ec-summary-detail { padding: 16px 20px; }
body.ec-story .ec-summary-block { border: 1px solid var(--ec-border); border-radius: 12px; padding: 16px 20px; background: var(--ec-surface); text-align: left; }
body.ec-story .ec-summary-label { color: var(--ec-text-muted); text-transform: none; letter-spacing: 0; }
body.ec-story .ec-summary-qa-row { flex-wrap: wrap; gap: 6px; }
body.ec-story .ec-summary-qa-answer { white-space: normal; }
body.ec-story .ec-confirmation-message { color: var(--ec-text-muted); line-height: 1.5; }
body.ec-story .ec-card-success { max-width: none; border: 0; padding: 8px 0; }
body.ec-story .ec-confirmation-actions .ec-btn { width: 100%; background: #fff; border: 1px solid var(--ec-border); color: var(--ec-text); }
body.ec-story .modal-content { border: 1px solid var(--ec-border); border-radius: 16px; color: var(--ec-text); }
body.ec-story .modal-header,
body.ec-story .modal-footer { border-color: var(--ec-border); padding: 20px; gap: 12px; }
body.ec-story .modal-body { padding: 20px; }
body.ec-story .modal-title { font-weight: 700; }
body.ec-story .modal-header .close { color: var(--ec-text); }
body.ec-story .ec-country-option { color: var(--ec-text); border-color: var(--ec-border); }
body.ec-story .ec-country-option:hover { background: var(--ec-surface); }
body.ec-story .ec-country-chip { color: var(--ec-primary); background: var(--ec-tint); border: 1px solid var(--ec-border); }
body.ec-story .ec-country-chip-remove { color: var(--ec-primary); font-size: 1.1rem; padding: 0 .1rem 0 .25rem; }
body.ec-story .ec-country-chip-remove:hover { color: var(--ec-text); }
body.ec-story .modal-footer .ec-btn { flex: 1 1 160px; margin: 0; }
body.ec-story .ec-warning-frame { padding: 0; overflow: hidden; border: 1px solid var(--ec-border); border-radius: 12px; background: var(--ec-surface); }
.ec-warning-frame iframe { display: block; width: 100%; height: 450px; border: 0; }
body.ec-story .ec-info-block { background: var(--ec-surface); color: var(--ec-text-muted); line-height: 1.6; }
body.ec-story .ec-info-lead { color: var(--ec-text); }
body.ec-story .ec-hc-logo-wrap { display: grid; place-items: center; margin: 24px 0; padding: 32px; border: 1px solid var(--ec-border); border-radius: 16px; background: var(--ec-surface); }
.ec-hc-card-frame { position: relative; display: grid; place-items: center; gap: 12px; width: 100%; max-width: 320px; padding: 28px; color: var(--ec-primary); font-weight: 700; }
.ec-hc-card-frame::before,
.ec-hc-card-frame::after { content: ""; position: absolute; width: 32px; height: 32px; border: solid #8cc5a8; border-radius: 6px; }
.ec-hc-card-frame::before { top: 0; left: 0; border-width: 4px 0 0 4px; }
.ec-hc-card-frame::after { bottom: 0; right: 0; border-width: 0 4px 4px 0; }
body.ec-story .ec-hc-logo { width: 100%; max-width: 180px; height: auto; }
body.ec-story .ec-healthcard-options { padding: 0; gap: 18px; }
body.ec-story .ec-healthcard-options .ec-btn-block { max-width: none; }
.ec-healthcard-manual { color: var(--ec-primary-dk); text-align: center; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.ec-healthcard-manual:hover { color: var(--ec-primary); }
body.ec-story .ec-hc-nocard-link { color: var(--ec-primary); }
body.ec-story .ec-scan-area { margin-bottom: 24px; border: 1px solid var(--ec-border); background: var(--ec-surface); }

@media (max-width: 600px) {
    body.ec-story .ec-card { padding: 20px 16px; }
    body.ec-story .ec-card-success { padding: 12px 0; }
    body.ec-story .ec-question-block,
    body.ec-story .ec-followup-section,
    body.ec-story .ec-info-block { padding: 16px; }
    .ec-registration-grid { gap: 18px 14px; }
    body.ec-story .ec-triage-item { padding: 16px 14px; }
    body.ec-story .ec-hc-logo-wrap { padding: 24px 20px; }
    body.ec-story .ec-hc-logo { max-width: 140px; }
    body.ec-story .modal-header,
    body.ec-story .modal-footer,
    body.ec-story .modal-body { padding: 16px; }
    body.ec-story .ec-nav-bar-right { flex-wrap: wrap; gap: 10px; }
}

@media (max-width: 380px) {
    .ec-registration-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 319px) {
    body.ec-story .ec-brand-name { display: none; }
}

.ec-arrival-page { overflow-wrap: anywhere; }
.ec-arrival-page .ec-step-header { display: flex; flex-direction: column; align-items: center; gap: 0; margin-bottom: 24px; }
.ec-arrival-eyebrow { margin: 0 0 12px; color: var(--ec-text-muted); font-size: .85rem; }
.ec-arrival-choices { display: grid; gap: 16px; }
.ec-arrival-choice {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px;
    border: 1px solid var(--ec-border);
    border-radius: 12px;
    background: var(--ec-surface);
    color: var(--ec-text);
    text-align: left;
    font: inherit;
    cursor: pointer;
}
.ec-arrival-choice-now { background: var(--ec-tint); border-color: #caeadd; }
.ec-arrival-choice-icon { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; background: var(--ec-tint); color: var(--ec-primary); font-size: 1.5rem; }
.ec-arrival-choice-now .ec-arrival-choice-icon { color: var(--ec-primary); background: #dcf4e8; }
.ec-arrival-choice-copy { flex: 1; min-width: 0; }
.ec-arrival-choice-title { display: block; font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
.ec-arrival-choice-description { display: block; margin-top: 8px; color: var(--ec-text-muted); line-height: 1.5; font-size: .95rem; }
.ec-arrival-chevron { color: var(--ec-primary); }
.ec-arrival-choice:hover { border-color: var(--ec-primary); }
.ec-arrival-hospital { display: flex; align-items: center; gap: 18px; border: 1px solid var(--ec-border); background: var(--ec-surface); border-radius: 12px; padding: 20px; margin-bottom: 20px; }
.ec-arrival-hospital > i { font-size: 2rem; color: var(--ec-primary); }
.ec-arrival-hospital h3, .ec-arrival-next h3 { color: var(--ec-text); font-size: 1.1rem; font-weight: 700; margin: 0; }
.ec-arrival-hospital p { margin: 6px 0 0; color: var(--ec-text-muted); }
.ec-arrival-action.ec-btn { display: flex; width: 100%; padding: 14px 20px; border-radius: 10px; background: var(--ec-primary); color: #fff; justify-content: center; text-align: center; }
.ec-arrival-action.ec-btn:hover { background: var(--ec-primary-dk); color: #fff; }
.ec-arrival-next { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--ec-border); }
.ec-arrival-next p { color: var(--ec-text-muted); margin: 10px 0 20px; }
.ec-arrival-status { display: grid; place-items: center; width: 64px; height: 64px; margin: 8px auto 20px; border-radius: 50%; color: var(--ec-primary); background: #dcf4e8; font-size: 1.8rem; }
.ec-arrival-status-warning { color: #886000; background: #fff3cd; }
.ec-arrival-expiry { margin: 10px 0 20px; text-align: center; color: var(--ec-text-muted); font-size: .85rem; }
.ec-postsubmit-arrival { margin: 24px 0; padding-top: 20px; border-top: 1px solid var(--ec-border); }
.ec-remember-hospital {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    margin-bottom: 20px;
    border-radius: 12px;
    background: var(--ec-tint);
    color: var(--ec-text);
    font-size: .95rem;
    line-height: 1.5;
    cursor: pointer;
}
.ec-remember-hospital input { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 2px; accent-color: var(--ec-primary); }
.ec-hospital-group-title { display: block; margin: 0 0 12px; color: var(--ec-text-muted); font-size: .9rem; font-weight: 700; }
.ec-hospital-recent { margin-bottom: 24px; }
.ec-hospital-results { display: grid; gap: 12px; }
.ec-hospital-result { position: relative; display: flex; align-items: center; gap: 16px; padding: 18px; border: 1px solid var(--ec-border); border-radius: 12px; background: var(--ec-surface); }
.ec-hospital-result:has(.ec-hospital-provider) { flex-wrap: wrap; }
.ec-hospital-provider { flex-basis: 100%; color: var(--ec-text-muted); font-size: .75rem; text-align: right; }
.ec-hospital-result[hidden], .ec-hospital-recent[hidden], .ec-hospital-places[hidden] { display: none; }
.ec-hospital-result-icon {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--ec-tint);
    color: var(--ec-primary);
    font-size: 1.25rem;
}
.ec-hospital-result-copy { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ec-hospital-result-copy h3 { color: var(--ec-text); font-size: 1rem; font-weight: 700; margin: 0 0 4px; }
.ec-hospital-result-copy p { color: var(--ec-text-muted); font-size: .85rem; margin: 6px 0 0; }
.ec-hospital-partner { display: inline-block; padding: 2px 8px; border-radius: 12px; background: #dcf4e8; color: #27624f; font-size: .75rem; }
.ec-hospital-select {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ec-primary);
    cursor: pointer;
}
.ec-hospital-select:hover { background: #dcf4e8; }
.ec-hospital-select::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.ec-hospital-result:has(.ec-hospital-select:hover), .ec-hospital-result:has(.ec-hospital-select:focus-visible) { border-color: var(--ec-primary); }
.ec-hospital-directions { flex: 0 1 130px; color: var(--ec-primary); font-size: .85rem; text-align: center; }
.ec-hospital-search-field { position: relative; margin-bottom: 20px; }
.ec-hospital-search-field > i { position: absolute; top: 50%; left: 16px; transform: translateY(-50%); color: var(--ec-text-muted); pointer-events: none; }
body.ec-story .ec-hospital-search-field input { padding: 12px 16px 12px 44px; height: auto; border-color: var(--ec-border); border-radius: 10px; }
body.ec-story .ec-hospital-search-field input::-webkit-search-cancel-button { margin-inline-start: 8px; }
.ec-hospital-search-status { color: var(--ec-text-muted); font-size: .85rem; margin: 12px 0; }
.ec-hospital-places { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--ec-border); }
.ec-google-attribution { margin-top: 12px; color: #5e5e5e; font-size: .8rem; font-weight: 400; white-space: nowrap; }
.ec-hospital-cancel { justify-content: center; }

@media (max-width: 600px) {
    .ec-arrival-choice { padding: 20px 14px; gap: 12px; }
    .ec-arrival-choice-icon { flex-basis: 36px; width: 36px; height: 36px; font-size: 1.2rem; }
    .ec-arrival-choice-title { font-size: 1rem; }
    .ec-arrival-choice-description { font-size: .85rem; }
    .ec-hospital-result { padding: 14px 12px; gap: 10px; }
    .ec-hospital-result-icon { flex-basis: 32px; width: 32px; height: 32px; font-size: 1rem; }
    .ec-hospital-result:has(.ec-hospital-directions) { flex-wrap: wrap; }
    .ec-hospital-result .ec-hospital-directions { flex-basis: 100%; padding: 8px; }
}

@media (max-width: 600px) {
    body.ec-story { --ec-checkin-gutter: 16px; }
    body.ec-story .ec-navbar-left { gap: 8px; }
    body.ec-story .ec-navbar-right { gap: 8px; }
    body.ec-story .ec-brand { gap: 6px; }
    body.ec-story .ec-brand-name { font-size: .9rem; }
    body.ec-story .ec-navbar-inner:has(.ec-navbar-hospital) .ec-brand-name { display: none; }
    .ec-navbar-hospital { font-size: .8rem; gap: 6px; }
    body.ec-story .ec-logo { height: 34px; }
    body.ec-story .ec-navbar-back span { display: none; }
    body.ec-story .ec-navbar-back { padding: 6px 8px; }
    .ec-stepper { padding-top: 6px; }
    .ec-stepper-list { gap: 2px; }
    .ec-step-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .ec-step { gap: 0; }
    .ec-stepper-caption { display: block; margin: 0 0 8px; text-align: center; font-size: .85rem; font-weight: 700; color: var(--ec-primary); }
    .ec-step-check { width: 20px; height: 20px; }
    .ec-review-card { padding: 14px 12px; gap: 12px; border-radius: 9px; }
    .ec-review-icon { flex-basis: 36px; width: 36px; height: 36px; font-size: 1.3rem; }
    .ec-review-copy h3 { font-size: 1rem; }
    .ec-review-copy p { font-size: .9rem; }
    .ec-review-edit { font-size: .85rem; gap: 5px; }
    body.ec-story .ec-pain-scale-col { padding: .65rem .35rem; }
    body.ec-story .ec-pain-scale-header { font-size: .75rem; text-transform: none; letter-spacing: 0; }
}
