/* CSS Variable Definitions for Guided Assessment */
:root {
    --ga-text-tertiary: #64748b;
    --ga-text-secondary: #475569;
    --ga-accent-blue: #3b82f6;
    --ga-accent-blue-dark: #1e40af;
    --ga-border-light: #e2e8f0;
}

body {
    font-family: Inter, Segoe UI, Arial, sans-serif;
    margin: 0;
    line-height: 1.5;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, .10), transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
    color: #142033;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible,
[role="button"]:focus-visible {
    outline: 3px solid #1d4ed8;
    outline-offset: 2px;
}

a { color: #2563eb; }

.patient-public-layout {
    min-height: 100vh;
    padding: 1rem;
}

.app-shell {
    display: flex;
    align-items: flex-start;
    min-height: 100vh;
    gap: 1.5rem;
    padding: 1.5rem;
    box-sizing: border-box;
}

.app-sidebar {
    width: 300px;
    min-width: 300px;
    align-self: flex-start;
    position: sticky;
    top: 1rem;
    z-index: 6000;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.15rem;
    border-radius: 1.2rem;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, .16), transparent 42%),
        linear-gradient(180deg, #0b1220 0%, #111827 100%);
    border: 1px solid rgba(148, 163, 184, .38);
    box-shadow: 0 24px 48px rgba(2, 6, 23, .42);
}

.app-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
    padding: .5rem .6rem .85rem;
    border-bottom: 1px solid rgba(191, 219, 254, .32);
}

.app-brand-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: .8rem;
    background: rgba(255, 255, 255, .98);
    padding: .28rem;
}

.app-brand strong,
.app-brand small {
    display: block;
    color: #eff6ff;
}

.app-brand strong {
    font-size: 1.12rem;
    letter-spacing: .01em;
}

.app-brand small {
    font-size: .86rem;
    color: rgba(226, 232, 240, .92);
}

.main-content {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
}

.app-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .8rem;
    border-bottom: 1px solid #e6edf8;
    padding: 1rem 1.25rem .85rem;
}

.app-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
    padding: .65rem 1.25rem .45rem;
    color: #64748b;
    font-size: .82rem;
    border-bottom: 1px solid #edf2fa;
}

.app-breadcrumb-root {
    color: #0f172a;
    font-weight: 700;
}

.app-breadcrumb-separator {
    color: #94a3b8;
}

.app-topbar-kicker {
    margin: 0;
    color: #64748b;
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 700;
}

.app-topbar-title {
    margin: .25rem 0 0;
    font-size: 1.15rem;
    color: #0f172a;
}

.app-topbar-actions {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.app-topbar-links {
    display: flex;
    gap: .45rem;
    flex-wrap: wrap;
}

.nav {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.nav-link {
    padding: .5rem .75rem;
    border-radius: .5rem;
    color: #374151;
    text-decoration: none;
}

.dashboard-nav {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.dashboard-nav-label {
    margin: 0;
    color: #bfdbfe;
    font-size: .84rem;
    text-transform: uppercase;
    letter-spacing: .09em;
    font-weight: 800;
}

.dashboard-nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.05rem 1.1rem;
    border-radius: 1rem;
    color: #e2e8f0;
    background: rgba(15, 23, 42, .58);
    border: 1px solid rgba(148, 163, 184, .48);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 10px 20px rgba(2, 6, 23, .28);
    backdrop-filter: blur(4px);
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.dashboard-nav-link,
.dashboard-nav-link:visited,
.dashboard-nav-link:hover,
.dashboard-nav-link:focus {
    color: #e2e8f0;
    text-decoration: none;
}

.dashboard-nav-link:hover,
.dashboard-nav-link:focus-visible {
    background: rgba(30, 41, 59, .7);
    border-color: rgba(147, 197, 253, .74);
    box-shadow: inset 0 0 0 1px rgba(191, 219, 254, .22), 0 12px 24px rgba(2, 6, 23, .36);
    transform: translateY(-1px);
}

.dashboard-nav-link strong {
    color: #f8fafc;
}

.dashboard-nav-link-active {
    background: rgba(17, 24, 39, .82);
    border: 1px solid rgba(96, 165, 250, .88);
    box-shadow: inset 0 0 0 1px rgba(147, 197, 253, .22), 0 14px 26px rgba(2, 6, 23, .42);
}

.dashboard-nav-link-active::before {
    content: "";
    position: absolute;
    left: .45rem;
    top: .55rem;
    bottom: .55rem;
    width: .3rem;
    border-radius: 999px;
    background: #3b82f6;
}

.dashboard-nav-link-active,
.dashboard-nav-link-active:visited,
.dashboard-nav-link-active:hover,
.dashboard-nav-link-active:focus,
.dashboard-nav-link-active strong {
    color: #f8fafc;
}

.dashboard-nav-link-active small {
    color: #cbd5e1;
}

.dashboard-nav-link-active .dashboard-nav-icon {
    background: #3b82f6;
    color: #ffffff;
    border-color: #60a5fa;
}

.dashboard-nav-link strong,
.dashboard-nav-link small {
    display: block;
}

.dashboard-nav-link small {
    margin-top: .2rem;
    color: #cbd5e1;
    font-size: .95rem;
}

.dashboard-nav-icon {
    width: 2.45rem;
    height: 2.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .9rem;
    background: rgba(30, 58, 138, .9);
    color: #dbeafe;
    border: 1px solid rgba(96, 165, 250, .58);
    box-shadow: inset 0 1px 0 rgba(191, 219, 254, .22);
    font-size: 1.06rem;
}

.dashboard-nav-badge {
    position: absolute;
    top: .65rem;
    right: .65rem;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 .3rem;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(239, 68, 68, .28);
}

.app-sidebar-footer {
    margin-top: auto;
    padding-top: .95rem;
    border-top: 1px solid rgba(191, 219, 254, .24);
}

.app-language-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .75rem;
    padding: .7rem .8rem;
    border: 1px solid rgba(148, 163, 184, .32);
    border-radius: .95rem;
    background: rgba(15, 23, 42, .28);
    color: #cbd5e1;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.app-language-toggle {
    display: inline-flex;
    align-items: center;
    gap: .15rem;
    padding: .18rem;
    border: 1px solid rgba(147, 197, 253, .36);
    border-radius: 999px;
    background: rgba(15, 23, 42, .34);
}

.app-language-toggle-light {
    border-color: #c7d8f7;
    background: #eef6ff;
}

.app-language-option {
    min-width: 2.2rem;
    min-height: 2rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #cbd5e1;
    font-size: .78rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.app-language-toggle-light .app-language-option {
    color: #1d4ed8;
}

.app-language-option:hover,
.app-language-option:focus-visible {
    color: #fff;
    background: rgba(59, 130, 246, .35);
    outline: none;
}

.app-language-toggle-light .app-language-option:hover,
.app-language-toggle-light .app-language-option:focus-visible {
    color: #0f172a;
    background: #dbeafe;
}

.app-language-option-active,
.app-language-toggle-light .app-language-option-active {
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    box-shadow: 0 8px 18px rgba(37, 99, 235, .24);
}

.app-about-link {
    display: flex;
    align-items: center;
    gap: .85rem;
    width: 100%;
    margin-bottom: .75rem;
    padding: .85rem .9rem;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: .95rem;
    background: rgba(255, 255, 255, .08);
    color: #e2e8f0;
    text-align: left;
    transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.app-about-link:hover,
.app-about-link:focus-visible {
    border-color: rgba(147, 197, 253, .65);
    background: rgba(59, 130, 246, .16);
    outline: none;
    transform: translateY(-1px);
}

.app-about-link strong,
.app-about-link small {
    display: block;
}

.app-about-link strong {
    color: #ffffff;
}

.app-about-link small {
    color: rgba(226, 232, 240, .82);
}

.app-about-icon {
    background: rgba(219, 234, 254, .15);
}

.app-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(15, 23, 42, .48);
}

.app-about-modal {
    position: relative;
    width: min(560px, 100%);
    border: 1px solid var(--crx-border);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 28px 70px rgba(15, 23, 42, .28);
    overflow: hidden;
}

.app-modal-close {
    position: absolute;
    top: .85rem;
    right: .85rem;
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--crx-border);
    border-radius: 999px;
    background: #ffffff;
    color: var(--crx-muted);
    font-weight: 800;
}

.app-modal-close:hover,
.app-modal-close:focus-visible {
    border-color: var(--crx-blue);
    color: var(--crx-blue-dark);
    outline: none;
}

.app-about-modal-header {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1.35rem 1.5rem;
    border-bottom: 1px solid var(--crx-border);
    background: linear-gradient(135deg, #eff6ff, #ffffff);
}

.app-about-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border: 1px solid var(--crx-border);
    border-radius: 10px;
    background: #ffffff;
}

.app-about-modal-header h2 {
    margin: 0;
    color: var(--crx-text);
    font-size: 1.25rem;
}

.app-about-modal-body {
    display: grid;
    gap: .7rem;
    padding: 1.5rem;
    color: var(--crx-text);
}

.app-about-modal-body p {
    margin: 0;
}

.app-about-badge-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
    margin-top: .5rem;
}

.app-about-badge-card {
    display: grid;
    justify-items: center;
    gap: .5rem;
    padding: .95rem;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    background: #f8fbff;
    color: var(--crx-blue-dark);
    text-align: center;
    text-decoration: none;
    font-weight: 800;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.app-about-badge-card:hover,
.app-about-badge-card:focus-visible {
    border-color: var(--crx-blue);
    box-shadow: 0 14px 28px rgba(37, 99, 235, .14);
    transform: translateY(-1px);
    outline: none;
}

.app-about-badge-card img {
    width: 104px;
    height: 104px;
    object-fit: contain;
}

.app-about-badge-card span {
    display: block;
    font-size: .9rem;
    line-height: 1.25;
}

.app-about-badge-card small {
    color: var(--crx-muted);
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.account-credentials-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: .9rem;
    margin-top: 1.25rem;
    padding: 1rem;
    border: 1px solid #c7d8f7;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff, #eef6ff);
    box-shadow: 0 16px 36px rgba(15, 23, 42, .08);
}

.account-credentials-copy h3 {
    margin: .1rem 0 .25rem;
    color: var(--crx-text);
    font-size: 1.05rem;
}

.account-credentials-copy p {
    margin: 0 0 .45rem;
    color: var(--crx-muted);
}

.account-credentials-copy p:last-child {
    margin-bottom: 0;
}

.account-privacy-link {
    color: #0b46c8;
    font-weight: 800;
    text-decoration: none;
}

.account-privacy-link:hover,
.account-privacy-link:focus-visible {
    color: #063a9c;
    text-decoration: underline;
}

.privacy-page {
    max-width: 1120px;
    margin: 0 auto;
}

.privacy-card {
    margin-top: 1rem;
}

.privacy-card p {
    color: #244066;
    line-height: 1.65;
}

.privacy-updated {
    color: #5b6f91 !important;
    font-weight: 800;
}

.account-credentials-badges {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    margin-top: 0;
}

.account-credentials-badges .app-about-badge-card {
    grid-template-columns: auto 1fr;
    justify-items: start;
    align-items: center;
    gap: .9rem;
    min-height: 0;
    padding: .75rem .9rem;
    background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
    text-align: left;
}

.account-credentials-badges .app-about-badge-card img {
    width: clamp(104px, 9vw, 128px);
    height: clamp(104px, 9vw, 128px);
    grid-row: span 2;
}

.account-credentials-badges .app-about-badge-card span {
    align-self: end;
    font-size: .95rem;
}

.account-credentials-badges .app-about-badge-card small {
    align-self: start;
}

.app-about-badge-links {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: .25rem;
}

.app-about-badge-links a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: .55rem .8rem;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: var(--crx-blue-soft);
    color: var(--crx-blue-dark);
    font-weight: 800;
    text-decoration: none;
}

.app-about-badge-links a:hover,
.app-about-badge-links a:focus-visible {
    border-color: var(--crx-blue);
    background: #ffffff;
    outline: none;
}

@media (max-width: 760px) {
    .app-about-badge-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 920px) {
    .account-credentials-panel {
        grid-template-columns: 1fr;
    }

    .account-credentials-badges {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .account-credentials-badges {
        grid-template-columns: 1fr;
    }
}

.app-signout-link {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .85rem .9rem;
    border-radius: .95rem;
    color: #e2e8f0;
    text-decoration: none;
    border: 1px solid rgba(148, 163, 184, .36);
    background: rgba(15, 23, 42, .38);
    transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.app-signout-link:hover,
.app-signout-link:focus-visible {
    color: #ffffff;
    text-decoration: none;
    background: rgba(30, 41, 59, .72);
    border-color: rgba(147, 197, 253, .7);
    transform: translateY(-1px);
}

.app-signout-link strong,
.app-signout-link small {
    display: block;
}

.app-signout-link strong {
    color: #f8fafc;
    font-size: .95rem;
}

.app-signout-link small {
    color: #cbd5e1;
    font-size: .82rem;
}

.app-signout-icon {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: .8rem;
    background: rgba(30, 58, 138, .55);
    font-size: 1rem;
}

.nav-pills .nav-link:hover {
    background: rgba(30, 41, 59, .7);
    border-color: rgba(147, 197, 253, .74);
}

.card {
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(226, 232, 240, .95);
    border-radius: 1.25rem;
}

.card-body {
    padding: 1.15rem;
}

.shadow-sm {
    box-shadow: 0 20px 40px rgba(15, 23, 42, .08);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: .9rem;
    padding: .72rem 1rem;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: .01em;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: .58;
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-color: #2563eb;
    color: #fff;
    box-shadow: 0 12px 24px rgba(37, 99, 235, .18);
}

.btn-outline-primary {
    border-color: #bfdbfe;
    color: #1d4ed8;
    background: rgba(255, 255, 255, .8);
}

.btn-outline-secondary {
    border-color: #cbd5e1;
    color: #334155;
    background: rgba(255, 255, 255, .8);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: #ef4444;
    color: #fff;
    box-shadow: 0 12px 24px rgba(239, 68, 68, .16);
}

.alert {
    padding: .75rem 1rem;
    border-radius: .5rem;
}

.alert-warning {
    background: #fff7ed;
    border: 1px solid #fdba74;
    color: #9a3412;
}

.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: 1rem; }
.mb-0 { margin-bottom: 0; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.px-4 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.text-muted { color: #6b7280; }
.border-bottom { border-bottom: 1px solid #e5e7eb; }
.border-end { border-right: 1px solid #e5e7eb; }
.bg-white { background: #fff; }
.ms-auto { margin-left: auto; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.home-hero {
    max-width: 840px;
}

.condition-page-shell {
    max-width: 1120px;
}

.mode-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.mode-choice-card {
    height: 100%;
}

.mode-choice-card-deferred {
    position: relative;
}

.mode-choice-badge {
    position: absolute;
    top: .85rem;
    right: .85rem;
    min-width: 1.9rem;
    height: 1.9rem;
    padding: 0 .45rem;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-weight: 800;
    font-size: .82rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 18px rgba(220, 38, 38, .28);
}

.mode-choice-title {
    margin: 0 0 .6rem;
    color: #0f172a;
}

.mode-choice-text {
    margin: 0 0 1rem;
    color: #475569;
}

.page-nav-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.deferred-inbox-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

.deferred-inbox-badge {
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 .3rem;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.condition-hero {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    padding: 1.75rem;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 52%, #38bdf8 100%);
    box-shadow: 0 24px 60px rgba(37, 99, 235, .18);
    text-align: center;
}

.condition-hero-copy {
    max-width: 760px;
}

.condition-hero-logo {
    width: 88px;
    height: 88px;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, .96);
    padding: .5rem;
    margin: 0 auto 1rem;
    display: block;
}

.condition-hero-badge {
    display: inline-flex;
    align-items: center;
    padding: .35rem .75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    color: #dbeafe;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 1rem;
}

.condition-page-title {
    margin: 0 0 .75rem;
    color: #fff;
    font-size: 2.25rem;
    line-height: 1.1;
}

.condition-page-instruction {
    margin: 0;
    color: rgba(255, 255, 255, .9);
    font-size: 1.02rem;
    max-width: 56rem;
    line-height: 1.55;
}

.condition-hero-points {
    display: none;
}

.condition-hero-point {
    display: inline-flex;
    align-items: center;
    padding: .55rem .9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #eff6ff;
    font-weight: 600;
}

.delayed-card .condition-hero-point,
.delayed-patient-shell .condition-hero-point {
    background: #eef4ff;
    color: #1e3a8a;
    border: 1px solid #c7d8fb;
}

.condition-page-logo {
    width: 76px;
    height: 76px;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 1rem;
    background: rgba(255, 255, 255, .96);
    padding: .4rem;
    align-self: flex-start;
}

.condition-search-card {
    margin-bottom: 1rem;
    border-radius: 1.5rem;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .08);
    overflow: visible;
}

.condition-card {
    margin-bottom: 1rem;
    padding: 1.25rem;
    border: 1px solid #dbe4f0;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .08);
}

.condition-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.condition-card-eyebrow {
    margin: 0 0 .35rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .78rem;
    font-weight: 700;
}

.condition-card-title {
    margin: 0;
    color: #0f172a;
    font-size: 1.28rem;
    line-height: 1.25;
}

.patient-portal-condition-list {
    display: grid;
    gap: .75rem;
    margin-top: 1rem;
}

.patient-profile-reminder {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: .95rem 0 1rem;
    padding: .9rem 1rem;
    border: 1px solid #bfdbfe;
    border-radius: .9rem;
    background: #f8fbff;
}

.patient-profile-reminder strong,
.patient-profile-reminder span {
    display: block;
}

.patient-profile-reminder strong {
    color: #0f3b8f;
    margin-bottom: .2rem;
}

.patient-profile-reminder span {
    color: #475569;
}

.patient-portal-search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .85rem;
    padding: 1rem;
    border: 1px solid #cfe0f7;
    border-radius: 1rem;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, .10), transparent 42%),
        #f8fbff;
}

.patient-portal-search-panel h4 {
    margin: 0 0 .25rem;
    color: #0f172a;
    font-size: 1.05rem;
}

.patient-portal-search-panel p {
    margin: 0;
    color: #475569;
}

.patient-portal-results-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding: .85rem 1rem;
    border-radius: .9rem;
    background: #eef6ff;
    border: 1px solid #cfe0f7;
}

.patient-portal-results-heading strong,
.patient-portal-results-heading span {
    display: block;
}

.patient-portal-results-heading strong {
    color: #0f3b8f;
}

.patient-portal-results-heading span {
    margin-top: .15rem;
    color: #475569;
    font-size: .92rem;
}

.patient-portal-condition-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: .95rem 1rem;
    border: 1px solid #cfe0f7;
    border-radius: .9rem;
    background: #fff;
    color: #0f172a;
    text-align: left;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .04);
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.patient-portal-condition-button:hover,
.patient-portal-condition-button:focus-visible {
    border-color: #2f6fec;
    box-shadow: 0 14px 34px rgba(47, 111, 236, .14);
    transform: translateY(-1px);
}

.patient-portal-condition-button strong,
.patient-portal-condition-button small {
    display: block;
}

.patient-portal-condition-button small {
    margin-top: .2rem;
    color: #58708f;
    font-weight: 500;
}

.patient-portal-condition-action {
    flex: 0 0 auto;
    color: #1d4ed8;
    font-weight: 800;
}

.patient-portal-condition-button:disabled {
    cursor: wait;
    opacity: .7;
    transform: none;
}

.condition-mode-pill {
    display: inline-flex;
    align-items: center;
    padding: .45rem .8rem;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 700;
    white-space: nowrap;
}

.search-modes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .9rem;
}

.search-mode-card {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: 1rem;
    border: 1px solid #dbe4f0;
    border-radius: 1rem;
    background: #f8fbff;
    cursor: pointer;
    transition: all .18s ease;
}

.search-mode-card strong,
.search-mode-card small {
    display: block;
}

.search-mode-card small {
    margin-top: .25rem;
    color: #64748b;
}

.search-mode-card-active {
    border-color: #93c5fd;
    background: #eff6ff;
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, .15);
}

