/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid rgba(51, 242, 194, 0.6);
    outline-offset: 2px;
}

:root {
    --ui-font: 'Space Grotesk', sans-serif;
    --mono-font: 'JetBrains Mono', monospace;
    --text-2xs: 9px;
    --text-xs: 10px;
    --text-sm: 11px;
    --text-base: 12px;
    --text-md: 13px;
    --text-lg: 14px;
    --text-xl: 16px;
    --text-2xl: 18px;
    --text-bright: #ffffff;
    --text-primary: #eef4ff;
    --text-muted: #a8b5d0;
    --text-soft: #7d8ba8;
    --ui-accent: #33f2c2;
    --ui-accent-strong: #7afcff;
    --ui-border: rgba(120, 190, 255, 0.32);
    --ui-bg: rgba(8, 13, 22, 0.86);
    --ui-bg-strong: rgba(7, 11, 20, 0.95);
    --ui-panel: rgba(10, 16, 26, 0.9);
    --ui-panel-alt: rgba(6, 10, 18, 0.7);
    --radius-2xl: 28px;
    --radius-xl: 20px;
    --radius-lg: 14px;
    --radius-md: 10px;
    --radius-sm: 8px;
    --shadow-soft: 0 18px 36px rgba(0,0,0,0.32);
    --shadow-strong: 0 22px 60px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 18px rgba(51, 242, 194, 0.18);
    --shadow-panel: 0 16px 34px rgba(0, 0, 0, 0.4);
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    --viewport-height: 100vh;
    --mobile-dock-height: 60px;
    --edge-top: 140px;
    --edge-stack-gap: 10px;
    --edge-toggle-thickness: 30px;
    --edge-toggle-length: 114px;
    --clock-hud-top: 20px;
    --clock-hud-right: 20px;
    --clock-toggle-length: 124px;
    --clock-toggle-top: var(--edge-top);
    --clock-toggle-right: 0;
    --edge-font-size: 11px;
    --panel-anim-duration: 240ms;
    --panel-anim-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    --transition-fast: 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
    --transition-normal: 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    --transition-spring: 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
    --ui-accent-dim: rgba(51, 242, 194, 0.12);
    --ui-pro: #a78bfa;
    --ui-pro-dim: rgba(167, 139, 250, 0.14);
    --text-3xl: 24px;
    --text-4xl: 32px;
    --z-globe: 5;
    --z-side-rail: 120;
    --z-side-panel: 140;
    --z-status-bar: 150;
    --z-clock-hud: 155;
    --z-dev-toggle: 160;
    --z-dashboard: 200;
    --z-loading: 1000;
}

@supports (height: 100dvh) {
    :root {
        --viewport-height: 100dvh;
    }
}

body {
    font-family: var(--ui-font);
    overflow: hidden;
    color: var(--text-primary);
    background:
        radial-gradient(1200px 800px at 12% 8%, rgba(26, 64, 96, 0.35), transparent 60%),
        radial-gradient(900px 700px at 88% 18%, rgba(12, 84, 110, 0.28), transparent 55%),
        radial-gradient(700px 500px at 70% 85%, rgba(6, 32, 60, 0.35), transparent 60%),
        #04070b;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overscroll-behavior: none;
}

#globeViz {
    width: 100vw;
    height: 100vh;
    position: relative;
    z-index: var(--z-globe);
    cursor: grab;
    touch-action: none;
    transition: transform 0.35s ease;
}

#globeViz canvas {
    transition: filter 0.35s ease;
}

#globeViz:active {
    cursor: grabbing;
}

body.zones-active #globeViz canvas {
    filter: saturate(0.85) brightness(1.08) contrast(1.05);
}

.edge-toggle-stack {
    position: fixed;
    top: var(--edge-top);
    z-index: var(--z-side-rail);
    display: flex;
    flex-direction: column;
    gap: var(--edge-stack-gap);
    pointer-events: none;
}

.edge-toggle-stack--left {
    left: 0;
    align-items: flex-start;
    top: 50%;
    transform: translateY(-50%);
}

.edge-toggle-stack--right {
    right: 0;
    top: calc(var(--edge-top) + var(--clock-toggle-length) + var(--edge-stack-gap));
    align-items: flex-end;
}

.edge-toggle {
    position: static;
    background: linear-gradient(180deg, rgba(12, 18, 28, 0.95), rgba(6, 10, 18, 0.9));
    color: var(--text-muted);
    border: 1px solid rgba(120, 190, 255, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--edge-toggle-thickness);
    height: var(--edge-toggle-length);
    padding: 0;
    font-family: var(--ui-font);
    font-weight: 700;
    font-size: var(--edge-font-size);
    letter-spacing: 0.6px;
    text-transform: uppercase;
    white-space: nowrap;
    text-orientation: mixed;
    cursor: pointer;
    box-shadow: var(--shadow-strong);
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    pointer-events: auto;
}

.edge-toggle--left {
    border-left: none;
    border-radius: 0 12px 12px 0;
    writing-mode: vertical-rl;
}

.edge-toggle--right {
    border-right: none;
    border-radius: 12px 0 0 12px;
    writing-mode: vertical-lr;
}

.edge-toggle--left:hover {
    color: #d9e8ff;
    transform: translateX(1px);
    box-shadow: 0 0 12px rgba(51, 242, 194, 0.14);
}

.edge-toggle--right:hover {
    color: #d9e8ff;
    transform: translateX(-1px);
    box-shadow: 0 0 12px rgba(51, 242, 194, 0.14);
}

.edge-toggle.is-hidden {
    color: var(--text-soft);
    text-shadow: none;
}

.edge-toggle.is-active {
    color: var(--ui-accent-strong);
    border-color: rgba(51, 242, 194, 0.62);
    background: linear-gradient(180deg, rgba(14, 30, 40, 0.98), rgba(8, 20, 28, 0.95));
    box-shadow: 0 0 18px rgba(51, 242, 194, 0.35), 0 18px 42px rgba(0, 0, 0, 0.45);
}

.edge-toggle.is-active.edge-toggle--left {
    transform: translateX(0);
}

.edge-toggle.is-active.edge-toggle--right {
    transform: translateX(0);
}

/* ===== MOBILE DOCK & SHEETS ===== */
.mobile-dock {
    position: fixed;
    left: 50%;
    bottom: calc(var(--safe-bottom) + 10px);
    transform: translateX(-50%);
    width: min(520px, 94vw);
    height: var(--mobile-dock-height);
    display: none;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(10, 16, 26, 0.94), rgba(6, 10, 18, 0.84));
    border: 1px solid rgba(120, 190, 255, 0.25);
    box-shadow: var(--shadow-strong);
    backdrop-filter: blur(12px);
    z-index: calc(var(--z-status-bar) + 1);
}

.mobile-dock-btn {
    flex: 1;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(120, 190, 255, 0.3);
    background: rgba(8, 13, 22, 0.9);
    color: var(--text-primary);
    font-family: var(--ui-font);
    font-weight: 700;
    font-size: var(--text-md);
    text-transform: none;
    letter-spacing: 0.1px;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
}

.mobile-dock-btn--ghost {
    flex: 0.85;
    background: rgba(8, 13, 22, 0.55);
    color: var(--text-muted);
}

.mobile-dock-btn.is-active {
    border-color: rgba(51, 242, 194, 0.65);
    color: var(--ui-accent);
    background: rgba(10, 24, 24, 0.9);
    box-shadow: 0 0 18px rgba(51, 242, 194, 0.45), inset 0 0 10px rgba(51, 242, 194, 0.12);
}

.mobile-dock-btn.has-alert {
    border-color: rgba(255, 90, 90, 0.8);
    color: rgba(255, 140, 140, 0.95);
    box-shadow: 0 0 12px rgba(255, 90, 90, 0.35);
}

.mobile-dock-btn.has-alert::after {
    content: '';
    position: absolute;
    top: 6px;
    right: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 90, 90, 0.95);
    box-shadow: 0 0 8px rgba(255, 90, 90, 0.75);
}

.mobile-sheet {
    position: fixed;
    left: 50%;
    bottom: calc(var(--safe-bottom) + var(--mobile-dock-height) + 14px);
    transform: translateX(-50%);
    width: min(560px, 94vw);
    max-height: min(55vh, calc(var(--viewport-height) - var(--safe-top) - var(--safe-bottom) - var(--mobile-dock-height) - 32px));
    border-radius: 18px;
    border: 1px solid rgba(120, 190, 255, 0.25);
    background: var(--ui-panel);
    box-shadow: var(--shadow-panel);
    padding: 12px;
    display: none;
    z-index: calc(var(--z-status-bar) + 2);
}


.mobile-inspector {
    z-index: calc(var(--z-dashboard) + 10);
    bottom: calc(var(--safe-bottom) + var(--mobile-dock-height) + 28px);
}

.mobile-inspector .mobile-sheet-header {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.2px;
}


.mobile-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-weight: 700;
    font-size: var(--text-md);
    color: var(--text-primary);
    margin-bottom: 10px;
}

.mobile-sheet-header span {
    flex: 1 1 auto;
}

.mobile-sheet-close {
    border: 1px solid rgba(120, 190, 255, 0.22);
    background: rgba(10, 16, 26, 0.8);
    color: var(--text-muted);
    border-radius: 999px;
    width: 26px;
    height: 26px;
    padding: 0;
    font-size: var(--text-md);
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.mobile-sheet-close:hover {
    background: rgba(51, 242, 194, 0.1);
    color: var(--ui-accent);
    border-color: rgba(51, 242, 194, 0.35);
}

.mobile-sheet-close:active {
    background: rgba(51, 242, 194, 0.18);
    color: var(--ui-accent);
    border-color: rgba(51, 242, 194, 0.5);
}

body.is-mobile .mobile-sheet-close {
    width: 28px;
    height: 28px;
    font-size: var(--text-lg);
    margin-left: auto;
}

.mobile-sheet-body {
    display: grid;
    gap: 8px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 4px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
}

.mobile-alert {
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: rgba(255, 210, 210, 0.96);
    background: linear-gradient(160deg, rgba(42, 8, 14, 0.92), rgba(24, 6, 10, 0.9));
    border: 1px solid rgba(255, 70, 90, 0.7);
    box-shadow: 0 0 18px rgba(255, 70, 90, 0.35);
    margin-bottom: 10px;
}

.mobile-helper {
    margin-top: 10px;
    font-size: 10px;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.mobile-helper.hidden {
    display: none;
}

.mobile-toast {
    position: fixed;
    left: 50%;
    bottom: calc(var(--safe-bottom) + var(--mobile-dock-height) + 12px);
    transform: translateX(-50%);
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(8, 13, 22, 0.92);
    border: 1px solid rgba(120, 190, 255, 0.35);
    box-shadow: var(--shadow-soft);
    color: var(--text-primary);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.2px;
    z-index: calc(var(--z-status-bar) + 3);
    max-width: min(92vw, 520px);
    text-align: center;
}

.mobile-toast.hidden {
    display: none;
}

.mobile-row {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-base);
    color: var(--text-muted);
}

.mobile-row span:last-child {
    color: var(--text-primary);
    font-family: var(--mono-font);
}

.mobile-inspector-actions {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 8px;
}

.mobile-action-btn {
    border-radius: 12px;
    border: 1px solid rgba(120, 190, 255, 0.35);
    background: rgba(9, 14, 24, 0.85);
    color: var(--text-primary);
    font-size: var(--text-sm);
    font-weight: 600;
    padding: 10px 6px;
    cursor: pointer;
}

.mobile-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 50px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(120, 190, 255, 0.3);
    background: rgba(9, 14, 24, 0.85);
    color: var(--text-primary);
    font-weight: 600;
    font-size: var(--text-base);
    text-align: left;
    cursor: pointer;
    transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.mobile-menu-btn:hover {
    border-color: rgba(51, 242, 194, 0.42);
    background: rgba(10, 16, 26, 0.94);
    transform: translateY(-1px);
}

/* Mobile search sheet */
.mobile-search .mobile-search-input-wrap {
    padding: 10px 16px 6px;
    border-bottom: 1px solid rgba(120, 190, 255, 0.12);
}

.mobile-search-input {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(120,190,255,0.25);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--ui-font);
    font-size: var(--text-xl);
    padding: 9px 12px;
    outline: none;
    box-sizing: border-box;
}

.mobile-search-input::placeholder { color: var(--text-soft); }

.mobile-search-results {
    overflow-y: auto;
    flex: 1;
    padding: 6px 0 8px;
}

.mobile-search-result-btn {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(120,190,255,0.07);
    color: var(--text-primary);
    font-family: var(--ui-font);
    text-align: left;
    padding: 11px 16px;
    cursor: pointer;
    gap: 2px;
}

.mobile-search-result-btn:active { background: rgba(51,242,194,0.08); }

.mobile-search-result-name {
    font-size: var(--text-lg);
    font-weight: 600;
}

.mobile-search-result-meta {
    font-size: var(--text-base);
    color: var(--text-soft);
}

.mobile-search-empty {
    padding: 24px 16px;
    color: var(--text-soft);
    font-size: var(--text-md);
    text-align: center;
}

.shared-visitor-sheet {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    inset: 0;
    padding: 24px;
    background: rgba(3, 7, 14, 0.58);
    backdrop-filter: blur(10px);
    z-index: calc(var(--z-loading) + 8);
}

body.shared-visitor-open {
    overflow: hidden;
}

.shared-visitor-sheet[data-visitor-mode="onboarding"] {
    align-items: flex-end;
    justify-content: flex-start;
    padding: 0 0 118px 18px;
    background: none;
    backdrop-filter: none;
    pointer-events: none;
}

.shared-visitor-sheet[data-visitor-mode="onboarding"] .shared-visitor-sheet-card {
    width: min(400px, calc(100vw - 32px));
    max-height: min(58vh, calc(var(--viewport-height) - var(--safe-top) - 120px));
    pointer-events: auto;
    background:
        linear-gradient(180deg, rgba(8, 15, 24, 0.94), rgba(6, 10, 18, 0.9));
    box-shadow: 0 20px 44px rgba(2, 6, 14, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.shared-visitor-sheet-card {
    width: min(440px, calc(100vw - 32px));
    max-height: min(62vh, calc(var(--viewport-height) - var(--safe-top) - 56px));
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-radius: 20px;
    border: 1px solid rgba(114, 196, 255, 0.26);
    background:
        linear-gradient(180deg, rgba(8, 15, 24, 0.98), rgba(6, 10, 18, 0.96));
    box-shadow: 0 24px 48px rgba(2, 6, 14, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.shared-visitor-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.shared-visitor-sheet-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.18px;
}

.shared-visitor-sheet-copy,
.shared-visitor-sheet-note {
    font-size: 11px;
    line-height: 1.45;
    color: var(--text-soft);
}

.shared-visitor-sheet-note {
    color: rgba(198, 220, 244, 0.7);
}

.shared-visitor-sheet-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 2px;
}

.shared-visitor-sheet-account-hint {
    font-size: 10px;
    line-height: 1.5;
    color: rgba(198, 220, 244, 0.74);
}

.shared-visitor-sheet-account {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    min-height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(51, 242, 194, 0.34);
    background: rgba(11, 18, 28, 0.84);
    color: var(--text-primary);
    font-size: 10px;
    font-family: var(--mono-font);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.shared-visitor-sheet-account:hover {
    transform: translateY(-1px);
    border-color: rgba(51, 242, 194, 0.56);
    background: rgba(10, 17, 27, 0.92);
    box-shadow: 0 10px 24px rgba(4, 12, 24, 0.26);
}

.shared-visitor-sheet-skip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(120, 190, 255, 0.22);
    background: rgba(10, 16, 26, 0.72);
    color: var(--text-soft);
    font-size: 10px;
    font-family: var(--mono-font);
    letter-spacing: 0.35px;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.shared-visitor-sheet-skip:hover {
    border-color: rgba(120, 190, 255, 0.38);
    color: var(--text-primary);
}

.shared-visitor-sheet-close {
    min-width: 30px;
    min-height: 30px;
    border-radius: 999px;
    border: 1px solid rgba(120, 190, 255, 0.22);
    background: rgba(10, 16, 26, 0.72);
    color: var(--text-soft);
    font-size: 11px;
    font-family: var(--mono-font);
    cursor: pointer;
    padding: 0;
    transition: border-color var(--transition-fast), color var(--transition-fast);
}

.shared-visitor-sheet-close:hover {
    border-color: rgba(120, 190, 255, 0.38);
    color: var(--text-primary);
}

.shared-visitor-sheet-input-wrap {
    padding-bottom: 2px;
}

.shared-visitor-sheet-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(120, 190, 255, 0.24);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--ui-font);
    font-size: 16px;
    padding: 11px 13px;
    outline: none;
    box-sizing: border-box;
}

.shared-visitor-sheet-input::placeholder {
    color: var(--text-soft);
}

.shared-visitor-sheet-input:focus {
    border-color: rgba(82, 212, 232, 0.56);
    box-shadow: 0 0 0 3px rgba(82, 212, 232, 0.12);
}

.shared-visitor-results {
    display: flex;
    flex-direction: column;
    min-height: 56px;
    max-height: min(24vh, 260px);
    overflow-y: auto;
    border-top: 1px solid rgba(120, 190, 255, 0.08);
    border-bottom: 1px solid rgba(120, 190, 255, 0.08);
}

.shared-visitor-result-btn {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    padding: 11px 2px;
    border: none;
    border-bottom: 1px solid rgba(120, 190, 255, 0.08);
    background: none;
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    font-family: var(--ui-font);
    transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.shared-visitor-result-btn:last-child {
    border-bottom: none;
}

.shared-visitor-result-btn:hover {
    background: rgba(10, 22, 20, 0.28);
    color: var(--ui-accent);
    transform: translateY(-1px);
}

.shared-visitor-result-name {
    font-size: 14px;
    font-weight: 600;
}

.shared-visitor-result-meta {
    font-size: 11px;
    color: var(--text-soft);
}

.shared-visitor-empty {
    padding: 18px 4px;
    color: var(--text-soft);
    font-size: 12px;
    text-align: left;
}

.auth-sheet {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    inset: 0;
    padding: 24px;
    background: rgba(3, 7, 14, 0.62);
    backdrop-filter: blur(10px);
    z-index: calc(var(--z-loading) + 9);
}

body.auth-sheet-open {
    overflow: hidden;
}

.auth-sheet-card {
    width: min(460px, calc(100vw - 28px));
    padding: 28px 26px 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(120, 190, 255, 0.22);
    background:
        radial-gradient(ellipse at 50% 0%, rgba(51, 242, 194, 0.07), transparent 55%),
        linear-gradient(170deg, rgba(9, 17, 28, 0.99), rgba(6, 10, 18, 0.97));
    box-shadow:
        0 40px 80px rgba(2, 6, 14, 0.64),
        0 0 0 1px rgba(255, 255, 255, 0.02) inset,
        0 1px 0 rgba(255, 255, 255, 0.07) inset;
}

.auth-link-sheet-card {
    width: min(460px, calc(100vw - 32px));
    padding: 22px 20px 18px;
    align-items: stretch;
    text-align: left;
}

.auth-link-mark {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-link-mark-dot {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: block;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(51, 242, 194, 0.25), 0 4px 14px rgba(0, 0, 0, 0.5);
}

.auth-link-mark-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.auth-link-mark-label {
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ui-accent);
    font-weight: 700;
}

.auth-link-mark-subtitle {
    font-size: 14px;
    line-height: 1.35;
    color: var(--text-primary);
    font-weight: 700;
}

.auth-link-eyebrow {
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ui-accent);
    font-weight: 700;
}

.auth-link-title {
    font-size: 30px;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    font-weight: 700;
}

.auth-link-copy {
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-muted);
}

.auth-link-email {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(120, 190, 255, 0.24);
    background: rgba(8, 13, 22, 0.72);
    color: var(--text-primary);
    font-family: var(--mono-font);
    font-size: 12px;
    line-height: 1.4;
}

.auth-link-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.auth-link-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(120, 190, 255, 0.24);
    background: rgba(10, 16, 26, 0.72);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.auth-link-secondary:hover {
    border-color: rgba(180, 234, 255, 0.54);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.auth-link-secondary--danger {
    border-color: rgba(255, 140, 105, 0.28);
    color: rgba(255, 205, 192, 0.94);
}

.auth-link-secondary--danger:hover {
    border-color: rgba(255, 170, 140, 0.52);
    color: rgba(255, 232, 226, 0.98);
}

.auth-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.auth-sheet-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.015em;
    line-height: 1.15;
}

.auth-sheet-close,
.auth-sheet-link {
    background: none;
    border: none;
    color: var(--text-soft);
    font-size: 11px;
    cursor: pointer;
    padding: 0;
    transition: color var(--transition-fast);
}

.auth-sheet-close {
    min-width: 36px;
    min-height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(120, 190, 255, 0.22);
    background: rgba(10, 16, 26, 0.72);
    font-family: var(--mono-font);
}

.auth-sheet-close:hover,
.auth-sheet-link:hover {
    color: var(--text-primary);
}

.auth-sheet-step {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-sheet-copy {
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-muted);
}

.auth-sheet-inline-email {
    color: var(--text-primary);
    font-family: var(--mono-font);
}

.auth-sheet-input {
    width: 100%;
    background: rgba(10, 16, 28, 0.7);
    border: 1.5px solid rgba(120, 190, 255, 0.2);
    border-radius: 14px;
    color: var(--text-primary);
    font-family: var(--ui-font);
    font-size: 16px;
    padding: 13px 15px;
    outline: none;
    box-sizing: border-box;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.auth-sheet-input::placeholder {
    color: rgba(100, 130, 170, 0.45);
}

.auth-sheet-input:focus {
    border-color: rgba(51, 242, 194, 0.58);
    box-shadow: 0 0 0 3px rgba(51, 242, 194, 0.12), 0 2px 12px rgba(0, 0, 0, 0.18);
    background: rgba(10, 18, 32, 0.9);
}

.auth-sheet-input--code {
    font-family: var(--mono-font);
    font-size: 28px;
    letter-spacing: 8px;
    text-align: center;
}

.auth-sheet-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid rgba(51, 242, 194, 0.4);
    background: linear-gradient(160deg, rgba(51, 242, 194, 0.22), rgba(16, 132, 208, 0.18));
    color: rgba(228, 255, 246, 0.98);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.auth-sheet-submit:hover {
    border-color: rgba(51, 242, 194, 0.72);
    background: linear-gradient(160deg, rgba(51, 242, 194, 0.28), rgba(16, 132, 208, 0.24));
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28), 0 0 20px rgba(51, 242, 194, 0.12);
}

.auth-sheet-submit--primary {
    background: linear-gradient(160deg, rgba(51, 242, 194, 0.28), rgba(16, 132, 208, 0.22));
    border-color: rgba(51, 242, 194, 0.54);
    box-shadow: 0 0 24px rgba(51, 242, 194, 0.1);
}

.auth-sheet-submit--danger {
    border-color: rgba(255, 140, 105, 0.38);
    background: linear-gradient(135deg, rgba(255, 140, 105, 0.18), rgba(255, 92, 128, 0.14));
    color: rgba(255, 238, 232, 0.98);
}

.auth-sheet-submit--danger:hover {
    border-color: rgba(255, 170, 140, 0.76);
    box-shadow: 0 10px 24px rgba(38, 10, 14, 0.34);
}

