:root {
    color-scheme: light;
    --bg: #f2f6f4;
    --panel: #ffffff;
    --ink: #19352d;
    --muted: #687b75;
    --line: #dce7e2;
    --line-dark: #b8cbc3;
    --uab-green: #0b3e2d;
    --uab-green-2: #19734d;
    --gold: #b68b23;
    --blue: #245f9d;
    --danger: #b42318;
    --warning: #9a6700;
    --success: #17663a;
    --shadow: 0 1px 2px rgba(15, 42, 32, .04), 0 8px 24px rgba(15, 42, 32, .035);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.45;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
    background: #edf2f7;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1px 4px;
}

.shell {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    min-height: 100vh;
    transition: grid-template-columns .22s ease;
}

.sidebar {
    background: linear-gradient(180deg, #174f3e 0%, #0c3d31 48%, #082f28 100%);
    color: #fff;
    padding: 24px 17px;
    border-right: 1px solid rgba(183, 224, 195, .18);
    box-shadow: 8px 0 24px rgba(18, 52, 42, .08);
    width: 248px;
    min-height: 100vh;
    transform: translateX(0);
    transition: transform .22s ease;
    z-index: 30;
}

.shell.sidebar-collapsed {
    grid-template-columns: 0 minmax(0, 1fr);
}

.shell.sidebar-collapsed .sidebar {
    transform: translateX(-100%);
}

.sidebar-toggle {
    position: fixed;
    top: 84px;
    left: 218px;
    z-index: 40;
    display: grid;
    place-items: center;
    width: 30px;
    height: 38px;
    padding: 0;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, .12);
    border-radius: 7px 0 0 7px;
    background: rgba(255, 255, 255, .08);
    color: #e5f1eb;
    box-shadow: none;
    cursor: pointer;
    transition: left .22s ease, background .15s ease, color .15s ease;
}

.sidebar-toggle:hover { background: rgba(255, 255, 255, .16); }
.sidebar-toggle:focus-visible { outline: 2px solid #8db8e4; outline-offset: -2px; }
.shell.sidebar-collapsed .sidebar-toggle {
    left: 0;
    border: 1px solid #93bce3;
    border-left: 0;
    border-radius: 0 7px 7px 0;
    background: #eef6ff;
    color: var(--blue);
    box-shadow: 2px 2px 7px rgba(15, 23, 42, .12);
}
.shell.sidebar-collapsed .sidebar-toggle:hover { background: #dfefff; }
.shell.sidebar-collapsed .sidebar-toggle svg { transform: rotate(180deg); }
.sidebar-toggle svg {
    width: 16px;
    height: 16px;
    transition: transform .22s ease;
}

.sidebar-backdrop {
    display: none;
    border: 0;
    padding: 0;
    background: rgba(15, 23, 42, .42);
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 28px;
}

.brand-mark {
    display: grid;
    flex: 0 0 40px;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(255,255,255,.17), rgba(255,255,255,.07));
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
    box-shadow: inset 0 1px rgba(255,255,255,.12);
}

.brand-logo {
    display: block;
    width: 100%;
    height: auto;
    padding: 10px;
    border-radius: 7px;
    background: #fff;
}

.brand strong {
    display: block;
    font-size: 17px;
    line-height: 1.2;
}

.brand span {
    display: block;
    color: #a8cbbd;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .03em;
    margin-top: 2px;
}

.nav-section {
    margin: 22px 12px 8px;
    color: #8fb4a2;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.nav { display: grid; gap: 5px; }

.nav a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e5f1eb;
    min-height: 43px;
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 700;
    transition: background .16s ease, transform .16s ease;
}

.nav a.active,
.nav a:hover {
    background: rgba(255,255,255,.13);
    color: #fff;
    text-decoration: none;
}
.nav a:hover { transform: translateX(2px); }
.nav a.active::before {
    content: "";
    position: absolute;
    left: -17px;
    width: 4px;
    height: 24px;
    border-radius: 0 5px 5px 0;
    background: #79d2a9;
}
.nav a svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: .82;
}
.nav a.active svg { opacity: 1; }

.main {
    min-width: 0;
    max-width: 100%;
    padding: 26px 30px 44px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.app-header {
    min-height: 84px;
    margin: -26px -30px 24px;
    padding: 20px 30px;
    background: rgba(255,255,255,.92);
    border-bottom: 1px solid var(--line);
}

.page-title {
    font-size: 26px;
    line-height: 1.15;
    margin: 0 0 2px;
    font-weight: 800;
}

.muted { color: var(--muted); }

.mb-16 { margin-bottom: 16px; }

.eyebrow {
    color: var(--gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.grid { display: grid; gap: 12px; }

.grid-4,
.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .72fr);
    gap: 14px;
    margin-top: 14px;
}

.dashboard-grid > *,
.panel-header > *,
.video-call,
.video-grid,
.video-tile {
    min-width: 0;
}

.dashboard-grid.wide-left {
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, .75fr);
}