.condition-search-panel {
    position: relative;
    z-index: 1;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    overflow: visible;
}

.condition-picker-label {
    display: block;
    margin-bottom: .7rem;
    color: #0f172a;
    font-weight: 700;
}

.condition-search-actions {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.condition-search-input-wrap {
    position: relative;
    z-index: 20;
    flex: 1 1 320px;
    min-width: 320px;
}

.condition-picker {
    min-width: 320px;
    width: 100%;
    flex: 1 1 320px;
    padding: .8rem .95rem;
    border: 1px solid #cbd5e1;
    border-radius: .9rem;
    background: #fff;
    color: #0f172a;
    box-sizing: border-box;
}

.condition-suggestion-list {
    position: absolute;
    top: calc(100% + .4rem);
    left: 0;
    right: 0;
    z-index: 30;
    max-height: min(24rem, 55vh);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: .45rem;
    border: 1px solid #dbe4f0;
    border-radius: 1rem;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 18px 36px rgba(15, 23, 42, .12);
}

.condition-suggestion-item {
    border: 0;
    background: transparent;
    text-align: left;
    padding: .75rem .8rem;
    border-radius: .8rem;
    color: #0f172a;
    cursor: pointer;
}

.condition-suggestion-item:hover,
.condition-suggestion-item-active {
    background: #eff6ff;
}

.condition-suggestion-match {
    background: #dbeafe;
    color: #1e3a8a;
    border-radius: .3rem;
    padding: 0 .12rem;
    font-weight: 700;
}

.btn-cta {
    padding: .85rem 1.05rem;
    border-radius: .9rem;
}

.condition-search-hint {
    margin: .8rem 0 0;
    color: #64748b;
}

.condition-associated-message {
    margin-top: 1rem;
    color: #1d4ed8;
    font-style: italic;
    padding: .85rem 1rem;
    border-radius: .9rem;
    background: #eff6ff;
}

.condition-page-disclaimer {
    margin: 0;
    text-align: center;
    color: #6b7280;
    font-size: .85rem;
    font-style: italic;
}

.assessment-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 55%, #38bdf8 100%);
    color: #fff;
    padding: 1.4rem 1.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 22px 54px rgba(37, 99, 235, .16);
}

.assessment-header-under-toolbar {
    margin-top: .75rem;
}

.assessment-header-copy {
    max-width: 52rem;
}

.assessment-badge {
    display: inline-flex;
    align-items: center;
    padding: .35rem .75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    color: #dbeafe;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .9rem;
}

.assessment-title {
    margin: 0 0 .55rem;
    font-size: 2rem;
    line-height: 1.05;
}

.assessment-subtitle {
    margin: 0;
    color: rgba(255,255,255,.9);
    font-size: 1rem;
}

.assessment-header-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-top: .75rem;
}

.assessment-metric {
    display: inline-flex;
    align-items: center;
    padding: .5rem .8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    color: #eff6ff;
    font-weight: 600;
}

.assessment-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 1rem;
    background: rgba(255, 255, 255, .98);
    padding: .35rem;
}

.symptoms-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.symptoms-panel,
.diagnosis-panel,
.treatments-panel {
    background: rgba(255, 255, 255, .96);
    border: 1px solid #dbe4f0;
    border-radius: 1.2rem;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .05);
}

.red-flags {
    border-color: #dc3545;
}

.red-flags h4 {
    color: #dc3545;
}

.symptom-option {
    display: block;
    margin-bottom: .5rem;
}

.symptom-group-stack {
    display: flex;
    flex-direction: column;
    gap: .95rem;
}

.symptom-group-card {
    border: 1px solid #dbe4f0;
    border-radius: 1rem;
    background: #f8fbff;
    padding: .85rem;
}

.symptom-group-title {
    margin: 0 0 .65rem;
    font-size: .95rem;
    font-weight: 700;
    color: #1e3a8a;
}

.symptom-options-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem 1rem;
}

.symptom-option-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .75rem .85rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #fff;
}

.symptom-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    flex: 1;
}

.symptom-checkbox-label-locked {
    opacity: .52;
    cursor: not-allowed;
}

.symptom-checkbox-label-locked input {
    cursor: not-allowed;
}

.symptom-help-button {
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    flex-shrink: 0;
    border: 1px solid #93c5fd;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.symptom-help-button:hover {
    background: #dbeafe;
}

.symptom-help-button-glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    font-family: Inter, Segoe UI, Arial, sans-serif;
    font-size: .82rem;
    font-weight: 800;
    font-style: normal;
    line-height: 1;
}

.symptom-help-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 7000;
}

.symptom-help-dialog {
    width: min(680px, 100%);
    max-height: 90vh;
    overflow: auto;
    background: #fff;
    border-radius: .75rem;
    padding: 1rem;
    box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, .2);
}

.symptom-help-dialog-wide {
    width: min(980px, 100%);
}

.ga-reference-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.ga-references-dialog {
    width: min(840px, 100%);
}

.ga-reference-list {
    margin: 0;
    padding-left: 1.25rem;
}

.ga-reference-list li + li {
    margin-top: 0.75rem;
}

.ga-decision-support-dialog {
    width: min(920px, 100%);
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
}

.ga-decision-support-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.35rem 1.5rem 1.15rem;
    border-bottom: 1px solid #dbe7f3;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.10), rgba(20, 184, 166, 0.08)),
        #ffffff;
}

.ga-decision-support-title-block {
    max-width: 680px;
}

.ga-decision-support-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 0.45rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.10);
    color: #1d4ed8;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.ga-decision-support-title-block h4 {
    margin: 0;
    color: #0f172a;
    font-size: 1.45rem;
    letter-spacing: 0;
}

.ga-decision-support-title-block p {
    margin: 0.45rem 0 0;
    color: #475569;
    font-size: 0.98rem;
    line-height: 1.5;
}

.ga-decision-support-close {
    min-width: 86px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.ga-decision-support-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: #f8fbff;
}

.ga-decision-support-dialog .criteria-group {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    margin: 0;
    padding: 1rem;
    border: 1px solid #d9e5f2;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.ga-decision-support-dialog .criteria-group:hover {
    background: #ffffff;
    border-color: #c7d7ea;
}

.ga-decision-support-dialog .criteria-group-title {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    min-height: 3.5rem;
    margin-bottom: 0.85rem;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.055em;
    line-height: 1.35;
}

.ga-decision-support-step {
    display: inline-grid;
    place-items: center;
    width: 1.55rem;
    height: 1.55rem;
    flex: 0 0 1.55rem;
    border-radius: 999px;
    background: #2563eb;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0;
}

.ga-decision-support-dialog .criteria-item {
    position: relative;
    margin-bottom: 0.65rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid #dbe5f0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.ga-decision-support-dialog .criteria-item:hover {
    border-color: #93c5fd;
    background: #f8fbff;
    transform: translateY(-1px);
}

.ga-decision-support-dialog .criteria-item.checked {
    border-color: #2563eb;
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdfa 100%);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
}

.ga-decision-support-dialog .criteria-item.checked::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 8px;
    border: 1px solid rgba(37, 99, 235, 0.28);
    pointer-events: none;
}

.ga-decision-support-dialog .criteria-label {
    color: #172033;
    font-size: 0.92rem;
    line-height: 1.42;
}

.ga-decision-support-result {
    margin: 0 1.5rem 0.25rem;
    padding: 1rem 1.15rem;
    border-radius: 8px;
    border: 1px solid transparent;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
}

.ga-decision-support-result-label {
    display: inline-flex;
    margin-bottom: 0.45rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ga-decision-support-result h5 {
    margin: 0 0 0.3rem;
    font-size: 1.08rem;
    letter-spacing: 0;
}

.ga-decision-support-result p {
    margin: 0 0 0.65rem;
    line-height: 1.5;
}

.ga-decision-support-result.success {
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdfa 100%);
    border-color: #86efac;
    color: #166534;
}

.ga-decision-support-result.warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 100%);
    border-color: #fbbf24;
    color: #92400e;
}

.ga-decision-support-result.danger {
    background: linear-gradient(135deg, #fef2f2 0%, #fff1f2 100%);
    border-color: #fca5a5;
    color: #991b1b;
}

.ga-decision-support-result-list {
    padding-left: 1.15rem;
}

.ga-decision-support-result-list li + li {
    margin-top: .35rem;
}

.ga-decision-support-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    padding: 0.8rem 1.5rem 1.15rem;
    background: #ffffff;
}

@media (max-width: 860px) {
    .ga-decision-support-grid {
        grid-template-columns: 1fr;
    }

    .ga-decision-support-dialog .criteria-group-title {
        min-height: auto;
    }
}

@media (max-width: 640px) {
    .ga-decision-support-header {
        flex-direction: column;
        padding: 1.1rem;
    }

    .ga-decision-support-close {
        width: 100%;
    }

    .ga-decision-support-grid {
        padding: 1rem;
    }

    .ga-decision-support-result {
        margin-right: 1rem;
        margin-left: 1rem;
    }

    .ga-decision-support-actions {
        flex-direction: column-reverse;
        padding: 0.8rem 1rem 1rem;
    }
}

.print-summary {
    display: none;
}