.auth-sheet-submit:disabled,
.auth-sheet-link:disabled,
.auth-sheet-close:disabled {
    opacity: 0.58;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-sheet-error {
    color: rgba(255, 140, 105, 0.92);
    font-size: 12px;
    line-height: 1.4;
}

.auth-sheet-hint {
    color: var(--text-soft);
    font-size: 11px;
    line-height: 1.5;
}

.auth-sheet-hint--danger {
    color: rgba(255, 196, 170, 0.92);
}

.auth-sheet-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.auth-choice-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-choice-actions .auth-sheet-submit,
.auth-choice-actions .auth-link-secondary {
    width: 100%;
}

.account-sheet-card {
    gap: 14px;
}

.account-sheet-context {
    display: inline-flex;
    align-self: flex-start;
    min-height: 26px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(120, 190, 255, 0.28);
    background: rgba(11, 18, 30, 0.78);
    color: var(--text-soft);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    align-items: center;
}

.account-sheet-note {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(120, 190, 255, 0.2);
    background: rgba(8, 13, 22, 0.72);
    color: var(--text-soft);
    font-size: 11px;
    line-height: 1.55;
}

.account-sheet-identity {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 15px;
    border-radius: 16px;
    border: 1px solid rgba(120, 190, 255, 0.24);
    background: linear-gradient(180deg, rgba(11, 18, 30, 0.9), rgba(7, 12, 22, 0.84));
}

.account-sheet-email {
    color: var(--text-primary);
    font-family: var(--mono-font);
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
}

.account-sheet-plan {
    color: var(--ui-accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.account-sheet-actions {
    justify-content: flex-start;
}

.mobile-tap-hint {
    margin-top: 10px;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-soft);
}

.mobile-tap-hint--floating {
    position: fixed;
    left: 50%;
    bottom: calc(var(--safe-bottom) + var(--mobile-dock-height) + 64px);
    transform: translateX(-50%);
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(9, 14, 24, 0.85);
    border: 1px solid rgba(120, 190, 255, 0.35);
    box-shadow: var(--shadow-soft);
    display: none;
    z-index: calc(var(--z-status-bar) + 1);
}

.side-menu-bar {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: var(--z-side-rail);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    padding: 8px 12px 8px 6px;
    border-radius: 0 16px 16px 0;
    background: linear-gradient(180deg, rgba(10, 16, 26, 0.94), rgba(6, 10, 18, 0.84));
    border: 1px solid rgba(120, 190, 255, 0.25);
    border-left: none;
    box-shadow: var(--shadow-strong);
    backdrop-filter: blur(10px);
    transition: box-shadow 0.2s ease, background 0.2s ease;
    resize: none;
    overflow: visible;
}

.side-menu-bar:hover {
    background: rgba(10, 18, 30, 0.9);
    box-shadow: var(--shadow-glow);
}

.side-menu-grip {
    letter-spacing: 2px;
    font-size: 11px;
    color: var(--text-muted);
    padding: 6px 6px;
    border-right: 1px solid rgba(120, 190, 255, 0.2);
    cursor: grab;
    user-select: none;
}

.side-menu-toggle {
    position: static;
    transform: none;
    border: 1px solid transparent;
    background: rgba(6, 10, 18, 0.45);
    color: var(--text-primary);
    font-family: var(--ui-font);
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 6px 8px;
    border-radius: 10px;
    cursor: pointer;
    writing-mode: horizontal-tb;
    white-space: nowrap;
    font-size: var(--text-sm);
    transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.side-menu-toggle:hover {
    color: var(--ui-accent-strong);
    border-color: rgba(51, 242, 194, 0.45);
    box-shadow: var(--shadow-glow);
}

.side-menu-toggle.is-hidden {
    color: var(--ui-accent);
    border-color: rgba(51, 242, 194, 0.5);
    text-shadow: 0 0 10px rgba(51, 242, 194, 0.35);
}

/* ===== SETTINGS HANDLE ===== */
.settings-handle {
    position: fixed;
    top: 140px;
    left: 0;
    z-index: var(--z-side-rail);
    background: linear-gradient(180deg, rgba(12, 18, 28, 0.95), rgba(6, 10, 18, 0.9));
    color: var(--ui-accent);
    border: 1px solid rgba(120, 190, 255, 0.3);
    border-left: none;
    border-radius: 0 12px 12px 0;
    padding: 9px 6px;
    font-family: var(--ui-font);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    cursor: pointer;
    box-shadow: var(--shadow-strong);
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.settings-handle:hover {
    color: var(--ui-accent-strong);
    transform: translateX(2px);
    box-shadow: var(--shadow-glow);
}

.settings-handle.is-hidden {
    color: var(--ui-accent-strong);
    text-shadow: 0 0 12px rgba(34, 242, 166, 0.35);
}

/* ===== CLOCK HANDLE ===== */
.clock-toggle-handle {
    position: fixed;
    top: var(--clock-toggle-top);
    right: var(--clock-toggle-right);
    z-index: var(--z-side-rail);
    background: linear-gradient(180deg, rgba(12, 18, 28, 0.95), rgba(6, 10, 18, 0.9));
    color: var(--text-muted);
    border: 1px solid rgba(120, 190, 255, 0.3);
    border-right: none;
    border-radius: 12px 0 0 12px;
    width: var(--edge-toggle-thickness);
    height: var(--clock-toggle-length);
    padding: 0;
    font-family: var(--ui-font);
    font-weight: 700;
    font-size: var(--edge-font-size);
    letter-spacing: 0.6px;
    text-transform: uppercase;
    writing-mode: vertical-lr;
    text-orientation: mixed;
    cursor: pointer;
    box-shadow: var(--shadow-strong);
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.clock-toggle-handle:hover {
    color: #d9e8ff;
    transform: translateX(-1px);
    box-shadow: 0 0 12px rgba(51, 242, 194, 0.14);
}

.clock-toggle-handle.is-hidden {
    color: var(--text-soft);
    text-shadow: none;
}

.clock-toggle-handle.is-active {
    color: var(--ui-accent-strong);
    border-color: rgba(51, 242, 194, 0.62);
    box-shadow: 0 0 18px rgba(51, 242, 194, 0.35), 0 18px 42px rgba(0, 0, 0, 0.45);
}

/* ===== ACCOUNT LAUNCHER ===== */
.account-launcher {
    position: fixed;
    top: 18px;
    right: calc(var(--clock-hud-right) + 220px);
    z-index: calc(var(--z-clock-hud) + 1);
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 126px;
    padding: 10px 14px;
    border-radius: 16px;
    border: 1px solid rgba(120, 190, 255, 0.28);
    background: linear-gradient(180deg, rgba(12, 18, 28, 0.94), rgba(6, 10, 18, 0.9));
    color: var(--text-primary);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
    cursor: pointer;
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}

.account-launcher:hover {
    transform: translateY(-1px);
    border-color: rgba(51, 242, 194, 0.48);
    box-shadow: 0 12px 28px rgba(6, 16, 30, 0.34);
}

.account-launcher.is-active {
    border-color: rgba(51, 242, 194, 0.62);
    box-shadow: 0 0 18px rgba(51, 242, 194, 0.2), 0 18px 36px rgba(0, 0, 0, 0.4);
}

.account-launcher-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.account-launcher-meta {
    font-size: 11px;
    line-height: 1.35;
    color: var(--text-soft);
    text-transform: none;
    letter-spacing: 0;
}

.account-launcher.is-prompting {
    border-color: rgba(51, 242, 194, 0.62);
    box-shadow: 0 0 0 1px rgba(51, 242, 194, 0.18), 0 18px 36px rgba(0, 0, 0, 0.42);
}

/* ===== MAKE THIS YOURS PROMPT ===== */
.make-this-yours-prompt {
    position: fixed;
    left: 50%;
    bottom: 154px;
    z-index: calc(var(--z-status-bar) + 1);
    transform: translateX(-50%);
    overflow: hidden;
    width: min(780px, calc(100vw - 24px));
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(248px, 300px);
    align-items: end;
    gap: 24px;
    padding: 24px 26px 24px;
    border-radius: 26px;
    border: 1px solid rgba(51, 242, 194, 0.32);
    background:
        radial-gradient(ellipse at 0% 0%, rgba(51, 242, 194, 0.14), transparent 46%),
        radial-gradient(ellipse at 100% 100%, rgba(16, 132, 208, 0.08), transparent 44%),
        linear-gradient(170deg, rgba(9, 16, 26, 0.98), rgba(5, 9, 17, 0.96));
    box-shadow:
        0 28px 60px rgba(0, 0, 0, 0.52),
        0 0 0 1px rgba(255, 255, 255, 0.025) inset,
        0 1px 0 rgba(255, 255, 255, 0.06) inset;
    backdrop-filter: blur(22px);
    animation: make-this-yours-prompt-enter 260ms cubic-bezier(0.22, 1, 0.36, 1);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.make-this-yours-prompt.is-expanded {
    border-color: rgba(51, 242, 194, 0.34);
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.46);
}

.make-this-yours-prompt-copy-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.make-this-yours-prompt-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.make-this-yours-prompt-benefit {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(51, 242, 194, 0.22);
    background: rgba(10, 20, 34, 0.6);
    color: rgba(200, 232, 240, 0.92);
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.02em;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.make-this-yours-prompt-collapsed {
    margin-top: 10px;
}

.make-this-yours-prompt-collapsed-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.make-this-yours-prompt-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(51, 242, 194, 0.82);
}

.make-this-yours-prompt-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.025em;
    line-height: 1.04;
}

.make-this-yours-prompt-copy {
    font-size: 15px;
    line-height: 1.5;
    color: rgba(232, 239, 247, 0.82);
    max-width: 40ch;
}

.make-this-yours-prompt-hint {
    font-size: 12px;
    line-height: 1.4;
    color: rgba(214, 228, 244, 0.62);
    margin-top: 4px;
}

.make-this-yours-prompt-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(120, 190, 255, 0.14);
    background:
        linear-gradient(180deg, rgba(8, 14, 24, 0.92), rgba(7, 12, 22, 0.84));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.make-this-yours-prompt.is-expanded .make-this-yours-prompt-form {
    border-color: rgba(51, 242, 194, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 12px 30px rgba(0, 0, 0, 0.18);
}

.make-this-yours-prompt-form-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.make-this-yours-prompt-form-title {
    font-size: 13px;
    font-weight: 700;
    color: rgba(242, 248, 255, 0.96);
    letter-spacing: 0.01em;
}

.make-this-yours-prompt-form-copy {
    font-size: 12px;
    line-height: 1.5;
    color: rgba(215, 226, 239, 0.68);
}

.make-this-yours-prompt-open,
.make-this-yours-prompt-primary,
.make-this-yours-prompt-pro,
.make-this-yours-prompt-secondary,
.make-this-yours-prompt-close {
    font-family: var(--ui-font);
}

.make-this-yours-prompt-input {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(120, 190, 255, 0.24);
    background: rgba(8, 14, 24, 0.9);
    color: var(--text-primary);
    padding: 12px 14px;
    font-size: 14px;
    font-family: var(--ui-font);
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.make-this-yours-prompt-input:focus {
    border-color: rgba(51, 242, 194, 0.56);
    box-shadow: 0 0 0 3px rgba(51, 242, 194, 0.12);
    background: rgba(10, 18, 30, 0.94);
}

.make-this-yours-prompt-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.make-this-yours-prompt-open,
.make-this-yours-prompt-primary,
.make-this-yours-prompt-pro,
.make-this-yours-prompt-secondary,
.make-this-yours-prompt-close {
    border-radius: 999px;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.make-this-yours-prompt-open {
    border: 1px solid rgba(51, 242, 194, 0.58);
    background: linear-gradient(170deg, rgba(51, 242, 194, 0.2), rgba(16, 132, 208, 0.18));
    color: #e4fdf5;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22), 0 0 18px rgba(51, 242, 194, 0.08);
}

.make-this-yours-prompt-open:hover {
    transform: translateY(-2px);
    border-color: rgba(51, 242, 194, 0.78);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28), 0 0 24px rgba(51, 242, 194, 0.14);
}

.make-this-yours-prompt-primary {
    border: 1px solid rgba(51, 242, 194, 0.54);
    background: linear-gradient(180deg, rgba(16, 132, 208, 0.22), rgba(11, 77, 120, 0.18));
    color: #dffef5;
}

.make-this-yours-prompt-primary:hover {
    transform: translateY(-1px);
    border-color: rgba(51, 242, 194, 0.7);
    background: rgba(16, 132, 208, 0.24);
}

.make-this-yours-prompt-pro {
    border: 1px solid rgba(120, 190, 255, 0.3);
    background: rgba(10, 18, 30, 0.68);
    color: #d9e8ff;
}

.make-this-yours-prompt-pro:hover {
    transform: translateY(-1px);
    border-color: rgba(120, 190, 255, 0.48);
    background: rgba(14, 24, 40, 0.92);
}

.make-this-yours-prompt-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.make-this-yours-prompt-secondary {
    border: none;
    background: transparent;
    color: var(--text-soft);
    padding: 0;
    border-radius: 0;
}

.make-this-yours-prompt-secondary:hover {
    transform: none;
    color: var(--text-primary);
}

.make-this-yours-prompt-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(120, 190, 255, 0.2);
    background: rgba(10, 18, 30, 0.7);
    color: var(--text-soft);
}

.make-this-yours-prompt-close:hover {
    transform: translateY(-1px);
    border-color: rgba(120, 190, 255, 0.38);
    color: var(--text-primary);
}

.make-this-yours-prompt-error {
    font-size: 12px;
    line-height: 1.35;
    color: rgba(255, 153, 153, 0.95);
}

@keyframes make-this-yours-prompt-enter {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(14px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

/* ===== SEARCH HANDLE ===== */
.search-toggle-handle {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: var(--z-side-rail);
    background: rgba(12, 18, 28, 0.92);
    color: var(--text-muted);
    border: 1px solid rgba(120, 190, 255, 0.3);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    padding: 0;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.search-toggle-handle:hover {
    color: #d9e8ff;
    transform: scale(1.08);
    box-shadow: 0 0 12px rgba(51, 242, 194, 0.14);
    border-color: rgba(51, 242, 194, 0.5);
}

.search-bar {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: var(--z-side-rail);
    display: flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    width: 260px;
    padding: 0 8px 0 12px;
    background: rgba(12, 18, 28, 0.92);
    border: 1px solid rgba(120, 190, 255, 0.3);
    border-radius: 19px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
    animation: searchBarExpand 0.2s ease forwards;
}

@keyframes searchBarExpand {
    from { width: 38px; opacity: 0.6; border-radius: 50%; }
    to   { width: 260px; opacity: 1; border-radius: 19px; }
}

@keyframes searchBarPulse {
    0% {
        box-shadow: var(--shadow-soft);
        border-color: rgba(120, 190, 255, 0.3);
    }
    35% {
        box-shadow: 0 0 0 6px rgba(34, 242, 166, 0.16), 0 16px 34px rgba(4, 10, 18, 0.28);
        border-color: rgba(34, 242, 166, 0.55);
    }
    100% {
        box-shadow: var(--shadow-soft);
        border-color: rgba(120, 190, 255, 0.3);
    }
}

.search-bar.hidden {
    display: none;
}

.search-bar-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--ui-font);
    font-size: var(--text-md);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.search-bar-input::placeholder {
    color: var(--text-soft);
}

.search-bar-close {
    background: none;
    border: none;
    color: var(--text-soft);
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    line-height: 1;
    transition: color 0.15s ease;
}

.search-bar-close:hover {
    color: var(--text-primary);
}

/* ===== DEV TOGGLE ===== */
.dev-toggle {
    position: fixed;
    right: 12px;
    bottom: 52px;
    z-index: var(--z-dev-toggle);
    border: 1px solid var(--ui-border);
    background: rgba(8, 12, 20, 0.9);
    color: var(--text-soft);
    border-radius: 10px;
    padding: 6px 10px;
    font-family: var(--ui-font);
    font-size: 10px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: all 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dev-toggle:hover {
    border-color: var(--ui-accent);
    color: var(--ui-accent);
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

.dev-toggle.is-active {
    border-color: var(--ui-accent);
    color: var(--ui-accent);
    text-shadow: 0 0 8px rgba(34, 242, 166, 0.4);
}

/* ===== LOADING SCREEN ===== */
#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #05070d 0%, #0d1423 50%, #101c2b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-loading);
    transition: opacity 0.5s ease;
}

.loading-content {
    text-align: center;
    color: white;
    max-width: 500px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.loading-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--ui-accent), #3fd4ff, var(--ui-accent-strong));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(34, 242, 166, 0.45);
}

.loading-subtitle {
    font-size: 16px;
    margin-bottom: 6px;
    color: var(--ui-accent);
    font-weight: bold;
}

.loading-intro {
    max-width: 540px;
    margin: 0;
    color: rgba(232, 248, 255, 0.82);
    font-size: 14px;
    line-height: 1.55;
}

.loading-portal {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 2px solid rgba(51, 242, 194, 0.55);
    box-shadow: 0 0 30px rgba(51, 242, 194, 0.4), inset 0 0 20px rgba(51, 242, 194, 0.25);
    position: relative;
    margin: 6px 0 10px;
    animation: portalPulse 2.2s ease-in-out infinite;
}

.loading-portal::before,
.loading-portal::after {
    content: '';
    position: absolute;
    inset: 16px;
    border-radius: 50%;
    border: 1px solid rgba(122, 252, 255, 0.35);
    box-shadow: 0 0 20px rgba(122, 252, 255, 0.3);
    animation: portalSpin 6s linear infinite;
}

.loading-portal::after {
    inset: 30px;
    border-color: rgba(255, 210, 140, 0.3);
    box-shadow: 0 0 18px rgba(255, 210, 140, 0.25);
    animation-duration: 9s;
}

@keyframes portalPulse {
    0% { transform: scale(0.96); opacity: 0.75; }
    50% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.96); opacity: 0.75; }
}

@keyframes portalSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#loadingProgress {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--ui-accent);
    font-weight: bold;
}

.loading-bar {
    width: 400px;
    height: 8px;
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
    overflow: hidden;
    margin: 0 auto;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

#loadingBar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--ui-accent), #3fd4ff, var(--ui-accent-strong));
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(34, 242, 166, 0.4);
}

/* ===== CONTROLS PANEL ===== */
.controls-panel {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    left: 20px;
    z-index: var(--z-side-panel);
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--ui-panel);
    border: 1px solid var(--ui-border);
    border-radius: var(--radius-lg);
    padding: 12px;
    box-shadow: var(--shadow-panel);
    backdrop-filter: blur(16px);
    transition: opacity 0.3s ease;
    resize: both;
    overflow: auto;
    min-width: 190px;
    max-width: 320px;
    min-height: 120px;
    max-height: calc(100vh - 40px);
}


.control-btn {
    background: linear-gradient(160deg, rgba(18, 28, 45, 0.95), rgba(8, 12, 20, 0.95));
    color: var(--text-primary);
    border: 1px solid var(--ui-border);
    padding: 8px 12px;
    font-family: var(--ui-font);
    font-weight: bold;
    cursor: pointer;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    min-width: 0;
    width: 100%;
    text-align: center;
    font-size: var(--text-base);
}

.control-btn:hover {
    border-color: var(--ui-accent);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.4), var(--shadow-glow);
}

.control-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.control-input-group {
    background: var(--ui-panel-alt);
    border: 1px solid rgba(120, 190, 255, 0.25);
    border-radius: var(--radius-md);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: var(--shadow-soft);
    min-width: 160px;
}

.control-label {
    font-size: var(--text-xs);
    font-weight: bold;
    color: var(--ui-accent);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.control-input {
    background: rgba(2, 6, 12, 0.6);
    border: 1px solid rgba(51, 242, 194, 0.45);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 7px 9px;
    font-size: 12px;
    font-family: var(--ui-font);
    outline: none;
}

.control-input::placeholder {
    color: rgba(255,255,255,0.6);
}

.control-input:focus {
    border-color: var(--ui-accent);
    box-shadow: 0 0 0 2px rgba(34, 242, 166, 0.2);
}

.control-group {
    background: var(--ui-panel-alt);
    border: 1px solid rgba(120, 190, 255, 0.22);
    border-radius: var(--radius-md);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: var(--shadow-soft);
    min-width: 160px;
}

.quality-group {
    gap: 10px;
}

.quality-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.quality-preset-btn {
    flex: 1 1 calc(50% - 6px);
    background: rgba(8, 12, 20, 0.85);
    color: var(--text-primary);
    border: 1px solid rgba(120, 190, 255, 0.28);
    padding: 7px 8px;
    border-radius: var(--radius-md);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.quality-preset-btn:hover {
    border-color: var(--ui-accent);
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

.quality-preset-btn.is-active {
    border-color: var(--ui-accent);
    color: var(--ui-accent);
    box-shadow: var(--shadow-glow);
}

.quality-details-toggle {
    border: 1px solid rgba(120, 190, 255, 0.3);
    background: rgba(10, 14, 22, 0.85);
    color: var(--text-soft);
    border-radius: var(--radius-sm);
    padding: 3px 7px;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.quality-details-toggle:hover {
    border-color: var(--ui-accent);
    color: var(--ui-accent);
    box-shadow: var(--shadow-glow);
}

.quality-details {
    border: 1px solid rgba(64, 200, 255, 0.18);
    border-radius: var(--radius-md);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(6, 10, 18, 0.55);
}

.quality-details.is-collapsed {
    display: none;
}


.quality-details.is-locked {
    opacity: 0.5;
    pointer-events: none;
}

.quality-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 10px;
    color: var(--text-soft);
}

.quality-row span:first-child {
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 600;
}

.quality-row--range {
    align-items: center;
}

.quality-range-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: flex-end;
}

.quality-range {
    flex: 1;
    width: 100%;
    accent-color: var(--ui-accent);
}

.quality-value {
    font-family: var(--mono-font);
    color: var(--ui-accent);
}

.quality-toggle,
.quality-select {
    background: rgba(8, 12, 20, 0.75);
    border: 1px solid rgba(120, 190, 255, 0.25);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 5px 6px;
    font-size: 10px;
    font-family: var(--ui-font);
}

.quality-toggle:disabled,
.quality-select:disabled,
.quality-range:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.quality-hint {
    margin-top: 2px;
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.control-group-title {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-soft);
    font-weight: 600;
}

.quality-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.control-group-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.control-chip {
    flex: 1 1 calc(50% - 6px);
    background: linear-gradient(160deg, rgba(16, 24, 38, 0.95), rgba(8, 12, 20, 0.95));
    color: var(--text-primary);
    border: 1px solid rgba(120, 190, 255, 0.28);
    padding: 6px 8px;
    border-radius: 9px;
    font-size: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.control-chip.is-active {
    border-color: var(--ui-accent);
    box-shadow: var(--shadow-glow);
}

.control-chip--half {
    flex: 1 1 calc(25% - 6px);
}

.control-chip:hover {
    border-color: var(--ui-accent);
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

.control-chip:active {
    transform: translateY(0);
}

.panel-grip {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-soft);
    padding: 6px 10px;
    border-radius: var(--radius-md);
    background: rgba(6, 10, 18, 0.7);
    border: 1px solid rgba(120, 190, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-grip span {
    flex: 1 1 auto;
}

.panel-collapsed {
    resize: none;
}

.panel-collapsed > *:not([data-drag-handle]) {
    display: none !important;
}

.panel-collapsed [data-drag-handle] {
    margin-bottom: 0;
}

/* ===== PERFORMANCE MONITOR ===== */
.performance-monitor {
    position: fixed;
    top: 110px;
    right: 20px;
    z-index: var(--z-side-panel);
    background: var(--ui-panel);
    color: var(--text-primary);
    padding: 15px;
    border-radius: var(--radius-lg);
    font-family: var(--mono-font);
    font-size: 12px;
    border: 1px solid rgba(120, 190, 255, 0.3);
    box-shadow: var(--shadow-panel);
    min-width: 170px;
    width: clamp(180px, 20vw, 260px);
    max-width: 260px;
    max-height: calc(100vh - 60px);
    backdrop-filter: blur(16px);
    transition: opacity 0.3s ease;
    resize: both;
    overflow: auto;
}

.monitor-header {
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--ui-accent);
    font-size: 14px;
    font-family: var(--ui-font);
    cursor: grab;
    user-select: none;
}

.performance-monitor div {
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
}

/* ===== CITY PANEL ===== */
.city-panel {
    position: fixed;
    right: 20px;
    bottom: 220px;
    top: auto;
    z-index: var(--z-side-panel);
    background: var(--ui-panel);
    color: var(--text-primary);
    padding: 14px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(51, 242, 194, 0.35);
    box-shadow: var(--shadow-panel);
    min-width: 220px;
    width: clamp(240px, 24vw, 340px);
    max-width: 340px;
    max-height: calc(100vh - 80px);
    backdrop-filter: blur(16px);
    font-family: var(--ui-font);
    transition: opacity 0.3s ease;
    resize: both;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.city-panel-summary {
    margin-top: 10px;
    font-size: 11px;
    line-height: 1.45;
    color: var(--text-soft);
}

.city-panel-focus,
.city-panel-manager {
    min-width: 0;
}

.city-panel-manager {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
}

.panel-inline-notice {
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 196, 87, 0.42);
    background: linear-gradient(160deg, rgba(42, 26, 8, 0.84), rgba(24, 16, 6, 0.8));
    color: rgba(255, 224, 170, 0.96);
    font-size: 10px;
    line-height: 1.45;
    letter-spacing: 0.3px;
}

.location-panel {
    right: 20px;
    bottom: 520px;
    border-color: rgba(120, 190, 255, 0.35);
}

.controls-info-panel {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    z-index: var(--z-side-panel);
    background: var(--ui-panel);
    color: var(--text-primary);
    padding: 12px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(120, 190, 255, 0.3);
    box-shadow: var(--shadow-panel);
    min-width: 200px;
    width: clamp(200px, 20vw, 260px);
    max-width: 240px;
    max-height: 200px;
    backdrop-filter: blur(16px);
    font-family: var(--ui-font);
    transition: opacity 0.3s ease;
    resize: both;
    overflow: auto;
}

.about-panel {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    z-index: var(--z-side-panel);
    background: var(--ui-panel);
    color: var(--text-primary);
    padding: 14px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 195, 120, 0.35);
    box-shadow: var(--shadow-panel);
    min-width: 280px;
    width: clamp(280px, 30vw, 390px);
    max-width: 390px;
    max-height: calc(100vh - 80px);
    backdrop-filter: blur(16px);
    font-family: var(--ui-font);
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
    resize: both;
    overflow: auto;
}

.about-panel {
    left: 20px;
    border: 1px solid rgba(255, 195, 120, 0.35);
    min-width: 280px;
    width: clamp(280px, 30vw, 390px);
    max-width: 390px;
}

.about-panel > * {
    flex: 0 0 auto;
}

.about-panel.panel-positioned {
    transform: none;
}

.about-status-card {
    border: 1px solid rgba(120, 190, 255, 0.18);
    border-radius: 10px;
    background: rgba(7, 12, 22, 0.42);
    padding: 10px 12px;
}

.about-status-summary {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-soft);
}

.about-status-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.about-status-actions {
    display: flex;
    justify-content: flex-start;
}

.about-account-state {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.about-account-email {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    word-break: break-word;
}

.about-account-plan {
    font-size: 11px;
    color: var(--ui-accent);
}

.about-workspace-card {
    gap: 10px;
}

.about-workspace-actions {
    gap: 8px;
    flex-wrap: wrap;
}

.about-diagnostics {
    border: 1px solid rgba(255, 195, 120, 0.2);
    border-radius: 10px;
    padding: 10px 12px;
    background: rgba(8, 12, 20, 0.35);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.about-diagnostic-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
}

.about-diagnostic-row span {
    color: var(--text-soft);
}

.about-diagnostic-row strong {
    font-family: var(--mono-font);
    font-size: 11px;
    text-align: right;
}

.about-precision-shell {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.about-foundation-shell {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.about-copy-btn--ghost {
    background: rgba(14, 22, 34, 0.85);
}

.about-copy-btn--danger {
    border-color: rgba(255, 140, 105, 0.34);
    color: rgba(255, 196, 170, 0.95);
    background: rgba(44, 15, 18, 0.68);
}

.about-copy-btn--danger:hover {
    border-color: rgba(255, 160, 128, 0.78);
    box-shadow: 0 0 10px rgba(255, 120, 90, 0.28);
}

.precision-annex {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.foundation-inspector {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.foundation-summary {
    border: 1px solid rgba(120, 255, 180, 0.18);
    border-radius: 10px;
    background: rgba(8, 20, 18, 0.42);
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-soft);
}

.foundation-diagnostics {
    border-color: rgba(120, 255, 180, 0.2);
    background: rgba(6, 16, 14, 0.35);
}

.precision-summary,
.precision-compare-result,
.precision-zone-card,
.precision-card {
    border: 1px solid rgba(120, 185, 255, 0.18);
    border-radius: 10px;
    background: rgba(7, 12, 22, 0.42);
}

.precision-summary,
.precision-compare-result {
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-soft);
}

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

.precision-zone-diagnostics {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.precision-zone-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.precision-zone-card {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.precision-zone-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.precision-zone-title {
    font-family: var(--mono-font);
    font-size: 12px;
    color: var(--text-primary);
}

.precision-zone-role {
    font-size: 11px;
    color: var(--text-soft);
}

.precision-zone-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 12px;
    font-size: 11px;
}

.precision-zone-meta span,
.precision-compare-grid span {
    color: var(--text-soft);
}

.precision-zone-meta strong,
.precision-compare-grid strong {
    font-family: var(--mono-font);
    font-size: 11px;
    color: var(--text-primary);
}

.precision-empty,
.precision-compare-note {
    font-size: 11px;
    color: var(--text-soft);
}

.precision-compare {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.precision-compare-controls,
.precision-compare-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.precision-input {
    flex: 1 1 180px;
    min-width: 0;
    border: 1px solid rgba(255, 195, 120, 0.2);
    border-radius: 8px;
    background: rgba(10, 14, 24, 0.9);
    color: var(--text-primary);
    padding: 8px 10px;
    font-family: var(--mono-font);
    font-size: 11px;
}

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

.precision-card-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.precision-card {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.precision-card strong {
    font-size: 12px;
    color: var(--text-primary);
}

.precision-card span {
    font-size: 11px;
    line-height: 1.5;
    color: var(--text-soft);
}

@media (max-width: 720px) {
    .precision-grid,
    .precision-card-list,
    .precision-zone-meta,
    .precision-compare-grid {
        grid-template-columns: 1fr;
    }

    .precision-zone-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

.dashboard-panel {
    position: fixed;
    inset: 0;
    z-index: var(--z-dashboard);
    background:
        radial-gradient(900px 700px at 20% 20%, rgba(30, 80, 130, 0.35), transparent 60%),
        radial-gradient(800px 600px at 80% 20%, rgba(14, 50, 90, 0.4), transparent 65%),
        radial-gradient(1200px 900px at 50% 120%, rgba(6, 12, 24, 0.9), transparent 70%),
        rgba(3, 6, 12, 0.98);
    color: var(--text-primary);
    padding: 24px 28px;
    border: none;
    box-shadow: none;
    backdrop-filter: blur(18px);
    font-family: var(--ui-font);
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
}

.dashboard-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1200px 900px at 50% 50%, rgba(255, 255, 255, 0.03), transparent 70%),
        radial-gradient(900px 700px at 70% 10%, rgba(30, 140, 180, 0.08), transparent 70%);
    pointer-events: none;
    opacity: 0.8;
}

.dashboard-panel > * {
    position: relative;
    z-index: 1;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.dashboard-tools {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.dashboard-tool {
    border: 1px solid rgba(120, 190, 255, 0.35);
    background: rgba(6, 10, 18, 0.65);
    color: var(--text-primary);
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
    min-width: 32px;
}

.dashboard-tool:hover {
    border-color: var(--ui-accent);
    color: var(--ui-accent);
    box-shadow: var(--shadow-glow);
}

.dashboard-tool.is-active {
    border-color: rgba(255, 255, 255, 0.7);
    color: #ffffff;
    background: rgba(30, 60, 90, 0.45);
}

.dashboard-tool:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

.dashboard-title-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dashboard-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--ui-accent);
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.dashboard-subtitle {
    font-size: var(--text-base);
    color: var(--text-muted);
}

.dashboard-tabs {
    display: inline-flex;
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
    border: 1px solid rgba(120, 190, 255, 0.3);
    background: rgba(6, 10, 18, 0.7);
}

.dashboard-tab {
    border: none;
    background: transparent;
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dashboard-tab.is-active {
    background: rgba(51, 242, 194, 0.2);
    color: var(--ui-accent);
    box-shadow: var(--shadow-glow);
}

.dashboard-close {
    border: 1px solid rgba(120, 190, 255, 0.4);
    background: rgba(8, 14, 22, 0.8);
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dashboard-close:hover {
    border-color: var(--ui-accent);
    color: var(--ui-accent);
    box-shadow: var(--shadow-glow);
}

.dashboard-body {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(220px, 280px) 1fr;
    gap: 18px;
    min-height: 0;
    align-items: start;
}

.dashboard-rail {
    background: rgba(6, 10, 18, 0.75);
    border: 1px solid rgba(120, 190, 255, 0.25);
    border-radius: 16px;
    padding: 16px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 12px;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
    align-self: start;
    transition: opacity 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.dashboard-workspace-summary {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(120, 190, 255, 0.22);
    background: linear-gradient(160deg, rgba(10, 16, 28, 0.88), rgba(7, 11, 20, 0.76));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.dashboard-workspace-kicker {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--text-soft);
}

.dashboard-workspace-name {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-bright);
    line-height: 1.2;
}

.dashboard-workspace-meta,
.dashboard-workspace-updated {
    font-size: 12px;
    color: var(--text-soft);
    line-height: 1.45;
}

.dashboard-rail-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-soft);
}

.dashboard-rail-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
}

.dashboard-rail-heading {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dashboard-rail-subtitle {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: -4px;
}

.dashboard-locations {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: auto;
    padding-right: 4px;
}

.dashboard-location {
    border: 1px solid rgba(120, 190, 255, 0.28);
    background: rgba(8, 12, 20, 0.75);
    color: var(--text-primary);
    border-radius: 10px;
    padding: 8px 10px;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dashboard-location:hover {
    border-color: var(--ui-accent);
    box-shadow: var(--shadow-glow);
}

.dashboard-location.is-active {
    border-color: rgba(51, 242, 194, 0.7);
    color: var(--ui-accent);
}

.dashboard-location.is-pin {
    border-color: rgba(255, 121, 152, 0.55);
    color: #ffb1c2;
}

.dashboard-location-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.dashboard-location-name {
    font-size: 12px;
    font-weight: 700;
    color: inherit;
    line-height: 1.25;
}

.dashboard-location-kind {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(120, 190, 255, 0.24);
    background: rgba(120, 190, 255, 0.08);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.dashboard-location.is-pin .dashboard-location-kind {
    border-color: rgba(255, 121, 152, 0.3);
    background: rgba(255, 121, 152, 0.12);
    color: #ffc0cf;
}

.dashboard-location-time {
    font-size: 18px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
    color: var(--text-bright);
}

.dashboard-location-meta,
.dashboard-location-note {
    font-size: 11px;
    line-height: 1.45;
    color: var(--text-soft);
}

.dashboard-locations-empty {
    font-size: 11px;
    line-height: 1.45;
    color: var(--text-muted);
    padding: 12px;
    border-radius: 12px;
    border: 1px dashed rgba(120, 190, 255, 0.22);
    background: rgba(8, 12, 20, 0.38);
    text-align: center;
}

.dashboard-rail-footer {
    padding-top: 10px;
    border-top: 1px solid rgba(120, 190, 255, 0.16);
}

.dashboard-rail-hint {
    font-size: 10px;
    line-height: 1.5;
    color: var(--text-muted);
}

.dashboard-content {
    background: rgba(6, 10, 18, 0.6);
    border: 1px solid rgba(120, 190, 255, 0.2);
    border-radius: 20px;
    padding: 14px;
    position: relative;
    overflow: hidden;
    min-height: 0;
    height: 100%;
    align-self: stretch;
    display: flex;
    flex-direction: column;
}

.dashboard-pane {
    width: 100%;
    height: 100%;
    max-width: none;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    text-align: left;
    min-height: 0;
}

.dashboard-pane--wide {
    max-width: none;
    min-height: 0;
}

.dashboard-pane.is-hidden {
    display: none;
}

.dashboard-pane--scroll {
    overflow: auto;
    padding-right: 4px;
    min-height: 0;
}

.dashboard-pane-title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--ui-accent);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.dashboard-pane-text {
    font-size: var(--text-base);
    color: var(--text-soft);
    line-height: 1.5;
    margin-bottom: 16px;
}

.dashboard-pane-placeholder {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.dashboard-diagnostics {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.diagnostics-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.9fr);
    gap: 14px;
    margin-bottom: 14px;
}

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

.diagnostics-clock-card,
.diagnostics-delta-card {
    position: relative;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(120, 190, 255, 0.18);
    background: linear-gradient(160deg, rgba(10, 16, 28, 0.9), rgba(6, 10, 18, 0.76));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36), inset 0 0 0 1px rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(12px);
}

.diagnostics-clock-card::after,
.diagnostics-delta-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(140deg, rgba(130, 210, 255, 0.06), transparent 55%);
}

.diagnostics-clock-card--host {
    border-color: rgba(255, 184, 93, 0.24);
}

.diagnostics-clock-card--canonical {
    border-color: rgba(120, 220, 255, 0.26);
}

.diagnostics-clock-value {
    display: block;
    margin-top: 8px;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1;
    letter-spacing: 0.04em;
    color: var(--text-bright);
    font-variant-numeric: tabular-nums;
}

.diagnostics-clock-meta {
    margin-top: 10px;
    font-size: var(--text-sm);
    color: var(--text-soft);
    line-height: 1.45;
}

.diagnostics-delta-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
}

.diagnostics-delta-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.diagnostics-delta-value {
    font-size: clamp(24px, 2.6vw, 34px);
    line-height: 1;
    color: var(--text-bright);
    font-variant-numeric: tabular-nums;
}

.diagnostics-delta-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(120, 190, 255, 0.12);
    border: 1px solid rgba(120, 190, 255, 0.22);
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.diagnostics-delta-status[data-state='sync_pending'] {
    background: rgba(120, 190, 255, 0.14);
    border-color: rgba(120, 190, 255, 0.26);
    color: #c5e8ff;
}

.diagnostics-delta-status[data-state='healthy'] {
    background: rgba(74, 194, 120, 0.16);
    border-color: rgba(74, 194, 120, 0.28);
    color: #a9f2bf;
}

.diagnostics-delta-status[data-state='mildly_suspicious'],
.diagnostics-delta-status[data-state='suspicious'] {
    background: rgba(255, 184, 93, 0.16);
    border-color: rgba(255, 184, 93, 0.28);
    color: #ffd49a;
}

.diagnostics-delta-status[data-state='bad'],
.diagnostics-delta-status[data-state='host_fallback'] {
    background: rgba(255, 110, 110, 0.16);
    border-color: rgba(255, 110, 110, 0.28);
    color: #ffb0b0;
}

.diagnostics-delta-meter {
    position: relative;
    height: 16px;
}

.diagnostics-delta-meter-track,
.diagnostics-delta-meter-center,
.diagnostics-delta-needle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.diagnostics-delta-meter-track {
    left: 0;
    right: 0;
    height: 8px;
    border-radius: 999px;
    background:
        linear-gradient(90deg, rgba(255, 110, 110, 0.3), rgba(255, 184, 93, 0.35) 25%, rgba(120, 190, 255, 0.15) 50%, rgba(255, 184, 93, 0.35) 75%, rgba(255, 110, 110, 0.3));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.diagnostics-delta-meter-center {
    left: 50%;
    width: 2px;
    height: 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    transform: translate(-50%, -50%);
}

.diagnostics-delta-needle {
    left: 50%;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.96), rgba(120, 220, 255, 0.8));
    box-shadow: 0 0 0 3px rgba(120, 190, 255, 0.18), 0 8px 16px rgba(0, 0, 0, 0.35);
    transform: translate(-50%, -50%);
}

.diagnostics-delta-scale {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.diagnostics-delta-narrative {
    font-size: var(--text-sm);
    color: var(--text-soft);
    line-height: 1.5;
}

.dashboard-diagnostics-main {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.meeting-widget {
    --widget-border: rgba(120, 190, 255, 0.22);
    --widget-surface: linear-gradient(160deg, rgba(10, 16, 28, 0.9), rgba(6, 10, 18, 0.76));
    --widget-accent: var(--ui-accent);
    --widget-header-rule: rgba(120, 190, 255, 0.12);
}

.meeting-widget--timeline,
.meeting-widget--slots,
.meeting-widget--picker {
    --widget-border: rgba(120, 190, 255, 0.3);
    --widget-surface: linear-gradient(160deg, rgba(12, 20, 34, 0.94), rgba(8, 12, 20, 0.82));
    --widget-header-rule: rgba(120, 190, 255, 0.18);
}

.meeting-widget--timeline.dashboard-window,
.meeting-widget--slots.dashboard-window,
.meeting-widget--picker.dashboard-window {
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.meeting-widget--heatmap,
.meeting-widget--clock,
.meeting-widget--status,
.meeting-widget--bands,
.meeting-widget--offsets,
.meeting-widget--dst {
    --widget-border: rgba(120, 190, 255, 0.14);
    --widget-surface: linear-gradient(160deg, rgba(8, 12, 20, 0.82), rgba(6, 10, 18, 0.72));
    --widget-accent: rgba(176, 198, 218, 0.78);
    --widget-header-rule: rgba(120, 190, 255, 0.08);
}

.meeting-widget--heatmap.dashboard-window,
.meeting-widget--clock.dashboard-window,
.meeting-widget--status.dashboard-window,
.meeting-widget--bands.dashboard-window,
.meeting-widget--offsets.dashboard-window,
.meeting-widget--dst.dashboard-window {
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.meeting-widget--heatmap .meeting-widget-title,
.meeting-widget--clock .meeting-widget-title,
.meeting-widget--status .meeting-widget-title,
.meeting-widget--bands .meeting-widget-title,
.meeting-widget--offsets .meeting-widget-title,
.meeting-widget--dst .meeting-widget-title {
    color: rgba(176, 198, 218, 0.72);
}

.meeting-widget--heatmap .meeting-widget-subtitle,
.meeting-widget--clock .meeting-widget-subtitle,
.meeting-widget--status .meeting-widget-subtitle,
.meeting-widget--bands .meeting-widget-subtitle,
.meeting-widget--offsets .meeting-widget-subtitle,
.meeting-widget--dst .meeting-widget-subtitle {
    color: rgba(182, 197, 214, 0.58);
}

.meeting-widget.is-dragging {
    opacity: 0.92;
    border-style: solid;
    transform: scale(1.01);
}

.meeting-widget-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#meetingAnswerHeader .meeting-widget-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.dashboard-canvas {
    position: relative;
    height: 100%;
    min-height: min(520px, 100%);
    border-radius: 18px;
    border: 1px solid rgba(120, 190, 255, 0.18);
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(1200px 700px at 20% 20%, rgba(30, 90, 140, 0.25), transparent 60%),
        radial-gradient(900px 600px at 80% 25%, rgba(15, 50, 90, 0.3), transparent 65%),
        linear-gradient(160deg, rgba(6, 10, 18, 0.9), rgba(4, 8, 14, 0.95));
    padding: 12px;
    cursor: grab;
    touch-action: none;
    overscroll-behavior: contain;
    --pan-x: 0px;
    --pan-y: 0px;
    --zoom: 1;
}

.dashboard-canvas.is-panning {
    cursor: grabbing;
}

.dashboard-workspace {
    position: relative;
    width: 3000px;
    height: 2000px;
    transform: translate3d(var(--pan-x, 0px), var(--pan-y, 0px), 0) scale(var(--zoom, 1));
    transform-origin: 0 0;
    transition: none;
    will-change: transform;
    backface-visibility: hidden;
    z-index: 1;
}

.dashboard-workspace::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(122, 252, 255, 0.16) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(122, 252, 255, 0.08) 1px, transparent 1px),
        linear-gradient(to right, rgba(122, 252, 255, 0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(122, 252, 255, 0.16) 1px, transparent 1px);
    background-size:
        168px 18px,
        168px 18px,
        336px 72px,
        336px 72px;
    background-position:
        48px 48px,
        48px 48px,
        48px 48px,
        48px 48px;
    opacity: 0.38;
    pointer-events: none;
    z-index: 0;
}

.dashboard-canvas.is-panning .dashboard-workspace {
    transition: none;
}

.dashboard-canvas.is-zooming .dashboard-workspace {
    transition: none;
}

.dashboard-canvas.is-panning .dashboard-workspace::before,
.dashboard-canvas.has-active-drag .dashboard-workspace::before,
.dashboard-low-power .dashboard-workspace::before {
    opacity: 0.26;
}

.dashboard-canvas::after {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.35);
    pointer-events: none;
    transition: opacity 0.12s ease, box-shadow 0.12s ease;
    z-index: 2;
}

.dashboard-canvas.is-panning,
.dashboard-canvas.has-active-drag,
.dashboard-low-power .dashboard-canvas {
    background:
        linear-gradient(160deg, rgba(6, 10, 18, 0.95), rgba(4, 8, 14, 0.98));
}

.dashboard-canvas.is-panning::after,
.dashboard-canvas.has-active-drag::after,
.dashboard-low-power .dashboard-canvas::after {
    opacity: 0.25;
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.2);
}

.dashboard-canvas > [data-widget-id] {
    position: absolute;
}

.dashboard-window {
    position: absolute;
    max-width: calc(100% - 32px);
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
    padding: 14px 16px 16px;
    border-radius: 18px;
    border: 1px solid var(--widget-border, rgba(120, 190, 255, 0.22));
    background: var(--widget-surface, linear-gradient(160deg, rgba(10, 16, 28, 0.9), rgba(6, 10, 18, 0.76)));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32), inset 0 0 0 1px rgba(255, 255, 255, 0.025);
    contain: layout style paint;
    transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.16s ease, opacity 0.18s ease, filter 0.18s ease;
}

.dashboard-canvas.is-panning .dashboard-window,
.dashboard-canvas.has-active-drag .dashboard-window,
.dashboard-low-power .dashboard-window {
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.015);
}

.dashboard-window.is-drag-origin-hidden {
    visibility: hidden;
    pointer-events: none;
}

.dashboard-drag-proxy {
    position: absolute;
    top: 0;
    left: 0;
    transform: translate3d(0, 0, 0);
    pointer-events: none;
    will-change: transform;
    z-index: 999;
    gap: 12px;
    opacity: 0.98;
    contain: layout style paint;
}

.dashboard-drag-proxy::before,
.dashboard-drag-proxy::after {
    display: none;
}

.dashboard-drag-proxy-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--widget-header-rule, rgba(255, 255, 255, 0.06));
}

.dashboard-drag-proxy-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

.dashboard-drag-proxy-subtitle {
    font-size: 12px;
    line-height: 1.35;
    color: var(--text-muted);
}

.dashboard-drag-proxy-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.dashboard-drag-proxy-line {
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(122, 252, 255, 0.16));
}

.dashboard-drag-proxy-line--strong {
    width: 78%;
}

.dashboard-drag-proxy-line--short {
    width: 52%;
}

.dashboard-drop-placeholder {
    position: absolute;
    border-radius: 18px;
    border: 1px dashed rgba(122, 252, 255, 0.72);
    background:
        linear-gradient(180deg, rgba(122, 252, 255, 0.08), rgba(51, 242, 194, 0.12)),
        rgba(51, 242, 194, 0.08);
    box-shadow:
        inset 0 0 0 1px rgba(122, 252, 255, 0.14),
        0 0 0 1px rgba(122, 252, 255, 0.06);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.12s ease, transform 0.12s ease;
}

.dashboard-drop-placeholder.is-visible {
    opacity: 1;
}

.dashboard-drop-guides {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.12s ease;
    z-index: 0;
}

.dashboard-drop-guides.is-visible {
    opacity: 1;
}

.dashboard-drop-guide {
    position: absolute;
    pointer-events: none;
}

.dashboard-drop-guide--v {
    top: 0;
    bottom: 0;
    width: 1px;
    background:
        linear-gradient(180deg, transparent, rgba(122, 252, 255, 0.44) 12%, rgba(122, 252, 255, 0.44) 88%, transparent);
    box-shadow: 0 0 0 1px rgba(122, 252, 255, 0.06);
}

.dashboard-drop-guide--h {
    left: 0;
    right: 0;
    height: 1px;
    background:
        linear-gradient(90deg, transparent, rgba(122, 252, 255, 0.34) 10%, rgba(122, 252, 255, 0.34) 90%, transparent);
    box-shadow: 0 0 0 1px rgba(122, 252, 255, 0.04);
}

.dashboard-drop-guide--left {
    left: var(--guide-left, 0px);
}

.dashboard-drop-guide--right {
    left: var(--guide-right, 0px);
}

.dashboard-drop-guide--top {
    top: var(--guide-top, 0px);
}

.dashboard-drop-guide--bottom {
    top: var(--guide-bottom, 0px);
}

.dashboard-window.is-dragging {
    transform: scale(1.006);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(122, 252, 255, 0.14);
}

.dashboard-window.is-settling {
    transform: translate3d(var(--settle-x, 0px), var(--settle-y, 0px), 0);
    transition:
        transform 0.22s cubic-bezier(0.18, 0.88, 0.22, 1),
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}

.dashboard-window[data-size="sm"] {
    width: 320px;
}

.dashboard-window[data-size="md"] {
    width: 420px;
}

.dashboard-window[data-size="lg"] {
    width: 560px;
}

.dashboard-window[data-size="xl"] {
    width: 720px;
}

.meeting-dashboard {
    min-height: min(560px, 100%);
}

.meeting-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.widget-titlebar {
    cursor: grab;
    user-select: none;
    display: flex;
    gap: 12px;
    align-items: center;
    min-height: 32px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--widget-header-rule, rgba(255, 255, 255, 0.06));
}

.widget-titlebar > :first-child {
    flex: 1 1 auto;
    min-width: 0;
}

.widget-titlebar::before {
    content: '';
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    border-radius: 6px;
    background-image: radial-gradient(currentColor 1px, transparent 1px);
    background-size: 5px 5px;
    background-position: center;
    opacity: 0.38;
}

.widget-titlebar:active {
    cursor: grabbing;
}

.widget-titlebar--light {
    align-items: center;
}

.widget-minimize {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 22px;
    border-radius: 6px;
    border: 1px solid rgba(120, 190, 255, 0.3);
    background: rgba(6, 10, 18, 0.7);
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
}

.widget-minimize:hover {
    border-color: var(--ui-accent);
    color: var(--ui-accent);
    box-shadow: var(--shadow-glow);
}

.widget-minimize--light {
    border-color: rgba(255, 210, 140, 0.4);
    color: rgba(255, 210, 140, 0.9);
    background: rgba(12, 8, 6, 0.7);
}

.widget-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.dashboard-window[data-motion-cost="heavy"] .widget-body::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    border: 1px dashed rgba(120, 190, 255, 0.18);
    background:
        linear-gradient(180deg, rgba(10, 16, 28, 0.72), rgba(6, 10, 18, 0.76));
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.12s ease;
}

