﻿/* ============================================================
   LevelUP — Mobile-First Design System (light mode only)
   ============================================================ */

/* Design tokens: levelup-tokens.css | Responsive: levelup-responsive.css | Components: levelup-components.css */

/* ---------- Base ---------- */
html, body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--surface-bg);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    text-rendering: optimizeLegibility;
}

body {
    overscroll-behavior-y: none;
}

h1, h2, h3, h4 {
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

h1:focus, h2:focus {
    outline: none;
}

a, .btn-link {
    color: var(--brand-orange);
    text-decoration: none;
}

a:hover {
    color: var(--brand-orange-700);
}

.text-muted {
    color: var(--text-secondary) !important;
}

code {
    color: #c02d76;
}

::selection {
    background: var(--brand-orange-soft);
}

/* ---------- App Shell ---------- */
.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--surface-bg);
}

.content {
    flex: 1;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 1.25rem 1.1rem calc(1.25rem + var(--safe-bottom));
    box-sizing: border-box;
    animation: page-in var(--dur-slow) var(--ease);
}

.content--home {
    display: flex;
    flex-direction: column;
    max-width: none;
    width: 100%;
    padding: 1.25rem 1.25rem calc(1.25rem + var(--safe-bottom));
}

.content--dashboard {
    display: flex;
    flex-direction: column;
    max-width: none;
    width: 100%;
    padding: var(--page-body-padding);
    padding-bottom: calc(16px + var(--safe-bottom));
    min-width: 0;
}

.content--reports {
    display: flex;
    flex-direction: column;
    max-width: none;
    width: 100%;
    padding: 0;
    padding-bottom: calc(8px + var(--safe-bottom));
    min-width: 0;
    overflow-x: clip;
}

@media (min-width: 820px) {
    .content--home,
    .content--dashboard {
        padding: var(--page-body-padding);
        padding-bottom: calc(48px + var(--safe-bottom));
    }
}

.content--plant-make {
    display: flex;
    flex-direction: column;
    max-width: none;
    width: 100%;
    padding: 1.25rem 1.25rem calc(1.25rem + var(--safe-bottom));
}

.content--setup-wizard {
    display: flex;
    flex-direction: column;
    max-width: none;
    width: 100%;
    padding: 1.25rem 1.25rem calc(1.25rem + var(--safe-bottom));
}

@media (min-width: 820px) {
    .content--plant-make,
    .content--setup-wizard {
        padding: var(--page-body-padding);
        padding-bottom: calc(1.75rem + var(--safe-bottom));
    }
}

@media (min-width: 1180px) {
    .content--plant-make,
    .content--setup-wizard {
        padding-bottom: calc(2rem + var(--safe-bottom));
    }
}

/* When a page renders a sticky action bar, leave room so content isn't hidden */
.has-action-bar .content {
    padding-bottom: calc(108px + var(--safe-bottom));
}

@keyframes page-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Field/scoring: preserve larger touch targets (hub uses 42px from levelup-components.css) */
.content--scoring .form-control,
.content--scoring .form-select,
.content--scoring-assessment .form-control,
.content--scoring-assessment .form-select,
.content--setup-wizard .form-control,
.content--setup-wizard .form-select,
.login-form__input {
    min-height: 48px;
    font-size: 1rem;
}

.content--scoring,
.content--scoring-assessment,
.content--setup-wizard {
    font-size: var(--text-body-min);
}

/* ---------- App Header ---------- */
.app-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: linear-gradient(135deg, var(--brand-charcoal) 0%, var(--brand-charcoal-700) 100%);
    color: #fff;
    padding: calc(0.7rem + var(--safe-top)) 1.1rem 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-sm);
}

.app-header__brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
    border-radius: 0.65rem;
    transition: opacity 0.15s ease;
}

.app-header__brand:hover,
.app-header__brand:focus-visible {
    opacity: 0.92;
    outline: none;
}

.app-header__logo {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: #fff;
}

.app-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-title__level {
    color: #fff;
}

.app-title__up {
    color: var(--brand-orange);
}

.app-subtitle {
    margin: 0;
    font-size: 0.72rem;
    opacity: 0.75;
    line-height: 1.1;
}

/* ---------- Setup header ---------- */
.setup-header__logo {
    display: block;
    flex-shrink: 0;
    border-radius: 10px;
    object-fit: contain;
}

.app-header__actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
    margin-left: auto;
}

.server-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.35rem;
    border-radius: var(--radius-pill);
    background: transparent;
    border: none;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.78);
}

.server-status__dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.45);
}

.server-status--connected .server-status__dot {
    background: var(--status-dot-online);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--status-dot-online) 25%, transparent);
}