@media print {
    @page {
        size: auto;
        margin: 12mm;
    }

    body {
        margin: 0 !important;
        background: #fff !important;
    }

    .app-sidebar,
    .app-topbar,
    .app-breadcrumb,
    .print-hidden,
    .symptoms-layout,
    .symptoms-panel,
    .diagnosis-panel,
    .treatments-panel,
    .assessment-support-grid,
    .assessment-disclaimer,
    .assessment-toast-container,
    .symptom-help-overlay,
    .condition-page-shell > :not(.print-summary) {
        display: none !important;
    }

    .app-shell,
    .main-content,
    .content,
    .condition-page-shell {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        box-shadow: none !important;
        background: #fff !important;
    }

    .print-summary {
        display: block !important;
        width: 100%;
        page-break-inside: avoid;
        font-size: 12px;
        line-height: 1.3;
        margin: 0;
        padding: 0;
    }

    .print-summary h2 {
        margin: 0 0 .35rem;
        font-size: 18px;
    }

    .print-summary h3 {
        margin: .35rem 0 .2rem;
        font-size: 13px;
    }

    .print-summary p,
    .print-summary li {
        margin: .1rem 0;
    }

    .print-summary ul {
        margin: .15rem 0 .25rem .95rem;
        padding: 0;
    }

    .print-summary-header {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        border-bottom: 2px solid #111827;
        padding-bottom: .25rem;
        margin-bottom: .45rem;
    }

    .print-prescription-block {
        border: 1px solid #9ca3af;
        border-radius: 2px;
        padding: .38rem .45rem;
        margin-bottom: .35rem;
        background: #f9fafb;
    }

    .print-patient-label-placeholder {
        min-height: 3.2rem;
        border: 1px dashed #6b7280;
        border-radius: 2px;
        padding: .35rem .4rem;
        margin-bottom: .3rem;
        background: #ffffff;
    }

    .print-rx-title {
        font-size: 15px !important;
        font-weight: 800;
        margin: .3rem 0 .2rem;
        color: #111827;
        letter-spacing: .02em;
    }

    .print-rx-body {
        min-height: 3.2rem;
        border: 1px solid #d1d5db;
        border-radius: 2px;
        padding: .3rem .45rem;
        margin-bottom: .35rem;
    }

    .print-signature-row {
        margin-top: .55rem;
        display: flex;
        justify-content: space-between;
        gap: .8rem;
        border-top: 1px solid #9ca3af;
        padding-top: .3rem;
    }

    .print-rx-header {
        align-items: flex-start;
    }

    .print-rx-kicker {
        font-size: 10px;
        font-weight: 800;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: #6b7280;
        margin-bottom: .1rem;
    }

    .print-rx-meta {
        text-align: right;
        font-size: 11px;
    }

    .print-patient-block {
        background: #fff;
    }

    .print-field-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: .45rem .8rem;
    }

    .print-field-grid-pharmacist {
        grid-template-columns: 1fr 1fr;
    }

    .print-field {
        display: flex;
        flex-direction: column;
        gap: .15rem;
    }

    .print-field-full {
        grid-column: 1 / -1;
    }

    .print-field-label {
        font-size: 10px;
        font-weight: 700;
        color: #374151;
        text-transform: uppercase;
        letter-spacing: .04em;
    }

    .print-field-line {
        display: block;
        min-height: 1.1rem;
        border-bottom: 1px solid #111827;
    }

    .print-field-line-tall {
        min-height: 2rem;
    }

    .print-rx-script-body {
        background: #fff;
    }

    .print-rx-list {
        margin: 0 0 .4rem 1rem;
        padding: 0;
    }

    .print-rx-list li + li {
        margin-top: .25rem;
    }

    .print-dispense-row {
        display: grid;
        grid-template-columns: 1.3fr .7fr 1fr;
        gap: .7rem;
        margin-top: .55rem;
    }

    .print-notes-box {
        min-height: 3rem;
        border: 1px solid #d1d5db;
        border-radius: 2px;
        margin-top: .35rem;
        background: #fff;
    }

    .print-prescription-only,
    .print-evaluation-only {
        display: block !important;
    }

    body:not([data-print-mode]) .print-evaluation-only,
    body[data-print-mode="prescription"] .print-evaluation-only,
    body[data-print-mode="clinical-note"] .print-prescription-only {
        display: none !important;
    }

    .print-page-break-after {
        page-break-after: always;
        break-after: page;
    }
}

.ga-treatment-plan {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ga-dose-calculator-panel {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 1rem;
    border: 1px solid #bfdbfe;
    border-radius: .75rem;
    background: #eff6ff;
}

.ga-dose-calculator-title {
    margin: 0;
    font-size: .95rem;
    font-weight: 800;
    color: #1e3a8a;
}

.ga-dose-calculator-help {
    margin: .2rem 0 0;
    color: #475569;
    font-size: .88rem;
}

.ga-dose-calculator-controls {
    display: flex;
    align-items: flex-end;
    gap: .6rem;
    flex-wrap: wrap;
}

.ga-dose-calculator-field {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    min-width: 6.5rem;
    margin: 0;
    color: #334155;
    font-size: .78rem;
    font-weight: 700;
}

.ga-dose-calculator-field input,
.ga-dose-calculator-field select {
    height: 2.35rem;
    border: 1px solid #cbd5e1;
    border-radius: .5rem;
    padding: 0 .65rem;
    background: #ffffff;
    color: #0f172a;
    font-weight: 700;
}

.ga-dose-calculator-field select {
    min-width: 4.8rem;
}

.ga-dose-calculator-weight {
    min-height: 2.35rem;
    display: inline-flex;
    align-items: center;
    border-radius: .5rem;
    padding: 0 .75rem;
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 800;
}

.ga-patient-factor-panel {
    align-items: stretch;
    flex-direction: column;
}

.ga-toggle-field {
    min-width: 7.2rem;
}

.ga-toggle-field input[type="checkbox"] {
    width: 1.15rem;
    height: 1.15rem;
    accent-color: #2563eb;
}

.ga-renal-calculate-button {
    min-height: 2.35rem;
    white-space: nowrap;
}

.ga-renal-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: .55rem;
    width: 100%;
}

.ga-renal-result-grid span,
.ga-renal-result-error {
    border: 1px solid #bfdbfe;
    border-radius: .6rem;
    padding: .65rem .75rem;
    background: #ffffff;
    color: #1e293b;
    font-weight: 700;
}

.ga-renal-result-grid strong {
    display: block;
    margin-bottom: .15rem;
    color: #1d4ed8;
    font-size: .75rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ga-renal-result-error {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #9a3412;
}

.ga-treatment-section {
    border: 1px solid #dbe4f0;
    border-radius: .85rem;
    padding: 1rem;
    background: #f8fafc;
}

.ga-treatment-section-title {
    margin: 0 0 .85rem;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
}

.ga-treatment-subsection + .ga-treatment-subsection {
    margin-top: .9rem;
}

.ga-treatment-subsection-title {
    margin: 0 0 .5rem;
    font-size: .95rem;
    font-weight: 700;
    color: #1e293b;
}

.ga-treatment-subsection-description {
    margin: 0 0 .65rem;
    color: #475569;
    font-size: .92rem;
}

.ga-treatment-options {
    gap: .5rem;
}

.ga-treatment-option {
    align-items: flex-start;
}

.ga-treatment-option.disabled {
    opacity: .72;
}

.ga-treatment-option .criteria-label {
    width: 100%;
}

.ga-treatment-option-label-row {
    display: flex;
    align-items: center;
    gap: .45rem;
    flex-wrap: wrap;
}

.ga-treatment-subsection-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
    margin-bottom: .65rem;
}

.ga-decision-support-button {
    align-self: flex-start;
    min-height: 2.75rem;
    padding-inline: 1.15rem;
    white-space: nowrap;
}

.ga-decision-support-summary {
    margin: .45rem 0 .75rem;
    padding: .55rem .75rem;
    border-radius: .45rem;
    background: #eff6ff;
    color: #1e3a8a;
    font-weight: 600;
}

.ga-treatment-option-label {
    font-weight: 700;
    color: #0f172a;
}

.ga-treatment-option-details {
    display: block;
    margin-top: .2rem;
    color: #334155;
    line-height: 1.45;
}

.ga-dose-result {
    display: block;
    margin-top: .6rem;
    border: 1px solid #bbf7d0;
    border-radius: .6rem;
    padding: .55rem .7rem;
    background: #f0fdf4;
    color: #166534;
}

.ga-dose-result-label {
    display: block;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ga-dose-result-value {
    display: block;
    margin-top: .15rem;
    font-size: 1rem;
    font-weight: 850;
    color: #14532d;
}

.ga-dose-result-note {
    display: block;
    margin-top: .1rem;
    font-size: .82rem;
    font-weight: 650;
}

.ga-treatment-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: .12rem .45rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .01em;
}

.ga-treatment-badge.prescription {
    background: #dbeafe;
    color: #1d4ed8;
}

.ga-treatment-badge.unavailable {
    background: #fee2e2;
    color: #b91c1c;
}

.ga-treatment-badge.decision-supported {
    background: #dcfce7;
    color: #166534;
}

.ga-treatment-badge.decision-caution {
    background: #fef3c7;
    color: #92400e;
}

.ga-treatment-badge.decision-avoid {
    background: #fee2e2;
    color: #991b1b;
}

.ga-treatment-evidence-row {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-top: .4rem;
}

.ga-treatment-evidence-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: .12rem .45rem;
    background: #ecfeff;
    color: #0f766e;
    font-size: .72rem;
    font-weight: 700;
}

.ga-treatment-disabled-reason {
    display: block;
    margin-top: .4rem;
    color: #9a3412;
    font-size: .82rem;
    font-weight: 600;
}

.ga-treatment-footer-note {
    margin: .85rem 0 0;
    padding: .7rem .8rem;
    border-left: 4px solid #f59e0b;
    background: #fffbeb;
    color: #92400e;
    border-radius: .35rem;
    font-weight: 600;
}

.ga-treatment-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    padding-top: .35rem;
}

.ga-treatment-selection-summary {
    font-weight: 700;
    color: #1e293b;
}

.ga-treatment-selection-card {
    border: 1px solid #dbe4f0;
    border-radius: .75rem;
    padding: .9rem 1rem;
    background: #ffffff;
}

.ga-treatment-selected-list {
    margin: 0;
    padding-left: 1.15rem;
}

.ga-treatment-selected-list li + li {
    margin-top: .3rem;
}

.symptom-help-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.symptom-help-header h5 {
    margin: 0;
}

.dialog-subtitle {
    margin: .25rem 0 0;
    color: #6b7280;
}

.symptom-help-close {
    border: 0;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
}

.symptom-help-image {
    display: block;
    width: 100%;
    max-width: 520px;
    max-height: 340px;
    object-fit: contain;
    margin: 0 auto 1rem;
    border-radius: .5rem;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
}

.symptom-help-description {
    margin: 0;
    white-space: pre-wrap;
}

.print-mode-summary {
    margin: .65rem 0 .45rem;
    padding: .5rem .65rem;
    border-radius: .65rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
    font-weight: 600;
}

.panel-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: -1rem -1rem 1rem;
    padding: .65rem 1rem;
    border-radius: 6px 6px 0 0;
}

.panel-section-header h4 {
    margin: 0;
    color: #fff;
}

.section-header-actions {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    flex-wrap: wrap;
}

.panel-section-header-red { background: #dc3545; }
.panel-section-header-blue { background: #0078d4; }
.panel-section-header-green { background: #28a745; }
.panel-section-header-orange { background: #fd7e14; }

.section-expand-button {
    border: 0;
    border-radius: .4rem;
    color: #fff;
    font-weight: 700;
    padding: .4rem .7rem;
    cursor: pointer;
    white-space: nowrap;
}

.section-expand-button-red { background: #dc3545; }
.section-expand-button-blue { background: #0d6efd; }
.section-expand-button-orange { background: #fd7e14; }

.expanded-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: .75rem 1rem;
}

.references-list {
    margin: 0;
    padding-left: 1.25rem;
}

.references-list li + li {
    margin-top: .75rem;
}

.pharyngitis-choice-copy {
    margin-bottom: 1rem;
}

.pharyngitis-choice-grid,
.centor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.choice-card,
.centor-panel {
    border: 1px solid #dbe4f0;
    border-radius: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 1rem;
}

.choice-card {
    text-align: left;
    cursor: pointer;
}

.choice-card strong,
.choice-card span {
    display: block;
}

.choice-card span {
    margin-top: .45rem;
    color: #64748b;
}

.choice-card-primary {
    border-color: #93c5fd;
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
}

.centor-panel h6 {
    margin: 0 0 .85rem;
    font-size: 1rem;
}

.centor-panel-disabled {
    opacity: .72;
}

.centor-option {
    display: flex;
    gap: .65rem;
    align-items: flex-start;
}

.centor-option + .centor-option {
    margin-top: .75rem;
}

.centor-score-banner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: center;
    margin: 1rem 0;
    padding: 1rem 1.1rem;
    border-radius: 1.1rem;
    background: linear-gradient(135deg, #eff6ff 0%, #f8fbff 100%);
    border: 1px solid #bfdbfe;
}

.centor-score-label {
    margin: 0 0 .35rem;
    color: #64748b;
    font-weight: 700;
}

.centor-score-value {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    color: #1d4ed8;
}

.centor-interpretation {
    margin: 0 0 .35rem;
    font-weight: 700;
    color: #0f172a;
}

.centor-recommendation {
    margin: 0;
    color: #475569;
    white-space: pre-wrap;
}

.centor-validation-message {
    margin: 1rem 0 0;
    color: #b91c1c;
    font-weight: 700;
}

.diagnosis-result-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .75rem;
}

.diagnosis-result-text {
    margin: 0;
    flex: 1;
}

.diagnosis-result-text-red {
    color: #b91c1c;
}

.diagnosis-confidence-callout {
    margin: 0 0 .75rem;
    padding: .75rem .9rem;
    border-radius: .95rem;
    border: 1px solid transparent;
    font-weight: 600;
    line-height: 1.45;
}

.diagnosis-confidence-callout-strong {
    background: #ecfdf5;
    border-color: #86efac;
    color: #065f46;
}

.diagnosis-confidence-callout-variable {
    background: #fff7ed;
    border-color: #fdba74;
    color: #9a3412;
}

.diagnosis-scores-list {
    margin: 0;
    padding-left: 1.25rem;
}

.diagnosis-scores-list li + li {
    margin-top: .35rem;
}

.manual-diagnosis-row {
    margin: .75rem 0;
    display: flex;
    gap: .5rem;
    align-items: center;
}

.manual-diagnosis-row select {
    min-width: 260px;
}

.assessment-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .85rem;
    padding: .9rem 1rem;
    margin-bottom: .75rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.05rem;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .05);
    transition: padding .18s ease, border-radius .18s ease, box-shadow .18s ease;
}

.assessment-toolbar-compact {
    gap: .6rem;
    padding: .55rem .8rem;
    border-radius: .85rem;
    box-shadow: 0 8px 16px rgba(15, 23, 42, .08);
}

.assessment-toolbar-elevated {
    box-shadow: 0 12px 26px rgba(15, 23, 42, .14);
    border-color: #c9daef;
}

.assessment-toolbar-compact .assessment-toolbar-title {
    margin-bottom: 0;
    font-size: 1rem;
}

.assessment-toolbar-compact .assessment-toolbar-subtitle {
    display: none;
}

.assessment-toolbar-sticky {
    position: sticky;
    top: 0;
    z-index: 3000;
    background: #ffffff;
    opacity: 1;
    backdrop-filter: none;
    isolation: isolate;
}

.assessment-toolbar-spacer {
    height: 0;
    transition: height .18s ease;
}

.assessment-toolbar-spacer-compact {
    height: 0;
}

.assessment-toolbar-title {
    margin: 0 0 .2rem;
    font-weight: 800;
    color: #0f172a;
}

.assessment-toolbar-subtitle {
    margin: 0;
    color: #64748b;
}

.assessment-toast-container {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 80;
}

.assessment-toast {
    min-width: 220px;
    max-width: 320px;
    padding: .7rem .85rem;
    border-radius: .8rem;
    border: 1px solid transparent;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .16);
    font-weight: 700;
}

.assessment-toast-info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.assessment-toast-success {
    background: #ecfdf3;
    border-color: #bbf7d0;
    color: #166534;
}

.assessment-toast-warning {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #9a3412;
}

.assessment-support-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 1rem;
}

.assessment-notes-panel,
.assessment-signature-panel {
    background: rgba(255, 255, 255, .94);
    border: 1px solid #dbe4f0;
    border-radius: 1.2rem;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .05);
}