.dashboard-canvas.is-panning .dashboard-window[data-motion-cost="heavy"] .widget-body > *,
.dashboard-canvas.has-active-drag .dashboard-window[data-motion-cost="heavy"] .widget-body > * {
    visibility: hidden;
}

.dashboard-canvas.is-panning .dashboard-window[data-motion-cost="heavy"] .widget-body::after,
.dashboard-canvas.has-active-drag .dashboard-window[data-motion-cost="heavy"] .widget-body::after {
    opacity: 1;
}

.dashboard-window.is-minimized .widget-body {
    display: none;
}

.dashboard-window.is-minimized {
    min-height: unset;
}

.meeting-widget-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--widget-accent, var(--ui-accent));
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.meeting-widget-subtitle {
    font-size: 11px;
    color: var(--text-soft);
}

.meeting-widget-subtitle.is-hidden {
    display: none;
}

.meeting-widget-meta {
    font-size: 11px;
    color: var(--text-muted);
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(120, 190, 255, 0.3);
    background: rgba(6, 10, 18, 0.6);
}

#meetingAnswerHeader.is-state-empty .meeting-widget-title {
    color: rgba(176, 198, 218, 0.82);
}

#meetingAnswerHeader.is-state-overlap .meeting-widget-title {
    color: rgba(82, 212, 232, 0.94);
}