.server-status--unavailable .server-status__dot {
    background: var(--status-dot-unavailable);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--status-dot-unavailable) 25%, transparent);
}

.server-status--offline .server-status__dot {
    background: var(--status-dot-offline);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--status-dot-offline) 25%, transparent);
}

.server-status--checking .server-status__dot {
    background: #ffa740;
    box-shadow: 0 0 0 2px rgba(255, 167, 64, 0.22);
    animation: server-status-pulse 1.1s ease-in-out infinite;
}

.server-status--unknown .server-status__dot {
    background: rgba(255, 255, 255, 0.35);
}

@keyframes server-status-pulse {
    0%, 100% { opacity: 0.45; transform: scale(0.92); }
    50% { opacity: 1; transform: scale(1); }
}

@media (max-width: 480px) {
    .server-status__label {
        display: none;
    }

    .server-status {
        padding: 0.35rem;
    }
}

/* ---------- Scoring Phase chrome ---------- */
.scoring-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--brand-charcoal);
    color: #fff;
    padding: calc(0.55rem + var(--safe-top)) 0.65rem 0.55rem;
    box-shadow: var(--shadow-sm);
}

.scoring-header--menu-open {
    z-index: 40;
}

.scoring-header__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-height: 44px;
}

.scoring-header__leading,
.scoring-header__trailing {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.scoring-header__trailing {
    justify-content: flex-end;
}

.scoring-header__brand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    max-width: calc(100% - 11rem);
}

.scoring-header__logo {
    display: block;
    width: auto;
    height: 1.75rem;
    max-width: 100%;
    object-fit: contain;
}

.scoring-header__title {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.scoring-header__action {
    appearance: none;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-radius: var(--radius-sm);
    min-width: var(--touch-target-min);
    min-height: var(--touch-target-min);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background-color var(--dur) var(--ease);
}

.scoring-header__action:hover,
.scoring-header__action:focus-visible {
    background: rgba(255, 255, 255, 0.16);
    outline: none;
}

.scoring-header__action--text {
    min-width: auto;
    padding: 0 0.65rem;
    font-size: 0.76rem;
    font-weight: 600;
    white-space: nowrap;
}

.scoring-header__section-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.scoring-header__section-nav--next {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.scoring-header__overflow {
    position: relative;
}

.scoring-header__backdrop {
    position: fixed;
    inset: 0;
    z-index: 31;
    background: transparent;
}

.scoring-overflow-menu {
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    z-index: 32;
    min-width: 11.5rem;
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    padding: 0.35rem 0;
}

.scoring-overflow-menu__item {
    appearance: none;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.scoring-overflow-menu__item:hover,
.scoring-overflow-menu__item:focus-visible {
    background: var(--surface-muted);
    outline: none;
}

.scoring-overflow-menu__item--danger {
    color: var(--semantic-fail);
}

.scoring-header__toast {
    position: absolute;
    left: 50%;
    bottom: -0.35rem;
    transform: translate(-50%, 100%);
    z-index: 33;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--brand-orange);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-brand);
    white-space: nowrap;
    animation: scoring-toast-in var(--dur) var(--ease);
}

@keyframes scoring-toast-in {
    from { opacity: 0; transform: translate(-50%, calc(100% + 6px)); }
    to { opacity: 1; transform: translate(-50%, 100%); }
}

.scoring-tab-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 25;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: center;
    background: var(--surface-card);
    border-top: 1px solid var(--border-color);
    padding: 0.35rem 0.5rem calc(0.35rem + var(--safe-bottom));
    box-shadow: 0 -2px 12px rgba(42, 47, 54, 0.08);
}

.scoring-tab {
    appearance: none;
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    width: 100%;
    max-width: 12rem;
    min-height: var(--touch-target-min);
    min-width: var(--touch-target-min);
    font-size: var(--text-body-min);
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    padding: 0.35rem 0.15rem;
    cursor: pointer;
    line-height: 1.1;
}

.scoring-tab:focus-visible {
    outline: 2px solid var(--brand-orange);
    outline-offset: -2px;
    border-radius: var(--radius-sm);
}

.scoring-tab--active {
    color: var(--brand-orange);
}

