/* === DESIGN TOKENS === */
:root {
    --bg: #EDF1F8;
    --panel: #ffffff;
    --panel-alt: #F4F7FC;
    --text: #0C1929;
    --muted: #56687D;
    --line: #C8D3E2;
    --line-strong: #A8B8CC;
    --accent: #1540A8;
    --accent-mid: #2855C8;
    --accent-soft: #E6EDFB;
    --good: #145C2C;
    --warn: #884B10;
    --good-soft: #E6F4ED;
    --warn-soft: #FEF2E5;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body {
    border-top: 3px solid var(--accent);
}

a {
    color: var(--accent);
    text-decoration: none;
}

/* === PAGE === */
.page {
    min-height: 100vh;
    padding: 0 0 60px;
}

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 18px;
}

.login-shell {
    width: min(440px, 100%);
}

.login-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(12, 25, 41, 0.14);
    padding: 34px;
}

.login-brand {
    margin-bottom: 26px;
}

.login-form {
    display: grid;
    gap: 16px;
}

.login-message {
    padding: 10px 12px;
    border: 1px solid #D98D7D;
    border-radius: 6px;
    background: #FFF0EC;
    color: #8B2D1F;
    font-size: 12.5px;
    font-weight: 700;
}

.login-submit {
    width: 100%;
    margin-top: 2px;
}

.setup-topbar-actions {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.dashboard-choice-page {
    min-height: 100vh;
}

.dashboard-choice-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54vh;
    padding: 32px 24px;
}

.dashboard-choice-panel {
    width: min(560px, 100%);
}

.dashboard-choice-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.dashboard-choice-button {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
    box-shadow: 0 1px 3px rgba(12, 25, 41, 0.06);
    cursor: pointer;
}

.dashboard-choice-button:hover {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 6px 18px rgba(21, 64, 168, 0.28);
    transform: translateY(-1px);
}

.dashboard-choice-button.dashboard-choice-disabled {
    background: #f6f8fb;
    border-color: var(--line);
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.72;
}

.dashboard-choice-button.dashboard-choice-disabled:hover {
    background: #f6f8fb;
    border-color: var(--line);
    box-shadow: none;
    transform: none;
}

.dashboard-choice-button:hover .dashboard-choice-icon {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.dashboard-choice-button.dashboard-choice-disabled:hover .dashboard-choice-icon {
    background: var(--accent-soft);
    color: var(--accent);
}

.dashboard-choice-button:hover .dashboard-choice-label,
.dashboard-choice-button:hover .dashboard-choice-desc {
    color: #fff;
}

.dashboard-choice-button.dashboard-choice-disabled:hover .dashboard-choice-label {
    color: var(--text);
}

.dashboard-choice-button.dashboard-choice-disabled:hover .dashboard-choice-desc {
    color: var(--muted);
}

.dashboard-choice-button:hover .dashboard-choice-desc {
    opacity: 0.8;
}

.dashboard-choice-button.dashboard-choice-disabled:hover .dashboard-choice-desc {
    opacity: 1;
}

.dashboard-choice-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(21, 64, 168, 0.1);
}

.dashboard-choice-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.dashboard-choice-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

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

.dashboard-choice-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.dashboard-choice-desc {
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 2px;
    line-height: 1.4;
}

.dashboard-choice-arrow {
    flex: 0 0 auto;
    color: var(--line-strong);
    display: flex;
    align-items: center;
    transition: color 0.15s, transform 0.15s;
}

.dashboard-choice-arrow svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dashboard-choice-button:hover .dashboard-choice-arrow {
    color: rgba(255, 255, 255, 0.8);
    transform: translateX(2px);
}

.dashboard-choice-button.dashboard-choice-disabled .dashboard-choice-arrow {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}

.dashboard-choice-button.dashboard-choice-disabled:hover .dashboard-choice-arrow {
    color: var(--muted);
    transform: none;
}


.dashboard-choice-message {
    margin-top: 14px;
}

/* === NODE MONITORING === */
.node-monitor-body {
    display: grid;
    gap: 18px;
}

.node-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.node-stat {
    border-top-width: 4px;
}

.node-stat-1 { border-top-color: #0c7a6a; }
.node-stat-2 { border-top-color: #145C2C; }
.node-stat-3 { border-top-color: #9B1C1C; }
.node-stat-4 { border-top-color: #b86c0a; }
.node-stat-5 { border-top-color: #CA8A04; }

.node-stat-sub {
    margin-top: 4px;
    font-size: 12px;
    color: #6B7280;
    font-weight: 600;
}

.node-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    background: var(--panel);
}

.node-search-wrap {
    position: relative;
    width: min(440px, 100%);
}

.node-search-wrap input {
    width: 100%;
    padding: 10px 76px 10px 38px;
    border: 1px solid var(--line);
    background: var(--panel-alt);
}

.node-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 12px;
    height: 12px;
    border: 2px solid var(--muted);
    border-radius: 50%;
    transform: translateY(-55%);
    opacity: 0.72;
}

.node-search-icon::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 2px;
    right: -6px;
    bottom: -4px;
    background: var(--muted);
    transform: rotate(45deg);
}

#nodeSearchClear {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    height: 28px;
    padding: 0 10px;
    font-size: 11px;
}

#nodeHideUnlinkedBtn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.node-alerts {
    display: grid;
    gap: 8px;
}

.node-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--text);
    font-weight: 650;
}

.node-alert-mark {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: currentColor;
    flex: 0 0 auto;
}

.node-alert-warn {
    border-color: rgba(155, 28, 28, 0.22);
    background: #FEF2F2;
    color: #9B1C1C;
}

.node-alert-low {
    border-color: rgba(184, 108, 10, 0.24);
    background: #FFF7E8;
    color: #884B10;
}

.node-alert-unlinked {
    border-color: rgba(202, 138, 4, 0.3);
    background: #FEFCE8;
    color: #854D0E;
}

.node-section {
    display: grid;
    gap: 12px;
}

.node-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.node-section-head .section-title {
    margin-bottom: 2px;
}

.node-section-head button {
    min-width: 118px;
}

.node-card-grid {
    display: grid;
    gap: 12px;
}

.node-card-grid-gateways {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.node-card-grid-anchors {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.node-card {
    min-height: 152px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-top: 4px solid var(--line-strong);
    background: var(--panel);
    box-shadow: 0 10px 28px rgba(12, 25, 41, 0.06);
}

.node-card-online {
    border-top-color: #0c7a6a;
}

.node-card-offline {
    border-top-color: #9B1C1C;
    background: linear-gradient(180deg, #fff, #FFF7F7);
}

.node-card-low {
    border-top-color: #b86c0a;
    background: linear-gradient(180deg, #fff, #FFF9EC);
}

.node-card-unlinked {
    border-top-color: var(--line-strong);
    background: linear-gradient(180deg, #fff, var(--panel-alt));
}

.node-card-top,
.node-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.node-card-id {
    font-size: 12px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.node-pill {
    padding: 3px 7px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--panel-alt);
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.node-card-online .node-pill {
    border-color: rgba(12, 122, 106, 0.2);
    background: #E7F6F3;
    color: #0c7a6a;
}

.node-card-offline .node-pill {
    border-color: rgba(155, 28, 28, 0.2);
    background: #FEF2F2;
    color: #9B1C1C;
}

.node-card-low .node-pill {
    border-color: rgba(184, 108, 10, 0.24);
    background: #FFF2D5;
    color: #884B10;
}

.node-card-location {
    color: var(--text);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.35;
    min-height: 38px;
    overflow: hidden;
}

.node-card-meta {
    color: var(--muted);
    font-size: 12px;
}

.node-card-foot {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    border-top: 1px solid var(--line);
    padding-top: 10px;
}

.node-empty {
    grid-column: 1 / -1;
    padding: 22px;
    border: 1px dashed var(--line-strong);
    background: var(--panel);
    color: var(--muted);
    text-align: center;
}

/* === TOPBAR === */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 20px 36px 20px;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    margin-bottom: 0;
    flex-wrap: wrap;
    box-shadow: 0 1px 4px rgba(12, 25, 41, 0.06);
}

.topbar-main {
    flex: 1;
    min-width: 260px;
}

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

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 12px;
    border: 1px solid var(--line-strong);
    background: var(--panel);
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.button-link:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.show-eyebrow {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
    margin-bottom: 4px;
}

.title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.4px;
    color: var(--text);
    line-height: 1.25;
}

.subtitle {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

/* Show meta chips — see bottom of file for full definition */

/* === TAB NAVIGATION === */
.tab-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--line);
    margin-bottom: 0;
    background: var(--panel);
    padding: 0 36px;
}

.tab-btn {
    width: auto;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    font-weight: 500;
    font-size: 13px;
    position: relative;
    bottom: -2px;
    border-radius: 0;
    transition: color 0.12s, border-color 0.12s;
    letter-spacing: 0.01em;
}

.tab-btn:hover {
    color: var(--text);
    background: transparent;
    border-color: transparent;
    border-bottom-color: var(--line-strong);
}

.tab-btn.active {
    color: var(--accent);
    background: transparent;
    border-color: transparent;
    border-bottom-color: var(--accent);
    font-weight: 700;
}

.main-tabs {
    margin-bottom: 0;
    box-shadow: 0 1px 3px rgba(12, 25, 41, 0.05);
}

/* === CONTENT AREA (below tabs) === */
section {
    padding: 24px 36px;
}

/* === PANEL === */
.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 20px;
    box-shadow: 0 2px 8px rgba(12, 25, 41, 0.07), 0 1px 2px rgba(12, 25, 41, 0.04);
}

.panel-alt {
    background: var(--panel-alt);
}

/* === GRID / LAYOUT === */
.grid {
    display: grid;
    gap: 16px;
}

.overview-tables-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.grid-2 {
    grid-template-columns: 1fr 1fr;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.section-space {
    margin-top: 16px;
}

/* === DATE FILTER BAR === */
.date-filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    margin-bottom: 16px;
    flex-wrap: wrap;
    box-shadow: 0 2px 8px rgba(12, 25, 41, 0.07), 0 1px 2px rgba(12, 25, 41, 0.04);
}

.date-filter-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    white-space: nowrap;
}

.date-filter-select {
    padding: 6px 10px;
    border: 1px solid var(--line);
    background: var(--panel-alt);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    min-width: 160px;
    border-radius: 0;
}

.date-filter-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(21, 64, 168, 0.12);
}

.date-button-group {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0;
    border: 1px solid var(--line);
    background: var(--panel-alt);
}