#meetingAnswerHeader.is-state-overlap .meeting-widget-subtitle {
    color: rgba(176, 228, 238, 0.78);
}

#meetingAnswerHeader.is-state-decided .meeting-widget-title {
    color: rgba(255, 195, 80, 0.96);
}

#meetingAnswerHeader.is-state-decided .meeting-widget-subtitle {
    color: rgba(255, 226, 156, 0.78);
}

#meetingAnswerHeader.is-state-invalid .meeting-widget-title {
    color: rgba(255, 120, 90, 0.96);
}

#meetingAnswerHeader.is-state-invalid .meeting-widget-subtitle {
    color: rgba(255, 187, 172, 0.8);
}

#meetingAnswerHeader.is-state-no-overlap .meeting-widget-title {
    color: rgba(232, 178, 166, 0.9);
}

#meetingAnswerHeader.is-state-no-overlap .meeting-widget-subtitle {
    color: rgba(218, 188, 180, 0.78);
}

#meetingWindowSummary.is-overlap {
    color: rgba(176, 228, 238, 0.92);
    border-color: rgba(82, 212, 232, 0.34);
    background: rgba(10, 26, 34, 0.72);
}

#meetingWindowSummary.is-decided {
    color: rgba(255, 226, 156, 0.94);
    border-color: rgba(255, 195, 80, 0.38);
    background: rgba(38, 24, 10, 0.78);
}

#meetingWindowSummary.is-invalid {
    color: rgba(255, 190, 176, 0.94);
    border-color: rgba(255, 120, 90, 0.34);
    background: rgba(42, 16, 12, 0.78);
}

#meetingWindowSummary.is-no-overlap {
    color: rgba(224, 188, 178, 0.86);
    border-color: rgba(255, 120, 90, 0.2);
    background: rgba(24, 12, 12, 0.74);
}

.widget-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 22px;
    border-radius: 6px;
    border: 1px solid rgba(120, 190, 255, 0.3);
    color: var(--text-muted);
    font-size: 14px;
    cursor: grab;
    user-select: none;
    touch-action: none;
    background: rgba(6, 10, 18, 0.6);
}

.widget-handle:hover {
    border-color: var(--ui-accent);
    color: var(--ui-accent);
    box-shadow: var(--shadow-glow);
}

.widget-handle--light {
    border-color: rgba(255, 210, 140, 0.4);
    color: rgba(255, 210, 140, 0.9);
    background: rgba(12, 8, 6, 0.6);
}

.meeting-timeline {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meeting-answer-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(120, 190, 255, 0.22);
    background:
        radial-gradient(120% 160% at 0% 0%, rgba(80, 180, 255, 0.12), transparent 52%),
        linear-gradient(160deg, rgba(12, 20, 34, 0.95), rgba(8, 12, 20, 0.86));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.meeting-answer-card.is-overlap {
    border-color: rgba(120, 220, 240, 0.3);
    background: radial-gradient(120% 160% at 0% 0%, rgba(82, 212, 232, 0.10), transparent 52%),
                linear-gradient(160deg, rgba(10, 20, 28, 0.96), rgba(8, 14, 20, 0.88));
}

/* Overlap state: the kicker and range feel like a positive result, not neutral info. */
.meeting-answer-card.is-overlap .meeting-answer-kicker {
    color: rgba(140, 230, 245, 0.8);
}

.meeting-answer-card.is-overlap .meeting-answer-range {
    color: rgba(185, 244, 255, 0.98);
}

.meeting-answer-card.is-decided {
    border-color: rgba(255, 195, 80, 0.55);
    background:
        radial-gradient(120% 160% at 0% 0%, rgba(255, 195, 80, 0.18), transparent 52%),
        linear-gradient(160deg, rgba(28, 20, 10, 0.96), rgba(14, 10, 8, 0.88));
    box-shadow: 0 16px 30px rgba(255, 195, 80, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

/* Decided state: resolved, warm. Kicker glows to match the card's gold tone. */
.meeting-answer-card.is-decided .meeting-answer-kicker {
    color: rgba(255, 200, 120, 0.8);
}

.meeting-answer-card.is-decided .meeting-answer-range {
    color: rgba(255, 220, 150, 0.98);
}

.meeting-answer-card.is-invalid {
    border-color: rgba(255, 140, 105, 0.34);
    background:
        radial-gradient(120% 160% at 0% 0%, rgba(255, 140, 105, 0.12), transparent 52%),
        linear-gradient(160deg, rgba(34, 14, 12, 0.94), rgba(14, 8, 8, 0.86));
}

.meeting-answer-card.is-invalid .meeting-answer-range {
    color: rgba(255, 188, 170, 0.96);
}

/* Empty state: inviting, not dead. Subtle gradient signals "add something." */
.meeting-answer-card.is-empty {
    border-color: rgba(180, 180, 195, 0.2);
    background:
        radial-gradient(120% 160% at 0% 0%, rgba(120, 160, 200, 0.06), transparent 52%),
        linear-gradient(160deg, rgba(12, 16, 24, 0.95), rgba(8, 12, 20, 0.86));
}

.meeting-answer-card.is-empty .meeting-answer-kicker {
    color: var(--text-soft);
}

.meeting-answer-shared-banner {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    position: relative;
    border-radius: 12px;
    border: 1px solid rgba(34, 242, 166, 0.2);
    background: linear-gradient(160deg, rgba(6, 36, 24, 0.42), rgba(8, 14, 20, 0.84));
}

.meeting-answer-shared-kicker {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: rgba(164, 255, 214, 0.8);
}

.meeting-answer-shared-title {
    font-size: 13px;
    color: var(--text-bright);
}

.meeting-answer-shared-meta {
    font-size: 11px;
    line-height: 1.45;
    color: rgba(206, 240, 226, 0.82);
}

.meeting-answer-shared-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.meeting-answer-shared-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(80, 224, 176, 0.28);
    background: rgba(8, 28, 20, 0.88);
    color: rgba(220, 255, 241, 0.96);
    font-size: 10px;
    font-family: var(--mono-font);
    letter-spacing: 0.35px;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.meeting-answer-shared-action:hover {
    border-color: rgba(116, 244, 197, 0.48);
    background: rgba(10, 34, 24, 0.98);
    transform: translateY(-1px);
}

.meeting-answer-shared-action.is-secondary {
    border-color: rgba(140, 210, 255, 0.22);
    background: rgba(8, 12, 20, 0.62);
    color: rgba(214, 236, 250, 0.9);
}

.meeting-answer-shared-action.is-secondary:hover {
    border-color: rgba(120, 200, 255, 0.38);
    background: rgba(10, 16, 26, 0.9);
}

.meeting-answer-shared-dismiss {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(170, 220, 206, 0.16);
    background: rgba(8, 12, 20, 0.44);
    color: rgba(214, 236, 226, 0.82);
    cursor: pointer;
    transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.meeting-answer-shared-dismiss:hover {
    border-color: rgba(170, 220, 206, 0.3);
    background: rgba(10, 16, 26, 0.72);
    color: rgba(236, 248, 242, 0.96);
    transform: translateY(-1px);
}

.meeting-answer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.meeting-answer-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.meeting-answer-kicker {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
}

.meeting-answer-range {
    font-family: var(--mono-font);
    font-size: clamp(24px, 2.6vw, 32px);
    line-height: 1;
    color: var(--text-bright);
}

.meeting-answer-subtitle {
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-soft);
}

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

/* Share button: the most important action in the product. Styled to be
   unmissable without being loud. Warm background signals "do this next." */
.meeting-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(51, 242, 194, 0.35);
    background: linear-gradient(135deg, rgba(51, 242, 194, 0.14), rgba(8, 20, 16, 0.88));
    color: rgba(200, 255, 235, 0.96);
    font-size: 11px;
    font-family: var(--mono-font);
    font-weight: 700;
    letter-spacing: 0.35px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(51, 242, 194, 0.08);
    transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.meeting-share-button:hover {
    border-color: rgba(51, 242, 194, 0.55);
    background: linear-gradient(135deg, rgba(51, 242, 194, 0.22), rgba(8, 24, 18, 0.92));
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 0 16px rgba(51, 242, 194, 0.15), 0 8px 16px rgba(4, 10, 18, 0.3);
}

.meeting-share-button.is-hidden {
    display: none;
}

#meetingAnswerHeader.is-state-decided .meeting-share-button {
    border-color: rgba(255, 195, 80, 0.34);
    color: rgba(255, 226, 156, 0.96);
}

#meetingAnswerHeader.is-state-invalid .meeting-share-button {
    border-color: rgba(255, 140, 105, 0.32);
    color: rgba(255, 206, 194, 0.96);
}

.meeting-answer-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(120, 190, 255, 0.35);
    background: linear-gradient(135deg, rgba(64, 190, 232, 0.26), rgba(12, 28, 42, 0.92));
    color: var(--text-bright);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 11px;
    font-family: var(--mono-font);
    letter-spacing: 0.4px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 10px 18px rgba(4, 10, 18, 0.28);
    transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.meeting-answer-button:hover {
    border-color: var(--ui-accent);
    box-shadow: var(--shadow-glow), 0 12px 20px rgba(4, 10, 18, 0.32);
    transform: translateY(-1px);
}

.meeting-answer-button.is-secondary {
    border-color: rgba(120, 190, 255, 0.22);
    background: rgba(8, 12, 20, 0.58);
    color: var(--text-soft);
    box-shadow: none;
}

.meeting-answer-button.is-secondary:hover {
    border-color: rgba(82, 212, 232, 0.34);
    color: var(--text-primary);
    box-shadow: 0 10px 18px rgba(4, 10, 18, 0.24);
}

/* Calendar export button: warm tint, distinct from Share but equally visible.
   This is the natural next step after choosing a time — not secondary. */
.meeting-answer-button.is-calendar {
    border-color: rgba(82, 212, 232, 0.38);
    background: linear-gradient(135deg, rgba(82, 212, 232, 0.18), rgba(8, 16, 26, 0.92));
    color: rgba(180, 230, 255, 0.96);
}

.meeting-answer-button.is-calendar:hover {
    border-color: rgba(82, 212, 232, 0.55);
    box-shadow: 0 0 14px rgba(82, 212, 232, 0.15), 0 10px 18px rgba(4, 10, 18, 0.28);
    transform: translateY(-1px);
}

.meeting-answer-card.is-decided .meeting-answer-button {
    border-color: rgba(255, 209, 128, 0.45);
    background: linear-gradient(135deg, rgba(255, 209, 128, 0.28), rgba(38, 24, 10, 0.92));
}

.meeting-answer-card.is-invalid .meeting-answer-button {
    border-color: rgba(255, 140, 105, 0.38);
    background: linear-gradient(135deg, rgba(255, 140, 105, 0.26), rgba(36, 14, 10, 0.92));
}

/* Meta text in meeting card: visible enough to scan, quiet enough not to compete.
   0.6 was too faint — 0.75 keeps it readable as a whisper. */
.meeting-answer-meta {
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.35;
    opacity: 0.75;
}

.meeting-answer-times {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
}

.meeting-answer-time {
    border: 1px solid rgba(120, 190, 255, 0.18);
    background: rgba(8, 12, 20, 0.54);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meeting-answer-time.is-ok {
    border-color: rgba(51, 242, 194, 0.45);
    background: rgba(51, 242, 194, 0.06);
}

.meeting-answer-time.is-outside {
    border-color: rgba(255, 140, 105, 0.38);
    background: rgba(255, 140, 105, 0.05);
}

.meeting-answer-time-label {
    font-size: 12px;
    color: var(--text-soft);
}

.meeting-answer-time-value {
    font-family: var(--mono-font);
    font-size: 20px;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.meeting-answer-time-meta {
    font-size: 9px;
    color: var(--text-muted);
}

.meeting-answer-dst-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 6px;
    border: 1px solid transparent;
    margin-top: 2px;
}

.meeting-answer-dst-badge.dst-spring {
    background: rgba(255, 185, 50, 0.15);
    color: #ffc947;
    border-color: rgba(255, 185, 50, 0.4);
}

.meeting-answer-dst-badge.dst-fall {
    background: rgba(140, 190, 255, 0.15);
    color: #90c0ff;
    border-color: rgba(140, 190, 255, 0.4);
}

.meeting-answer-local-lens {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(120, 190, 255, 0.14);
}

.meeting-answer-local-lens-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.55px;
    color: rgba(171, 207, 234, 0.72);
}

.meeting-answer-local-lens-value {
    font-family: var(--mono-font);
    font-size: 13px;
    color: rgba(220, 236, 248, 0.94);
}

.meeting-answer-local-lens-meta {
    font-size: 10px;
    color: var(--text-soft);
}

.meeting-timeline-toggle {
    align-self: flex-start;
    border: 1px solid rgba(120, 190, 255, 0.24);
    background: rgba(8, 12, 20, 0.62);
    color: var(--text-soft);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.45px;
    cursor: pointer;
}

.meeting-timeline-toggle:hover {
    border-color: var(--ui-accent);
    color: var(--text-primary);
}

.meeting-timeline-toggle.is-hidden {
    display: none;
}

.meeting-timeline-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.meeting-timeline-details.is-collapsed {
    display: none;
}

.timeline-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 12px;
    align-items: center;
}

.timeline-row.is-overlap .timeline-label-title {
    color: rgba(82, 212, 232, 0.94);
}

.timeline-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 11px;
    color: var(--text-soft);
}

.timeline-label-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.timeline-label-sub {
    font-size: 10px;
    color: var(--text-muted);
}

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

.timeline-cell {
    height: 12px;
    border-radius: 3px;
    background: rgba(8, 12, 20, 0.85);
    border: 1px solid rgba(120, 190, 255, 0.12);
    position: relative;
    overflow: hidden;
}

.timeline-cell.is-now {
    border-color: rgba(255, 92, 92, 0.8);
}

.timeline-cell.is-now::before {
    content: '';
    position: absolute;
    top: -1px;
    bottom: -1px;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: rgba(255, 92, 92, 0.96);
    box-shadow: 0 0 12px rgba(255, 92, 92, 0.35);
}

.timeline-cell.is-past {
    opacity: 0.6;
}

.timeline-cell.is-work {
    background: rgba(51, 242, 194, 0.22);
    border-color: rgba(51, 242, 194, 0.35);
}

.timeline-cell.is-overlap {
    background: rgba(82, 212, 232, 0.26);
    border-color: rgba(82, 212, 232, 0.52);
}

.timeline-cell.is-chosen-edge {
    background: rgba(255, 195, 80, 0.14);
    border-color: rgba(255, 195, 80, 0.32);
}

.timeline-cell.is-chosen-center {
    background: rgba(255, 195, 80, 0.34);
    border-color: rgba(255, 195, 80, 0.78);
    box-shadow: 0 0 0 1px rgba(255, 195, 80, 0.18), 0 0 16px rgba(255, 195, 80, 0.18);
    z-index: 1;
}

.timeline-cell.is-chosen-invalid.is-chosen-edge {
    background: rgba(255, 120, 90, 0.1);
    border-color: rgba(255, 120, 90, 0.26);
    border-style: dashed;
}

.timeline-cell.is-chosen-invalid.is-chosen-center {
    background: rgba(255, 120, 90, 0.2);
    border-color: rgba(255, 120, 90, 0.62);
    border-style: dashed;
    box-shadow: 0 0 0 1px rgba(255, 120, 90, 0.16);
}

.timeline-cell.is-day::after {
    content: '';
    position: absolute;
    left: 2px;
    right: 2px;
    top: 2px;
    height: 2px;
    border-radius: 999px;
    background: rgba(255, 230, 170, 0.9);
}

.timeline-cell.is-night::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 12, 0.35);
}

.timeline-row.is-overlap .timeline-cell {
    height: 14px;
}

.timeline-row.is-axis .timeline-cell {
    height: 16px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: var(--text-muted);
}

.timeline-row.is-axis .timeline-cell.is-now {
    color: rgba(255, 142, 142, 0.96);
    font-weight: 700;
}

.timeline-row.is-axis .timeline-cell.is-chosen-edge {
    background: rgba(255, 195, 80, 0.12);
    color: rgba(255, 208, 120, 0.82);
}

.timeline-row.is-axis .timeline-cell.is-chosen-center {
    background: rgba(255, 195, 80, 0.28);
    color: rgba(255, 220, 150, 0.96);
    font-weight: 700;
}

.timeline-row.is-axis .timeline-cell.is-chosen-invalid.is-chosen-edge {
    background: rgba(255, 120, 90, 0.1);
    color: rgba(255, 170, 145, 0.82);
}

.timeline-row.is-axis .timeline-cell.is-chosen-invalid.is-chosen-center {
    background: rgba(255, 120, 90, 0.2);
    color: rgba(255, 188, 170, 0.96);
    font-weight: 700;
}

.timeline-row.is-axis .timeline-label-title {
    font-size: 11px;
}

.meeting-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.meeting-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.legend-swatch {
    width: 12px;
    height: 8px;
    border-radius: 999px;
    display: inline-block;
    background: rgba(8, 12, 20, 0.85);
    border: 1px solid rgba(120, 190, 255, 0.2);
}

.legend-swatch.legend-work {
    background: rgba(51, 242, 194, 0.3);
    border-color: rgba(51, 242, 194, 0.5);
}

.legend-swatch.legend-day {
    background: rgba(255, 230, 170, 0.7);
    border-color: rgba(255, 230, 170, 0.8);
}

.legend-swatch.legend-overlap {
    background: rgba(82, 212, 232, 0.42);
    border-color: rgba(82, 212, 232, 0.64);
}

.legend-swatch.legend-chosen {
    background: rgba(255, 195, 80, 0.6);
    border-color: rgba(255, 195, 80, 0.82);
}

.clock-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
}

.clock-strip-item {
    border: 1px solid rgba(120, 190, 255, 0.25);
    background: rgba(8, 12, 20, 0.7);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 68px;
    transition: all 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.clock-strip-item.is-active {
    border-color: rgba(51, 242, 194, 0.7);
    box-shadow: var(--shadow-glow);
}

/* Clock strip: time is the hero. Name is context. Night items feel cooler. */
.clock-strip-time {
    font-family: var(--mono-font);
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.3px;
}

.clock-strip-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-soft);
}

.clock-strip-item.is-night {
    background: rgba(6, 10, 18, 0.7);
    border-color: rgba(100, 150, 200, 0.18);
}

.clock-strip-meta {
    font-size: 10px;
    color: var(--text-muted);
}

.clock-strip-decision {
    font-size: 10px;
    font-family: var(--mono-font);
    letter-spacing: 0.2px;
}

.clock-strip-decision.is-chosen {
    color: rgba(255, 208, 120, 0.96);
}

.clock-strip-decision.is-invalid {
    color: rgba(255, 155, 130, 0.92);
}

.clock-strip-item.is-night .clock-strip-time {
    color: #96b0ff;
}

.meeting-slots,
.meeting-statuses,
.meeting-dst,
.meeting-offsets {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meeting-offsets-summary {
    border: 1px solid rgba(120, 190, 255, 0.26);
    background: linear-gradient(160deg, rgba(10, 16, 28, 0.84), rgba(8, 12, 20, 0.72));
    border-radius: 14px;
    padding: 10px 12px 12px;
    display: grid;
    gap: 4px;
}

.offset-summary-kicker {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.offset-summary-time {
    font-family: var(--mono-font);
    font-size: 18px;
    color: var(--ui-accent);
    font-weight: 700;
}

.offset-summary-meta {
    font-size: 11px;
    color: var(--text-soft);
}

.meeting-offsets-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meeting-heatmap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.heatmap-row {
    display: contents;
}

.heatmap-label {
    font-size: 10px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    padding-right: 6px;
}

.heatmap-cell {
    height: 14px;
    border-radius: 3px;
    background: rgba(8, 12, 20, 0.7);
    border: 1px solid rgba(120, 190, 255, 0.08);
    font-size: 9px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.heatmap-cell.heatmap-hour {
    background: transparent;
    border: none;
}

.heatmap-cell.heat-0 { background: rgba(8, 12, 20, 0.7); }
.heatmap-cell.heat-1 { background: rgba(51, 242, 194, 0.12); }
.heatmap-cell.heat-2 { background: rgba(51, 242, 194, 0.22); }
.heatmap-cell.heat-3 { background: rgba(51, 242, 194, 0.32); }
.heatmap-cell.heat-4 { background: rgba(82, 212, 232, 0.42); }
.heatmap-cell.heat-5 { background: rgba(82, 212, 232, 0.58); }

.heatmap-cell.is-now-column::before {
    content: '';
    position: absolute;
    top: -1px;
    bottom: -1px;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: rgba(255, 92, 92, 0.92);
    box-shadow: 0 0 10px rgba(255, 92, 92, 0.28);
}

.heatmap-cell.is-now {
    border-color: rgba(255, 92, 92, 0.72);
    box-shadow: 0 0 0 1px rgba(255, 92, 92, 0.2);
}

.heatmap-cell.is-chosen {
    border-color: rgba(255, 195, 80, 0.82);
    box-shadow: 0 0 0 1px rgba(255, 195, 80, 0.22), inset 0 0 0 1px rgba(255, 195, 80, 0.16);
}

.legend-swatch.legend-heat-low {
    background: rgba(51, 242, 194, 0.18);
    border-color: rgba(51, 242, 194, 0.4);
}

.legend-swatch.legend-heat-high {
    background: rgba(82, 212, 232, 0.55);
    border-color: rgba(82, 212, 232, 0.72);
}

.slot-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.slot-picker-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--ui-accent);
}

.slot-picker-copy {
    border: 1px solid rgba(120, 190, 255, 0.3);
    background: rgba(8, 12, 20, 0.6);
    color: var(--text-muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 4px 8px;
    border-radius: 999px;
    cursor: pointer;
}

.slot-picker-copy:hover {
    border-color: var(--ui-accent);
    color: var(--ui-accent);
    box-shadow: var(--shadow-glow);
}

.slot-picker-slider {
    width: 100%;
    accent-color: var(--ui-accent);
}

.slot-picker-slider-shell {
    position: relative;
    padding-left: 14px;
}

.slot-picker-now-marker {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    font-family: var(--mono-font);
    font-size: 9px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: rgba(255, 126, 126, 0.96);
    padding-left: 8px;
    pointer-events: none;
}

.slot-picker-now-marker::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 2px;
    height: 20px;
    transform: translateY(-50%);
    border-radius: 999px;
    background: rgba(255, 92, 92, 0.96);
    box-shadow: 0 0 10px rgba(255, 92, 92, 0.3);
}

.slot-picker-now-marker.is-hidden {
    display: none;
}

.slot-picker-summary {
    font-size: 11px;
    color: var(--text-soft);
}

.slot-picker-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.slot-picker-row {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) auto;
    gap: 8px;
    align-items: center;
    border-radius: 10px;
    border: 1px solid rgba(120, 190, 255, 0.2);
    padding: 6px 10px;
    background: rgba(8, 12, 20, 0.65);
    font-size: 11px;
    color: var(--text-muted);
}