.content--scoring,
.content--scoring-assessment {
    max-width: none;
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 820px) {
    .content--scoring,
    .content--scoring-assessment {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

.content--scoring {
    padding-bottom: calc(var(--scoring-tab-bar-h) + var(--safe-bottom));
}

.content--scoring-assessment {
    padding-bottom: calc(var(--scoring-tab-bar-h) + var(--safe-bottom) + 0.35rem);
}

/* ---------- Section Navigation (preview / inline; field scoring uses header) ---------- */
.section-nav-bar {
    display: flex;
    gap: 0.65rem;
    padding: 0.65rem 0;
    margin-top: 1rem;
}

.section-nav-bar__btn {
    flex: 1;
    min-height: var(--touch-target-min);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: var(--text-body-min);
    font-weight: 600;
}

.section-nav-bar__prev {
    flex: 0 1 auto;
    min-width: var(--touch-target-min);
    padding-left: 0.85rem;
    padding-right: 0.85rem;
}

.section-nav-bar__next {
    flex: 1.4;
}

.section-jump-menu {
    margin: 0.75rem 1rem 0;
    padding: 0.75rem 0.85rem;
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.section-jump-menu__label {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.section-jump-menu__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.section-jump-menu__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: var(--touch-target-min);
    padding: 0.35rem 0.55rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--surface-bg);
    color: var(--text-primary);
    font-size: 0.82rem;
    line-height: 1.2;
    cursor: pointer;
}

.section-jump-menu__btn.is-current {
    border-color: var(--brand-orange);
    background: color-mix(in srgb, var(--brand-orange) 12%, transparent);
    font-weight: 600;
}

.section-jump-menu__btn.is-complete .section-jump-menu__progress {
    color: var(--success-text, #15803d);
}

.section-jump-menu__progress {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-left: 0.15rem;
}

.section-jump-menu__number {
    font-weight: 700;
    min-width: 1.1rem;
}

.section-jump-menu__title {
    max-width: 9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.certificate-form__choices {
    display: flex;
    gap: 1rem;
    margin-top: 0.35rem;
}

/* ---------- Setup stepper (wizard progress) ---------- */
.setup-stepper {
    position: sticky;
    top: var(--header-h);
    z-index: 29;
    background: var(--surface-bg);
    border-bottom: 1px solid var(--border-color);
}

.setup-stepper__list {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0.95rem 1rem 1.05rem;
    width: 100%;
    box-sizing: border-box;
}

.setup-stepper__item {
    flex: 0 0 auto;
}

.setup-stepper__connector {
    position: relative;
    flex: 1 1 2rem;
    flex-shrink: 1;
    min-width: 1.25rem;
    max-width: 4.5rem;
    height: 2px;
    margin: 1.125rem 0.35rem 0;
    align-self: flex-start;
}

.setup-stepper__connector-track,
.setup-stepper__connector-fill {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-pill);
}

.setup-stepper__connector-track {
    background: var(--border-color);
}

.setup-stepper__connector-fill {
    background: var(--gradient-brand);
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform 0.55s var(--ease);
}

.setup-stepper__connector.is-filled .setup-stepper__connector-fill {
    transform: scaleX(1);
}

.setup-stepper__row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.setup-stepper__marker {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 1.5px solid var(--border-strong);
    background: var(--surface-card);
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
    transition:
        background-color 0.35s var(--ease),
        border-color 0.35s var(--ease),
        color 0.35s var(--ease),
        transform 0.35s var(--ease),
        box-shadow 0.35s var(--ease);
}

.setup-stepper__label {
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: color 0.35s var(--ease), font-weight 0.35s var(--ease);
}

.setup-stepper__marker .icon {
    line-height: 0;
}

.setup-stepper__item.is-complete .setup-stepper__marker {
    border-color: var(--brand-orange);
    background: var(--brand-orange);
    color: #fff;
    box-shadow: 0 2px 8px rgba(255, 106, 0, 0.2);
}

.setup-stepper__item.is-complete .setup-stepper__label {
    color: var(--brand-charcoal);
}

.setup-stepper__item.is-active .setup-stepper__marker {
    border-color: var(--brand-orange);
    background: var(--brand-orange);
    color: #fff;
    transform: scale(1.06);
    box-shadow: 0 4px 14px rgba(255, 106, 0, 0.28);
    animation: stepper-marker-pop 0.45s var(--ease) both;
}

.setup-stepper__item.is-active .setup-stepper__label {
    color: var(--brand-charcoal);
    font-weight: 800;
}

.setup-stepper__item.is-upcoming .setup-stepper__label {
    color: color-mix(in srgb, var(--text-secondary) 82%, transparent);
}

@keyframes stepper-marker-pop {
    0% {
        transform: scale(0.92);
    }
    60% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1.06);
    }
}

@media (max-width: 819px) {
    .setup-stepper__list {
        justify-content: center;
        overflow: visible;
        padding: 0.85rem 1rem 0.95rem;
        gap: 0;
    }

    .setup-stepper__connector {
        display: none;
    }

    .setup-stepper__item:not(.is-active) {
        display: none;
    }

    .setup-stepper__item.is-active {
        flex: 0 1 auto;
    }

    .setup-stepper__item.is-active .setup-stepper__row {
        justify-content: center;
    }

    .setup-stepper__label {
        font-size: 0.8125rem;
    }

    .setup-stepper__marker {
        width: 1.875rem;
        height: 1.875rem;
        font-size: 0.8125rem;
    }
}

@media (min-width: 820px) {
    .setup-stepper__list {
        justify-content: space-between;
        padding: 1rem 2.5rem 1.15rem;
    }

    .setup-stepper__label {
        font-size: 0.875rem;
    }

    .setup-stepper__connector {
        flex: 1 1 auto;
        max-width: none;
        min-width: 2rem;
        margin: 1.125rem 1rem 0;
    }
}

@media (min-width: 1180px) {
    .setup-stepper__list {
        padding: 1rem 3rem 1.15rem;
    }

    .setup-stepper__connector {
        margin: 1.125rem 1.5rem 0;
    }

    .setup-stepper__label {
        font-size: 0.9375rem;
    }
}

/* ---------- Offline Banner ---------- */
.offline-banner {
    background-color: var(--surface-bg);
    color: var(--warning);
    border-bottom: 1px solid color-mix(in srgb, var(--warning) 28%, transparent);
    padding: 0.65rem 1.1rem;
    font-size: var(--text-body-min);
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

/* ---------- App Update Banner ---------- */
.app-update-banner {
    background-color: color-mix(in srgb, var(--brand-orange) 12%, var(--surface-bg));
    color: var(--brand-orange-700);
    border-bottom: 1px solid color-mix(in srgb, var(--brand-orange) 28%, transparent);
    padding: 0.65rem 1.1rem;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.app-update-banner__text {
    flex: 1 1 auto;
}

.app-update-banner__btn {
    appearance: none;
    border: 1px solid color-mix(in srgb, var(--brand-orange) 45%, transparent);
    background: color-mix(in srgb, var(--brand-orange) 10%, transparent);
    color: var(--brand-orange-700);
    border-radius: var(--radius-pill);
    font-size: 0.76rem;
    font-weight: 600;
    padding: 0.4rem 0.85rem;
    min-height: 36px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.app-update-banner__btn:hover,
.app-update-banner__btn:focus-visible {
    background: color-mix(in srgb, var(--brand-orange) 18%, transparent);
    border-color: color-mix(in srgb, var(--brand-orange) 65%, transparent);
    outline: none;
}

/* ---------- Install Banner ---------- */
.install-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    padding: 0.65rem 1.1rem;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
    background-color: color-mix(in srgb, var(--brand-orange) 12%, var(--surface-bg));
    color: var(--brand-orange-700);
    border-bottom: 1px solid color-mix(in srgb, var(--brand-orange) 28%, transparent);
}

.install-banner__text {
    flex: 1 1 12rem;
    min-width: 0;
}

.install-banner__btn {
    appearance: none;
    border: 1px solid color-mix(in srgb, var(--brand-orange) 45%, transparent);
    background: color-mix(in srgb, var(--brand-orange) 10%, transparent);
    color: var(--brand-orange-700);
    border-radius: var(--radius-pill);
    font-size: 0.76rem;
    font-weight: 600;
    padding: 0.4rem 0.85rem;
    min-height: 36px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.install-banner__btn:hover,
.install-banner__btn:focus-visible {
    background: color-mix(in srgb, var(--brand-orange) 18%, transparent);
    border-color: color-mix(in srgb, var(--brand-orange) 65%, transparent);
    outline: none;
}

.install-banner__dismiss {
    appearance: none;
    border: none;
    background: transparent;
    color: var(--brand-orange-700);
    opacity: 0.75;
    min-width: 36px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    flex-shrink: 0;
}

.install-banner__dismiss:hover,
.install-banner__dismiss:focus-visible {
    opacity: 1;
    outline: none;
}

/* ---------- Action Bar (sticky bottom) ---------- */
.action-bar {
    position: sticky;
    bottom: 0;
    z-index: 20;
    margin: 1.5rem -1.1rem 0;
    padding: 0.85rem 1.1rem calc(0.85rem + var(--safe-bottom));
    background: color-mix(in srgb, var(--surface-card) 88%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.75rem;
}

/* F12: disabled-CTA reason above the button row — one visible line, never rely on title alone */
.action-bar--with-reason {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
}

.action-bar__reason {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.35;
    text-align: center;
    color: var(--text-secondary);
}

.action-bar__buttons {
    display: flex;
    gap: 0.75rem;
}

.action-bar .btn {
    flex: 1;
    min-height: 54px;
}

.action-bar .btn--back {
    flex: 0 0 auto;
    min-width: 56px;
    padding-left: 1rem;
    padding-right: 1rem;
}

.action-bar .btn--primary {
    flex: 1;
}

@supports not (backdrop-filter: blur(12px)) {
    .action-bar { background: var(--surface-card); }
}

.action-bar--dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    margin: 0;
    z-index: 35;
    padding: 0.85rem 1.25rem calc(0.85rem + var(--safe-bottom));
    box-shadow: 0 -4px 16px rgba(42, 47, 54, 0.08);
}

.action-bar--back-only {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    margin: 0;
    z-index: 35;
    padding: 0.85rem 1.25rem calc(0.85rem + var(--safe-bottom));
    box-shadow: 0 -4px 16px rgba(42, 47, 54, 0.08);
}

.content:has(.action-bar--back-only) {
    padding-bottom: calc(7rem + var(--safe-bottom));
}

@media (min-width: 820px) {
    .action-bar--dock,
    .action-bar--back-only {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

@media (min-width: 1180px) {
    .action-bar--dock,
    .action-bar--back-only {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

.operator-info-page.setup-page--with-nav {
    padding-bottom: calc(6.5rem + var(--safe-bottom));
}

/* ---------- Selection Cards (Home / Plant Make) ---------- */
.choice-grid {
    display: grid;
    gap: 0.9rem;
    margin-top: 1.25rem;
}

.choice-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    text-align: left;
    padding: 1.15rem 1.15rem;
    background: var(--surface-card);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    color: var(--text-primary);
    cursor: pointer;
    transition: transform var(--dur) var(--ease),
                box-shadow var(--dur) var(--ease),
                border-color var(--dur) var(--ease);
}

.choice-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-orange);
}

.choice-card:active {
    transform: scale(0.985);
}

.choice-card__icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--brand-orange-soft);
    color: var(--brand-orange-700);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.choice-card__body { flex: 1; min-width: 0; }

.choice-card__title {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 700;
}

.choice-card__desc {
    margin: 0.15rem 0 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.choice-card__chevron {
    color: var(--text-secondary);
    flex-shrink: 0;
}

/* ---------- Setup page header (wizard steps) ---------- */
.setup-page-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.15rem;
    width: 100%;
    margin-bottom: 1.35rem;
}

.setup-page-header__intro {
    min-width: 0;
}

.setup-page-header__title {
    margin: 0;
    font-size: clamp(1.5rem, 2.2vw, 1.875rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--brand-charcoal);
    letter-spacing: -0.02em;
}

.setup-page-header__sub {
    margin: 0.35rem 0 0;
    font-size: 0.9375rem;
    line-height: 1.45;
    color: var(--text-secondary);
}

.setup-context-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    background: var(--brand-orange-soft);
    border: 1px solid color-mix(in srgb, var(--brand-orange) 14%, var(--border-color));
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    flex-shrink: 0;
}

.setup-context-card__icon {
    width: 56px;
    height: 56px;
    object-fit: contain;
    flex-shrink: 0;
}

.setup-context-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.setup-context-card__type {
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--brand-orange);
    letter-spacing: 0.01em;
}

.setup-context-card__name {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--brand-charcoal);
}

.setup-context-card__desc {
    font-size: 0.8125rem;
    line-height: 1.3;
    color: var(--text-secondary);
}

@media (min-width: 820px) {
    .setup-page-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 2rem;
        margin-bottom: 1.5rem;
    }

    .setup-context-card {
        width: min(100%, 22rem);
        padding: 0.9rem 1.1rem;
    }

    .setup-context-card__icon {
        width: 64px;
        height: 64px;
    }

    .setup-context-card__name {
        font-size: 1.0625rem;
    }
}