.date-filter-btn {
    border: none;
    border-right: 1px solid var(--line);
    background: transparent;
    color: var(--muted);
    padding: 8px 14px;
    min-height: 34px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.date-filter-btn:last-child {
    border-right: none;
}

.date-filter-btn:hover {
    background: var(--accent-soft);
    color: var(--accent);
}

.date-filter-btn.active {
    background: var(--accent);
    color: #fff;
}

.date-filter-info {
    font-size: 11px;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* === SECTION TITLE === */
.section-title {
    margin: 0 0 16px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 13px;
    background: var(--accent);
    flex-shrink: 0;
}

/* === FORM ELEMENTS === */
.label {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.toggle-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text);
    font-size: 13px;
}

.toggle-row input {
    width: auto;
    margin: 0;
    accent-color: var(--accent);
}

.attendee-filter-row {
    margin-top: 10px;
}

/* Floor switcher — sharp tabs */
.floor-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 14px;
    border: 1px solid var(--line);
    width: fit-content;
}

.floor-chip {
    border: none;
    border-right: 1px solid var(--line);
    background: var(--panel);
    color: var(--muted);
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.1s, color 0.1s;
    letter-spacing: 0.02em;
}

.floor-chip:last-child {
    border-right: none;
}

.floor-chip.active {
    background: var(--accent);
    color: #fff;
}

.floor-chip:hover:not(.active) {
    background: var(--accent-soft);
    color: var(--accent);
}

.control-group {
    width: 200px;
}

.control-group-sm {
    width: 160px;
}

.control-group-md {
    width: 180px;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--text);
    padding: 8px 10px;
    border-radius: 0;
    font-size: 13px;
    font-family: inherit;
    transition: border-color 0.12s, box-shadow 0.12s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(21, 64, 168, 0.12);
}

.theme-select {
    border-width: 2px;
    font-weight: 700;
}

.theme-select option {
    font-weight: 700;
}

.theme-preview {
    margin-top: 8px;
}

.theme-preview-surface {
    border: 1px solid var(--preview-line);
    background: var(--preview-bg);
    color: var(--preview-text);
    padding: 10px;
    min-height: 92px;
}

.theme-preview-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--preview-muted);
    font-size: 11px;
    font-weight: 700;
}

.theme-preview-top strong {
    display: block;
    width: 42px;
    height: 8px;
    background: var(--preview-accent);
}

.theme-preview-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.theme-preview-card {
    background: var(--preview-panel);
    border: 1px solid var(--preview-line);
    padding: 8px;
}

.theme-preview-card div {
    width: 52%;
    height: 18px;
    background: var(--preview-accent);
    margin-bottom: 8px;
}

.theme-preview-card span {
    display: block;
    width: 78%;
    height: 6px;
    background: var(--preview-panel-alt);
    border: 1px solid var(--preview-line);
}

.theme-preview-bars {
    display: grid;
    gap: 6px;
    align-content: center;
}

.theme-preview-bars i {
    display: block;
    height: 7px;
    background: var(--preview-accent);
}

.theme-preview-bars i:nth-child(2) {
    width: 72%;
    opacity: 0.7;
}

.theme-preview-bars i:nth-child(3) {
    width: 48%;
    opacity: 0.45;
}

textarea {
    min-height: 120px;
    resize: vertical;
    font-family: "Cascadia Code", Consolas, "Courier New", monospace;
    line-height: 1.5;
}

button:focus {
    outline: 2px solid rgba(21, 64, 168, 0.28);
    outline-offset: 1px;
}

/* === BUTTONS === */
button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto;
    border: 1px solid var(--line-strong);
    background: var(--panel);
    color: var(--text);
    padding: 8px 16px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: border-color 0.12s, background-color 0.12s, color 0.12s;
}

button:hover,
.btn:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
}

button:active,
.btn:active {
    background: #d8e4f7;
}

button[disabled],
.btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

.btn-loading {
    position: relative;
}

.btn-loading::before {
    content: "";
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
    animation: spin 0.8s linear infinite;
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-mid);
    border-color: var(--accent-mid);
    color: #fff;
}

.btn-secondary {
    background: var(--panel-alt);
    border-color: var(--line);
}

.btn-ghost {
    background: transparent;
    border-color: transparent;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

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

.btn-row button {
    width: 100%;
}

.actions-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

/* Export buttons — primary treatment */
#exportXlsxBtn,
#exportPdfBtn {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    padding: 8px 16px;
    letter-spacing: 0.03em;
}

#exportXlsxBtn:hover,
#exportPdfBtn:hover {
    background: var(--accent-mid);
    border-color: var(--accent-mid);
    color: #fff;
}

/* === STAT GRID === */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border: 1px solid var(--line);
    box-shadow: 0 1px 3px rgba(12, 25, 41, 0.05);
}

.stat {
    background: var(--panel);
    padding: 20px 20px 18px;
    border-right: 1px solid var(--line);
    border-top: 3px solid transparent;
    position: relative;
    transition: border-top-color 0.15s;
}

.stat:first-child {
    border-top-color: var(--accent);
}

.stat:last-child {
    border-right: none;
}

.stat .k {
    color: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.stat .v {
    margin-top: 8px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text);
}

#mainOverviewPane .stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

#mainOverviewPane .stat {
    padding: 16px 18px;
}

#mainOverviewPane .stat .v {
    font-size: 24px;
}

.organizer-compact-stats {
    box-shadow: none;
}

.organizer-compact-stats .stat {
    padding: 14px 16px;
}

.organizer-compact-stats .stat .v {
    font-size: 24px;
}

.organizer-session-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.organizer-session-block {
    min-width: 0;
}

.organizer-table {
    table-layout: fixed;
}

.organizer-table td {
    vertical-align: middle;
}

.organizer-table .session-rank-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* === EXECUTIVE OVERVIEW === */
#mainExecutivePane {
    display: grid;
    gap: 16px;
}

#mainExecutivePane.hidden {
    display: none;
}

#mainExecutivePane .date-filter-bar {
    width: 100%;
    max-width: none;
    margin-bottom: 0;
}

#mainExecutivePane .date-button-group {
    flex: 1;
    max-width: none;
}

#mainExecutivePane .date-filter-btn {
    white-space: nowrap;
}

.executive-summary-panel {
    margin-bottom: 0;
}

/* === EXECUTIVE WIDGET GRID === */
.executive-widget-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.executive-widget {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--line);
    border-top: 3px solid var(--accent);
    padding: 18px 20px 20px;
    box-shadow: 0 3px 14px rgba(12, 25, 41, 0.08), 0 1px 3px rgba(12, 25, 41, 0.05);
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: hidden;
    min-height: 170px;
}

.ew-highlight {
    grid-column: span 2;
    border-top-color: var(--accent-mid);
    background: linear-gradient(130deg, var(--accent-soft) 0%, var(--panel) 52%);
}

/* Widget icon chip */
.widget-icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: var(--accent-soft);
    color: var(--accent);
}

.widget-icon svg {
    width: 15px;
    height: 15px;
}

.wi-green  { background: var(--good-soft); color: var(--good); }
.wi-teal   { background: #DFF4F4; color: #0B6E6E; }
.wi-purple { background: #EDE9FB; color: #5B21B6; }

.widget-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.widget-head > span,
.day-card-title,
.funnel-top,
.hour-label {
    color: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-weight: 800;
    padding-top: 2px;
}

.widget-badge-count {
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid rgba(21, 64, 168, 0.18);
    padding: 3px 9px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Large KPI number */
.widget-kpi {
    font-size: clamp(36px, 4vw, 62px);
    line-height: 0.93;
    font-weight: 850;
    color: var(--text);
    letter-spacing: -1.5px;
    position: relative;
    z-index: 1;
}

.widget-kpi-sublabel {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-top: -6px;
}

/* Full-bleed divider inside widget */
.widget-kpi-divider {
    height: 1px;
    background: var(--line);
    margin: 0 -20px;
    flex-shrink: 0;
}

.widget-foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.widget-foot-stat {
    display: flex;
    align-items: baseline;
    gap: 7px;
}

.widget-foot-stat strong {
    font-size: clamp(22px, 2.5vw, 34px);
    font-weight: 850;
    color: var(--text);
    letter-spacing: -0.5px;
    line-height: 1;
}

.widget-foot-stat span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Slim progress bar */
.widget-meter-pill {
    height: 6px;
    background: var(--line);
    overflow: hidden;
}

.widget-meter-pill span {
    display: block;
    height: 100%;
    background: var(--accent);
}

.widget-meter-pill.subtle span {
    background: linear-gradient(90deg, var(--accent), var(--good));
}

.widget-foot-label {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
}

/* Mini bar chart (peak concurrent) */
.mini-peak-bars {
    position: relative;
    z-index: 1;
    height: 54px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
    gap: 6px;
}

.mini-peak-bars span {
    display: block;
    min-height: 10px;
    background: var(--accent-soft);
    border: 1px solid var(--line);
}

.mini-peak-bars span:last-child {
    background: var(--accent);
    border-color: var(--accent-mid);
}

/* Engagement donut gauge */
.engagement-gauge {
    position: relative;
    z-index: 1;
    width: 120px;
    aspect-ratio: 1;
    margin: 0 auto;
    border-radius: 999px;
    background: conic-gradient(var(--accent) var(--gauge), var(--line) 0);
    display: grid;
    place-items: center;
}

.engagement-gauge::before {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: inherit;
    background: var(--panel);
    border: 1px solid var(--line);
}

.engagement-gauge div {
    position: relative;
    text-align: center;
}

.engagement-gauge strong {
    display: block;
    font-size: 17px;
    line-height: 1.1;
    font-weight: 800;
}

.engagement-gauge span {
    display: block;
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-top: 3px;
}

/* Highlight widget title */
.widget-title {
    position: relative;
    z-index: 1;
    font-size: clamp(20px, 2vw, 30px);
    line-height: 1.1;
    font-weight: 850;
    color: var(--text);
    overflow-wrap: anywhere;
    flex: 1;
}

/* Spark bars (best area) */
.area-spark {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    height: 36px;
    align-items: end;
}

.area-spark span {
    display: block;
    background: var(--accent-soft);
    border: 1px solid var(--line);
}

.area-spark span:nth-child(1) { height: 42%; }
.area-spark span:nth-child(2) { height: 70%; }
.area-spark span:nth-child(3) { height: 54%; }
.area-spark span:nth-child(4) { height: 100%; background: var(--accent); border-color: var(--accent); }

.day-comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.day-card {
    border: 1px solid var(--line);
    border-top: 2px solid var(--accent);
    background: var(--panel-alt);
    padding: 14px 16px;
    min-height: 152px;
    box-shadow: 0 1px 4px rgba(12, 25, 41, 0.06);
}

.day-card-date {
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
}

.day-card-main {
    font-size: 36px;
    line-height: 1;
    font-weight: 850;
    letter-spacing: -1px;
    margin-top: 14px;
}

.day-card-area {
    margin-top: 10px;
    font-weight: 700;
    font-size: 12px;
    color: var(--accent);
    overflow-wrap: anywhere;
}

.funnel-list,
.callout-list,
.hour-chart {
    display: grid;
    gap: 10px;
}

.funnel-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.funnel-top strong {
    color: var(--text);
}

.funnel-track,
.hour-bar-track {
    height: 7px;
    background: var(--line);
    overflow: hidden;
}

.funnel-track span,
.hour-bar-track span {
    display: block;
    height: 100%;
    background: var(--accent);
}

.hour-bar-row {
    display: grid;
    grid-template-columns: 94px 1fr 42px;
    align-items: center;
    gap: 10px;
}

.hour-label {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 700;
}

.hour-value {
    text-align: right;
    font-weight: 800;
}

.area-callout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--warn);
    background: var(--warn-soft);
    padding: 12px 14px;
}

.area-callout-value {
    text-align: right;
    font-weight: 800;
    white-space: nowrap;
}

.area-callout-value span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.traffic-pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.traffic-high-traffic {
    background: var(--good-soft);
    color: var(--good);
}

.traffic-moderate {
    background: var(--accent-soft);
    color: var(--accent);
}

.traffic-low {
    background: var(--warn-soft);
    color: var(--warn);
}

/* === TABLE === */
.table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--line);
}