.slot-picker-row.is-ok {
    border-color: rgba(51, 242, 194, 0.6);
    color: var(--text-primary);
}

.slot-picker-time {
    font-family: var(--mono-font);
    color: var(--ui-accent);
    font-size: 12px;
}

.meeting-hour-bands {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hour-band-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hour-band-label {
    font-size: 11px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hour-band-bar {
    display: grid;
    grid-template-columns: repeat(24, minmax(0, 1fr));
    gap: 2px;
}

.hour-segment {
    height: 8px;
    border-radius: 3px;
    background: rgba(8, 12, 20, 0.75);
    border: 1px solid rgba(120, 190, 255, 0.08);
    position: relative;
}

.hour-segment.is-work {
    background: rgba(51, 242, 194, 0.32);
    border-color: rgba(51, 242, 194, 0.45);
}

.hour-segment.is-now {
    border-color: rgba(255, 92, 92, 0.45);
}

.hour-segment.is-now::before {
    content: '';
    position: absolute;
    top: -3px;
    bottom: -3px;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: rgba(255, 92, 92, 0.96);
    box-shadow: 0 0 10px rgba(255, 92, 92, 0.3);
}

.hour-segment.is-chosen::after,
.hour-segment.is-chosen-invalid::after {
    content: '';
    position: absolute;
    top: -3px;
    bottom: -3px;
    left: calc(50% + 3px);
    width: 2px;
    transform: translateX(-50%);
    border-radius: 999px;
}

.hour-segment.is-chosen::after {
    background: rgba(255, 195, 80, 0.96);
    box-shadow: 0 0 10px rgba(255, 195, 80, 0.3);
}

.hour-segment.is-chosen-invalid::after {
    background: rgba(255, 120, 90, 0.92);
    box-shadow: 0 0 10px rgba(255, 120, 90, 0.24);
}

.meeting-dst-timeline {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dst-track {
    position: relative;
    height: 8px;
    border-radius: 999px;
    background: rgba(8, 12, 20, 0.7);
    border: 1px solid rgba(120, 190, 255, 0.2);
}

.dst-marker {
    position: absolute;
    top: -4px;
    width: 2px;
    height: 16px;
    background: #ffd28c;
    box-shadow: 0 0 6px rgba(255, 210, 140, 0.6);
}

.dst-marker::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -3px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #ffd28c;
}

.dst-marker.is-now {
    background: rgba(255, 92, 92, 0.96);
    box-shadow: 0 0 8px rgba(255, 92, 92, 0.34);
}

.dst-marker.is-now::after {
    background: rgba(255, 92, 92, 0.96);
}
.slot-card {
    border: 1px solid rgba(120, 190, 255, 0.3);
    background: rgba(8, 12, 20, 0.7);
    border-radius: 12px;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 10px;
    align-items: center;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.slot-card:hover {
    border-color: var(--ui-accent);
    box-shadow: var(--shadow-glow);
}

.slot-card.is-best {
    border-color: rgba(120, 220, 240, 0.45);
    background: rgba(8, 24, 30, 0.82);
    box-shadow: 0 0 0 1px rgba(120, 220, 240, 0.12);
}

.slot-card.is-best .slot-time {
    color: rgba(185, 244, 255, 0.98);
}

.slot-card.is-best .slot-copy {
    border-color: rgba(120, 220, 240, 0.35);
    color: rgba(185, 244, 255, 0.94);
}

.slot-card.is-selected {
    border-color: rgba(255, 195, 80, 0.78);
    background: rgba(40, 28, 8, 0.86);
    box-shadow: 0 0 0 1px rgba(255, 195, 80, 0.2), 0 12px 26px rgba(0, 0, 0, 0.3);
}

.slot-card.is-selected .slot-time {
    color: rgba(255, 220, 150, 0.99);
}

.slot-card.is-selected .slot-copy {
    border-color: rgba(255, 195, 80, 0.38);
    color: rgba(255, 220, 150, 0.96);
}

.slot-time {
    font-family: var(--mono-font);
    font-size: 14px;
    color: var(--ui-accent);
}

.slot-meta {
    font-size: 10px;
    color: var(--text-soft);
}

.slot-copy {
    font-size: 10px;
    color: var(--text-muted);
    border: 1px solid rgba(120, 190, 255, 0.2);
    padding: 4px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.status-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(120, 190, 255, 0.25);
    background: rgba(8, 12, 20, 0.65);
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 11px;
}

.status-chip span:last-child {
    font-weight: 700;
}

.status-chip.is-day span:last-child {
    color: var(--ui-accent);
}

.status-chip.is-night span:last-child {
    color: #96b0ff;
}

.offset-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    align-items: start;
    border: 1px solid rgba(120, 190, 255, 0.2);
    background: rgba(8, 12, 20, 0.65);
    border-radius: 12px;
    padding: 10px 12px;
}

.offset-row.is-ahead {
    border-color: rgba(255, 210, 140, 0.34);
}

.offset-row.is-behind {
    border-color: rgba(150, 176, 255, 0.34);
}

.offset-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.offset-name {
    font-size: 12px;
    color: var(--text-primary);
    font-weight: 600;
}

.offset-sub {
    font-size: 10px;
    color: var(--text-soft);
}

.offset-clock {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    min-width: 118px;
}

.offset-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}

.offset-time {
    font-family: var(--mono-font);
    font-size: 16px;
    color: var(--ui-accent);
    font-weight: 700;
}

.offset-delta {
    font-size: 10px;
    color: var(--text-muted);
    border: 1px solid rgba(120, 190, 255, 0.2);
    padding: 3px 6px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.offset-day {
    font-size: 10px;
    color: var(--text-soft);
    padding: 3px 6px;
    border-radius: 999px;
    border: 1px solid rgba(120, 190, 255, 0.2);
}

.offset-day.is-ahead {
    color: #ffd28c;
    border-color: rgba(255, 210, 140, 0.6);
}

.offset-day.is-behind {
    color: #96b0ff;
    border-color: rgba(150, 176, 255, 0.6);
}

.dst-card {
    border: 1px dashed rgba(120, 190, 255, 0.3);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dst-card strong {
    color: var(--text-primary);
}

.meeting-empty {
    font-size: 11px;
    color: var(--text-muted);
    padding: 10px;
    border-radius: 10px;
    border: 1px dashed rgba(120, 190, 255, 0.25);
    text-align: center;
}

.astro-dashboard {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
    height: 100%;
    min-height: 0;
}

.astro-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.astro-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffd28c;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.astro-subtitle {
    font-size: 12px;
    color: var(--text-soft);
}

.astro-badge {
    font-size: 11px;
    color: var(--text-muted);
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 210, 140, 0.4);
    background: rgba(12, 8, 6, 0.6);
}

.astro-grid {
    flex: 1;
    min-height: min(420px, 100%);
}

.astro-card {
    --widget-border: rgba(255, 210, 140, 0.28);
    --widget-surface: linear-gradient(160deg, rgba(15, 12, 9, 0.88), rgba(8, 7, 6, 0.78));
    --widget-accent: #ffd28c;
    --widget-header-rule: rgba(255, 210, 140, 0.12);
    gap: 10px;
    min-height: 140px;
}

.astro-card.is-dragging {
    opacity: 0.92;
    border-style: solid;
    transform: scale(1.01);
}

.astro-card--wide {
    width: auto;
}

.astro-card-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--widget-accent, #ffd28c);
}

.astro-card-value {
    font-size: 16px;
    font-weight: 700;
    color: #fff2d6;
}

.astro-card-meta {
    font-size: 11px;
    color: var(--text-soft);
}

.astro-local-clock,
.astro-local-status,
.astro-solar-noon {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.astro-local-clock {
    padding-bottom: 2px;
}

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

.astro-metric-card {
    border: 1px solid rgba(255, 210, 140, 0.16);
    background: rgba(14, 11, 8, 0.48);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.astro-metric-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.45px;
    color: var(--text-muted);
}

.astro-metric-value {
    font-size: 15px;
}

.astro-window-grid {
    display: grid;
    gap: 8px;
}

.astro-window-card {
    border: 1px solid rgba(255, 210, 140, 0.18);
    background: rgba(14, 11, 8, 0.42);
    border-radius: 12px;
    padding: 10px;
    display: grid;
    gap: 4px;
}

.astro-window-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.45px;
    color: var(--text-muted);
}

.astro-window-card strong {
    color: #fff2d6;
    font-size: 13px;
    font-weight: 700;
}

.astro-daylight-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 210, 140, 0.35);
    background: rgba(12, 8, 6, 0.55);
    color: #fff2d6;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
    min-width: 80px;
    gap: 6px;
    box-shadow: 0 0 12px rgba(255, 210, 140, 0.15);
}

.astro-daylight-badge.day {
    border-color: rgba(255, 210, 140, 0.6);
    background: rgba(255, 210, 140, 0.12);
    color: #ffdba7;
}

.astro-daylight-badge.civil {
    border-color: rgba(255, 180, 120, 0.6);
    background: rgba(255, 180, 120, 0.15);
    color: #ffd0a8;
}

.astro-daylight-badge.nautical {
    border-color: rgba(120, 170, 255, 0.5);
    background: rgba(40, 70, 140, 0.35);
    color: #c8dbff;
}

.astro-daylight-badge.astro {
    border-color: rgba(80, 120, 255, 0.5);
    background: rgba(28, 40, 80, 0.45);
    color: #b7ccff;
}

.astro-daylight-badge.night {
    border-color: rgba(80, 130, 255, 0.5);
    background: rgba(20, 32, 64, 0.4);
    color: #cfe3ff;
}

.astro-daylight-badge.neutral {
    border-color: rgba(200, 200, 200, 0.3);
    color: var(--text-muted);
}

.astro-next-list {
    display: grid;
    gap: 10px;
}

.astro-next-hero {
    border: 1px solid rgba(255, 210, 140, 0.32);
    background: linear-gradient(160deg, rgba(26, 19, 10, 0.78), rgba(12, 9, 6, 0.7));
    border-radius: 14px;
    padding: 12px;
    display: grid;
    gap: 5px;
}

.astro-next-kicker {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 210, 140, 0.74);
}

.astro-next-hero-title {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff2d6;
}

.astro-next-hero-title strong {
    font-size: 14px;
    font-weight: 700;
}

.astro-next-hero-time {
    font-size: 12px;
    color: var(--text-soft);
}

.astro-next-hero-delta {
    font-size: 11px;
    color: #ffd28c;
}

.astro-next-stack {
    display: grid;
    gap: 6px;
}

.astro-next-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 6px 8px;
    border-radius: 10px;
    border: 1px solid rgba(255, 210, 140, 0.2);
    background: rgba(10, 8, 8, 0.45);
    font-size: 11px;
    color: var(--text-muted);
}

.astro-next-item .astro-next-icon {
    font-size: 13px;
    margin-right: 4px;
}

.astro-next-item strong {
    color: #fff2d6;
    font-weight: 600;
}

.astro-next-item small {
    color: var(--text-soft);
    font-size: 10px;
}

.astro-next-window {
    border-radius: 12px;
    border: 1px dashed rgba(255, 210, 140, 0.34);
    background: rgba(255, 210, 140, 0.06);
    padding: 10px 12px;
    display: grid;
    gap: 3px;
    color: var(--text-soft);
}

.astro-next-window-label {
    color: rgba(255, 210, 140, 0.86);
    font-size: 11px;
}

.astro-next-window strong {
    color: #fff2d6;
    font-size: 13px;
}

.astro-next-window-meta {
    color: var(--text-muted);
    font-size: 10px;
}

.astro-next-empty {
    font-size: 11px;
    color: var(--text-muted);
    padding: 6px 0;
}

/* Moon phase SVG disc (v3.3.1) */
.astro-moon-svg {
    display: flex;
    justify-content: center;
    margin: 4px 0 10px;
}
.astro-moon-svg svg {
    width: 56px;
    height: 56px;
    filter: drop-shadow(0 0 6px rgba(255, 253, 231, 0.18));
}

.astro-moon-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
}

.astro-moon-row span {
    display: block;
    font-size: 10px;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.astro-moon-row strong {
    color: #fff2d6;
    font-weight: 600;
}

.astro-twilight-band {
    height: 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 210, 140, 0.3);
    background: rgba(12, 10, 12, 0.6);
}

.astro-twilight-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
}

.astro-twilight-item {
    border: 1px solid rgba(255, 210, 140, 0.2);
    border-radius: 10px;
    padding: 6px 8px;
    background: rgba(10, 8, 8, 0.55);
    display: flex;
    justify-content: space-between;
    gap: 6px;
}

.astro-visibility-score {
    font-size: 22px;
    color: #fff2d6;
    font-weight: 700;
}

.astro-moon-times {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
}

.astro-moon-times span {
    display: block;
    font-size: 10px;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.astro-moon-times strong {
    color: #fff2d6;
    font-weight: 600;
}

.astro-moon-trend {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-top: 6px;
}

.astro-moon-trend span {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 210, 140, 0.2);
    border: 1px solid rgba(255, 210, 140, 0.25);
}

.astro-sunpath-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.astro-sunpath-meta {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.astro-sunpath-graph {
    width: 100%;
    height: 120px;
    border-radius: 12px;
    border: 1px solid rgba(255, 210, 140, 0.25);
    background: rgba(8, 8, 12, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
}

.astro-timeline-graph {
    width: 100%;
    height: 120px;
    border-radius: 12px;
    border: 1px solid rgba(255, 210, 140, 0.25);
    background: rgba(8, 8, 12, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.astro-timeline-graph svg {
    width: 100%;
    height: 100%;
}

.astro-sunpath-graph svg {
    width: 100%;
    height: 100%;
}

.sunpath-line {
    fill: none;
    stroke: #ffd28c;
    stroke-width: 2.2;
    filter: drop-shadow(0 0 6px rgba(255, 210, 140, 0.4));
}

.sunpath-horizon {
    stroke: rgba(255, 255, 255, 0.18);
    stroke-dasharray: 4 4;
}

.sunpath-point {
    fill: #ffd28c;
    filter: drop-shadow(0 0 6px rgba(255, 210, 140, 0.5));
}

.dashboard-window.is-focused {
    border-color: rgba(122, 252, 255, 0.75);
    box-shadow: 0 0 22px rgba(51, 242, 194, 0.18), 0 18px 40px rgba(0, 0, 0, 0.45);
}

.about-profile {
    display: flex;
    gap: 12px;
    align-items: center;
}

.about-avatar {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid rgba(255, 200, 120, 0.45);
    box-shadow: var(--shadow-soft);
}

.about-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.about-name {
    font-weight: 700;
    font-size: 13px;
    color: var(--ui-accent);
}

.about-text {
    font-size: 11px;
    color: var(--text-soft);
    line-height: 1.4;
}

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

.about-link {
    color: var(--ui-accent);
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
}

.about-link:hover {
    text-decoration: underline;
}

.about-legal-card {
    background: rgba(12, 18, 28, 0.7);
    border-radius: 10px;
    padding: 10px;
    border: 1px solid rgba(82, 212, 232, 0.22);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.about-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.about-legal-link {
    color: rgba(214, 244, 255, 0.94);
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid rgba(82, 212, 232, 0.28);
    background: rgba(17, 28, 42, 0.72);
    border-radius: 999px;
    padding: 5px 10px;
}

.about-legal-link:hover,
.about-legal-link:focus-visible {
    border-color: rgba(82, 212, 232, 0.56);
    color: rgba(236, 250, 255, 0.98);
}

.about-donate {
    background: rgba(12, 18, 28, 0.7);
    border-radius: 10px;
    padding: 10px;
    border: 1px solid rgba(255, 200, 120, 0.25);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.about-donate-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.about-copy-btn {
    background: rgba(255, 200, 120, 0.12);
    border: 1px solid rgba(255, 200, 120, 0.45);
    color: rgba(255, 230, 190, 0.95);
    font-size: 11px;
    border-radius: 999px;
    padding: 4px 10px;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.about-copy-btn:hover {
    border-color: rgba(255, 200, 120, 0.85);
    box-shadow: 0 0 10px rgba(255, 200, 120, 0.35);
}

.about-qr {
    width: 140px;
    height: 140px;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid rgba(255, 200, 120, 0.35);
    background: rgba(0, 0, 0, 0.35);
    padding: 6px;
    margin-bottom: 6px;
}

.about-address {
    font-family: var(--mono-font);
    font-size: 11px;
    color: var(--text-primary);
    word-break: break-all;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 200, 120, 0.2);
    border-radius: 8px;
    padding: 6px 8px;
    cursor: pointer;
    user-select: text;
}

.about-address:focus {
    outline: 1px solid rgba(255, 200, 120, 0.6);
}

.about-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: rgba(255, 220, 170, 0.9);
    margin-bottom: 6px;
}

.coffee-anim {
    display: inline-block;
    margin-left: 6px;
    animation: coffeeFloat 1.8s ease-in-out infinite;
}

@keyframes coffeeFloat {
    0% { transform: translateY(0); opacity: 0.7; }
    50% { transform: translateY(-4px); opacity: 1; }
    100% { transform: translateY(0); opacity: 0.7; }
}

/* ===== SUPPORTER / MEMBERSHIP UX SURFACE ===== */

/* --- Section container --- */
.supporter-section {
    border: 1px solid rgba(51, 242, 194, 0.22);
    border-radius: 10px;
    background:
        radial-gradient(circle at top right, rgba(255, 200, 120, 0.16), transparent 34%),
        radial-gradient(circle at left center, rgba(51, 242, 194, 0.14), transparent 38%),
        linear-gradient(160deg, rgba(7, 12, 22, 0.92), rgba(10, 18, 30, 0.84));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 14px 34px rgba(0, 0, 0, 0.24);
    padding: 13px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    flex-shrink: 0;
}

.supporter-section::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 26%);
    opacity: 0.7;
}

.supporter-section > * {
    position: relative;
    z-index: 1;
}

/* --- State visibility via data attribute --- */
.supporter-state { display: none; }

.supporter-section[data-supporter-state="none"]    .supporter-state--none,
.supporter-section[data-supporter-state="claiming"] .supporter-state--claiming,
.supporter-section[data-supporter-state="active"]   .supporter-state--active,
.supporter-section[data-supporter-state="failed"]   .supporter-state--failed {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* --- None state (pricing) --- */
.supporter-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.supporter-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 10px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: rgba(210, 255, 247, 0.96);
    background: rgba(51, 242, 194, 0.12);
    border: 1px solid rgba(51, 242, 194, 0.28);
}

.supporter-badge--warm {
    color: rgba(255, 235, 196, 0.96);
    background: rgba(255, 200, 120, 0.12);
    border-color: rgba(255, 200, 120, 0.28);
}

.supporter-headline {
    font-size: 17px;
    font-weight: 800;
    color: #f5fbff;
    letter-spacing: 0.1px;
    line-height: 1.15;
}

.supporter-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.supporter-price-main {
    font-size: 21px;
    font-weight: 800;
    color: #ffffff;
    font-family: var(--mono-font);
    text-shadow: 0 0 18px rgba(255, 200, 120, 0.16);
}

.supporter-price-alt {
    font-size: 12px;
    color: rgba(213, 225, 239, 0.88);
}

.supporter-price-alt-link {
    text-decoration: none;
}

.supporter-price-alt-link:hover,
.supporter-price-alt-link:focus-visible {
    color: var(--ui-accent);
    text-decoration: underline;
}

.supporter-price-alt-link.is-disabled {
    opacity: 0.55;
    text-decoration: none;
    cursor: help;
}

.supporter-body {
    font-size: 12px;
    line-height: 1.55;
    color: rgba(219, 230, 241, 0.9);
}

.supporter-perks {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0;
    margin: 0;
}

.supporter-perks li {
    font-size: 11px;
    color: rgba(223, 232, 242, 0.84);
    padding-left: 16px;
    position: relative;
}

.supporter-perks li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--ui-accent);
    font-weight: 700;
    font-size: 11px;
}

.supporter-cta-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.supporter-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(51, 242, 194, 0.2), rgba(120, 200, 255, 0.16));
    border: 1px solid rgba(136, 235, 255, 0.58);
    color: #dffff8;
    font-family: var(--ui-font);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.35px;
    border-radius: 999px;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-decoration: none;
    text-align: center;
    width: 100%;
    box-shadow: 0 10px 22px rgba(6, 16, 30, 0.28), 0 0 18px rgba(51, 242, 194, 0.12);
}

.supporter-cta:hover {
    border-color: rgba(188, 244, 255, 0.92);
    box-shadow: 0 14px 28px rgba(6, 16, 30, 0.34), 0 0 18px rgba(51, 242, 194, 0.24);
    transform: translateY(-2px);
}

.supporter-cta:active {
    transform: translateY(0);
}

.supporter-cta.is-disabled {
    opacity: 0.76;
    cursor: help;
    box-shadow: 0 10px 22px rgba(6, 16, 30, 0.2);
    border-color: rgba(120, 160, 180, 0.35);
    color: rgba(214, 227, 238, 0.78);
}

.supporter-checkout-status {
    font-size: 10px;
    line-height: 1.5;
    color: rgba(176, 191, 207, 0.82);
}

.supporter-checkout-status.is-ready {
    color: rgba(196, 248, 223, 0.88);
}

.supporter-founder-note {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 9px 11px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.supporter-founder-quote {
    font-size: 11px;
    line-height: 1.55;
    color: rgba(244, 248, 252, 0.88);
}

.supporter-founder-signoff {
    font-size: 10px;
    color: rgba(255, 220, 170, 0.92);
    letter-spacing: 0.35px;
    text-transform: uppercase;
}

.supporter-roadmap {
    font-size: 10px;
    color: rgba(210, 220, 232, 0.72);
}

.supporter-privacy {
    font-size: 9px;
    color: rgba(120, 140, 170, 0.65);
    letter-spacing: 0.2px;
}

.supporter-privacy a,
.supporter-roadmap a {
    color: rgba(185, 234, 255, 0.96);
}

.supporter-privacy a:hover,
.supporter-roadmap a:hover {
    color: rgba(236, 250, 255, 0.98);
}

/* --- Claiming state --- */
.supporter-claim-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: rgba(229, 236, 242, 0.88);
    padding: 4px 0;
}

.supporter-claim-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(51, 242, 194, 0.25);
    border-top-color: var(--ui-accent);
    border-radius: 50%;
    animation: supporterSpin 0.8s linear infinite;
}

@keyframes supporterSpin {
    to { transform: rotate(360deg); }
}