/* ---------- Operator / equipment details pages ---------- */
.operator-info-page {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.equipment-search__avatar {
    background: color-mix(in srgb, var(--brand-orange-soft) 70%, var(--surface-card));
    color: var(--brand-orange-700);
}

.equipment-search__avatar .icon {
    line-height: 0;
}

.operator-select-panel,
.operator-info-panel {
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1.15rem 1.15rem 1.2rem;
}

.operator-select-panel__label {
    display: block;
    margin: 0 0 0.75rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--brand-charcoal);
}

.operator-select-panel__required {
    color: var(--semantic-fail);
}

.operator-search {
    position: relative;
}

.operator-search.is-open {
    z-index: 27;
}

.operator-select-panel.is-dropdown-open,
.schedule-form__field--dropdown.is-dropdown-open {
    position: relative;
    z-index: 26;
    overflow: visible;
}

/* Let dropdown/popup panels escape cards, grids, scroll regions, and stacked sections */
.card:has(.is-dropdown-open),
.card:has(.is-popover-open),
.glass-panel:has(.is-dropdown-open),
.glass-panel:has(.is-popover-open),
.hub-section:has(.is-dropdown-open),
.hub-section:has(.is-popover-open),
.schedule-form__grid:has(.is-dropdown-open),
.schedule-form__row:has(.is-dropdown-open),
.schedule-page:has(.is-dropdown-open),
.hub-page:has(.is-dropdown-open),
.setup-page:has(.is-dropdown-open),
.setup-form-card:has(.is-dropdown-open),
.setup-form-card .card-body:has(.is-dropdown-open),
.content:has(.is-dropdown-open),
.content:has(.is-popover-open),
.content--reports:has(.is-dropdown-open),
.content--reports:has(.is-popover-open),
.glass-shell__content:has(.is-dropdown-open),
.glass-shell__content:has(.is-popover-open),
.reports-slicer-bar:has(.is-dropdown-open),
.reports-grid:has(.is-dropdown-open),
.reports-grid__item:has(.is-dropdown-open),
.schedule-calendar-card__body:has(.is-dropdown-open),
.schedule-calendar-card__body:has(.is-popover-open),
.schedule-list__items:has(.is-dropdown-open),
.schedule-list__item:has(.is-dropdown-open),
.schedule-event-card:has(.is-dropdown-open),
.schedule-calendar__week-grid:has(.is-dropdown-open),
.schedule-calendar__week-grid:has(.is-popover-open),
.schedule-calendar__month-grid:has(.is-dropdown-open),
.schedule-calendar__month-grid:has(.is-popover-open),
.schedule-calendar__day-column:has(.is-dropdown-open),
.schedule-calendar__day-column:has(.is-popover-open),
.schedule-calendar__month-cell-wrap:has(.is-dropdown-open),
.schedule-calendar__month-cell-wrap:has(.is-popover-open),
.reports-page:has(.is-dropdown-open),
.reports-section:has(.is-dropdown-open),
.reports-section__body:has(.is-dropdown-open),
.reports-toolbar:has(.is-dropdown-open),
.reports-page__sticky:has(.is-dropdown-open),
.page-toolbar:has(.is-dropdown-open),
.page-toolbar.is-dropdown-open,
.page-toolbar__actions:has(.is-dropdown-open),
.page-toolbar__filter-menu:has(.is-dropdown-open),
.assessments-list-card:has(.is-dropdown-open),
.employees-list-card:has(.is-dropdown-open),
.employees-table:has(.is-dropdown-open),
.admin-users__list:has(.is-dropdown-open),
.admin-users-table:has(.is-dropdown-open),
.admin-users-table__row:has(.is-dropdown-open),
.admin-users-table__cell:has(.is-dropdown-open),
.templates-admin__list:has(.is-dropdown-open),
.template-row:has(.is-dropdown-open),
.template-row__actions:has(.is-dropdown-open),
.admin-statuses__sections:has(.is-dropdown-open),
.admin-statuses__section:has(.is-dropdown-open),
.admin-statuses__rows:has(.is-dropdown-open),
.admin-statuses__row:has(.is-dropdown-open),
.plant-categories:has(.is-dropdown-open),
.plant-categories__stack:has(.is-dropdown-open),
.plant-category-card:has(.is-dropdown-open),
.plant-category-card__header:has(.is-dropdown-open),
.plant-category-card__header-actions:has(.is-dropdown-open),
.plant-category-card__expanded:has(.is-dropdown-open),
.plant-category-card__body:has(.is-dropdown-open),
.plant-category-card__column:has(.is-dropdown-open),
.plant-category-card__rows:has(.is-dropdown-open),
.plant-category-card__assign:has(.is-dropdown-open),
.plant-category-card__assign-row:has(.is-dropdown-open),
.plant-category-card__template-card:has(.is-dropdown-open),
.plant-category-card__template-actions:has(.is-dropdown-open),
.template-builder:has(.is-dropdown-open),
.template-builder__layout:has(.is-dropdown-open),
.template-builder__workspace:has(.is-dropdown-open),
.template-builder__sidebar:has(.is-dropdown-open),
.template-builder__sidebar-scroll:has(.is-dropdown-open),
.template-builder__properties:has(.is-dropdown-open),
.template-builder__properties-scroll:has(.is-dropdown-open),
.template-builder__elements:has(.is-dropdown-open),
.template-builder__element-list:has(.is-dropdown-open),
.template-builder__element-item:has(.is-dropdown-open),
.template-builder__element-row-wrap:has(.is-dropdown-open),
.template-builder__element-fields:has(.is-dropdown-open),
.employee-profile-header:has(.is-dropdown-open),
.employee-profile-header__actions:has(.is-dropdown-open),
.operator-info-page:has(.is-dropdown-open),
.operator-select-panel:has(.is-dropdown-open) {
    overflow: visible;
}