.table th,
.table td {
    border-bottom: 1px solid var(--line);
    padding: 10px 14px;
    text-align: left;
    font-size: 13px;
}

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

.table th {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 10px;
    background: var(--panel-alt);
    font-weight: 700;
    border-bottom: 2px solid var(--line);
}

.table tr:nth-child(even) td {
    background: #FAFBFD;
}

.table tr:hover td {
    background: var(--accent-soft);
}

.table tr.is-unmapped td {
    background: #FEF8F0;
}

/* === SPLIT LAYOUT === */
.split {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 16px;
}

/* === ATTENDEE LIST === */
.attendee-list {
    max-height: 480px;
    overflow: auto;
    border: 1px solid var(--line);
    background: var(--panel);
}

.attendee-list-space {
    margin-top: 8px;
}

.attendee-row {
    padding: 11px 14px;
    border-bottom: 1px solid var(--line);
    cursor: pointer;
    transition: background-color 0.12s;
}

.attendee-row:hover {
    background: var(--panel-alt);
}

.attendee-row.active {
    background: var(--accent-soft);
    border-left: 3px solid var(--accent);
}

.small {
    font-size: 12px;
    color: var(--muted);
}

/* === HEATMAP === */
.heatmap-wrap {
    position: relative;
    min-height: 300px;
    border: 1px solid var(--line);
    background: #F0F5FC;
    overflow: hidden;
}

.heatmap-stage {
    position: relative;
    width: 100%;
    min-height: 300px;
    background: #F2F5F9;
}

.heatmap-fit-page {
    display: block;
    min-height: 360px;
}

.heatmap-fit-page .heatmap-stage {
    margin: 0 auto;
}

.heatmap-wrap > .floor-switcher {
    display: flex;
    width: 100%;
    margin: 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: var(--panel-alt);
}

.heatmap-wrap > .floor-switcher .floor-chip {
    flex: 0 0 auto;
    border-top: 0;
    border-bottom: 0;
}

.heatmap-overlay {
    position: absolute;
    inset: 0;
}

.map-image,
.heatmap-overlay-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.map-image {
    opacity: 0.55;
}

.heatmap-base-image {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 0.55;
    transform: translate(-50%, -50%);
    transform-origin: center;
    user-select: none;
    pointer-events: none;
}

.heatmap-base-image-svg {
    opacity: 0.55;
    pointer-events: none;
    user-select: none;
}

.heatmap-marker {
    position: absolute;
    transform: translate(-50%, -50%);
    border: 2px solid transparent;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(12, 25, 41, 0.2);
    transition: transform 0.18s ease;
    cursor: pointer;
}

.heatmap-marker:hover {
    transform: translate(-50%, -50%) scale(1.12);
}

.heatmap-marker-svg {
    cursor: pointer;
}

.heatmap-marker-svg circle {
    transition: r 0.18s ease, opacity 0.18s ease;
}

.heatmap-blob {
    mix-blend-mode: multiply;
    filter: blur(0.4px);
}

.heatmap-marker-svg:hover .heatmap-blob {
    opacity: 0.86;
}

.heatmap-marker-ring {
    position: absolute;
    inset: -5px;
    border: 2px solid transparent;
    border-radius: 50%;
    animation: heat-pulse 2.2s ease-out infinite;
    opacity: 0.5;
}

.heatmap-tooltip {
    position: absolute;
    width: 208px;
    background: rgba(10, 20, 38, 0.94);
    color: #F0F5FF;
    border: 1px solid rgba(148, 176, 220, 0.28);
    padding: 12px 14px;
    pointer-events: none;
    z-index: 500;
    box-shadow: 0 8px 20px rgba(12, 25, 41, 0.22);
}

.tooltip-title {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #C8DEFF;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.tooltip-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    margin-top: 5px;
}

.tooltip-row span {
    color: rgba(224, 236, 255, 0.68);
}

.tooltip-row strong {
    color: #ffffff;
    font-weight: 700;
}