.supporter-claim-note {
    font-size: 10px;
    line-height: 1.5;
    color: rgba(194, 208, 224, 0.82);
}

/* --- Active state --- */
.supporter-state--active {
    padding: 2px 0;
}

.supporter-member-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    text-align: center;
    padding: 8px 6px 4px;
}

.supporter-member-badge-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.supporter-member-badge,
.supporter-member-plan {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.35px;
    text-transform: uppercase;
}

.supporter-member-badge {
    color: rgba(216, 255, 248, 0.98);
    background: rgba(51, 242, 194, 0.12);
    border: 1px solid rgba(51, 242, 194, 0.32);
}

.supporter-member-plan {
    color: rgba(255, 237, 203, 0.96);
    background: rgba(255, 200, 120, 0.11);
    border: 1px solid rgba(255, 200, 120, 0.28);
}

.supporter-confirmed-icon-shell {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(51, 242, 194, 0.2), rgba(51, 242, 194, 0.05) 58%, transparent 72%),
        rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(51, 242, 194, 0.22);
}

.supporter-confirmed-icon {
    font-size: 24px;
    color: var(--ui-accent);
    line-height: 1;
    filter: drop-shadow(0 0 14px rgba(51, 242, 194, 0.32));
}

.supporter-confirmed-text {
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
    color: #f6fbff;
}

.supporter-confirmed-note {
    font-size: 11px;
    line-height: 1.6;
    color: rgba(216, 227, 238, 0.86);
    max-width: 34ch;
}

.supporter-member-meta {
    font-size: 10px;
    line-height: 1.5;
    color: rgba(178, 194, 210, 0.8);
    word-break: break-word;
}

.supporter-member-perks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.supporter-member-perks span {
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 10px;
    color: rgba(224, 244, 255, 0.92);
    background: rgba(120, 200, 255, 0.08);
    border: 1px solid rgba(120, 200, 255, 0.18);
}

/* --- Failed state --- */
.supporter-fail-title {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 200, 120, 0.95);
}

.supporter-fail-body {
    font-size: 11px;
    line-height: 1.5;
    color: var(--text-soft);
}

.supporter-retry-btn {
    background: rgba(255, 200, 120, 0.12);
    border: 1px solid rgba(255, 200, 120, 0.45);
    color: rgba(255, 230, 190, 0.95);
    font-family: var(--ui-font);
    font-size: 11px;
    font-weight: 600;
    border-radius: 999px;
    padding: 6px 14px;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
    align-self: flex-start;
}

.supporter-retry-btn:hover {
    border-color: rgba(255, 200, 120, 0.85);
    box-shadow: 0 0 10px rgba(255, 200, 120, 0.3);
}

.supporter-fallback {
    font-size: 10px;
    line-height: 1.5;
    color: var(--text-soft);
}

.supporter-fallback a {
    color: var(--ui-accent);
    text-decoration: none;
}

.supporter-fallback a:hover {
    text-decoration: underline;
}

/* --- Upgrade popover --- */
.supporter-popover {
    position: fixed;
    z-index: calc(var(--z-clock-hud) + 5);
    background: linear-gradient(160deg, rgba(12, 18, 28, 0.96), rgba(6, 10, 18, 0.94));
    border: 1px solid rgba(51, 242, 194, 0.35);
    border-radius: 10px;
    padding: 12px 14px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), 0 0 12px rgba(51, 242, 194, 0.1);
    backdrop-filter: blur(14px);
    font-family: var(--ui-font);
    max-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.supporter-popover.is-hidden {
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
}

.supporter-popover-arrow {
    position: absolute;
    top: -6px;
    left: 24px;
    width: 12px;
    height: 12px;
    background: rgba(12, 18, 28, 0.96);
    border-left: 1px solid rgba(51, 242, 194, 0.35);
    border-top: 1px solid rgba(51, 242, 194, 0.35);
    transform: rotate(45deg);
}

.supporter-popover-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
}

.supporter-popover-body {
    font-size: 11px;
    line-height: 1.5;
    color: var(--text-soft);
}

.supporter-popover-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(51, 242, 194, 0.12);
    border: 1px solid rgba(51, 242, 194, 0.5);
    color: var(--ui-accent);
    font-family: var(--ui-font);
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    padding: 6px 14px;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-decoration: none;
    text-align: center;
}

.supporter-popover-cta:hover {
    border-color: var(--ui-accent);
    box-shadow: 0 0 12px rgba(51, 242, 194, 0.25);
}

.supporter-popover-cta.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
}

.supporter-popover-dismiss {
    background: none;
    border: none;
    color: var(--text-soft);
    font-family: var(--ui-font);
    font-size: 10px;
    cursor: pointer;
    padding: 0;
    text-align: center;
    transition: color 0.2s ease;
}

.supporter-popover-dismiss:hover {
    color: var(--text-muted);
}

/* --- Supporter toast --- */
.supporter-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: calc(var(--z-loading) - 1);
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(8, 18, 28, 0.94);
    border: 1px solid rgba(51, 242, 194, 0.45);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4), 0 0 14px rgba(51, 242, 194, 0.15);
    backdrop-filter: blur(12px);
    color: var(--ui-accent);
    font-family: var(--ui-font);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
    white-space: nowrap;
    max-width: min(92vw, 480px);
    text-align: center;
    opacity: 1;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

body.is-mobile .supporter-headline {
    font-size: 16px;
}

body.is-mobile .supporter-price-main {
    font-size: 20px;
}

.supporter-toast.is-hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(-12px);
    pointer-events: none;
}

/* --- Export button gating (shell classes for Codex to wire) --- */
.timeboard-export-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(160deg, rgba(18, 28, 45, 0.95), rgba(8, 12, 20, 0.95));
    border: 1px solid rgba(120, 190, 255, 0.35);
    color: var(--text-primary);
    font-family: var(--ui-font);
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.timeboard-export-btn:hover {
    border-color: var(--ui-accent);
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

.timeboard-export-btn:active {
    transform: translateY(0);
}

.timeboard-export-btn.is-disabled,
.timeboard-export-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.timeboard-export-btn .export-lock {
    font-size: 9px;
    opacity: 0.55;
}

/* When supporter is active, hide the lock hint */
.supporter-unlocked .timeboard-export-btn .export-lock {
    display: none;
}

/* Copied confirmation state */
.timeboard-export-btn.is-copied {
    border-color: var(--ui-accent);
    color: var(--ui-accent);
}

.panel-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--ui-accent);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 6px 10px;
    border-radius: var(--radius-md);
    background: rgba(6, 10, 18, 0.7);
    border: 1px solid rgba(120, 190, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-title span {
    flex: 1 1 auto;
}

.panel-anchored .panel-title {
    cursor: default;
}

.panel-close {
    border: none;
    background: rgba(8, 12, 20, 0.75);
    color: var(--text-muted);
    border-radius: 8px;
    padding: 2px 6px;
    font-size: 12px;
    cursor: pointer;
    display: none;
}

body.is-mobile .panel-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border-radius: 999px;
    background: rgba(120, 20, 24, 0.92);
    color: rgba(255, 240, 240, 0.95);
    border: 1px solid rgba(255, 90, 90, 0.8);
    box-shadow: 0 0 10px rgba(255, 90, 90, 0.35);
    font-weight: 700;
    margin-left: auto;
}

.panel-name {
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 6px;
}

.panel-time {
    font-size: 16px;
    font-family: var(--mono-font);
    color: var(--ui-accent);
    margin-bottom: 4px;
    font-variant-numeric: tabular-nums;
}

.panel-date {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.panel-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    margin-bottom: 6px;
    color: var(--text-muted);
    align-items: center;
}

.panel-row span:last-child {
    color: var(--text-primary);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.daylight-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    border: 1px solid transparent;
    min-width: 58px;
}

.daylight-badge.day {
    background: rgba(34, 242, 166, 0.15);
    color: var(--ui-accent);
    border-color: rgba(34, 242, 166, 0.35);
}

.daylight-badge.night {
    background: rgba(120, 140, 255, 0.15);
    color: #96b0ff;
    border-color: rgba(120, 140, 255, 0.35);
}

.daylight-badge.neutral {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-soft);
    border-color: rgba(255, 255, 255, 0.15);
}

.panel-actions {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.city-panel .panel-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
}

.panel-subtitle {
    margin-top: 10px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-soft);
    padding-top: 6px;
    border-top: 1px solid rgba(120, 190, 255, 0.18);
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.city-panel .chip-list {
    flex-direction: column;
}

.panel-divider {
    height: 1px;
    width: 100%;
    margin: 10px 0;
    background: linear-gradient(90deg, rgba(120, 190, 255, 0.0), rgba(120, 190, 255, 0.25), rgba(120, 190, 255, 0.0));
}

.panel-divider--selected {
    margin: 12px 0 6px;
}

.chip {
    border: 1px solid rgba(120, 190, 255, 0.28);
    background: rgba(6, 10, 18, 0.7);
    color: var(--text-primary);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.chip:hover {
    border-color: var(--ui-accent);
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

.chip.active {
    border-color: var(--ui-accent);
    color: var(--ui-accent);
}

.chip-pin {
    border-color: rgba(255, 59, 92, 0.55);
    color: #ff9aa8;
}

.chip-pin:hover {
    border-color: rgba(255, 59, 92, 0.85);
    box-shadow: 0 0 12px rgba(255, 59, 92, 0.35);
}

.chip-empty {
    font-size: 11px;
    color: var(--text-soft);
}

.panel-btn {
    flex: 1;
    background: linear-gradient(160deg, rgba(18, 28, 45, 0.95), rgba(8, 12, 20, 0.95));
    color: var(--text-primary);
    border: 1px solid rgba(120, 190, 255, 0.35);
    padding: 8px 10px;
    border-radius: var(--radius-md);
    font-size: 12px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.panel-btn:hover {
    border-color: var(--ui-accent);
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

.panel-btn:active {
    transform: translateY(0);
}

.panel-btn--quiet {
    background: rgba(8, 12, 20, 0.58);
    border-color: rgba(120, 190, 255, 0.22);
    box-shadow: none;
}

.panel-btn--quiet:hover {
    box-shadow: none;
}

.timeboard-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    margin: 8px 0 10px;
}

.city-panel .timeboard {
    position: static;
    inset: auto;
    z-index: auto;
    background: none;
    color: inherit;
    padding: 0;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    min-width: 0;
    width: auto;
    max-width: none;
    max-height: none;
    backdrop-filter: none;
    transition: none;
    resize: none;
    overflow: visible;
    flex: 0 0 auto;
}

.city-panel .timeboard.timeboard--embedded {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-rows: auto minmax(170px, 320px);
    align-content: start;
}

.city-panel .timeboard.timeboard--embedded .timeboard-actions {
    margin: 0;
}

.city-panel .timeboard.timeboard--embedded .timeboard-list {
    min-height: 0;
    height: 100%;
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 6px;
}

.city-manager-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    border: 1px solid rgba(120, 190, 255, 0.2);
    background: rgba(8, 12, 20, 0.74);
    border-radius: var(--radius-md);
    padding: 6px;
}

.city-manager-item.active {
    border-color: rgba(82, 212, 232, 0.45);
    box-shadow: 0 0 14px rgba(82, 212, 232, 0.12);
}

.city-manager-item--saved {
    border-color: rgba(255, 209, 128, 0.22);
}

.city-manager-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
    border: none;
    background: none;
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    padding: 2px 4px;
}

.city-manager-label {
    width: 100%;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.city-manager-meta {
    width: 100%;
    font-size: 10px;
    color: var(--text-soft);
    font-family: var(--mono-font);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.city-manager-main:hover .city-manager-label {
    color: var(--ui-accent-strong);
}

.city-manager-remove {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid rgba(255, 120, 90, 0.32);
    background: rgba(34, 10, 14, 0.72);
    color: rgba(255, 190, 176, 0.92);
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.city-manager-remove:hover {
    border-color: rgba(255, 120, 90, 0.55);
    color: #fff0ea;
    box-shadow: 0 0 12px rgba(255, 120, 90, 0.18);
}

/* ===== TIMEBOARD ===== */
.timeboard {
    position: fixed;
    left: auto;
    right: 20px;
    bottom: 60px;
    z-index: var(--z-side-panel);
    background: var(--ui-panel);
    color: var(--text-primary);
    padding: 14px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(120, 190, 255, 0.3);
    box-shadow: var(--shadow-panel);
    min-width: 220px;
    width: clamp(220px, 22vw, 300px);
    max-width: 280px;
    max-height: calc(100vh - 80px);
    backdrop-filter: blur(16px);
    font-family: var(--ui-font);
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
    resize: both;
    overflow: auto;
}

.timeboard-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.timeboard-empty {
    font-size: 11px;
    color: var(--text-soft);
    border: 1px dashed rgba(120, 190, 255, 0.25);
    border-radius: var(--radius-md);
    padding: 10px 12px;
}

.timeboard-item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto auto;
    grid-template-rows: auto auto;
    gap: 3px 14px;
    padding: 11px 14px;
    border-radius: 12px;
    background: rgba(8, 12, 22, 0.72);
    border: 1px solid rgba(120, 190, 255, 0.18);
    color: var(--text-primary);
    cursor: pointer;
    transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast), color var(--transition-fast);
    text-align: left;
    touch-action: manipulation;
}

.timeboard-item::before {
    content: '';
    position: absolute;
    top: 7px;
    bottom: 7px;
    left: 0;
    width: 4px;
    border-radius: 0 999px 999px 0;
    background: transparent;
    opacity: 0;
    transition: opacity var(--transition-fast), background var(--transition-fast);
}

.timeboard-item:hover {
    border-color: var(--ui-accent);
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

.timeboard-item.active {
    background: rgba(51, 242, 194, 0.04);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.timeboard-item.active::before {
    background: linear-gradient(180deg, rgba(34, 242, 166, 0.92), rgba(34, 242, 166, 0.58));
    opacity: 1;
}

.timeboard-city {
    grid-column: 1;
    grid-row: 1;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-soft);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.01em;
}

.timeboard-meta {
    grid-column: 1;
    grid-row: 2;
    font-size: 10px;
    color: var(--text-soft);
    letter-spacing: 0.02em;
}

.timeboard-time {
    grid-column: 2;
    grid-row: 1 / span 2;
    font-family: var(--mono-font);
    font-size: 19px;
    font-weight: 600;
    color: var(--text-primary);
    align-self: center;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    text-shadow: 0 0 18px rgba(51, 242, 194, 0.22);
}

.timeboard-item[data-daynight="night"] {
    background: rgba(6, 10, 18, 0.7);
    border-color: rgba(100, 150, 200, 0.18);
}

.timeboard-remove {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
    justify-self: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid rgba(255, 120, 120, 0.4);
    background: rgba(40, 10, 16, 0.6);
    color: #ff9090;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.timeboard-remove:hover {
    border-color: rgba(255, 140, 140, 0.7);
    color: #ffd0d0;
    box-shadow: 0 0 12px rgba(255, 120, 120, 0.25);
}

.timeboard-badge {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 2px 6px;
    border-radius: 999px;
    border: 1px solid transparent;
}

.timeboard-badge.day {
    background: rgba(34, 242, 166, 0.15);
    color: var(--ui-accent);
    border-color: rgba(34, 242, 166, 0.35);
}

.timeboard-badge.night {
    background: rgba(120, 140, 255, 0.15);
    color: #96b0ff;
    border-color: rgba(120, 140, 255, 0.35);
}

/* DST countdown — spring forward (amber/warm) · fall back (cool blue) */
.timeboard-badge.dst-spring {
    background: rgba(255, 185, 50, 0.15);
    color: #ffc947;
    border-color: rgba(255, 185, 50, 0.4);
}

.timeboard-badge.dst-fall {
    background: rgba(140, 190, 255, 0.15);
    color: #90c0ff;
    border-color: rgba(140, 190, 255, 0.4);
}

/* ═════════════════════════════════════════════════════
   Visitor markers — shared board "You" indicators
   Shows the visitor which city is theirs across all widgets.
   ═════════════════════════════════════════════════════ */
.timeboard-badge.is-you {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
    font-weight: 700;
}

.timeboard-item.is-visitor::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.4));
    opacity: 1;
}

.meeting-answer-time.is-visitor {
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.06);
}

.clock-strip-item.is-visitor {
    border-color: rgba(255, 255, 255, 0.3);
    border-left: 3px solid rgba(255, 255, 255, 0.6);
}

/* ═══════════════════════════════════════════════════════
   DST Changes Calendar Panel  ·  v3.3.1
   Identity: amber (#ffc947) spring · blue (#90c0ff) fall
   ═══════════════════════════════════════════════════════ */

/* Edge toggle gets amber glow when DST panel is active */
#dstCalendarToggle.is-active {
    color: #ffc947;
    border-color: rgba(255, 185, 50, 0.65);
    background: linear-gradient(180deg, rgba(20, 13, 2, 0.98), rgba(14, 9, 2, 0.95));
    box-shadow: 0 0 20px rgba(255, 185, 50, 0.45), 0 18px 42px rgba(0, 0, 0, 0.5);
}

#dstCalendarToggle.is-active.edge-toggle--left {
    transform: translateX(0);
}

/* Panel shell */
.dst-calendar-panel {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(280px, 26vw, 360px);
    max-height: calc(100vh - 150px);
    z-index: var(--z-side-panel);
    background: var(--ui-panel);
    /* Amber border — the DST identity color */
    border: 1px solid rgba(255, 185, 50, 0.42);
    border-radius: var(--radius-lg);
    /* Layered shadow: depth + subtle amber halo */
    box-shadow:
        var(--shadow-panel),
        0 0 36px rgba(255, 185, 50, 0.07),
        inset 0 1px 0 rgba(255, 185, 50, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: var(--ui-font);
    transition: opacity 0.3s ease;
    resize: both;
    min-width: 240px;
    min-height: 120px;
}

/* Panel title — amber tint to match identity */
.dst-calendar-panel .panel-title {
    color: #ffc947;
    border-color: rgba(255, 185, 50, 0.22);
}

/* Legend row — two pill badges */
.dst-calendar-legend {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 9px;
    border-bottom: 1px solid rgba(120, 190, 255, 0.1);
    font-size: var(--text-2xs);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.dst-legend-spring,
.dst-legend-fall {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 9px;
    border-radius: 999px;
    border: 1px solid transparent;
}

.dst-legend-spring {
    color: #ffc947;
    background: rgba(255, 185, 50, 0.1);
    border-color: rgba(255, 185, 50, 0.3);
}

.dst-legend-fall {
    color: #90c0ff;
    background: rgba(140, 190, 255, 0.1);
    border-color: rgba(140, 190, 255, 0.3);
}

/* Scrollable list */
.dst-calendar-list {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0;
}

/* Amber-tinted scrollbar */
.dst-calendar-list::-webkit-scrollbar {
    width: 3px;
}

.dst-calendar-list::-webkit-scrollbar-track {
    background: transparent;
}

.dst-calendar-list::-webkit-scrollbar-thumb {
    background: rgba(255, 185, 50, 0.3);
    border-radius: 2px;
}

.dst-calendar-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 185, 50, 0.55);
}

/* ── NOW divider ── */
.dst-now-line {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    margin: 2px 0;
    background: rgba(16, 5, 5, 0.7);
    border-top: 1px solid rgba(255, 55, 55, 0.3);
    border-bottom: 1px solid rgba(255, 55, 55, 0.3);
    flex-shrink: 0;
}

.dst-now-line::before,
.dst-now-line::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 60, 60, 0.35);
}

.dst-now-label {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #ff5555;
    text-shadow: 0 0 10px rgba(255, 70, 70, 0.6);
    white-space: nowrap;
    flex-shrink: 0;
    background: rgba(255, 50, 50, 0.12);
    border: 1px solid rgba(255, 60, 60, 0.38);
    padding: 3px 9px;
    border-radius: 4px;
}

/* ── Wave entries ── */
.dst-wave {
    padding: 9px 14px 9px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    /* Direction accent bar on the left — applied via .dir-spring / .dir-fall */
    border-left: 3px solid transparent;
    transition: background 0.12s ease;
}

.dst-wave:hover {
    background: rgba(255, 255, 255, 0.018);
}

.dst-wave:last-child {
    border-bottom: none;
}

/* Direction-coded left accent bar (applied in JS via waveEl.className) */
.dst-wave.dir-spring {
    border-left-color: rgba(255, 185, 50, 0.48);
}

.dst-wave.dir-fall {
    border-left-color: rgba(140, 190, 255, 0.45);
}

/* Past waves: visually recede */
.dst-wave.is-past {
    opacity: 0.38;
}

.dst-wave.is-past:hover {
    opacity: 0.58;
    background: rgba(255, 255, 255, 0.015);
}

/* Header row: date · badge · zone count */
.dst-wave-header {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 4px;
}

.dst-wave-date {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--mono-font);
    letter-spacing: -0.2px;
    flex-shrink: 0;
}

.dst-wave-dir {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 2px 7px;
    border-radius: 999px;
    border: 1px solid transparent;
    flex-shrink: 0;
    text-transform: uppercase;
}

.dst-wave-dir.spring {
    background: rgba(255, 185, 50, 0.15);
    color: #ffc947;
    border-color: rgba(255, 185, 50, 0.4);
}

.dst-wave-dir.fall {
    background: rgba(140, 190, 255, 0.15);
    color: #90c0ff;
    border-color: rgba(140, 190, 255, 0.4);
}

.dst-wave-zone-count {
    font-size: 9px;
    color: var(--text-soft);
    margin-left: auto;
    flex-shrink: 0;
    letter-spacing: 0.2px;
}

/* Countries — dimmed text, 2-line clamp by default */
.dst-wave-countries {
    font-size: var(--text-xs);
    color: #8da4c0;
    line-height: 1.55;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.dst-wave-countries.is-expanded {
    display: block;
    -webkit-line-clamp: none;
}

/* Expand toggle — amber to match panel identity */
.dst-wave-expand {
    font-size: 9px;
    letter-spacing: 0.3px;
    color: rgba(255, 185, 50, 0.65);
    cursor: pointer;
    margin-top: 3px;
    display: inline-block;
    background: none;
    border: none;
    padding: 0;
    text-decoration: none;
    transition: color 0.15s ease;
    font-family: var(--ui-font);
}

.dst-wave-expand:hover {
    color: #ffc947;
}

/* Loading / empty state */
.dst-loading {
    padding: 36px 14px;
    text-align: center;
    font-size: var(--text-sm);
    color: var(--text-soft);
    font-style: italic;
    letter-spacing: 0.2px;
}

/* ── Window selector ── */
.dst-window-selector {
    display: flex;
    gap: 3px;
    padding: 4px 14px 8px;
}
.dst-window-btn {
    flex: 1;
    padding: 4px 0;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: rgba(255,255,255,0.5);
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.dst-window-btn:hover {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.75);
}
.dst-window-btn.is-active {
    background: rgba(255,185,50,0.18);
    border-color: rgba(255,185,50,0.45);
    color: #ffc947;
}

/* ── Wave toggle off-state ── */
.dst-wave { cursor: pointer; user-select: none; }
.dst-wave.is-off { opacity: 0.22; }
.dst-wave.is-off:hover { opacity: 0.42; }

/* ── Globe dot indicator ── */
.dst-globe-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    flex-shrink: 0;
    transition: background 0.12s, border-color 0.12s;
}
.dst-globe-dot.is-active { border-color: transparent; }
.dir-spring .dst-globe-dot.is-active { background: rgba(255,185,50,0.9); }
.dir-fall   .dst-globe-dot.is-active { background: rgba(120,184,255,0.9); }

/* ── Responsive / mobile ── */
body.is-mobile .dst-calendar-panel {
    left: 50%;
    transform: translateX(-50%);
    top: auto;
    bottom: calc(var(--safe-bottom) + var(--mobile-dock-height) + 14px);
    width: min(360px, calc(100vw - 24px));
    max-height: 58vh;
    resize: none;
}

body.is-mobile.mobile-inspector-open .dst-calendar-panel {
    display: none !important;
}

body.is-short .dst-calendar-panel {
    max-height: min(42vh, calc(100vh - var(--safe-top) - var(--safe-bottom) - var(--mobile-dock-height) - 16px));
}

@media (max-width: 480px) {
    .dst-calendar-panel {
        left: 10px;
        right: 10px;
        width: auto;
        max-width: calc(100vw - 20px);
    }
}