.support-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .9rem;
}

.support-panel-header h4 {
    margin: 0;
}

.support-panel-badge {
    display: inline-flex;
    align-items: center;
    padding: .35rem .7rem;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 700;
    font-size: .8rem;
}

.assessment-notes {
    width: 100%;
    min-height: 5rem;
    resize: vertical;
    font: inherit;
    padding: .75rem;
    border: 1px solid #d1d5db;
    border-radius: .5rem;
    box-sizing: border-box;
}

.assessment-signature-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    margin-bottom: .5rem;
}

.signature-pin-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.signature-pin-input {
    width: 7rem;
    padding: .45rem 2.2rem .45rem .6rem;
    border: 1px solid #d1d5db;
    border-radius: .5rem;
    box-sizing: border-box;
}

.signature-pin-toggle {
    position: absolute;
    right: .35rem;
    border: 0;
    background: transparent;
    color: #475569;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    font-size: 1rem;
}

.signature-pin-toggle:hover {
    color: #0f172a;
}

.signature-pin-toggle-icon {
    width: 1rem;
    height: 1rem;
    display: block;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.signature-pin-input::-ms-reveal,
.signature-pin-input::-ms-clear {
    display: none;
}

.assessment-signature-text {
    margin: 0;
    font-style: italic;
    color: #475569;
}

.signature-status-card {
    padding: .95rem 1rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
    border: 1px solid #dbeafe;
}

.diagnosis-panel-sticky {
    position: sticky;
    top: 7rem;
    z-index: 35;
}

.panel-section-header-sticky {
    position: sticky;
    top: 7rem;
    z-index: 30;
    backdrop-filter: blur(2px);
}

.assessment-toolbar-compact + .assessment-toolbar-spacer + .symptoms-layout .diagnosis-panel-sticky,
.assessment-toolbar-compact + .assessment-toolbar-spacer + .symptoms-layout .panel-section-header-sticky {
    top: 5.75rem;
}

.signature-status-name {
    margin: 0 0 .35rem;
    font-weight: 700;
    color: #0f172a;
}

.assessment-action-row {
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.assessment-action-row-top {
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.assessment-action-cluster {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .45rem;
    padding: .4rem;
    border-radius: .85rem;
    background: rgba(241, 245, 249, .72);
    border: 1px solid #dbe4f0;
    max-width: 100%;
}

.assessment-action-cluster .btn-outline-secondary {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border-color: #c7d6eb;
    color: #1f3555;
    box-shadow: 0 4px 10px rgba(15, 23, 42, .06);
}

.assessment-action-cluster .btn,
.section-expand-button,
.symptom-help-button {
    min-height: 2.4rem;
}

.assessment-action-cluster-emphasis {
    background: rgba(219, 234, 254, .45);
    border-color: #bfdbfe;
}

.assessment-disclaimer {
    margin: 0 0 1rem;
    text-align: center;
    color: #6b7280;
    font-size: .85rem;
    font-style: italic;
}

.treatment-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.treatment-header,
.treatment-subheader {
    font-weight: 700;
    color: #1f2937;
    line-height: 1.35;
}

.treatment-header {
    margin-top: .55rem;
    margin-bottom: .15rem;
}

.treatment-subheader {
    margin-top: .3rem;
    margin-bottom: .1rem;
}

.treatment-option {
    display: grid;
    grid-template-columns: 1rem minmax(0, 1fr);
    align-items: start;
    column-gap: .55rem;
    line-height: 1.45;
}

.treatment-option input[type="checkbox"] {
    margin-top: .22rem;
}

.treatment-option > span {
    display: block;
}

.treatment-option-indented {
    padding-left: 1.1rem;
}

.red-flag-reason {
    color: #b00020;
}

.treatment-comments {
    white-space: pre-wrap;
    font-family: inherit;
    background: linear-gradient(180deg, #fbfdff 0%, #f4f8fc 100%);
    border: 1px solid #dbe4f0;
    border-radius: 1rem;
    padding: .9rem 1rem;
}

.content {
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 1100px) {
    .app-shell {
        padding: 1rem;
        gap: .85rem;
    }

    .app-sidebar {
        width: 250px;
        min-width: 250px;
    }

    .app-topbar,
    .app-breadcrumb {
        padding-inline: 1rem;
    }

    .search-modes,
    .mode-choice-grid {
        grid-template-columns: 1fr;
    }

    .assessment-support-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .app-shell {
        flex-direction: column;
    }

    .app-sidebar {
        position: static;
        width: 100%;
        min-width: 0;
    }

    }

    @media (max-width: 840px) {
    .condition-hero,
    .assessment-header,
    .assessment-toolbar {
        flex-direction: column;
    }

    .assessment-header-under-toolbar {
        margin-top: 1rem;
    }

    .condition-page-title {
        font-size: 2rem;
    }

    .assessment-title {
        font-size: 1.65rem;
    }

    .condition-mode-pill {
        align-self: flex-start;
    }

    .condition-search-actions,
    .manual-diagnosis-row,
    .assessment-signature-row,
    .assessment-action-row,
    .pharyngitis-choice-grid,
    .centor-grid,
    .centor-score-banner {
        flex-direction: column;
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .condition-picker,
    .manual-diagnosis-row select,
    .signature-pin-input,
    .btn {
        width: 100%;
    }

    .assessment-action-cluster {
        width: 100%;
        padding: .3rem;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .assessment-action-cluster .btn {
        flex: 0 0 auto;
    }

    .assessment-toast-container {
        left: .75rem;
        right: .75rem;
        bottom: .75rem;
    }

    .assessment-toast {
        max-width: none;
        min-width: 0;
    }

    .panel-section-header {
        flex-direction: column;
        align-items: stretch;
    }

    .section-header-actions {
        width: 100%;
    }

    .assessment-toolbar-sticky {
        top: 0;
    }

    .assessment-toolbar-spacer {
        height: 0;
    }

    .assessment-toolbar-spacer-compact {
        height: 0;
    }

    .diagnosis-panel-sticky,
    .panel-section-header-sticky {
        top: 8.75rem;
    }

    .assessment-toolbar-compact + .assessment-toolbar-spacer + .symptoms-layout .diagnosis-panel-sticky,
    .assessment-toolbar-compact + .assessment-toolbar-spacer + .symptoms-layout .panel-section-header-sticky {
        top: 7.25rem;
    }

}

.delayed-page-shell {
    max-width: 1120px;
    padding-inline: .5rem;
}

.delayed-hero {
    margin-bottom: .6rem;
}

.delayed-card {
    margin-bottom: .7rem;
    border-radius: .85rem;
}

.delayed-inbox-item {
    border: 1px solid #d8e3f2;
    border-radius: .75rem;
    background: #fff;
}

.delayed-inbox-item small {
    color: #66768f;
}

.delayed-inbox-item-active {
    border-color: #7ea8ff;
    box-shadow: 0 0 0 .22rem rgba(37, 99, 235, .13);
}

.delayed-workflow-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
    align-items: start;
}

.delayed-step-card {
    border: 1px solid #dbe4f0;
    border-radius: .8rem;
    background: #ffffff;
    padding: .75rem;
}

.delayed-step-header {
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 .55rem;
}

.delayed-step-hint {
    margin: .45rem 0 0;
    color: #475569;
    font-size: .88rem;
}

.delayed-step-hint-success {
    color: #166534;
    font-weight: 600;
}

.delayed-inline-validation {
    margin: .55rem 0;
    padding: .5rem .65rem;
    border-radius: .65rem;
    border: 1px solid #fdba74;
    background: #fff7ed;
    color: #9a3412;
    font-size: .88rem;
}

.delayed-inline-validation p + p {
    margin-top: .15rem;
}

.delayed-patient-toolbar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .5rem;
    align-items: end;
    margin: .3rem 0 0;
}

.delayed-toolbar-button {
    white-space: nowrap;
}

.delayed-patient-search {
    margin-bottom: 0;
}

.delayed-patient-suggestions {
    border: 1px solid #dbe4f0;
    border-radius: .7rem;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
    display: grid;
    gap: .15rem;
    margin-top: .35rem;
    max-height: 220px;
    overflow-y: auto;
}

.delayed-patient-suggestion-item {
    border: 0;
    background: transparent;
    text-align: left;
    padding: .5rem .65rem;
    color: #0f172a;
}

.delayed-patient-suggestion-item:hover,
.delayed-patient-suggestion-item:focus-visible {
    background: #eff6ff;
    outline: none;
}

.delayed-patient-mode-switch {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-bottom: .3rem;
}

.delayed-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: .55rem;
    margin-top: .45rem;
}

.delayed-travel-town-search {
    position: relative;
}

@media (max-width: 991.98px) {
    .delayed-workflow-grid {
        grid-template-columns: 1fr;
    }

    .delayed-step-card {
        padding: .75rem;
    }

    .delayed-patient-toolbar {
        grid-template-columns: 1fr;
    }
}

.delayed-checkbox-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .35rem;
}

.delayed-result {
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
}

.delayed-share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.delayed-review-actions {
    display: grid;
    gap: .55rem;
}

.delayed-btn {
    border-radius: .8rem;
    min-height: 42px;
    font-weight: 700;
    transition: all .18s ease;
}

.delayed-btn-primary {
    color: #fff;
    border: 1px solid #1d4ed8;
    background: linear-gradient(135deg, #2f6bff 0%, #1d4ed8 100%);
    box-shadow: 0 8px 18px rgba(29, 78, 216, .25);
}

.delayed-btn-primary:hover,
.delayed-btn-primary:focus-visible {
    color: #fff;
    border-color: #1e40af;
    background: linear-gradient(135deg, #2b63ea 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(30, 64, 175, .28);
}

.delayed-btn-soft {
    color: #1e3a8a;
    border: 1px solid #bfdbfe;
    background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
}

.delayed-btn-soft:hover,
.delayed-btn-soft:focus-visible {
    color: #1e40af;
    border-color: #93c5fd;
    background: linear-gradient(180deg, #ffffff 0%, #e9f2ff 100%);
}

.delayed-btn-danger {
    color: #fff;
    border: 1px solid #dc2626;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 9px 20px rgba(220, 38, 38, .24);
}

.delayed-btn-danger:hover,
.delayed-btn-danger:focus-visible {
    color: #fff;
    border-color: #b91c1c;
    background: linear-gradient(135deg, #e53935 0%, #b91c1c 100%);
    box-shadow: 0 10px 22px rgba(185, 28, 28, .3);
}

.delayed-btn-danger-confirm {
    border-color: #7f1d1d;
    background: linear-gradient(135deg, #b91c1c 0%, #7f1d1d 100%);
    box-shadow: 0 11px 24px rgba(127, 29, 29, .36);
}

.delayed-share-actions-danger {
    gap: .55rem;
}

.delayed-patient-shell {
    max-width: 920px;
}

.delayed-question-card {
    margin-bottom: .9rem;
    border: 1px solid #e2e8f0;
    border-radius: .9rem;
    padding: .85rem;
    background: #fff;
}

.delayed-question-title {
    margin: 0 0 .45rem;
    font-weight: 700;
}

.delayed-question-guidance {
    margin: 0 0 .6rem;
    color: #475569;
    font-size: .9rem;
}

.delayed-health-profile-card {
    border-color: #bfdbfe;
    background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
}

.patient-portal-profile-card {
    margin: 1.1rem 0;
}

.delayed-health-profile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: .85rem;
}

.delayed-health-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.delayed-health-profile-grid-wide {
    margin-top: .85rem;
}

.patient-measurement-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: .5rem;
}

.patient-measurement-unit {
    min-width: 92px;
}

.delayed-health-profile-toggle-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
    margin-top: .85rem;
}

.delayed-profile-toggle {
    display: flex;
    align-items: center;
    gap: .6rem;
    min-height: 46px;
    padding: .7rem .8rem;
    border: 1px solid #cfe0ff;
    border-radius: .72rem;
    background: rgba(255, 255, 255, .86);
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
}

.delayed-profile-toggle input {
    width: 18px;
    height: 18px;
}

.delayed-profile-notes {
    min-height: 84px;
    resize: vertical;
}

.delayed-review-profile-card {
    border-color: #bfdbfe;
    background: #f8fbff;
}

.delayed-review-profile-heading {
    display: flex;
    justify-content: space-between;
    gap: .85rem;
    margin-bottom: .75rem;
}

.delayed-review-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem;
}

.delayed-review-profile-item {
    padding: .65rem .75rem;
    border: 1px solid #dbeafe;
    border-radius: .7rem;
    background: #fff;
}

.delayed-review-profile-item strong,
.delayed-review-profile-item span {
    display: block;
}

.delayed-review-profile-item strong {
    margin-bottom: .15rem;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #5b708f;
}

.delayed-review-profile-item span {
    color: #0f172a;
    line-height: 1.35;
}

.delayed-profile-lab-note {
    margin: .65rem 0 0;
    color: #475569;
    font-size: .88rem;
}

@media (max-width: 720px) {
    .delayed-health-profile-header {
        flex-direction: column;
    }

    .delayed-health-profile-grid,
    .patient-measurement-control,
    .delayed-health-profile-toggle-grid,
    .delayed-review-profile-grid {
        grid-template-columns: 1fr;
    }
}

.delayed-option-grid {
    display: grid;
    gap: .45rem;
}

.delayed-option-item {
    display: flex;
    gap: .65rem;
    align-items: center;
    justify-content: space-between;
    padding: .62rem;
    border: 1px solid #dbeafe;
    border-radius: .72rem;
    background: rgba(255, 255, 255, .92);
}

.delayed-option-select {
    display: flex;
    flex: 1;
    align-items: flex-start;
    gap: .55rem;
    min-width: 0;
    align-self: stretch;
    margin: 0;
    cursor: pointer;
}

.delayed-option-label {
    margin: 0;
    flex: 1;
    cursor: pointer;
}

.delayed-option-image {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: .6rem;
    border: 1px solid #cbd5e1;
    margin-left: auto;
}

.delayed-option-image-button {
    border: 0;
    padding: 0;
    background: transparent;
    margin-left: auto;
    cursor: zoom-in;
    line-height: 0;
}

.delayed-image-preview-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .74);
    z-index: 7000;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.delayed-image-preview {
    max-width: min(92vw, 860px);
    max-height: 88vh;
    border-radius: .8rem;
    border: 2px solid #fff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .45);
    object-fit: contain;
    background: #fff;
}

.delayed-image-preview-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    border: 0;
    background: rgba(255, 255, 255, .9);
    color: #0f172a;
    border-radius: 999px;
    width: 2.2rem;
    height: 2.2rem;
    font-size: 1.3rem;
    line-height: 2.2rem;
    text-align: center;
}

.delayed-inbox-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: .7rem;
}

.delayed-inbox-list {
    display: grid;
    gap: .45rem;
}

.delayed-inbox-item {
    display: grid;
    gap: .15rem;
    text-align: left;
    border: 1px solid #cbd5e1;
    border-radius: .72rem;
    padding: .62rem;
    background: #fff;
    color: #1e293b;
}

.delayed-inbox-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.delayed-status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .2rem .55rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 800;
    border: 1px solid transparent;
    letter-spacing: .01em;
    white-space: nowrap;
}