.schedule-form.glass-panel:has(.is-dropdown-open),
.schedule-bulk:has(.is-dropdown-open),
.schedule-calendar-card.glass-panel:has(.is-dropdown-open),
.schedule-calendar-card.glass-panel:has(.is-popover-open),
.admin-users__list:has(.is-dropdown-open),
.admin-statuses__section:has(.is-dropdown-open),
.plant-category-card:has(.is-dropdown-open),
.template-builder__element-item:has(.is-dropdown-open),
.page-toolbar.is-dropdown-open,
.reports-section:has(.is-dropdown-open),
.employee-profile-header:has(.is-dropdown-open) {
    position: relative;
    z-index: 30;
}

.schedule-event-card__menu.is-dropdown-open,
.admin-users-table__menu.is-dropdown-open,
.template-builder__more-menu.is-dropdown-open,
.template-builder__element-menu.is-dropdown-open,
.plant-make-dropdown.is-dropdown-open,
.report-slicer.is-dropdown-open,
.reports-toolbar__menu.is-dropdown-open,
.reports-section__menu.is-dropdown-open,
.employee-profile-header__menu.is-dropdown-open,
.page-toolbar__filter-menu:has(.is-dropdown-open) {
    position: relative;
    z-index: 50;
}

.schedule-event-card:has(.is-dropdown-open),
.admin-users-table__row:has(.is-dropdown-open),
.admin-statuses__row:has(.is-dropdown-open),
.plant-category-card__template-card:has(.is-dropdown-open),
.template-row:has(.is-dropdown-open) {
    position: relative;
    z-index: 35;
}