@keyframes heat-pulse {
    0%   { transform: scale(0.9); opacity: 0.45; }
    70%  { transform: scale(1.4); opacity: 0; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* === HEATMAP LEGEND === */
.heatmap-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.heatmap-fit-page .heatmap-legend {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 40;
    margin: 0;
    max-width: calc(100% - 24px);
    padding: 8px 10px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 22px rgba(12, 25, 41, 0.12);
}

.legend-title {
    font-size: 10px;
    color: var(--muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.legend-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
    border: 1px solid transparent;
    letter-spacing: 0.04em;
}

.legend-chip.c1 { background: rgba(59, 130, 246, 0.12); color: #1740B8; border-color: rgba(59, 130, 246, 0.28); }
.legend-chip.c2 { background: rgba(34, 197, 94, 0.12);  color: #145C2C; border-color: rgba(34, 197, 94, 0.28); }
.legend-chip.c3 { background: rgba(234, 179, 8, 0.14);  color: #975E00; border-color: rgba(234, 179, 8, 0.32); }
.legend-chip.c4 { background: rgba(249, 115, 22, 0.14); color: #B53A08; border-color: rgba(249, 115, 22, 0.32); }
.legend-chip.c5 { background: rgba(220, 38, 38, 0.14);  color: #B01818; border-color: rgba(220, 38, 38, 0.32); }

/* === MAP / PATH === */
.dot {
    position: absolute;
    transform: translate(-50%, -50%);
    border: 1px solid #ffffff;
    background: var(--accent);
    opacity: 0.82;
    border-radius: 50%;
}

.map-surface {
    position: relative;
    border: 1px solid var(--line);
    background: #F0F5FC;
    min-height: 360px;
    overflow: hidden;
}

.path-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.path-location-node {
    cursor: help;
}

.path-location-node-hit {
    fill: transparent;
    stroke: none;
}

.path-location-node-dot {
    fill: rgba(255, 255, 255, 0.88);
    stroke: var(--accent);
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
    opacity: 0.78;
    transition: opacity 0.12s ease, fill 0.12s ease, stroke-width 0.12s ease;
}

.path-location-node:hover .path-location-node-dot {
    fill: var(--accent-soft);
    opacity: 1;
    stroke-width: 3;
}

/* === NOTES / STATUS === */
.note {
    border-left: 3px solid var(--accent);
    padding: 10px 14px;
    background: var(--accent-soft);
    color: var(--muted);
    font-size: 13px;
}

.status-good { color: var(--good); font-weight: 600; }
.status-warn { color: var(--warn); font-weight: 600; }

/* === UTILITY === */
.hidden {
    display: none;
}

.pill-bad,
.pill-good {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pill-good {
    background: var(--good-soft);
    color: var(--good);
    border: 1px solid rgba(20, 92, 44, 0.2);
}

.pill-bad {
    background: var(--warn-soft);
    color: var(--warn);
    border: 1px solid rgba(136, 75, 16, 0.2);
}

/* === METRIC CARDS === */
.card-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border: 1px solid var(--line);
    box-shadow: 0 1px 3px rgba(12, 25, 41, 0.05);
}

.metric-card {
    background: var(--panel);
    padding: 16px 18px;
    border-right: 1px solid var(--line);
}

.metric-card:last-child {
    border-right: none;
}

.metric-card .name {
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.metric-card .val {
    margin-top: 7px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

/* === WIZARD === */
.wizard-shell {
    display: grid;
    gap: 16px;
}

.wizard-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border: 1px solid var(--line);
}

.wizard-step {
    width: 100%;
    justify-content: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border-right: 1px solid var(--line);
    text-align: left;
    background: var(--panel);
    border-radius: 0;
    border-top: none;
    border-bottom: none;
    border-left: none;
}

.wizard-step:last-child {
    border-right: none;
}

.wizard-step.active {
    border-top: 2px solid var(--accent);
    background: var(--accent-soft);
    margin-top: -1px;
}

.wizard-step:not(.active):hover {
    background: var(--panel-alt);
}

.wizard-step-num {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--panel-alt);
    color: var(--accent);
    font-weight: 800;
    font-size: 12px;
    flex-shrink: 0;
    border: 1px solid var(--line);
}

.wizard-step.active .wizard-step-num {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.wizard-step-copy {
    display: grid;
    gap: 2px;
}

.wizard-step-copy strong {
    font-size: 13px;
    font-weight: 700;
}

.wizard-step-copy span {
    font-size: 11px;
    color: var(--muted);
}

.wizard-panel {
    padding: 20px;
}

.wizard-panel-head {
    margin-bottom: 14px;
}

.wizard-actions {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

/* Reusable flex header row */
.panel-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.panel-h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.1px;
    color: var(--text);
}

.panel-h3-sub {
    margin-top: 3px;
    font-size: 11px;
    color: var(--muted);
}

.scroll-box {
    max-height: 340px;
    overflow: auto;
    border: 1px solid var(--line);
}

.status-bar {
    margin-top: 10px;
    padding: 9px 14px;
    font-size: 12px;
    color: var(--muted);
    background: var(--panel-alt);
    border: 1px solid var(--line);
    min-height: 34px;
}

.status-loading {
    color: var(--text);
    border-color: var(--accent);
    background: linear-gradient(180deg, #ffffff 0%, var(--panel-alt) 100%);
}

.status-loading-row {
    display: flex;
    align-items: center;
    gap: 9px;
}

.inline-loading-status {
    display: grid;
    gap: 8px;
    color: var(--text);
}

.source-progress {
    display: grid;
    gap: 10px;
    color: var(--text);
    margin-top: 4px;
}

.source-progress-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.source-progress-title {
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
}

.source-progress-label {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.source-progress-head strong {
    min-width: 42px;
    font-size: 13px;
    color: var(--accent);
    text-align: right;
}

.source-progress-track {
    height: 10px;
    overflow: hidden;
    background: var(--line);
    border: 1px solid var(--line-strong);
}

.source-progress-fill {
    height: 100%;
    width: 0;
    background: var(--accent);
    transition: width 0.25s ease;
}

.source-progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.source-progress-detail {
    display: grid;
    gap: 6px;
    padding: 9px 10px;
    background: var(--panel-alt);
    border: 1px solid var(--line);
}

.source-progress-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    color: var(--text);
    font-size: 12px;
    line-height: 1.35;
}

.source-progress-detail-head span {
    overflow-wrap: anywhere;
}

.source-progress-detail-head strong {
    flex: 0 0 auto;
    color: var(--accent);
    font-size: 12px;
}

.source-progress-detail-track {
    height: 6px;
    overflow: hidden;
    background: var(--line);
}

.source-progress-detail-fill {
    height: 100%;
    width: 0;
    background: var(--accent-mid);
    transition: width 0.25s ease;
}

.source-progress-detail-meta {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.status-loading-spinner {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--line);
    border-top-color: var(--accent);
    flex: 0 0 auto;
    animation: spin 0.85s linear infinite;
}

.show-select-spinner {
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--line);
    border-top-color: var(--accent);
    pointer-events: none;
    animation: spin 0.85s linear infinite;
}

.status-progress-track {
    height: 5px;
    margin-top: 9px;
    overflow: hidden;
    background: var(--line);
}

.status-progress-fill {
    width: 42%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-mid));
    animation: status-progress-indeterminate 1.35s ease-in-out infinite;
}

.status-progress-fill.determinate {
    animation: none;
    transform: none;
    transition: width 0.25s ease;
}

@keyframes status-progress-indeterminate {
    0% { transform: translateX(-110%); }
    50% { transform: translateX(65%); }
    100% { transform: translateX(245%); }
}

.list-editor {
    display: grid;
    gap: 8px;
}

.list-editor-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 8px;
    align-items: end;
    padding: 10px;
    border: 1px solid var(--line);
    background: #fff;
}

.list-editor-empty {
    padding: 12px;
    border: 1px dashed var(--line);
    color: var(--muted);
    font-size: 13px;
    background: var(--panel-alt);
}

/* === SWIMLANE TIMELINE === */
.timeline-with-detail {
    display: flex;
    gap: 0;
    min-height: 300px;
}

.timeline-scroll-area {
    flex: 1;
    min-width: 0;
    padding-right: 14px;
}

.timeline-detail-panel {
    width: 268px;
    min-width: 268px;
    border-left: 2px solid var(--line);
    padding: 16px 18px;
    background: var(--panel);
    align-self: flex-start;
    position: sticky;
    top: 0;
    max-height: 600px;
    overflow-y: auto;
}

.timeline-detail-empty {
    color: var(--muted);
    font-size: 12px;
    font-style: italic;
    text-align: center;
    padding: 32px 8px;
    line-height: 1.7;
}

.timeline-detail-location {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 12px;
    word-break: break-word;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.timeline-detail-sub {
    font-size: 12px;
    color: var(--muted);
    margin-top: -8px;
    margin-bottom: 10px;
}

.timeline-detail-duration {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin: 14px 0;
    color: var(--text);
    letter-spacing: -0.03em;
}

.timeline-detail-times {
    background: var(--panel-alt);
    border: 1px solid var(--line);
    padding: 10px 12px;
    margin-bottom: 10px;
}

.timeline-detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 12px;
}

.timeline-detail-row:last-child { margin-bottom: 0; }

.timeline-detail-lbl { color: var(--muted); }
.timeline-detail-val { font-weight: 600; }

.timeline-detail-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.timeline-detail-stat {
    background: var(--panel-alt);
    border: 1px solid var(--line);
    padding: 9px;
    text-align: center;
}

.timeline-detail-stat-val {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
}

.timeline-detail-stat-lbl {
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-top: 3px;
}

@keyframes tl-fadein {
    from { opacity: 0; transform: translateY(-5px); }
    to   { opacity: 1; transform: translateY(0); }
}

.timeline-detail-content { animation: tl-fadein 0.15s ease; }

.swimlane-container { display: grid; gap: 0; }

.swimlane-section-block { margin-bottom: 28px; }

.swimlane-section-header {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    padding: 6px 0 8px;
    border-bottom: 2px solid var(--accent);
    margin-bottom: 12px;
}

.swimlane-date-block { margin-bottom: 24px; }

.swimlane-date-header {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    padding: 6px 0;
    border-bottom: 1px solid var(--line);
    margin-bottom: 4px;
}

.swimlane-row {
    display: grid;
    grid-template-columns: minmax(240px, 320px) 1fr;
    align-items: start;
    min-height: 28px;
}

.swimlane-label {
    font-size: 12px;
    color: var(--text);
    padding-right: 10px;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.3;
    display: flex;
    flex-direction: column;
    padding-top: 4px;
}

.swimlane-label-visits {
    font-size: 10px;
    color: var(--muted);
    margin-top: 1px;
}

.swimlane-track {
    position: relative;
    height: 28px;
    background: var(--panel-alt);
    border: 1px solid var(--line);
    border-radius: 0;
    overflow: visible;
    margin-right: 8px;
}

.swimlane-axis-row { min-height: 22px; }

.swimlane-axis {
    height: 22px;
    background: transparent;
    border-bottom: 2px solid var(--line);
    border-radius: 0;
    margin-right: 8px;
    position: relative;
    overflow: visible;
}

.swimlane-tick {
    position: absolute;
    top: 4px;
    font-size: 10px;
    color: var(--muted);
    transform: translateX(-50%);
    white-space: nowrap;
}

.swimlane-gridline {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--line);
    pointer-events: none;
}

.swimlane-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swimlane-marker-vline {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 28px;
    background: rgba(21, 64, 168, 0.18);
    pointer-events: none;
    transition: background 0.12s, height 0.12s;
}

.swimlane-marker:hover .swimlane-marker-vline,
.swimlane-marker.active .swimlane-marker-vline {
    background: var(--accent);
    opacity: 0.55;
    height: 38px;
}

.swimlane-marker-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--panel);
    box-shadow: 0 1px 4px rgba(0,0,0,0.18);
    transition: all 0.12s;
    z-index: 1;
}

.swimlane-marker:hover .swimlane-marker-dot,
.swimlane-marker.active .swimlane-marker-dot {
    width: 18px;
    height: 18px;
    box-shadow: 0 0 10px rgba(21, 64, 168, 0.5);
}

.swimlane-marker.active .swimlane-marker-dot {
    background: var(--good);
}

.swimlane-marker-tip {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.12s;
    pointer-events: none;
    z-index: 100;
    letter-spacing: 0.04em;
}

.swimlane-marker:hover .swimlane-marker-tip,
.swimlane-marker.active .swimlane-marker-tip {
    opacity: 1;
}

.timeline-detail-header {
    color: var(--accent);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--line);
}

/* === PATH PLAYBACK CONTROLS === */
.path-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.playback-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.floating-playback-panel {
    position: sticky;
    top: 12px;
    z-index: 35;
    margin-bottom: 14px;
    padding: 14px 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 16px rgba(12, 25, 41, 0.1);
    backdrop-filter: blur(8px);
}

.floating-playback-toprow {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.floating-path-stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: stretch;
}

.floating-path-stats-dock {
    position: sticky;
    top: 108px;
    z-index: 34;
    display: flex;
    justify-content: flex-end;
    margin: 6px 0 12px;
    pointer-events: none;
}

.floating-path-stats-stack {
    display: inline-flex;
    flex-direction: column;
    margin: 0;
    pointer-events: auto;
}

.floating-path-stat-card {
    min-width: 96px;
    max-width: 180px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 2px 8px rgba(12, 25, 41, 0.06);
}

.playback-scrubber {
    flex: 1;
    min-width: 80px;
    height: 4px;
    cursor: pointer;
    accent-color: var(--accent);
}

.speed-chip {
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid var(--line-strong);
    background: var(--panel);
    cursor: pointer;
    border-radius: 0;
    color: var(--muted);
    letter-spacing: 0.04em;
}

.speed-chip.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.loading-msg {
    padding: 20px;
    color: var(--muted);
    font-size: 13px;
}

.loading-pane {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.loading-pane .loading-msg {
    padding: 0;
    text-align: center;
}

.loading-spinner {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(21, 64, 168, 0.15);
    border-top-color: var(--accent);
    animation: pane-spin 0.85s linear infinite;
}

@keyframes pane-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* === PATH ANIMATIONS === */
@keyframes dot-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

@keyframes marker-breathe {
    0%, 100% { opacity: 0.35; transform: scale(0.9); }
    50% { opacity: 0.9; transform: scale(1.15); }
}

@keyframes path-shimmer {
    0% { stroke-dashoffset: 100; }
    100% { stroke-dashoffset: 0; }
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--panel-alt); }
::-webkit-scrollbar-thumb { background: var(--line); }
::-webkit-scrollbar-thumb:hover { background: var(--line-strong); }

/* === ATTENDEE ENGAGEMENT OVERVIEW === */
.attendee-overview-hero {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 20px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 4px;
    flex-wrap: wrap;
}

.attendee-id-block {
    min-width: 160px;
    flex-shrink: 0;
}

.attendee-id-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.attendee-id-company {
    font-size: 12px;
    color: var(--muted);
    margin-top: 3px;
}

.attendee-id-badge {
    display: inline-block;
    margin-top: 6px;
    font-size: 10px;
    font-family: monospace;
    color: var(--muted);
    background: var(--panel-alt);
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: 2px 6px;
}

.attendee-kpi-row {
    display: flex;
    flex: 1;
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
}

.attendee-kpi {
    flex: 1;
    padding: 12px 16px;
    border-right: 1px solid var(--line);
    text-align: center;
}

.attendee-kpi:last-child {
    border-right: none;
}

.attendee-kpi-val {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.attendee-kpi-label {
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 5px;
}

.attendee-kpi-sub {
    font-size: 9px;
    color: var(--muted);
    margin-top: 2px;
    opacity: 0.7;
}

/* === AREA CARDS (demo section performance) === */
.area-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.area-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 10px 12px;
}

.area-card-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.area-card-bar-wrap {
    height: 4px;
    background: var(--line);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
}

.area-card-bar {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
}

.area-card-stats {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: var(--muted);
}

/* === DETAIL GRID (attendee analytics 2-col layout) === */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: stretch;
}

.detail-grid > .panel-alt.visit-log-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.detail-grid > .panel-alt.visit-log-panel .session-scroll {
    flex: 1;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
}

/* === PROGRESS BARS === */
.progress-row {
    display: grid;
    grid-template-columns: minmax(240px, 340px) 1fr 44px;
    align-items: start;
    gap: 10px;
    margin-bottom: 10px;
}

.progress-label {
    font-size: 12px;
    color: var(--text);
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

.progress-label small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.3;
}

.progress-track {
    height: 5px;
    background: var(--line);
    overflow: hidden;
    margin-top: 6px;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    transition: width 0.3s ease;
}

.progress-pct {
    font-size: 11px;
    color: var(--muted);
    text-align: right;
    font-weight: 700;
    padding-top: 1px;
}

/* === INLINE BAR === */
.inline-bar-wrap {
    height: 4px;
    background: var(--line);
    min-width: 60px;
    overflow: hidden;
}

.inline-bar {
    height: 100%;
    background: var(--accent);
}

/* === SESSION SCROLL === */
.session-scroll {
    max-height: 320px;
    overflow-y: auto;
}

.visit-location-main {
    font-weight: 600;
    color: var(--text);
    line-height: 1.25;
}

.visit-location-sub {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.35;
}

/* === SMALL VAL === */
.small-val {
    font-size: 14px;
    font-weight: 600;
}

/* === SESSION TRACKING VISUALS === */
.clickable-row {
    cursor: pointer;
}

.session-rank-row td {
    vertical-align: middle;
}

.session-rank-item,
.session-cell,
.room-metric {
    display: grid;
    gap: 6px;
}

.session-rank-head {
    display: grid;
    gap: 2px;
}

.session-rank-num {
    font-size: 10px;
    font-weight: 800;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.session-rank-title,
.session-cell-title,
.scheduled-session-title,
.room-metric-name,
.attendee-presence-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.session-rank-meta,
.session-cell-meta,
.scheduled-session-meta,
.room-metric-meta,
.session-detail-time,
.presence-window,
.scheduled-session-times {
    font-size: 11px;
    color: var(--muted);
}

.session-rank-bar,
.mini-bar {
    height: 6px;
    background: var(--line);
    overflow: hidden;
    position: relative;
}

.session-rank-fill,
.mini-bar-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-mid));
}