.delayed-status-chip-submitted {
    background: #fff7ed;
    color: #9a3412;
    border-color: #fdba74;
}

.delayed-status-chip-reviewed {
    background: #ecfdf3;
    color: #166534;
    border-color: #86efac;
}

.delayed-status-chip-archived {
    background: #f8fafc;
    color: #475569;
    border-color: #cbd5e1;
}

.delayed-status-chip-default {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.delayed-inbox-item-unreviewed {
    border-color: #f59e0b;
    background: linear-gradient(180deg, #fffdf5 0%, #fff8e6 100%);
    box-shadow: 0 6px 16px rgba(245, 158, 11, .18);
}

.delayed-inbox-item-unreviewed small {
    color: #92400e;
    font-weight: 700;
}

.delayed-inbox-item-active {
    border-color: #2563eb;
    box-shadow: 0 8px 22px rgba(37, 99, 235, .16);
}

.delayed-review-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .85rem;
    margin-bottom: .75rem;
}

.delayed-review-columns-mapped {
    gap: .75rem;
}

.delayed-mapped-card {
    border: 1px solid #dbe4f0;
    border-radius: .8rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: .65rem;
}

.delayed-mapped-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .45rem;
}

.delayed-mapped-card-header h4 {
    margin: 0;
}

.delayed-mapped-list {
    display: grid;
    gap: .3rem;
    max-height: 360px;
    overflow-y: auto;
    padding-right: .15rem;
}

.delayed-mapped-row {
    border: 1px solid #dbe4f0;
    border-radius: .55rem;
    padding: .3rem .45rem;
    margin-bottom: 0;
    background: #fff;
}

.delayed-mapped-row-selected {
    border-color: #9dc0ff;
    background: #edf4ff;
    color: #1e293b;
    font-weight: 600;
}

.delayed-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .5rem;
}

.delayed-subtle-count {
    font-size: .8rem;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: .18rem .5rem;
    white-space: nowrap;
}

.delayed-inbox-filters-compact {
    display: grid;
    grid-template-columns: 1fr;
    gap: .45rem;
    margin-bottom: .75rem;
}

.delayed-inbox-search {
    min-width: 0;
}

.delayed-inbox-status {
    min-width: 0;
    max-width: 170px;
    justify-self: start;
}

.delayed-empty-review {
    margin-top: .25rem;
}

.delayed-form-intro {
    margin-bottom: .75rem;
}

.delayed-submit-row {
    margin-top: .75rem;
}

.delayed-primary-action {
    min-width: 168px;
    min-height: 40px;
}

.delayed-review-mode-switch {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.delayed-patient-answer-list {
    display: grid;
    gap: .5rem;
    margin-bottom: .75rem;
}

.delayed-patient-answer-item {
    border: 1px solid #dbe4f0;
    border-radius: .65rem;
    padding: .55rem .65rem;
    background: #f8fbff;
}

.delayed-patient-answer-question {
    margin: 0 0 .3rem;
    font-weight: 700;
    color: #0f172a;
}

.delayed-patient-answer-item ul {
    margin: 0;
    padding-left: 1rem;
}

.delayed-review-option-list {
    display: grid;
    gap: .3rem;
}

.delayed-review-option-item {
    display: flex;
    align-items: center;
    gap: .45rem;
    border: 1px solid #dbe4f0;
    border-radius: .55rem;
    padding: .35rem .5rem;
    background: #ffffff;
    color: #475569;
}

.delayed-review-option-item-selected {
    border-color: #7ea8ff;
    background: #eef5ff;
    color: #1e293b;
    font-weight: 600;
}

.delayed-review-option-check {
    font-size: .95rem;
    line-height: 1;
    width: 1rem;
    text-align: center;
}

.delayed-notes {
    width: 100%;
    min-height: 118px;
    border: 1px solid #cbd5e1;
    border-radius: .7rem;
    padding: .6rem;
    box-sizing: border-box;
}

:root {
    --ui-bg: #eef4ff;
    --ui-surface: #ffffff;
    --ui-text: #0f1b2d;
    --ui-muted: #44546d;
    --ui-border: #cfdbec;
    --ui-shadow: 0 22px 50px rgba(15, 23, 42, .12);
    --ui-brand: #1d4ed8;
    --ui-brand-soft: #e7efff;
}

body {
    line-height: 1.5;
    color: var(--ui-text);
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, .14), transparent 30%),
        linear-gradient(180deg, #f8fbff 0%, var(--ui-bg) 100%);
}

.app-shell {
    gap: 1.25rem;
    padding: 1.25rem 1.4rem 1.8rem;
}

.main-content {
    background: rgba(255, 255, 255, .75);
    border: 1px solid var(--ui-border);
    border-radius: 1.35rem;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
}

.content {
    max-width: 1320px;
    padding-top: .35rem;
}

.card {
    background: var(--ui-surface);
    border-color: var(--ui-border);
    box-shadow: var(--ui-shadow);
}

.card-body {
    padding: 1.35rem !important;
}

.condition-search-card,
.delayed-card {
    border-radius: 1.2rem;
}

.btn {
    min-height: 46px;
    border-radius: .9rem;
    font-weight: 700;
    letter-spacing: .01em;
}

.btn-primary {
    background: linear-gradient(135deg, #2e67f0 0%, #1d4ed8 100%);
    border-color: #1d4ed8;
    box-shadow: 0 10px 22px rgba(29, 78, 216, .22);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: linear-gradient(135deg, #2759d1 0%, #1e40af 100%);
    border-color: #1e40af;
}

.btn-outline-secondary,
.btn-outline-primary,
.btn-outline-danger,
.btn-outline-warning,
.btn-outline-success {
    background: #fff;
    border-color: #b7cae4;
    color: #1f3555;
}

.btn-outline-secondary:hover,
.btn-outline-primary:hover,
.btn-outline-danger:hover,
.btn-outline-warning:hover,
.btn-outline-success:hover,
.btn-outline-secondary:focus-visible,
.btn-outline-primary:focus-visible,
.btn-outline-danger:focus-visible,
.btn-outline-warning:focus-visible,
.btn-outline-success:focus-visible {
    background: #f4f8ff;
    border-color: #94b3db;
    color: #16335c;
}

.condition-picker,
.delayed-notes,
textarea,
input:not([type="checkbox"]):not([type="radio"]),
select {
    border-color: #bfcfe4;
    min-height: 46px;
    border-radius: .85rem;
}

.condition-picker:focus,
.delayed-notes:focus,
textarea:focus,
input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus {
    border-color: #518cff;
    box-shadow: 0 0 0 .22rem rgba(37, 99, 235, .2);
    outline: none;
}

.page-nav-actions {
    gap: .7rem;
    margin-bottom: 1.1rem;
}

.page-nav-actions .btn {
    border-radius: .85rem;
    font-weight: 700;
}

.condition-page-title,
.assessment-title {
    letter-spacing: -.015em;
    font-size: clamp(2rem, 1.45rem + 1.5vw, 2.55rem);
}

.condition-card-title {
    font-size: 1.45rem;
    letter-spacing: -.01em;
}

.condition-page-instruction {
    font-size: 1.08rem;
    line-height: 1.6;
    max-width: 70ch;
}

.text-muted {
    color: #3f5270 !important;
}

.condition-hero .condition-page-instruction {
    color: rgba(241, 245, 249, .98);
}

.delayed-workflow-grid,
.delayed-review-columns {
    gap: 1rem;
}

.delayed-step-card,
.delayed-mapped-card,
.delayed-patient-answer-item {
    border-radius: .95rem;
}

@media (max-width: 900px) {
    .delayed-inbox-grid,
    .delayed-review-columns,
    .delayed-patient-toolbar,
    .delayed-inbox-filters-compact {
        grid-template-columns: 1fr;
    }

    .delayed-toolbar-button {
        width: 100%;
    }

    .delayed-inbox-status {
        max-width: 100%;
        width: 100%;
    }

    .delayed-section-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   GUIDED ASSESSMENT UI ENHANCEMENTS
   Improved typography, spacing, and visual hierarchy
   ═══════════════════════════════════════════════════════════════════════ */

/* Enhanced gate card styling */
.headache-gate-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 1rem;
}

.headache-gate-card:hover {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12), 0 2px 4px rgba(15, 23, 42, 0.06);
    border-color: #cbd5e1;
}

/* Gate card header with improved typography */
.gate-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.gate-card-header > div:first-child {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gate-card-step-indicator {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.gate-card-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0.25rem 0 0 0;
    line-height: 1.2;
}

.gate-card-instruction {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0.5rem 0 0 0;
    line-height: 1.4;
}

.ga-treatment-coverage-summary {
    margin-top: 0.85rem;
    padding: 0.85rem;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
}

.ga-treatment-coverage-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    color: #334155;
    font-size: 0.9rem;
}

.ga-treatment-coverage-stats span {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    padding: 0.35rem 0.55rem;
    border: 1px solid rgba(59, 130, 246, 0.18);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.78);
}

.ga-treatment-coverage-stats strong {
    color: #1d4ed8;
    font-size: 1.1rem;
    line-height: 1;
}

.ga-treatment-coverage-details {
    margin-top: 0.65rem;
}

.ga-treatment-coverage-details summary {
    cursor: pointer;
    color: #1d4ed8;
    font-size: 0.88rem;
    font-weight: 700;
}

.ga-treatment-coverage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
    gap: 0.55rem;
    max-height: 16rem;
    overflow: auto;
    padding-top: 0.65rem;
}

.ga-treatment-coverage-item {
    display: grid;
    gap: 0.2rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid #dbeafe;
    border-radius: 7px;
    background: #ffffff;
}

.ga-treatment-coverage-item span {
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 800;
}

