/* ===== 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-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-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);
    --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);
    --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;
}

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;
}

#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;
}

.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);
}

.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: 11px;
    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);
}

/* ===== 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.2s ease;
}

.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-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: 20px;
    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: 12px;
}

.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: 10px;
    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.2s ease;
}

.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.2s ease;
}

.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.2s ease;
    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);
}

.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(220px, 22vw, 320px);
    max-width: 260px;
    max-height: calc(100vh - 80px);
    backdrop-filter: blur(16px);
    font-family: var(--ui-font);
    transition: opacity 0.3s ease;
    resize: both;
    overflow: auto;
}

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

.controls-info-panel {
    position: fixed;
    right: 20px;
    bottom: 60px;
    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;
    left: 20px;
    bottom: 260px;
    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: 240px;
    width: clamp(240px, 24vw, 320px);
    max-width: 320px;
    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;
}

.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.2s ease;
    min-width: 32px;
}

.dashboard-tool--wide {
    padding: 6px 14px;
}

.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-title-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

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

.dashboard-subtitle {
    font-size: 12px;
    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: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.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: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.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;
    height: 100%;
}

.dashboard-rail {
    background: rgba(6, 10, 18, 0.75);
    border: 1px solid rgba(120, 190, 255, 0.25);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
}

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

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

.dashboard-locations {
    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;
    font-size: 11px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.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-rail-hint {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: auto;
}

.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;
}

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

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

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

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

.dashboard-pane-text {
    font-size: 12px;
    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;
}

.meeting-widget {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
    position: relative;
    padding: 14px 16px 16px;
    border-radius: 16px;
    border: 1px solid rgba(120, 190, 255, 0.18);
    background: linear-gradient(160deg, rgba(10, 16, 28, 0.88), rgba(6, 10, 18, 0.72));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.meeting-widget.is-dragging {
    opacity: 0.65;
    border-style: dashed;
    transform: scale(0.98);
}

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

.dashboard-canvas {
    position: relative;
    height: 100%;
    min-height: 520px;
    border-radius: 18px;
    border: 1px solid rgba(120, 190, 255, 0.18);
    overflow: hidden;
    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;
    --pan-x: 0px;
    --pan-y: 0px;
    --zoom: 1;
}

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

.dashboard-canvas.show-grid::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(transparent 94%, rgba(255, 255, 255, 0.08) 94%, rgba(255, 255, 255, 0.08) 95%, transparent 95%),
        linear-gradient(90deg, transparent 94%, rgba(255, 255, 255, 0.08) 94%, rgba(255, 255, 255, 0.08) 95%, transparent 95%);
    background-size: 80px 80px;
    background-position: var(--pan-x, 0px) var(--pan-y, 0px);
    pointer-events: none;
    opacity: 0.35;
}

.dashboard-workspace {
    position: relative;
    width: 3000px;
    height: 2000px;
    transform: translate(var(--pan-x, 0px), var(--pan-y, 0px)) scale(var(--zoom, 1));
    transform-origin: 0 0;
    transition: transform 0.04s ease-out;
}

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

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

.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;
}

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

.dashboard-window {
    position: absolute;
    max-width: calc(100% - 32px);
}

.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: 560px;
}

.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;
    align-items: center;
}

.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;
}

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

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

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

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

.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);
}

.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;
}

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

.timeline-row.is-overlap .timeline-label-title {
    color: #ffd28c;
}

.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(51, 242, 194, 0.7);
}

.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(255, 210, 140, 0.42);
    border-color: rgba(255, 210, 140, 0.65);
}

.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-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(255, 210, 140, 0.5);
    border-color: rgba(255, 210, 140, 0.7);
}

.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.2s ease;
}

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

.clock-strip-time {
    font-family: var(--mono-font);
    font-size: 15px;
    color: var(--ui-accent);
}

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

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

.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-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;
}

.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(255, 210, 140, 0.42); }
.heatmap-cell.heat-5 { background: rgba(255, 210, 140, 0.65); }

.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(255, 210, 140, 0.6);
    border-color: rgba(255, 210, 140, 0.75);
}

.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-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);
}

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

.hour-segment.is-now {
    background: rgba(255, 210, 140, 0.65);
    border-color: rgba(255, 210, 140, 0.8);
}

.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;
}
.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.2s ease;
}

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

.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(140px, 1fr) auto;
    gap: 6px 10px;
    align-items: center;
    border: 1px solid rgba(120, 190, 255, 0.2);
    background: rgba(8, 12, 20, 0.65);
    border-radius: 12px;
    padding: 8px 12px;
}

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

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

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

.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;
}

.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 {
    min-height: 420px;
}

.astro-card {
    border: 1px solid rgba(255, 210, 140, 0.35);
    background: linear-gradient(160deg, rgba(14, 10, 8, 0.8), rgba(9, 7, 6, 0.6));
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 140px;
    position: relative;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.astro-card.is-dragging {
    opacity: 0.7;
    border-style: dashed;
    transform: scale(0.98);
}

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

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

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

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

.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-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-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.2s ease;
}

.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; }
}

.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-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;
}

.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;
}

.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.2s ease;
}

.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.2s ease;
}

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

.panel-btn:active {
    transform: translateY(0);
}

/* ===== 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 {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 2px 12px;
    padding: 9px 12px;
    border-radius: var(--radius-md);
    background: rgba(8, 12, 20, 0.7);
    border: 1px solid rgba(120, 190, 255, 0.2);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

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

.timeboard-item.active {
    border-color: var(--ui-accent);
    box-shadow: var(--shadow-glow);
}

.timeboard-city {
    grid-column: 1;
    grid-row: 1;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeboard-meta {
    grid-column: 1;
    grid-row: 2;
    font-size: 10px;
    color: var(--text-soft);
}

.timeboard-time {
    grid-column: 2;
    grid-row: 1 / span 2;
    font-family: var(--mono-font);
    font-size: 14px;
    color: var(--ui-accent);
    align-self: center;
    font-variant-numeric: tabular-nums;
}

.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);
}

/* ===== 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;
    text-align: center;
    font-family: var(--mono-font);
    font-weight: 600;
    color: var(--ui-accent);
}

.status-right {
    flex: 1;
    text-align: right;
    font-weight: 600;
}

.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-tooltip.is-hidden {
    opacity: 0;
    transform: translateY(6px);
}

.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;
    }

    .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;
}

.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;
}