.session-rank-value {
    width: 96px;
    text-align: right;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.mini-bar-wrap {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    min-width: 160px;
}

.mini-bar-block {
    display: grid;
    gap: 6px;
}

.mini-bar-cutoff {
    position: absolute;
    top: -2px;
    bottom: -2px;
    width: 1px;
    background: rgba(12, 25, 41, 0.55);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7);
    transform: translateX(-50%);
}

.mini-bar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    font-size: 10px;
    color: var(--muted);
    line-height: 1.3;
}

.mini-bar-legend strong {
    color: var(--muted);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.mini-bar-legend span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.mini-bar-legend i {
    width: 1px;
    height: 10px;
    background: rgba(12, 25, 41, 0.55);
    display: inline-block;
}

.mini-bar-note {
    font-size: 10px;
    color: var(--muted);
}

.mini-bar-label {
    font-size: 11px;
    color: var(--muted);
    font-weight: 700;
    white-space: nowrap;
}

.class-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    padding: 3px 8px;
    border: 1px solid var(--line);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--panel-alt);
    color: var(--text);
}

.class-a {
    background: var(--warn-soft);
    color: var(--warn);
    border-color: rgba(136, 75, 16, 0.2);
}

.class-b {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: rgba(21, 64, 168, 0.2);
}

.class-c {
    background: var(--good-soft);
    color: var(--good);
    border-color: rgba(20, 92, 44, 0.2);
}

.class-d {
    background: rgba(107, 114, 128, 0.1);
    color: var(--muted);
    border-color: rgba(107, 114, 128, 0.18);
}

.class-unqualified,
.class-empty {
    background: transparent;
    color: var(--muted);
}

.class-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 8px;
}

.class-chip strong {
    font-size: 12px;
    color: var(--text);
}

.session-detail-band {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    background: var(--panel-alt);
    flex-wrap: wrap;
    border-left: 3px solid var(--accent);
}

.session-detail-classes {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.scheduled-session-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.scheduled-session-card {
    border: 1px solid var(--line);
    background: var(--panel);
    padding: 16px;
    display: grid;
    gap: 10px;
    box-shadow: 0 1px 3px rgba(12, 25, 41, 0.05);
    transition: border-color 0.12s, box-shadow 0.12s;
}

.scheduled-session-card:hover {
    border-color: var(--line-strong);
    box-shadow: 0 3px 8px rgba(12, 25, 41, 0.1);
}

.scheduled-session-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.scheduled-session-schedule {
    font-size: 11px;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.scheduled-session-times {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.session-entry-timeline {
    display: grid;
    gap: 8px;
    padding: 10px 0 2px;
}

.session-entry-timeline.is-empty {
    padding: 8px 0;
}

.session-entry-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
}

.session-entry-head strong {
    color: var(--text);
    font-size: 10px;
    letter-spacing: 0.04em;
}

.session-entry-track {
    position: relative;
    height: 14px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, var(--panel-alt), var(--panel));
    overflow: hidden;
}

.session-schedule-window {
    position: absolute;
    top: 3px;
    bottom: 3px;
    background: rgba(100, 116, 139, 0.16);
    border-left: 1px solid rgba(100, 116, 139, 0.28);
    border-right: 1px solid rgba(100, 116, 139, 0.28);
}

.session-entry-segment {
    position: absolute;
    top: 2px;
    bottom: 2px;
    min-width: 4px;
    background: var(--accent);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55) inset;
}

.session-entry-segment.tone-1 {
    background: var(--good);
}

.session-entry-segment.tone-2 {
    background: var(--warn);
}

.session-entry-segment.tone-3 {
    background: var(--accent-mid);
}

.session-entry-timeline:not(.is-credited) .session-entry-segment {
    background: var(--accent);
}

.session-entry-timeline.is-credited .session-entry-segment {
    background: var(--good);
}

.session-entry-timeline.is-credited .session-entry-chip b {
    background: var(--good-soft);
    color: var(--good);
}

.session-entry-axis {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 10px;
    line-height: 1;
}

.session-entry-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.session-entry-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    padding: 4px 7px;
    border: 1px solid var(--line);
    background: var(--panel-alt);
    color: var(--text);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.25;
}

.session-entry-chip b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 9px;
}

.session-entry-chip em {
    color: var(--muted);
    font-style: normal;
    font-weight: 600;
    white-space: nowrap;
}

.scheduled-session-actions {
    display: flex;
    justify-content: flex-end;
}

.scheduled-session-card.comparison-ready {
    border-color: rgba(21, 64, 168, 0.32);
    cursor: pointer;
}

.scheduled-session-card.comparison-ready:hover {
    border-color: var(--accent);
    box-shadow: 0 3px 10px rgba(21, 64, 168, 0.12);
}

/* === COMPARISON MODAL === */
.comparison-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.comparison-modal.hidden {
    display: none;
}

/* === LIVE BODY WRAPPER === */
.live-body {
    padding: 20px 36px 60px;
    display: grid;
    gap: 16px;
}

/* === STAT CARD WIDGETS === */
.stat-pulse-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 28px;
    margin-top: 16px;
}

.stat-pulse-bars span {
    display: block;
    width: 6px;
    border-radius: 2px 2px 0 0;
    background: var(--accent);
    transform-origin: bottom;
    animation: bar-bounce 1.4s ease-in-out infinite;
}

.stat-pulse-bars span:nth-child(1) { height: 35%; animation-delay: 0s; }
.stat-pulse-bars span:nth-child(2) { height: 70%; animation-delay: 0.18s; }
.stat-pulse-bars span:nth-child(3) { height: 100%; animation-delay: 0.36s; }
.stat-pulse-bars span:nth-child(4) { height: 55%; animation-delay: 0.54s; }
.stat-pulse-bars span:nth-child(5) { height: 80%; animation-delay: 0.12s; }
.stat-pulse-bars span:nth-child(6) { height: 45%; animation-delay: 0.42s; }
.stat-pulse-bars span:nth-child(7) { height: 65%; animation-delay: 0.28s; }

@keyframes bar-bounce {
    0%, 100% { transform: scaleY(0.25); opacity: 0.45; }
    50%       { transform: scaleY(1);    opacity: 1; }
}

.stat-alert .stat-pulse-bars span { background: #9B1C1C; }

.stat-gauge-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.stat-gauge {
    flex-shrink: 0;
    display: block;
}

.stat-progress {
    margin-top: 16px;
}

.stat-progress-track {
    height: 6px;
    background: var(--panel-alt);
    border: 1px solid var(--line);
    overflow: hidden;
    margin-bottom: 7px;
}

.stat-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--good), #4BA86A);
    transition: width 0.5s ease;
}

.stat-progress-label {
    font-size: 10px;
    color: var(--muted);
    font-weight: 600;
    letter-spacing: 0.03em;
}

.stat-stack {
    margin-top: 16px;
}

.stat-stack-track {
    height: 6px;
    display: flex;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--panel-alt);
    margin-bottom: 7px;
}

.stat-stack-seen {
    height: 100%;
    background: linear-gradient(90deg, var(--good), #4BA86A);
    transition: width 0.5s ease;
    flex-shrink: 0;
}

.stat-stack-noshow {
    height: 100%;
    background: linear-gradient(90deg, #b86c0a, #d48c14);
    transition: width 0.5s ease;
    flex-shrink: 0;
}

/* === LIVE STAT GRID OVERRIDE === */
#liveSummary {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    border: none;
    box-shadow: none;
    background: transparent;
}

#liveSummary .stat {
    border: 1px solid var(--line);
    border-top: 4px solid var(--line-strong);
    border-right: 1px solid var(--line);
    box-shadow: 0 2px 10px rgba(12, 25, 41, 0.06);
    padding: 20px 22px 22px;
}

.stat-download-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-strong);
    background: var(--panel-alt);
    color: var(--muted);
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

.stat-download-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-soft);
}

#liveSummary .stat:last-child {
    border-right: 1px solid var(--line);
}