.ga-treatment-coverage-item small {
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

/* Gate card body with generous padding */
.gate-card-body {
    padding: 1.5rem 1.75rem;
}

/* Progress timeline */
.ga-progress-timeline {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    overflow-x: auto;
    flex-wrap: wrap;
}

.ga-progress-step {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

.ga-progress-dot {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #f1f5f9;
    border: 1.5px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.ga-progress-dot.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.ga-progress-dot.completed {
    background: #10b981;
    border-color: #10b981;
    color: white;
    cursor: pointer;
    padding: 0 !important;
    border: 1.5px solid #10b981 !important;
    font-size: 0.875rem;
    font-weight: 700;
}

.ga-progress-dot.completed:hover {
    background: #059669;
    border-color: #059669;
    cursor: pointer;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.ga-progress-dot.completed:active {
    transform: scale(0.95);
}

.ga-progress-connector {
    width: 1.5rem;
    height: 1.5px;
    background: #e2e8f0;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.ga-progress-connector.active {
    background: #3b82f6;
}

/* Criteria group styling */
.criteria-group {
    margin-bottom: 1.25rem;
}

.criteria-group-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.75rem 0;
    display: block;
}

/* Checkbox/Radio styling */
.criteria-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.9rem 1rem;
    margin-bottom: 0.5rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.criteria-item:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.criteria-item input[type="checkbox"],
.criteria-item input[type="radio"] {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.15rem;
    cursor: pointer;
    accent-color: #3b82f6;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.criteria-item input[type="checkbox"]:checked,
.criteria-item input[type="radio"]:checked {
    transform: scale(1.05);
}

.criteria-label {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
}

.criteria-note {
    display: block;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 400;
    margin-top: 0.375rem;
    line-height: 1.5;
}

.ga-travel-itinerary-panel {
    padding: 1rem;
    border: 1px solid #dbeafe;
    border-radius: 0.75rem;
    background: #f8fafc;
}

.ga-travel-itinerary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.ga-travel-itinerary-header .criteria-group-title {
    margin-bottom: 0;
}

.ga-travel-itinerary-row {
    display: grid;
    grid-template-columns: minmax(18rem, 1.35fr) minmax(21rem, 2fr) minmax(5rem, 0.4fr) minmax(8rem, 0.55fr) minmax(6.5rem, auto);
    gap: 0.75rem;
    align-items: end;
    margin-top: 0.75rem;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #ffffff;
    overflow: visible;
}

.ga-travel-itinerary-row > .btn-previous-ga {
    min-height: 2.75rem;
    align-self: end;
    white-space: nowrap;
}

.ga-travel-itinerary-row label {
    display: grid;
    gap: 0.35rem;
    position: relative;
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ga-travel-itinerary-row input,
.ga-travel-itinerary-row select {
    width: 100%;
    min-height: 2.35rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.55rem;
    padding: 0.45rem 0.6rem;
    color: #0f172a;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
}

.ga-travel-altitude-display {
    display: flex;
    align-items: center;
    min-height: 2.35rem;
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 0.55rem;
    padding: 0.45rem 0.6rem;
    color: #0f172a;
    background: #f8fafc;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 700;
}

.ga-travel-combo {
    display: grid;
    grid-template-columns: minmax(11rem, 1fr) auto;
    align-items: stretch;
}

.ga-travel-combo input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.ga-travel-combo select {
    width: 4.25rem;
    border-left: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    background: #f8fafc;
    color: #334155;
    cursor: pointer;
}

.ga-travel-combo select.ga-travel-country-select {
    width: 5.75rem;
    font-weight: 700;
}

.ga-travel-combo select:focus,
.ga-travel-combo input:focus {
    position: relative;
    z-index: 1;
}

.ga-travel-suggestion-list {
    display: grid;
    gap: 0.25rem;
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    right: 0;
    z-index: 40;
    max-height: 14rem;
    overflow-y: auto;
    padding: 0.35rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.65rem;
    background: #ffffff;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.18);
}

.ga-travel-suggestion-list button {
    width: 100%;
    min-height: 2rem;
    border: 0;
    border-radius: 0.45rem;
    padding: 0.35rem 0.5rem;
    background: #ffffff;
    color: #0f172a;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.ga-travel-suggestion-list button:hover,
.ga-travel-suggestion-list button:focus {
    background: #eff6ff;
    color: #1e40af;
}

.ga-travel-malaria-preview {
    display: grid;
    gap: 0.25rem;
    margin-top: 0.9rem;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
}

.ga-travel-malaria-preview.risk {
    border-color: #f97316;
    background: #fff7ed;
    color: #9a3412;
}

.ga-travel-malaria-preview.warning {
    border-color: #facc15;
    background: #fefce8;
    color: #854d0e;
}

.ga-travel-malaria-preview.clear {
    border-color: #86efac;
    background: #f0fdf4;
    color: #166534;
}

.ga-travel-malaria-preview.neutral {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1e40af;
}

.ga-travel-map-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-top: 0.9rem;
}

.ga-travel-map-actions span {
    color: #475569;
    font-size: 0.9rem;
}

.ga-travel-map-results {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.9rem;
    padding: 0.85rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    background: #f8fafc;
}

.ga-travel-map-results-header,
.ga-travel-map-stop > div:first-child {
    display: grid;
    gap: 0.25rem;
}

.ga-travel-map-results-header span,
.ga-travel-map-stop span {
    color: #475569;
}

.ga-travel-map-stop {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: start;
    padding: 0.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.7rem;
    background: #ffffff;
}

.ga-travel-risk-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    grid-column: 1 / -1;
}

.ga-travel-risk-chip {
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;
    padding: 0.25rem 0.55rem;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #eff6ff;
    color: #1e40af;
    font-size: 0.82rem;
    font-weight: 700;
}

.ga-travel-risk-chip.risk {
    border-color: #fdba74;
    background: #fff7ed;
    color: #9a3412;
}

@media (max-width: 760px) {
    .ga-travel-itinerary-header {
        align-items: stretch;
        flex-direction: column;
    }

    .ga-travel-itinerary-row {
        grid-template-columns: 1fr;
    }

    .ga-travel-map-stop {
        grid-template-columns: 1fr;
    }
}

/* Account access refinement: compact, balanced login screen */
.account-page-body .account-access-panel {
    grid-template-columns: 330px minmax(0, 1fr);
    min-height: 0;
}

.account-page-body .account-access-hero {
    justify-content: flex-start;
    min-height: 0;
    padding: 1.75rem;
}

.account-page-body .account-access-hero h1 {
    max-width: 12ch;
    margin: 3.5rem 0 0;
    font-size: clamp(2.2rem, 3.7vw, 3.4rem);
    line-height: 1.02;
}

.account-page-body .account-access-hero p {
    margin-top: 1rem;
    font-size: 0.98rem;
}

.account-page-body .account-access-highlights {
    margin-top: auto;
    padding-top: 2rem;
}

.account-page-body .account-access-content {
    align-content: start;
    padding: 2rem;
}

.account-page-body .account-choice-heading {
    max-width: 44rem;
}

.account-page-body .account-choice-heading h2 {
    font-size: clamp(1.65rem, 2.8vw, 2.15rem);
}

.account-page-body .account-choice-grid {
    align-items: stretch;
}

.account-page-body .account-choice-card {
    min-height: 0;
    padding: 1rem;
}

.account-page-body .account-choice-copy {
    min-height: 0;
    font-size: 0.95rem;
}

.account-page-body .account-form {
    margin-top: 0.9rem;
}

.account-page-body .account-field .form-control {
    min-height: 44px;
}

.account-page-body .account-form-actions {
    align-items: stretch;
    flex-direction: column;
}

.account-page-body .account-submit {
    width: 100%;
}

.account-page-body .account-signup-panel {
    align-items: stretch;
    flex-direction: column;
    margin-top: 1rem;
}

.account-page-body .account-signup-panel .btn {
    width: 100%;
    white-space: normal;
}

@media (max-width: 980px) {
    .account-page-body .account-access-panel {
        grid-template-columns: 1fr;
    }

    .account-page-body .account-access-hero {
        gap: 1rem;
    }

    .account-page-body .account-access-hero h1 {
        max-width: none;
        margin-top: 1.5rem;
    }

    .account-page-body .account-access-highlights {
        margin-top: 0;
        padding-top: 0.5rem;
    }
}

.criteria-item.checked {
    border-color: #3b82f6;
    background: #eff6ff;
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.2);
}

.ga-step-skip-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.ga-step-skip-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ga-step-skip-toggle-track {
    width: 2.5rem;
    height: 1.5rem;
    border-radius: 999px;
    background: #cbd5e1;
    position: relative;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.ga-step-skip-toggle-track::after {
    content: "";
    position: absolute;
    top: 0.125rem;
    left: 0.125rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
    transition: transform 0.2s ease;
}

.ga-step-skip-toggle input[type="checkbox"]:checked + .ga-step-skip-toggle-track {
    background: #3b82f6;
}

.ga-step-skip-toggle input[type="checkbox"]:checked + .ga-step-skip-toggle-track::after {
    transform: translateX(1rem);
}

.ga-step-skip-toggle-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
}

/* Button styling */
.btn-continue-ga {
    padding: 0.65rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 700;
    border-radius: 0.75rem;
    background: #3b82f6;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-continue-ga:hover {
    background: #1e40af;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.btn-continue-ga:active {
    transform: translateY(0);
}

.btn-previous-ga {
    padding: 0.65rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 0.75rem;
    background: transparent;
    color: #64748b;
    border: 1.5px solid #cbd5e1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-previous-ga:hover {
    background: #f1f5f9;
    border-color: #64748b;
}

.ga-progress-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {
    .gate-card-header {
        padding: 1.5rem 1.75rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .gate-card-body {
        padding: 1.5rem 1.75rem;
    }

    .gate-card-title {
        font-size: 1.5rem;
    }

    .criteria-item {
        padding: 1rem;
    }

    .criteria-label {
        font-size: 1rem;
    }

    .ga-dose-calculator-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .ga-dose-calculator-controls {
        align-items: stretch;
    }

    .ga-dose-calculator-field {
        flex: 1 1 8rem;
    }

    .ga-dose-calculator-weight {
        justify-content: center;
    }

    .patient-profile-reminder {
        align-items: stretch;
        flex-direction: column;
    }

    .ga-progress-timeline {
        margin-bottom: 1.5rem;
    }

    .ga-progress-dot {
        width: 2rem;
        height: 2rem;
        font-size: 0.75rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   ENHANCED COLOR-CODED GATE TYPE STYLING
   ═══════════════════════════════════════════════════════════════════════ */

/* Color palette for different gate types */
:root {
    --color-red-flag: #dc2626;
    --color-red-flag-light: #fee2e2;
    --color-orange-flag: #ea580c;
    --color-orange-flag-light: #fef3c7;
    --color-moh: #0284c7;
    --color-moh-light: #e0f2fe;
    --color-diagnosis: #7c3aed;
    --color-diagnosis-light: #f3e8ff;
    --color-treatment: #16a34a;
    --color-treatment-light: #dcfce7;
}

/* Gate type badges */
.gate-type-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 0.5rem 0;
    align-self: flex-start;
}

.gate-type-badge.red-flag {
    background: var(--color-red-flag-light);
    color: var(--color-red-flag);
    border-left: 3px solid var(--color-red-flag);
}

.gate-type-badge.orange-flag {
    background: var(--color-orange-flag-light);
    color: var(--color-orange-flag);
    border-left: 3px solid var(--color-orange-flag);
}

.gate-type-badge.moh {
    background: var(--color-moh-light);
    color: var(--color-moh);
    border-left: 3px solid var(--color-moh);
}

.gate-type-badge.diagnosis {
    background: var(--color-diagnosis-light);
    color: var(--color-diagnosis);
    border-left: 3px solid var(--color-diagnosis);
}

.gate-type-badge.treatment {
    background: var(--color-treatment-light);
    color: var(--color-treatment);
    border-left: 3px solid var(--color-treatment);
}

/* Color-coded gate card headers */
.headache-gate-card.red-flag-gate {
    border-top: 4px solid var(--color-red-flag);
}

.headache-gate-card.red-flag-gate .gate-card-header {
    background: linear-gradient(135deg, var(--color-red-flag-light) 0%, rgba(220, 38, 38, 0.03) 100%);
    border-bottom-color: var(--color-red-flag-light);
}

.headache-gate-card.orange-flag-gate {
    border-top: 4px solid var(--color-orange-flag);
}

.headache-gate-card.orange-flag-gate .gate-card-header {
    background: linear-gradient(135deg, var(--color-orange-flag-light) 0%, rgba(234, 88, 12, 0.03) 100%);
    border-bottom-color: var(--color-orange-flag-light);
}

.headache-gate-card.moh-gate {
    border-top: 4px solid var(--color-moh);
}

.headache-gate-card.moh-gate .gate-card-header {
    background: linear-gradient(135deg, var(--color-moh-light) 0%, rgba(2, 132, 199, 0.03) 100%);
    border-bottom-color: var(--color-moh-light);
}

.headache-gate-card.diagnosis-gate {
    border-top: 4px solid var(--color-diagnosis);
}

.headache-gate-card.diagnosis-gate .gate-card-header {
    background: linear-gradient(135deg, var(--color-diagnosis-light) 0%, rgba(124, 58, 237, 0.03) 100%);
    border-bottom-color: var(--color-diagnosis-light);
}

.headache-gate-card.treatment-gate {
    border-top: 4px solid var(--color-treatment);
}

.headache-gate-card.treatment-gate .gate-card-header {
    background: linear-gradient(135deg, var(--color-treatment-light) 0%, rgba(22, 163, 74, 0.03) 100%);
    border-bottom-color: var(--color-treatment-light);
}

/* Fluid criterion groups with enhanced spacing */
.criteria-group {
    margin-bottom: 2rem;
    border-radius: 8px;
    background: #f8fafc;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.criteria-group:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.criteria-group-header {
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.criteria-group-header::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 14px;
    background: #64748b;
    border-radius: 2px;
}

/* Enhanced criteria items */
/* Smooth transitions for all interactive elements */
button, input, select, textarea {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

button:hover:not(:disabled) {
    transform: translateY(-1px);
}

button:active:not(:disabled) {
    transform: translateY(0);
}

/* Enhanced button styling */
.btn-continue-ga, .btn-previous-ga {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-continue-ga {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.btn-continue-ga:hover:not(:disabled) {
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.btn-continue-ga:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-previous-ga {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.btn-previous-ga:hover:not(:disabled) {
    background: #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Improved gate body spacing */
.gate-card-body {
    padding: 2rem 1.75rem;
}

.gate-card-body > *:last-child {
    margin-bottom: 0;
}

/* Smooth animations for gate transitions */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.headache-gate-card {
    animation: slideIn 0.3s ease-out;
}

/* Section header improvements */
.condition-card-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.25rem;
}

.condition-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0.25rem 0 0.75rem 0;
    line-height: 1.3;
}

/* Enhanced visual hierarchy for result cards */
.alert {
    border-radius: 10px;
    border: 1px solid;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    animation: slideIn 0.3s ease-out;
}

.alert-danger {
    background: linear-gradient(135deg, var(--color-red-flag-light) 0%, rgba(220, 38, 38, 0.05) 100%);
    border-color: var(--color-red-flag);
    color: #7f1d1d;
}

.alert-warning {
    background: linear-gradient(135deg, var(--color-orange-flag-light) 0%, rgba(234, 88, 12, 0.05) 100%);
    border-color: var(--color-orange-flag);
    color: #7c2d12;
}

.alert-info {
    background: linear-gradient(135deg, var(--color-moh-light) 0%, rgba(2, 132, 199, 0.05) 100%);
    border-color: var(--color-moh);
    color: #164e63;
}

.alert-success {
    background: linear-gradient(135deg, var(--color-treatment-light) 0%, rgba(22, 163, 74, 0.05) 100%);
    border-color: var(--color-treatment);
    color: #15803d;
}

alert p {
    margin-bottom: 0.5rem;
}

.alert p:last-child {
    margin-bottom: 0;
}

/* App-wide Guided Assessment cosmetic alignment */
:root {
    --crx-surface: #ffffff;
    --crx-surface-muted: #f8fbff;
    --crx-border: #dbe4f0;
    --crx-border-strong: #bfd2ec;
    --crx-text: #0f172a;
    --crx-muted: #475569;
    --crx-blue: #2563eb;
    --crx-blue-dark: #1e40af;
    --crx-blue-soft: #eef5ff;
    --crx-shadow-card: 0 1px 2px rgba(15, 23, 42, 0.06), 0 12px 28px rgba(15, 23, 42, 0.06);
    --crx-shadow-focus: 0 0 0 0.22rem rgba(37, 99, 235, 0.18);
}

.app-shell {
    gap: 1rem;
    padding: 1rem;
}

.app-sidebar {
    border-radius: 10px;
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.34);
}

.app-brand {
    border-radius: 8px;
}

.main-content {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--crx-border);
    border-radius: 10px;
    box-shadow: var(--crx-shadow-card);
}

.app-topbar {
    background: var(--crx-surface);
    border-bottom: 1px solid var(--crx-border);
    padding: 1rem 1.35rem;
}

.app-breadcrumb {
    background: var(--crx-surface-muted);
    border-bottom: 1px solid #e7eef8;
    padding: 0.7rem 1.35rem;
}

.content.container-fluid {
    width: min(100%, 1320px);
    margin-inline: auto;
    padding: 1.35rem !important;
    box-sizing: border-box;
}

.dashboard-nav-link {
    border-radius: 8px;
    padding: 0.9rem 1rem;
}

.dashboard-nav-icon {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.condition-page-shell,
.delayed-page-shell {
    width: min(100%, 1120px);
    margin-inline: auto;
}

.condition-hero {
    border-radius: 10px;
    border: 1px solid rgba(191, 219, 254, 0.45);
    box-shadow: 0 18px 42px rgba(37, 99, 235, 0.16);
}

.condition-hero-logo {
    border-radius: 8px;
}

.card,
.condition-search-card,
.mode-choice-card,
.delayed-card,
.delayed-step-card,
.delayed-question-card,
.delayed-mapped-card,
.delayed-patient-answer-item,
.headache-gate-card,
.ga-treatment-plan,
.ga-treatment-section,
.ga-treatment-selection-card,
.ga-treatment-coverage-summary {
    border-radius: 10px;
    border-color: var(--crx-border);
    background: var(--crx-surface);
    box-shadow: var(--crx-shadow-card);
}

.card.shadow-sm,
.shadow-sm {
    box-shadow: var(--crx-shadow-card);
}

.mode-choice-card,
.delayed-step-card,
.delayed-question-card,
.delayed-mapped-card,
.delayed-patient-answer-item {
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.mode-choice-card:hover,
.delayed-step-card:hover,
.delayed-question-card:hover {
    border-color: var(--crx-border-strong);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.btn,
.btn-continue-ga,
.btn-previous-ga,
.delayed-btn,
.delayed-primary-action,
.delayed-toolbar-button,
.ga-treatment-actions button {
    border-radius: 8px;
    min-height: 42px;
    font-weight: 700;
}

.btn-primary,
.btn-continue-ga,
.delayed-btn-primary,
.delayed-primary-action {
    color: #ffffff;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: var(--crx-blue);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

.btn-primary:hover,
.btn-primary:focus-visible,
.btn-continue-ga:hover:not(:disabled),
.delayed-btn-primary:hover,
.delayed-btn-primary:focus-visible,
.delayed-primary-action:hover,
.delayed-primary-action:focus-visible {
    color: #ffffff;
    background: linear-gradient(135deg, #2f6bff 0%, #1e40af 100%);
    border-color: var(--crx-blue-dark);
    box-shadow: 0 10px 22px rgba(30, 64, 175, 0.26);
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success,
.btn-outline-warning,
.btn-outline-danger,
.btn-previous-ga,
.delayed-btn-soft {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border-color: var(--crx-border-strong);
    color: #1f3555;
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-success:hover,
.btn-outline-warning:hover,
.btn-outline-danger:hover,
.btn-previous-ga:hover:not(:disabled),
.delayed-btn-soft:hover,
.delayed-btn-soft:focus-visible {
    background: var(--crx-blue-soft);
    border-color: #93c5fd;
    color: var(--crx-blue-dark);
}

.condition-picker,
.delayed-notes,
textarea,
input:not([type="checkbox"]):not([type="radio"]),
select {
    min-height: 44px;
    border-radius: 8px;
    border: 1px solid var(--crx-border-strong);
    background: #ffffff;
    color: var(--crx-text);
}

.condition-picker:focus,
.delayed-notes:focus,
textarea:focus,
input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus {
    border-color: var(--crx-blue);
    box-shadow: var(--crx-shadow-focus);
    outline: none;
}

.delayed-inbox-item,
.delayed-option-item,
.delayed-review-option-item,
.delayed-mapped-row,
.ga-treatment-option {
    border-radius: 8px;
    border-color: var(--crx-border);
    background: #ffffff;
}

.delayed-inbox-item:hover,
.delayed-option-item:hover,
.delayed-review-option-item:hover,
.ga-treatment-option:not(.disabled):hover {
    border-color: #93c5fd;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

.delayed-inbox-item-active,
.delayed-review-option-item-selected,
.delayed-mapped-row-selected,
.ga-treatment-option:has(input:checked) {
    border-color: var(--crx-blue);
    background: var(--crx-blue-soft);
    box-shadow: var(--crx-shadow-focus);
}

.delayed-inbox-grid {
    align-items: start;
}

.patient-public-layout {
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 30%),
        linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
}

.delayed-patient-shell {
    width: min(100%, 920px);
    margin-inline: auto;
}

.delayed-patient-shell .condition-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.ga-travel-combo,
.delayed-travel-town-search {
    min-width: 0;
}

.ga-travel-suggestion-list {
    border-radius: 8px;
    border: 1px solid var(--crx-border-strong);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
}

.ga-travel-suggestion-list button {
    color: var(--crx-text);
}

.ga-travel-suggestion-list button:hover,
.ga-travel-suggestion-list button:focus-visible {
    background: var(--crx-blue-soft);
    color: var(--crx-blue-dark);
}

@media (max-width: 900px) {
    .app-shell {
        display: block;
        padding: 0.75rem;
    }

    .app-sidebar {
        position: static;
        width: auto;
        min-width: 0;
        margin-bottom: 0.75rem;
    }

    .main-content {
        border-radius: 10px;
    }

    .content.container-fluid {
        padding: 1rem !important;
    }

    .condition-hero {
        padding: 1.25rem;
    }

    .condition-page-title,
    .assessment-title {
        font-size: 1.75rem;
    }
}

/* Deferred consultation workflow polish */
.mb-1 {
    margin-bottom: 0.25rem;
}

.section-kicker {
    margin: 0;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.delayed-workflow-heading {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--crx-border);
}

.delayed-link-code-card {
    flex: 0 0 auto;
    min-width: 13rem;
    padding: .75rem .9rem;
    border: 1px solid #b9d2fb;
    border-radius: .8rem;
    background: #eff6ff;
    color: #12337a;
    text-align: right;
}

.delayed-link-code-card span,
.delayed-link-code-card strong {
    display: block;
}

.delayed-link-code-card span {
    color: #48658d;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.delayed-link-code-card strong {
    margin-top: .2rem;
    color: #0f3f96;
    font-size: 1.15rem;
    letter-spacing: .08em;
}

.delayed-card .card-body {
    padding: 1.35rem;
}

.delayed-workflow-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 1rem;
}

.delayed-step-card {
    position: relative;
    padding: 1rem;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid var(--crx-border);
    box-shadow: none;
}

.delayed-step-card-active {
    border-color: #bfd2ec;
}

.delayed-step-card-disabled {
    background: #f8fbff;
    border-style: dashed;
}

.delayed-step-title-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: start;
    margin-bottom: 1rem;
}

.delayed-step-number {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--crx-blue-soft);
    border: 1px solid #bfdbfe;
    color: var(--crx-blue-dark);
    font-weight: 800;
    font-size: 0.84rem;
}

.delayed-step-card-active .delayed-step-number {
    background: var(--crx-blue);
    border-color: var(--crx-blue);
    color: #ffffff;
}

.delayed-step-header {
    margin: 0;
    color: var(--crx-text);
    font-size: 1rem;
}

.delayed-step-subtitle {
    margin: 0.15rem 0 0;
    color: var(--crx-muted);
    font-size: 0.88rem;
}

.delayed-patient-mode-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
    padding: 0.25rem;
    margin-bottom: 0.9rem;
    border: 1px solid var(--crx-border);
    border-radius: 8px;
    background: #f8fbff;
}

.delayed-mode-button {
    min-height: 42px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: var(--crx-muted);
    font-weight: 800;
    padding: 0.55rem 0.75rem;
}

.delayed-mode-button:hover,
.delayed-mode-button:focus-visible {
    color: var(--crx-blue-dark);
    background: #ffffff;
    outline: none;
}

.delayed-mode-button-active {
    color: var(--crx-blue-dark);
    background: #ffffff;
    border-color: #bfdbfe;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.08);
}

.delayed-patient-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.55rem;
    align-items: end;
}

.delayed-patient-status {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.65rem;
    align-items: start;
    margin-top: 0.9rem;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--crx-border);
    background: #f8fbff;
}

.delayed-status-dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 999px;
    margin-top: 0.35rem;
    background: #94a3b8;
}

.delayed-patient-status strong {
    color: var(--crx-text);
    font-size: 0.9rem;
}

.delayed-patient-status p {
    margin: 0.1rem 0 0;
    color: var(--crx-muted);
    font-size: 0.86rem;
}

.delayed-patient-status-ready {
    border-color: #86efac;
    background: #f0fdf4;
}

.delayed-patient-status-ready .delayed-status-dot {
    background: #16a34a;
}

.delayed-locked-panel {
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--crx-border);
    background: #ffffff;
    color: var(--crx-muted);
}

.delayed-locked-panel strong {
    display: block;
    color: var(--crx-text);
    margin-bottom: 0.2rem;
}

.delayed-locked-panel p {
    margin: 0;
}

.delayed-checkbox-row {
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--crx-border);
    border-radius: 8px;
    background: #ffffff;
}

.delayed-checkbox-row:has(input:checked) {
    border-color: var(--crx-blue);
    background: var(--crx-blue-soft);
}

.delayed-share-actions {
    margin-top: 0.85rem;
}

.delayed-result {
    margin-top: 1rem;
    padding: 1rem;
    border-top: 0;
    border-radius: 8px;
    border: 1px solid #bfdbfe;
    background: var(--crx-blue-soft);
}

@media (max-width: 991.98px) {
    .delayed-workflow-grid {
        grid-template-columns: 1fr;
    }

    .delayed-patient-toolbar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .delayed-patient-mode-switch {
        grid-template-columns: 1fr;
    }
}

/* Deferred inbox review workspace */
.delayed-inbox-shell {
    width: min(100%, 1240px);
}

.delayed-inbox-grid {
    grid-template-columns: minmax(380px, 420px) minmax(0, 1fr);
    gap: 1.1rem;
    align-items: start;
}

.delayed-inbox-list-card .card-body,
.delayed-inbox-review-card .card-body {
    padding: 1rem;
}

.delayed-inbox-filters-compact {
    gap: 0.5rem;
    padding-bottom: 0.85rem;
    margin-bottom: 0.85rem;
    border-bottom: 1px solid var(--crx-border);
}

.delayed-inbox-section-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    padding: 0.25rem;
    margin: 0.65rem 0 0.85rem;
    border: 1px solid var(--crx-border);
    border-radius: 8px;
    background: #f8fbff;
}

.delayed-inbox-section-tab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    min-height: 48px;
    padding: 0.55rem 0.5rem;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: var(--crx-muted);
    font-weight: 800;
    text-align: left;
    line-height: 1.15;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
}

.delayed-inbox-section-tab span {
    flex: 0 0 auto;
    min-width: 1.65rem;
    max-width: 2.8rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-size: 0.75rem;
    text-align: center;
}

@media (max-width: 1120px) {
    .delayed-inbox-grid {
        grid-template-columns: minmax(320px, 360px) minmax(0, 1fr);
    }

    .delayed-inbox-section-tabs {
        grid-template-columns: 1fr;
    }
}

.delayed-inbox-section-tab.active {
    border-color: var(--crx-blue);
    background: #ffffff;
    color: var(--crx-blue-dark);
    box-shadow: var(--crx-shadow-focus);
}

.delayed-inbox-section-tab.active span {
    background: var(--crx-blue);
    color: #ffffff;
}

/* Security and compliance review */
.compliance-shell {
    width: min(100%, 1180px);
}

.compliance-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.compliance-summary-card {
    display: grid;
    gap: 0.2rem;
    padding: 1rem;
    border: 1px solid var(--crx-border);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--crx-shadow-soft);
}

.compliance-summary-card span,
.compliance-muted {
    color: var(--crx-muted);
}

.compliance-summary-card strong {
    color: var(--crx-blue-dark);
    font-size: 1.35rem;
}

.compliance-summary-card small {
    color: var(--crx-muted);
}

.compliance-tabs {
    max-width: 520px;
}

.compliance-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.compliance-audit-list,
.compliance-retention-list {
    display: grid;
    gap: 0.65rem;
}

.compliance-audit-item,
.compliance-retention-item,
.compliance-retention-note {
    border: 1px solid var(--crx-border);
    border-radius: 8px;
    background: #ffffff;
}

.compliance-audit-item {
    display: grid;
    gap: 0.45rem;
    padding: 0.85rem;
}

.compliance-audit-main,
.compliance-audit-meta,
.compliance-retention-item,
.compliance-retention-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.compliance-audit-main {
    justify-content: space-between;
}

.compliance-audit-main span,
.compliance-audit-meta {
    color: var(--crx-muted);
    font-size: 0.86rem;
}

.compliance-audit-meta {
    flex-wrap: wrap;
}

.compliance-details summary {
    color: var(--crx-blue-dark);
    cursor: pointer;
    font-weight: 800;
}

.compliance-details pre {
    margin: 0.45rem 0 0;
    padding: 0.75rem;
    overflow-x: auto;
    border-radius: 8px;
    background: #f8fbff;
    color: var(--crx-text);
    white-space: pre-wrap;
}

.compliance-retention-note {
    margin-bottom: 1rem;
    padding: 0.95rem;
    background: var(--crx-blue-soft);
}

.compliance-retention-note p,
.compliance-retention-item p {
    margin: 0.2rem 0;
    color: var(--crx-muted);
}

.compliance-retention-item {
    justify-content: space-between;
    padding: 0.9rem;
}

.compliance-retention-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

@media (max-width: 900px) {
    .compliance-summary-grid {
        grid-template-columns: 1fr;
    }

    .compliance-toolbar,
    .compliance-retention-item {
        grid-template-columns: 1fr;
        display: grid;
    }

    .compliance-audit-main,
    .compliance-retention-actions {
        align-items: flex-start;
        flex-direction: column;
    }
}

.delayed-inbox-status {
    max-width: none;
    width: 170px;
}

.delayed-inbox-list {
    gap: 0.55rem;
}

.delayed-inbox-item {
    position: relative;
    gap: 0.25rem;
    padding: 0.85rem;
    border-radius: 8px;
    border: 1px solid var(--crx-border);
    background: #ffffff;
    color: var(--crx-text);
    box-shadow: none;
}

.delayed-inbox-item::before {
    content: "";
    position: absolute;
    inset-block: 0.7rem;
    left: 0;
    width: 3px;
    border-radius: 999px;
    background: transparent;
}

.delayed-inbox-item strong {
    font-size: 0.9rem;
}

.delayed-inbox-item > span:not(.delayed-status-chip) {
    color: var(--crx-text);
    font-size: 0.86rem;
}

.delayed-inbox-item small {
    color: var(--crx-muted);
    font-size: 0.78rem;
}

.delayed-inbox-item-unreviewed {
    border-color: #fed7aa;
    background: #fffaf0;
    box-shadow: none;
}

.delayed-inbox-item-unreviewed::before {
    background: #f97316;
}

.delayed-inbox-item-active {
    border-color: var(--crx-blue);
    background: var(--crx-blue-soft);
    box-shadow: var(--crx-shadow-focus);
}

.delayed-inbox-item-active::before {
    background: var(--crx-blue);
}

.delayed-review-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    margin-bottom: 0.85rem;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.delayed-review-contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.85rem;
    color: var(--crx-muted);
    font-size: 0.86rem;
}

.delayed-review-contact-grid strong {
    color: var(--crx-text);
    margin-right: 0.25rem;
}

.delayed-review-mode-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
    padding: 0.25rem;
    margin-bottom: 0.9rem !important;
    border: 1px solid var(--crx-border);
    border-radius: 8px;
    background: #f8fbff;
    width: min(100%, 360px);
}