.schedule-cal-event.is-popover-open,
.schedule-cal-event.is-dropdown-open {
    position: relative;
    z-index: 45;
}

.operator-search__icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    line-height: 0;
    pointer-events: none;
    z-index: 1;
}

.operator-search__input {
    width: 100%;
    min-height: 48px;
    padding: 0.75rem 2.75rem 0.75rem 2.75rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-pill);
    background: var(--surface-card);
    color: var(--text-primary);
    font-size: 0.9375rem;
    box-sizing: border-box;
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.operator-search__input::placeholder {
    color: color-mix(in srgb, var(--text-secondary) 72%, transparent);
}

.operator-search__input:focus {
    outline: none;
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 0.22rem rgba(255, 106, 0, 0.16);
}

.operator-search.is-open .operator-search__input {
    border-color: var(--brand-orange);
    border-bottom-left-radius: var(--radius-sm);
    border-bottom-right-radius: var(--radius-sm);
}

.operator-search__toggle {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    display: grid;
    place-items: center;
    cursor: pointer;
    border-radius: 50%;
}

.operator-search__toggle:hover,
.operator-search__toggle:focus-visible {
    color: var(--brand-charcoal);
    outline: none;
    background: var(--surface-muted);
}

.operator-search__results {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% - 1px);
    z-index: 25;
    list-style: none;
    margin: 0;
    padding: 0.35rem;
    max-height: calc((3.75rem * 4) + 0.7rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--brand-orange) 45%, var(--border-color)) transparent;
    background: var(--surface-card);
    border: 1.5px solid var(--brand-orange);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-md);
}