/* ===== CLOCK DISPLAY ===== */
.clock-display {
    position: fixed;
    top: var(--clock-hud-top);
    right: var(--clock-hud-right);
    left: auto;
    transform: none;
    z-index: var(--z-clock-hud);
    background: var(--ui-bg);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: 12px;
    text-align: left;
    border: 1px solid var(--ui-border);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
    font-family: var(--ui-font);
    font-weight: 600;
    min-width: 200px;
    transition: opacity 0.3s ease;
    pointer-events: auto;
    user-select: none;
    cursor: grab;
    touch-action: none;
}

.clock-handle {
    font-size: 10px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--text-soft);
    margin-bottom: 6px;
}

.clock-handle span {
    margin-left: 6px;
    color: var(--ui-accent);
    font-weight: 600;
}

.clock-display.dragging {
    cursor: grabbing;
    box-shadow: var(--shadow-strong);
}

.clock-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.clock-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
}

.clock-time {
    font-size: 16px;
    font-family: var(--mono-font);
    color: var(--ui-accent);
    text-shadow: 0 0 8px rgba(34, 242, 166, 0.35);
}

.clock-date {
    font-size: 11px;
    color: var(--text-soft);
}

/* ===== STATUS BAR ===== */
.status-bar {
    position: fixed;
    bottom: 10px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(920px, 94vw);
    height: 34px;
    background: var(--ui-bg-strong);
    border: 1px solid rgba(120, 190, 255, 0.25);
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    font-size: 12px;
    font-family: var(--ui-font);
    z-index: var(--z-status-bar);
    color: var(--text-primary);
    box-shadow: 0 12px 24px rgba(0,0,0,0.35);
    backdrop-filter: blur(16px);
    transition: opacity 0.3s ease;
}

.status-left {
    flex: 1;
    font-weight: 600;
}

.status-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--mono-font);
    font-weight: 600;
    color: var(--ui-accent);
}

.status-sep {
    opacity: 0.45;
    font-weight: 500;
}

.status-sep.is-hidden {
    display: none;
}

.status-world-clock {
    font-family: var(--mono-font);
    font-weight: 500;
    color: var(--text-primary);
    opacity: 0.92;
    max-width: 420px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-world-clock.is-empty {
    display: none;
}

.status-right {
    flex: 1;
    text-align: right;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.status-dev {
    display: none;
    font-family: var(--mono-font);
    font-size: 11px;
    opacity: 0.75;
    letter-spacing: 0.2px;
}

.dev-mode .status-dev {
    display: inline;
}

.status-dev.is-visible {
    display: inline;
}

.status-authority {
    font-family: var(--mono-font);
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 6px;
    border: 1px solid rgba(255, 196, 87, 0.55);
    background: rgba(46, 30, 5, 0.65);
    color: rgba(255, 220, 150, 0.95);
}

.status-bar.is-time-syncing #timeAuthorityBadge {
    border-color: rgba(122, 206, 255, 0.55);
    background: rgba(8, 34, 58, 0.72);
    color: rgba(220, 243, 255, 0.98);
}

.status-authority.is-hidden {
    display: none;
}

.status-shared {
    font-family: var(--mono-font);
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 999px;
    border: 1px solid rgba(34, 242, 166, 0.42);
    background: rgba(6, 36, 24, 0.62);
    color: rgba(164, 255, 214, 0.96);
    letter-spacing: 0.2px;
}

.status-shared.is-hidden {
    display: none;
}

.status-planner {
    font-family: var(--mono-font);
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 999px;
    letter-spacing: 0.2px;
}

.status-planner.is-hidden {
    display: none;
}

.status-planner.is-overlap {
    border: 1px solid rgba(82, 212, 232, 0.4);
    background: rgba(8, 32, 38, 0.6);
    color: rgba(164, 238, 255, 0.94);
}

.status-planner.is-decided {
    border: 1px solid rgba(255, 195, 80, 0.48);
    background: rgba(42, 24, 8, 0.7);
    color: rgba(255, 220, 150, 0.96);
}

.status-planner.is-invalid {
    border: 1px solid rgba(255, 140, 105, 0.45);
    background: rgba(42, 14, 8, 0.6);
    color: rgba(255, 190, 170, 0.94);
}

.status-planner.is-no-overlap {
    border: 1px solid rgba(180, 180, 195, 0.25);
    background: rgba(18, 18, 24, 0.5);
    color: rgba(180, 180, 195, 0.8);
}

/* ===== PLANNER DECISION BANNER ===== */

.planner-decision-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin: 0 0 10px 0;
    border-radius: 10px;
    font-family: var(--mono-font);
    font-size: 12px;
    line-height: 1.4;
    transition: opacity 0.25s ease, background 0.25s ease;
}

.planner-decision-banner.is-hidden {
    display: none;
}

.planner-decision-icon {
    flex-shrink: 0;
    font-size: 14px;
}

.planner-decision-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.planner-decision-text {
    display: block;
    flex: 1;
    min-width: 0;
}

.planner-decision-hint {
    display: block;
    font-size: 11px;
    line-height: 1.35;
    opacity: 0.82;
}

.planner-decision-action {
    flex-shrink: 0;
    font-family: var(--mono-font);
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid rgba(120, 190, 255, 0.3);
    background: rgba(10, 18, 30, 0.5);
    color: rgba(200, 230, 255, 0.9);
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.planner-decision-action:hover {
    border-color: rgba(120, 190, 255, 0.6);
}

.planner-decision-action.is-hidden {
    display: none;
}

/* Banner state variants */
.planner-decision-banner.is-state-overlap {
    border: 1px solid rgba(82, 212, 232, 0.2);
    background: rgba(8, 32, 38, 0.45);
    color: rgba(164, 238, 255, 0.9);
}

.planner-decision-banner.is-state-decided {
    border: 1px solid rgba(118, 234, 255, 0.3);
    background: rgba(12, 42, 52, 0.5);
    color: rgba(214, 248, 255, 0.92);
}

.planner-decision-banner.is-state-invalid {
    border: 1px solid rgba(255, 140, 105, 0.3);
    background: rgba(42, 14, 8, 0.4);
    color: rgba(255, 190, 170, 0.9);
}

.planner-decision-banner.is-state-no-overlap {
    border: 1px solid rgba(180, 180, 195, 0.15);
    background: rgba(18, 18, 24, 0.4);
    color: rgba(180, 180, 195, 0.75);
}

.planner-decision-banner.is-state-shared-decision {
    border: 1px solid rgba(34, 242, 166, 0.25);
    background: rgba(6, 36, 24, 0.45);
    color: rgba(164, 255, 214, 0.92);
}

.planner-decision-banner.is-state-shared {
    border: 1px solid rgba(34, 242, 166, 0.18);
    background: rgba(6, 36, 24, 0.35);
    color: rgba(164, 255, 214, 0.82);
}

.planner-share-preview {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 14px;
    margin: 0 0 10px 0;
    border-radius: 12px;
    border: 1px solid rgba(120, 190, 255, 0.22);
    background:
        radial-gradient(120% 160% at 0% 0%, rgba(80, 180, 255, 0.12), transparent 52%),
        linear-gradient(160deg, rgba(12, 20, 34, 0.95), rgba(8, 12, 20, 0.86));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.planner-share-preview.is-hidden {
    display: none;
}

.planner-share-preview-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.planner-share-preview-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.planner-share-preview-kicker {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
}

.planner-share-preview-title {
    font-size: 13px;
    color: var(--text-bright);
}

.planner-share-preview-hint {
    font-size: 11px;
    line-height: 1.4;
    color: var(--text-soft);
}

.planner-share-preview-body {
    margin: 0;
    padding: 10px 12px;
    white-space: pre-wrap;
    word-break: break-word;
    border-radius: 10px;
    border: 1px solid rgba(120, 190, 255, 0.16);
    background: rgba(6, 10, 18, 0.62);
    color: rgba(214, 236, 255, 0.94);
    font-family: var(--mono-font);
    font-size: 11px;
    line-height: 1.45;
    max-height: 220px;
    overflow: auto;
}

.planner-share-preview-close {
    flex-shrink: 0;
    border: 1px solid rgba(120, 190, 255, 0.24);
    background: rgba(10, 18, 30, 0.5);
    color: rgba(200, 230, 255, 0.88);
    border-radius: 999px;
    padding: 6px 10px;
    font-family: var(--mono-font);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    cursor: pointer;
}

.planner-share-preview-close:hover {
    border-color: rgba(120, 190, 255, 0.6);
    color: var(--ui-accent);
    box-shadow: var(--shadow-glow);
}

body.is-mobile .planner-decision-banner {
    align-items: flex-start;
    gap: 10px;
}

body.is-mobile .planner-decision-copy {
    gap: 3px;
}

body.is-mobile .planner-decision-hint {
    font-size: 10px;
}

body.is-mobile .planner-share-preview-head {
    flex-direction: column;
    align-items: stretch;
}

body.is-mobile .planner-share-preview-close {
    align-self: flex-start;
}

body.is-mobile .meeting-answer-top {
    flex-direction: column;
}

body.is-mobile .meeting-answer-actions {
    width: 100%;
}

body.is-mobile .meeting-answer-button {
    width: 100%;
    justify-content: center;
}

body.is-mobile .meeting-share-button {
    min-height: 30px;
    padding: 0 10px;
}


/* Slot card decision states */
.slot-card.is-selected.is-invalid {
    border-color: rgba(255, 140, 105, 0.45);
    background: rgba(42, 14, 8, 0.55);
}

.slot-card.is-selected.is-invalid .slot-time {
    color: rgba(255, 180, 160, 0.85);
    text-decoration: line-through;
    text-decoration-color: rgba(255, 140, 105, 0.4);
}

.slot-card.is-selected.is-invalid .slot-copy {
    border-color: rgba(255, 140, 105, 0.3);
    color: rgba(255, 180, 160, 0.85);
}

.status-rate {
    font-family: var(--mono-font);
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 6px;
    border: 1px solid rgba(120, 190, 255, 0.25);
    background: rgba(10, 18, 30, 0.6);
    color: rgba(220, 235, 255, 0.9);
}

.status-rate.is-hidden {
    display: none;
}

.status-rate.is-warning {
    border-color: rgba(255, 196, 87, 0.6);
    color: rgba(255, 209, 128, 0.95);
}

.status-rate.is-blocked {
    border-color: rgba(255, 91, 91, 0.7);
    color: rgba(255, 120, 120, 0.98);
}

body.is-mobile .edge-toggle-stack,
body.is-mobile .clock-toggle-handle,
body.is-mobile .account-launcher,
body.is-mobile .search-bar,
body.is-mobile .side-menu-bar,
body.is-mobile .dev-toggle {
    display: none;
}

body.is-mobile .search-toggle-handle {
    top: calc(var(--safe-top) + 12px);
    left: 12px;
}

body.is-mobile .mobile-dock {
    display: flex;
}

body.is-mobile .mobile-sheet {
    display: flex;
    flex-direction: column;
}

body.is-mobile .shared-visitor-sheet {
    align-items: stretch;
    justify-content: flex-end;
    padding: max(12px, var(--safe-top)) 0 0;
    background: rgba(3, 7, 14, 0.68);
    overscroll-behavior: contain;
}

body.is-mobile .shared-visitor-sheet[data-visitor-mode="onboarding"] {
    align-items: flex-end;
    justify-content: stretch;
    padding:
        0
        calc(var(--safe-right) + 10px)
        calc(var(--safe-bottom) + var(--mobile-dock-height) + 116px)
        calc(var(--safe-left) + 10px);
    background: none;
    backdrop-filter: none;
}

body.is-mobile .auth-sheet {
    align-items: stretch;
    justify-content: flex-end;
    padding: max(12px, var(--safe-top)) 0 0;
    background: rgba(3, 7, 14, 0.68);
    overscroll-behavior: contain;
}

body.is-mobile .make-this-yours-prompt {
    bottom: calc(var(--safe-bottom) + var(--mobile-dock-height) + 128px);
    width: calc(100vw - 20px);
    padding:
        16px
        calc(var(--safe-right) + 14px)
        calc(var(--safe-bottom) + 16px)
        calc(var(--safe-left) + 14px);
    border-radius: 22px;
    grid-template-columns: 1fr;
    align-items: stretch;
}

body.is-mobile .make-this-yours-prompt-title {
    font-size: 24px;
}

body.is-mobile .make-this-yours-prompt-benefits {
    gap: 6px;
}

body.is-mobile .make-this-yours-prompt-collapsed-actions {
    flex-direction: column;
    align-items: stretch;
}

body.is-mobile .make-this-yours-prompt-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
}

body.is-mobile .make-this-yours-prompt-open,
body.is-mobile .make-this-yours-prompt-primary,
body.is-mobile .make-this-yours-prompt-pro {
    width: 100%;
}

body.is-mobile .make-this-yours-prompt-footer {
    justify-content: flex-start;
}

body.is-mobile .make-this-yours-prompt-close {
    top: 12px;
    right: calc(var(--safe-right) + 12px);
}

body.is-mobile .shared-visitor-sheet-card {
    width: 100%;
    max-height: min(72vh, calc(var(--viewport-height) - var(--safe-top) - 12px));
    border-radius: 22px 22px 0 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding:
        16px
        calc(var(--safe-right) + 16px)
        calc(var(--safe-bottom) + 16px)
        calc(var(--safe-left) + 16px);
}

body.is-mobile .shared-visitor-sheet-footer {
    gap: 10px;
}

body.is-mobile .shared-visitor-sheet-account {
    width: 100%;
    align-self: stretch;
}

body.is-mobile .auth-sheet-card {
    width: 100%;
    max-height: min(76vh, calc(var(--viewport-height) - var(--safe-top) - 12px));
    border-radius: 22px 22px 0 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding:
        16px
        calc(var(--safe-right) + 16px)
        calc(var(--safe-bottom) + 16px)
        calc(var(--safe-left) + 16px);
}

body.is-mobile .auth-link-sheet-card {
    width: 100%;
    padding:
        20px
        calc(var(--safe-right) + 16px)
        calc(var(--safe-bottom) + 18px)
        calc(var(--safe-left) + 16px);
}

body.is-mobile .auth-link-title {
    font-size: 26px;
}

body.is-mobile .auth-sheet-input--code {
    font-size: 24px;
    letter-spacing: 6px;
}

body.is-mobile .auth-sheet-actions,
body.is-mobile .account-sheet-actions,
body.is-mobile .auth-link-actions {
    flex-direction: column;
    align-items: stretch;
}

body.is-mobile .auth-sheet-submit,
body.is-mobile .auth-link-secondary {
    width: 100%;
}

body.is-mobile .account-sheet-note,
body.is-mobile .shared-visitor-sheet-account-hint {
    font-size: 12px;
}

body.is-mobile.mobile-panel-compact .mobile-sheet {
    max-height: min(52vh, calc(var(--viewport-height) - var(--safe-top) - var(--safe-bottom) - var(--mobile-dock-height) - 64px));
}

body.is-mobile.mobile-panel-open #globeViz,
body.is-mobile.mobile-inspector-open #globeViz,
body.is-mobile.mobile-menu-open #globeViz {
    transform: translateY(-12vh);
}

body.is-mobile #globeViz {
    transform: translateY(0);
}

body.is-mobile .mobile-tap-hint--floating {
    display: inline-flex;
}

body.is-mobile .status-bar {
    bottom: calc(var(--safe-bottom) + var(--mobile-dock-height) + 8px);
    width: min(520px, 92vw);
    height: 30px;
    padding: 0 12px;
}

body.is-mobile.mobile-inspector-open .status-bar {
    opacity: 0;
    pointer-events: none;
}

body.is-mobile .status-left,
body.is-mobile #globeStatus,
body.is-mobile #serverLookupStatus,
body.is-mobile #timeAuthorityStatus,
body.is-mobile #timeAuthorityBadge,
body.is-mobile .status-world-clock,
body.is-mobile .status-sep {
    display: none;
}

body.is-mobile .status-center {
    justify-content: flex-start;
    gap: 0;
}

body.is-mobile .status-right {
    flex: 0 0 auto;
}

body.is-mobile .status-bar.is-time-syncing #timeAuthorityBadge {
    display: inline-flex;
}

body.is-mobile .draggable-panel {
    resize: none;
    touch-action: pan-y;
    cursor: default;
}

body.is-mobile .panel-grip,
body.is-mobile .panel-title,
body.is-mobile .monitor-header {
    cursor: default;
}

