/* ================================================================
   FindPatient wizard — Preferences/Schedule step styles (sched- prefix)
   Uses .orbit-appts token variables from orbit-tokens.css.
   Extracted verbatim from FindPatient.razor inline <style> block;
   visuals are unchanged.
   ================================================================ */

/* ── Patient header strip (ph- prefix) ─────────────────────── */
.ph-patient-strip {
    margin-bottom: 16px;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Name block: avatar circle + name/MRN column */
.ph-name-block {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ph-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-01, #ede9ff);
    color: rgb(var(--primary-rgb, 103 58 183));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .5px;
}

.ph-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--fg-1, #333335);
}

/* Alert badges row (header right side) */
.ph-alerts {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

/* Override detail grid to auto-fit so 6 cells flow gracefully */
.orbit-appts .ph-detail-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

/* Icon accent inside detail cells */
.ph-icon-primary {
    color: rgb(var(--primary-rgb, 103 58 183));
    margin-right: 3px;
    vertical-align: -1px;
}

/* No-show count highlight */
.ph-noshows-flag {
    color: rgb(var(--danger-rgb, 220 38 38));
    font-weight: 700;
}

.sched-prefs {
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    margin-top: 1.25rem;
}

/* ── Layout ──────────────────────────────────────────────────── */
.sched-grid-main-aside {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    align-items: start;
}

.sched-main-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (max-width: 960px) {
    .sched-grid-main-aside {
        grid-template-columns: 1fr;
    }
}

/* ── Base card ───────────────────────────────────────────────── */
.sched-step-card {
    background: var(--bg-surface, #fff);
    border: 1px solid var(--border, #f3f3f3);
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0 rgba(10, 10, 10, 0.04);
    padding: 1.375rem 1.5rem 1.25rem;
    position: relative;
    padding-top: 22px;
}

.sched-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 14px;
    margin: 0 0 16px;
    border-bottom: 1px solid var(--border, #f3f3f3);
}

.sched-card-header h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    color: var(--fg-1, #333335);
}

.sched-sub {
    font-size: 11px;
    color: var(--fg-3, #8c9097);
    margin-top: 2px;
    font-weight: 400;
}

/* ── Step pill ───────────────────────────────────────────────── */
.sched-step-pill {
    position: absolute;
    top: -12px;
    left: 22px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgb(var(--primary-rgb, 132 90 223));
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb, 132 90 223), 0.35);
    border: 3px solid #fff;
}

.sched-step-pill.sched-pill-danger {
    background: rgb(var(--danger-rgb, 220 53 69));
    box-shadow: 0 4px 12px rgba(var(--danger-rgb, 220 53 69), 0.35);
}

/* ── Reason textarea ─────────────────────────────────────────── */
.sched-reason-free-text {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border, #f3f3f3);
}

/* The compact non-Sick card has no symptom checklist to separate from its textarea. */
.sched-additional-details-free-text {
    margin-top: 0;
}

.sched-reason-free-text-label {
    display: block;
    margin-bottom: 8px;
}

.sched-input-shell .sched-textarea {
    font-family: inherit;
    font-size: 13px;
    width: 100%;
    padding: 0.75rem 0.9rem;
    background: #fff;
    color: var(--fg-1, #333335);
    border: 1px solid var(--border-input, #e9edf6);
    border-radius: 0.35rem;
    outline: none;
    resize: vertical;
    min-height: 60px;
    box-sizing: border-box;
}

.sched-input-shell .sched-textarea:focus {
    border-color: rgb(var(--primary-rgb, 132 90 223));
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 132 90 223), 0.10);
}

.sched-suggest-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-top: 10px;
}

.sched-suggest-lbl {
    font-size: 11px;
    color: var(--fg-3, #8c9097);
    margin-right: 4px;
}

.sched-chip-btn {
    font-family: inherit;
    font-size: 11px;
    padding: 4px 10px;
    background: rgba(var(--primary-rgb, 132 90 223), 0.05);
    color: rgb(var(--primary-rgb, 132 90 223));
    border: 1px dashed rgba(var(--primary-rgb, 132 90 223), 0.3);
    border-radius: 3.125rem;
    cursor: pointer;
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.sched-chip-btn:hover {
    background: rgba(var(--primary-rgb, 132 90 223), 0.10);
    border-style: solid;
}

/* ── Visit tile grid ──────────────────────────────────────────── */
.sched-visit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

@media (max-width: 700px) {
    .sched-visit-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.sched-visit-tile {
    padding: 14px 14px 16px;
    border: 1px solid var(--border-input, #e9edf6);
    background: #fff;
    border-radius: 0.35rem;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.sched-visit-tile i {
    font-size: 22px;
    margin-bottom: 4px;
}

.sched-visit-tile:hover {
    border-color: rgba(var(--primary-rgb, 132 90 223), 0.4);
    transform: translateY(-1px);
}

.sched-visit-tile.sched-selected {
    border-color: rgb(var(--primary-rgb, 132 90 223));
    background: rgba(var(--primary-rgb, 132 90 223), 0.05);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 132 90 223), 0.10);
}

.sched-vt-label {
    font-weight: 600;
    font-size: 13px;
    color: var(--fg-1, #333335);
}

.sched-vt-desc {
    font-size: 11px;
    color: var(--fg-3, #8c9097);
    line-height: 1.4;
}

/* tone — icon colour only */
.sched-tone-primary i {
    color: rgb(var(--primary-rgb, 132 90 223));
}

.sched-tone-secondary i {
    color: rgb(var(--secondary-rgb, 35 183 229));
}

.sched-tone-success i {
    color: rgb(var(--success-rgb, 38 191 148));
}

.sched-tone-info i {
    color: rgb(var(--info-rgb, 66 153 225));
}

.sched-tone-warning i {
    color: #b56a00;
}

.sched-tone-danger i {
    color: rgb(var(--danger-rgb, 220 53 69));
}

.sched-tone-orange i {
    color: #d97706;
}

/* ── ER screener card ─────────────────────────────────────────── */
.sched-screener.sched-critical {
    border-color: rgba(var(--danger-rgb, 220 53 69), 0.4);
    box-shadow: 0 0 0 4px rgba(var(--danger-rgb, 220 53 69), 0.06);
}

.sched-req {
    display: inline-block;
    font-size: 9px;
    letter-spacing: 0.1em;
    background: rgba(var(--danger-rgb, 220 53 69), 0.10);
    color: rgb(var(--danger-rgb, 220 53 69));
    padding: 2px 6px;
    border-radius: 0.15rem;
    margin-left: 6px;
    vertical-align: middle;
    text-transform: uppercase;
    font-weight: 700;
}

.sched-er-groups {
    display: grid;
    gap: 12px;
}

.sched-er-group {
    border: 1px solid var(--border-input, #e9edf6);
    border-radius: 0.35rem;
    background: #fff;
    overflow: hidden;
}

.sched-er-group-head {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px 10px;
    margin: 0;
    border: none;
    border-bottom: 1px solid var(--border, #f3f3f3);
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: background 150ms cubic-bezier(0.4, 0, 0.2, 1),
        border-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.sched-er-group-head:hover {
    background: rgba(15, 23, 42, 0.02);
}

.sched-er-group-head:focus {
    outline: none;
    background: rgba(var(--warning-rgb, 245 184 73), 0.08);
    box-shadow: inset 0 0 0 2px rgba(var(--primary-rgb, 132 90 223), 0.34);
}

.sched-er-group-head:focus-visible {
    box-shadow: inset 0 0 0 2px rgba(var(--primary-rgb, 132 90 223), 0.4);
}

.sched-er-group-label {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--fg-1, #333335);
}

.sched-er-group-count {
    font-size: 11px;
    color: var(--fg-3, #8c9097);
    white-space: nowrap;
}

.sched-er-group-toggle {
    font-size: 11px;
    color: var(--fg-3, #8c9097);
    white-space: nowrap;
}

.sched-er-group-selected-pill {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(var(--warning-rgb, 245 184 73), 0.16);
    color: #8a5e1c;
    white-space: nowrap;
}

.sched-er-group.sched-er-group-has-selected {
    border-color: rgba(var(--warning-rgb, 245 184 73), 0.4);
    box-shadow: 0 0 0 1px rgba(var(--warning-rgb, 245 184 73), 0.08);
}

.sched-er-group.sched-er-group-has-selected .sched-er-group-head {
    background: rgba(var(--warning-rgb, 245 184 73), 0.08);
    border-bottom-color: rgba(var(--warning-rgb, 245 184 73), 0.22);
}

.sched-er-group.sched-er-group-has-selected .sched-er-group-count {
    color: #8a5e1c;
}

.sched-er-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px 14px 14px;
}

@media (max-width: 600px) {
    .sched-er-grid {
        grid-template-columns: 1fr;
    }

    .sched-er-group-head {
        flex-direction: column;
        align-items: stretch;
    }
}

.sched-er-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 9px 11px;
    border: 1px solid var(--border-input, #e9edf6);
    border-radius: 0.35rem;
    cursor: pointer;
    font-size: 12px;
    line-height: 1.35;
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    color: var(--fg-1, #333335);
}

.sched-er-item input[type="checkbox"] {
    display: none;
}

.sched-check-box {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid var(--border-input, #e9edf6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sched-check-box i {
    color: transparent;
    font-size: 12px;
}

.sched-er-item:hover {
    border-color: rgba(var(--danger-rgb, 220 53 69), 0.4);
    background: rgba(var(--danger-rgb, 220 53 69), 0.03);
}

.sched-er-item.sched-er-checked {
    border-color: rgb(var(--danger-rgb, 220 53 69));
    background: rgba(var(--danger-rgb, 220 53 69), 0.07);
    box-shadow: inset 0 0 0 1px rgba(var(--danger-rgb, 220 53 69), 0.12);
    color: #7a2a1a;
}

.sched-er-item.sched-er-checked .sched-check-box {
    background: rgb(var(--danger-rgb, 220 53 69));
    border-color: rgb(var(--danger-rgb, 220 53 69));
}

.sched-er-item.sched-er-checked .sched-check-box i {
    color: #fff;
}

.sched-er-alert {
    margin-top: 14px;
    background: linear-gradient(135deg, rgba(var(--danger-rgb, 220 53 69), 0.08), rgba(var(--danger-rgb, 220 53 69), 0.04));
    border: 1px solid rgba(var(--danger-rgb, 220 53 69), 0.35);
    border-radius: 0.35rem;
    padding: 14px 16px;
    font-size: 13px;
    color: #7a2a1a;
}

.sched-er-alert-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: rgb(var(--danger-rgb, 220 53 69));
    margin-bottom: 6px;
    font-size: 14px;
}

.sched-er-alert p {
    margin: 0 0 8px;
    line-height: 1.5;
}

.sched-er-alert em {
    background: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-style: normal;
}

.sched-er-alert-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.sched-muted {
    font-size: 12px;
    color: var(--fg-3, #8c9097);
}

/* ── Banners ──────────────────────────────────────────────────── */
.sched-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 0.35rem;
    font-size: 12.5px;
    line-height: 1.5;
}

.sched-banner i {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

.sched-banner strong {
    margin-right: 6px;
}

.sched-banner-success {
    background: rgba(var(--success-rgb, 38 191 148), 0.08);
    border: 1px solid rgba(var(--success-rgb, 38 191 148), 0.3);
    color: #1c7a5e;
}

.sched-banner-info {
    background: rgba(var(--primary-rgb, 132 90 223), 0.06);
    border: 1px solid rgba(var(--primary-rgb, 132 90 223), 0.2);
    color: var(--fg-2, #536485);
}

/* ── When & where form ───────────────────────────────────────── */
.sched-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sched-field label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fg-3, #8c9097);
}

.sched-seg-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sched-seg {
    font-family: inherit;
    font-size: 12px;
    padding: 6px 12px;
    background: #fff;
    color: var(--fg-2, #536485);
    border: 1px solid var(--border-input, #e9edf6);
    border-radius: 0.35rem;
    cursor: pointer;
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.sched-seg:hover {
    border-color: rgba(var(--primary-rgb, 132 90 223), 0.4);
    color: var(--fg-1, #333335);
}

.sched-seg.sched-seg-active {
    background: rgb(var(--primary-rgb, 132 90 223));
    color: #fff;
    border-color: rgb(var(--primary-rgb, 132 90 223));
}

/* ── Aside ────────────────────────────────────────────────────── */
.sched-aside {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 16px;
}

.sched-validator {
    padding: 18px;
}

.sched-check-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.sched-check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 0.15rem;
    font-size: 12px;
    color: var(--fg-2, #536485);
    background: rgba(var(--danger-rgb, 220 53 69), 0.04);
}

.sched-check-row.sched-met {
    background: rgba(38, 191, 148, 0.07);
    color: #1c7a5e;
}

.sched-check-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgb(var(--danger-rgb, 220 53 69));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

.sched-check-row.sched-met .sched-check-icon {
    background: rgb(var(--success-rgb, 38 191 148));
}

.sched-aside-summary {
    background: var(--bg-surface-2, #f7f8f9);
    border-radius: 0.35rem;
    padding: 12px 14px;
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sched-as-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    gap: 12px;
}

.sched-as-row span:first-child {
    color: var(--fg-3, #8c9097);
    font-size: 11px;
}

.sched-as-row strong {
    color: var(--fg-1, #333335);
    font-weight: 500;
    max-width: 60%;
    text-align: right;
}

/* ── Aside buttons ───────────────────────────────────────────── */
.sched-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    padding: 0.7rem 1.25rem;
    background: rgb(var(--primary-rgb, 132 90 223));
    color: #fff;
    border: none;
    border-radius: 0.35rem;
    cursor: pointer;
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.sched-btn-primary:hover:not(:disabled) {
    background: rgba(var(--primary-rgb, 132 90 223), 0.88);
    transform: translateY(-1px);
}

.sched-btn-primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.sched-btn-full {
    width: 100%;
}

.sched-btn-ghost {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: transparent;
    color: var(--fg-2, #536485);
    border: 1px solid var(--border-input, #e9edf6);
    border-radius: 0.35rem;
    cursor: pointer;
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.sched-btn-ghost:hover {
    border-color: var(--primary, rgba(132, 90, 223, 1));
    color: var(--fg-1, #333335);
}

.sched-mt-2 {
    margin-top: 8px;
}

.sched-muted-tiny {
    font-size: 11px;
    color: var(--fg-3, #8c9097);
}

/* ── ER action buttons ───────────────────────────────────────── */
.sched-btn-sm {
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 0.35rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 150ms;
}

.sched-btn-danger-soft {
    background: rgba(var(--danger-rgb, 220 53 69), 0.10);
    color: rgb(var(--danger-rgb, 220 53 69));
    border: 1px solid rgba(var(--danger-rgb, 220 53 69), 0.3);
}

.sched-btn-soft-danger {
    background: rgba(var(--danger-rgb, 220 53 69), 0.15);
    color: rgb(var(--danger-rgb, 220 53 69));
    border: 1px solid rgba(var(--danger-rgb, 220 53 69), 0.4);
}

.sched-btn-soft-danger:hover {
    background: rgb(var(--danger-rgb, 220 53 69));
    color: #fff;
}

.sched-btn-warning-soft {
    background: rgba(var(--warning-rgb, 245 184 73), 0.16);
    color: #8a5e1c;
    border: 1px solid rgba(var(--warning-rgb, 245 184 73), 0.34);
}

.sched-btn-warning-soft:hover:not(:disabled) {
    background: rgba(var(--warning-rgb, 245 184 73), 0.26);
    border-color: rgba(var(--warning-rgb, 245 184 73), 0.45);
    color: #6f4a0c;
}

.sched-btn-warning-soft:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* ================================================================
   FindPatient — Results step styles (res- prefix)
   Uses .orbit-appts token variables from orbit-tokens.css
   ================================================================ */

.res-results {
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ── Results bar ──────────────────────────────────────────────── */
.res-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid var(--border, #f3f3f3);
    border-radius: 0.5rem;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.res-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    flex-wrap: wrap;
}

/* ── Banner ───────────────────────────────────────────────────── */
.res-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(38, 191, 148, 0.08);
    border: 1px solid rgba(38, 191, 148, 0.3);
    border-radius: 0.5rem;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--fg-1, #333335);
    line-height: 1.5;
}

.res-banner i {
    font-size: 16px;
    color: rgb(var(--success-rgb, 38 191 148));
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── Slot stack ───────────────────────────────────────────────── */
.res-slot-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.res-slot-group {
    background: #fff;
    border: 1px solid var(--border, #f3f3f3);
    border-radius: 0.5rem;
    padding: 16px 20px;
    box-shadow: 0 0.125rem 0 rgba(10, 10, 10, 0.04);
}

.res-sg-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.res-avatar {
    width: 48px;
    height: 48px;
    border-radius: 0.35rem;
    background: rgba(var(--primary-rgb, 132 90 223), 0.10);
    color: rgb(var(--primary-rgb, 132 90 223));
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.res-prov-name {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.res-prov-date {
    font-size: 12px;
    color: var(--fg-3, #8c9097);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.res-specialty {
    margin-left: auto;
    text-align: right;
    font-size: 12px;
    color: var(--fg-3, #8c9097);
}

/* ── Slot buttons ─────────────────────────────────────────────── */
.res-slot-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.res-slot {
    position: relative;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid var(--border-input, #e9edf6);
    border-radius: 0.35rem;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    transition: border-color 0.15s, transform 0.15s;
    min-width: 118px;
    min-height: 84px;
}

.res-slot-lines {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
}

.res-slot-time {
    display: block;
    font-family: Roboto Mono, Courier New, monospace;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.15;
}

.res-slot-modality {
    display: block;
    font-size: 0.72rem;
    line-height: 1.15;
    color: var(--fg-2, #5c6370);
}

.res-slot:hover {
    border-color: rgb(var(--primary-rgb, 132 90 223));
    transform: translateY(-1px);
}

.res-slot.res-selected {
    background: rgb(var(--primary-rgb, 132 90 223));
    color: #fff;
    border-color: rgb(var(--primary-rgb, 132 90 223));
    box-shadow: 0 4px 12px rgba(var(--primary-rgb, 132 90 223), 0.3);
}

.res-slot.res-selected .res-slot-modality {
    color: rgba(255, 255, 255, 0.85);
}

/* ── Badges ───────────────────────────────────────────────────── */
.res-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
}

.res-badge-primary {
    background: rgba(var(--primary-rgb, 132 90 223), 0.12);
    color: rgb(var(--primary-rgb, 132 90 223));
}

.res-badge-success {
    background: rgba(38, 191, 148, 0.12);
    color: rgb(var(--success-rgb, 38 191 148));
}

.res-badge-warning {
    background: rgba(245, 184, 73, 0.14);
    color: #8a5e1c;
}

.res-muted {
    color: var(--fg-3, #8c9097);
}

/* ── Floating confirm ─────────────────────────────────────────── */
.res-floating-confirm {
    position: sticky;
    bottom: 16px;
    margin-top: 18px;
    background: #1A1C1E;
    color: #fff;
    border-radius: 0.5rem;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
    flex-wrap: wrap;
    z-index: 10;
}

.res-fc-info {
    flex: 1;
    min-width: 0;
}

.res-fc-title {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
    font-weight: 600;
}

.res-fc-line {
    font-size: 14px;
}

.res-fc-muted {
    color: rgba(255, 255, 255, 0.6);
}

.res-fc-actions {
    display: flex;
    gap: 8px;
}

/* ── Booked: success hero ─────────────────────────────────────── */
.res-success-hero {
    background: linear-gradient(135deg, rgba(38, 191, 148, 0.10), rgba(35, 183, 229, 0.10));
    border: 1px solid rgba(38, 191, 148, 0.25);
    border-radius: 0.5rem;
    padding: 22px 26px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.res-sh-burst {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgb(var(--success-rgb, 38 191 148));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(38, 191, 148, 0.35);
}

.res-sh-info {
    flex: 1;
    min-width: 0;
}

.res-sh-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgb(var(--success-rgb, 38 191 148));
    margin-bottom: 4px;
}

.res-sh-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.res-sh-sub {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--fg-2, #536485);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.res-sh-sep {
    color: var(--fg-3, #8c9097);
    margin: 0 2px;
}

/* ── 2-col grid ───────────────────────────────────────────────── */
.res-grid-2-1 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    align-items: start;
}

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

/* ── Cards ────────────────────────────────────────────────────── */
.res-card {
    background: #fff;
    border: 1px solid var(--border, #f3f3f3);
    border-radius: 0.5rem;
    padding: 18px 20px;
    box-shadow: 0 0.125rem 0 rgba(10, 10, 10, 0.04);
}

.res-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border, #f3f3f3);
    flex-wrap: wrap;
    gap: 8px;
}

.res-card-header h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--fg-1, #333335);
}

.res-card-sub {
    font-size: 11px;
    color: var(--fg-3, #8c9097);
    margin-top: 2px;
}

/* ── Checklist ────────────────────────────────────────────────── */
.res-checklist {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.res-check-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--border-input, #e9edf6);
    border-radius: 0.35rem;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.res-check-item input {
    display: none;
}

.res-ci-box {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid var(--border-input, #e9edf6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
    transition: all 0.15s;
}

.res-ci-box i {
    color: transparent;
    font-size: 14px;
}

.res-check-item:hover {
    border-color: rgba(var(--primary-rgb, 132 90 223), 0.4);
}

.res-check-item.res-done {
    background: rgba(38, 191, 148, 0.04);
    border-color: rgba(38, 191, 148, 0.3);
}

.res-check-item.res-done .res-ci-box {
    background: rgb(var(--success-rgb, 38 191 148));
    border-color: rgb(var(--success-rgb, 38 191 148));
}

.res-check-item.res-done .res-ci-box i {
    color: #fff;
}

.res-check-item.res-done .res-ci-title {
    text-decoration: line-through;
    color: var(--fg-3, #8c9097);
}

.res-ci-text {
    flex: 1;
    min-width: 0;
}

.res-ci-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.res-ci-detail {
    font-size: 12px;
    color: var(--fg-2, #536485);
    line-height: 1.5;
}

.res-ci-action {
    margin-left: auto;
    flex-shrink: 0;
    align-self: center;
}

.res-checklist-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border, #f3f3f3);
}

/* ── Recap card ───────────────────────────────────────────────── */
.res-recap-card {
    padding: 18px;
}

.res-recap-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border, #f3f3f3);
    font-size: 12.5px;
}

.res-recap-row:last-of-type {
    border-bottom: 0;
}

.res-recap-row span {
    color: var(--fg-3, #8c9097);
}

.res-recap-row strong {
    color: var(--fg-1, #333335);
    font-weight: 600;
    max-width: 65%;
    text-align: right;
}

.res-recap-foot {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--fg-3, #8c9097);
    margin-top: 12px;
}

/* ── Booking detail grid (confirmation card) ─────────────────── */
.res-booking-details {
    margin-bottom: 16px;
}

.res-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 24px;
}

@media (max-width: 700px) {
    .res-detail-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.res-detail-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--fg-3, #8c9097);
    margin-bottom: 4px;
}

.res-detail-value {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--fg-1, #333335);
}

.res-detail-sub {
    font-size: 12px;
    color: var(--fg-2, #536485);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.res-detail-span2 {
    grid-column: span 2;
}

.res-mono {
    font-family: Roboto Mono, Courier New, monospace;
}

/* ── Buttons ──────────────────────────────────────────────────── */
.res-btn-ghost {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--border-input, #e9edf6);
    border-radius: 0.35rem;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--fg-2, #536485);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s;
}

.res-btn-ghost:hover {
    border-color: rgb(var(--primary-rgb, 132 90 223));
    color: var(--fg-1, #333335);
}

.res-btn-primary {
    padding: 8px 18px;
    background: rgb(var(--primary-rgb, 132 90 223));
    color: #fff;
    border: none;
    border-radius: 0.35rem;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.15s;
}

.res-btn-primary:hover:not(:disabled) {
    opacity: 0.9;
}

.res-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.res-btn-soft-primary {
    padding: 6px 14px;
    background: rgba(var(--primary-rgb, 132 90 223), 0.10);
    border: 1px solid rgba(var(--primary-rgb, 132 90 223), 0.25);
    border-radius: 0.35rem;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    color: rgb(var(--primary-rgb, 132 90 223));
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s;
}

.res-btn-soft-primary:hover {
    background: rgba(var(--primary-rgb, 132 90 223), 0.16);
}

.res-btn-dark-ghost {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.35rem;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s;
}

.res-btn-dark-ghost:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.res-btn-green {
    padding: 8px 18px;
    background: rgb(var(--success-rgb, 38 191 148));
    color: #fff;
    border: none;
    border-radius: 0.35rem;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.15s;
}

.res-btn-green:hover {
    opacity: 0.9;
}

/* ================================================================
   SelectScheduleStep additions — new sched- and res- utilities
   ================================================================ */

/* ── Date row ─────────────────────────────────────────────────── */
.sched-date-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sched-date-input {
    font-family: inherit;
    font-size: 13px;
    padding: 0.5rem 0.75rem;
    background: #fff;
    color: var(--fg-1, #333335);
    border: 1px solid var(--border-input, #e9edf6);
    border-radius: 0.35rem;
    outline: none;
    flex: 1;
}

.sched-date-input:focus {
    border-color: rgb(var(--primary-rgb, 132 90 223));
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 132 90 223), 0.10);
}

/* ── ZIP field group ──────────────────────────────────────────── */
.sched-zip-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sched-zip-input {
    font-family: inherit;
    font-size: 13px;
    padding: 0.5rem 0.75rem;
    background: #fff;
    color: var(--fg-1, #333335);
    border: 1px solid var(--border-input, #e9edf6);
    border-radius: 0.35rem;
    outline: none;
    width: 140px;
}

.sched-zip-input:focus {
    border-color: rgb(var(--primary-rgb, 132 90 223));
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 132 90 223), 0.10);
}

.sched-zip-hint {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fg-3, #8c9097);
}

/* ── Filter card footer ───────────────────────────────────────── */
.sched-filter-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px solid var(--border, #f3f3f3);
    flex-wrap: wrap;
}

.sched-filter-hint {
    font-size: 12px;
    color: var(--fg-3, #8c9097);
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
}

.sched-filter-hint.is-error {
    color: rgb(var(--danger-rgb, 220 53 69));
}

/* ── Apply button (same visual as sched-btn-primary) ─────────── */
.sched-apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    padding: 0.55rem 1.1rem;
    background: rgb(var(--primary-rgb, 132 90 223));
    color: #fff;
    border: none;
    border-radius: 0.35rem;
    cursor: pointer;
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.sched-apply-btn:hover:not(:disabled) {
    background: rgba(var(--primary-rgb, 132 90 223), 0.88);
    transform: translateY(-1px);
}

.sched-apply-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ── Segment sub-label (provider name inside sched-seg button) ── */
.sched-seg .sched-seg-sub {
    display: block;
    font-size: 10px;
    opacity: 0.75;
    font-weight: 400;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

/* ── Provider search scope and path cards ────────────────────── */
.sched-provider-scope-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-width: 760px;
}

.sched-choice-card,
.sched-search-path-card {
    border: 1px solid var(--border-input, #e9edf6);
    border-radius: 10px;
    background: #fff;
    color: var(--fg-1, #333335);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.sched-choice-card {
    min-height: 84px;
    padding: 14px;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 10px;
    align-content: start;
}

.sched-choice-card > i {
    grid-row: span 2;
    color: rgb(var(--primary-rgb, 132 90 223));
    font-size: 1.2rem;
    padding-top: 1px;
}

.sched-choice-card-title {
    font-size: 0.875rem;
    font-weight: 600;
}

.sched-choice-card-detail {
    margin-top: 3px;
    font-size: 0.75rem;
    line-height: 1.35;
    color: var(--fg-3, #8c9097);
}

.sched-choice-card[aria-checked="true"],
.sched-search-path-card[aria-checked="true"] {
    border: 2px solid rgb(var(--primary-rgb, 132 90 223));
    background: rgba(var(--primary-rgb, 132 90 223), 0.04);
}

.sched-choice-card:focus-visible,
.sched-search-path-card:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 132 90 223), 0.18);
}

.sched-choice-card:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.sched-any-provider-panel {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid var(--border, #f3f3f3);
    border-radius: 12px;
    background: var(--surface-subtle, #fafbfc);
}

.sched-search-path-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.sched-search-path-card {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.sched-search-path-input {
    margin-bottom: 0;
}

@media (max-width: 760px) {
    .sched-provider-scope-grid,
    .sched-search-path-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Slot count heading ───────────────────────────────────────── */
.res-slots-heading {
    font-size: 12px;
    font-weight: 600;
    color: var(--fg-3, #8c9097);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 12px 0 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ── PCP provider card highlight ──────────────────────────────── */
.res-preferred-group {
    border-color: rgba(var(--success-rgb, 38 191 148), 0.4) !important;
    box-shadow: 0 0 0 2px rgba(var(--success-rgb, 38 191 148), 0.12) !important;
}

/* ── Provider address + distance ─────────────────────────────– */
.res-prov-address {
    font-size: 11px;
    color: var(--fg-3, #8c9097);
    margin-top: 2px;
}

.res-prov-distance {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    color: var(--fg-2, #536485);
    background: var(--bg-surface-2, #f7f8f9);
    border: 1px solid var(--border, #f3f3f3);
    border-radius: 99px;
    padding: 2px 8px;
    align-self: flex-start;
}

/* ── Telehealth slot modifier ─────────────────────────────────── */
.res-slot--telehealth {
    border-color: rgba(var(--secondary-rgb, 35 183 229), 0.5);
    background: rgba(var(--secondary-rgb, 35 183 229), 0.04);
}

.res-slot--telehealth:hover {
    border-color: rgb(var(--secondary-rgb, 35 183 229)) !important;
}

.res-slot--telehealth.res-selected {
    background: rgb(var(--secondary-rgb, 35 183 229));
    border-color: rgb(var(--secondary-rgb, 35 183 229));
}

/* ── Slot service type codes ──────────────────────────────────── */
.res-slot-service-type {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--fg-3, #8c9097);
    line-height: 1.15;
}

.res-slot.res-selected .res-slot-service-type {
    color: rgba(255, 255, 255, 0.8);
}

/* ── Day sub-group inside provider card ───────────────────────── */
.res-day-group {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border, #f3f3f3);
}

.res-day-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--fg-2, #536485);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.res-day-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgb(var(--primary-rgb, 132 90 223));
    flex-shrink: 0;
}

/* ── Modality pill in floating confirm bar ────────────────────── */
.res-modality-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle;
}

.res-modality-pill--inperson {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.75);
}

.res-modality-pill--telehealth {
    background: rgba(var(--secondary-rgb, 35 183 229), 0.25);
    color: rgb(var(--secondary-rgb, 35 183 229));
}

/* ── Empty state (no slots returned) ─────────────────────────── */
.res-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 48px 24px;
    color: var(--fg-3);
    text-align: center;
}

.res-empty-state i {
    font-size: 2rem;
    color: var(--fg-3);
}

.res-empty-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--fg-2);
}

.res-empty-sub {
    font-size: 0.8125rem;
    max-width: 360px;
}

/* ================================================================
   Step 2 — Patient Info Update (fp- prefix)
   Uses .orbit-appts token variables from orbit-tokens.css
   ================================================================ */

/* ── Section root and layout ──────────────────────────────────── */
.fp-section-root {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    align-items: start;
}

.fp-info-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.schedule-aside {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 16px;
}

/* ── Section cards ────────────────────────────────────────────── */
.sched-step-card.fp-section {
    background: #fff;
    border: 1px solid var(--border, #f3f3f3);
    border-radius: var(--radius-lg, 0.5rem);
    box-shadow: 0 0.125rem 0 rgba(10, 10, 10, 0.04);
    padding: 22px;
    transition: border-color var(--dur-fast, 150ms) var(--ease-std, cubic-bezier(0.4, 0, 0.2, 1)),
        box-shadow var(--dur-fast, 150ms) var(--ease-std, cubic-bezier(0.4, 0, 0.2, 1));
}

.sched-step-card.fp-section.is-editing {
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb, 132 90 223), 0.16), 0 0.125rem 0 rgba(10, 10, 10, 0.04);
}

.sched-step-card.fp-section.is-verified .sched-step-pill {
    background: rgb(var(--success-rgb, 38 191 148));
    box-shadow: 0 4px 12px rgba(var(--success-rgb, 38 191 148), 0.32);
}

.fp-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border, #f3f3f3);
}

.fp-section-head-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.fp-section-foot {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed var(--border, #f3f3f3);
}

/* ── Info grid: read-only label/value rows ─────────────────── */
.fp-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 28px;
}

.fp-info-row {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.fp-info-lbl {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fg-3, #8c9097);
    margin-bottom: 4px;
}

.fp-info-val {
    font-size: 13px;
    font-weight: 600;
    color: var(--fg-1, #333335);
    overflow-wrap: break-word;
    word-break: break-word;
}

.fp-info-val.mono {
    font-family: var(--font-mono, "Roboto Mono", monospace);
    font-size: 12px;
}

.fp-info-val .muted {
    color: var(--fg-3, #8c9097);
    font-weight: 500;
}

/* ── Form fields ──────────────────────────────────────────────── */
.fp-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fp-field-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fg-3, #8c9097);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 6px;
}

.fp-field-label.is-checkbox {
    gap: 8px;
}

.fp-field-label i {
    color: rgb(var(--primary-rgb, 132 90 223));
    font-size: 12px;
}

.fp-field-input {
    font-family: inherit;
    font-size: 14px;
    width: 100%;
    padding: 0.75rem 1rem;
    background: #fff;
    color: var(--fg-1, #333335);
    border: 1px solid var(--border-input, #e9edf6);
    border-radius: var(--radius-md, 0.35rem);
    outline: none;
    transition: border-color var(--dur-fast, 150ms) var(--ease-std, cubic-bezier(0.4, 0, 0.2, 1)),
        box-shadow var(--dur-fast, 150ms) var(--ease-std, cubic-bezier(0.4, 0, 0.2, 1));
}

.fp-field-input:focus {
    border-color: rgb(var(--primary-rgb, 132 90 223));
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 132 90 223), 0.10);
}

.fp-field-input.mono {
    font-family: var(--font-mono, "Roboto Mono", monospace);
    font-size: 12.5px;
}

/* ── Select dropdown (custom caret to match prototype) ───────── */
.fp-select-wrap {
    position: relative;
}

.fp-select-wrap select.fp-field-input {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 34px;
    cursor: pointer;
    background-image: none;
}

.fp-select-caret {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--fg-3, #8c9097);
    font-size: 17px;
}

.fp-field.is-active .fp-field-input {
    border-color: rgb(var(--primary-rgb, 132 90 223));
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 132 90 223), 0.10);
}

.fp-field.is-active .fp-field-label {
    color: rgb(var(--primary-rgb, 132 90 223));
}

.fp-field.is-disabled {
    opacity: 0.45;
}

.fp-field.is-disabled .fp-field-input {
    background: var(--bg-surface-2, #f7f8f9);
    cursor: not-allowed;
}

.fp-field.is-disabled .fp-field-label i {
    color: var(--fg-3, #8c9097);
}

/* ── Form grid ────────────────────────────────────────────────── */
.fp-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
}

.fp-form-grid > * {
    min-width: 0;
}

.fp-form-grid.col-3 {
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    min-width: 0;
}

.fp-form-grid.col-1 {
    grid-template-columns: 1fr;
    width: 100%;
}

.fp-span-2 {
    grid-column: span 2;
}

/* ── Segmented buttons (SMS/Voice/Email) ───────────────────── */
.fp-seg-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.fp-seg {
    font-family: inherit;
    font-size: 12px;
    padding: 6px 12px;
    background: #fff;
    color: var(--fg-2, #536485);
    border: 1px solid var(--border-input, #e9edf6);
    border-radius: var(--radius-md, 0.35rem);
    cursor: pointer;
    transition: all var(--dur-fast, 150ms) var(--ease-std, cubic-bezier(0.4, 0, 0.2, 1));
}

.fp-seg:hover {
    border-color: rgba(var(--primary-rgb, 132 90 223), 0.4);
    color: var(--fg-1, #333335);
}

.fp-seg.active {
    background: rgb(var(--primary-rgb, 132 90 223));
    color: #fff;
    border-color: rgb(var(--primary-rgb, 132 90 223));
}

/* ── Person cards ─────────────────────────────────────────────── */
.fp-person-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.fp-person-card {
    border: 1px solid var(--border, #f3f3f3);
    border-radius: var(--radius-md, 0.35rem);
    padding: 14px 16px;
    background: var(--bg-surface-2, #f7f8f9);
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: border-color var(--dur-fast, 150ms) var(--ease-std, cubic-bezier(0.4, 0, 0.2, 1)),
        background var(--dur-fast, 150ms) var(--ease-std, cubic-bezier(0.4, 0, 0.2, 1));
}

.fp-person-card.is-primary {
    background: rgba(var(--primary-rgb, 132 90 223), 0.04);
    border-color: rgba(var(--primary-rgb, 132 90 223), 0.22);
}

.fp-person-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.fp-person-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb, 132 90 223), 0.10);
    color: rgb(var(--primary-rgb, 132 90 223));
    font-size: 14px;
}

.fp-person-tag {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.10em;
    color: var(--fg-3, #8c9097);
}

.fp-person-actions {
    margin-left: auto;
    display: flex;
    gap: 2px;
}

.icon-btn-sm {
    border: 0;
    background: transparent;
    cursor: pointer;
    width: 24px;
    height: 24px;
    border-radius: 5px;
    color: var(--fg-3, #8c9097);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--dur-fast, 150ms) var(--ease-std, cubic-bezier(0.4, 0, 0.2, 1));
    font-size: 16px;
}

.icon-btn-sm:hover {
    background: var(--bg-surface-3, #efefef);
    color: rgb(var(--primary-rgb, 132 90 223));
}

.fp-person-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--fg-1, #333335);
}

.fp-person-role {
    font-size: 11px;
    color: var(--fg-3, #8c9097);
    font-weight: 500;
}

.fp-person-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    font-size: 11.5px;
    color: var(--fg-2, #536485);
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px dashed var(--border, #f3f3f3);
}

.fp-person-meta i {
    color: rgb(var(--primary-rgb, 132 90 223));
    font-size: 12px;
    margin-right: 4px;
}

/* ── Add tile ─────────────────────────────────────────────────── */
.fp-add-tile {
    border: 1.5px dashed var(--border-input, #e9edf6);
    border-radius: var(--radius-md, 0.35rem);
    padding: 14px 16px;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    cursor: pointer;
    color: var(--fg-2, #536485);
    font-family: inherit;
    font-size: inherit;
    transition: all var(--dur-fast, 150ms) var(--ease-std, cubic-bezier(0.4, 0, 0.2, 1));
}

.fp-add-tile:hover {
    border-color: rgb(var(--primary-rgb, 132 90 223));
    background: rgba(var(--primary-rgb, 132 90 223), 0.04);
    color: var(--fg-1, #333335);
}

.fp-add-tile>i {
    font-size: 22px;
    color: rgb(var(--primary-rgb, 132 90 223));
    flex-shrink: 0;
}

.fp-add-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--fg-1, #333335);
}

.fp-add-sub {
    font-size: 11.5px;
    color: var(--fg-3, #8c9097);
    margin-top: 2px;
}

.fp-add-tile-tall {
    padding: 22px 18px;
}

/* ── Sub-headers ──────────────────────────────────────────────── */
.fp-sub-head {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--fg-3, #8c9097);
    margin-top: 16px;
    margin-bottom: 8px;
}

.fp-sub-head i {
    color: rgb(var(--primary-rgb, 132 90 223));
    font-size: 13px;
}

/* ── Sibling list ─────────────────────────────────────────────── */
.fp-sib-block {
    margin-top: 4px;
}

.fp-sib-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fp-sib-row {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--border, #f3f3f3);
    border-radius: var(--radius-md, 0.35rem);
    padding: 8px 12px;
    background: #fff;
}

.fp-sib-name {
    font-size: 13px;
    font-weight: 600;
}

.fp-sib-meta {
    font-size: 11px;
    color: var(--fg-3, #8c9097);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.fp-sib-meta .mono {
    font-family: var(--font-mono, "Roboto Mono", monospace);
    color: var(--fg-2, #536485);
}

.fp-sib-meta .sep {
    color: var(--border-input, #e9edf6);
}

/* ── Insurance cards ──────────────────────────────────────────── */
.fp-ins-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.fp-ins-card {
    border: 1px solid var(--border, #f3f3f3);
    border-radius: var(--radius-md, 0.35rem);
    padding: 16px;
    background: #fff;
}

.fp-ins-card.is-primary {
    background: rgba(var(--primary-rgb, 132 90 223), 0.03);
    border-color: rgba(var(--primary-rgb, 132 90 223), 0.22);
}

.fp-ins-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.fp-ins-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgb(var(--primary-rgb, 132 90 223));
    flex-shrink: 0;
}

.fp-ins-dot.dot-info {
    background: rgb(35, 183, 229);
}

.fp-ins-dot.dot-orange {
    background: rgb(var(--warning-rgb, 245 184 73));
}

.fp-ins-dot.dot-success {
    background: rgb(var(--success-rgb, 38 191 148));
}

.fp-ins-tag {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.10em;
    color: var(--fg-3, #8c9097);
    text-transform: uppercase;
}

.fp-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.10em;
    color: var(--fg-3, #8c9097);
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: var(--radius-sm, 0.15rem);
    margin-left: 4px;
}

.fp-badge-primary {
    background: rgba(var(--primary-rgb, 132 90 223), 0.12);
    color: rgb(var(--primary-rgb, 132 90 223));
}

.fp-badge-success {
    background: rgba(var(--success-rgb, 38 191 148), 0.12);
    color: rgb(var(--success-rgb, 38 191 148));
}

.fp-ins-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--fg-1, #333335);
}

.fp-ins-type {
    font-size: 11.5px;
    color: var(--fg-3, #8c9097);
    margin-top: 2px;
    margin-bottom: 10px;
}

.fp-ins-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
    padding-top: 10px;
    border-top: 1px dashed var(--border, #f3f3f3);
}

.fp-ins-foot {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed var(--border, #f3f3f3);
    font-size: 11.5px;
    color: var(--fg-3, #8c9097);
    display: flex;
    align-items: center;
    gap: 6px;
}

.fp-ins-foot i {
    color: rgb(var(--success-rgb, 38 191 148));
}

.fp-elig {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed var(--border, #f3f3f3);
}

.fp-elig-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.fp-elig-title-btn {
    border: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    color: inherit;
    cursor: pointer;
}

.fp-elig-title-btn:disabled {
    cursor: default;
}

.fp-elig-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--fg-3, #8c9097);
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.fp-elig-title-btn > i {
    color: var(--fg-3, #8c9097);
}

.fp-elig-running {
    font-size: 12px;
    color: rgb(var(--primary-rgb, 132 90 223));
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.fp-elig-btn {
    border: 1px solid rgb(var(--primary-rgb, 132 90 223));
    background: rgb(var(--primary-rgb, 132 90 223));
    color: #fff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.fp-elig-btn.is-soft {
    background: rgba(var(--primary-rgb, 132 90 223), 0.12);
    color: rgb(var(--primary-rgb, 132 90 223));
}

.fp-elig-hint {
    margin-top: 10px;
    font-size: 12px;
    color: var(--fg-3, #8c9097);
}

.fp-elig-hint.fp-elig-hint-strong {
    color: rgb(var(--success-rgb, 38 191 148));
    font-weight: 600;
}

.fp-elig-grid {
    margin-top: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 14px;
}

.fp-elig-cell {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.fp-elig-cell > span {
    font-size: 10px;
    color: var(--fg-3, #8c9097);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.fp-elig-cell > strong {
    font-size: 12px;
    font-weight: 600;
    color: var(--fg-1, #333335);
}

.fp-elig-cell > strong.mono {
    font-family: var(--font-mono, monospace);
}

.fp-elig-cell > strong.is-success {
    color: rgb(var(--success-rgb, 38 191 148));
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.fp-elig-error-box {
    margin-top: 10px;
    display: flex;
    gap: 7px;
    align-items: flex-start;
}

@keyframes fp-spin {
    to {
        transform: rotate(360deg);
    }
}

.fp-spin {
    animation: fp-spin 1s linear infinite;
}

/* ── Appointment history list ─────────────────────────────────── */
.fp-hist-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
}

.fp-hist-row {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--border, #f3f3f3);
    border-radius: var(--radius-md, 0.35rem);
    padding: 10px 14px;
    background: #fff;
}

.fp-hist-row.is-upcoming {
    background: rgba(var(--primary-rgb, 132 90 223), 0.04);
    border-color: rgba(var(--primary-rgb, 132 90 223), 0.24);
}

.fp-hist-row.is-noshow {
    background: rgba(var(--warning-rgb, 245 184 73), 0.03);
}

.fp-hist-date {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 110px;
    flex-shrink: 0;
}

.fp-hist-date-pill {
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgb(var(--primary-rgb, 132 90 223));
    background: rgba(var(--primary-rgb, 132 90 223), 0.12);
    padding: 2px 6px;
    border-radius: 3px;
    width: fit-content;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.fp-hist-day {
    font-size: 13px;
    font-weight: 700;
    color: var(--fg-1, #333335);
    font-family: var(--font-mono, "Roboto Mono", monospace);
}

.fp-hist-time {
    font-size: 11.5px;
    color: var(--fg-3, #8c9097);
    font-family: var(--font-mono, "Roboto Mono", monospace);
}

.fp-hist-body {
    flex: 1;
    min-width: 0;
    border-left: 1px solid var(--border, #f3f3f3);
    padding-left: 14px;
}

.fp-hist-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--fg-1, #333335);
    margin-bottom: 3px;
}

.fp-hist-meta {
    font-size: 11.5px;
    color: var(--fg-3, #8c9097);
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    align-items: center;
}

.fp-hist-meta i {
    color: rgb(var(--primary-rgb, 132 90 223));
    font-size: 12px;
    margin-right: 3px;
}

.fp-hist-meta .sep {
    color: var(--border-input, #e9edf6);
}

.fp-hist-meta .mono {
    font-family: var(--font-mono, "Roboto Mono", monospace);
    color: var(--fg-2, #536485);
}

/* ── Checklist (aside) ────────────────────────────────────────── */
.fp-check-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.fp-check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-sm, 0.15rem);
    font-size: 12px;
    color: var(--fg-2, #536485);
    background: rgba(var(--danger-rgb, 220 53 69), 0.04);
}

.fp-check-row.met {
    background: rgba(var(--success-rgb, 38 191 148), 0.07);
    color: #1c7a5e;
}

.fp-check-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgb(var(--danger-rgb, 220 53 69));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

.fp-check-row.met .fp-check-icon {
    background: rgb(var(--success-rgb, 38 191 148));
}

/* ── Aside summary ───────────────────────────────────────────── */
.fp-aside-summary {
    background: var(--bg-surface-2, #f7f8f9);
    border-radius: var(--radius-md, 0.35rem);
    padding: 12px 14px;
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fp-as-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    gap: 12px;
}

.fp-as-row span:first-child {
    color: var(--fg-3, #8c9097);
    font-size: 11px;
}

.fp-as-row strong {
    color: var(--fg-1, #333335);
    font-weight: 500;
    max-width: 60%;
    text-align: right;
}

/* ── Info banner ──────────────────────────────────────────────── */
.fp-info-banner {
    background: rgba(132, 90, 223, 0.06);
    border: 1px solid rgba(132, 90, 223, 0.2);
    border-radius: 0.5rem;
    padding: 16px 18px;
    margin-bottom: 18px;
    color: var(--fg-1, #333335);
}

.fp-info-banner__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-weight: 600;
}

.fp-info-banner__title i {
    color: rgb(var(--primary-rgb, 132 90 223));
    font-size: 18px;
}

.fp-info-banner__body {
    font-size: 13px;
    line-height: 1.5;
}

/* ── Section heading rows ─────────────────────────────────────── */
.fp-section-head-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.fp-section-icon {
    font-size: 18px;
    color: rgb(var(--primary-rgb, 132 90 223));
}

.fp-section.is-verified .fp-section-icon {
    color: rgb(var(--success-rgb, 38 191 148));
}

.fp-section-h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.fp-section-sub {
    margin: 0;
    font-size: 13px;
    color: var(--fg-3, #8c9097);
}

/* ── Section action buttons ───────────────────────────────────── */
.fp-btn-confirm {
    font-size: 10px;
    padding: 0.08rem 0.4rem;
    line-height: 1;
    border: 1px solid rgba(38, 191, 148, 0.3);
    background-color: rgba(38, 191, 148, 0.2);
}

.fp-btn-edit {
    font-size: 10px;
    padding: 0.08rem 0.4rem;
    line-height: 1;
    border: 1px solid rgba(132, 90, 223, 0.3);
    background-color: rgba(132, 90, 223, 0.2);
}

.fp-btn-cancel {
    background: transparent;
    border: 1px solid var(--border-input, #e9edf6);
    color: var(--fg-2, #536485);
    padding: 6px 12px;
}

.fp-btn-save {
    background: rgb(var(--primary-rgb, 132 90 223));
    color: #fff;
    border: none;
    padding: 6px 12px;
}

/* ── Display grid (read-only 2-col) ───────────────────────────── */
.fp-display-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 28px;
    font-size: 13px;
}

/* ── Form action row ──────────────────────────────────────────── */
.fp-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* ── Insurance card detail block ──────────────────────────────── */
.fp-ins-detail {
    font-size: 12px;
    color: var(--fg-2, #536485);
    margin-bottom: 12px;
}

.fp-ins-actions {
    display: flex;
    gap: 6px;
}

/* ── Secondary insurance badge ────────────────────────────────── */
.fp-badge-secondary {
    background: rgba(35, 183, 229, 0.12);
    color: rgb(35, 183, 229);
}

/* ── History status badges ────────────────────────────────────── */
.fp-hist-badge {
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}

.fp-hist-badge.noshow {
    background: rgba(245, 184, 73, 0.12);
    color: #8a5e1c;
}

.fp-hist-badge.cancelled {
    background: rgba(132, 90, 223, 0.12);
    color: rgb(132, 90, 223);
}

.fp-hist-badge.completed {
    background: rgba(38, 191, 148, 0.12);
    color: #1c7a5e;
}

/* ── History count pill ───────────────────────────────────────── */
.fp-hist-count-pill {
    font-size: 11px;
    font-weight: 600;
    background: rgba(132, 90, 223, 0.12);
    color: rgb(132, 90, 223);
    padding: 3px 10px;
    border-radius: 99px;
}

/* ── Appointment history failed warning ───────────────────────── */
.fp-hist-failed {
    background: rgba(245, 184, 73, 0.08);
    border: 1px solid rgba(245, 184, 73, 0.3);
    border-radius: var(--radius-md, 0.35rem);
    padding: 10px 14px;
    margin-top: 12px;
    font-size: 12px;
    color: #7a5c10;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.fp-hist-failed i {
    color: rgb(var(--warning-rgb, 245 184 73));
    flex-shrink: 0;
    margin-top: 2px;
}

/* ── Aside card ───────────────────────────────────────────────── */
.fp-aside-card {
    background: #fff;
    border: 1px solid var(--border, #f3f3f3);
    border-radius: 0.5rem;
    padding: 18px;
    box-shadow: 0 0.125rem 0 rgba(10, 10, 10, 0.04);
}

.fp-aside-card h3 {
    margin: 0 0 16px;
    font-size: 14px;
    font-weight: 600;
}

/* ── Error box ────────────────────────────────────────────────── */
.fp-error-box {
    background: rgba(220, 53, 69, 0.08);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: var(--radius-md, 0.35rem);
    padding: 12px 14px;
    margin-top: 16px;
    font-size: 12px;
    color: #7a2a1a;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.fp-error-box i {
    color: rgb(var(--danger-rgb, 220 53 69));
    flex-shrink: 0;
    margin-top: 2px;
}

/* Informational counterpart to .fp-error-box — used to prompt for data a stored record never had
   (e.g. a related person saved before the mailing address became required). */
.fp-info-box {
    background: rgba(132, 90, 223, 0.08);
    border: 1px solid rgba(132, 90, 223, 0.3);
    border-radius: var(--radius-md, 0.35rem);
    padding: 12px 14px;
    margin-top: 16px;
    font-size: 12px;
    color: var(--fg-2, #545454);
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

/* Required-field marker on a .fp-field-label. */
.fp-required {
    color: rgb(var(--danger-rgb, 220 53 69));
    margin-left: 2px;
}

/* Inline, field-level validation message rendered directly beneath its input. */
.fp-field-error {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: rgb(var(--danger-rgb, 220 53 69));
}

.fp-error-box__dismiss {
    background: transparent;
    border: none;
    color: rgb(var(--danger-rgb, 220 53 69));
    cursor: pointer;
    margin-top: 6px;
    font-size: 11px;
    padding: 0;
}

/* ── Aside utilities ──────────────────────────────────────────── */
.fp-aside-hint {
    text-align: center;
    margin-top: 12px;
    font-size: 11px;
    color: var(--fg-3, #8c9097);
}

.fp-aside-hr {
    margin: 18px 0;
    border: none;
    border-top: 1px solid var(--border, #f3f3f3);
    opacity: 0.5;
}

.fp-aside-script-label {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.fp-aside-script-body {
    margin: 0 0 16px;
    font-size: 12px;
    color: var(--fg-3, #8c9097);
    line-height: 1.5;
}

/* ── Responsive breakpoints ───────────────────────────────────── */
@media (max-width: 1100px) {
    .fp-section-root {
        grid-template-columns: 1fr;
    }

    .fp-info-grid {
        grid-template-columns: 1fr 1fr;
    }

    .fp-person-grid,
    .fp-ins-grid {
        grid-template-columns: 1fr;
    }

    .schedule-aside {
        position: static;
    }
}

@media (max-width: 960px) {
    .fp-section-root {
        grid-template-columns: 1fr;
    }

    .fp-info-grid {
        grid-template-columns: 1fr;
    }

    .fp-form-grid {
        grid-template-columns: 1fr;
    }
}

/* ══════════════════════════════════════════════════════════════════════════
   TASK 5 — Query context pills
   ════════════════════════════════════════════════════════════════════════ */

.sched-query-context {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.sched-category-picker {
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sched-category-picker label,
.sched-readonly-field label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fg-3, #8c9097);
}

.sched-readonly-field {
    min-width: 120px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sched-readonly-box {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid rgba(var(--primary-rgb), 0.18);
    border-radius: 6px;
    background: rgba(var(--primary-rgb), 0.05);
    color: rgb(var(--text-rgb));
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 18px;
}

.sched-readonly-box i {
    color: rgb(var(--primary-rgb));
    font-size: 0.95rem;
}

.sched-select {
    width: 100%;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid var(--border-input, #e9edf6);
    border-radius: 6px;
    background: #fff;
    color: var(--fg-1, #333335);
    font-family: inherit;
    font-size: 0.8rem;
    outline: none;
}

.sched-select:focus {
    border-color: rgb(var(--primary-rgb, 132 90 223));
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 132 90 223), 0.10);
}

/* ══════════════════════════════════════════════════════════════════════════
   TASK 6 — Result filter sidebar layout
   ════════════════════════════════════════════════════════════════════════ */

.sched-results-shell {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 16px;
    align-items: start;
}

.sched-results-col {
    min-width: 0;
}

/* ── Sidebar panel ──────────────────────────────────────────────────────── */

.sched-result-filter-panel {
    position: sticky;
    top: 80px;
    background: rgb(var(--surface-rgb));
    border: 1px solid rgba(var(--border-rgb), 0.8);
    border-radius: 10px;
    padding: 14px;
    font-size: 0.82rem;
}

.sched-rfp-heading {
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(var(--text-rgb), 0.5);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sched-rfp-counter {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(var(--text-rgb), 0.45);
}

.sched-rfp-group {
    margin-bottom: 12px;
}

.sched-rfp-group-label {
    font-weight: 600;
    font-size: 0.75rem;
    color: rgba(var(--text-rgb), 0.55);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 6px;
}

.sched-rfp-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sched-rfp-opt {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    background: transparent;
    color: rgb(var(--text-rgb));
    font-size: 0.82rem;
    text-align: left;
    transition: background 0.12s, border-color 0.12s;
}

.sched-rfp-opt:hover {
    background: rgba(var(--primary-rgb), 0.06);
}

.sched-rfp-opt.is-active {
    background: rgba(var(--primary-rgb), 0.1);
    border-color: rgba(var(--primary-rgb), 0.25);
    color: rgb(var(--primary-rgb));
    font-weight: 600;
}

.sched-rfp-reset {
    width: 100%;
    margin-top: 8px;
    padding: 6px 10px;
    border: 1px solid rgba(var(--border-rgb), 0.8);
    border-radius: 6px;
    background: transparent;
    color: rgba(var(--text-rgb), 0.6);
    font-size: 0.78rem;
    cursor: pointer;
    transition: background 0.12s;
}

.sched-rfp-reset:hover {
    background: rgba(var(--border-rgb), 0.15);
}

.sched-rfp-missing-hint {
    margin-top: 8px;
    padding: 6px 8px;
    background: rgba(var(--warning-rgb, 255, 170, 0), 0.08);
    border: 1px solid rgba(var(--warning-rgb, 255, 170, 0), 0.2);
    border-radius: 6px;
    font-size: 0.75rem;
    color: rgba(var(--text-rgb), 0.65);
    line-height: 1.4;
}

.sched-rfp-empty-state {
    padding: 32px 16px;
    text-align: center;
    color: rgba(var(--text-rgb), 0.45);
    font-size: 0.85rem;
}

/* ── Collapse toggle (hidden on wide) ──────────────────────────────────── */

.sched-rfp-collapsed-toggle {
    display: none;
}

/* ══════════════════════════════════════════════════════════════════════════
   TASK 7 — Provider metadata row in slot result card
   ════════════════════════════════════════════════════════════════════════ */

.res-provider-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    font-size: 0.75rem;
    color: rgba(var(--text-rgb), 0.55);
    margin-top: 2px;
}

.res-provider-meta span+span::before {
    content: "·";
    margin-right: 6px;
}

/* ══════════════════════════════════════════════════════════════════════════
   TASK 9 — Responsive collapse of result filter sidebar
   ════════════════════════════════════════════════════════════════════════ */

@media (max-width: 840px) {
    .sched-results-shell {
        grid-template-columns: 1fr;
    }

    .sched-result-filter-panel {
        position: static;
        padding: 10px 14px;
    }

    .sched-rfp-collapsed-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        padding: 0;
        background: transparent;
        border: none;
        cursor: pointer;
        color: rgb(var(--text-rgb));
        font-size: 0.82rem;
    }

    .sched-rfp-collapsed-title {
        font-weight: 700;
        flex: 1;
        text-align: left;
    }

    .sched-rfp-collapsed-counter {
        font-size: 0.78rem;
        color: rgba(var(--text-rgb), 0.55);
    }

    .sched-rfp-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 18px;
        height: 18px;
        padding: 0 4px;
        border-radius: 9px;
        background: rgb(var(--primary-rgb));
        color: #fff;
        font-size: 0.7rem;
        font-weight: 700;
    }

    .sched-rfp-content {
        display: none;
        margin-top: 10px;
    }

    .sched-rfp-content.is-expanded {
        display: block;
    }
}

/* ========================================================================
   Clinic typeahead — matches .sched-select / .sched-zip-input (flat sched look)
   ======================================================================== */
.sched-typeahead {
    position: relative;
}

.sched-typeahead .ta-input {
    width: 100%;
    min-height: 34px;
    padding: 6px 30px 6px 30px;
    border: 1px solid var(--border-input, #e9edf6);
    border-radius: 6px;
    background: #fff;
    color: var(--fg-1, #333335);
    font-family: inherit;
    font-size: 0.8rem;
    outline: none;
}

.sched-typeahead .ta-input:focus {
    border-color: rgb(var(--primary-rgb, 132 90 223));
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 132 90 223), 0.10);
}

.sched-typeahead.has-value .ta-input {
    border-color: rgb(var(--primary-rgb, 132 90 223));
    background: rgba(var(--primary-rgb, 132 90 223), 0.03);
    font-weight: 500;
}

.sched-typeahead .ta-icon {
    position: absolute;
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--fg-3, #9aa0ab);
    font-size: 0.95rem;
    pointer-events: none;
}

.sched-typeahead .ta-clear {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 3px;
    border-radius: 4px;
    color: var(--fg-3, #9aa0ab);
    font-size: 0.95rem;
}

.sched-typeahead .ta-clear:hover {
    background: var(--border-input, #e9edf6);
    color: var(--fg-1, #333335);
}

.sched-typeahead .ta-results {
    position: absolute;
    z-index: 30;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    max-height: 260px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--border-input, #e9edf6);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.sched-typeahead .ta-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.8rem;
    line-height: 1.3;
    border-bottom: 1px solid #f3f4f6;
}

.sched-typeahead .ta-item:last-child {
    border-bottom: none;
}

.sched-typeahead .ta-item:hover,
.sched-typeahead .ta-item.is-active {
    background: rgba(var(--primary-rgb, 132 90 223), 0.06);
}

.sched-typeahead .ta-item .ta-sub {
    font-size: 0.72rem;
    color: var(--fg-3, #9aa0ab);
}

.sched-typeahead .ta-status {
    padding: 8px 12px;
    font-size: 0.78rem;
    color: var(--fg-3, #9aa0ab);
}

/* ══════════════════════════════════════════════════════════════════════════
   VisitModalityCard — symptoms & visit format (sched-modality- prefix)
   ════════════════════════════════════════════════════════════════════════ */

.sched-modality-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.sched-modality-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 8px 5px 12px;
    background: rgba(var(--primary-rgb, 132 90 223), 0.08);
    color: rgb(var(--primary-rgb, 132 90 223));
    border: 1px solid rgba(var(--primary-rgb, 132 90 223), 0.25);
    border-radius: 3.125rem;
    cursor: pointer;
    transition: background 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.sched-modality-chip:hover {
    background: rgba(var(--primary-rgb, 132 90 223), 0.14);
}

.sched-modality-chip i {
    font-size: 13px;
}

.sched-modality-groups {
    display: grid;
    gap: 10px;
}

.sched-modality-group {
    border: 1px solid var(--border-input, #e9edf6);
    border-radius: 0.35rem;
    background: #fff;
    overflow: hidden;
}

.sched-modality-group-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--fg-1, #333335);
    cursor: pointer;
    list-style: none;
}

.sched-modality-group-head::-webkit-details-marker {
    display: none;
}

.sched-modality-group-head i {
    color: rgb(var(--primary-rgb, 132 90 223));
    font-size: 15px;
}

.sched-modality-group[open] .sched-modality-group-head {
    border-bottom: 1px solid var(--border, #f3f3f3);
}

.sched-modality-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px 14px 14px;
}

.sched-modality-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--fg-1, #333335);
    cursor: pointer;
}

.sched-modality-input {
    position: absolute;
    width: 18px;
    height: 18px;
    margin: 0;
    opacity: 0;
}

.sched-modality-input:focus-visible + .sched-check-box {
    outline: 2px solid rgb(var(--primary-rgb, 132 90 223));
    outline-offset: 2px;
}

.sched-modality-item.sched-modality-checked {
    font-weight: 600;
}

.sched-modality-item.sched-modality-checked .sched-check-box {
    background: rgb(var(--primary-rgb, 132 90 223));
    border-color: rgb(var(--primary-rgb, 132 90 223));
}

.sched-modality-item.sched-modality-checked .sched-check-box i {
    color: #fff;
}

.sched-modality-other,
.sched-modality-duration {
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid var(--border-input, #e9edf6);
    border-radius: 0.35rem;
    background: rgba(var(--primary-rgb, 132 90 223), 0.02);
}

.sched-modality-other-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--fg-1, #333335);
    margin-bottom: 8px;
}

.sched-req-inline {
    font-size: 10px;
    font-weight: 700;
    color: rgb(var(--danger-rgb, 220 53 69));
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sched-modality-input {
    font-family: inherit;
    font-size: 13px;
    width: 100%;
    padding: 0.6rem 0.75rem;
    background: #fff;
    color: var(--fg-1, #333335);
    border: 1px solid var(--border-input, #e9edf6);
    border-radius: 0.35rem;
    outline: none;
    box-sizing: border-box;
}

.sched-modality-input:focus {
    border-color: rgb(var(--primary-rgb, 132 90 223));
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 132 90 223), 0.10);
}

.sched-modality-duration-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--fg-1, #333335);
    margin-bottom: 8px;
}

.sched-modality-duration-choices {
    display: flex;
    gap: 8px;
}

.sched-duration-choice {
    flex: 1;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 10px;
    background: #fff;
    color: var(--fg-1, #333335);
    border: 1px solid var(--border-input, #e9edf6);
    border-radius: 0.35rem;
    cursor: pointer;
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.sched-duration-choice:hover {
    border-color: rgba(var(--primary-rgb, 132 90 223), 0.4);
}

.sched-duration-choice.sched-selected {
    border-color: rgb(var(--primary-rgb, 132 90 223));
    background: rgba(var(--primary-rgb, 132 90 223), 0.08);
    color: rgb(var(--primary-rgb, 132 90 223));
}

.sched-modality-eligibility {
    margin-top: 14px;
    font-size: 12px;
    color: var(--fg-3, #8c9097);
    min-height: 16px;
}

.sched-modality-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.sched-modality-tile:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.sched-modality-tile:disabled:hover {
    border-color: var(--border-input, #e9edf6);
    transform: none;
}

@media (max-width: 700px) {
    .sched-modality-grid {
        grid-template-columns: 1fr;
    }

    .sched-modality-tiles {
        grid-template-columns: 1fr;
    }
}

/* ================================================================
   Urgent symptom screening card (sched-urgent- prefix)
   Priority is signaled via Icon + LaneLabel text (never color alone).
   All interactive controls target a 44px minimum hit area.
   ================================================================ */

.sched-urgent-card {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.sched-urgent-card .sched-urgent-hardstop,
.sched-urgent-card .sched-urgent-cleared {
    margin-top: 0;
}

/* ── Unavailable state ───────────────────────────────────────── */
.sched-urgent-unavailable {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 0.35rem;
    background: rgba(var(--warning-rgb, 245 184 73), 0.1);
    border: 1px solid rgba(var(--warning-rgb, 245 184 73), 0.35);
    color: #6f4a0c;
    font-size: 13px;
    line-height: 1.5;
}

.sched-urgent-unavailable i {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── Normal scan board ───────────────────────────────────────── */
.sched-urgent-board {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 800px) {
    .sched-urgent-board {
        grid-template-columns: 1fr;
    }
}

.sched-urgent-lane {
    border: 1px solid var(--border-input, #e9edf6);
    border-radius: 0.35rem;
    background: #fff;
    overflow: hidden;
}

.sched-urgent-lane-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border, #f3f3f3);
    font-weight: 700;
    font-size: 13px;
    color: var(--fg-1, #333335);
}

.sched-urgent-lane-head i {
    font-size: 15px;
}

.sched-urgent-lane[data-disposition="Call911"] .sched-urgent-lane-head i,
.sched-urgent-lane[data-disposition="GoToEr"] .sched-urgent-lane-head i,
.sched-urgent-lane[data-disposition="PoisonControl"] .sched-urgent-lane-head i {
    color: rgb(var(--danger-rgb, 220 53 69));
}

.sched-urgent-lane[data-disposition="MaLine"] .sched-urgent-lane-head i {
    color: #8a5e1c;
}

.sched-urgent-lane-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px 14px;
}

.sched-urgent-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    min-height: 44px;
    padding: 8px 11px;
    border: 1px solid var(--border-input, #e9edf6);
    border-radius: 0.35rem;
    cursor: pointer;
    font-size: 12.5px;
    line-height: 1.35;
    color: var(--fg-1, #333335);
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.sched-urgent-item:hover {
    border-color: rgba(var(--primary-rgb, 132 90 223), 0.4);
    background: rgba(var(--primary-rgb, 132 90 223), 0.03);
}

.sched-urgent-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    accent-color: rgb(var(--primary-rgb, 132 90 223));
}

.sched-urgent-item input[type="checkbox"]:focus-visible {
    outline: 2px solid rgb(var(--primary-rgb, 132 90 223));
    outline-offset: 2px;
}

.sched-urgent-item-label {
    flex: 1 1 auto;
}

.sched-urgent-item-desc {
    flex-basis: 100%;
    font-size: 11.5px;
    color: var(--fg-3, #8c9097);
}

.sched-urgent-no-match {
    margin-top: 14px;
}

/* ── Hard-stop (ActionRequired) ──────────────────────────────── */
.sched-urgent-hardstop {
    margin-top: 14px;
    padding: 16px 18px;
    border-radius: 0.4rem;
    font-size: 13px;
    line-height: 1.55;
}

.sched-urgent-tone-critical {
    background: linear-gradient(135deg, rgba(var(--danger-rgb, 220 53 69), 0.08), rgba(var(--danger-rgb, 220 53 69), 0.04));
    border: 1px solid rgba(var(--danger-rgb, 220 53 69), 0.35);
    color: #7a2a1a;
}

.sched-urgent-tone-warning {
    background: linear-gradient(135deg, rgba(var(--warning-rgb, 245 184 73), 0.12), rgba(var(--warning-rgb, 245 184 73), 0.05));
    border: 1px solid rgba(var(--warning-rgb, 245 184 73), 0.4);
    color: #6f4a0c;
}

.sched-urgent-alert-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 8px;
}

.sched-urgent-tone-critical .sched-urgent-alert-head {
    color: rgb(var(--danger-rgb, 220 53 69));
}

.sched-urgent-tone-warning .sched-urgent-alert-head {
    color: #8a5e1c;
}

.sched-urgent-alert-head:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.sched-urgent-heading {
    margin: 0 0 4px;
    font-weight: 600;
}

.sched-urgent-supporting {
    margin: 0 0 12px;
}

.sched-urgent-symptoms {
    margin-bottom: 12px;
}

.sched-urgent-symptoms-label,
.sched-urgent-readaloud-label,
.sched-urgent-phone-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 4px;
    opacity: 0.75;
}

.sched-urgent-symptoms ul {
    margin: 0;
    padding-left: 20px;
}

.sched-urgent-readaloud {
    background: #fff;
    border-radius: 0.35rem;
    padding: 10px 12px;
    margin-bottom: 12px;
}

.sched-urgent-readaloud p {
    margin: 0;
    font-style: italic;
}

.sched-urgent-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.sched-urgent-phone-number {
    font-weight: 700;
    font-size: 15px;
    user-select: all;
}

.sched-urgent-checklist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

@media (max-width: 800px) {
    .sched-urgent-checklist {
        grid-template-columns: 1fr;
    }
}

.sched-urgent-check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid var(--border-input, #e9edf6);
    border-radius: 0.35rem;
    cursor: pointer;
    font-size: 12.5px;
    color: var(--fg-1, #333335);
}

.sched-urgent-check-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
}

.sched-urgent-check-item input[type="checkbox"]:focus-visible {
    outline: 2px solid rgb(var(--primary-rgb, 132 90 223));
    outline-offset: 2px;
}

.sched-urgent-outcome {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 44px;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--fg-3, #8c9097);
}

.sched-urgent-outcome select {
    min-height: 44px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    color: var(--fg-1, #333335);
    padding: 8px 10px;
    border: 1px solid var(--border-input, #e9edf6);
    border-radius: 0.35rem;
    background: #fff;
}

.sched-urgent-outcome select:focus-visible {
    outline: 2px solid rgb(var(--primary-rgb, 132 90 223));
    outline-offset: 2px;
}

.sched-urgent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sched-urgent-actions button {
    min-height: 44px;
}

/* ── MA-cleared read-only summary ────────────────────────────── */
.sched-urgent-cleared {
    margin-top: 14px;
    padding: 16px 18px;
    border-radius: 0.4rem;
    font-size: 13px;
    line-height: 1.55;
    background: var(--bg-surface-2, #f7f8f9);
    border: 1px solid var(--border-input, #e9edf6);
    color: var(--fg-2, #536485);
}

.sched-urgent-cleared-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--fg-1, #333335);
}

.sched-urgent-cleared-head i {
    color: rgb(var(--success-rgb, 38 191 148));
}

.sched-urgent-cleared button {
    margin-top: 10px;
    min-height: 44px;
}