#liveSummary .stat:nth-child(1) { border-top-color: var(--accent); }
#liveSummary .stat:nth-child(2) { border-top-color: #0c7a6a; }
#liveSummary .stat:nth-child(3) { border-top-color: var(--good); }
#liveSummary .stat:nth-child(4) { border-top-color: #6B3FA0; }
#liveSummary .stat:nth-child(5) { border-top-color: #b86c0a; }

#liveSummary .stat.stat-alert { border-top-color: #9B1C1C; background: #FEF2F2; }
#liveSummary .stat.stat-alert .v { color: #9B1C1C; }

#liveSummary .stat .k {
    font-size: 11px;
    letter-spacing: 0.07em;
    font-weight: 700;
    color: var(--muted);
}

#liveSummary .stat .v {
    font-size: 38px;
    margin-top: 8px;
    letter-spacing: -0.04em;
    line-height: 1;
}

.stat-progress-fill-beacon {
    background: linear-gradient(90deg, #6B3FA0, #8B5CC7);
}

/* === LIVE BEACON ATTENTION CHIP === */
.show-meta-chip.live-beacon-chip {
    color: #9A3412;
    background: #FFF7ED;
    border-color: #FED7AA;
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
}

.show-meta-chip.live-beacon-chip::before {
    background: #FB923C;
}

.show-meta-chip.live-beacon-chip.has-warning {
    color: #7C2D12;
    border-color: #FDBA74;
}

.show-meta-chip.live-beacon-chip:hover {
    background: #FFEDD5;
    border-color: #FB923C;
}

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

.beacon-modal-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    color: #9A3412;
    font-size: 11px;
    font-weight: 700;
}

.beacon-modal-meta span {
    background: #FFF7ED;
    border: 1px solid #FED7AA;
    padding: 3px 7px;
}

/* === LIVE SESSION OVERLAY === */
.live-session-overlay {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    border: 1px solid var(--line);
    box-shadow: 0 2px 10px rgba(12, 25, 41, 0.07);
    overflow: hidden;
}

.live-session-col {
    background: var(--panel);
    padding: 20px 22px;
}

.live-section-space {
    margin-top: 0;
}

.live-session-col + .live-session-col {
    border-left: 1px solid var(--line);
    background: #F9FAFB;
}

.live-session-col-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.live-session-col-label::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    animation: live-dot-pulse 2s ease-in-out infinite;
}

.live-session-col-label.label-next::before {
    background: var(--line-strong);
    animation: none;
}

.live-session-col-label.label-ended::before {
    background: #9CA3AF;
    animation: none;
}

@keyframes live-dot-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(21, 64, 168, 0.55); }
    50%       { box-shadow: 0 0 0 5px rgba(21, 64, 168, 0); }
}

.live-session-now-row {
    display: grid;
    gap: 10px;
}

.live-session-card {
    border-left: 4px solid var(--accent);
    padding: 14px 16px;
    background: var(--panel);
    border-top: 1px solid rgba(21, 64, 168, 0.12);
    border-right: 1px solid rgba(21, 64, 168, 0.12);
    border-bottom: 1px solid rgba(21, 64, 168, 0.12);
    box-shadow: 0 1px 4px rgba(21, 64, 168, 0.07);
}

.live-session-card-clickable {
    cursor: pointer;
    transition: border-color 0.12s, box-shadow 0.12s;
}

.live-session-card-clickable:hover {
    border-left-color: var(--accent-dark, #0f3a9e);
    box-shadow: 0 2px 8px rgba(21, 64, 168, 0.14);
}

.live-session-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 9px;
}

.live-session-card-meta {
    font-size: 11px;
    color: var(--muted);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.live-session-count {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    background: var(--accent);
    padding: 2px 8px;
    letter-spacing: 0.02em;
}

.live-session-next-row {
    display: grid;
    gap: 8px;
}

.live-session-next-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 11px 14px;
    border: 1px solid var(--line);
    background: var(--panel);
    transition: border-color 0.12s;
}

.live-session-next-item:hover { border-color: var(--line-strong); }

.live-session-next-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

.live-session-next-meta {
    font-size: 11px;
    color: var(--muted);
    margin-top: 3px;
}

.live-session-countdown {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid rgba(21, 64, 168, 0.18);
    padding: 3px 9px;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.live-session-empty {
    font-size: 12px;
    color: var(--muted);
    padding: 10px 0;
    font-style: italic;
}

.live-session-ended-row {
    display: grid;
    gap: 8px;
}

.live-session-ended-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-left: 3px solid #9CA3AF;
    background: var(--panel);
    opacity: 0.8;
}

.live-session-ended-badge {
    font-size: 11px;
    font-weight: 700;
    color: #6B7280;
    background: #F3F4F6;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    padding: 2px 8px;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

/* === LIVE STAT ALERT === */
.stat.stat-alert .v { color: #9B1C1C; }
.stat.stat-alert { background: #FEF2F2; border-top-color: #9B1C1C; }

/* === LIVE COMPANY BREAKDOWN === */
.live-company-list {
    border: 1px solid var(--line);
}

.live-company-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px 40px;
    gap: 14px;
    padding: 11px 16px;
    border-bottom: 1px solid var(--line);
    align-items: center;
}

.live-company-row:last-child { border-bottom: 0; }

.live-company-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-company-bar-wrap {
    height: 10px;
    background: var(--panel-alt);
    border: 1px solid var(--line);
    overflow: hidden;
}

.live-company-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-mid));
    transition: width 0.4s ease;
}

.live-company-count {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    text-align: right;
}

/* === LIVE ROOM TABLE BARS === */
.live-room-active-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.live-room-count {
    font-weight: 700;
    min-width: 22px;
    font-size: 13px;
}

.live-room-bar-wrap {
    flex: 1;
    height: 6px;
    background: var(--panel-alt);
    border: 1px solid var(--line);
    overflow: hidden;
    min-width: 40px;
}

.live-room-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-mid));
    transition: width 0.4s ease;
}

.live-room-last-seen {
    font-size: 11px;
    color: var(--muted);
}

/* === ROOM ROW CLICKABLE === */
tr.room-row-clickable {
    cursor: pointer;
}

tr.room-row-clickable:hover td {
    background: var(--accent-soft);
}

.room-row-hint {
    display: inline-block;
    margin-left: 6px;
    font-size: 10px;
    color: var(--accent-mid);
    opacity: 0;
    transition: opacity 0.15s;
}

tr.room-row-clickable:hover .room-row-hint {
    opacity: 1;
}

/* === ROOM ROSTER MODAL === */
.room-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(12, 25, 41, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9000;
    padding: 20px;
}

.room-modal-backdrop.hidden {
    display: none;
}

.room-modal {
    background: var(--panel);
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(12, 25, 41, 0.3);
    width: 100%;
    max-width: 440px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.room-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    gap: 12px;
}

.room-modal-title {
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.room-modal-close {
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
    padding: 0 2px;
    flex-shrink: 0;
}

.room-modal-close:hover {
    color: var(--text);
}

.room-modal-body {
    overflow-y: auto;
    padding: 8px 0;
    flex: 1;
}

.room-modal-person {
    padding: 9px 20px;
    border-bottom: 1px solid var(--line);
}

.room-modal-person:last-child {
    border-bottom: none;
}

.room-modal-person-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--text);
}

.room-modal-person-company {
    font-size: 11px;
    color: var(--muted);
    margin-top: 1px;
}

/* === PEOPLE SEARCH === */
.people-search-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.people-search-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: var(--panel-alt);
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s;
}

.people-search-input:focus {
    border-color: var(--accent-mid);
    background: var(--panel);
}

.people-search-results {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.people-search-empty {
    color: var(--muted);
    font-size: 12px;
    padding: 8px 2px;
}

.people-result-row {
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
}

.people-result-row:last-child {
    border-bottom: none;
}

.people-result-name {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
    font-weight: 600;
    font-size: 13px;
    color: var(--text);
}

.people-result-status {
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    padding: 2px 6px;
    text-transform: uppercase;
    white-space: nowrap;
}

.people-result-status.is-active {
    border-color: rgba(31, 138, 95, .28);
    color: var(--good);
    background: var(--good-soft);
}

.people-result-status.is-inactive {
    border-color: var(--line);
    color: var(--muted);
    background: var(--surface-soft);
}

.people-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
    font-size: 11px;
    color: var(--muted);
}

.people-result-room {
    color: var(--accent-mid);
    font-weight: 500;
}

.people-result-time {
    color: var(--muted);
}

/* === LIVE TREND BARS === */
.live-trend-row {
    display: grid;
    grid-template-columns: 80px 1fr 140px;
    gap: 10px;
    align-items: center;
}

.live-trend-label {
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
    white-space: nowrap;
}

.live-trend-bar {
    height: 16px;
    border: none;
    background: rgba(12, 25, 41, 0.05);
    position: relative;
    overflow: hidden;
}

.live-trend-fill {
    position: absolute;
    inset: 0 auto 0 0;
    transition: width 0.4s ease;
}

.live-trend-meta {
    font-size: 11px;
    color: var(--muted);
    white-space: nowrap;
}

/* === LIVE HEATMAP — MODERN OVERRIDES === */
.live-heatmap-wrap {
    border: none;
    background: transparent;
    min-height: 0;
    overflow: visible;
}

.live-map-shell {
    position: relative;
    background: #0e1621;
    border: none;
    border-radius: 0;
    overflow: hidden;
    box-shadow: inset 0 0 60px rgba(0,0,0,0.4);
}

.live-map-image {
    display: block;
    width: 100%;
    height: auto;
    opacity: 0.38;
    mix-blend-mode: luminosity;
    filter: brightness(0.75) contrast(0.9);
}

/* Floor switcher overlaid on map — glass panel */
.heatmap-floor-switcher {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 20;
    display: flex;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(14, 22, 33, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: fit-content;
}

.heatmap-floor-switcher .floor-chip {
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 11px;
    font-weight: 600;
    padding: 6px 14px;
    letter-spacing: 0.04em;
}

.heatmap-floor-switcher .floor-chip:last-child {
    border-right: none;
}

.heatmap-floor-switcher .floor-chip.active {
    background: var(--accent);
    color: #fff;
}

.heatmap-floor-switcher .floor-chip:hover:not(.active) {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
}

/* In all-floors view the switcher flows above the grid, not overlaid on a map */
.live-map-shell-allview .heatmap-floor-switcher {
    position: static;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--panel-alt);
    border: 1px solid var(--line);
    border-radius: 6px;
    margin-bottom: 12px;
    width: fit-content;
}

.live-map-shell-allview .heatmap-floor-switcher .floor-chip {
    background: transparent;
    color: var(--muted);
    border-right: 1px solid var(--line);
}

.live-map-shell-allview .heatmap-floor-switcher .floor-chip.active {
    background: var(--accent);
    color: #fff;
}