body.is-mobile .controls-panel,
body.is-mobile .city-panel,
body.is-mobile .location-panel,
body.is-mobile .controls-info-panel,
body.is-mobile .timeboard:not(.timeboard--embedded),
body.is-mobile .about-panel {
    left: 50%;
    right: auto;
    top: auto;
    bottom: calc(var(--safe-bottom) + var(--mobile-dock-height) + 14px);
    transform: translateX(-50%);
    width: min(560px, 94vw);
    max-width: none;
    max-height: min(48vh, calc(var(--viewport-height) - var(--safe-top) - var(--safe-bottom) - var(--mobile-dock-height) - 32px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    min-height: 0;
}

body.is-mobile.mobile-inspector-open .controls-panel,
body.is-mobile.mobile-inspector-open .city-panel,
body.is-mobile.mobile-inspector-open .location-panel,
body.is-mobile.mobile-inspector-open .controls-info-panel,
body.is-mobile.mobile-inspector-open .timeboard:not(.timeboard--embedded),
body.is-mobile.mobile-inspector-open .about-panel {
    display: none !important;
}

body.is-mobile.mobile-panel-open .status-bar {
    opacity: 0;
    pointer-events: none;
}

body.is-mobile.mobile-panel-open .clock-display,
body.is-mobile.mobile-panel-open .search-toggle-handle {
    opacity: 0;
    pointer-events: none;
}

body.is-mobile .controls-panel,
body.is-mobile .controls-info-panel,
body.is-mobile .about-panel {
    height: auto;
}

body.is-mobile .city-panel,
body.is-mobile .location-panel,
body.is-mobile .timeboard:not(.timeboard--embedded) {
    height: min(48vh, calc(var(--viewport-height) - var(--safe-top) - var(--safe-bottom) - var(--mobile-dock-height) - 32px));
}

body.is-mobile .city-panel,
body.is-mobile .location-panel {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 200px;
}

body.is-mobile .city-panel {
    top: calc(var(--safe-top) + 14px);
    bottom: calc(var(--safe-bottom) + var(--mobile-dock-height) + 14px);
    left: 12px;
    right: 12px;
    z-index: calc(var(--z-status-bar) + 2);
    transform: none;
    width: auto;
    max-width: none;
    max-height: none;
    height: auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 12px 12px max(12px, var(--safe-bottom));
}

body.is-mobile .city-panel .panel-title {
    flex: 0 0 auto;
}

body.is-mobile .city-panel-focus {
    flex: 0 1 auto;
    min-height: 0;
    max-height: min(24vh, 190px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 2px;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(120, 190, 255, 0.16);
    -webkit-overflow-scrolling: touch;
}

body.is-mobile .city-panel-focus .city-panel-summary,
body.is-mobile .city-panel-focus .panel-inline-notice {
    margin-right: 2px;
}

body.is-mobile .city-panel-focus .city-panel-summary {
    display: none;
}

body.is-mobile .city-panel .panel-name {
    font-size: 16px;
    margin-bottom: 4px;
}

body.is-mobile .city-panel .panel-time {
    font-size: 15px;
}

body.is-mobile .city-panel .panel-date {
    margin-bottom: 6px;
}

body.is-mobile .city-panel .panel-row {
    font-size: 11px;
    margin-bottom: 5px;
}

body.is-mobile .city-panel .panel-row--secondary {
    color: var(--text-soft);
    opacity: 0.88;
}

body.is-mobile .city-panel-manager {
    flex: 0 0 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: visible;
}

body.is-mobile .city-panel .panel-subtitle {
    margin-top: 0;
    flex: 0 0 auto;
}

body.is-mobile .city-panel .panel-actions {
    order: 13;
    margin-top: 12px;
    grid-template-columns: 1fr;
    flex: 0 0 auto;
    padding-top: 10px;
    border-top: 1px solid rgba(120, 190, 255, 0.14);
}

body.is-mobile .city-panel .panel-btn {
    min-height: 44px;
}

body.is-mobile .city-panel .timeboard-actions {
    grid-template-columns: 1fr;
    flex: 0 0 auto;
    gap: 10px;
}

body.is-mobile .city-panel .timeboard-actions > * {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    white-space: normal;
    text-align: center;
}

body.is-mobile .city-panel .timeboard {
    flex: 1 1 auto;
    min-height: 0;
    position: static;
    inset: auto;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: auto;
    max-width: none;
    height: auto;
    max-height: none;
    transform: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

body.is-mobile .city-panel .timeboard.timeboard--embedded {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-rows: auto minmax(170px, 42vh);
    align-content: start;
    overflow: visible;
}

body.is-mobile .city-panel .timeboard-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

body.is-mobile .city-panel .timeboard.timeboard--embedded .timeboard-list {
    flex: 0 0 auto;
    min-height: 170px;
    height: 100%;
    max-height: 42vh;
}

body.is-mobile .city-panel .timeboard-item {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "title remove"
        "meta remove"
        "time remove";
    gap: 4px 10px;
    padding: 10px 12px;
    align-items: start;
    min-height: 74px;
}

body.is-mobile .city-panel .timeboard-city {
    grid-area: title;
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.is-mobile .city-panel .timeboard-meta {
    grid-area: meta;
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.is-mobile .city-panel .timeboard-time {
    grid-area: time;
    display: block;
    justify-self: start;
    align-self: start;
    font-size: 15px;
}

body.is-mobile .city-panel .timeboard-remove {
    grid-area: remove;
    align-self: center;
    width: 30px;
    height: 30px;
    font-size: 16px;
}

body.is-mobile .city-panel .timeboard-empty {
    min-height: 52px;
    display: flex;
    align-items: center;
}

body.is-mobile.mobile-panel-compact .city-panel,
body.is-mobile.mobile-panel-compact .location-panel,
body.is-mobile.mobile-panel-compact .timeboard {
    max-height: min(40vh, calc(var(--viewport-height) - var(--safe-top) - var(--safe-bottom) - var(--mobile-dock-height) - 64px));
}

body.is-mobile.mobile-panel-compact .timeboard {
    height: min(40vh, calc(var(--viewport-height) - var(--safe-top) - var(--safe-bottom) - var(--mobile-dock-height) - 64px));
}

body.is-mobile .dashboard-panel {
    inset: 0;
    transform: none;
    width: auto;
    height: auto;
    max-width: none;
    padding: calc(var(--safe-top) + 12px) calc(var(--safe-right) + 14px) calc(var(--safe-bottom) + 14px) calc(var(--safe-left) + 14px);
    overflow: hidden;
    border-radius: 0;
}

body.is-mobile .dashboard-tools {
    display: none;
}

body.is-mobile .dashboard-header {
    gap: 10px;
    align-items: flex-start;
}

body.is-mobile .dashboard-title-row {
    gap: 2px;
    min-width: 0;
}

body.is-mobile .dashboard-title {
    font-size: var(--text-xl);
}

body.is-mobile .dashboard-subtitle {
    font-size: var(--text-sm);
}

body.is-mobile .dashboard-tabs {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px;
    gap: 4px;
    scrollbar-width: none;
}

body.is-mobile .dashboard-tabs::-webkit-scrollbar {
    display: none;
}

body.is-mobile .dashboard-tab {
    min-height: 44px;
    padding: 10px 14px;
    flex: 0 0 auto;
}

body.is-mobile .dashboard-canvas {
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 0;
    border: none;
    background: transparent;
    cursor: default;
    touch-action: auto;
}

body.is-mobile .dashboard-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1 1 auto;
    overflow: hidden;
    gap: 12px;
}

body.is-mobile .dashboard-rail {
    order: 1;
    align-self: stretch;
    flex: 0 0 auto;
    max-height: none;
    overflow: hidden;
    gap: 8px;
    padding: 12px;
}

body.is-mobile .dashboard-content {
    order: 2;
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

body.is-mobile .dashboard-rail-section,
body.is-mobile .dashboard-pane--wide {
    min-height: 0;
}

body.is-mobile .dashboard-workspace-summary {
    display: none;
}

body.is-mobile .dashboard-rail-heading {
    gap: 2px;
}

body.is-mobile .dashboard-locations {
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    flex-direction: row;
    padding-bottom: 2px;
    padding-right: 0;
    scrollbar-width: none;
}

body.is-mobile .dashboard-locations::-webkit-scrollbar {
    display: none;
}

body.is-mobile .dashboard-location {
    flex: 0 0 min(220px, 62vw);
    min-width: min(220px, 62vw);
}

body.is-mobile .dashboard-rail-footer {
    display: none;
}

body.is-mobile .dashboard-pane,
body.is-mobile .dashboard-pane--wide,
body.is-mobile .dashboard-pane--scroll,
body.is-mobile .astro-dashboard,
body.is-mobile .meeting-dashboard,
body.is-mobile .astro-grid {
    height: auto;
    min-height: 0;
}

body.is-mobile .dashboard-pane--scroll {
    overflow: visible;
    padding-right: 0;
}

body.is-mobile .dashboard-workspace {
    width: auto !important;
    height: auto !important;
    transform: none !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

body.is-mobile .dashboard-workspace::before,
body.is-mobile .dashboard-canvas::after,
body.is-mobile .dashboard-drop-placeholder,
body.is-mobile .dashboard-drop-guides,
body.is-mobile .dashboard-drag-proxy {
    display: none !important;
}

body.is-mobile .dashboard-window {
    position: relative;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: none;
    transform: none !important;
}

body.is-mobile .widget-titlebar {
    cursor: default;
}

body.is-mobile .clock-display {
    top: calc(var(--safe-top) + 10px);
    right: calc(var(--safe-right) + 10px);
}

body.is-mobile .clock-display {
    touch-action: pan-y;
    cursor: default;
}

body.is-mobile .widget-handle {
    touch-action: pan-y;
}

body.is-mobile.mobile-panel-open #globeViz,
body.is-mobile.mobile-inspector-open #globeViz,
body.is-mobile.mobile-menu-open #globeViz {
    touch-action: pan-y;
}

body.is-mobile:not(.mobile-panel-open):not(.mobile-inspector-open):not(.mobile-menu-open) #globeViz {
    touch-action: none;
}

body.is-short .mobile-dock {
    height: 52px;
}

body.is-short {
    --mobile-dock-height: 52px;
}

body.is-short .mobile-sheet {
    max-height: min(50vh, calc(var(--viewport-height) - var(--safe-top) - var(--safe-bottom) - var(--mobile-dock-height) - 16px));
}

body.is-short .mobile-inspector {
    bottom: calc(var(--safe-bottom) + var(--mobile-dock-height) + 18px);
}

body.is-short.mobile-panel-compact .mobile-sheet {
    max-height: min(46vh, calc(var(--viewport-height) - var(--safe-top) - var(--safe-bottom) - var(--mobile-dock-height) - 80px));
}

body.is-short .controls-panel,
body.is-short .city-panel,
body.is-short .location-panel,
body.is-short .controls-info-panel,
body.is-short .timeboard:not(.timeboard--embedded),
body.is-short .about-panel {
    max-height: min(42vh, calc(var(--viewport-height) - var(--safe-top) - var(--safe-bottom) - var(--mobile-dock-height) - 16px));
}

body.is-short .controls-panel,
body.is-short .controls-info-panel,
body.is-short .about-panel {
    height: auto;
}

body.is-short .city-panel,
body.is-short .location-panel,
body.is-short .timeboard:not(.timeboard--embedded) {
    height: min(42vh, calc(var(--viewport-height) - var(--safe-top) - var(--safe-bottom) - var(--mobile-dock-height) - 16px));
}

body.is-short .city-panel,
body.is-short .location-panel {
    height: auto;
    min-height: 180px;
}

body.is-short .city-panel {
    top: calc(var(--safe-top) + 10px);
    bottom: calc(var(--safe-bottom) + var(--mobile-dock-height) + 10px);
    max-height: none;
    height: auto;
}

body.is-short.mobile-panel-compact .city-panel,
body.is-short.mobile-panel-compact .location-panel,
body.is-short.mobile-panel-compact .timeboard:not(.timeboard--embedded) {
    max-height: min(34vh, calc(var(--viewport-height) - var(--safe-top) - var(--safe-bottom) - var(--mobile-dock-height) - 80px));
}

body.is-short.mobile-panel-compact .timeboard:not(.timeboard--embedded) {
    height: min(34vh, calc(var(--viewport-height) - var(--safe-top) - var(--safe-bottom) - var(--mobile-dock-height) - 80px));
}

body.is-short .dashboard-subtitle {
    display: none;
}

body.is-short .dashboard-header {
    gap: 8px;
}

.performance-monitor .distance-value {
    color: #ff5b5b;
    font-family: var(--mono-font);
    font-weight: 700;
    letter-spacing: 0.6px;
    font-size: 13px;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(40, 8, 8, 0.6);
    border: 1px solid rgba(255, 91, 91, 0.45);
    text-shadow: 0 0 8px rgba(255, 91, 91, 0.6), 0 0 16px rgba(255, 91, 91, 0.35);
    animation: distancePulse 1.6s ease-in-out infinite;
}

@keyframes distancePulse {
    0% {
        box-shadow: 0 0 8px rgba(255, 91, 91, 0.3);
    }
    50% {
        box-shadow: 0 0 14px rgba(255, 91, 91, 0.65);
    }
    100% {
        box-shadow: 0 0 8px rgba(255, 91, 91, 0.3);
    }
}

/* ===== GLOBAL ANIMATION CONTROL ===== */
body.animations-paused .pulse,
body.animations-paused .glow {
    animation-play-state: paused !important;
}

body.settings-panel-hidden .controls-panel {
    opacity: 0;
    pointer-events: none;
}

body.stats-hidden .performance-monitor {
    opacity: 0;
    pointer-events: none;
}

.draggable-panel.panel-anim-active {
    transition: opacity var(--panel-anim-duration) ease, transform var(--panel-anim-duration) var(--panel-anim-ease);
    will-change: transform, opacity;
}

.draggable-panel.panel-anim-start-left,
.draggable-panel.panel-anim-end-left {
    opacity: 0;
    transform: translateX(-26px) scale(0.985);
    pointer-events: none;
}

.draggable-panel.panel-anim-start-right,
.draggable-panel.panel-anim-end-right {
    opacity: 0;
    transform: translateX(26px) scale(0.985);
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .pulse,
    .glow {
        animation: none !important;
    }

    .draggable-panel.panel-anim-active {
        transition: none !important;
    }

    .draggable-panel.panel-anim-start-left,
    .draggable-panel.panel-anim-end-left,
    .draggable-panel.panel-anim-start-right,
    .draggable-panel.panel-anim-end-right {
        transform: none !important;
        opacity: 1 !important;
    }
}


.hover-tooltip {
    position: fixed;
    left: 0;
    top: 0;
    z-index: calc(var(--z-clock-hud) + 1);
    pointer-events: none;
    background: linear-gradient(160deg, rgba(12, 18, 28, 0.95), rgba(6, 10, 18, 0.9));
    color: var(--text-primary);
    padding: 9px 12px;
    border-radius: 10px;
    border: 1px solid rgba(120, 190, 255, 0.28);
    box-shadow: var(--shadow-soft);
    font-family: var(--ui-font);
    font-size: 11px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    backdrop-filter: blur(12px);
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.hover-headline {
    font-size: 13px;
    font-weight: 800;
    color: #fff2d6;
    letter-spacing: 0.2px;
}

.hover-headline-time {
    display: inline-block;
    min-width: 72px;
    font-family: var(--mono-font);
    font-variant-numeric: tabular-nums;
}

.hover-tooltip.is-rate-limited {
    border-color: rgba(255, 70, 90, 0.85);
    background: linear-gradient(160deg, rgba(42, 8, 14, 0.92), rgba(24, 6, 10, 0.9));
    box-shadow: 0 0 22px rgba(255, 70, 90, 0.45), 0 0 6px rgba(255, 170, 110, 0.35) inset;
}

.hover-limit-warning {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: rgba(255, 200, 200, 0.95);
}

.hover-limit-warning.is-hidden {
    display: none;
}

.hover-tooltip.is-hidden {
    opacity: 0;
    transform: translateY(6px);
}

.scene-tooltip,
.globe-tooltip {
    position: fixed;
    z-index: calc(var(--z-clock-hud) + 2);
    pointer-events: none;
    font-family: var(--ui-font);
}

.ambient-city-popup {
    position: fixed;
    left: 0;
    top: 0;
    z-index: calc(var(--z-clock-hud) + 2);
    pointer-events: none;
    max-width: min(250px, calc(100vw - 24px));
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 15px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(20, 20, 40, 0.95));
    border: 2px solid rgba(255, 255, 255, 0.26);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease;
    font-family: var(--ui-font);
}

.ambient-city-popup.is-hidden {
    opacity: 0;
    transform: translateY(4px);
}

.ambient-city-popup-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.ambient-city-popup-flag {
    flex: 0 0 auto;
    font-size: 14px;
    line-height: 1;
    opacity: 0.88;
}

.ambient-city-popup-flag:empty {
    display: none;
}

.ambient-city-popup-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.ambient-city-popup-meta,
.ambient-city-popup-context,
.ambient-city-popup-timezone {
    line-height: 1.35;
}

.ambient-city-popup-meta {
    color: #00ff88;
    font-family: var(--mono-font);
    font-size: 14px;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.32);
}

.ambient-city-popup-context {
    color: #b4b8c8;
    font-size: 12px;
}

.ambient-city-popup-timezone {
    color: #848a98;
    font-size: 11px;
    letter-spacing: 0.2px;
}

.hover-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.hover-row span:last-child {
    font-family: var(--mono-font);
    color: var(--ui-accent);
    font-variant-numeric: tabular-nums;
}

.hover-hint {
    font-size: 10px;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.hover-hint.is-hidden {
    display: none;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    :root {
        --edge-top: 90px;
        --edge-stack-gap: 8px;
        --edge-toggle-thickness: 28px;
        --edge-toggle-length: 116px;
        --clock-toggle-length: 116px;
        --clock-hud-top: 10px;
        --clock-hud-right: 10px;
        --edge-font-size: 10px;
    }

    .edge-toggle-stack {
        gap: var(--edge-stack-gap);
    }

    .dev-toggle {
        right: 8px;
        bottom: 46px;
        padding: 5px 8px;
        font-size: 9px;
    }

    .side-menu-bar {
        left: 6px;
        padding: 4px 6px 4px 4px;
        gap: 6px;
    }

    .side-menu-grip {
        font-size: 9px;
        padding: 4px 3px;
    }

    .side-menu-toggle {
        padding: 4px 6px;
        font-size: 10px;
        letter-spacing: 0.4px;
    }

    .controls-panel {
        top: 10px;
        left: 10px;
        gap: 5px;
        right: 10px;
        width: calc(100vw - 20px);
    }

    .control-btn {
        padding: 8px 12px;
        font-size: 12px;
        min-width: 120px;
    }

    .control-input-group {
        padding: 8px;
        min-width: 160px;
    }

    .control-label {
        font-size: 10px;
    }

    .control-input {
        font-size: 12px;
        padding: 6px 8px;
    }

    .control-group {
        padding: 8px;
        min-width: 160px;
    }

    .control-chip {
        font-size: 9px;
        padding: 6px;
    }

    .quality-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .quality-range-wrap {
        width: 100%;
        justify-content: space-between;
    }
    
    .performance-monitor {
        top: 90px;
        right: 10px;
        padding: 10px;
        font-size: 10px;
        min-width: 140px;
    }

    .city-panel,
    .location-panel {
        right: 10px;
        bottom: 200px;
        padding: 10px;
        min-width: 180px;
    }

    .location-panel {
        bottom: 420px;
    }

    .controls-info-panel {
        right: 10px;
        bottom: 40px;
        padding: 10px;
        min-width: 170px;
    }

    .city-panel,
    .location-panel,
    .controls-info-panel,
    .performance-monitor,
    .timeboard,
    .about-panel {
        left: 10px;
        right: 10px;
        width: auto;
        max-width: calc(100vw - 20px);
    }

    .about-panel {
        left: 10px;
        bottom: 210px;
        min-width: 200px;
    }

    .panel-name {
        font-size: 14px;
    }

    .panel-time {
        font-size: 13px;
    }

    .panel-actions {
        grid-template-columns: 1fr;
    }

    .daylight-badge {
        font-size: 9px;
        min-width: 50px;
    }

    .timeboard {
        left: 10px;
        bottom: 52px;
        padding: 10px;
        min-width: 190px;
        max-width: 220px;
    }

    .timeboard-time {
        font-size: 13px;
    }

    .status-bar {
        bottom: 6px;
        width: calc(100vw - 20px);
        height: 32px;
        padding: 0 12px;
    }
    
    .clock-display {
        top: 10px;
        right: 10px;
        padding: 10px 12px;
        min-width: 170px;
    }

    .clock-time {
        font-size: 14px;
    }

    .clock-date {
        font-size: 10px;
    }

    .dashboard-panel {
        padding: 18px 16px;
    }

    .dashboard-title {
        font-size: 16px;
    }

    .dashboard-body {
        grid-template-columns: 1fr;
    }

    .dashboard-rail {
        padding: 12px;
    }

    .dashboard-content {
        padding: 14px;
    }

    .dashboard-pane {
        padding: 0;
    }

    .dashboard-diagnostics {
        grid-template-columns: 1fr;
    }

    .diagnostics-hero {
        grid-template-columns: 1fr;
    }

    .diagnostics-hero-main {
        grid-template-columns: 1fr;
    }

    .timeline-row {
        grid-template-columns: 1fr;
    }

    .timeline-label {
        flex-direction: row;
        justify-content: space-between;
        gap: 6px;
    }

    .timeline-grid {
        grid-template-columns: repeat(24, minmax(8px, 1fr));
    }

    .meeting-dashboard {
        grid-template-columns: 1fr;
    }

    .clock-strip {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .astro-grid {
        grid-template-columns: 1fr;
    }
    
    .status-bar {
        height: 25px;
        font-size: 10px;
        padding: 0 10px;
    }
}

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

.fade-out {
    opacity: 0 !important;
}

.fade-in {
    opacity: 1 !important;
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(0,255,136,0.5); }
    50% { box-shadow: 0 0 20px rgba(0,255,136,0.8); }
    100% { box-shadow: 0 0 5px rgba(0,255,136,0.5); }
}

.glow {
    animation: glow 2s infinite;
} 
.draggable-panel {
    resize: both;
    overflow: auto;
    touch-action: none;
    cursor: grab;
}

.draggable-panel.panel-positioned {
    transform: none;
}

.side-menu-bar.draggable-panel {
    resize: none;
    overflow: visible;
}

.panel-grip,
.monitor-header,
.panel-title {
    cursor: grab;
    user-select: none;
}

.draggable-panel.dragging {
    cursor: grabbing;
}

.draggable-panel button,
.draggable-panel input,
.draggable-panel select,
.draggable-panel textarea {
    cursor: pointer;
}

body.is-mobile .draggable-panel {
    touch-action: pan-y;
}

body.is-mobile #globeViz {
    touch-action: pan-y;
}

body.is-mobile .clock-display {
    touch-action: pan-y;
    cursor: default;
}

body.is-mobile .widget-handle {
    touch-action: pan-y;
}


/* ===== SW UPDATE BANNER ===== */
#swUpdateBanner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 990;
    background: var(--ui-bg-strong);
    border-bottom: 1px solid rgba(51, 242, 194, 0.35);
    color: var(--text-primary);
    font-family: var(--ui-font);
    font-size: 13px;
    padding: 7px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

#swUpdateBanner button {
    background: rgba(51, 242, 194, 0.12);
    border: 1px solid rgba(51, 242, 194, 0.45);
    color: var(--ui-accent);
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 12px;
    font-family: var(--ui-font);
}

#swUpdateBanner button:hover {
    background: rgba(51, 242, 194, 0.24);
}

/* ═══════════════════════════════════════════════════════
   v3.13 — SEGMENTED OTP INPUT
   8 individual cells, 4·4 grouping, spring animations
   ═══════════════════════════════════════════════════════ */

.auth-code-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.auth-code-cell {
    width: 46px;
    height: 58px;
    border-radius: 14px;
    border: 1.5px solid rgba(120, 190, 255, 0.2);
    background: rgba(8, 15, 26, 0.85);
    color: var(--text-primary);
    font-family: var(--mono-font);
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    caret-color: transparent;
    outline: none;
    -moz-appearance: textfield;
    appearance: textfield;
    transition:
        border-color 0.14s ease,
        box-shadow 0.14s ease,
        transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1),
        background 0.14s ease,
        color 0.14s ease;
}

.auth-code-cell::-webkit-outer-spin-button,
.auth-code-cell::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.auth-code-cell::placeholder {
    color: rgba(100, 140, 190, 0.18);
    font-size: 14px;
}

.auth-code-cell:focus {
    border-color: rgba(51, 242, 194, 0.76);
    box-shadow:
        0 0 0 3px rgba(51, 242, 194, 0.15),
        0 6px 20px rgba(0, 0, 0, 0.28);
    background: rgba(10, 20, 34, 0.96);
    transform: scale(1.07) translateY(-1px);
    z-index: 1;
    position: relative;
}

.auth-code-cell.is-filled {
    border-color: rgba(51, 242, 194, 0.48);
    color: var(--ui-accent);
    background: rgba(10, 20, 34, 0.92);
    text-shadow: 0 0 14px rgba(51, 242, 194, 0.32);
}

.auth-code-cell.is-error {
    border-color: rgba(255, 120, 100, 0.62);
    color: rgba(255, 200, 180, 0.96);
    animation: code-cell-shake 0.32s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

.auth-code-cell:disabled {
    opacity: 0.44;
    cursor: not-allowed;
    transform: none;
}

.auth-code-sep {
    font-size: 22px;
    font-weight: 300;
    color: rgba(100, 140, 190, 0.28);
    margin: 0 1px;
    flex-shrink: 0;
    line-height: 1;
    user-select: none;
    padding-bottom: 4px;
}

@keyframes code-cell-shake {
    0%   { transform: translateX(0); }
    20%  { transform: translateX(-4px) rotate(-1deg); }
    40%  { transform: translateX(4px) rotate(1deg); }
    60%  { transform: translateX(-3px); }
    80%  { transform: translateX(3px); }
    100% { transform: translateX(0); }
}

@keyframes code-cell-pop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.14) translateY(-2px); }
    100% { transform: scale(1); }
}

.auth-code-cell.is-just-filled {
    animation: code-cell-pop 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ═══════════════════════════════════════════════════════
   v3.13 — ACCOUNT LAUNCHER UPGRADE
   ═══════════════════════════════════════════════════════ */

.account-launcher {
    transition:
        border-color var(--transition-fast),
        background var(--transition-fast),
        box-shadow var(--transition-fast),
        transform var(--transition-fast),
        color var(--transition-fast);
}

.account-launcher:hover {
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.32),
        0 0 16px rgba(51, 242, 194, 0.1);
}

.account-launcher.is-active {
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.36),
        0 0 20px rgba(51, 242, 194, 0.16);
}

/* ═══════════════════════════════════════════════════════
   v3.13 — TIMEBOARD ACTIVE + FOCUS GLOW
   ═══════════════════════════════════════════════════════ */

.timeboard-item:hover {
    transform: translateY(-2px);
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.26),
        0 0 16px rgba(51, 242, 194, 0.1);
}

.timeboard-item.active {
    background: linear-gradient(100deg, rgba(34, 242, 166, 0.1), rgba(8, 12, 22, 0.82) 36%);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24), 0 0 18px rgba(34, 242, 166, 0.08);
}

/* ═══════════════════════════════════════════════════════
   v3.13 — AUTH SHEET STEP SPACING
   ═══════════════════════════════════════════════════════ */

.auth-sheet-step {
    gap: 14px;
}

.auth-sheet-hint {
    font-size: 12px;
    line-height: 1.5;
}

.auth-sheet-error {
    font-size: 13px;
    line-height: 1.45;
}

.auth-sheet-close {
    min-width: 38px;
    min-height: 38px;
    font-size: 12px;
    border-color: rgba(120, 190, 255, 0.2);
    transition: border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.auth-sheet-close:hover {
    border-color: rgba(180, 220, 255, 0.4);
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

/* ═══════════════════════════════════════════════════════
   v3.13 — PRO BUTTON PURPLE IDENTITY
   ═══════════════════════════════════════════════════════ */

.make-this-yours-prompt-pro {
    border-color: rgba(167, 139, 250, 0.42) !important;
    background: linear-gradient(170deg, rgba(167, 139, 250, 0.18), rgba(109, 40, 217, 0.14)) !important;
    color: rgba(224, 213, 255, 0.98) !important;
}

.make-this-yours-prompt-pro:hover {
    border-color: rgba(167, 139, 250, 0.72) !important;
    box-shadow: 0 0 22px rgba(167, 139, 250, 0.16) !important;
    transform: translateY(-2px) !important;
}

.auth-link-secondary--pro,
.auth-sheet-submit--pro {
    border-color: rgba(167, 139, 250, 0.42);
    background: linear-gradient(160deg, rgba(167, 139, 250, 0.2), rgba(109, 40, 217, 0.16));
    color: rgba(224, 213, 255, 0.98);
}

.auth-sheet-submit--pro:hover {
    border-color: rgba(167, 139, 250, 0.72);
    box-shadow: 0 0 22px rgba(167, 139, 250, 0.18);
}

/* ═══════════════════════════════════════════════════════
   v3.13 — PANEL GLASS REFINEMENTS
   ═══════════════════════════════════════════════════════ */

.city-panel,
.timeboard,
.controls-info-panel,
.about-panel,
.dst-calendar-panel {
    box-shadow:
        0 20px 48px rgba(0, 0, 0, 0.44),
        0 0 0 1px rgba(255, 255, 255, 0.025) inset;
}

/* ═══════════════════════════════════════════════════════
   v3.13 — ACCOUNT SHEET IDENTITY UPGRADE
   ═══════════════════════════════════════════════════════ */

.account-sheet-identity {
    background: linear-gradient(160deg, rgba(12, 20, 34, 0.92), rgba(8, 13, 24, 0.86));
    border-color: rgba(51, 242, 194, 0.18);
    box-shadow: inset 0 1px 0 rgba(51, 242, 194, 0.06);
}

.account-sheet-email {
    font-size: 14px;
    letter-spacing: -0.01em;
}

/* ═══════════════════════════════════════════════════════
   v3.13 — LOADING OVERLAY PREMIUM
   ═══════════════════════════════════════════════════════ */

.loading-progress-bar {
    box-shadow: 0 0 16px rgba(51, 242, 194, 0.4), 0 0 4px rgba(51, 242, 194, 0.8);
}

/* ═══════════════════════════════════════════════════════
   v3.13 — AUTH BACKDROP BLUR DEEPEN
   ═══════════════════════════════════════════════════════ */

.auth-sheet {
    backdrop-filter: blur(16px) saturate(1.4);
    background: rgba(3, 7, 14, 0.7);
}

/* ═══════════════════════════════════════════════════════
   v3.13 — MAKE THIS YOURS PROMPT FORM UPGRADE
   ═══════════════════════════════════════════════════════ */

.make-this-yours-prompt-form {
    border-radius: 20px;
}

.make-this-yours-prompt-input {
    border-radius: 16px;
    padding: 13px 15px;
    font-size: 15px;
    border-width: 1.5px;
}

.make-this-yours-prompt-input:focus {
    box-shadow: 0 0 0 3.5px rgba(51, 242, 194, 0.14), 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* ═══════════════════════════════════════════════════════
   v3.13 — MEETING CLOCK STRIP UPGRADE
   ═══════════════════════════════════════════════════════ */

.meeting-clock-strip-item {
    border-radius: 12px;
}

.meeting-clock-strip-time {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-shadow: 0 0 16px rgba(51, 242, 194, 0.2);
}

/* ═══════════════════════════════════════════════════════
   v3.13 — SHARED VISITOR SHEET REFINEMENTS
   ═══════════════════════════════════════════════════════ */

.shared-visitor-sheet-card {
    border-radius: var(--radius-2xl);
    box-shadow:
        0 36px 72px rgba(2, 6, 14, 0.58),
        0 0 0 1px rgba(255, 255, 255, 0.025) inset,
        0 1px 0 rgba(255, 255, 255, 0.06) inset;
}