.delayed-patient-answer-list {
    gap: 0.65rem;
}

.delayed-patient-answer-item {
    padding: 0.9rem;
    border-radius: 8px;
    border: 1px solid var(--crx-border);
    background: #ffffff;
    box-shadow: none;
}

.delayed-patient-answer-question {
    margin-bottom: 0.15rem;
    font-size: 0.94rem;
    line-height: 1.35;
}

.delayed-question-guidance {
    color: var(--crx-muted);
    font-size: 0.8rem;
}

.delayed-review-option-list {
    gap: 0.35rem;
}

.delayed-review-option-item {
    min-height: 38px;
    gap: 0.55rem;
    padding: 0.45rem 0.6rem;
    border-radius: 8px;
    color: var(--crx-muted);
    background: #f8fbff;
    border-color: var(--crx-border);
}

.delayed-review-option-item-selected {
    border-color: var(--crx-blue);
    background: var(--crx-blue-soft);
    color: var(--crx-text);
    box-shadow: none;
}

.delayed-review-option-item-unanswered {
    color: var(--crx-muted);
    font-style: italic;
}

.delayed-review-option-check {
    width: 1rem;
    height: 1rem;
    flex: 0 0 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
}

.delayed-review-option-item-selected .delayed-review-option-check {
    border-color: var(--crx-blue);
    background: var(--crx-blue);
}

.delayed-review-option-item-selected .delayed-review-option-check::after {
    content: "";
    width: 0.38rem;
    height: 0.38rem;
    border-radius: 999px;
    background: #ffffff;
}

.delayed-mapped-card {
    padding: 0.9rem;
    border-radius: 8px;
    background: #ffffff;
    border-color: var(--crx-border);
}

.delayed-mapped-card-header h4 {
    font-size: 0.98rem;
}

.delayed-notes {
    border-radius: 8px;
    border-color: var(--crx-border-strong);
    background: #ffffff;
}

@media (max-width: 991.98px) {
    .delayed-inbox-grid {
        grid-template-columns: 1fr;
    }

    .delayed-inbox-status {
        width: 100%;
    }
}

/* Account access */
.account-choice-shell {
    width: min(100%, 1120px);
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
}

.account-choice-hero {
    max-width: 760px;
    margin-bottom: 1rem;
}

.account-choice-hero h1 {
    margin: 0.15rem 0 0.45rem;
    color: var(--crx-text);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
}

.account-choice-hero p,
.account-choice-copy {
    color: var(--crx-muted);
}

.account-choice-kicker {
    margin: 0;
    color: var(--crx-muted);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.account-alert {
    max-width: 760px;
}

.account-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.account-choice-card {
    padding: 1.25rem;
    border: 1px solid var(--crx-border);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--crx-shadow-card);
}

.account-choice-card-primary {
    border-color: #bfdbfe;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.account-choice-card-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.75rem;
}

.account-choice-card h2 {
    margin: 0.1rem 0 0;
    color: var(--crx-text);
    font-size: 1.35rem;
}

.account-choice-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 8px;
    background: var(--crx-blue-soft);
    color: var(--crx-blue-dark);
    border: 1px solid #bfdbfe;
    font-weight: 900;
}

.account-form {
    display: grid;
    gap: 0.85rem;
    margin-top: 1rem;
}

.account-field {
    display: grid;
    gap: 0.35rem;
}

.account-field label,
.account-check {
    color: var(--crx-text);
    font-weight: 700;
}