.live-map-shell-allview .heatmap-floor-switcher .floor-chip:hover:not(.active) {
    background: var(--accent-soft);
    color: var(--accent);
}

/* Dot base — modern sphere look */
.live-heat-dot {
    position: absolute;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    cursor: default;
    transition: transform 0.35s ease, box-shadow 0.35s ease, width 0.35s ease, height 0.35s ease;
    will-change: transform;
}

.live-heat-dot:hover {
    transform: translate(-50%, -50%) scale(1.15);
    z-index: 50;
}

.live-heat-dot span { pointer-events: none; }

/* Breathing pulse for hot dots */
.live-heat-dot.heat-high {
    animation: dot-breathe-hot 2.2s ease-in-out infinite;
}

.live-heat-dot.heat-med {
    animation: dot-breathe-med 3s ease-in-out infinite;
}

@keyframes dot-breathe-hot {
    0%, 100% { opacity: 1;    transform: translate(-50%, -50%) scale(1); }
    50%       { opacity: 0.88; transform: translate(-50%, -50%) scale(1.07); }
}

@keyframes dot-breathe-med {
    0%, 100% { opacity: 1;    transform: translate(-50%, -50%) scale(1); }
    50%       { opacity: 0.9;  transform: translate(-50%, -50%) scale(1.04); }
}

/* Session-active dot — white ring pulse */
.live-heat-dot.session-active {
    animation: session-dot-ring 1.8s ease-in-out infinite !important;
}

@keyframes session-dot-ring {
    0%, 100% { box-shadow: var(--dot-glow), 0 0 0 3px rgba(255,255,255,0.9), 0 0 0 6px rgba(255,255,255,0.15); }
    50%       { box-shadow: var(--dot-glow), 0 0 0 3px rgba(255,255,255,1),   0 0 0 10px rgba(255,255,255,0); }
}

/* === LIVE DASHBOARD === */
.live-banner {
    margin-bottom: 14px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--warn);
    background: var(--warn-soft);
    color: var(--warn);
}

.live-banner.live-banner-error {
    background: #FEF2F2;
    color: #9B1C1C;
    border-color: #FECACA;
    border-left-color: #9B1C1C;
}

.live-banner.live-banner-warn {
    background: var(--warn-soft);
    color: var(--warn);
    border-color: #FDD0A0;
    border-left-color: var(--warn);
}

.live-loading-bar {
    margin-bottom: 18px;
}

.live-loading-bar-track {
    height: 4px;
    background: var(--line);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.live-loading-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 45%;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent-soft, #c7e0fa), var(--accent, #1a6fb5), var(--accent-soft, #c7e0fa));
    background-size: 200% 100%;
    animation: live-bar-sweep 1.4s ease-in-out infinite;
}

.live-loading-bar-label {
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--muted);
    letter-spacing: 0.01em;
}

@keyframes live-bar-sweep {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(320%); }
}

.live-heatmap-wrap {
    min-height: 420px;
}

.live-rooms-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.live-rooms-scroll {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.live-map-shell {
    position: relative;
    border: 1px solid var(--line);
    background: var(--panel-alt);
    overflow: hidden;
}

.live-map-image {
    display: block;
    width: 100%;
    height: auto;
}

.live-map-overlay {
    position: absolute;
    inset: 0;
}

.live-heat-dot {
    position: absolute;
    transform: translate(-50%, -50%);
    border: 2px solid transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(12, 25, 41, 0.18);
    backdrop-filter: blur(1px);
}

.live-heat-dot span {
    pointer-events: none;
}

.live-heatmap-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    padding: 10px 4px 2px;
}

.live-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.02em;
}

.live-legend-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.72);
}

.live-legend-dot-session {
    background: linear-gradient(135deg, rgba(29,78,216,0.88), rgba(96,165,250,0.72));
    outline: 2px solid rgba(255,255,255,0.86);
    outline-offset: 2px;
}

.live-trend-wrap {
    display: grid;
    gap: 8px;
}

.live-trend-row {
    display: grid;
    grid-template-columns: 88px 1fr 160px;
    gap: 12px;
    align-items: center;
}

.live-trend-label {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
}

.live-trend-bar {
    height: 10px;
    border: 1px solid var(--line);
    background: var(--panel-alt);
    position: relative;
    overflow: hidden;
}

.live-trend-fill {
    position: absolute;
    inset: 0 auto 0 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-mid));
}

.live-trend-meta {
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
}

.live-attendee-list {
    border: 1px solid var(--line);
}

.live-attendee-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 110px;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    align-items: center;
}

.live-attendee-row:last-child {
    border-bottom: 0;
}

.live-attendee-main {
    font-weight: 700;
    word-break: break-word;
    font-size: 13px;
}

.live-attendee-meta,
.live-attendee-time {
    font-size: 12px;
    color: var(--muted);
}

.comparison-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 18, 34, 0.52);
    backdrop-filter: blur(4px);
}

.comparison-dialog {
    position: relative;
    width: min(1080px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: 0 24px 56px rgba(10, 18, 34, 0.28);
}

.comparison-dialog-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 2px solid var(--line);
    background: var(--panel);
}

.comparison-dialog-body {
    display: grid;
    gap: 18px;
    padding: 22px 24px;
}

.comparison-summary-grid,
.comparison-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.comparison-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.comparison-note {
    display: grid;
    gap: 4px;
    padding: 12px 16px;
    border-left: 3px solid var(--accent);
    background: var(--panel-alt);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
}

.comparison-status-good {
    border-left-color: var(--good);
    background: var(--good-soft);
    border-color: rgba(20, 92, 44, 0.15);
}

.comparison-status-warn {
    border-left-color: var(--warn);
    background: var(--warn-soft);
    border-color: rgba(136, 75, 16, 0.15);
}

.comparison-chart {
    border: 1px solid var(--line);
    background: var(--panel);
    padding: 18px;
    display: grid;
    gap: 16px;
}

.comparison-chart-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    font-weight: 700;
    font-size: 13px;
}

.comparison-track-grid {
    display: grid;
    gap: 12px;
}

.comparison-track-row {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr) 260px;
    gap: 14px;
    align-items: center;
}

.comparison-track-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.comparison-track-bar {
    position: relative;
    height: 18px;
    border: 1px solid var(--line);
    background:
        linear-gradient(90deg, rgba(12, 25, 41, 0.04) 1px, transparent 1px) 0 0 / 25% 100%,
        var(--panel-alt);
    overflow: hidden;
}

.comparison-track-fill {
    position: absolute;
    top: 2px;
    bottom: 2px;
}

.tone-schedule {
    background: linear-gradient(90deg, #8B97A8, #C0CAD8);
}

.tone-ble {
    background: linear-gradient(90deg, var(--accent), var(--accent-mid));
}

.tone-credited {
    background: linear-gradient(90deg, #0F6B62, #2CB89E);
}

.tone-ble-outside {
    background: linear-gradient(90deg, #B86B14, #E8A246);
}

.tone-confirmed-exit {
    background: linear-gradient(90deg, #A61B1B, #E05252);
}

.tone-rfid {
    background: linear-gradient(90deg, var(--good), #4BA86A);
}

.tone-imported-ble {
    background: linear-gradient(90deg, #6B28D4, #9D6EF5);
}

.comparison-track-meta,
.comparison-track-empty {
    font-size: 12px;
    color: var(--muted);
}

.comparison-track-empty {
    padding: 8px 10px;
    border: 1px dashed var(--line);
    background: var(--panel-alt);
}

.comparison-axis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding-left: 144px;
    font-size: 11px;
    color: var(--muted);
}

.comparison-axis span:last-child {
    text-align: right;
}

.comparison-detail-panel {
    gap: 10px;
}

.comparison-kv {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
}

.comparison-kv:last-child {
    border-bottom: 0;
}

body.modal-open {
    overflow: hidden;
}

/* === ANCHOR PATH MAP === */
.anchor-path-map {
    position: relative;
    width: 100%;
    border: 1px solid var(--line);
    background: #F0F5FC;
    overflow: hidden;
}

.anchor-path-map svg {
    display: block;
    width: 100%;
    height: auto;
}

/* Critical fix: SVG polylines default fill=black — force none */
.anchor-path-line {
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.88;
}

.anchor-path-dot {
    fill: var(--accent);
    stroke: #fff;
    stroke-width: 2.5;
    filter: drop-shadow(0 2px 6px rgba(21, 64, 168, 0.4));
}

.anchor-path-stop circle {
    opacity: 0.85;
}

/* Anchor path controls bar */
.anchor-path-controls {
    margin-bottom: 14px;
}

.anchor-path-meta {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 10px;
    font-weight: 500;
}

.anchor-path-meta strong {
    color: var(--text);
    font-weight: 700;
}

/* Anchor beacon switcher */
.anchor-beacon-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 14px;
    border: 1px solid var(--line);
    width: fit-content;
    max-width: 100%;
}

.anchor-beacon-btn {
    border: none;
    border-right: 1px solid var(--line);
    background: var(--panel);
    color: var(--muted);
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: background 0.1s, color 0.1s;
}

.anchor-beacon-btn:last-child {
    border-right: none;
}

.anchor-beacon-btn.active {
    background: var(--accent);
    color: #fff;
}

.anchor-beacon-btn:hover:not(.active) {
    background: var(--accent-soft);
    color: var(--accent);
}

/* Stacked 3D map layer — keep SVG fills correct */
.anchor-stacked-map-layer image {
    opacity: 0.6;
}

/* Anchor path sub-tabs */
.anchor-path-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--line);
    margin-bottom: 14px;
}

/* === TOPBAR HEADER IMPROVEMENTS === */
/* Show title area — refined branding block */
.topbar-main {
    flex: 1;
    min-width: 260px;
    border-left: 3px solid var(--accent);
    padding-left: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.show-title-block {
    min-width: 0;
}

.show-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    flex: 0 0 auto;
    padding: 8px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 8px 18px rgba(12, 25, 41, 0.08);
}

.file-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-row input[type="file"] {
    min-width: 0;
    flex: 1;
}

/* Show meta row — pill-style tags with icon-like leading dots */
.show-meta-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.show-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    border: 1px solid var(--line);
    background: var(--panel-alt);
    color: var(--muted);
}

.show-meta-chip::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--line-strong);
}

.show-meta-date {
    background: var(--accent-soft);
    border-color: rgba(21, 64, 168, 0.22);
    color: var(--accent);
}

.show-meta-date::before {
    background: var(--accent);
}

.show-meta-tz {
    background: var(--panel-alt);
}

/* Topbar action group separator */
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-left: 20px;
    border-left: 1px solid var(--line);
}