.operator-search__results::-webkit-scrollbar {
    width: 6px;
}

.operator-search__results::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--brand-orange) 45%, var(--border-color));
    border-radius: var(--radius-pill);
}

.operator-search__option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    min-height: 3.75rem;
    padding: 0.65rem 0.75rem;
    box-sizing: border-box;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: inherit;
    transition: background-color var(--dur) var(--ease);
}

.operator-search__option:hover,
.operator-search__option:focus-visible,
.operator-search__option.is-selected {
    outline: none;
    background: var(--brand-orange-soft);
}

.operator-search__avatar,
.operator-selected-card__avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--brand-orange-soft);
    color: var(--brand-orange-700);
    font-size: 0.8125rem;
    font-weight: 800;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.operator-search__option-body {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.operator-search__option-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--brand-charcoal);
}

.operator-search__option-meta {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.operator-search__empty {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% - 1px);
    z-index: 25;
    margin: 0;
    padding: 0.85rem 1rem;
    background: var(--surface-card);
    border: 1.5px solid var(--brand-orange);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.operator-search-backdrop {
    position: fixed;
    inset: 0;
    z-index: 24;
    background: transparent;
}

.operator-selected-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border: 1.5px solid color-mix(in srgb, var(--brand-orange) 35%, var(--border-color));
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--brand-orange-soft) 55%, var(--surface-card));
}

.operator-selected-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.operator-selected-card__name {
    font-size: 0.9375rem;
    font-weight: 800;
    color: var(--brand-charcoal);
}