.account-check {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.account-submit {
    justify-self: start;
    min-height: 46px;
}

.account-signup-panel {
    display: grid;
    gap: 0.45rem;
    margin-top: 1rem;
    padding: 0.9rem;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: var(--crx-blue-soft);
}

.account-signup-panel span {
    color: var(--crx-muted);
}

.account-signup-panel .btn {
    justify-self: start;
    background: #ffffff;
}

@media (max-width: 860px) {
    .account-choice-grid {
        grid-template-columns: 1fr;
    }
}

/* Unified application shell: match the Guided Assessment visual system */
body {
    background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
    color: var(--crx-text);
}

.app-shell {
    width: min(100%, 1500px);
    margin-inline: auto;
    gap: 1rem;
    padding: 1rem;
}

.app-sidebar {
    width: 280px;
    min-width: 280px;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--crx-border);
    box-shadow: var(--crx-shadow-card);
}

.app-brand {
    padding: 0.45rem 0.5rem 0.9rem;
    border-bottom: 1px solid var(--crx-border);
}

.app-brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 1px solid var(--crx-border);
    background: #ffffff;
}

.app-brand strong {
    color: var(--crx-text);
    font-size: 1rem;
}

.app-brand small {
    color: var(--crx-muted);
    font-size: 0.78rem;
}

.dashboard-nav-label {
    color: #64748b;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}

.dashboard-nav-link {
    gap: 0.85rem;
    padding: 0.85rem 0.9rem;
    border-radius: 8px;
    color: var(--crx-text);
    background: #ffffff;
    border: 1px solid var(--crx-border);
    box-shadow: none;
    backdrop-filter: none;
}

.dashboard-nav-link,
.dashboard-nav-link:visited,
.dashboard-nav-link:hover,
.dashboard-nav-link:focus {
    color: var(--crx-text);
}

.dashboard-nav-link:hover,
.dashboard-nav-link:focus-visible {
    background: var(--crx-blue-soft);
    border-color: #93c5fd;
    box-shadow: var(--crx-shadow-focus);
    transform: none;
}

.dashboard-nav-link strong,
.dashboard-nav-link-active strong {
    color: var(--crx-text);
    font-size: 0.86rem;
}

.dashboard-nav-link small,
.dashboard-nav-link-active small {
    color: var(--crx-muted);
    font-size: 0.78rem;
}

.dashboard-nav-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    background: var(--crx-blue-soft);
    color: var(--crx-blue-dark);
    border: 1px solid #bfdbfe;
    box-shadow: none;
    font-size: 0.72rem;
}

.dashboard-nav-link-active {
    background: var(--crx-blue-soft);
    border-color: #3b82f6;
    box-shadow: var(--crx-shadow-focus);
}

.dashboard-nav-link-active::before {
    left: 0;
    top: 0.6rem;
    bottom: 0.6rem;
    width: 3px;
    border-radius: 999px;
    background: var(--crx-blue);
}

.dashboard-nav-link-active .dashboard-nav-icon {
    background: var(--crx-blue);
    color: #ffffff;
    border-color: var(--crx-blue);
}

.app-sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: auto;
    padding-top: 0.9rem;
    border-top: 1px solid var(--crx-border);
}

.app-signout-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 64px;
    padding: 0.85rem 0.9rem;
    border-radius: 8px;
    color: var(--crx-text);
    background: #ffffff;
    border: 1px solid var(--crx-border);
    box-shadow: none;
}

.app-signout-link:hover,
.app-signout-link:focus-visible {
    color: var(--crx-text);
    background: var(--crx-blue-soft);
    border-color: #93c5fd;
    box-shadow: var(--crx-shadow-focus);
    transform: none;
}

.app-signout-link strong {
    color: var(--crx-text);
    font-size: 0.9rem;
}

.app-signout-link small {
    color: var(--crx-muted);
    font-size: 0.78rem;
}

.app-signout-icon {
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    background: var(--crx-blue-soft);
    color: var(--crx-blue-dark);
    border: 1px solid #bfdbfe;
    font-size: 0.78rem;
}

.main-content {
    flex: 1 1 auto;
    min-width: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.app-topbar {
    margin-bottom: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--crx-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--crx-shadow-card);
}

.app-topbar-kicker {
    color: #64748b;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}

.app-topbar-title {
    margin-top: 0.15rem;
    color: var(--crx-text);
    font-size: 1rem;
}

.app-breadcrumb {
    margin-bottom: 0.75rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid var(--crx-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
}

.content.container-fluid {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding: 0 !important;
}

.condition-page-shell,
.delayed-page-shell {
    width: min(100%, 1120px);
    margin-inline: 0;
}

@media (max-width: 900px) {
    .app-shell {
        width: 100%;
        padding: 0.75rem;
    }

    .app-sidebar {
        width: auto;
        min-width: 0;
    }

    .content.container-fluid {
        padding: 0 !important;
    }
}

/* Patient-facing deferred form pilot */
.delayed-patient-question-group {
    margin: 1.15rem 0 0.65rem;
    padding: 0.85rem 1rem;
    border: 1px solid #bfdbfe;
    border-left: 4px solid var(--crx-blue);
    border-radius: 8px;
    background: #eff6ff;
}

.delayed-patient-question-group:first-of-type {
    margin-top: 1rem;
}

.delayed-patient-question-group-help {
    margin: 0;
    color: #375174;
    font-size: 0.94rem;
    line-height: 1.45;
}

.delayed-question-helper {
    margin: -0.15rem 0 0.85rem;
    color: #4f6583;
    font-size: 0.92rem;
    line-height: 1.45;
}

.delayed-patient-shell .delayed-question-card {
    margin-bottom: 0.9rem;
}

.delayed-patient-shell .delayed-question-card-missing {
    border-color: #f59e0b;
    background: #fffbeb;
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.2);
}

.delayed-question-validation {
    margin: 0.75rem 0 0;
    color: #92400e;
    font-size: 0.9rem;
    font-weight: 700;
}

.delayed-image-assist-card {
    border-color: rgba(37, 99, 235, 0.28);
    background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
}

.delayed-image-assist-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.delayed-image-upload {
    display: block;
    width: 100%;
    margin: 1rem 0;
    padding: 0.85rem;
    border: 1px dashed #9fc5ff;
    border-radius: 8px;
    background: #fff;
    color: #16345f;
}

.delayed-photo-grid,
.delayed-review-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.85rem;
    margin-top: 0.85rem;
}

.delayed-photo-tile,
.delayed-review-photo {
    overflow: hidden;
    border: 1px solid #d7e4f5;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.delayed-photo-tile img,
.delayed-review-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #eaf2fb;
}

.delayed-photo-tile div {
    display: grid;
    gap: 0.15rem;
    padding: 0.7rem;
}

.delayed-photo-tile strong,
.delayed-review-photo span {
    overflow: hidden;
    color: #0f2a4d;
    font-size: 0.88rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.delayed-photo-tile span {
    color: #64748b;
    font-size: 0.8rem;
}

.delayed-photo-tile .delayed-btn {
    margin: 0 0.7rem 0.7rem;
}

.delayed-ai-disclaimer {
    margin: 1rem 0 0;
    color: #375174;
    font-size: 0.9rem;
}

.delayed-review-image-intake {
    border-color: rgba(37, 99, 235, 0.22);
    background: #f8fbff;
}

.delayed-review-image-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.delayed-review-image-refresh {
    flex: 0 0 auto;
    white-space: nowrap;
}

.delayed-review-photo {
    padding: 0;
    text-align: left;
}

.delayed-review-photo span {
    display: block;
    padding: 0.65rem 0.75rem;
}

.delayed-image-suggestion-list {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.9rem;
}

.delayed-image-suggestion {
    padding: 0.75rem 0.85rem;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
}

.delayed-image-suggestion strong,
.delayed-image-suggestion span {
    display: inline-block;
    margin-right: 0.5rem;
}

.delayed-image-suggestion span {
    color: #1d4ed8;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.delayed-image-suggestion p {
    margin: 0.35rem 0 0;
    color: #375174;
    font-size: 0.92rem;
}

.delayed-image-mapping-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.65rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid #93c5fd;
    border-radius: 8px;
    background: #ffffff;
    color: #0f2f66;
    font-size: 0.88rem;
    font-weight: 800;
}

.delayed-image-mapping-chip span {
    margin: 0;
    color: #047857;
    text-transform: none;
}

.delayed-image-score-list {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.75rem;
}

.delayed-image-score-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.35rem 0.75rem;
    align-items: center;
    padding: 0.55rem 0.65rem;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #ffffff;
}

.delayed-image-score-label {
    min-width: 0;
    overflow: hidden;
    color: #10203d !important;
    font-size: 0.88rem !important;
    font-weight: 800 !important;
    text-overflow: ellipsis;
    text-transform: none !important;
    white-space: nowrap;
}

.delayed-image-score-percent {
    margin: 0 !important;
    color: #047857 !important;
    font-size: 0.88rem !important;
    font-weight: 900 !important;
    text-transform: none !important;
}

.delayed-image-score-bar {
    grid-column: 1 / -1;
    height: 0.4rem;
    overflow: hidden;
    border-radius: 999px;
    background: #e8eef8;
}

.delayed-image-score-bar span {
    display: block;
    height: 100%;
    margin: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #22c55e);
}

.delayed-image-score-row small {
    grid-column: 1 / -1;
    color: #526783;
    font-size: 0.82rem;
    line-height: 1.35;
}

/* Polished account entry */
.account-page-body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 8% 12%, rgba(59, 130, 246, 0.16), transparent 30rem),
        radial-gradient(circle at 92% 8%, rgba(14, 165, 233, 0.18), transparent 28rem),
        linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
    color: var(--crx-text);
}

.account-page-main {
    min-height: 100vh;
    padding: clamp(1rem, 3vw, 2rem);
}

.account-page-body .account-choice-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 0;
}

.account-access-panel {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.45fr);
    min-height: calc(100vh - clamp(2rem, 6vw, 4rem));
    overflow: hidden;
    border: 1px solid rgba(191, 219, 254, 0.88);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
}

.account-access-hero {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.35rem;
    padding: clamp(1.4rem, 4vw, 2.4rem);
    background:
        linear-gradient(135deg, rgba(26, 54, 126, 0.96) 0%, rgba(37, 99, 235, 0.94) 52%, rgba(56, 189, 248, 0.92) 100%);
    color: #ffffff;
}

.account-access-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.account-access-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0.18rem;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    color: #0f5cc9;
    font-weight: 950;
    letter-spacing: -0.03em;
    object-fit: contain;
}

.account-access-brand strong,
.account-access-brand span {
    display: block;
}

.account-access-brand strong {
    font-size: 1.05rem;
}

.account-access-brand span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.84rem;
}

.account-access-hero .account-choice-kicker {
    color: rgba(255, 255, 255, 0.78);
}

.account-access-hero h1 {
    max-width: 9ch;
    margin: auto 0 0;
    color: #ffffff;
    font-size: clamp(2.35rem, 5vw, 4.25rem);
    line-height: 0.98;
    letter-spacing: -0.02em;
}

.account-access-hero p {
    max-width: 35rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1rem;
    line-height: 1.55;
}

.account-access-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    padding-top: 0.4rem;
}

.account-access-highlights span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.35rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
}

.account-access-content {
    display: grid;
    align-content: center;
    gap: 1rem;
    padding: clamp(1.25rem, 4vw, 2.25rem);
}

.account-choice-heading {
    display: grid;
    gap: 0.2rem;
}

.account-choice-heading h2 {
    margin: 0;
    color: var(--crx-text);
    font-size: clamp(1.65rem, 3vw, 2.3rem);
    letter-spacing: -0.015em;
}

.account-choice-heading p {
    margin: 0;
    color: var(--crx-muted);
}

.account-page-body .account-alert {
    max-width: none;
    margin: 0;
    border-radius: 8px;
}

.account-page-body .account-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.account-page-body .account-choice-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 1.15rem;
    border: 1px solid #d8e6f7;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

.account-page-body .account-choice-card-primary {
    border-color: #93c5fd;
    background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
}

.account-page-body .account-choice-card-header {
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
}

.account-page-body .account-choice-card h3 {
    margin: 0.12rem 0 0;
    color: var(--crx-text);
    font-size: 1.24rem;
    letter-spacing: -0.01em;
}

.account-page-body .account-choice-icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
    color: var(--crx-blue-dark);
    border-color: #bfdbfe;
}

.account-page-body .account-choice-copy {
    min-height: 3.9rem;
    margin: 0;
    color: #405875;
    line-height: 1.45;
}

.account-page-body .account-form {
    gap: 0.78rem;
    margin-top: 1rem;
}

.account-page-body .account-field label,
.account-page-body .account-check {
    color: var(--crx-text);
    font-size: 0.88rem;
    font-weight: 850;
}

.account-page-body .account-field .form-control {
    min-height: 48px;
    border-color: #b9ccec;
    border-radius: 8px;
    color: var(--crx-text);
    box-shadow: none;
}

.account-page-body .account-field .form-control:focus {
    border-color: #3b82f6;
    box-shadow: var(--crx-shadow-focus);
}

.account-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-top: 0.1rem;
}

.account-page-body .account-submit {
    min-height: 46px;
    padding-inline: 1rem;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.24);
    font-weight: 900;
}

.account-page-body .account-submit:hover,
.account-page-body .account-submit:focus-visible {
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.3);
}

.account-page-body .account-signup-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    margin-top: auto;
    padding: 0.85rem;
    border-color: #bfdbfe;
    background: #eff6ff;
}

.account-page-body .account-signup-panel strong,
.account-page-body .account-signup-panel span {
    display: block;
}

.account-page-body .account-signup-panel span {
    margin-top: 0.1rem;
    color: #405875;
    font-size: 0.88rem;
}

.account-page-body .account-signup-panel .btn {
    flex: 0 0 auto;
    min-height: 42px;
    border-radius: 8px;
    background: #ffffff;
    font-weight: 900;
}

.account-page-body .account-coming-soon-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    margin-top: auto;
    padding: 0.85rem;
    border: 1px dashed #bfdbfe;
    border-radius: 8px;
    background: #f8fbff;
}

.account-page-body .account-coming-soon-panel strong,
.account-page-body .account-coming-soon-panel span {
    display: block;
}

.account-page-body .account-coming-soon-panel span {
    margin-top: 0.1rem;
    color: #52677f;
    font-size: 0.88rem;
}

.account-page-body .account-coming-soon-panel .btn {
    flex: 0 0 auto;
    min-height: 42px;
    border-radius: 8px;
    font-weight: 900;
    opacity: 0.62;
    cursor: not-allowed;
}

@media (max-width: 1040px) {
    .account-access-panel {
        grid-template-columns: 1fr;
    }

    .account-access-hero {
        min-height: 320px;
    }

    .account-access-hero h1 {
        max-width: 14ch;
    }
}

@media (max-width: 760px) {
    .account-page-main {
        padding: 0.75rem;
    }

    .account-page-body .account-choice-grid {
        grid-template-columns: 1fr;
    }

    .account-page-body .account-choice-copy {
        min-height: 0;
    }

    .account-page-body .account-signup-panel,
    .account-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .account-page-body .account-submit,
    .account-page-body .account-signup-panel .btn {
        width: 100%;
    }
}