/* Final live heatmap pass: restrained map surface and non-cartoon markers. */
.live-heatmap-wrap {
    min-height: 420px;
    border: none;
    background: transparent;
    overflow: visible;
}

.live-map-shell {
    position: relative;
    background: #111827;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
}

/* All-floors grid view */
.live-map-shell-allview {
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
}

.live-maps-all-grid {
    display: grid;
    grid-template-columns: repeat(var(--map-cols, 2), 1fr);
    gap: 12px;
}

.live-map-mini-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.live-map-mini-card:hover .live-map-shell-mini {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(21, 64, 168, 0.2), 0 14px 34px rgba(15, 23, 42, 0.16);
}

.live-map-shell-mini {
    transition: border-color 0.15s, box-shadow 0.15s;
}

.live-map-mini-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.live-map-mini-count {
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid rgba(21, 64, 168, 0.18);
    padding: 2px 7px;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.live-map-image {
    display: block;
    width: 100%;
    height: auto;
    opacity: 0.72;
    filter: grayscale(0.92) contrast(1.04) brightness(0.98);
}

.live-map-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.18)),
        radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.08), transparent 64%);
}

.live-heat-dot {
    position: absolute;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0;
    text-shadow: 0 1px 2px rgba(15, 23, 42, 0.46);
    cursor: default;
    backdrop-filter: blur(2px);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.live-heat-dot:hover {
    transform: translate(-50%, -50%) scale(1.08);
    z-index: 50;
}

.live-heat-dot.heat-high,
.live-heat-dot.heat-med {
    animation: none;
}

.live-heat-dot.session-active {
    animation: none !important;
    outline: 2px solid rgba(255, 255, 255, 0.86);
    outline-offset: 3px;
}

/* === SESSION TRACKING REVAMP === */

/* ── Master-detail unified panel ── */
.st-master-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.st-sessions-col {
    border-right: 1px solid var(--line);
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.st-detail-col {
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: var(--panel-alt);
}

.st-col-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
    gap: 12px;
    background: var(--panel);
}

.st-col-title {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}

.st-col-head input {
    width: 190px;
    flex-shrink: 0;
}

.st-session-scroll {
    overflow-y: auto;
    max-height: 560px;
    flex: 1;
}

.st-detail-body {
    padding: 16px 18px;
    overflow-y: auto;
    max-height: 560px;
    flex: 1;
}

.st-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 24px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    gap: 10px;
    line-height: 1.5;
}

.st-empty-state-icon {
    font-size: 28px;
    opacity: 0.35;
    line-height: 1;
}

/* ── Compact session row ── */
.sci {
    display: grid;
    grid-template-columns: 30px 1fr 90px 18px;
    gap: 0 8px;
    align-items: center;
    padding: 9px 14px;
    border-bottom: 1px solid var(--line);
    cursor: pointer;
    transition: background 0.1s;
    position: relative;
}

.sci:last-child { border-bottom: none; }

.sci:hover {
    background: var(--panel-alt);
}

.sci-active {
    background: var(--accent-soft) !important;
    box-shadow: inset 3px 0 0 var(--accent);
}

.sci-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 18px;
    font-size: 9px;
    font-weight: 800;
    color: var(--accent);
    background: var(--accent-soft);
    letter-spacing: 0.04em;
    border-radius: 3px;
}

.sci-active .sci-rank { background: var(--accent); color: #fff; }

.sci-info { min-width: 0; }

.sci-title {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.sci-active .sci-title { color: var(--accent-mid); }

.sci-meta {
    font-size: 10.5px;
    color: var(--muted);
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sci-right {
    text-align: right;
    min-width: 0;
}

.sci-count {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.sci-bar {
    height: 3px;
    background: var(--line);
    overflow: hidden;
    border-radius: 2px;
    margin: 4px 0 3px;
}

.sci-bar-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-mid));
    border-radius: 2px;
}

.sci-active .sci-bar-fill { background: var(--accent); }

.sci-avg {
    display: block;
    font-size: 10px;
    color: var(--muted);
    font-weight: 600;
}

.sci-chevron {
    font-size: 18px;
    font-weight: 300;
    color: var(--line-strong);
    line-height: 1;
    transition: color 0.1s, transform 0.1s;
    text-align: center;
}

.sci:hover .sci-chevron { color: var(--muted); }
.sci-active .sci-chevron { color: var(--accent); font-weight: 600; }

/* Room performance — bar chart leaderboard */
.st-room-bars {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 6px;
}

.st-room-bar-row {
    display: grid;
    grid-template-columns: 170px 1fr 44px 130px;
    gap: 0 10px;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid var(--line);
}

.st-room-bar-row:last-child { border-bottom: none; }

.st-room-bar-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.st-room-bar-track {
    height: 7px;
    background: var(--panel-alt);
    border: 1px solid var(--line);
    overflow: hidden;
    border-radius: 3px;
}

.st-room-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-mid));
    border-radius: 3px;
}

.st-room-bar-count {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    text-align: right;
    letter-spacing: -0.02em;
}

.st-room-bar-meta {
    font-size: 11px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Session detail panel */
.st-detail-empty {
    padding: 28px 0;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

.st-detail-head {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.st-detail-session-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
    margin-bottom: 4px;
}

.st-detail-session-meta {
    font-size: 12px;
    color: var(--muted);
}

.st-detail-kpi-row {
    display: flex;
    gap: 0;
    margin-bottom: 14px;
    border: 1px solid var(--line);
}

.st-detail-kpi {
    flex: 1;
    padding: 10px 12px;
    border-right: 1px solid var(--line);
    min-width: 0;
}

.st-detail-kpi:last-child { border-right: none; }
.st-detail-kpi-tiers { flex: 2; }

.st-detail-kpi-v {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.st-detail-kpi-k {
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    margin-top: 5px;
}

.st-detail-tier-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    line-height: 1;
}

.st-detail-attendees {
    max-height: 400px;
    overflow-y: auto;
    border-top: 1px solid var(--line);
    padding-top: 2px;
    margin-top: 2px;
}

/* Attendee rows in detail */
.st-att-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}

.st-att-row:last-child { border-bottom: none; }

.st-att-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

.st-att-company {
    font-size: 11px;
    color: var(--muted);
    margin-top: 1px;
}

.st-att-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.st-att-bar-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.st-att-bar {
    width: 52px;
    height: 5px;
    background: var(--line);
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 2px;
}

.st-att-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--good), #4BA86A);
    border-radius: 2px;
}

.st-att-time {
    font-size: 11px;
    color: var(--muted);
    font-weight: 700;
    white-space: nowrap;
    min-width: 32px;
    text-align: right;
}

/* === STAT WIDGET VISUAL ENHANCEMENTS === */
.stat-widget-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.stat-widget-icon {
    color: var(--stat-w-accent, var(--accent));
    opacity: 0.65;
    flex-shrink: 0;
    margin-top: 1px;
    line-height: 0;
}

.stat-spark {
    display: block;
    margin-top: 14px;
    color: var(--stat-w-accent, var(--accent));
}

.stat.stat-w-c1 { --stat-w-accent: #1540A8; border-top-color: #1540A8; }
.stat.stat-w-c2 { --stat-w-accent: #6B3FA0; border-top-color: #6B3FA0; }
.stat.stat-w-c3 { --stat-w-accent: #0c7a6a; border-top-color: #0c7a6a; }
.stat.stat-w-c4 { --stat-w-accent: #b86c0a; border-top-color: #b86c0a; }
.stat.stat-w-c5 { --stat-w-accent: #145C2C; border-top-color: #145C2C; }

#mainSessionTrackingPane .stat-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1100px) {
    .stat-grid,
    .card-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #mainSessionTrackingPane .stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .executive-widget-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ew-highlight {
        grid-column: span 2;
    }

    .grid-2,
    .organizer-session-grid,
    .split,
    .detail-grid,
    .st-master-detail {
        grid-template-columns: 1fr;
    }

    .attendee-overview-hero {
        flex-direction: column;
        align-items: stretch;
    }

    .attendee-kpi-row {
        flex-wrap: wrap;
    }

    .attendee-kpi {
        min-width: 80px;
    }

    .st-sessions-col {
        border-right: none;
        border-bottom: 1px solid var(--line);
    }

    .st-room-bar-row {
        grid-template-columns: 140px 1fr 40px;
    }

    .st-room-bar-meta {
        display: none;
    }
}

/* === DASHBOARD NAV SWITCHER === */
.dash-switcher {
    position: relative;
}

.dash-switcher-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--line-strong);
    background: var(--panel);
    color: var(--muted);
    cursor: pointer;
    border-radius: 0;
    transition: border-color 0.12s, background 0.12s, color 0.12s;
}

.dash-switcher-btn:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
}

.dash-switcher-btn:active {
    background: #d8e4f7;
}

.dash-switcher-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 240px;
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: 0 8px 28px rgba(12, 25, 41, 0.14);
    z-index: 200;
    border-radius: 2px;
}

.dash-switcher-menu.hidden {
    display: none;
}

.dash-switcher-header {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    padding: 12px 14px 8px;
    border-bottom: 1px solid var(--line);
}

.dash-switcher-links {
    padding: 6px 0;
}

.dash-switcher-loading {
    padding: 12px 14px;
    font-size: 12px;
    color: var(--muted);
}

.dash-switcher-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    text-decoration: none;
    color: var(--text);
    cursor: pointer;
    transition: background 0.1s;
}

a.dash-switcher-item:hover {
    background: var(--accent-soft);
    color: var(--accent);
}

a.dash-switcher-item:hover .dash-switcher-item-eyebrow {
    color: var(--accent-mid);
}

a.dash-switcher-item:hover .dash-switcher-item-icon svg {
    stroke: var(--accent);
}

.dash-switcher-item--current {
    cursor: default;
    opacity: 0.55;
}

.dash-switcher-item-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.dash-switcher-item-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--muted);
    transition: stroke 0.1s;
}

.dash-switcher-item-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.dash-switcher-item-eyebrow {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
}

.dash-switcher-item-label {
    font-size: 12px;
    font-weight: 600;
}

.dash-switcher-item-badge {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    background: var(--panel-alt);
    border: 1px solid var(--line);
    padding: 2px 5px;
    border-radius: 2px;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .topbar,
    .tab-nav,
    section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .stat-grid,
    .card-row {
        grid-template-columns: 1fr;
    }

    .executive-widget-grid {
        grid-template-columns: 1fr;
    }

    .ew-highlight {
        grid-column: auto;
    }

    .stat,
    .metric-card {
        border-right: none;
        border-bottom: 1px solid var(--line);
    }

    .hour-bar-row {
        grid-template-columns: 72px 1fr 34px;
    }
}