.card,
.panel,
.metric-card,
.ops-strip {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.card,
.panel { padding: 20px; }

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.panel h2,
.card h2 {
    font-size: 17px;
    margin: 0 0 2px;
}

.panel p,
.card p {
    margin: 0;
    color: var(--muted);
}

.ops-strip {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 16px;
    border-left: 4px solid var(--gold);
    margin-bottom: 14px;
}

.ops-strip h2 {
    margin: 2px 0 4px;
    font-size: 18px;
}

.ops-config {
    display: flex;
    align-content: flex-start;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
    min-width: 260px;
}

.metric-card { padding: 13px 14px; }

.metric-card span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.metric-card strong {
    display: block;
    font-size: 28px;
    line-height: 1;
    margin: 8px 0 6px;
}

.metric-card small { color: var(--muted); }

.metric {
    font-size: 28px;
    font-weight: 800;
    margin-top: 8px;
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 7px;
    overflow: hidden;
}

.table-scroll { width: 100%; overflow-x: auto; }

.table th,
.table td {
    text-align: left;
    padding: 10px 11px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

.table.compact th,
.table.compact td { padding: 8px 10px; }

.table tr:last-child td { border-bottom: 0; }

.table th {
    color: #587168;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    background: #f3f7f5;
}

.table tbody tr:hover td { background: #f7fbf9; }

/* Participant BP measurements: colors distinguish metrics, not clinical ranges. */
.bp-readings-card { border-top: 3px solid #2b8b68; }
.bp-readings-card svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bp-readings-heading { display: flex; align-items: center; gap: 13px; }
.bp-readings-symbol { display: grid; place-items: center; flex: 0 0 46px; height: 46px; border-radius: 14px; color: #16734d; background: #e3f4eb; }
.bp-readings-symbol svg { width: 26px; height: 26px; }
.bp-readings-count { padding: 7px 12px; border: 1px solid #d6e9e0; border-radius: 999px; color: #25664f; background: #eff8f3; font-size: 11px; font-weight: 800; white-space: nowrap; }
.bp-readings-table { min-width: 860px; border-radius: 12px; }
.bp-readings-table th { padding: 13px 14px; }
.bp-readings-table td { padding: 14px; }
.bp-readings-table tbody tr:nth-child(even) td { background: #fafcfb; }
.bp-readings-table tbody tr:hover td { background: #f0f7f3; }
.bp-column-label { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.bp-column-label small { font-size: 9px; font-weight: 600; opacity: .85; }
.bp-readings-card .bp-systolic { color: #245ca5; }
.bp-readings-card .bp-diastolic { color: #7048a0; }
.bp-readings-card .bp-pulse { color: #aa3d62; }
.bp-value { display: inline-flex; align-items: baseline; gap: 5px; padding: 7px 10px; border-radius: 9px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bp-value.bp-systolic { background: #edf4ff; }
.bp-value.bp-diastolic { background: #f3eefa; }
.bp-value.bp-pulse { background: #fceff3; align-items: center; }
.bp-value strong { font-size: 19px; line-height: 1.2; font-weight: 800; }
.bp-value small { font-size: 10px; font-weight: 600; }
.bp-value svg { width: 15px; height: 15px; }
.bp-measured { font-size: 12px; font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bp-device { display: inline-flex; align-items: center; gap: 7px; color: #587168; white-space: nowrap; }
.bp-device span { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.bp-sync { gap: 5px; white-space: nowrap; }
.bp-sync svg { width: 13px; height: 13px; }
@media (max-width: 600px) {
    .bp-readings-card .panel-header { align-items: flex-start; gap: 10px; }
    .bp-readings-heading { gap: 9px; }
    .bp-readings-symbol { flex-basis: 36px; height: 36px; border-radius: 10px; }
    .bp-readings-heading p { font-size: 11px; }
}

.record-link {
    color: var(--uab-green-2);
    font-weight: 800;
}

.page-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.participant-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-left: 4px solid var(--uab-green-2);
}

.participant-hero h2 {
    margin: 3px 0 4px;
    font-size: 24px;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.detail-list {
    display: grid;
    grid-template-columns: minmax(110px, .42fr) minmax(0, 1fr);
    gap: 0;
    margin: 0;
    border-top: 1px solid var(--line);
}

.detail-list dt,
.detail-list dd {
    margin: 0;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
}

.detail-list dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.detail-list dd { font-weight: 700; }

.management-editor {
    margin-top: 16px;
    border-top: 1px solid var(--line);
}

.management-editor > summary {
    padding: 14px 0 2px;
    color: var(--uab-green-2);
    font-weight: 800;
    cursor: pointer;
}

.management-editor form {
    display: grid;
    gap: 12px;
    margin-top: 14px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #f8fafc;
}

.management-editor form > p { margin: 0; }
.management-editor form > .button { justify-self: start; }
.reminder-methods { display: flex; flex-wrap: wrap; gap: 9px 18px; margin: 0; padding: 13px 14px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.reminder-methods legend { padding: 0 6px; color: #294d3f; font-size: 12px; font-weight: 800; }
.reminder-methods .check-row { min-width: 105px; }
.reminder-methods .reminder-none { padding-left: 17px; border-left: 1px solid var(--line); }
.reminder-methods > small { flex-basis: 100%; color: var(--muted); font-size: 10px; }
.enrollment-reminder-methods { grid-column: 1 / -1; background: #f3f8f5; }
@media (max-width: 560px) { .reminder-methods { display: grid; } .reminder-methods .reminder-none { padding-top: 9px; padding-left: 0; border-top: 1px solid var(--line); border-left: 0; } }

.metric-card .metric-date {
    font-size: 15px;
    line-height: 1.25;
}

.empty-state {
    padding: 20px;
    border: 1px dashed var(--line-dark);
    border-radius: 6px;
    color: var(--muted);
    background: #f8fafc;
    text-align: center;
}

.visit-timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(14, minmax(58px, 1fr));
    gap: 4px;
    margin: 14px 0 18px;
    padding: 0 2px 8px;
    overflow-x: auto;
}

.visit-timeline::before {
    content: "";
    position: absolute;
    top: 14px;
    left: 3%;
    right: 3%;
    height: 2px;
    background: var(--line);
}

.visit-step {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 2px;
    min-width: 58px;
    padding: 0 3px 4px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.visit-step:hover { color: var(--uab-green-2); }
.visit-step:focus-visible { outline: 2px solid #77ad96; outline-offset: 2px; border-radius: 5px; }

.visit-step-dot {
    width: 16px;
    height: 16px;
    margin: 6px 0 3px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #aab6c5;
    box-shadow: 0 0 0 1px #aab6c5;
}

.visit-step small { color: inherit; font-size: 9px; font-weight: 700; }
.visit-step-completed { color: var(--success); }
.visit-step-completed .visit-step-dot { background: var(--success); box-shadow: 0 0 0 1px var(--success); }
.visit-step-next { color: var(--uab-green-2); }
.visit-step-next .visit-step-dot { background: var(--uab-green-2); box-shadow: 0 0 0 3px rgba(25, 115, 77, .16); }
.visit-step-missed,
.visit-step-overdue { color: var(--danger); }
.visit-step-missed .visit-step-dot,
.visit-step-overdue .visit-step-dot { background: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.visit-step-rescheduled { color: var(--warning); }
.visit-step-rescheduled .visit-step-dot { background: var(--warning); box-shadow: 0 0 0 1px var(--warning); }
.visit-step-cancelled { color: #778392; }

.next-visit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 12px;
    padding: 15px 16px;
    border: 1px solid #c9e1d5;
    border-left: 4px solid var(--uab-green-2);
    border-radius: 7px;
    background: linear-gradient(100deg, #f1f8f4 0%, #f7fbf9 100%);
}

.next-visit h3 { margin: 3px 0 4px; font-size: 18px; }
.next-visit p { margin: 0; }
.next-visit-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

.visit-complete-message {
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid #badbcc;
    border-radius: 6px;
    color: var(--success);
    background: #edf8f1;
    font-weight: 700;
}

.visit-group { border-top: 1px solid var(--line); }
.visit-group:last-child { border-bottom: 1px solid var(--line); }

.visit-group > summary,
.visit-item > summary {
    display: flex;
    align-items: center;
    list-style: none;
    cursor: pointer;
}

.visit-group > summary::-webkit-details-marker,
.visit-item > summary::-webkit-details-marker { display: none; }

.visit-group > summary {
    justify-content: space-between;
    gap: 12px;
    padding: 12px 4px;
    color: var(--ink);
    font-weight: 800;
}

.visit-group > summary::before {
    content: "›";
    width: 18px;
    color: var(--uab-green-2);
    font-size: 22px;
    line-height: 1;
    transition: transform .16s ease;
}

.visit-group[open] > summary::before { transform: rotate(90deg); }
.visit-group > summary > span:first-of-type { margin-right: auto; }
.visit-group-meta { color: var(--muted); font-size: 11px; font-weight: 700; }

.visit-list {
    display: grid;
    gap: 7px;
    padding: 0 0 12px 22px;
}

.visit-list-empty {
    padding: 9px 11px;
    color: var(--muted);
    background: #f8fafc;
    border-radius: 5px;
}

.visit-item {
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
}

.visit-item > summary { gap: 12px; padding: 10px 11px; }
.visit-item > summary::after { content: "+"; color: var(--uab-green-2); font-size: 18px; font-weight: 500; }
.visit-item[open] > summary::after { content: "−"; }
.visit-week { min-width: 58px; font-weight: 800; }
.visit-summary-main { display: grid; gap: 1px; min-width: 0; margin-right: auto; }
.visit-summary-main small { color: var(--muted); }

.visit-detail {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    padding: 11px;
    border-top: 1px solid var(--line);
    background: #f8fafc;
}

.visit-detail dl {
    display: grid;
    grid-template-columns: max-content minmax(100px, 1fr);
    gap: 5px 12px;
    margin: 0;
}

.visit-detail dt { color: var(--muted); font-weight: 700; }
.visit-detail dd { margin: 0; font-weight: 700; }

.visit-edit-panel { flex: 1 0 100%; width: 100%; border-top: 1px solid var(--line); }
.visit-edit-panel > summary { padding: 10px 0 2px; color: var(--uab-green-2); font-weight: 800; cursor: pointer; }
.visit-edit-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.visit-edit-form .field { min-width: 0; }
.visit-comments-field { grid-column: 1 / -1; }
.visit-edit-form textarea { width: 100%; resize: vertical; }
.visit-no-show { align-self: center; }
.visit-edit-actions { display: flex; align-items: center; gap: 10px; grid-column: 1 / -1; flex-wrap: wrap; }
.visit-edit-actions small { color: var(--muted); }
@media (max-width: 760px) { .visit-edit-form { grid-template-columns: 1fr; } .visit-comments-field, .visit-edit-actions { grid-column: auto; } }

/* Focused 14-visit schedule */
.visit-section-header { align-items: flex-start; }
.visit-section-header h2 { margin: 3px 0 4px; }
.visit-total-progress {
    display: grid;
    min-width: 126px;
    padding: 10px 14px;
    border: 1px solid #d9e6df;
    border-radius: 10px;
    background: #f6faf8;
    text-align: right;
}
.visit-total-progress strong { color: var(--ink); font-size: 18px; }
.visit-total-progress span { color: var(--muted); font-size: 10px; font-weight: 700; }

.next-visit-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    margin: 18px 0;
    padding: 20px;
    border: 1px solid #bddccc;
    border-radius: 14px;
    background: linear-gradient(125deg, #edf8f2 0%, #f9fcfa 70%);
    box-shadow: 0 8px 22px rgba(21, 77, 57, .07);
}
.next-visit-card.is-overdue { border-color: #efc4bd; background: linear-gradient(125deg, #fff5f3 0%, #fffafa 70%); box-shadow: 0 8px 22px rgba(156, 55, 41, .06); }
.next-visit-card.is-overdue .next-visit-date { background: #b43e31; }
.next-visit-card.is-overdue .eyebrow { color: #a43a2e; }
.next-visit-date {
    display: grid;
    place-items: center;
    align-self: stretch;
    min-height: 76px;
    padding: 8px;
    border-radius: 11px;
    color: #fff;
    background: var(--uab-green-2);
    text-transform: uppercase;
}
.next-visit-date span { font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.next-visit-date strong { font-size: 30px; line-height: 1; }
.next-visit-date.is-todo span,
.next-visit-date.is-todo strong {
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .08em;
}
.next-visit-content { min-width: 0; }
.next-visit-content h3 { margin: 3px 0 5px; color: var(--ink); font-size: 21px; }
.next-visit-content p { margin: 0; color: var(--muted); }
.next-visit-content .next-visit-time { margin-bottom: 3px; color: var(--ink); font-weight: 800; }
.visit-email-delivery {
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-top: 10px;
    padding: 8px 10px;
    border: 1px solid #bddfce;
    border-radius: 9px;
    color: #175f43;
    background: #edf8f2;
}
.visit-email-delivery > span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: #fff; background: #21815b; font-size: 11px; font-weight: 900; }
.visit-email-delivery > div { display: grid; gap: 1px; }
.visit-email-delivery strong { font-size: 11px; }
.visit-email-delivery small { color: #57766a; font-size: 9px; }
.visit-email-delivery.is-confirmed { border-color: #a9d6c1; background: #e8f7ef; }
.next-visit-actions { justify-content: flex-end; }

.visit-program-group {
    overflow: hidden;
    margin-top: 12px;
    border: 1px solid #d9e6df;
    border-radius: 12px;
    background: #fff;
}
.visit-program-group > summary {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    padding: 15px 17px;
    list-style: none;
    cursor: pointer;
}
.visit-program-group > summary::-webkit-details-marker { display: none; }
.visit-program-group > summary:hover { background: #f8fbf9; }
.visit-program-group > summary:focus-visible { outline: 2px solid #77ad96; outline-offset: -3px; }
.visit-program-group > summary > span:nth-child(2) { display: grid; gap: 2px; }
.visit-program-group > summary small { color: var(--muted); font-size: 11px; }
.visit-group-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    color: var(--uab-green-2);
    background: #e9f4ee;
    font-size: 14px;
    font-weight: 900;
}
.visit-group-action { color: var(--uab-green-2); font-size: 11px; font-weight: 800; }
.visit-group-action::after { content: " ↓"; }
.visit-program-group[open] .visit-group-action::after { content: " ↑"; }
.visit-group-hide { display: none; }
.visit-program-group[open] .visit-group-show { display: none; }
.visit-program-group[open] .visit-group-hide { display: inline; }
.visit-program-group[open] > summary { border-bottom: 1px solid #e2ebe6; }

.visit-table-head,
.visit-table-row {
    display: grid;
    grid-template-columns: minmax(145px, .75fr) minmax(245px, 1.4fr) minmax(100px, .55fr) minmax(150px, auto);
    align-items: center;
    gap: 16px;
}
.visit-table-head {
    padding: 9px 16px;
    color: #6b8076;
    background: #f6f9f7;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.visit-table-row { min-height: 68px; padding: 11px 16px; border-top: 1px solid #edf2ef; }
.visit-table-row:first-of-type { border-top: 0; }
.visit-table-row:hover { background: #fbfdfc; }
.visit-name,
.visit-when { display: grid; gap: 2px; min-width: 0; }
.visit-name small,
.visit-when small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.visit-when strong { font-size: 12px; }
.visit-row-actions { display: flex; justify-content: flex-end; gap: 7px; }
.visit-status-stack { display: grid; justify-items: start; gap: 5px; }
.visit-status-stack small { color: #57766a; font-size: 9px; line-height: 1.35; }
.button.compact { min-height: 34px; padding: 7px 11px; border-radius: 7px; font-size: 11px; }
.button.quiet { border: 1px solid transparent; color: var(--uab-green-2); background: transparent; }
.button.quiet:hover { border-color: #d5e5dc; background: #f0f7f3; }

.follow-up-visits { margin-top: 18px; }
.follow-up-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.follow-up-heading h3 { margin: 0 0 2px; font-size: 15px; }
.follow-up-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.follow-up-heading > span { color: var(--muted); font-size: 10px; font-weight: 800; }
.follow-up-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.follow-up-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 16px;
    border: 1px solid #dce7e1;
    border-radius: 12px;
    background: #fafcfb;
}
.follow-up-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; }
.follow-up-number { color: #9a721b; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.follow-up-card h4 { margin: 13px 0 4px; font-size: 15px; }
.follow-up-card p { margin: 0; }
.follow-up-date { color: var(--ink); font-size: 12px; font-weight: 800; }
.follow-up-location { min-height: 31px; padding-top: 4px; color: var(--muted); font-size: 11px; }
.follow-up-card .button { margin-top: 12px; }

.visit-dialog {
    width: min(720px, calc(100% - 28px));
    max-height: calc(100vh - 32px);
    padding: 0;
    overflow: auto;
    border: 0;
    border-radius: 15px;
    color: var(--ink);
    background: #fff;
    box-shadow: 0 28px 80px rgba(10, 43, 32, .28);
}
.visit-dialog::backdrop { background: rgba(15, 38, 30, .48); backdrop-filter: blur(2px); }
.visit-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 21px 23px 17px;
    border-bottom: 1px solid #e2ebe6;
    background: #f7faf8;
}
.visit-dialog-header h3 { margin: 4px 0 2px; font-size: 20px; }
.visit-dialog-header p { margin: 0; color: var(--muted); font-size: 11px; }
.visit-dialog-close {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid #d6e3dc;
    border-radius: 50%;
    color: #547064;
    background: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.visit-dialog-form { padding: 20px 23px 22px; }
.visit-dialog-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.visit-zone-field,
.visit-location-field,
.visit-comments-field { grid-column: 1 / -1; }
.visit-dialog-form textarea { width: 100%; resize: vertical; }
.visit-no-show-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 4px;
    padding: 12px 13px;
    border: 1px solid #eadfc7;
    border-radius: 9px;
    background: #fffaf0;
    cursor: pointer;
}
.visit-no-show-option > input[type="checkbox"] { margin-top: 2px; }
.visit-no-show-option > span { display: grid; gap: 1px; }
.visit-no-show-option small { color: var(--muted); font-size: 10px; }
.visit-dialog-footer { display: flex; justify-content: flex-end; gap: 9px; margin-top: 19px; padding-top: 17px; border-top: 1px solid #e4ece8; }
.visit-scheduling-action {
    display: grid;
    gap: 9px;
    margin: 0 23px 22px;
    padding: 16px;
    border: 1px solid #bfdccd;
    border-radius: 11px;
    background: linear-gradient(135deg, #edf8f2, #f8fcfa);
}
.visit-scheduling-action strong { color: var(--ink); font-size: 13px; }
.visit-scheduling-action p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.visit-scheduling-action > label { color: #45675a; font-size: 10px; font-weight: 800; }
.visit-scheduling-action .muted { line-height: 1.45; }
body:has(.visit-dialog[open]) { overflow: hidden; }

@media (max-width: 760px) {
    .visit-total-progress { text-align: left; }
    .next-visit-card { grid-template-columns: 58px minmax(0, 1fr); padding: 15px; }
    .next-visit-date { min-height: 64px; }
    .next-visit-date strong { font-size: 25px; }
    .next-visit-actions { grid-column: 1 / -1; justify-content: flex-start; padding-top: 3px; }
    .visit-table-head { display: none; }
    .visit-table-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
    .visit-when { grid-column: 1 / -1; grid-row: 2; }
    .visit-table-row > span:nth-child(3) { grid-column: 2; grid-row: 1; }
    .visit-row-actions { grid-column: 1 / -1; grid-row: 3; justify-content: flex-start; }
    .follow-up-grid { grid-template-columns: 1fr; }
    .visit-dialog-fields { grid-template-columns: 1fr; }
    .visit-zone-field, .visit-location-field, .visit-comments-field { grid-column: auto; }
    .visit-scheduling-action .invite-row { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
    .visit-program-group > summary { grid-template-columns: 40px minmax(0, 1fr); }
    .visit-group-action { grid-column: 2; }
    .visit-dialog-form, .visit-dialog-header { padding-right: 16px; padding-left: 16px; }
    .visit-scheduling-action { margin-right: 16px; margin-left: 16px; padding: 13px; }
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
}

.login-panel > h1 {
    text-align: center;
}

.login-panel {
    width: min(420px, 100%);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 26px;
    box-shadow: var(--shadow);
}

.login-logo {
    display: block;
    width: min(300px, 100%);
    height: auto;
    margin-bottom: 18px;
}

.field {
    display: grid;
    gap: 7px;
    margin-bottom: 12px;
    min-width: 0;
}

.field label { color: #2a443b; font-size: 13px; font-weight: 750; }

.field input,
.field select {
    width: 100%;
    border: 1px solid var(--line-dark);
    border-radius: 9px;
    min-height: 44px;
    padding: 10px 12px;
    font: inherit;
    background: #fff;
}

.field input[type="checkbox"],
.field input[type="radio"],
.check-row input[type="checkbox"],
.check-row input[type="radio"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin: 1px 0 0;
    padding: 0;
    accent-color: var(--uab-green-2);
}

.field input:focus,
.field select:focus {
    outline: 3px solid rgba(25, 115, 77, .13);
    border-color: var(--uab-green-2);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 12px;
}

.check-row {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    width: fit-content;
    max-width: 100%;
    font-weight: 600;
    cursor: pointer;
}


.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 9px;
    min-height: 40px;
    padding: 9px 14px;
    background: var(--uab-green-2);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(25, 115, 77, .12);
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}

.button:hover { background: #125e3e; box-shadow: 0 6px 14px rgba(25, 115, 77, .18); text-decoration: none; transform: translateY(-1px); }

.button.secondary {
    background: #eef3f7;
    border-color: var(--line);
    color: var(--ink);
    box-shadow: none;
}
.button.secondary:hover { background: #e2ece7; }

.button:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.flash {
    border-radius: 6px;
    padding: 9px 11px;
    margin-bottom: 12px;
    border: 1px solid #cbdff4;
    background: #eef6ff;
}

.flash.error {
    color: var(--danger);
    border-color: #f1c7c3;
    background: #fff0ed;
}

.flash.success {
    color: #176848;
    border-color: #b9dccb;
    background: #edf8f2;
}

.flash.warning {
    color: #805d13;
    border-color: #ead7a3;
    background: #fff8e6;
}

.pill,
.badge {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 10px;
    color: var(--muted);
    background: #fff;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.badge-success {
    color: var(--success);
    border-color: #badbcc;
    background: #edf8f1;
}

.badge-warning {
    color: var(--warning);
    border-color: #ead7a3;
    background: #fff8e6;
}

.badge-danger {
    color: var(--danger);
    border-color: #f1c7c3;
    background: #fff0ed;
}

.badge-neutral {
    color: #526071;
    background: #f5f7fa;
}

.badge-info {
    color: #1f5f86;
    background: #eaf5fb;
}

.copy-field {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--line-dark);
    border-radius: 5px;
    padding: 8px 10px;
    color: var(--ink);
    background: #f8fafc;
}

.invite-panel {
    display: grid;
    gap: 6px;
    margin-top: 10px;
}

.invite-panel label {
    color: #536579;
    font-weight: 800;
}

.invite-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.invite-row input {
    min-width: 0;
    border: 1px solid var(--line-dark);
    border-radius: 5px;
    padding: 8px 10px;
    font: inherit;
}

.invite-message {
    min-height: 18px;
    color: var(--muted);
    font-weight: 700;
}

.invite-message.is-success { color: var(--success); }
.invite-message.is-error { color: var(--danger); }
.invite-message.is-info { color: var(--blue); }

.rule-list {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 8px 12px;
    margin: 0;
}

.rule-list dt {
    color: #536579;
    font-weight: 800;
}

.rule-list dd { margin: 0; }

.video-call {
    display: grid;
    gap: 10px;
}

.video-status {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    border: 1px solid #cbdff4;
    border-radius: 7px;
    padding: 9px 12px;
    color: #233147;
    background: #eef6ff;
    font-weight: 700;
}

.video-status::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 0 4px rgba(36, 95, 157, .12);
}

.video-status.is-error {
    color: var(--danger);
    border-color: #f1c7c3;
    background: #fff0ed;
}

.video-status.is-error::before {
    background: var(--danger);
    box-shadow: 0 0 0 4px rgba(180, 35, 24, .12);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    min-height: clamp(420px, 58vh, 760px);
    padding: 12px;
    border: 1px solid #0f172a;
    border-radius: 8px;
    background:
        radial-gradient(circle at 50% 20%, rgba(64, 89, 115, .38), transparent 42%),
        linear-gradient(135deg, #060b13, #111827 58%, #07111f);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}

.video-tile {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 300px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid rgba(203, 213, 225, .14);
    border-radius: 6px;
    background: #05080d;
    color: #dbe4ef;
}

.video-tile.local {
    border-color: rgba(31, 111, 74, .6);
}

.video-tile.remote {
    border-color: rgba(182, 139, 35, .7);
}

.video-tile video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #020617;
}

.video-tile.local video {
    transform: scaleX(-1);
}

.video-label {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: calc(100% - 24px);
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    background: rgba(2, 6, 23, .74);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.video-label::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
}

.video-empty-state {
    display: grid;
    place-items: center;
    width: min(320px, 80%);
    min-height: 130px;
    border: 1px dashed rgba(203, 213, 225, .28);
    border-radius: 7px;
    color: #94a3b8;
    text-align: center;
    font-weight: 800;
}

.video-audio-only {
    display: grid;
    place-items: center;
    width: 112px;
    height: 112px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #3b8068, #173c31);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .24);
}

.video-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}

.call-control {
    min-width: 96px;
    min-height: 40px;
    border-radius: 6px;
}

.call-control.primary {
    background: var(--uab-green-2);
}

.button.call-control.leave-control,
.button.call-control.leave-control:disabled {
    color: #fff;
    border-color: #991b1b;
    background: #b42318;
    box-shadow: 0 4px 10px rgba(180, 35, 24, .18);
}

.button.call-control.leave-control:hover:not(:disabled) {
    border-color: #7f1d1d;
    background: #991b1b;
    box-shadow: 0 6px 14px rgba(180, 35, 24, .25);
}

.call-control.is-off {
    color: #fff;
    border-color: #991b1b;
    background: #b42318;
}

.call-control.media-toggle {
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
    padding: 0;
    border-radius: 50%;
}

.media-control-icon {
    width: 23px;
    height: 23px;
    pointer-events: none;
}

.media-off-slash {
    display: none;
    stroke-width: 2.5;
}

.media-toggle.is-off .media-off-slash {
    display: block;
}

.visit-join-page {
    min-height: 100vh;
    display: grid;
    align-items: start;
    justify-items: center;
    padding: 28px 18px 42px;
    background:
        radial-gradient(circle at 50% -15%, rgba(42, 126, 91, .11), transparent 38%),
        #f3f7f5;
}

.participant-visit { width: min(1040px, 100%); }
.participant-visit-brand { display: flex; align-items: center; gap: 12px; margin: 0 6px 14px; color: #21483a; }
.participant-visit-brand > span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: linear-gradient(145deg, #1d7b57, #125a3e); color: #fff; font-weight: 900; box-shadow: 0 7px 18px rgba(23,106,73,.18); }
.participant-visit-brand > div { display: grid; gap: 1px; }
.participant-visit-brand strong { font-size: 14px; letter-spacing: .1em; }
.participant-visit-brand small { color: #6d7f76; }
.participant-visit-card { padding: 0; overflow: hidden; border: 1px solid #dbe7e1; border-radius: 22px; box-shadow: 0 18px 50px rgba(24, 62, 49, .08); }
.participant-visit-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 28px; border-bottom: 1px solid #e1ebe6; background: linear-gradient(125deg,#fff 35%,#f0f8f4); }
.participant-visit-heading h1 { margin: 2px 0 5px; color: #173d30; font-size: clamp(22px,3vw,29px); letter-spacing: -.025em; }
.participant-visit-heading p { margin: 0; color: var(--muted); }
.participant-appointment-time { display: grid; flex: 0 0 auto; min-width: 176px; gap: 3px; padding: 13px 17px; border: 1px solid #cfe1d8; border-radius: 13px; background: rgba(255,255,255,.9); text-align: right; box-shadow: 0 4px 13px rgba(24,62,49,.045); }
.participant-appointment-time span { color: #667d72; font-size: 11px; font-weight: 750; }
.participant-appointment-time strong { color: #174c38; font-size: 16px; }
.participant-waiting-notice { position: relative; display: grid; gap: 2px; margin: 20px 28px 0; padding: 13px 16px 13px 47px; border: 1px solid #ead69d; border-radius: 12px; background: #fff9e8; color: #69551e; }
.participant-waiting-notice::before { content: ""; position: absolute; top: 50%; left: 17px; width: 12px; height: 12px; border: 4px solid rgba(154,103,0,.15); border-radius: 50%; background: #c58b14; transform: translateY(-50%); background-clip: padding-box; }
.participant-waiting-notice.is-open { border-color: #b9ddcc; background: #edf8f3; color: #245e48; }
.participant-waiting-notice.is-open::before { border-color: rgba(37,147,101,.16); background: #259365; }
.participant-waiting-notice span { font-size: 12px; }
.participant-visit-card > .flash { margin: 20px 26px; }
.device-check { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 14px 28px; padding: 14px 16px; border: 1px solid #e0eae5; border-radius: 12px; background: #fbfdfc; }
.device-check h2 { margin: 2px 0 4px; color: #21483a; font-size: 17px; }
.device-check p { margin: 0; color: var(--muted); font-size: 11px; }
.device-check-list { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; max-width: 440px; margin: 0; padding: 0; list-style: none; font-size: 10px; font-weight: 800; }
.device-check-list li { display: flex; align-items: center; gap: 6px; min-height: 29px; padding: 5px 9px; border: 1px solid #e0e8e4; border-radius: 999px; background: #fff; color: #6e7f78; white-space: nowrap; }
.device-check-list li span { color: #9aaba4; }
.device-check-list li[data-state="ready"] { border-color: #cde6d8; background: #f1faf5; color: #17663a; }
.device-check-list li[data-state="ready"] span { color: #26a269; }
.device-check-list li[data-state="warning"] { border-color: #eddbac; background: #fffaf0; color: #9a6700; }
.device-check-list li[data-state="warning"] span { color: #d39c27; }
.participant-visit-card .video-call { position: relative; gap: 10px; margin: 0 28px 18px; }
.participant-visit-card .video-status { min-height: 38px; padding: 8px 12px; border: 0; border-radius: 10px; background: #edf5fc; font-size: 12px; }
.participant-visit-card .video-grid { width: 100%; min-height: 0; aspect-ratio: 16 / 9; padding: 10px; border-color: #17293c; border-radius: 16px; box-shadow: 0 12px 28px rgba(15,23,42,.14), inset 0 0 0 1px rgba(255,255,255,.04); }
.participant-visit-card .video-tile { min-height: 0; border-radius: 10px; }
.participant-visit-card .video-controls { gap: 10px; min-height: 66px; padding: 9px 12px; border-color: #dde7e2; border-radius: 14px; background: #f7faf8; }
.participant-visit-card .call-control { min-height: 44px; border-radius: 10px; }
.participant-visit-card .call-control.media-toggle { width: 46px; min-width: 46px; height: 46px; min-height: 46px; border-radius: 50%; }
.participant-visit-card .video-call:not(.is-connected) #leave-call,
.participant-visit-card .video-call:not(.is-connected) .media-toggle,
.participant-visit-card .video-call.is-connected #test-devices,
.participant-visit-card .video-call.is-connected #join-call { display: none; }
.participant-call-connected .device-check { padding-block: 11px; }
.participant-call-connected .device-check > div p:not(.eyebrow) { display: none; }
.participant-visit-privacy { margin: 0; padding: 14px 28px 18px; border-top: 1px solid #e3ebe7; color: #718078; font-size: 10px; text-align: center; }

.notes-workspace {
    margin: 18px -22px -32px;
    padding: 20px 22px 32px;
    border-top: 1px solid var(--line);
    background: #fff;
}

.notes-header,
.notes-state,
.notes-toolbar,
.field-heading,
.notes-footer {
    display: flex;
    align-items: center;
}

.notes-header {
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.notes-header h2 {
    margin: 2px 0;
    font-size: 19px;
}

.notes-state { gap: 10px; }
.notes-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.notes-page-link.button.secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 14px;
    border-color: #126844;
    background: #16764f;
    color: #fff;
    box-shadow: 0 5px 14px rgba(17, 94, 62, .2);
    font-size: 11px;
    font-weight: 850;
    white-space: nowrap;
}
.notes-page-link.button.secondary:hover {
    border-color: #0d5839;
    background: #105f40;
    color: #fff;
    transform: translateY(-1px);
}
.notes-page-link.button.secondary:focus-visible {
    outline: 3px solid rgba(28, 132, 89, .28);
    outline-offset: 3px;
}
.notes-page-link svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.notes-toolbar {
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.consent-check {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    margin-right: 4px;
    font-weight: 800;
}

.consent-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--uab-green-2);
}

.review-button { background: var(--blue); }

.notes-review-banner {
    margin: 12px 0;
    padding: 9px 11px;
    border-left: 3px solid var(--gold);
    background: #fff8e6;
    color: #694d00;
    font-weight: 700;
}

.notes-message {
    display: none;
    margin-bottom: 10px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: #f8fafc;
}

.notes-message.is-visible { display: block; }
.notes-message.is-error { color: var(--danger); border-color: #f1c7c3; background: #fff0ed; }
.notes-message.is-success { color: var(--success); border-color: #badbcc; background: #edf8f1; }
.notes-message.is-info { color: #233147; border-color: #cbdff4; background: #eef6ff; }

.notes-layout {
    display: grid;
    grid-template-columns: minmax(300px, .72fr) minmax(520px, 1.28fr);
    gap: 18px;
    align-items: start;
}

.transcript-panel,
.structured-note { min-width: 0; }

.field-heading {
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.field-heading label,
.note-field label {
    display: block;
    color: #34465b;
    font-weight: 800;
}

.notes-textarea {
    display: block;
    width: 100%;
    resize: vertical;
    border: 1px solid var(--line-dark);
    border-radius: 5px;
    padding: 10px;
    color: var(--ink);
    background: #fff;
    font: inherit;
    line-height: 1.5;
}

.notes-textarea:focus {
    outline: 2px solid rgba(36, 95, 157, .18);
    border-color: var(--blue);
}

.transcript-textarea { min-height: 510px; }
.notes-textarea.compact { min-height: 108px; }

.dictation-preview {
    min-height: 26px;
    padding-top: 6px;
    color: var(--blue);
    font-style: italic;
}

.structured-note {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.note-field { display: grid; gap: 5px; }
.note-field-wide { grid-column: 1 / -1; }

.notes-footer {
    justify-content: space-between;
    gap: 16px;
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 1100px) {
    .grid-4,
    .metric-grid,
    .dashboard-grid,
    .dashboard-grid.wide-left {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .notes-layout { grid-template-columns: 1fr; }
    .transcript-textarea { min-height: 300px; }
}

@media (max-width: 780px) {
    .shell { grid-template-columns: 1fr; }
    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(280px, 85vw);
        overflow-y: auto;
        transform: translateX(-100%);
        box-shadow: 8px 0 24px rgba(15, 23, 42, .2);
    }
    .shell.sidebar-collapsed { grid-template-columns: 1fr; }
    .shell.sidebar-open .sidebar { transform: translateX(0); }
    .sidebar-toggle,
    .shell.sidebar-collapsed .sidebar-toggle {
        top: 74px;
        left: 0;
        width: 30px;
        height: 38px;
        border: 1px solid #93bce3;
        border-left: 0;
        border-radius: 0 7px 7px 0;
        background: #eef6ff;
        color: var(--blue);
        box-shadow: 2px 2px 7px rgba(15, 23, 42, .12);
    }
    .sidebar-toggle svg { transform: rotate(180deg); }
    .sidebar-toggle:hover { background: #dfefff; }
    .shell.sidebar-open .sidebar-toggle {
        left: calc(min(280px, 85vw) - 30px);
        border: 0;
        border-left: 1px solid rgba(255, 255, 255, .12);
        border-radius: 7px 0 0 7px;
        background: rgba(255, 255, 255, .08);
        color: #e5f1eb;
        box-shadow: none;
    }
    .shell.sidebar-open .sidebar-toggle:hover { background: rgba(255, 255, 255, .16); }
    .shell.sidebar-open .sidebar-toggle svg { transform: rotate(0deg); }
    .shell.sidebar-open .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 20;
    }
    .main { padding: 14px; }
    .app-header {
        margin: -14px -14px 14px;
        padding: 14px;
    }
    .metric-grid,
    .dashboard-grid,
    .dashboard-grid.wide-left,
    .form-grid {
        grid-template-columns: 1fr;
    }
    .ops-strip { display: grid; }
    .panel-header { display: grid; }
    .ops-config {
        justify-content: flex-start;
        min-width: 0;
    }
    .video-grid { grid-template-columns: minmax(0, 1fr); }
    .notes-workspace {
        margin: 14px -14px -14px;
        padding: 16px 14px 24px;
    }
    .notes-header,
    .notes-footer {
        align-items: flex-start;
        flex-direction: column;
    }
    .notes-state { width: 100%; justify-content: space-between; }
    .notes-header-actions { width: 100%; justify-content: space-between; }
    .notes-toolbar { align-items: stretch; }
    .consent-check { flex-basis: 100%; }
    .notes-toolbar .button { flex: 1 1 135px; }
    .structured-note { grid-template-columns: 1fr; }
    .note-field-wide { grid-column: auto; }
    .participant-hero { align-items: flex-start; flex-direction: column; }
    .profile-grid { grid-template-columns: 1fr; }
    .next-visit { align-items: flex-start; flex-direction: column; }
    .visit-list { padding-left: 0; }
    .visit-item > summary { align-items: flex-start; flex-wrap: wrap; }
    .visit-summary-main { flex: 1 1 180px; }
    .visit-detail { align-items: stretch; flex-direction: column; }
    .visit-detail .button { align-self: flex-start; }
}

@media (max-width: 520px) {
    .page-title { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
    .shell,
    .sidebar { transition: none; }
}
.nav-signout {
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    min-height: 43px;
    padding: 10px 12px;
    border-radius: 10px;
    text-align: left;
    width: 100%;
}
.nav-signout:hover { background: rgba(255,255,255,.1); }
.passkey-setup-form { margin: 12px 0; }
.email-otp-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.login-help { color: #61718a; font-size: 0.9rem; line-height: 1.5; }

/* Illustrated staff sign-in; scoped to leave verification screens independent. */
.creative-login { display: flex; flex-direction: column; padding: 38px clamp(24px, 6vw, 100px) 22px; background: #fff; color: #193c36; min-height: 100svh; }
.login-brand { display: flex; align-items: center; }
.login-remap-logo { display: block; width: min(380px, 100%); height: auto; }
.login-layout { flex: 1; display: grid; grid-template-columns: minmax(320px, .85fr) minmax(0, 1.3fr); align-items: center; gap: clamp(35px, 6vw, 100px); width: 100%; max-width: 1400px; margin: 36px auto; }
.creative-login .login-panel { width: 100%; max-width: 420px; padding: 0; border: 0; box-shadow: none; background: transparent; }
.login-eyebrow { font-size: 10px; letter-spacing: 2px; font-weight: 800; color: #547f70; margin: 0 0 17px; }
.creative-login .login-panel h1 { text-align: left; font-size: clamp(36px, 4vw, 52px); letter-spacing: -2px; line-height: 1.1; margin: 0 0 18px; color: #173f35; }
.login-intro { color: #6b7d77; font-size: 15px; line-height: 1.8; margin: 0 0 32px; max-width: 370px; }
.creative-login .field { gap: 9px; margin-bottom: 20px; }
.creative-login .field label { font-weight: 600; font-size: 13px; }
.creative-login .field input { padding: 15px 16px; border: 1px solid #d8e3de; background: #f8faf9; border-radius: 10px; font-size: 16px; color: #193c36; }
.creative-login .field input:focus { outline: 3px solid #cce8dd; outline-offset: 2px; border-color: #39795f; }
.creative-login .button { width: 100%; padding: 15px 20px; background: #195743; border: 1px solid #195743; border-radius: 10px; font-size: 15px; font-weight: 700; box-shadow: 0 6px 16px #19574318; }
.creative-login .button:hover { background: #103f30; }
.creative-login .button:focus-visible { outline: 3px solid #7aaf96; outline-offset: 3px; }
.creative-login form + form { margin-top: 22px; }
.creative-login .login-help { font-size: 12px; color: #6b7d77; }
.login-access-note { font-size: 11px; color: #7b8b84; text-align: center; margin: 25px 0 0; }
.login-access-note span { margin-right: 5px; }
.login-art { position: relative; text-align: center; padding: 0 10px 25px; isolation: isolate; }
.login-art-orbit { position: absolute; inset: 6% 0 12%; background: #f1f8f4; border-radius: 48% 52% 44% 56%; z-index: -1; transform: rotate(-8deg); }
.login-care-illustration { display: block; width: 100%; max-width: 650px; height: auto; margin: -25px auto -30px; }
.login-art-caption .login-eyebrow { margin-bottom: 10px; font-size: 9px; }
.login-art-caption h2 { font-size: clamp(24px, 2.8vw, 36px); line-height: 1.2; letter-spacing: -1px; margin: 0 0 12px; }
.login-art-caption > p:last-child { color: #74897d; font-size: 12px; margin: 0; }
.login-footer { display: flex; justify-content: space-between; gap: 15px; font-size: 10px; color: #83918b; border-top: 1px solid #edf1ee; padding-top: 18px; }
@media (max-width: 800px) { .creative-login { padding: 25px 24px 20px; } .login-layout { grid-template-columns: 1fr; gap: 45px; margin: 45px auto 32px; max-width: 480px; } .creative-login .login-panel { margin: auto; } .login-art { padding-bottom: 25px; } .login-care-illustration { max-width: 380px; } .login-art-caption h2 { font-size: 26px; } }
@media (max-width: 380px) { .login-footer { flex-direction: column; gap: 4px; } .login-eyebrow { letter-spacing: 1.2px; } }

.password-control { position: relative; width: 100%; }
.password-control input { width: 100%; box-sizing: border-box; padding-right: 54px !important; }
.password-toggle { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 7px; background: transparent; color: #195743; cursor: pointer; }
.password-toggle:hover { background: #e4eee9; }
.password-toggle:focus-visible { outline: 2px solid #39795f; outline-offset: 1px; }
.password-toggle .eye-slash { display: none; }
.password-toggle[aria-pressed="true"] .eye-slash { display: block; }
.password-recovery-link { display: block; text-align: right; margin: -6px 0 22px; font-size: 14px; color: #195743; }
.password-requirements { padding-left: 20px; color: #536b62; font-size: 14px; line-height: 1.6; }

/* Staff-managed scheduling availability. */
.availability-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 500px);
    gap: 24px;
    align-items: center;
    overflow: hidden;
    padding: 24px 26px;
    border: 1px solid #cfe2d9;
    border-radius: 16px;
    background: linear-gradient(120deg, #fff 0%, #f1f8f4 68%, #e3f2ea 100%);
    box-shadow: var(--shadow);
}
.availability-hero::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -80px;
    top: -110px;
    border: 26px solid rgba(25,115,77,.07);
    border-radius: 50%;
}
.availability-hero-copy { display: flex; align-items: center; gap: 18px; position: relative; z-index: 1; }
.availability-hero-copy h2 { margin: 3px 0 5px; font-size: 24px; letter-spacing: -.02em; }
.availability-hero-copy p { max-width: 650px; margin: 0; color: var(--muted); }
.availability-hero-icon { display: grid; flex: 0 0 58px; place-items: center; width: 58px; height: 58px; border-radius: 17px; background: var(--uab-green-2); color: #fff; box-shadow: 0 10px 24px rgba(25,115,77,.2); }
.availability-hero-icon svg { width: 29px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.availability-clinician-picker {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 17px;
    border: 1px solid #d4e4dc;
    border-radius: 13px;
    background: rgba(255,255,255,.84);
    box-shadow: 0 8px 22px rgba(28,75,58,.06);
}
.availability-clinician-picker .field { margin-bottom: 10px; }
.availability-viewing-label {
    justify-self: start;
    margin-bottom: 7px;
    padding: 0;
    color: #5e756b;
    background: transparent;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
}
.availability-clinician-picker select {
    min-height: 48px;
    border: 1px solid #b8d2c6;
    border-radius: 10px;
    background-color: #f7fbf9;
    color: #173f31;
    font-size: 16px;
    font-weight: 800;
    box-shadow: none;
}
.availability-clinician-picker select:hover { border-color: #84b49f; background-color: #fff; }
.availability-clinician-picker select:focus { border-color: #398869; box-shadow: 0 0 0 3px rgba(57,136,105,.12); }
.availability-context { display: flex; flex-wrap: wrap; gap: 7px; }
.availability-context span, .availability-count { display: inline-flex; align-items: center; min-height: 25px; padding: 4px 9px; border: 0; border-radius: 999px; background: #eaf3ef; color: #42685a; font-size: 11px; font-weight: 750; }
.availability-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.availability-section-heading h2 { margin: 3px 0 3px; }
.availability-section-heading p { margin: 0; }
.availability-step { display: inline-flex; padding: 5px 9px; border-radius: 7px; background: #e1f2e9; color: #176f4d; font-size: 10px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.availability-scope-title { max-width: 620px; font-size: 18px; line-height: 1.35; }
.availability-scope-title strong { color: #28745a; font-weight: 800; }
.availability-week-card { padding: 18px 20px 20px; }
.availability-week-card .availability-section-heading { align-items: flex-end; margin-bottom: 14px; }
.availability-week-card .availability-section-heading > p { font-size: 12px; }
.availability-week-strip { display: grid; grid-template-columns: repeat(7, minmax(100px, 1fr)); gap: 9px; overflow-x: auto; padding-bottom: 2px; }
.availability-day { display: grid; align-content: start; min-height: 105px; padding: 12px; border: 1px solid #d1dcd7; border-radius: 11px; background: #eef2f0; color: #687b73; }
.availability-day > span { margin-bottom: 13px; font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.availability-day strong { color: #71817b; font-size: 13px; }
.availability-day small { color: #91a09a; font-size: 11px; }
.availability-day.is-open { border-color: #78bd9c; background: linear-gradient(180deg, #dff3e8 0%, #f1faf5 100%); color: #126746; box-shadow: inset 0 4px 0 #20845c, 0 5px 13px rgba(31,113,79,.08); }
.availability-day.is-open strong { color: #173f31; }
.availability-day.is-open small { margin-bottom: 5px; color: #607a70; }
.availability-time-range { margin: 1px 0 3px; }
.availability-time-range strong { color: #173f31; font-size: 14px; font-weight: 850; line-height: 1.25; }
.availability-time-range span { color: #58766a; font-size: 11px; font-weight: 850; text-transform: lowercase; }
.availability-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 18px; align-items: start; }
.availability-layout > .card { padding: 22px; }
.availability-form { display: grid; gap: 14px; padding: 17px; border: 1px solid #e0eae5; border-radius: 12px; background: #f8fbf9; }
.availability-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.availability-form .button { justify-self: start; }
.availability-primary svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.availability-check { align-items: center; min-height: 38px; margin: 0; padding: 8px 10px; border: 1px solid #dce7e2; border-radius: 9px; background: #fff; color: #344d44; font-weight: 700; }
.availability-check:has(input:checked) { border-color: #a8d2bf; background: #edf8f2; }
.availability-list { display: grid; margin-top: 14px; }
.availability-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 5px; border-bottom: 1px solid var(--line); }
.availability-row:last-child { border-bottom: 0; }
.availability-row > div { display: grid; gap: 3px; }
.availability-row > div > strong { color: #203d33; }
.availability-row span, .availability-row small { color: var(--muted); }
.availability-empty { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 16px; border: 1px dashed #cbdad4; border-radius: 11px; background: #fbfcfc; }
.availability-empty > span { display: grid; flex: 0 0 38px; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: #edf4f1; color: #5d7c70; font-size: 15px; font-weight: 850; }
.availability-empty > div { display: grid; gap: 2px; }
.availability-empty small { color: var(--muted); }
.availability-appointments-card { padding: 20px; }
.availability-appointments-card .availability-section-heading { align-items: center; margin-bottom: 14px; }
.availability-appointments-card .availability-section-heading > div:first-child > p { margin-top: 4px; color: var(--muted); font-size: 12px; }
.availability-appointment-counts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.availability-count.is-confirmed { border-color: #b7ddca; background: #edf8f2; color: #1c6f4e; }
.availability-appointment-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.availability-appointment { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-width: 0; padding: 13px; overflow: hidden; border: 1px solid #dfe9e4; border-radius: 13px; background: #fbfcfc; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.availability-appointment:hover { border-color: #bad7ca; box-shadow: 0 8px 20px rgba(28, 73, 55, .07); transform: translateY(-1px); }
.availability-appointment.is-confirmed { border-color: #9fd2ba; background: linear-gradient(135deg, #f0faf5 0%, #fbfefc 100%); }
.availability-appointment.is-confirmed::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: #1c7d55; }
.availability-appointment-date { display: grid; place-items: center; min-height: 58px; padding: 6px; border-radius: 11px; background: #edf3f0; color: #426257; line-height: 1; }
.availability-appointment.is-confirmed .availability-appointment-date { background: #dcefe6; color: #176b4a; }
.availability-appointment-date span { font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.availability-appointment-date strong { margin: 2px 0; color: inherit; font-size: 20px; }
.availability-appointment-date small { color: inherit; font-size: 9px; font-weight: 800; }
.availability-appointment-main { display: grid; min-width: 0; gap: 4px; }
.availability-appointment-topline { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0; }
.availability-appointment-topline > strong { overflow: hidden; color: #234438; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.availability-booking-state { display: inline-flex; align-items: center; min-height: 20px; padding: 3px 7px; border: 1px solid #d9e3df; border-radius: 999px; background: #f2f5f4; color: #687d75; font-size: 8px; font-weight: 850; white-space: nowrap; }
.availability-booking-state.is-confirmed { border-color: #b8ddcb; background: #e7f6ee; color: #176c4a; }
.availability-appointment-time { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: #173f31; font-size: 13px; font-weight: 900; }
.availability-appointment-time small { padding: 2px 6px; border-radius: 999px; background: #eaf1ee; color: #597168; font-size: 8px; font-weight: 850; }
.availability-appointment-main > small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.availability-appointment .button { align-self: center; white-space: nowrap; }
.compact-button { min-height: 34px; padding: 6px 10px; font-size: 12px; }
@media (max-width: 1350px) { .availability-appointment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1120px) { .availability-hero { grid-template-columns: 1fr; gap: 20px; } .availability-layout { grid-template-columns: 1fr; } }
@media (max-width: 780px) { .availability-week-strip { grid-template-columns: repeat(7, 110px); } .availability-appointment-grid { grid-template-columns: 1fr; } .availability-appointments-card .availability-section-heading { align-items: flex-start; flex-direction: column; } .availability-appointment-counts { justify-content: flex-start; } }
@media (max-width: 560px) { .availability-hero { padding: 20px; } .availability-hero-copy { align-items: flex-start; } .availability-hero-icon { flex-basis: 48px; width: 48px; height: 48px; } .availability-fields { grid-template-columns: 1fr; } .availability-row { align-items: flex-start; } .availability-appointment { grid-template-columns: 45px minmax(0, 1fr); } .availability-appointment .button { grid-column: 2; justify-self: start; } }

/* Dashboard command center. */
.command-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
    align-items: center;
    overflow: hidden;
    margin-bottom: 14px;
    padding: 22px 24px;
    border: 1px solid #c9e0d6;
    border-radius: 18px;
    background:
        radial-gradient(circle at 92% 5%, rgba(255,255,255,.42) 0 74px, transparent 75px),
        linear-gradient(115deg, #0c4a35 0%, #126343 58%, #21855a 100%);
    color: #fff;
    box-shadow: 0 14px 34px rgba(11, 62, 45, .14);
}
.command-hero::after { content: ""; position: absolute; right: -75px; bottom: -130px; width: 260px; height: 260px; border: 34px solid rgba(255,255,255,.065); border-radius: 50%; }
.command-hero-copy, .dashboard-quick-actions { position: relative; z-index: 1; }
.dashboard-eyebrow { display: block; margin-bottom: 5px; color: #d6eee3; font-size: 11px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.command-hero h2 { margin: 0; color: #fff; font-size: clamp(27px, 2.25vw, 38px); line-height: 1.12; letter-spacing: -.035em; }
.command-hero-copy > p { margin: 6px 0 13px; color: #dcece5; font-size: 14px; }
.dashboard-status { display: flex; flex-wrap: wrap; gap: 8px; }
.dashboard-status > span { display: inline-flex; align-items: center; gap: 7px; min-height: 27px; padding: 5px 10px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(255,255,255,.09); color: #eff9f4; font-size: 11px; font-weight: 700; backdrop-filter: blur(4px); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #b9d8ca; box-shadow: 0 0 0 3px rgba(185,216,202,.12); }
.status-dot.is-live { background: #6ee7a5; box-shadow: 0 0 0 3px rgba(110,231,165,.14); }
.dashboard-quick-actions { min-width: 300px; padding: 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; background: rgba(5,44,31,.2); backdrop-filter: blur(8px); }
.dashboard-quick-actions > span { display: block; margin-bottom: 10px; color: #c9e2d7; font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.dashboard-quick-actions > div { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dashboard-quick-actions .button { min-height: 38px; }
.dashboard-action-primary { background: #fff; color: #12573d; box-shadow: 0 8px 22px rgba(3,32,22,.16); }
.dashboard-action-primary:hover { background: #f0faf5; color: #0b4732; }
.dashboard-action-primary svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.command-hero .button.secondary { border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.11); color: #fff; }
.command-hero .button.secondary:hover { background: rgba(255,255,255,.2); }
.dashboard-text-action { width: 100%; margin-top: 2px; color: #d8eee4; font-size: 12px; font-weight: 750; }
.dashboard-text-action:hover { color: #fff; }

.dashboard-waiting { position: relative; overflow: hidden; margin-bottom: 18px; padding: 0; border: 1px solid #e3bd62; border-radius: 17px; background: linear-gradient(120deg,#fffaf0,#fffdf8 62%,#f4fbf7); box-shadow: 0 14px 32px rgba(116,82,15,.11); }
.dashboard-waiting::after { content: ""; position: absolute; top: -80px; right: -55px; width: 190px; height: 190px; border: 30px solid rgba(207,153,38,.07); border-radius: 50%; pointer-events: none; }
.dashboard-waiting-heading { position: relative; z-index: 1; display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 13px; align-items: center; padding: 17px 20px; border-bottom: 1px solid #ead7a9; background: rgba(255,247,226,.66); }
.dashboard-waiting-heading > div { display: grid; }
.dashboard-waiting-heading > div > span { color: #9a6810; font-size: 9px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.dashboard-waiting-heading h2 { margin: 1px 0 2px; color: #533b0b; font-size: 20px; letter-spacing: -.02em; }
.dashboard-waiting-heading p { margin: 0; color: #806c43; font-size: 11px; }
.dashboard-waiting-pulse { display: grid; flex: 0 0 42px; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #e8f6ef; }
.dashboard-waiting-pulse i { width: 12px; height: 12px; border: 3px solid #b8e4cf; border-radius: 50%; background: #1f9a68; box-shadow: 0 0 0 6px rgba(31,154,104,.1); animation: dashboard-waiting-pulse 1.8s ease-out infinite; }
@keyframes dashboard-waiting-pulse { 0%,100% { box-shadow: 0 0 0 5px rgba(31,154,104,.11); } 50% { box-shadow: 0 0 0 10px rgba(31,154,104,0); } }
.dashboard-waiting-count { display: inline-flex; align-items: center; min-height: 30px; padding: 6px 10px; border: 1px solid #dfc37f; border-radius: 999px; background: #fff; color: #795510; font-size: 11px; font-weight: 850; }
.dashboard-waiting-list { position: relative; z-index: 1; display: grid; }
.dashboard-waiting-person { display: grid; grid-template-columns: auto minmax(220px,1.2fr) minmax(190px,.7fr) auto; gap: 16px; align-items: center; min-height: 102px; padding: 16px 20px; border-top: 1px solid #eee3c8; }
.dashboard-waiting-person:first-child { border-top: 0; }
.dashboard-waiting-avatar { display: grid; flex: 0 0 48px; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(145deg,#176f4b,#0f5039); color: #fff; font-size: 12px; font-weight: 900; letter-spacing: .04em; box-shadow: 0 8px 20px rgba(20,101,69,.16); }
.dashboard-waiting-identity, .dashboard-waiting-bp { display: grid; min-width: 0; }
.dashboard-waiting-identity > strong { overflow: hidden; color: #203e33; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-waiting-identity > span { color: #45675a; font-size: 11px; font-weight: 750; }
.dashboard-waiting-identity > small, .dashboard-waiting-bp > small { overflow: hidden; color: #718078; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-waiting-bp { gap: 1px; padding-left: 17px; border-left: 1px solid #e6ddc7; }
.dashboard-waiting-bp > span { color: #7b705b; font-size: 9px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.dashboard-waiting-bp > strong { color: #183e31; font-size: 21px; letter-spacing: -.03em; }
.dashboard-waiting-bp > strong i { color: #9aaca3; font-style: normal; font-weight: 500; }
.dashboard-waiting-bp > strong small { color: #6e8178; font-size: 9px; letter-spacing: 0; }
.dashboard-waiting-bp > strong.is-empty { margin: 3px 0; color: #536c61; font-size: 13px; letter-spacing: 0; }
.dashboard-waiting-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.dashboard-profile-link { color: #45665a; font-size: 11px; font-weight: 800; white-space: nowrap; }
.dashboard-join-button { min-height: 40px; padding-inline: 15px; background: #176f4b; white-space: nowrap; box-shadow: 0 7px 17px rgba(23,111,75,.17); }
@media (prefers-reduced-motion: reduce) { .dashboard-waiting-pulse i { animation: none; } }

.dashboard-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.dashboard-kpi { position: relative; display: flex; align-items: center; gap: 12px; min-height: 94px; overflow: hidden; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; }
.dashboard-kpi::after { content: ""; position: absolute; right: -26px; top: -33px; width: 88px; height: 88px; border-radius: 50%; background: currentColor; opacity: .045; }
.dashboard-kpi:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15,42,32,.08); }
.dashboard-kpi-icon { display: grid; flex: 0 0 40px; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: currentColor; }
.dashboard-kpi-icon svg { width: 22px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dashboard-kpi > div { display: grid; min-width: 0; }
.dashboard-kpi > div > span { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.dashboard-kpi strong { color: var(--ink); font-size: 25px; line-height: 1.15; letter-spacing: -.03em; }
.dashboard-kpi small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-kpi.is-green { color: #19734d; }
.dashboard-kpi.is-blue { color: #397db5; }
.dashboard-kpi.is-amber { color: #c58b1d; }
.dashboard-kpi.is-violet { color: #7456a3; }

.dashboard-workspace { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(320px, .85fr); gap: 14px; margin-bottom: 14px; align-items: start; }
.dashboard-lower-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(270px, .9fr) minmax(260px, .9fr); gap: 14px; margin-bottom: 14px; align-items: start; }
.dashboard-panel { padding: 18px; }
.dashboard-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 17px; }
.dashboard-section-heading.compact { align-items: center; margin-bottom: 14px; }
.dashboard-section-heading h2 { margin: 2px 0 3px; font-size: 19px; letter-spacing: -.02em; }
.dashboard-section-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.dashboard-section-heading > a { flex: 0 0 auto; margin-top: 5px; color: #2a6650; font-size: 12px; font-weight: 800; }
.dashboard-section-label { color: #527a69; font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.dashboard-section-label.is-amber { color: #9b6e18; }
.count-bubble, .subtle-stat { display: inline-flex; align-items: center; justify-content: center; min-height: 27px; padding: 5px 9px; border: 1px solid #d6e4de; border-radius: 999px; background: #f6faf8; color: #526d62; font-size: 11px; font-weight: 850; }
.count-bubble { min-width: 27px; border-color: #eddcaf; background: #fff8e8; color: #986a13; }

.schedule-list { display: grid; }
.schedule-item { display: grid; grid-template-columns: 96px minmax(150px, 1.15fr) minmax(150px, 1fr) 34px; gap: 12px; align-items: center; min-height: 62px; padding: 8px 3px; border-top: 1px solid #e5ece9; }
.schedule-item:first-child { border-top: 0; }
.schedule-item time { color: #175d42; font-size: 13px; font-weight: 850; }
.schedule-item.is-overdue time, .schedule-item.is-overdue .schedule-visit small { color: #a43d32; }
.schedule-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.schedule-person > div, .schedule-visit { display: grid; min-width: 0; }
.schedule-person strong, .schedule-visit strong { overflow: hidden; color: #263f36; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.schedule-person small, .schedule-visit small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.person-avatar { display: grid; flex: 0 0 36px; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(145deg, #e0f2e9, #f2f8f5); color: #23684e; font-size: 11px; font-weight: 900; letter-spacing: .04em; }
.icon-link { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #d7e4de; border-radius: 9px; background: #f8fbf9; color: #285f4b; font-weight: 900; transition: transform .16s ease, background .16s ease; }
.icon-link:hover { background: #eaf5ef; text-decoration: none; transform: translateX(2px); }

.attention-panel { background: linear-gradient(180deg, #fff 0%, #fffdfa 100%); }
.attention-panel.is-clear { padding: 15px 17px; }
.attention-panel.is-clear .dashboard-section-heading { margin-bottom: 8px; }
.attention-panel.has-items { border-color: #ead9ad; box-shadow: 0 10px 26px rgba(114,80,13,.08); }
.attention-list { display: grid; gap: 8px; }
.attention-item { display: grid; grid-template-columns: 7px minmax(0, 1fr) auto; gap: 11px; align-items: center; padding: 11px; border: 1px solid #e3e9e6; border-radius: 11px; background: #fff; color: var(--ink); transition: border-color .16s ease, transform .16s ease; }
.attention-item:hover { border-color: #c8d9d1; text-decoration: none; transform: translateX(2px); }
.attention-indicator { width: 7px; height: 36px; border-radius: 6px; background: #7d9a8f; }
.attention-item.is-urgent .attention-indicator { background: #c43b31; }
.attention-item.is-warning .attention-indicator { background: #d69a29; }
.attention-item.is-info .attention-indicator { background: #4d87b8; }
.attention-item > span:nth-child(2) { display: grid; min-width: 0; }
.attention-item strong, .attention-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attention-item strong { font-size: 12px; }
.attention-item small { color: var(--muted); font-size: 10px; }
.attention-item > span:last-child { color: #789087; font-weight: 900; }
.dashboard-clear-state, .dashboard-empty-state { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 10px 12px; border: 1px dashed #cfddd7; border-radius: 10px; background: #f8fbf9; }
.dashboard-clear-state > span, .dashboard-empty-icon { display: grid; flex: 0 0 39px; place-items: center; width: 39px; height: 39px; border-radius: 12px; background: #e4f3eb; color: #20714e; font-weight: 900; }
.dashboard-empty-icon svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.dashboard-clear-state > div, .dashboard-empty-state > div { display: grid; }
.dashboard-clear-state small, .dashboard-empty-state small { color: var(--muted); }
.dashboard-empty-inline { padding: 13px; border: 1px dashed #d4e0db; border-radius: 10px; background: #fafcfa; color: var(--muted); font-size: 12px; text-align: center; }

.appointment-tabs { display: flex; gap: 5px; margin-bottom: 8px; padding: 4px; border-radius: 10px; background: #edf4f0; }
.appointment-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 34px; padding: 7px 12px; border: 0; border-radius: 8px; color: #5b7167; background: transparent; font: inherit; font-size: 11px; font-weight: 850; cursor: pointer; }
.appointment-tabs button span { display: grid; min-width: 20px; height: 20px; padding: 0 5px; place-items: center; border-radius: 999px; background: rgba(65,103,87,.1); font-size: 9px; }
.appointment-tabs button[aria-selected="true"] { color: #174f3b; background: #fff; box-shadow: 0 2px 7px rgba(27,75,57,.09); }
.appointment-tabs button:focus-visible { outline: 2px solid #5a9b7d; outline-offset: 1px; }
.appointment-tab-panel[hidden] { display: none; }
.appointments-more { margin: 8px 0 0; color: var(--muted); font-size: 10px; text-align: right; }

.reading-list { display: grid; }
.reading-item { display: grid; grid-template-columns: 134px minmax(130px, 1fr) minmax(160px, .9fr); gap: 13px; align-items: center; padding: 11px 3px; border-top: 1px solid #e6edea; color: var(--ink); }
.reading-item:first-child { border-top: 0; }
.reading-item:hover { text-decoration: none; }
.reading-item > span:nth-child(2) { display: grid; }
.reading-item > span:nth-child(2) strong { font-size: 12px; }
.reading-item > span:nth-child(2) small, .reading-meta, .reading-meta small { color: var(--muted); font-size: 10px; }
.bp-value { display: flex; align-items: baseline; gap: 3px; }
.bp-value strong { color: #183e31; font-size: 21px; letter-spacing: -.03em; }
.bp-value i { color: #8da199; font-size: 14px; font-style: normal; }
.bp-value small { margin-left: 2px; color: #7a8d86; font-size: 9px; }
.reading-meta { display: grid; justify-items: end; text-align: right; }

.progress-percent { color: #19734d; font-size: 20px; }
.progress-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-bottom: 10px; }
.progress-summary > div { display: grid; gap: 2px; padding: 9px 10px; border-radius: 9px; background: #f3f8f5; }
.progress-summary span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.progress-summary strong { color: #27483b; font-size: 12px; }
.progress-track { width: 100%; height: 10px; overflow: hidden; border-radius: 999px; background: #e7efeb; }
.progress-track > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #19734d, #43a477); box-shadow: 0 0 12px rgba(25,115,77,.2); }
.site-progress-list { display: grid; gap: 8px; margin-top: 13px; }
.site-progress-row { display: grid; grid-template-columns: minmax(130px, .8fr) minmax(150px, 1fr); gap: 14px; align-items: center; }
.site-progress-row > div { display: grid; }
.site-progress-row strong { font-size: 12px; }
.site-progress-row small { color: var(--muted); font-size: 10px; }
.site-progress-row > span { height: 6px; overflow: hidden; border-radius: 999px; background: #edf2ef; }
.site-progress-row i { display: block; height: 100%; border-radius: inherit; background: #7bb99d; }

.recent-participant-list { display: grid; }
.recent-participant-list > a:first-child { border-top: 0; }
.recent-participant-list > a:hover { text-decoration: none; }
.recent-participant-list > a { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 11px; align-items: center; min-height: 57px; padding: 9px 3px; border-top: 1px solid #e5ece9; color: var(--ink); }
.recent-participant-list > a > span:nth-child(2) { display: grid; min-width: 0; }
.recent-participant-list strong, .recent-participant-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-participant-list strong { font-size: 12px; }
.recent-participant-list small { color: var(--muted); font-size: 10px; }

.protocol-details { margin-bottom: 12px; border: 1px solid #d7e4de; border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.protocol-details summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; color: #29493d; font-weight: 800; cursor: pointer; }
.protocol-details summary small { color: var(--muted); font-weight: 600; }
.protocol-details[open] summary { border-bottom: 1px solid #e5ece9; }
.protocol-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: #e4ece8; }
.protocol-grid > div { display: grid; gap: 3px; padding: 16px 20px; background: #fff; }
.protocol-grid span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.protocol-grid strong { font-size: 12px; }

@media (max-width: 1180px) {
    .dashboard-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-workspace { grid-template-columns: 1fr; }
    .dashboard-lower-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .dashboard-lower-grid > :last-child { grid-column: 1 / -1; }
    .attention-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-waiting-person { grid-template-columns: auto minmax(220px,1fr) minmax(180px,.7fr); }
    .dashboard-waiting-actions { grid-column: 2 / -1; justify-content: flex-start; }
}
@media (max-width: 900px) {
    .command-hero { grid-template-columns: 1fr; }
    .dashboard-quick-actions { min-width: 0; }
    .dashboard-lower-grid { grid-template-columns: 1fr; }
    .dashboard-lower-grid > :last-child { grid-column: auto; }
}
@media (max-width: 700px) {
    .dashboard-kpis { grid-template-columns: 1fr; }
    .schedule-item { grid-template-columns: 68px minmax(0, 1fr) 32px; }
    .schedule-visit { grid-column: 2; }
    .schedule-item .icon-link { grid-column: 3; grid-row: 1 / span 2; }
    .attention-list { grid-template-columns: 1fr; }
    .reading-item { grid-template-columns: 118px minmax(0, 1fr); }
    .reading-meta { grid-column: 2; justify-items: start; text-align: left; }
    .protocol-grid { grid-template-columns: 1fr; }
    .dashboard-waiting-heading { grid-template-columns: auto minmax(0,1fr); }
    .dashboard-waiting-count { grid-column: 2; justify-self: start; }
    .dashboard-waiting-person { grid-template-columns: auto minmax(0,1fr); gap: 12px; }
    .dashboard-waiting-bp { grid-column: 2; padding: 10px 0 0; border-top: 1px solid #e6ddc7; border-left: 0; }
    .dashboard-waiting-actions { grid-column: 2; }
}
@media (max-width: 520px) {
    .command-hero { padding: 24px 20px; }
    .dashboard-quick-actions > div { align-items: stretch; flex-direction: column; }
    .dashboard-quick-actions .button { justify-content: center; width: 100%; }
    .dashboard-panel { padding: 18px; }
    .dashboard-section-heading { align-items: flex-start; }
    .site-progress-row { grid-template-columns: 1fr; gap: 6px; }
    .dashboard-waiting-heading { padding: 15px; }
    .dashboard-waiting-person { padding: 15px; }
    .dashboard-waiting-actions { align-items: stretch; flex-direction: column-reverse; }
    .dashboard-waiting-actions .button { justify-content: center; width: 100%; }
    .dashboard-profile-link { text-align: center; }
    .appointment-tabs button { flex: 1; padding-inline: 8px; }
    .progress-summary { grid-template-columns: 1fr; }
}

/* Shared workflow hero and telehealth directory. */
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.workflow-hero { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 18px; padding: 24px 26px; border: 1px solid #cee1d8; border-radius: 17px; background: linear-gradient(120deg, #fff 0%, #f2f8f5 64%, #e4f2eb 100%); box-shadow: var(--shadow); }
.workflow-hero-copy { display: flex; align-items: center; gap: 17px; }
.workflow-hero-icon { display: grid; flex: 0 0 56px; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(145deg, #176f4b, #0f5039); color: #fff; box-shadow: 0 10px 24px rgba(20,101,69,.2); }
.workflow-hero-icon svg { width: 27px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.workflow-hero h2 { margin: 2px 0 4px; font-size: 24px; letter-spacing: -.025em; }
.workflow-hero p { margin: 0; color: var(--muted); }
.workflow-hero-stats { display: flex; align-items: stretch; gap: 9px; }
.workflow-hero-stats > span { display: grid; align-content: center; min-width: 92px; padding: 10px 13px; border: 1px solid #d5e4dd; border-radius: 11px; background: rgba(255,255,255,.78); color: var(--muted); font-size: 10px; font-weight: 750; text-align: center; }
.workflow-hero-stats strong { color: #234b3d; font-size: 20px; line-height: 1.05; }
.workflow-hero-stats .video-engine-status { display: flex; align-items: center; gap: 7px; min-width: 120px; color: #376452; }
.video-engine-status i { width: 7px; height: 7px; border-radius: 50%; background: #d09b2e; }
.video-engine-status.is-ready i { background: #2ba66d; box-shadow: 0 0 0 4px rgba(43,166,109,.1); }
.system-notice { display: flex; align-items: center; gap: 12px; padding: 14px 17px; border: 1px solid #c9ded5; border-radius: 13px; background: #f0f8f4; }
.system-notice > span:first-child { display: grid; flex: 0 0 32px; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: #dcefe6; color: #1b6b4a; font-weight: 900; }
.system-notice > div { flex: 1; }
.system-notice strong { display: block; }
.system-notice p { margin: 1px 0 0; color: var(--muted); font-size: 11px; }
.system-notice.is-danger { border-color: #edc9c5; background: #fff6f5; }
.system-notice.is-danger > span:first-child { background: #fde4e1; color: #a62d24; }
.telehealth-directory { padding: 22px; }
.telehealth-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.telehealth-toolbar h2 { margin: 2px 0 3px; font-size: 20px; }
.telehealth-toolbar p { margin: 0; color: var(--muted); font-size: 12px; }
.telehealth-search { position: relative; display: block; width: min(390px, 42%); }
.telehealth-search svg { position: absolute; z-index: 1; left: 15px; top: 50%; width: 18px; transform: translateY(-50%); fill: none; stroke: #567269; stroke-width: 1.9; stroke-linecap: round; pointer-events: none; }
.telehealth-search input {
    width: 100%;
    min-height: 46px;
    padding: 11px 42px 11px 44px;
    border: 1px solid #c8d9d1;
    border-radius: 12px;
    outline: 0;
    background: #f8fbf9;
    color: #203d33;
    font: inherit;
    font-size: 13px;
    box-shadow: 0 3px 12px rgba(20, 57, 43, .04);
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.telehealth-search input::placeholder { color: #7a8d85; }
.telehealth-search input:hover { border-color: #9fc1b2; background: #fff; }
.telehealth-search input:focus { border-color: var(--uab-green-2); background: #fff; box-shadow: 0 0 0 4px rgba(25, 115, 77, .12), 0 5px 16px rgba(20, 57, 43, .06); }
.telehealth-search:focus-within svg { stroke: var(--uab-green-2); }
.visit-filter-tabs { display: flex; gap: 6px; margin: 18px 0; padding-bottom: 13px; border-bottom: 1px solid #e1e9e5; overflow-x: auto; }
.visit-filter-tabs button { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 7px 12px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #60766d; font: inherit; font-size: 12px; font-weight: 750; cursor: pointer; }
.visit-filter-tabs button span { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #eaf0ed; font-size: 9px; }
.visit-filter-tabs button:hover { background: #f2f7f4; }
.visit-filter-tabs button.is-active { border-color: #bddaca; background: #e9f5ef; color: #175e42; }
.visit-filter-tabs button.is-active span { background: #cfe8dc; color: #16593f; }
.visit-room-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.visit-room-card { display: grid; gap: 11px; padding: 14px; border: 1px solid #dce7e2; border-radius: 13px; background: #fff; box-shadow: 0 3px 14px rgba(20,57,43,.035); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.visit-room-card:hover { border-color: #bdd4ca; box-shadow: 0 10px 24px rgba(20,57,43,.075); transform: translateY(-2px); }
.visit-room-card[hidden] { display: none; }
.visit-room-top { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.visit-room-top > div { display: grid; min-width: 0; }
.visit-room-top a { overflow: hidden; color: #203f33; font-size: 13px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.visit-room-top small { color: var(--muted); font-size: 10px; }
.visit-room-time { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; background: #f4f8f6; }
.visit-room-time > span { display: grid; flex: 0 0 32px; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: #e3f1ea; color: #21704f; }
.visit-room-time svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.visit-room-time > div { display: grid; }
.visit-room-time strong { font-size: 12px; }
.visit-room-time small { color: var(--muted); font-size: 10px; }
.visit-room-care { display: flex; align-items: center; min-width: 0; gap: 6px; color: #6d8179; font-size: 9px; }
.visit-room-care > span { flex: 0 0 auto; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.visit-room-care strong { overflow: hidden; color: #3f5a50; font-size: 9px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.visit-room-care i { color: #a1b0aa; font-style: normal; }
.visit-room-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; border-top: 1px solid #e5ece9; }
.visit-room-footer > span:first-child { display: flex; align-items: center; gap: 7px; min-width: 0; overflow: hidden; color: #71847c; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.visit-room-footer .button { flex: 0 0 auto; min-height: 34px; padding: 7px 11px; font-size: 11px; }
@media (max-width: 1400px) { .visit-room-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1050px) { .workflow-hero { align-items: flex-start; flex-direction: column; } .visit-room-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .telehealth-toolbar { align-items: stretch; flex-direction: column; } .telehealth-search { width: 100%; } .workflow-hero-stats { flex-wrap: wrap; width: 100%; } .workflow-hero-stats > span { flex: 1; } }
@media (max-width: 500px) { .workflow-hero { padding: 20px; } .workflow-hero-copy { align-items: flex-start; } .workflow-hero-icon { flex-basis: 47px; width: 47px; height: 47px; } .visit-room-care { align-items: flex-start; flex-wrap: wrap; } .visit-room-footer { align-items: stretch; flex-direction: column; } .visit-room-footer .button { justify-content: center; } }

/* Access control workspace. */
.access-hero { margin-bottom: 16px; }
.access-hero .workflow-hero-icon svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.access-create-card, .access-directory-card { padding: 22px; }
.access-section-heading { align-items: flex-start; margin-bottom: 18px; }
.access-section-heading h2 { margin: 2px 0 3px; font-size: 20px; }
.access-section-heading p { font-size: 12px; }
.access-security-note { display: inline-flex; align-items: center; min-height: 28px; padding: 5px 10px; border: 1px solid #cde1d7; border-radius: 999px; background: #f1f8f4; color: #3d6857; font-size: 10px; font-weight: 800; }
.access-create-form { overflow: hidden; border: 1px solid #dce8e2; border-radius: 13px; background: #fbfdfc; }
.access-create-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 17px; }
.access-create-grid .field { margin: 0; }
.access-create-grid .field label { font-size: 11px; }
.access-create-grid .field input, .access-create-grid .field select { min-height: 43px; border-color: #cadbd3; }
.access-form-footer { display: grid; grid-template-columns: minmax(320px, 1fr) auto; align-items: center; gap: 16px; padding: 13px 17px; border-top: 1px solid #dce8e2; background: linear-gradient(90deg, #f2f8f5, #edf6f1); }
.access-form-guidance { display: flex; align-items: center; gap: 9px; min-width: 0; }
.access-form-guidance > span { display: grid; flex: 0 0 27px; place-items: center; width: 27px; height: 27px; border-radius: 8px; background: #dcefe5; color: #176547; font-weight: 900; }
.access-form-guidance p { color: #5e746b; font-size: 10px; line-height: 1.4; }
.access-enabled-control, .access-row-toggle { display: inline-flex; align-items: center; gap: 7px; color: #355348; font-size: 11px; font-weight: 800; white-space: nowrap; cursor: pointer; }
.access-enabled-control input, .access-row-toggle input { width: 17px; height: 17px; margin: 0; accent-color: var(--uab-green-2); }
.access-table-frame { overflow: hidden; border: 1px solid #dfe9e4; border-radius: 12px; }
.access-table-frame .table { margin: 0; border: 0; border-radius: 0; }
.access-role-table th, .access-user-table th { background: #f1f6f3; color: #597168; font-size: 9px; letter-spacing: .08em; }
.access-role-table td { vertical-align: top; }
.access-role-table td:first-child { width: 250px; }
.access-role-table td:nth-child(2) { width: 125px; }
.access-role-table td strong { color: #234238; }
.access-role-table td .muted { display: inline-block; margin-top: 2px; font-size: 11px; }
.access-role-table code { background: #eef4f1; color: #416157; font-size: 10px; }
.access-role-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.access-role-card { display: grid; align-content: start; gap: 9px; min-width: 0; padding: 14px; border: 1px solid #dce8e2; border-radius: 12px; background: linear-gradient(145deg, #fff 0%, #fbfdfc 100%); box-shadow: 0 3px 12px rgba(20,57,43,.025); transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.access-role-card:hover { border-color: #bad4c8; box-shadow: 0 9px 22px rgba(20,57,43,.065); transform: translateY(-2px); }
.access-role-card-top { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 9px; }
.access-role-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: #def0e7; color: #196746; font-size: 9px; font-weight: 900; letter-spacing: .04em; }
.access-role-card h3 { margin: 0 0 2px; color: #203f34; font-size: 14px; }
.access-role-card code { padding: 2px 5px; border: 0; background: #eef4f1; color: #60766d; font-size: 9px; }
.access-role-card > p { min-height: 28px; color: #657b72; font-size: 10px; }
.access-permission-count { padding: 5px 8px; border: 1px solid #d8e5df; border-radius: 999px; background: #f5f9f7; color: #567066; font-size: 9px; font-weight: 800; white-space: nowrap; }
.access-category-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 15px; border-top: 1px solid #e2ebe7; }
.access-category-list > div { display: grid; grid-template-columns: minmax(70px, .72fr) minmax(0, 1fr); align-items: baseline; gap: 6px; padding: 6px 2px; border-bottom: 1px solid #e2ebe7; }
.access-category-list strong { color: #315c4b; font-size: 10px; }
.access-category-list span { overflow: hidden; color: #74867f; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.access-user-table { min-width: 1180px; }
.access-user-table td { padding-block: 9px; }
.access-user-identity { display: flex; align-items: center; gap: 9px; min-width: 190px; }
.access-user-identity > span { display: grid; flex: 0 0 32px; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: #e2f1e9; color: #22694c; font-size: 9px; font-weight: 900; }
.access-user-identity > div { display: grid; }
.access-user-identity strong { color: #29473c; font-size: 11px; }
.access-user-identity small { color: #75877f; font-size: 9px; }
.access-site-badge, .access-role-name, .access-current-user { display: inline-flex; padding: 5px 8px; border-radius: 999px; background: #f1f6f3; color: #4d685e; font-size: 10px; font-weight: 750; white-space: nowrap; }
.access-current-user { background: #e8f5ee; color: #176441; }
.access-manage-form { display: grid; grid-template-columns: 90px minmax(160px, 1fr) auto auto; align-items: center; gap: 7px; min-width: 420px; }
.access-manage-form select { width: 100%; min-height: 34px; padding: 6px 28px 6px 9px; border: 1px solid #cbdad3; border-radius: 8px; background: #fff; color: #29473c; font: inherit; font-size: 10px; }
.access-manage-form select:focus { outline: 3px solid rgba(25,115,77,.12); border-color: var(--uab-green-2); }
.access-manage-form .button { min-height: 34px; padding: 7px 11px; font-size: 10px; }
.access-manage-form > p { grid-column: 1 / -1; font-size: 9px; }
.access-invite-form { display: flex; align-items: center; justify-content: flex-end; gap: 7px; margin-top: 7px; }
.access-invite-form .button { min-height: 30px; padding: 5px 9px; font-size: 9px; }
.invite-status { display: inline-flex; align-items: center; gap: 5px; color: #6b7d76; font-size: 9px; font-weight: 800; white-space: nowrap; }
.invite-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #a8b5b0; }
.invite-status-pending::before { background: #c28b20; }
.invite-status-expired::before { background: #b53c31; }
@media (max-width: 1300px) { .access-category-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1150px) { .access-create-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .access-role-grid { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .access-form-footer { grid-template-columns: 1fr; align-items: start; } .access-form-footer .button { justify-self: start; } }
@media (max-width: 620px) { .access-create-grid, .access-category-list { grid-template-columns: 1fr; } .access-create-card, .access-directory-card { padding: 17px; } }

/* Login activity workspace. */
.login-log-hero { margin-bottom: 16px; }
.login-log-hero .workflow-hero-icon svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.login-log-card { padding: 22px; }
.login-log-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.login-log-toolbar h2 { margin: 2px 0 3px; font-size: 20px; }
.login-log-toolbar p { color: var(--muted); font-size: 11px; }
.log-search { position: relative; display: block; width: min(390px, 42%); }
.log-search svg { position: absolute; z-index: 1; left: 14px; top: 50%; width: 17px; transform: translateY(-50%); fill: none; stroke: #60796f; stroke-width: 1.9; stroke-linecap: round; pointer-events: none; }
.log-search input { width: 100%; min-height: 44px; padding: 10px 14px 10px 41px; border: 1px solid #c8d9d1; border-radius: 11px; outline: 0; background: #f8fbf9; color: #203d33; font: inherit; font-size: 12px; transition: border-color .16s ease, box-shadow .16s ease, background .16s ease; }
.log-search input:focus { border-color: var(--uab-green-2); background: #fff; box-shadow: 0 0 0 4px rgba(25,115,77,.12); }
.login-log-filters { display: flex; gap: 6px; margin: 18px 0 13px; padding-bottom: 13px; border-bottom: 1px solid #e1e9e5; overflow-x: auto; }
.login-log-filters button { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 7px 11px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #60766d; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.login-log-filters button span { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #eaf0ed; font-size: 8px; }
.login-log-filters button:hover { background: #f2f7f4; }
.login-log-filters button.is-active { border-color: #bddaca; background: #e9f5ef; color: #175e42; }
.login-log-filters button.is-active span { background: #cfe8dc; color: #16593f; }
.login-log-privacy { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; padding: 10px 12px; border: 1px solid #d4e6dd; border-radius: 10px; background: #f3f9f6; }
.login-log-privacy > span { display: grid; flex: 0 0 24px; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: #dcefe5; color: #176547; font-size: 10px; font-weight: 900; }
.login-log-privacy p { color: #5e746b; font-size: 10px; }
.login-log-table-frame { overflow: hidden; border: 1px solid #dfe9e4; border-radius: 12px; }
.login-log-table { min-width: 860px; margin: 0; border: 0; border-radius: 0; }
.login-log-table th { background: #f1f6f3; color: #597168; font-size: 9px; letter-spacing: .08em; }
.login-log-table td { padding-block: 10px; }
.log-event-id { color: #71847c; font-size: 10px; font-weight: 750; }
.log-time { display: grid; min-width: 135px; }
.log-time strong { color: #334f45; font-size: 11px; }
.log-time small { color: #75877f; font-size: 9px; }
.log-event { display: flex; align-items: center; gap: 9px; min-width: 220px; }
.log-event strong { color: #2c493e; font-size: 11px; }
.log-event-dot { width: 8px; height: 8px; border-radius: 50%; background: #9ca9a4; box-shadow: 0 0 0 4px rgba(113,132,124,.10); }
.log-event-dot.is-success { background: #27905f; box-shadow: 0 0 0 4px rgba(39,144,95,.11); }
.log-event-dot.is-attention { background: #c44a3d; box-shadow: 0 0 0 4px rgba(196,74,61,.10); }
.log-account { display: inline-flex; padding: 5px 8px; border-radius: 8px; background: #f2f6f4; color: #405e53; font-size: 10px; font-weight: 750; }
.log-ip { border: 0; background: #f4f7f6; color: #576e65; font-size: 9px; }
@media (max-width: 760px) { .login-log-toolbar { align-items: stretch; flex-direction: column; } .log-search { width: 100%; } }

/* One-time staff invitation. */
.invitation-shell { display: grid; grid-template-columns: minmax(320px, .85fr) minmax(400px, 1fr); width: min(980px, calc(100% - 32px)); min-height: 620px; margin: 42px auto; overflow: hidden; border: 1px solid #d8e5df; border-radius: 20px; background: #fff; box-shadow: 0 24px 70px rgba(15,54,41,.13); }
.invitation-intro { display: flex; flex-direction: column; justify-content: center; padding: 55px; background: linear-gradient(155deg, #0f503b 0%, #0a3a2f 58%, #072c27 100%); color: #fff; }
.invitation-intro .dashboard-section-label { color: #b9d8ca; }
.invitation-intro h1 { max-width: 430px; margin: 13px 0 15px; font-size: clamp(30px, 4vw, 45px); line-height: 1.08; }
.invitation-intro > p { max-width: 430px; margin: 0; color: #c8ddd4; font-size: 15px; }
.invitation-security-note { display: flex; align-items: center; gap: 11px; margin-top: 35px; padding: 13px; border: 1px solid rgba(255,255,255,.13); border-radius: 12px; background: rgba(255,255,255,.07); }
.invitation-security-note > span { display: grid; flex: 0 0 30px; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(255,255,255,.12); font-weight: 900; }
.invitation-security-note > div { display: grid; }
.invitation-security-note strong { font-size: 11px; }
.invitation-security-note small { color: #bcd3ca; font-size: 9px; }
.invitation-panel { align-self: center; width: min(460px, calc(100% - 48px)); margin: 0 auto; border: 0; box-shadow: none; }
.invitation-logo { display: block; width: min(270px, 100%); margin-bottom: 25px; }
.invitation-person { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 11px; border: 1px solid #d8e6df; border-radius: 11px; background: #f4f9f6; }
.invitation-person > span { display: grid; flex: 0 0 37px; place-items: center; width: 37px; height: 37px; border-radius: 10px; background: #dcefe5; color: #176547; font-size: 10px; font-weight: 900; }
.invitation-person > div { display: grid; }
.invitation-person strong { color: #29473c; font-size: 12px; }
.invitation-person small { color: #71847c; font-size: 10px; }
.invitation-panel h2 { margin: 0 0 13px; color: #193c31; font-size: 23px; }
.invitation-submit { width: 100%; min-height: 45px; margin-top: 5px; }
.invitation-expired { display: grid; justify-items: center; gap: 7px; padding: 25px; border: 1px solid #edcfcb; border-radius: 13px; background: #fff7f6; text-align: center; }
.invitation-expired > span { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 50%; background: #f8dedb; color: #a52d23; font-weight: 900; }
.invitation-expired h2, .invitation-expired p { margin: 0; }
@media (max-width: 800px) { .invitation-shell { grid-template-columns: 1fr; margin: 16px auto; } .invitation-intro { padding: 32px; } .invitation-intro h1 { font-size: 30px; } .invitation-security-note { margin-top: 22px; } .invitation-panel { padding-block: 35px; } }

/* Participant registry refresh. */
.participant-enrollment-card, .participant-registry-card { padding: 22px; }
.participant-enrollment-card { position: relative; width: 100%; overflow: hidden; }
.participant-enrollment-card::after { content: ""; position: absolute; z-index: 0; right: -76px; top: -83px; width: 165px; height: 165px; border: 24px solid rgba(25,115,77,.035); border-radius: 50%; pointer-events: none; }
.participant-enrollment-card > * { position: relative; z-index: 1; }
.participant-enrollment-card .panel-header h2, .participant-registry-card .panel-header h2 { margin: 2px 0 3px; font-size: 20px; }
.redcap-loader { display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid #dce7e2; border-radius: 11px; background: #f6faf8; }
.redcap-loader .button { min-height: 36px; }
.participant-enrollment-form { overflow: hidden; border: 1px solid #dbe7e1; border-radius: 14px; background: #fff; }
.enrollment-sections { display: grid; grid-template-columns: minmax(360px, .9fr) minmax(520px, 1.2fr); grid-template-rows: auto auto; gap: 12px; padding: 12px; background: #f3f7f5; }
.enrollment-section { display: block; padding: 16px; border: 1px solid #dce7e2; border-radius: 12px; background: #fff; }
.enrollment-section:nth-child(1) { grid-row: 1 / span 2; }
.enrollment-section:nth-child(2) { grid-column: 2; grid-row: 1; }
.enrollment-section:nth-child(3) { grid-column: 2; grid-row: 2; }
.enrollment-section-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.enrollment-section-heading > span { display: grid; flex: 0 0 27px; place-items: center; width: 27px; height: 27px; border-radius: 8px; background: #e5f3ec; color: #176547; font-size: 11px; font-weight: 900; }
.enrollment-section-heading > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 9px; }
.enrollment-section-heading h3 { margin: 0; color: #203d33; font-size: 13px; }
.enrollment-section-heading p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.35; }
.enrollment-grid { display: grid; gap: 10px 13px; align-items: start; }
.enrollment-grid-participant { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.enrollment-grid-participant > .field:nth-child(1) { grid-column: 1; grid-row: 1; }
.enrollment-grid-participant > .field:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
.enrollment-grid-participant > .field:nth-child(3) { grid-column: 2; grid-row: 1; }
.enrollment-grid-participant > .field:nth-child(4) { grid-column: 1; grid-row: 3; }
.enrollment-grid-participant > .field:nth-child(5) { grid-column: 2; grid-row: 3; }
.enrollment-grid-schedule { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.enrollment-grid-schedule > .field:nth-child(3) { grid-column: 1 / -1; }
.enrollment-grid-care { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.enrollment-grid-care .reminder-option { grid-column: 1 / -1; }
.participant-enrollment-form .field { margin: 0; }
.participant-enrollment-form .field label { margin-bottom: 6px; color: #29483d; font-size: 11px; font-weight: 800; }
.participant-enrollment-form .field input,
.participant-enrollment-form .field select { min-height: 43px; border-color: #cadbd3; background: #fff; }
.participant-enrollment-form .field small { display: block; margin-top: 5px; color: #71837c; font-size: 9px; }
.optional-label { display: inline-flex; margin-left: 5px; padding: 2px 6px; border-radius: 999px; background: #edf2f0; color: #71827b; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.conditional-required-marker { margin-left: 2px; color: #b42318; font-weight: 900; }
.reminder-option { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 58px; padding: 9px 12px; border: 1px solid #d7e5de; border-radius: 11px; background: #f3f8f5; }
.reminder-option > div { display: grid; gap: 2px; }
.reminder-option strong { color: #2b493e; font-size: 11px; }
.reminder-option small { color: var(--muted); font-size: 9px; }
.toggle-control { display: grid; grid-template-columns: auto; justify-items: center; gap: 3px; color: #567066; font-size: 9px; font-weight: 850; cursor: pointer; }
.toggle-control input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.toggle-control > span { position: relative; display: block; width: 38px; height: 22px; border-radius: 999px; background: #b9c7c1; box-shadow: inset 0 0 0 1px rgba(0,0,0,.04); transition: background .16s ease; }
.toggle-control > span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.18); transition: transform .16s ease; }
.toggle-control input:checked + span { background: #19734d; }
.toggle-control input:checked + span::after { transform: translateX(16px); }
.toggle-control input:focus-visible + span { outline: 3px solid rgba(25,115,77,.2); outline-offset: 2px; }
.enrollment-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 13px 17px; background: linear-gradient(90deg, #f6faf8, #eef7f2); }
.enrollment-confirmation { min-width: 0; }
.verification-icon { display: grid; flex: 0 0 33px; place-items: center; width: 33px; height: 33px; border-radius: 10px; background: #dcefe5; color: #1b704d; font-weight: 900; }
.enrollment-confirmation:has(.verification-icon) { display: flex; align-items: center; gap: 11px; }
.enrollment-confirmation > div { display: grid; }
.enrollment-confirmation strong { color: #27463a; font-size: 11px; }
.enrollment-confirmation small { color: var(--muted); font-size: 9px; }
.confirmation-check { display: flex; align-items: center; gap: 11px; cursor: pointer; }
.confirmation-check input { flex: 0 0 18px; width: 18px; height: 18px; accent-color: var(--uab-green-2); }
.confirmation-check > span { display: grid; }
.participant-enroll-action { flex: 0 0 auto; min-height: 43px; padding-inline: 17px; }
.participant-registry-card .table-scroll { border: 1px solid #e2eae6; border-radius: 12px; }
.participant-registry-card .table { margin: 0; }
.participant-registry-card .table thead th { background: #f3f7f5; color: #597168; font-size: 9px; letter-spacing: .07em; text-transform: uppercase; }
.participant-registry-card .table tbody tr { transition: background .14s ease; }
.participant-registry-card .table tbody tr:hover { background: #f5faf7; }
.participant-record-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 850; }
.participant-record-link > span { display: grid; flex: 0 0 28px; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #e4f2eb; color: #276c51; font-size: 8px; letter-spacing: .03em; }
@media (max-width: 1100px) { .enrollment-sections { grid-template-columns: 1fr; grid-template-rows: auto; } .enrollment-section:nth-child(n) { grid-column: 1; grid-row: auto; } }
@media (max-width: 760px) { .enrollment-grid-participant > .field:nth-child(n) { grid-column: auto; grid-row: auto; } .enrollment-site-field { grid-column: 1 / -1 !important; } }
@media (max-width: 650px) { .redcap-loader { align-items: flex-start; flex-direction: column; } .enrollment-section { padding: 18px; } .enrollment-grid-participant, .enrollment-grid-schedule, .enrollment-grid-care { grid-template-columns: 1fr; } .enrollment-site-field, .reminder-option { grid-column: auto !important; } .enrollment-footer { align-items: stretch; flex-direction: column; } .participant-enroll-action { width: 100%; } }

/* Participant scheduling and visit invitation. */
.visit-scheduling-panel { display: grid; gap: 9px; margin: 16px 0; padding: 13px; border: 1px solid #cfe2d9; border-radius: 12px; background: linear-gradient(145deg, #f5faf7, #eef7f2); }
.visit-scheduling-panel-heading { display: flex; align-items: center; gap: 9px; }
.visit-scheduling-panel-heading > span { display: grid; flex: 0 0 30px; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #dcefe6; color: #176848; font-size: 20px; font-weight: 900; }
.visit-scheduling-panel-heading > div { display: grid; gap: 1px; }
.visit-scheduling-panel-heading strong { color: #24473a; font-size: 12px; }
.visit-scheduling-panel-heading small { color: #71837c; font-size: 9px; }
.visit-scheduling-panel label { color: #355448; font-size: 10px; font-weight: 800; }
.visit-scheduling-panel .invite-row input { min-width: 0; }
.visit-scheduling-panel .button { white-space: nowrap; }

.scheduling-page { min-height: 100vh; margin: 0; background: radial-gradient(circle at 88% 8%, rgba(172,219,199,.34), transparent 30%), linear-gradient(145deg, #edf5f1, #f8faf9 55%, #eef5f2); color: #203d33; }
.scheduling-shell { width: min(1080px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 56px; }
.scheduling-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 22px; }
.scheduling-brand > span { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 13px; background: linear-gradient(145deg, #197a53, #10583d); color: #fff; box-shadow: 0 8px 20px rgba(19,103,72,.18); font-weight: 900; }
.scheduling-brand > div { display: grid; }
.scheduling-brand strong { font-size: 17px; letter-spacing: .01em; }
.scheduling-brand small { color: #6d8179; font-size: 11px; }
.scheduling-card { overflow: hidden; padding: 26px; border: 1px solid #d7e5df; border-radius: 20px; background: rgba(255,255,255,.96); box-shadow: 0 18px 48px rgba(28,65,50,.09); }
.scheduling-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-bottom: 18px; border-bottom: 1px solid #e3ebe7; }
.scheduling-heading .eyebrow, .scheduling-confirmed .eyebrow { margin: 0 0 7px; color: #a77916; font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.scheduling-heading h1, .scheduling-confirmed h1, .scheduling-empty h1 { margin: 0 0 7px; color: #173d30; font-size: clamp(24px, 3.2vw, 34px); line-height: 1.12; }
.scheduling-heading p { margin: 0; color: #667d74; font-size: 13px; }
.scheduling-week { flex: 0 0 auto; padding: 7px 11px; border: 1px solid #d5e3dd; border-radius: 999px; background: #f4f8f6; color: #4d6a5f; font-size: 11px; font-weight: 850; }
.scheduling-form { margin-top: 16px; }
.scheduling-date-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: thin; }
.scheduling-date-tabs button { display: grid; flex: 0 0 112px; gap: 1px; min-height: 64px; padding: 9px 12px; border: 1px solid #d4e2dc; border-radius: 11px; background: #fff; color: #426055; font: inherit; text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease; }
.scheduling-date-tabs button:hover { border-color: #9fc4b3; background: #f6faf8; transform: translateY(-1px); }
.scheduling-date-tabs button[aria-selected="true"] { border-color: #64a989; background: #eaf6f0; color: #176344; box-shadow: 0 5px 14px rgba(28,105,74,.09); }
.scheduling-date-tabs small { font-size: 8px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.scheduling-date-tabs strong { font-size: 13px; }
.scheduling-date-tabs span { color: #7b8e86; font-size: 8px; font-weight: 700; }
.scheduling-days { margin-top: 4px; }
.scheduling-day { min-width: 0; margin: 0; padding: 18px; border: 1px solid #dce7e2; border-radius: 14px; background: #fbfdfc; }
.scheduling-day[hidden] { display: none; }
.scheduling-day-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.scheduling-day-heading > div { display: flex; align-items: baseline; gap: 8px; }
.scheduling-day-heading strong { color: #254a3b; font-size: 15px; }
.scheduling-day-heading span { color: #71847c; font-size: 11px; }
.scheduling-day-heading > small { padding: 5px 8px; border-radius: 999px; background: #edf5f1; color: #5c756b; font-size: 8px; font-weight: 800; }
.scheduling-times { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.scheduling-times label { cursor: pointer; }
.scheduling-times input { position: absolute; opacity: 0; pointer-events: none; }
.scheduling-times label > span { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 40px; padding: 8px 11px; border: 1px solid #cdded6; border-radius: 9px; background: #fff; color: #285545; font-size: 11px; font-weight: 850; transition: border-color .15s ease, background .15s ease, color .15s ease, transform .15s ease; }
.scheduling-times label > span small { color: #7b8d86; font-size: 8px; font-weight: 750; }
.scheduling-times label:hover > span { border-color: #75b295; background: #f2faf6; transform: translateY(-1px); }
.scheduling-times input:checked + span { border-color: #18764f; background: #18764f; color: #fff; box-shadow: 0 5px 13px rgba(24,118,79,.16); }
.scheduling-times input:checked + span small { color: #d9f0e5; }
.scheduling-times input:focus-visible + span { outline: 3px solid rgba(30,122,84,.22); outline-offset: 2px; }
.scheduling-action { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 16px -26px -26px; padding: 15px 26px; border-top: 1px solid #dce8e2; background: linear-gradient(90deg, #f3f8f5, #edf6f1); }
.scheduling-action > div { display: grid; gap: 2px; }
.scheduling-action strong { color: #315448; font-size: 11px; }
.scheduling-action span { color: #71847c; font-size: 10px; }
.scheduling-action .button { min-height: 44px; padding-inline: 18px; }
.scheduling-action .button:disabled { cursor: default; opacity: .45; box-shadow: none; }
.scheduling-confirmed, .scheduling-empty { max-width: 650px; margin: 50px auto 0; text-align: center; }
.scheduling-success-icon, .scheduling-state-icon { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 19px; background: #dff2e8; color: #15704b; font-size: 29px; font-weight: 900; }
.scheduling-state-icon { background: #f7edda; color: #9a6c0e; }
.scheduling-confirmed > p { color: #667d74; }
.scheduling-confirmed-time { margin: 24px 0 5px; color: #173d30 !important; font-size: 19px; font-weight: 900; }
.scheduling-confirmed-duration { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 12px; color: #3f6b5a !important; font-size: 13px; font-weight: 800; }
.scheduling-notice, .scheduling-empty-inline { margin-top: 22px; padding: 14px; border: 1px solid #cde5d9; border-radius: 12px; background: #f1f9f5; color: #356552; font-size: 12px; font-weight: 750; }
.scheduling-empty-inline { display: grid; gap: 3px; text-align: center; }
.scheduling-empty-inline span { color: #70837b; font-size: 10px; font-weight: 500; }
@media (max-width: 760px) { .scheduling-times { grid-template-columns: repeat(2, minmax(0, 1fr)); } .scheduling-day-heading { align-items: flex-start; flex-direction: column; gap: 6px; } }
@media (max-width: 520px) { .scheduling-shell { width: min(100% - 20px, 1080px); padding-top: 18px; } .scheduling-card { padding: 20px; border-radius: 16px; } .scheduling-heading { flex-direction: column; gap: 12px; } .scheduling-action { align-items: stretch; flex-direction: column; margin: 20px -20px -20px; padding: 16px 20px; } .scheduling-action .button { width: 100%; } }

/* Telehealth visit workspace. */
.visit-workspace { overflow: hidden; border: 1px solid #d8e5df; border-radius: 18px; background: #fff; box-shadow: 0 12px 34px rgba(22,59,44,.075); }
.visit-workspace-hero { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 15px; padding: 20px 22px; border-bottom: 1px solid #dce8e2; background: linear-gradient(115deg, #fff 0%, #f5faf7 62%, #e9f5ef 100%); }
.visit-workspace-hero::after { content: ""; position: absolute; right: -52px; top: -83px; width: 170px; height: 170px; border: 25px solid rgba(24,116,78,.035); border-radius: 50%; pointer-events: none; }
.visit-workspace-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(145deg, #1b8057, #116142); color: #fff; box-shadow: 0 9px 20px rgba(24,116,78,.17); }
.visit-workspace-icon svg { width: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.visit-workspace-title { min-width: 0; }
.visit-workspace-title h2 { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 2px 0 4px; color: #193e31; font-size: 21px; }
.visit-workspace-title h2 span { padding: 4px 8px; border-radius: 999px; background: #e7f2ed; color: #467062; font-size: 10px; font-weight: 850; }
.visit-workspace-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 0; color: #687e75; font-size: 11px; }
.visit-workspace-meta span, .visit-workspace-meta strong { display: inline-flex; align-items: center; font-weight: 650; }
.visit-workspace-meta span::after { content: ""; width: 3px; height: 3px; margin: 0 9px; border-radius: 50%; background: #9db0a8; }
.visit-workspace-meta strong { color: #31594a; font-weight: 850; }
.visit-workspace-badges { position: relative; z-index: 1; display: flex; align-items: center; gap: 7px; }
.visit-presence-banner { display: flex; align-items: center; gap: 12px; margin: 14px 18px 0; padding: 13px 15px; border: 1px solid #e7cf8c; border-left: 5px solid #c58a16; border-radius: 12px; background: linear-gradient(100deg, #fff5d8, #fffaf0); color: #5f4513; box-shadow: 0 6px 18px rgba(166,112,12,.1); }
.visit-presence-banner[hidden] { display: none; }
.visit-presence-banner-icon { display: grid; flex: 0 0 34px; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #f7e4ad; }
.visit-presence-banner-icon i { width: 11px; height: 11px; border-radius: 50%; background: #b9780c; box-shadow: 0 0 0 6px rgba(185,120,12,.13); animation: waiting-room-pulse 1.8s ease-in-out infinite; }
.visit-presence-banner div { display: grid; gap: 2px; }
.visit-presence-banner strong { font-size: 13px; }
.visit-presence-banner span { color: #80672f; font-size: 10px; }
@keyframes waiting-room-pulse { 0%,100% { transform: scale(.88); box-shadow: 0 0 0 5px rgba(185,120,12,.1); } 50% { transform: scale(1); box-shadow: 0 0 0 8px rgba(185,120,12,.17); } }
.visit-call-grid { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(340px, .58fr); gap: 0; }
.visit-video-card { min-width: 0; padding: 18px; background: #f8fbf9; }
.visit-video-card .video-call { gap: 11px; }
.visit-video-card .video-status { min-height: 39px; border-color: #d0e1d9; border-radius: 10px; background: #f0f7f3; color: #305548; font-size: 11px; }
.visit-video-card .video-status::before { background: #247b57; box-shadow: 0 0 0 4px rgba(36,123,87,.11); }
.visit-video-card .video-grid { min-height: clamp(380px, 50vh, 610px); border: 0; border-radius: 14px; background: radial-gradient(circle at 50% 20%, rgba(42,71,67,.48), transparent 40%), linear-gradient(145deg, #07110f, #10221d 58%, #071311); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), 0 12px 25px rgba(6,23,17,.14); }
.visit-video-card .video-tile { border-radius: 11px; }
.visit-video-card .video-empty-state { min-height: 150px; border-radius: 12px; color: #a9bbb4; font-size: 11px; }
.visit-video-card .video-controls { min-height: 62px; padding: 9px 12px; border-color: #dbe6e1; border-radius: 12px; background: #fff; box-shadow: 0 5px 15px rgba(22,59,44,.04); }
.visit-video-card .call-control { min-width: 105px; min-height: 40px; border-radius: 9px; }
.visit-video-card .call-control.media-toggle { width: 48px; min-width: 48px; height: 48px; min-height: 48px; border-radius: 50%; }
.visit-command-panel { min-width: 0; padding: 20px; border-left: 1px solid #dce7e2; background: #fff; }
.visit-command-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.visit-command-heading .eyebrow { font-size: 9px; }
.visit-command-heading h3 { margin: 2px 0 0; color: #203f34; font-size: 17px; }
.visit-presence { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid #d8e5df; border-radius: 999px; background: #f5f9f7; color: #567168; font-size: 9px; font-weight: 850; white-space: nowrap; }
.visit-presence::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #31a46f; box-shadow: 0 0 0 3px rgba(49,164,111,.1); }
.visit-presence-detail { margin: -5px 0 13px; padding: 8px 10px; border: 1px solid #e1e9e5; border-radius: 9px; background: #f8fbf9; color: #72847c; font-size: 9px; }
.visit-presence-detail.is-waiting { border-color: #bfe0d0; background: #edf8f2; color: #216447; font-weight: 800; }
.visit-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.visit-detail-grid > div { min-width: 0; padding: 10px; border: 1px solid #e0e9e5; border-radius: 10px; background: #f8fbf9; }
.visit-detail-grid dt { margin-bottom: 3px; color: #7a8d85; font-size: 8px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.visit-detail-grid dd { overflow: hidden; margin: 0; color: #2c4c40; font-size: 10px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.visit-command-panel .visit-scheduling-panel, .visit-link-panel { margin: 13px 0 0; padding: 13px; border: 1px solid #d8e6df; border-radius: 12px; background: #f7fbf9; }
.visit-command-panel .visit-scheduling-panel { gap: 8px; background: linear-gradient(145deg, #f3faf6, #edf7f2); }
.visit-scheduling-panel-heading > span, .visit-link-heading > span { display: grid; flex: 0 0 28px; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #dcefe6; color: #176848; font-size: 10px; font-weight: 900; }
.visit-link-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.visit-link-heading > div, .visit-scheduling-panel-heading > div { display: grid; gap: 1px; }
.visit-link-heading strong, .visit-scheduling-panel-heading strong { color: #24473a; font-size: 11px; }
.visit-link-heading small, .visit-scheduling-panel-heading small { color: #71837c; font-size: 8px; }
.visit-link-panel > label, .visit-link-panel .invite-panel label, .visit-scheduling-panel > label { display: block; margin-bottom: 4px; color: #48665b; font-size: 9px; font-weight: 850; }
.visit-command-panel .copy-field, .visit-command-panel .invite-row input { min-height: 39px; border-color: #cbdcd4; border-radius: 9px; background: #fff; font-size: 10px; }
.visit-command-panel .invite-panel { gap: 4px; margin-top: 9px; }
.visit-command-panel .invite-row .button { min-height: 39px; padding-inline: 11px; white-space: nowrap; }
.visit-command-panel .invite-message { min-height: 0; font-size: 9px; }
.visit-engine-notice { display: flex; align-items: center; gap: 9px; margin-top: 13px; padding: 10px 11px; border: 1px solid #d6e6de; border-radius: 10px; background: #f3f9f6; color: #5a7167; font-size: 9px; }
.visit-engine-notice i { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: #32a36f; box-shadow: 0 0 0 4px rgba(50,163,111,.1); }
.visit-engine-notice span { display: grid; gap: 1px; }
.visit-engine-notice strong { color: #315449; font-size: 10px; }
.visit-engine-notice.is-error { border-color: #f0c9c4; background: #fff3f1; color: #9f352d; }

.visit-workspace + .notes-workspace { margin-top: 18px; }
.notes-workspace { margin: 0; padding: 20px; border: 1px solid #d8e5df; border-radius: 18px; background: #fff; box-shadow: 0 12px 34px rgba(22,59,44,.065); }
.notes-title-block { display: flex; align-items: center; gap: 12px; }
.notes-title-icon { display: grid; flex: 0 0 43px; place-items: center; width: 43px; height: 43px; border-radius: 12px; background: #e5f3ec; color: #1a704d; }
.notes-title-icon svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.notes-header { margin-bottom: 16px; }
.notes-header h2 { color: #203f34; font-size: 18px; }
.notes-toolbar { justify-content: space-between; gap: 12px; padding: 11px 12px; border: 1px solid #dce7e2; border-radius: 12px; background: #f7faf8; }
.notes-toolbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.notes-toolbar .button { min-height: 35px; padding: 7px 11px; font-size: 10px; }
.consent-check { margin: 0; color: #315347; font-size: 10px; }
.notes-review-banner { margin: 12px 0 14px; padding: 10px 12px; border: 1px solid #ecdcae; border-left: 4px solid var(--gold); border-radius: 9px; font-size: 10px; }
.notes-layout { grid-template-columns: minmax(290px, .68fr) minmax(520px, 1.32fr); gap: 13px; }
.note-surface { padding: 14px; border: 1px solid #dce7e2; border-radius: 13px; background: #fbfdfc; }
.field-heading label, .note-field label { color: #315146; font-size: 10px; }
.notes-textarea { border-color: #cbdcd4; border-radius: 9px; background: #fff; font-size: 11px; transition: border-color .15s ease, box-shadow .15s ease; }
.notes-textarea:focus { outline: none; border-color: #4c9b78; box-shadow: 0 0 0 3px rgba(40,128,87,.1); }
.transcript-textarea { min-height: 480px; }
.notes-textarea.compact { min-height: 94px; }
.structured-note { gap: 10px; }
.notes-footer { margin-top: 13px; padding-top: 11px; font-size: 9px; }
@media (max-width: 1180px) { .visit-call-grid { grid-template-columns: 1fr; } .visit-command-panel { border-top: 1px solid #dce7e2; border-left: 0; } .visit-detail-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px) { .notes-layout { grid-template-columns: 1fr; } .transcript-textarea { min-height: 260px; } .notes-toolbar { align-items: flex-start; flex-direction: column; } .notes-toolbar-actions { justify-content: flex-start; } }
@media (max-width: 650px) { .visit-workspace-hero { grid-template-columns: auto minmax(0, 1fr); } .visit-workspace-badges { grid-column: 1 / -1; } .visit-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .visit-video-card, .visit-command-panel { padding: 13px; } .visit-video-card .video-grid { min-height: 300px; } .visit-video-card .call-control { flex: 1; min-width: 80px; } .notes-workspace { padding: 15px; } .notes-header { align-items: flex-start; } .notes-state { align-items: flex-end; flex-direction: column; gap: 5px; } .structured-note { grid-template-columns: 1fr; } .note-field-wide { grid-column: auto; } }
@media (max-width: 650px) { .visit-presence-banner { align-items: flex-start; margin: 12px 12px 0; padding: 12px; } }
@media (max-width: 650px) { .visit-join-page { padding: 14px 10px 26px; } .participant-visit-brand { margin-left: 4px; } .participant-visit-card { border-radius: 17px; } .participant-visit-heading { align-items: stretch; flex-direction: column; gap: 15px; padding: 19px; } .participant-appointment-time { min-width: 0; text-align: left; } .participant-waiting-notice { margin: 14px 14px 0; } .device-check { align-items: stretch; flex-direction: column; gap: 12px; margin: 12px 14px; } .device-check-list { justify-content: flex-start; min-width: 0; } .participant-visit-card .video-call { margin-inline: 10px; } .participant-visit-card .video-grid { padding: 6px; border-radius: 13px; } .participant-visit-card .video-controls .call-control { flex: 1 1 auto; } .participant-visit-privacy { padding-inline: 16px; } }
@media (max-width: 650px) { .participant-visit-card .video-controls .call-control.media-toggle { flex: 0 0 46px; min-width: 46px; } }

.bp-summary-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin: 16px 0; }
.bp-summary-grid > div { background: #f3f8f5; border: 1px solid #dce9e1; border-radius: 12px; padding: 18px; }
.bp-summary-grid span { color: #536d60; font-size: 13px; }
.bp-summary-grid strong { display: block; color: #163f30; font-size: 27px; margin-top: 8px; }
.bp-summary-grid small { font-size: 12px; font-weight: normal; }
.bp-summary-grid p { font-size: 12px; margin-bottom: 0; }
.bp-chart-controls { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.bp-chart-controls label { display: flex; align-items: center; gap: 8px; }
.bp-chart-controls input,.bp-chart-controls select { border: 1px solid #cbdcd1; border-radius: 6px; padding: 8px; background: white; }
.bp-chart-legend { display: flex; flex-wrap: wrap; gap: 16px; }
.bp-chart-frame { overflow-x: auto; }
#bp-chart { width: 100%; min-width: 560px; display: block; }
#bp-chart [role="button"] { cursor: pointer; stroke: white; stroke-width: 1; }
#bp-chart [role="button"]:focus { outline: none; stroke: #172d24; stroke-width: 3; }
.bp-chart-detail { min-height: 44px; background: #eef5f1; border-radius: 8px; padding: 12px; }
.bp-guidance summary { cursor: pointer; font-weight: bold; color: #195743; margin: 16px 0; }
.bp-category { display: inline-block; border-radius: 20px; padding: 6px 10px; font-size: 12px; font-weight: 700; border: 1px solid currentColor; }
.bp-category-normal { color: #176343; background: #ecf8ef; }
.bp-category-elevated { color: #765a09; background: #fff9df; }
.bp-category-raised { color: #8c4d12; background: #fff2e4; }
.bp-category-high,.bp-category-severe { color: #a12929; background: #fff0ef; }
.bp-category-review { color: #55516a; background: #f1eff6; }
.bp-explain { position: relative; cursor: help; }
.bp-explain:focus-visible { outline: 2px solid #195743; outline-offset: 2px; }
.bp-tooltip { position: fixed; width: 250px; max-width: calc(100vw - 16px); padding: 12px; background: #183d30; color: white; font-size: 12px; line-height: 1.5; border-radius: 8px; z-index: 1000; box-shadow: 0 4px 14px #0002; pointer-events: none; }
@media(max-width: 750px) { .bp-summary-grid { grid-template-columns: 1fr; } .bp-chart-controls label { flex-wrap: wrap; } }

/* Compact participant BP overview. */
.bp-dashboard { padding: 22px; }
.bp-dashboard .panel-header h2 { font-size: 19px; margin: 0 0 5px; letter-spacing: -.3px; }
.bp-dashboard .panel-header p { font-size: 12px; margin: 0; }
.bp-summary-grid { gap: 12px; margin: 18px 0 10px; }
.bp-summary-grid > div { padding: 16px 18px; background: #f8fbf9; border-radius: 10px; }
.bp-summary-grid > div:first-child { background: #edf6f1; border-color: #cfe3d7; }
.bp-summary-grid span { font-size: 12px; font-weight: 600; }
.bp-summary-grid strong { font-size: 28px; letter-spacing: -.8px; margin: 9px 0 5px; font-variant-numeric: tabular-nums; }
.bp-summary-grid small { letter-spacing: 0; color: #60776b; margin-left: 3px; }
.bp-summary-grid p { font-size: 11px; margin: 0; line-height: 1.5; }
.bp-summary-note { font-size: 11px; margin: 10px 0 18px; line-height: 1.5; }
#bp-trend { border: 1px solid #e0e9e4; border-radius: 12px; padding: 16px; }
.bp-chart-controls { margin: 0; gap: 12px; }
.bp-chart-controls h3 { margin: 0 auto 0 0; font-size: 15px; }
.bp-chart-controls label { font-size: 11px; font-weight: 600; }
.bp-chart-controls select,.bp-chart-controls input { font-size: 12px; padding: 7px 10px; min-height: 34px; border-radius: 7px; width: auto; }
.bp-chart-controls [hidden] { display: none; }
.bp-chart-legend { align-items: center; font-size: 11px; margin: 14px 0 4px; gap: 16px; }
.bp-chart-legend .bp-systolic { color: #2764a8; font-weight: 600; }
.bp-chart-legend .bp-diastolic { color: #8652b7; font-weight: 600; }
.bp-axis-note { margin-left: auto; color: #718078; font-size: 10px; }
#bp-chart { height: 270px; min-width: 480px; }
.bp-chart-detail { min-height: 0; margin: 8px 0 0; padding: 10px 12px; font-size: 12px; line-height: 1.5; border-radius: 7px; background: #f3f7f5; }
#bp-chart-count { font-size: 10px; line-height: 1.5; margin: 8px 0 0; }
.bp-guidance { margin-top: 16px; border-top: 1px solid #e4ece7; padding-top: 2px; }
.bp-guidance summary { font-size: 12px; margin: 12px 0 0; }
.bp-guidance p { font-size: 12px; line-height: 1.65; }
@media(max-width: 750px) { .bp-dashboard { padding: 16px; } .bp-summary-grid { gap: 8px; } .bp-summary-grid > div { padding: 12px 14px; } .bp-summary-grid strong { font-size: 25px; } #bp-trend { padding: 12px; } .bp-axis-note { width: 100%; margin-left: 0; } #bp-chart { height: 230px; } }

/* Participant clinical BP review and source-reading switcher. */
.bp-view-switcher { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 22px 0 12px; padding: 8px; border: 1px solid #d9e7e0; border-radius: 14px; background: #f4f8f6; }
.bp-view-switcher p { margin: 0 10px 0 0; color: #6b7f75; font-size: 11px; }
.bp-segmented-control { display: inline-flex; gap: 4px; padding: 4px; border-radius: 10px; background: #e7f0eb; }
.bp-segmented-control button { min-height: 38px; padding: 8px 16px; border: 0; border-radius: 8px; background: transparent; color: #536c60; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.bp-segmented-control button[aria-selected="true"] { background: #fff; color: #155c41; box-shadow: 0 2px 9px rgba(25,87,67,.12); }
.bp-segmented-control button:focus-visible { outline: 2px solid #27845f; outline-offset: 2px; }
[data-bp-view-panel][hidden] { display: none; }
.bp-dashboard { overflow: hidden; padding: 0; }
.bp-dashboard-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 24px 18px; border-bottom: 1px solid #e3ebe7; background: linear-gradient(125deg,#fbfdfc,#f4faf7); }
.bp-dashboard-header .eyebrow, .bp-chart-controls .eyebrow { display: block; margin-bottom: 4px; color: #368064; font-size: 9px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.bp-dashboard-header h2 { margin: 0 0 4px; color: #183e31; font-size: 21px; }
.bp-dashboard-header p { margin: 0; color: #71837a; font-size: 11px; }
.bp-dashboard-status { display: flex; align-items: center; gap: 10px; color: #72837a; font-size: 9px; line-height: 1.5; text-align: right; }
.bp-dashboard-status strong { color: #315246; font-size: 10px; }
.bp-live-dot { width: 9px; height: 9px; border-radius: 50%; background: #2b9b6c; box-shadow: 0 0 0 4px rgba(43,155,108,.12); }
.bp-clinical-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; padding: 18px 24px 10px; }
.bp-clinical-summary article { min-width: 0; padding: 15px 16px; border: 1px solid #dce8e2; border-radius: 11px; background: #fafcfb; }
.bp-clinical-summary article.is-primary { border-color: #bcdccb; background: linear-gradient(145deg,#edf8f2,#f8fcfa); }
.bp-clinical-summary article > span { color: #687e73; font-size: 10px; font-weight: 750; }
.bp-clinical-summary article > strong { display: block; overflow-wrap: anywhere; margin: 7px 0 4px; color: #173f31; font-size: clamp(18px,2vw,25px); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.bp-clinical-summary article > strong small { color: #6b7f75; font-size: 10px; font-weight: 700; letter-spacing: 0; }
.bp-clinical-summary article > p { margin: 0; color: #73867d; font-size: 9px; line-height: 1.5; }
.bp-clinical-summary .bp-change-down { color: #237451; font-size: 18px; }
.bp-clinical-summary .bp-change-mixed { color: #8b6518; font-size: 18px; }
.bp-clinical-summary .bp-change-neutral { color: #5e7369; font-size: 14px; letter-spacing: 0; }
.bp-review-strip { display: grid; grid-template-columns: .6fr .9fr 1.5fr; margin: 0 24px; border: 1px solid #dfe9e4; border-radius: 11px; background: #f5f9f7; }
.bp-review-strip > div { display: grid; align-content: start; gap: 3px; min-width: 0; padding: 12px 14px; border-right: 1px solid #dfe9e4; }
.bp-review-strip > div:last-child { border-right: 0; }
.bp-review-strip span { color: #74877e; font-size: 8px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.bp-review-strip strong { color: #264b3e; font-size: 12px; }
.bp-review-strip small { color: #74877e; font-size: 8px; line-height: 1.45; }
.bp-clinical-disclaimer { margin: 10px 24px 16px; color: #71837a; font-size: 9px; line-height: 1.5; }
.bp-dashboard #bp-trend { margin: 0 24px; padding: 16px; border-color: #dce8e2; background: #fff; }
.bp-chart-controls { align-items: end; gap: 10px; }
.bp-chart-controls > div { margin-right: auto; }
.bp-chart-controls h3 { margin: 0; color: #21483a; font-size: 15px; }
.bp-chart-controls label { display: grid; gap: 4px; color: #60766b; font-size: 9px; font-weight: 800; }
.bp-chart-controls select,.bp-chart-controls input { min-width: 118px; height: 36px; padding: 7px 30px 7px 10px; border-color: #cfddd6; border-radius: 8px; color: #294a3e; }
.bp-chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.bp-chart-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.bp-chart-legend .bp-diastolic i { border-radius: 1px; }
.bp-chart-legend .bp-pulse-key { color: #bd4268; font-weight: 600; }
.bp-chart-frame { border: 1px solid #edf2ef; border-radius: 9px; background: linear-gradient(#fff,#fbfdfc); }
.bp-dashboard #bp-chart { height: 340px; min-width: 640px; }
.bp-dashboard #bp-chart .bp-chart-point { stroke: #fff; stroke-width: 2; filter: drop-shadow(0 2px 3px rgba(28,65,50,.18)); transition: r .15s ease, stroke-width .15s ease, opacity .15s ease; }
.bp-dashboard #bp-chart .bp-chart-point:hover,.bp-dashboard #bp-chart .bp-chart-point:focus { stroke: #173f31; stroke-width: 3; }
.bp-coverage-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; color: #6f8178; font-size: 8px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.bp-coverage-heading > span:last-child { display: flex; align-items: center; gap: 6px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.bp-coverage-heading i { display: inline-block; width: 14px; height: 5px; margin-left: 5px; border-radius: 999px; background: #d9e2de; }
.bp-coverage-heading i.is-partial { background: #d8ac45; }
.bp-coverage-heading i.is-complete { background: #2a9468; }
.bp-coverage { display: flex; gap: 4px; overflow-x: auto; margin-top: 9px; padding: 8px 2px 2px; }
.bp-coverage-day { display: grid; flex: 1 0 34px; justify-items: center; gap: 4px; min-width: 34px; color: #7a8b83; font-size: 8px; }
.bp-coverage-day i { display: block; width: 100%; height: 5px; border-radius: 999px; background: #d9e2de; }
.bp-coverage-day.is-partial i { background: #d8ac45; }
.bp-coverage-day.is-complete i { background: #2a9468; }
.bp-coverage-day small { font-size: 7px; white-space: nowrap; }
.bp-dashboard .bp-chart-detail { border: 1px solid #e3ebe7; background: #f5f8f6; }
.bp-dashboard .bp-guidance { margin: 16px 24px 0; padding-bottom: 20px; }

@media(max-width: 900px) {
    .bp-clinical-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .bp-review-strip { grid-template-columns: 1fr; }
    .bp-review-strip > div { border-right: 0; border-bottom: 1px solid #dfe9e4; }
    .bp-review-strip > div:last-child { border-bottom: 0; }
    .bp-view-switcher p { display: none; }
}
@media(max-width: 620px) {
    .bp-view-switcher { align-items: stretch; }
    .bp-segmented-control { display: grid; width: 100%; grid-template-columns: 1fr 1fr; }
    .bp-dashboard-header { align-items: flex-start; padding: 18px 16px 15px; }
    .bp-dashboard-status { display: none; }
    .bp-clinical-summary { grid-template-columns: 1fr; padding: 14px 16px 8px; }
    .bp-review-strip { margin: 0 16px; }
    .bp-clinical-disclaimer { margin: 9px 16px 14px; }
    .bp-dashboard #bp-trend { margin: 0 16px; padding: 12px; }
    .bp-chart-controls > div { width: 100%; }
    .bp-chart-controls label { flex: 1 1 130px; }
    .bp-chart-controls select,.bp-chart-controls input { width: 100%; min-width: 0; }
    .bp-dashboard #bp-chart { height: 300px; }
    .bp-coverage-heading { align-items: flex-start; flex-direction: column; }
    .bp-dashboard .bp-guidance { margin-inline: 16px; }
}
/* Participant directory controls. */
.registry-filters { display: grid; grid-template-columns: minmax(200px,1.6fr) minmax(140px,1fr) minmax(130px,1fr) minmax(200px,1.2fr) auto; align-items: end; gap: 14px; padding: 18px; margin-top: 18px; background: #f7faf8; border: 1px solid #e3ebe6; border-radius: 12px; }
.registry-filters label { display: grid; gap: 8px; margin: 0; font-size: 11px; font-weight: 600; color: #567063; }
.registry-filters input,.registry-filters select { box-sizing: border-box; width: 100%; height: 42px; min-height: 42px; margin: 0; padding: 10px 12px; border: 1px solid #d7e3dc; border-radius: 8px; background-color: #fff; color: #254638; font: inherit; font-size: 12px; font-weight: 400; box-shadow: 0 1px 2px #163f3004; }
.registry-filters input::placeholder { color: #82938a; }
.registry-filters input:focus,.registry-filters select:focus { outline: 2px solid #bee0ce; outline-offset: 1px; border-color: #5b9978; }
.registry-filter-actions { display: flex; align-items: center; gap: 14px; height: 42px; }
.registry-filter-actions .button { min-height: 42px; margin: 0; padding: 10px 16px; white-space: nowrap; border-radius: 8px; font-size: 12px; box-shadow: none; }
.registry-reset { color: #657b6f; font-size: 12px; font-weight: 600; text-decoration: none; padding: 10px 0; }
.registry-reset:hover { color: #195743; text-decoration: underline; }
.registry-list-meta { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 13px 2px; }
.registry-result-count { font-size: 11px; color: #6e8176; margin: 0; line-height: 1.5; }
.registry-result-count strong { color: #254638; }
.registry-result-count span { margin-left: 5px; }
.registry-scheduling-state { display: grid; justify-items: start; gap: 4px; min-width: 220px; }
.registry-scheduling-state small { color: var(--muted); font-size: 9px; line-height: 1.35; overflow-wrap: anywhere; white-space: normal; }
.registry-scheduling-state .registry-scheduling-delivery { color: #3f6657; font-weight: 700; }
.registry-scheduling-link {
  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 310px;
  padding: 8px 10px;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.registry-scheduling-link:hover {
  border-color: var(--uab-green-2);
  box-shadow: 0 5px 16px rgba(16, 76, 57, .1);
  transform: translateY(-1px);
}
.registry-scheduling-link:focus-visible { outline: 3px solid rgba(26, 128, 87, .24); outline-offset: 2px; }
.registry-scheduling-action {
  margin-left: auto;
  padding-top: 6px;
  color: var(--uab-green-2);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
#study-visits { scroll-margin-top: 18px; }
#study-visits:target { box-shadow: 0 0 0 3px rgba(26, 128, 87, .16), var(--shadow); }
.visit-notification-history { margin-top: 22px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.visit-notification-history > summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; cursor: pointer; color: var(--uab-green-2); }
.visit-notification-history > summary span:first-child { display: grid; gap: 2px; }
.visit-notification-history > summary small { color: var(--muted); font-weight: 400; }
.visit-notification-history[open] > summary { border-bottom: 1px solid var(--line); }
.visit-notification-history .table-scroll { margin: 0; }
.visit-notification-history table { margin: 0; }
.visit-complete-action { display: grid; gap: 7px; padding: 14px; margin: 16px 0; border: 1px solid #cfe1d8; border-radius: 10px; background: #f2f8f5; }
.visit-complete-action .button { justify-self: start; margin: 0; }
.visit-complete-action small { color: var(--muted); line-height: 1.45; }
.registry-sort-help { position: relative; font-size: 11px; color: #6e8176; }
.registry-sort-help summary { cursor: pointer; }
.registry-sort-help p { max-width: 400px; line-height: 1.6; margin: 8px 0 0; }
@media(max-width: 1100px) { .registry-filters { grid-template-columns: repeat(2,minmax(0,1fr)); } .registry-filter-actions { grid-column: 1 / -1; } }
@media(max-width: 550px) { .registry-filters { grid-template-columns: 1fr; gap: 12px; padding: 14px; } .registry-result-count span { display: block; margin: 3px 0 0; } }
.registry-filters select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23567063' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px 16px;
}

/* Refined clinician telehealth workspace. */
.visit-workspace { border-radius: 20px; box-shadow: 0 18px 46px rgba(22,59,44,.08); }
.visit-workspace-hero { padding: 18px 20px; }
.visit-presence-banner { margin: 12px 16px 0; }
.visit-call-grid { grid-template-columns: minmax(0, 1.58fr) minmax(330px, .62fr); }
.visit-video-card { padding: 16px; background: linear-gradient(145deg,#f7faf8,#f2f7f4); }
.visit-video-card .video-grid { min-height: clamp(350px, 46vh, 540px); padding: 10px; border-radius: 16px; }
.visit-video-card .video-status { border: 0; background: #eaf5ef; }
.visit-video-card .video-controls { min-height: 60px; border-radius: 14px; }
.visit-video-card .video-call:not(.is-connected) #leave-call,
.visit-video-card .video-call:not(.is-connected) .media-toggle,
.visit-video-card .video-call.is-connected #test-devices,
.visit-video-card .video-call.is-connected #join-call { display: none; }
.visit-command-panel { padding: 18px; background: #fcfdfc; }
.visit-command-heading { margin-bottom: 11px; }
.visit-presence-detail { margin-bottom: 11px; }
.visit-detail-grid > div { padding: 9px 10px; background: #fff; }
.visit-complete-action { gap: 8px; margin: 13px 0; padding: 13px; border-color: #bcdaca; border-radius: 12px; background: linear-gradient(145deg,#edf8f2,#f7fbf9); }
.visit-complete-action .button { width: 100%; min-height: 41px; justify-content: center; }
.visit-complete-action small { font-size: 9px; }
.visit-tools-details { margin-top: 12px; overflow: hidden; border: 1px solid #d8e5df; border-radius: 12px; background: #fff; }
.visit-tools-details > summary { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 12px; color: #294b3e; cursor: pointer; list-style: none; }
.visit-tools-details > summary::-webkit-details-marker { display: none; }
.visit-tools-details > summary:hover { background: #f7faf8; }
.visit-tools-details > summary > span:nth-child(2) { display: grid; gap: 1px; }
.visit-tools-details > summary strong { font-size: 11px; }
.visit-tools-details > summary small { color: #71837c; font-size: 8px; font-weight: 500; }
.visit-tools-details > summary > i { color: #70847b; font-size: 16px; font-style: normal; transition: transform .16s ease; }
.visit-tools-details[open] > summary { border-bottom: 1px solid #e1eae6; background: #f7faf8; }
.visit-tools-details[open] > summary > i { transform: rotate(180deg); }
.visit-tools-icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; background: #e5f3ec; color: #1c714e; }
.visit-tools-icon svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.visit-tools-content { padding: 12px; }
.visit-tools-content .visit-scheduling-panel,
.visit-tools-content .visit-link-panel { margin: 0; border-radius: 10px; }
.visit-tools-content .visit-link-panel { margin-top: 10px; }
.visit-engine-notice { margin-top: 12px; }
.visit-workspace + .notes-workspace { margin-top: 16px; }
.notes-workspace { padding: 18px; border-radius: 20px; box-shadow: 0 18px 42px rgba(22,59,44,.06); }
.notes-header { margin-bottom: 13px; }
.notes-toolbar { padding: 9px 10px; background: #f8fbf9; }
.notes-review-banner { margin: 10px 0 12px; padding: 8px 11px; }
.notes-layout { grid-template-columns: minmax(280px, .62fr) minmax(520px, 1.38fr); gap: 12px; }
.note-surface { padding: 12px; background: #f9fcfa; }
.transcript-textarea { min-height: 410px; }
.notes-textarea.compact { min-height: 82px; }
.structured-note { gap: 9px; }
.notes-footer { margin-top: 10px; padding-top: 9px; }
@media (max-width: 1180px) {
    .visit-call-grid { grid-template-columns: 1fr; }
    .visit-command-panel { border-top: 1px solid #dce7e2; border-left: 0; }
    .visit-tools-content { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
    .visit-tools-content .visit-link-panel { margin-top: 0; }
}
@media (max-width: 900px) {
    .notes-layout { grid-template-columns: 1fr; }
    .transcript-textarea { min-height: 260px; }
}
@media (max-width: 650px) {
    .visit-workspace { border-radius: 16px; }
    .visit-workspace-hero { padding: 16px; }
    .visit-video-card .video-grid { min-height: 0; aspect-ratio: 16 / 9; padding: 6px; }
    .visit-video-card .video-controls .call-control { flex: 1 1 auto; }
    .visit-video-card .video-controls .call-control.media-toggle { flex: 0 0 46px; min-width: 46px; }
    .visit-tools-content { display: block; }
    .visit-tools-content .visit-link-panel { margin-top: 10px; }
    .notes-workspace { padding: 14px; border-radius: 16px; }
}

/* Full-width pinned call stage with visit information below. */
.visit-workspace { overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.visit-workspace-hero { overflow: hidden; border: 1px solid #d8e5df; border-radius: 18px; box-shadow: 0 10px 28px rgba(22,59,44,.06); }
.visit-presence-banner { margin: 12px 0 0; }
.visit-call-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 14px; }
.visit-video-card { position: sticky; top: 0; z-index: 24; isolation: isolate; margin: 0; padding: 12px; border: 1px solid #ccddd5; border-radius: 0 0 18px 18px; background: #f7faf8; box-shadow: 0 16px 38px rgba(15,42,32,.14); }
.visit-video-card .video-call { display: grid; grid-template-rows: auto minmax(0,1fr) auto; gap: 9px; }
.visit-video-card .video-grid { grid-auto-rows: minmax(0,1fr); align-items: stretch; width: 100%; height: clamp(360px, 52vh, 590px); min-height: 0; padding: 9px; }
.visit-video-card .video-tile { width: 100%; height: 100%; min-height: 0; aspect-ratio: auto; }
.visit-video-card .video-status { min-height: 36px; padding: 7px 11px; }
.visit-video-card .video-controls { min-height: 56px; padding: 7px 10px; }
.visit-video-card:fullscreen { display: grid; width: 100vw; height: 100vh; padding: 16px; border: 0; border-radius: 0; background: #07110f; }
.visit-video-card:fullscreen .video-call { height: 100%; }
.visit-video-card:fullscreen .video-grid { height: auto; max-height: none; }
.visit-video-card:fullscreen .video-status { border-color: rgba(255,255,255,.12); background: #11231e; color: #e7f4ee; }
.visit-video-card:fullscreen .video-controls { border-color: rgba(255,255,255,.12); background: #11231e; }
.visit-command-panel { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 0; padding: 18px; border: 1px solid #d8e5df; border-radius: 18px; background: #fff; box-shadow: 0 10px 28px rgba(22,59,44,.05); }
.visit-command-heading,
.visit-presence-detail,
.visit-detail-grid,
.visit-engine-notice { grid-column: 1 / -1; }
.visit-command-heading { margin: 0; }
.visit-presence-detail { margin: 0; }
.visit-detail-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.visit-complete-action,
.visit-tools-details { align-self: stretch; margin: 0; }
.visit-tools-details > summary { min-height: 100%; }
.visit-engine-notice { margin: 0; }
.visit-call-grid > .notes-workspace { width: 100%; margin: 0; }
@media (max-width: 900px) {
    .visit-video-card { top: 0; padding: 9px; border-radius: 0 0 15px 15px; }
    .visit-video-card .video-grid { height: clamp(300px, 46vh, 480px); }
    .visit-command-panel { grid-template-columns: 1fr; padding: 15px; }
    .visit-command-heading,
    .visit-presence-detail,
    .visit-detail-grid,
    .visit-complete-action,
    .visit-tools-details,
    .visit-engine-notice { grid-column: 1; }
    .visit-detail-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .visit-tools-details > summary { min-height: 0; }
}
@media (max-width: 650px) {
    .visit-workspace-hero { border-radius: 15px; }
    .visit-presence-banner { margin-top: 10px; }
    .visit-call-grid { gap: 10px; }
    .visit-video-card { top: 0; }
    .visit-video-card .video-grid { height: 42vh; min-height: 250px; aspect-ratio: auto; }
    .visit-video-card .video-status { font-size: 10px; }
    .visit-video-card .video-controls { flex-wrap: nowrap; overflow-x: auto; }
    .visit-command-panel { border-radius: 15px; }
}
@media (max-height: 680px) and (min-width: 651px) {
    .visit-video-card .video-grid { height: 42vh; min-height: 270px; }
}

/* Focused participant call layout. */
.visit-join-page.participant-call-connected { align-items: start; padding: 14px 18px 30px; }
.participant-call-connected .participant-visit { width: min(1420px,100%); }
.participant-call-connected .participant-waiting-notice,
.participant-call-connected .device-check { display: none; }
.participant-call-connected .participant-visit-heading { padding-block: 18px; }
.participant-call-connected .participant-visit-card .video-call { grid-template-rows: auto minmax(0,1fr) auto; margin: 16px 20px 18px; }
.participant-call-connected .participant-visit-card .video-grid { grid-auto-rows: minmax(0,1fr); align-items: stretch; height: clamp(430px, 64vh, 760px); min-height: 0; aspect-ratio: auto; }
.participant-call-connected .participant-visit-card .video-tile { width: 100%; height: 100%; min-height: 0; aspect-ratio: auto; }
.participant-call-connected .participant-visit-privacy { padding-block: 11px 14px; }
.participant-visit-card .video-call:fullscreen { display: grid; grid-template-rows: auto minmax(0,1fr) auto; gap: 10px; width: 100vw; height: 100vh; margin: 0; padding: 16px; background: #07110f; }
.participant-visit-card .video-call:fullscreen .video-grid { height: auto; min-height: 0; max-height: none; aspect-ratio: auto; }
.participant-visit-card .video-call:fullscreen .video-tile { height: 100%; min-height: 0; aspect-ratio: auto; }
.participant-visit-card .video-call:fullscreen .video-status { background: #11231e; color: #e7f4ee; }
.participant-visit-card .video-call:fullscreen .video-controls { border-color: rgba(255,255,255,.12); background: #11231e; }
@media (max-width: 650px) {
    .visit-join-page.participant-call-connected { padding: 8px; }
    .participant-call-connected .participant-visit-brand { margin-bottom: 9px; }
    .participant-call-connected .participant-visit-heading { padding: 15px; }
    .participant-call-connected .participant-visit-card .video-call { margin: 10px 8px 12px; }
    .participant-call-connected .participant-visit-card .video-grid { height: 52vh; min-height: 300px; }
}

/* Meet-style in-call controls and collaboration panels. */
.video-call { position: relative; }
.video-call:not(.is-connected) .meeting-tool { display: none; }
.video-call.is-connected .video-controls {
    width: fit-content;
    max-width: calc(100% - 24px);
    margin: 0 auto;
    padding: 8px 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    border: 0;
    border-radius: 999px;
    background: #202124;
    box-shadow: 0 8px 24px rgba(0,0,0,.24);
    scrollbar-width: none;
}
.video-call.is-connected .video-controls::-webkit-scrollbar { display: none; }
.video-call.is-connected .call-control.media-toggle,
.video-call.is-connected .call-control.meeting-tool {
    display: inline-grid;
    flex: 0 0 44px;
    place-items: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #3c4043;
    color: #f1f3f4;
    box-shadow: none;
}
.video-call.is-connected .call-control.meeting-tool:hover:not(:disabled),
.video-call.is-connected .call-control.media-toggle:hover:not(:disabled) { background: #515458; }
.video-call.is-connected .call-control.is-active { background: #d2e3fc; color: #174ea6; }
.video-call.is-connected .call-control.has-notification::after { content: ""; position: absolute; right: 3px; top: 3px; width: 9px; height: 9px; border: 2px solid #202124; border-radius: 50%; background: #8ab4f8; }
.video-call.is-connected .call-control { position: relative; }
.video-call.is-connected .leave-control {
    order: 20;
    min-width: 72px;
    width: 72px;
    height: 44px;
    min-height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    background: #d93025;
}
.meeting-tool svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.call-control-count { position: absolute; right: 1px; top: -2px; display: grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border: 2px solid #202124; border-radius: 999px; background: #f1f3f4; color: #202124; font-size: 9px; font-weight: 900; }
.call-reaction-menu { position: absolute; z-index: 42; left: 50%; bottom: 68px; display: flex; gap: 4px; transform: translateX(-50%); padding: 8px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: #292a2d; box-shadow: 0 10px 30px rgba(0,0,0,.34); }
.call-reaction-menu[hidden] { display: none; }
.call-reaction-menu button { width: 39px; height: 39px; padding: 0; border: 0; border-radius: 50%; background: transparent; font-size: 21px; cursor: pointer; }
.call-reaction-menu button:hover { background: #44464a; transform: scale(1.12); }
.call-reaction-layer { position: absolute; z-index: 40; right: 22px; bottom: 82px; display: grid; gap: 8px; pointer-events: none; }
.call-reaction-float { display: flex; align-items: center; gap: 8px; animation: call-reaction-rise 3.6s ease-out forwards; }
.call-reaction-float span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(32,33,36,.88); font-size: 25px; box-shadow: 0 8px 22px rgba(0,0,0,.28); }
.call-reaction-float small { padding: 5px 8px; border-radius: 999px; background: rgba(32,33,36,.88); color: #fff; font-size: 10px; }
@keyframes call-reaction-rise { 0% { opacity: 0; transform: translateY(20px) scale(.8); } 12%,75% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-90px) scale(1.08); } }
.call-captions { position: absolute; z-index: 41; left: 50%; bottom: 82px; max-width: min(720px,80%); transform: translateX(-50%); padding: 10px 14px; border-radius: 8px; background: rgba(24,25,27,.9); color: #fff; font-size: 14px; line-height: 1.45; text-align: center; }
.call-toast { position: absolute; z-index: 60; left: 50%; bottom: 82px; transform: translateX(-50%); max-width: min(480px,80%); padding: 9px 13px; border-radius: 8px; background: #303134; color: #fff; font-size: 11px; font-weight: 700; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.call-side-panel { position: absolute; z-index: 50; top: 52px; right: 12px; bottom: 68px; display: grid; grid-template-rows: auto minmax(0,1fr); width: min(360px,calc(100% - 24px)); overflow: hidden; border: 1px solid #dfe3e7; border-radius: 14px; background: #fff; color: #202124; box-shadow: 0 14px 44px rgba(0,0,0,.28); }
.call-side-panel[hidden] { display: none; }
.call-side-panel > header { display: flex; align-items: center; justify-content: space-between; padding: 15px 16px; border-bottom: 1px solid #e5e8eb; }
.call-side-panel h3 { margin: 0; font-size: 16px; }
.call-side-panel > header button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: #5f6368; font-size: 25px; cursor: pointer; }
.call-side-panel > header button:hover { background: #f1f3f4; }
.call-side-panel-body { min-height: 0; overflow: auto; }
.call-chat-list { display: grid; align-content: start; gap: 12px; height: calc(100% - 62px); overflow: auto; padding: 14px; }
.call-chat-message { display: grid; justify-items: start; gap: 3px; }
.call-chat-message.is-own { justify-items: end; }
.call-chat-message strong { color: #5f6368; font-size: 10px; }
.call-chat-message span { max-width: 88%; padding: 8px 10px; border-radius: 4px 12px 12px 12px; background: #f1f3f4; font-size: 12px; line-height: 1.4; }
.call-chat-message.is-own span { border-radius: 12px 4px 12px 12px; background: #d9eadf; }
.call-chat-form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px; padding: 10px; border-top: 1px solid #e5e8eb; }
.call-chat-form input { min-width: 0; height: 40px; border: 1px solid #d5d9dd; border-radius: 999px; padding: 8px 13px; }
.call-chat-form button { border: 0; border-radius: 999px; padding: 0 14px; background: #176b4a; color: #fff; font-weight: 800; cursor: pointer; }
.call-person { display: flex; align-items: center; gap: 11px; padding: 12px 15px; border-bottom: 1px solid #eef0f2; }
.call-person > span { display: grid; flex: 0 0 38px; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #d9eadf; color: #185a42; font-weight: 900; }
.call-person > div { display: grid; gap: 2px; }
.call-person strong { font-size: 12px; }.call-person small { color: #777; font-size: 10px; }
@media (max-width: 720px) {
    .video-call.is-connected .video-controls { justify-content: flex-start; max-width: 100%; border-radius: 14px; }
    .video-call.is-connected .call-control.media-toggle,.video-call.is-connected .call-control.meeting-tool { flex: 0 0 42px; width: 42px; min-width: 42px; height: 42px; min-height: 42px; }
    .call-side-panel { top: 44px; right: 6px; bottom: 62px; width: calc(100% - 12px); }
}

.call-more-menu { position: absolute; z-index: 55; right: 12px; bottom: 66px; width: min(350px,calc(100% - 24px)); max-height: min(610px,calc(100vh - 110px)); padding: 10px 0; overflow-y: auto; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; background: #202124; color: #f1f3f4; box-shadow: 0 18px 48px rgba(0,0,0,.38); }
.call-more-menu[hidden] { display: none; }
.call-more-menu > button { display: grid; grid-template-columns: 44px minmax(0,1fr); align-items: center; width: 100%; min-height: 49px; padding: 7px 18px; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.call-more-menu > button:hover,.call-more-menu > button:focus-visible { outline: 0; background: #303134; }
.call-more-menu > button > span:first-child { color: #d2d5d8; font-size: 22px; line-height: 1; }
.call-more-menu > button > span:last-child { font-size: 14px; font-weight: 650; }
.call-more-disabled { display: grid; grid-template-columns: 44px minmax(0,1fr); align-items: center; gap: 0; padding: 14px 18px 16px; color: #92969b; }
.call-more-disabled > span:last-child { display: grid; gap: 3px; }
.call-more-disabled strong { font-size: 14px; }.call-more-disabled small { font-size: 11px; line-height: 1.35; }
.call-more-record-icon { width: 22px; height: 22px; border: 4px solid #868a8e; border-radius: 50%; box-shadow: inset 0 0 0 4px #202124; background: #868a8e; }
.call-more-separator { height: 1px; margin: 5px 12px; background: #45474a; }
.video-grid.is-spotlight { position: relative; display: block; }
.video-grid.is-spotlight .video-tile.remote { width: 100%; height: 100%; }
.video-grid.is-spotlight .video-tile.local { position: absolute; z-index: 4; right: 22px; bottom: 22px; width: min(28%,300px); height: auto; min-height: 0; aspect-ratio: 16 / 9; border: 2px solid rgba(255,255,255,.7); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.video-tile[data-camera-effect="soft"] video { filter: saturate(.9) contrast(.96) brightness(1.04) blur(.7px); }
.video-tile[data-camera-effect="warm"] video { filter: saturate(1.12) sepia(.12) brightness(1.03); }
.call-panel-section { display: grid; gap: 13px; padding: 17px; color: #4f565b; font-size: 12px; line-height: 1.55; }
.call-panel-section p,.call-panel-section h4 { margin: 0; }.call-panel-section h4 { color: #202124; font-size: 14px; }
.call-panel-section ol { display: grid; gap: 8px; margin: 0; padding-left: 19px; }
.call-panel-section > small { color: #777d82; line-height: 1.5; }
.call-effect-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.call-effect-options button { min-height: 64px; padding: 8px; border: 1px solid #d9dde1; border-radius: 11px; background: #f7f9fa; color: #303438; font-size: 11px; font-weight: 750; cursor: pointer; }
.call-effect-options button:hover,.call-effect-options button.is-selected { border-color: #33775e; background: #e8f4ee; color: #18583f; }
.call-setting-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border: 1px solid #e1e5e7; border-radius: 10px; background: #f8faf9; }
.call-setting-status strong { color: #236449; font-size: 11px; }
.call-panel-action { min-height: 40px; border: 0; border-radius: 9px; background: #176b4a; color: #fff; font-weight: 800; cursor: pointer; }
@media (max-width: 650px) {
    .call-more-menu { right: 6px; bottom: 61px; width: calc(100% - 12px); }
    .video-grid.is-spotlight .video-tile.local { right: 10px; bottom: 10px; width: 38%; }
}

.call-control-tooltip { position: fixed; z-index: 10000; width: max-content; max-width: 230px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 5px; background: #2b2c2f; color: #fff; font-size: 11px; font-weight: 700; line-height: 1.25; text-align: center; box-shadow: 0 6px 18px rgba(0,0,0,.28); pointer-events: none; }
.call-control-tooltip[hidden] { display: none; }

.participant-appointment-time {
    display: grid;
    min-width: 150px;
    gap: 1px;
    padding: 12px 15px;
    border: 1px solid #cfe1d8;
    border-left: 4px solid #25815c;
    border-radius: 12px;
    background: rgba(255,255,255,.94);
    text-align: left;
    box-shadow: 0 6px 18px rgba(24,62,49,.06);
}
.participant-appointment-time span { color: #71847b; font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.participant-appointment-time strong { color: #184f3a; font-size: 19px; line-height: 1.2; }
.participant-appointment-time em { margin-top: 3px; color: #3f6255; font-size: 11px; font-style: normal; font-weight: 750; }

.video-grid { position: relative; }
.video-stage-control {
    position: absolute;
    z-index: 8;
    right: 18px;
    bottom: 18px;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: rgba(8,10,15,.38);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,.24);
    backdrop-filter: blur(8px);
    cursor: pointer;
    opacity: .92;
    transition: opacity .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.video-stage-control:hover { opacity: 1; background: rgba(8,10,15,.66); transform: translateY(-1px); box-shadow: 0 7px 20px rgba(0,0,0,.32); }
.video-stage-control:focus-visible { outline: 3px solid rgba(255,255,255,.95); outline-offset: 3px; opacity: 1; background: rgba(8,10,15,.68); }
.video-stage-control .fullscreen-icon { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.video-stage-control .fullscreen-icon-exit { display: none; }
.video-stage-control[aria-pressed="true"] .fullscreen-icon-enter { display: none; }
.video-stage-control[aria-pressed="true"] .fullscreen-icon-exit { display: block; }
.video-stage-control::before {
    position: absolute;
    right: 17px;
    bottom: calc(100% + 3px);
    width: 0;
    height: 0;
    border-right: 6px solid transparent;
    border-left: 6px solid transparent;
    border-top: 6px solid rgba(3,4,7,.96);
    content: "";
    opacity: 0;
    pointer-events: none;
    transform: translateY(3px);
    transition: opacity .12s ease, transform .12s ease;
}
.video-stage-control::after {
    position: absolute;
    right: -2px;
    bottom: calc(100% + 9px);
    min-width: max-content;
    padding: 8px 11px;
    border-radius: 2px;
    background: rgba(3,4,7,.96);
    color: #fff;
    box-shadow: 0 5px 14px rgba(0,0,0,.34);
    content: attr(data-tooltip);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .09em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateY(3px);
    transition: opacity .12s ease, transform .12s ease;
}
.video-stage-control:hover::before,.video-stage-control:hover::after,.video-stage-control:focus-visible::before,.video-stage-control:focus-visible::after { opacity: 1; transform: translateY(0); }
.video-call:fullscreen .video-stage-control,.visit-video-card:fullscreen .video-stage-control { background: rgba(8,10,15,.52); }
@media (max-width: 650px) { .video-stage-control { right: 12px; bottom: 12px; width: 42px; height: 42px; } .video-stage-control .fullscreen-icon { width: 27px; height: 27px; } }
@media (hover: none) { .video-stage-control::before,.video-stage-control::after { display: none; } }

/* Docked in-call panel: the video and panel share one call surface. */
.video-call.has-side-panel {
    grid-template-columns: minmax(0,1fr) clamp(290px,24vw,360px);
    column-gap: 0;
    overflow: hidden;
    border-radius: 15px;
    background: #f7faf8;
}
.video-call.has-side-panel > .video-status { grid-column: 1 / -1; grid-row: 1; margin-bottom: 0; }
.video-call.has-side-panel > .video-grid { grid-column: 1; grid-row: 2; border-radius: 15px 0 0 15px; }
.video-call.has-side-panel > .video-controls { grid-column: 1; grid-row: 3; }
.video-call.has-side-panel > .call-side-panel {
    position: relative;
    z-index: 10;
    top: auto;
    right: auto;
    bottom: auto;
    grid-column: 2;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    height: 100%;
    min-height: 0;
    border: 1px solid #343638;
    border-left: 0;
    border-radius: 0 15px 15px 0;
    background: #202124;
    box-shadow: none;
}
.video-call.has-side-panel .call-side-panel > header { border-bottom-color: #3c4043; background: #202124; }
.video-call.has-side-panel .call-side-panel h3 { color: #f1f3f4; font-size: 15px; }
.video-call.has-side-panel .call-side-panel > header button { color: #bdc1c6; }
.video-call.has-side-panel .call-side-panel > header button:hover { background: #303134; }
.video-call.has-side-panel .call-side-panel-body { background: #202124; color: #e8eaed; }
.video-call.has-side-panel .video-controls { border-radius: 999px; }
.video-call.has-side-panel:fullscreen,.visit-video-card:fullscreen .video-call.has-side-panel { background: #07110f; }
@media (max-width: 900px) {
    .video-call.has-side-panel { grid-template-columns: minmax(0,1fr); grid-template-rows: auto minmax(0,1fr) minmax(220px,36vh) auto; gap: 8px; overflow: visible; background: transparent; }
    .video-call.has-side-panel > .video-status { grid-column: 1; grid-row: 1; margin-bottom: 0; }
    .video-call.has-side-panel > .video-grid { grid-column: 1; grid-row: 2; border-radius: 14px; }
    .video-call.has-side-panel > .call-side-panel { grid-column: 1; grid-row: 3; max-height: 390px; border-left: 1px solid #343638; border-radius: 14px; }
    .video-call.has-side-panel > .video-controls { grid-column: 1; grid-row: 4; }
}

.call-collaboration-controls { position: absolute; z-index: 32; right: 12px; bottom: 7px; display: flex; gap: 5px; padding: 6px; border: 1px solid rgba(255,255,255,.08); border-radius: 999px; background: #202124; box-shadow: 0 8px 24px rgba(0,0,0,.22); }
.video-call:not(.is-connected) .call-collaboration-controls { display: none; }
.call-collaboration-control { position: relative; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #e8eaed; cursor: pointer; }
.call-collaboration-control:hover,.call-collaboration-control:focus-visible,.call-collaboration-control.is-active { outline: 0; background: #3c4043; }
.call-collaboration-control svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.call-collaboration-control .call-control-count { right: -1px; top: -2px; }
.video-call.has-side-panel > .call-collaboration-controls { position: static; grid-column: 2; grid-row: 3; align-self: center; justify-self: end; margin: 5px 8px 5px 0; box-shadow: none; }
.call-chat-notice { display: flex; align-items: flex-start; gap: 10px; margin: 14px; padding: 12px; border-radius: 11px; background: #2b2c2f; color: #dfe1e5; }
.call-chat-notice > span { color: #8ab4f8; font-size: 18px; }
.call-chat-notice > div { display: grid; gap: 2px; }.call-chat-notice strong { font-size: 11px; }.call-chat-notice small { color: #aeb3b8; font-size: 9px; line-height: 1.4; }
.video-call.has-side-panel .call-side-panel[data-view="chat"] .call-side-panel-body { display: grid; grid-template-rows: auto minmax(0,1fr) auto; overflow: hidden; }
.video-call.has-side-panel .call-side-panel-body { min-height: 0; }
.video-call.has-side-panel .call-chat-list { height: auto; min-height: 0; padding: 8px 14px; }
.call-chat-empty { display: grid; align-content: center; justify-items: center; gap: 7px; height: 100%; min-height: 220px; padding: 24px; color: #bdc1c6; text-align: center; }
.call-chat-empty > span { position: relative; display: block; width: 68px; height: 54px; margin-bottom: 7px; border: 2px solid #8ab4f8; border-radius: 13px; }
.call-chat-empty > span::after { content: ""; position: absolute; right: 8px; bottom: -10px; width: 16px; height: 16px; border-right: 2px solid #8ab4f8; border-bottom: 2px solid #8ab4f8; transform: skewY(42deg); background: #202124; }
.call-chat-empty strong { color: #e8eaed; font-size: 13px; }.call-chat-empty small { max-width: 230px; color: #9aa0a6; font-size: 10px; line-height: 1.45; }
.video-call.has-side-panel .call-chat-message strong { color: #9aa0a6; }
.video-call.has-side-panel .call-chat-message span { background: #303134; color: #f1f3f4; }
.video-call.has-side-panel .call-chat-message.is-own span { background: #174f3b; }
.video-call.has-side-panel .call-chat-form { border-top-color: #3c4043; background: #202124; }
.video-call.has-side-panel .call-chat-form input { border-color: #5f6368; background: #202124; color: #f1f3f4; }
.video-call.has-side-panel .call-chat-form input::placeholder { color: #9aa0a6; }
.video-call.has-side-panel .call-chat-form input:focus { outline: 2px solid #8ab4f8; outline-offset: 1px; border-color: transparent; }
.video-call.has-side-panel .call-chat-form button { display: grid; place-items: center; width: 40px; padding: 0; background: #176b4a; }
.call-chat-form button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.call-people-heading { display: flex; align-items: center; justify-content: space-between; padding: 15px 16px 9px; color: #bdc1c6; }
.call-people-heading strong { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }.call-people-heading span { display: grid; place-items: center; min-width: 24px; height: 24px; border-radius: 999px; background: #303134; color: #e8eaed; font-size: 10px; font-weight: 800; }
.call-people-list { display: grid; align-content: start; }
.video-call.has-side-panel .call-person { border-bottom-color: #343638; }
.video-call.has-side-panel .call-person > span:first-child { background: #355e50; color: #dff4ea; }
.video-call.has-side-panel .call-person strong { color: #f1f3f4; }.video-call.has-side-panel .call-person small { color: #9aa0a6; }
.call-person > .call-person-state { flex: 0 0 9px; width: 9px; height: 9px; margin-left: auto; padding: 0; border: 0; border-radius: 50%; background: #34a853; box-shadow: 0 0 0 3px rgba(52,168,83,.13); }
@media (max-width: 900px) {
    .video-call.has-side-panel > .call-collaboration-controls { position: absolute; right: 8px; bottom: 7px; display: flex; margin: 0; }
}

/* Clinician call stage uses the same clean, borderless meeting surface. */
.visit-video-card {
    border: 0;
    box-shadow: 0 14px 34px rgba(15,42,32,.10);
}
.visit-video-card .video-grid {
    padding: 0;
    border: 0;
    background: #07110f;
    box-shadow: none;
}
.visit-video-card .video-tile,
.visit-video-card .video-tile.local,
.visit-video-card .video-tile.remote { border: 0; }
.visit-video-card .call-collaboration-controls { z-index: 36; }
.visit-video-card .video-call.has-side-panel > .video-grid { border-radius: 15px 0 0 15px; }
.visit-video-card .video-call.has-side-panel > .call-side-panel { border-color: #343638; }
@media (max-width: 900px) {
    .visit-video-card .video-call.has-side-panel > .video-grid { border-radius: 14px; }
}

/* Unified video canvas: tiles meet without colored partition outlines. */
.video-call.is-connected .video-grid { gap: 0; overflow: hidden; }
.video-call.is-connected .video-tile,
.video-call.is-connected .video-tile.local,
.video-call.is-connected .video-tile.remote {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

/* Keep clinician and participant calls on the same immersive surface. */
.visit-video-card.is-call-connected {
    padding: 0;
    overflow: hidden;
    border-radius: 16px;
    background: #07110f;
    box-shadow: 0 16px 38px rgba(5, 17, 15, .2);
}
.visit-video-card .video-call.is-connected {
    padding: 10px;
    border-radius: 16px;
    background: #07110f;
}
.visit-video-card .video-call.is-connected .video-status {
    border: 0;
    background: #10261f;
    color: #dcece5;
}
.visit-video-card .video-call.is-connected .video-grid {
    border-radius: 13px;
}
.video-call:fullscreen {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 10px;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 16px;
    overflow: hidden;
    border-radius: 0;
    background: #07110f;
}
.video-call:fullscreen .video-status {
    min-height: 44px;
    border: 0;
    background: #10261f;
    color: #e7f4ee;
}
.video-call:fullscreen .video-grid {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: #050807;
    box-shadow: none;
}
.video-call:fullscreen .video-tile {
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
}
.video-call:fullscreen .video-controls {
    flex: none;
    min-height: 60px;
    margin-inline: auto;
}
.video-call:fullscreen .call-collaboration-controls {
    right: 16px;
    bottom: 16px;
}
@media (max-width: 650px) {
    .video-call:fullscreen { gap: 8px; padding: 8px; }
    .video-call:fullscreen .call-collaboration-controls { right: 8px; bottom: 8px; }
}