.operator-selected-card__meta {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.operator-selected-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.65rem;
    border: 1.5px solid var(--brand-orange);
    border-radius: var(--radius-pill);
    background: var(--surface-card);
    color: var(--brand-orange);
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
    line-height: 1;
}

.operator-selected-card__badge .icon {
    line-height: 0;
}

.operator-info-panel__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem 1rem;
    margin-bottom: 1rem;
}

.operator-info-panel__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--brand-charcoal);
}

.operator-info-panel__note {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.operator-info-panel__note .icon {
    line-height: 0;
    color: var(--text-secondary);
}

.operator-info-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: 1fr;
}

.operator-info-field {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--surface-bg);
}

.operator-info-field__icon {
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-sm);
    background: var(--brand-orange-soft);
    color: var(--brand-orange-700);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.operator-info-field__icon--text {
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.operator-info-field__icon .icon {
    line-height: 0;
}

.operator-info-field__body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.operator-info-field__label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.2;
}

.operator-info-field__value {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--brand-charcoal);
    line-height: 1.3;
    word-break: break-word;
}

@media (min-width: 820px) {
    .operator-select-panel,
    .operator-info-panel {
        padding: 1.25rem 1.35rem 1.3rem;
    }

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

/* ---------- Page Intro ---------- */
.page-intro {
    margin-bottom: 0.5rem;
}

.page-intro__title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    color: var(--brand-charcoal);
}

.page-intro__sub {
    color: var(--text-secondary);
    margin: 0.25rem 0 0;
    font-size: 0.92rem;
}

/* ---------- Setup Wizard ---------- */
.setup-page {
    max-width: 100%;
    overflow-x: hidden;
}

.setup-page.is-dropdown-open {
    overflow: visible;
}

.setup-page--with-nav {
    padding-bottom: calc(6rem + var(--safe-bottom));
}

.setup-loading {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-top: 1.25rem;
}

.setup-form-card {
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-top: 1rem;
}

.setup-form-card .card-body {
    padding: 1.15rem 1.15rem 1.2rem;
}

.setup-form-card .form-label {
    color: var(--text-secondary);
}

.setup-form-card .form-control:focus,
.setup-form-card .form-select:focus {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 0.22rem rgba(255, 106, 0, 0.18);
}

.setup-page .alert {
    margin-top: 1rem;
}

.setup-page .alert code {
    font-size: 0.82em;
    word-break: break-word;
    color: inherit;
    opacity: 0.9;
}

.choice-card:focus-visible {
    outline: 2px solid var(--brand-orange);
    outline-offset: 2px;
    border-color: var(--brand-orange);
}

.choice-card:hover .choice-card__chevron,
.choice-card:focus-visible .choice-card__chevron {
    color: var(--brand-orange);
}

/* ---------- Home (New Assessment) ---------- */
.home-page {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    min-height: 100%;
}

.home-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.home-hero__copy {
    width: 100%;
    text-align: left;
}

.home-hero__eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand-orange);
}

.home-hero__title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.22;
    color: var(--brand-charcoal);
    letter-spacing: -0.025em;
}

.home-hero__sub {
    margin: 0.5rem 0 0;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.home-hero__logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    flex-shrink: 0;
}

.home-hero__logo--loading {
    opacity: 0.55;
}

.home-choice-grid {
    display: grid;
    gap: 1rem;
    flex: 0 0 auto;
    margin-bottom: 1.5rem;
}

.home-help-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem 1.25rem;
    margin-top: auto;
    padding: 0.9rem 1.15rem;
    background: var(--surface-muted);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.home-help-bar__icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--brand-charcoal);
    color: #fff;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.home-help-bar__text {
    flex: 1;
    min-width: min(100%, 14rem);
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--text-secondary);
}

.home-help-bar__text strong {
    display: block;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.9375rem;
    margin-bottom: 0.1rem;
}

.home-help-bar__link {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--brand-orange);
    white-space: nowrap;
}

.home-help-bar__link--placeholder {
    cursor: default;
    opacity: 0.85;
}

@media (min-width: 820px) {
    .home-hero {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .home-hero__copy {
        flex: 1;
        min-width: 0;
    }

    .home-hero__title {
        font-size: clamp(1.75rem, 2.1vw, 2.125rem);
    }

    .home-hero__sub {
        font-size: 1rem;
        max-width: 26rem;
    }

    .home-hero__logo {
        width: 104px;
        height: 104px;
        margin-top: 0.25rem;
    }

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

    .home-help-bar {
        flex-wrap: nowrap;
        margin-top: auto;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}

@media (min-width: 1180px) {
    .home-hero__title {
        font-size: 2.125rem;
        white-space: nowrap;
    }

    .home-hero__logo {
        width: 112px;
        height: 112px;
    }

    .home-choice-grid {
        gap: 1.5rem;
    }
}

