/* SunDome - Clean, Flat, Monochromatic Solar Path Studio */

:root {
    --app-height: 100vh;
    --bg-main: #0d0f12;
    --bg-surface: #14171d;
    --bg-card: #181c24;
    --bg-card-hover: #222733;
    --bg-input: #101318;
    --border-color: #262b36;
    --border-active: #475063;
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --accent-sun: #f59e0b; /* Intentional warm color for sun */
    --accent-sun-dim: #b45309;
    --accent-active: #e5e7eb;
    --font-sans: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
}

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

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
}

/* App Header */
header {
    height: 52px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    z-index: 50;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 22px;
    height: 22px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.logo-icon svg {
    width: 20px;
    height: 20px;
    stroke: #ffffff;
}

.app-title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.app-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding-left: 0.5rem;
    border-left: 1px solid var(--border-color);
}

/* Header Actions & Unit Toggle */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.unit-toggle-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.2rem 0.35rem;
    border-radius: 4px;
}

.unit-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: 0.2rem;
}

.unit-toggle-buttons {
    display: flex;
    gap: 0.2rem;
}

.unit-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.2rem 0.45rem;
    border-radius: 3px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}

.unit-btn:hover {
    color: var(--text-primary);
    background: #262b36;
}

.unit-btn.active {
    background: var(--text-primary);
    color: var(--bg-main);
    font-weight: 700;
}

/* Location Trigger Button */
.location-selector {
    display: flex;
    align-items: center;
}

.location-trigger-btn {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.28rem 0.65rem;
    border-radius: 4px;
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--text-primary);
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s ease;
}

.location-trigger-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-active);
    color: #ffffff;
}

.location-trigger-btn svg {
    color: var(--accent-sun);
    flex-shrink: 0;
}

/* Header Export PNG Button */
.export-png-btn {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: #1e2430;
    border: 1px solid #374151;
    padding: 0.28rem 0.65rem;
    border-radius: 4px;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s ease;
}

.export-png-btn:hover {
    background: #283142;
    border-color: var(--accent-sun);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.export-png-btn svg {
    color: var(--accent-sun);
    flex-shrink: 0;
}

/* Draw Mode Banner */
.draw-mode-banner {
    position: absolute;
    top: 0.85rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 40;
    background: #181c24;
    border: 1px solid var(--accent-sun);
    padding: 0.4rem 0.85rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    font-size: 0.75rem;
}

.draw-mode-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.draw-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-sun);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.draw-actions {
    display: flex;
    gap: 0.35rem;
}

.draw-btn {
    background: var(--text-primary);
    color: var(--bg-main);
    border: none;
    padding: 0.25rem 0.55rem;
    border-radius: 3px;
    font-size: 0.72rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
}

.draw-btn.cancel {
    background: var(--bg-input);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.draw-btn.cancel:hover {
    color: var(--text-primary);
    border-color: var(--border-active);
}

.draw-btn.full {
    flex: 1;
}

/* Floating Massing Manager Card */
.massing-manager-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    width: 230px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.massing-card-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 0.65rem;
    border-bottom: 1px solid var(--border-color);
    background: #14171d;
}

.massing-title-group {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.massing-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.massing-count-badge {
    font-size: 0.65rem;
    padding: 0.05rem 0.35rem;
    border-radius: 10px;
    background: #262b36;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.massing-top-actions {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Minimalist Draw Pen Icon Button */
.draw-pen-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 28px;
    height: 28px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
}

.draw-pen-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-active);
    color: var(--accent-sun);
}

.draw-pen-btn.active {
    background: var(--accent-sun);
    color: #0d0f12;
    border-color: var(--accent-sun);
}

/* Selected Massing Height Controls */
.selected-massing-controls {
    padding: 0.5rem 0.65rem;
    border-bottom: 1px solid var(--border-color);
    background: #181c24;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.height-input-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
}

.height-val {
    font-weight: 700;
    color: var(--accent-sun);
    font-family: var(--font-mono);
    font-size: 0.78rem;
}

/* Massing List Section */
.massings-list-section {
    padding: 0.35rem 0.45rem;
    max-height: 180px;
    overflow-y: auto;
}

.massings-items {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.empty-massings-hint {
    font-size: 0.68rem;
    color: var(--text-muted);
    padding: 0.4rem 0.3rem;
    text-align: center;
    font-style: italic;
}

.massing-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.3rem 0.5rem;
    background: #14171d;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    font-size: 0.72rem;
    cursor: pointer;
    transition: all 0.15s;
}

.massing-item:hover {
    background: #1c212b;
    border-color: var(--border-active);
}

.massing-item.selected {
    background: #1c2331;
    border-color: #ffffff;
    box-shadow: 0 0 0 1px #ffffff;
}

.massing-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    overflow: hidden;
}

.massing-item-name {
    font-weight: 700;
    color: var(--text-primary);
}

.massing-item-meta {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.massing-item-delete {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.massing-item-delete:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
}

/* Display & Analysis Options Panel */
.options-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.6rem 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    min-width: 210px;
}

.options-panel-title {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.15rem;
}

.toggle-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.73rem;
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
}

.toggle-option input[type="checkbox"] {
    accent-color: var(--accent-sun);
    cursor: pointer;
    width: 13px;
    height: 13px;
}

.options-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.2rem 0;
}

.zoom-slider-container {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-top: 0.15rem;
}

.zoom-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.68rem;
}

.zoom-title {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.zoom-readout {
    font-weight: 700;
    color: var(--accent-sun);
    font-family: var(--font-mono);
}

/* Massing Height Card */
.massing-height-card {
    position: absolute;
    top: 3.5rem;
    left: 0.85rem;
    z-index: 40;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    width: 240px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.massing-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.8rem;
    font-weight: 700;
}

.close-card-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
}

.close-card-btn:hover {
    color: var(--text-primary);
}

.massing-card-body {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.height-input-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
}

.height-val {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--accent-sun);
}

.massing-btn-row {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.25rem;
}

/* Main Split-Screen Container */
.split-container {
    flex: 1;
    display: flex;
    position: relative;
    overflow: hidden;
    height: calc(100vh - 52px - 84px);
}

.viewport-panel {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-main);
}

.panel-header {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
    pointer-events: auto;
}

.panel-tag {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.1rem 0.35rem;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: transparent;
    color: var(--text-secondary);
    border: none;
}

.panel-title {
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent-sun);
    padding-bottom: 3px;
}

.polar-chart-mobile-subbadge {
    display: none;
}

/* Split Divider */
.split-divider {
    width: 2px;
    background: var(--border-color);
    position: relative;
    cursor: col-resize;
    transition: background 0.15s;
    z-index: 30;
}

.split-divider:hover, .split-divider:active {
    background: var(--text-secondary);
}

/* Viewport Canvas Holders */
.viewport-content {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#polarCanvasContainer {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

#dome3DContainer {
    width: 100%;
    height: 100%;
    position: relative;
    outline: none;
}

/* Floating Controls Overlay */
.floating-overlay {
    position: absolute;
    z-index: 25;
    pointer-events: auto;
}

.floating-overlay.top-left {
    top: 3.25rem;
    left: 0.85rem;
}

.floating-overlay.top-right {
    top: 0.85rem;
    right: 0.85rem;
}

.floating-overlay.bottom-left {
    bottom: 0.85rem;
    left: 0.85rem;
}

.floating-overlay.bottom-right {
    bottom: 0.85rem;
    right: 0.85rem;
}

/* Flat Presets Button Group */
.view-presets {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.2rem;
    gap: 0.2rem;
}

.view-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.25rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 500;
    border-radius: 2px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}

.view-btn:hover {
    color: var(--text-primary);
    background: #262c38;
}

.view-btn.active {
    background: #e5e7eb;
    color: #111827;
    font-weight: 700;
}

/* Telemetry HUD Badge (Smaller & subtle color-wise) */
.telemetry-card {
    background: rgba(20, 23, 29, 0.88);
    backdrop-filter: blur(6px);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.45rem 0.65rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.35rem 0.75rem;
    font-size: 0.7rem;
    min-width: 180px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.telemetry-item {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.telemetry-label {
    font-size: 0.58rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.1;
}

.telemetry-value {
    font-size: 0.78rem;
    font-weight: 600;
    color: #e2e8f0;
    font-family: var(--font-mono);
}

.telemetry-value.cyan {
    color: #94a3b8;
}

.telemetry-value.rose {
    color: #cbd5e1;
}

.telemetry-value.green {
    color: #94a3b8;
}

.telemetry-value.plain {
    color: #e2e8f0;
}

/* Legend Badge */
.legend-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.7rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-secondary);
}

.legend-line {
    width: 14px;
    height: 2px;
    border-radius: 1px;
}

/* Bottom Timeline & Control Station */
/* Bottom Timeline & Control Station */
.control-station {
    min-height: 124px;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 0.75rem 1.4rem 1.15rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 1.4rem;
    z-index: 50;
}

/* studioBOSE Footer Branding (Bottom Left) */
.app-branding-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding-right: 1.1rem;
    border-right: 1px solid var(--border-color);
    background: transparent;
    user-select: none;
    flex-shrink: 0;
}

.app-brand-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
    background: transparent;
    opacity: 0.95;
    transition: opacity 0.15s, transform 0.15s;
}

.app-brand-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

.brand-version-tag {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    font-family: var(--font-mono);
    letter-spacing: 0.06em;
    line-height: 1;
}

/* Playback Controls */
.playback-cluster {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0.35rem;
}

.playback-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.icon-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
}

.icon-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-active);
}

.icon-btn.primary {
    background: var(--text-primary);
    color: var(--bg-main);
    border: none;
}

.icon-btn.primary:hover {
    background: #ffffff;
}

.speed-select {
    width: 100%;
    text-align: center;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.22rem 0.4rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    transition: all 0.15s;
}

.speed-select:hover {
    color: var(--text-primary);
    border-color: var(--border-active);
}

/* Dual Timeline Clusters */
.timeline-cluster {
    flex: 2.3;
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* Alleviates cramping between the big sliders */
}

.timeline-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 0.75rem;
}

.slider-strip-angles-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-sun);
}

.slider-strip-angles-badge .strip-angle-sep {
    color: var(--text-muted);
    font-size: 0.6rem;
}

.scrub-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
}

.scrub-value-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.scrub-title {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    line-height: 1;
}

.time-readout {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-sun);
    font-family: var(--font-mono);
}

.date-readout {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.day-num-badge {
    font-size: 0.68rem;
    padding: 0.08rem 0.4rem;
    border-radius: 2px;
    background: #181c24;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    font-family: var(--font-mono);
}

.time-tz-badge {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.08rem 0.4rem;
    border-radius: 2px;
    background: #181c24;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
}

.month-ticks-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    width: 100%;
    font-size: 0.62rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    text-align: center;
    padding: 0 4px;
    margin-bottom: -2px;
    letter-spacing: 0.02em;
}

.sun-state-badge {
    font-size: 0.68rem;
    padding: 0.08rem 0.4rem;
    border-radius: 2px;
    background: #222733;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    font-weight: 500;
}

.sun-state-badge.active-sun {
    color: var(--accent-sun);
    border-color: var(--accent-sun-dim);
}

/* Flat Range Slider */
.slider-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.custom-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: #262b36;
    outline: none;
    cursor: pointer;
}

.custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--accent-sun);
    border: 2px solid #ffffff;
    cursor: pointer;
}

.custom-range.season-range::-webkit-slider-thumb {
    background: #9ca3af;
    border: 2px solid #ffffff;
}

.custom-range.season-range::-webkit-slider-thumb:hover {
    background: var(--accent-sun);
}

/* Coordinates & Date Presets Cluster */
.location-cluster {
    flex: 1.1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-left: 1px solid var(--border-color);
    padding-left: 0.85rem;
}

.date-coord-col {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.input-field {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.coords-sub-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.coord-display-badge {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    padding: 0.22rem 0.45rem;
    border-radius: 4px;
    user-select: none;
    min-width: 68px;
}

.coord-display-label {
    font-size: 0.58rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    font-family: var(--font-mono);
}

.coord-display-val {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent-sun);
    font-family: var(--font-mono);
}

.input-field label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
}

.input-field input {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.22rem 0.4rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    outline: none;
    transition: border-color 0.15s;
}

.input-field input:focus {
    border-color: var(--border-active);
}

.date-field input {
    width: 142px;
}

/* Season Quick Buttons (Clean 2x2 Grid with centered text) */
.season-btns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.3rem;
    min-width: 220px;
}

.season-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.28rem 0.45rem;
    border-radius: 3px;
    font-size: 0.68rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.season-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--border-active);
}

.season-btn.active {
    background: #262c38;
    color: var(--text-primary);
    border-color: var(--border-active);
}

/* Layer Toggles */
.toggle-chip {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}

.toggle-chip input[type="checkbox"] {
    accent-color: var(--text-primary);
    cursor: pointer;
}

/* =========================================================
   LOCATION MODAL & INTERACTIVE WORLD MAP STYLES
   ========================================================= */

.location-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 10, 14, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.location-modal-card {
    background: #141820;
    border: 1px solid #2d3444;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    width: 100%;
    max-width: 860px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: scaleUp 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleUp {
    from { transform: scale(0.96); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.loc-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    background: #181d26;
    border-bottom: 1px solid #262c3a;
}

.loc-header-title-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.loc-header-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--accent-sun);
    display: flex;
    align-items: center;
    justify-content: center;
}

.loc-modal-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.loc-modal-subtitle {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 1px;
}

.loc-modal-close {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    border-radius: 4px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
}

.loc-modal-close:hover {
    background: #242b38;
    color: #ffffff;
    border-color: #3b4457;
}

.loc-modal-body {
    padding: 1.15rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.loc-search-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.loc-search-input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.loc-search-icon {
    position: absolute;
    left: 0.75rem;
    color: var(--text-muted);
    pointer-events: none;
}

.loc-search-input {
    width: 100%;
    background: #0f131a;
    border: 1px solid #2c3444;
    border-radius: 6px;
    padding: 0.5rem 2.2rem 0.5rem 2.3rem;
    font-size: 0.82rem;
    color: var(--text-primary);
    font-family: inherit;
    outline: none;
    transition: all 0.15s;
}

.loc-search-input:focus {
    border-color: var(--accent-sun);
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.loc-search-clear {
    position: absolute;
    right: 0.65rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.2rem;
}

.loc-search-clear:hover {
    color: var(--text-primary);
}

.loc-filter-chips {
    display: flex;
    gap: 0.35rem;
}

.loc-chip {
    background: #181d26;
    border: 1px solid #2c3444;
    color: var(--text-secondary);
    padding: 0.35rem 0.65rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.loc-chip:hover {
    background: #242b38;
    color: var(--text-primary);
}

.loc-chip.active {
    background: var(--text-primary);
    color: #0d0f12;
    border-color: var(--text-primary);
    font-weight: 700;
}

/* Autocomplete Dropdown List */
.loc-dropdown-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 240px;
    overflow-y: auto;
    background: #141822;
    border: 1px solid #323c4e;
    border-radius: 6px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
    z-index: 100;
}

.loc-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 0.75rem;
    border-bottom: 1px solid #1f2533;
    cursor: pointer;
    transition: background 0.1s;
    font-size: 0.78rem;
}

.loc-dropdown-item:last-child {
    border-bottom: none;
}

.loc-dropdown-item:hover, .loc-dropdown-item.active {
    background: #222938;
}

.loc-dropdown-item.active .loc-item-name {
    color: var(--accent-sun);
    font-weight: 700;
}

.loc-item-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.loc-item-tag {
    font-size: 0.62rem;
    font-weight: 700;
    padding: 0.08rem 0.35rem;
    border-radius: 3px;
    text-transform: uppercase;
    font-family: var(--font-mono);
}

.loc-item-tag.world {
    background: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.3);
}

.loc-item-tag.us {
    background: rgba(156, 163, 175, 0.15);
    color: #d1d5db;
    border: 1px solid rgba(156, 163, 175, 0.3);
}

.loc-item-name {
    color: var(--text-primary);
    font-weight: 500;
}

.loc-item-coords {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.7rem;
}

.loc-dropdown-empty {
    padding: 0.75rem;
    text-align: center;
    font-size: 0.74rem;
    color: var(--text-muted);
}

.loc-dropdown-footer {
    padding: 0.35rem 0.75rem;
    font-size: 0.68rem;
    color: var(--text-muted);
    background: #10141c;
    text-align: center;
    border-top: 1px solid #1f2533;
}

/* World Map Wrapper */
.loc-map-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.loc-map-container {
    width: 100%;
    height: 340px;
    background: #0f131a;
    border: 1px solid #272f3d;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    user-select: none;
}

.loc-map-canvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: crosshair;
}

/* Map Interactive Pin & Pulse */
.loc-map-crosshair {
    position: absolute;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 50;
    transition: left 0.15s ease-out, top 0.15s ease-out;
}

.loc-pin-point {
    width: 10px;
    height: 10px;
    background: #f59e0b;
    border: 2px solid #ffffff;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 10px #f59e0b;
}

.loc-pin-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid #f59e0b;
    animation: pinRing 1.8s infinite;
}

@keyframes pinRing {
    0% { transform: translate(-50%, -50%) scale(0.4); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}

.loc-pin-label {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 19, 26, 0.92);
    border: 1px solid var(--accent-sun);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 3px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    font-family: var(--font-mono);
}

.loc-map-tooltip {
    position: absolute;
    background: #141822;
    border: 1px solid #3a455a;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.72rem;
    color: var(--text-primary);
    pointer-events: none;
    z-index: 60;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
    line-height: 1.3;
}

.loc-map-legend {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.68rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    padding: 0 0.25rem;
}

.loc-legend-badges {
    display: flex;
    gap: 0.75rem;
}

.badge-line {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.badge-line.cancer::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 2px;
    background: rgba(56, 189, 248, 0.7);
}

.badge-line.equator::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 2px;
    background: rgba(245, 158, 11, 0.85);
}

.badge-line.capricorn::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 2px;
    background: rgba(251, 146, 60, 0.7);
}

/* Modal Footer */
.loc-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    background: #181d26;
    border-top: 1px solid #262c3a;
}

.loc-status-readout {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.76rem;
}

.loc-status-label {
    color: var(--text-muted);
    font-weight: 500;
}

.loc-status-coords {
    color: var(--accent-sun);
    font-family: var(--font-mono);
    font-weight: 700;
}

.loc-status-name {
    color: var(--text-primary);
    font-weight: 600;
    padding-left: 0.6rem;
    border-left: 1px solid #2e3646;
}

.loc-footer-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.loc-btn {
    padding: 0.35rem 0.85rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s;
}

.loc-btn.secondary {
    background: #202632;
    border: 1px solid #333c4e;
    color: var(--text-secondary);
}

.loc-btn.secondary:hover {
    background: #2b3344;
    color: var(--text-primary);
}

.loc-btn.primary {
    background: var(--text-primary);
    border: 1px solid var(--text-primary);
    color: #0d0f12;
    font-weight: 700;
}

.loc-btn.primary:hover {
    background: #ffffff;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

/* =========================================================
   EXPORT MODAL STYLES (300 DPI SQUARE PNG EXPORT)
   ========================================================= */

.export-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 10, 14, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: fadeIn 0.2s ease-out;
}

.export-modal-card {
    background: #141820;
    border: 1px solid #2d3444;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    width: 100%;
    max-width: 960px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: scaleUp 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.export-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: #181d26;
    border-bottom: 1px solid #262c3a;
}

.export-header-title-group {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.export-header-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--accent-sun);
    display: flex;
    align-items: center;
    justify-content: center;
}

.export-modal-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.export-modal-subtitle {
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.export-modal-close {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    border-radius: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
}

.export-modal-close:hover {
    background: #242b38;
    color: #ffffff;
    border-color: #3b4457;
}

.export-modal-body {
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.export-preview-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

.export-preview-box {
    width: 420px;
    height: 420px;
    border-radius: 6px;
    border: 1px solid #2b3342;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
}

.export-preview-box.checkerboard-bg {
    background-color: #12151b;
    background-image: linear-gradient(45deg, #1c212b 25%, transparent 25%),
                      linear-gradient(-45deg, #1c212b 25%, transparent 25%),
                      linear-gradient(45deg, transparent 75%, #1c212b 75%),
                      linear-gradient(-45deg, transparent 75%, #1c212b 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.export-preview-box.dark-bg {
    background: #0d0f12;
}

.export-preview-box.white-bg {
    background: #ffffff;
}

.export-preview-box canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.export-spec-tag {
    font-size: 0.74rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    text-align: center;
}

.export-settings-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.export-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.export-group-label {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.export-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.export-chip {
    background: #181d26;
    border: 1px solid #2b3342;
    color: var(--text-secondary);
    padding: 0.42rem 0.8rem;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.15s;
}

.export-chip:hover {
    background: #222938;
    color: var(--text-primary);
    border-color: var(--border-active);
}

.export-chip.active {
    background: var(--text-primary);
    color: #0d0f12;
    border-color: var(--text-primary);
    font-weight: 700;
}

.export-chip.active .custom-color-circle {
    box-shadow: 0 0 0 2px #0d0f12;
}

.color-swatch-chip {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.custom-color-chip {
    position: relative;
    overflow: hidden;
}

.custom-color-circle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid #4b5563;
    display: inline-block;
    cursor: pointer;
}

.export-color-picker-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.export-checks-grid {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    background: #101318;
    border: 1px solid #232a36;
    padding: 0.5rem 0.65rem;
    border-radius: 4px;
}

.export-check-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.74rem;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}

.export-check-item input[type="checkbox"] {
    accent-color: var(--accent-sun);
    cursor: pointer;
}

.export-check-item:hover {
    color: var(--text-primary);
}

.export-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    background: #181d26;
    border-top: 1px solid #262c3a;
}

.export-footer-info {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.export-footer-buttons {
    display: flex;
    gap: 0.5rem;
}

.export-btn {
    padding: 0.38rem 0.9rem;
    border-radius: 4px;
    font-size: 0.76rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.15s;
}

.export-btn.secondary {
    background: #202632;
    border: 1px solid #333c4e;
    color: var(--text-secondary);
}

.export-btn.secondary:hover {
    background: #2b3344;
    color: var(--text-primary);
}

.export-btn.primary {
    background: var(--accent-sun);
    border: 1px solid var(--accent-sun);
    color: #0d0f12;
    font-weight: 700;
}

.export-btn.primary:hover {
    background: #fbbf24;
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.4);
}

/* =========================================================
   HEADER SETTINGS ICON BUTTON
   ========================================================= */
.header-icon-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.35rem 0.65rem;
    border-radius: 4px;
    font-size: 0.76rem;
    font-weight: 500;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.header-icon-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-active);
}

/* =========================================================
   SETTINGS FLOATING MODAL (GLASSMORPHIC BACKDROP BLUR)
   ========================================================= */
.settings-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 6, 9, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.settings-modal-overlay.active {
    opacity: 1;
}

.settings-modal-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    transform: scale(0.96);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.settings-modal-overlay.active .settings-modal-card {
    transform: scale(1);
}

.settings-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-surface);
}

.settings-header-title-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.settings-header-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(245, 158, 11, 0.12);
    color: var(--accent-sun);
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-modal-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.settings-modal-subtitle {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 1px;
}

.settings-modal-close {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    border-radius: 4px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
}

.settings-modal-close:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.settings-modal-body {
    padding: 1.15rem 1.25rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.settings-section {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.settings-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.settings-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

/* Measurement Units Chips */
.unit-toggle-chips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.unit-chip {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.65rem 0.85rem;
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.unit-chip-title {
    font-weight: 600;
    color: var(--text-primary);
}

.unit-chip-sub {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.unit-chip:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.unit-chip.active {
    border-color: var(--accent-sun);
    background: rgba(245, 158, 11, 0.1);
    color: var(--text-primary);
}

.unit-chip.active .unit-chip-title {
    color: var(--accent-sun);
}

/* Building Color Picker */
.color-picker-container {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.color-picker-wheel-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.color-picker-label {
    position: relative;
    cursor: pointer;
    display: inline-block;
}

.house-color-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.color-preview-swatch {
    display: block;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: transform 0.15s, border-color 0.15s;
}

.color-preview-swatch:hover {
    transform: scale(1.05);
    border-color: var(--accent-sun);
}

.color-meta-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.color-hex-val {
    font-size: 0.88rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-primary);
}

.color-hint {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.color-presets-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.color-preset-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.15s;
}

.color-preset-btn:hover {
    transform: scale(1.12);
    border-color: var(--text-primary);
}

.color-preset-btn.active {
    border-color: var(--accent-sun);
    box-shadow: 0 0 0 2px var(--accent-sun);
    transform: scale(1.08);
}

/* Settings Toggle Rows */
.settings-toggles-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.settings-toggle-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}

.settings-toggle-row:hover {
    background: var(--bg-card-hover);
}

.settings-toggle-row input {
    display: none;
}

.settings-switch {
    width: 36px;
    height: 20px;
    border-radius: 10px;
    background: #2b3342;
    position: relative;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.settings-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    transition: transform 0.2s ease;
}

.settings-toggle-row input:checked + .settings-switch {
    background: var(--accent-sun);
}

.settings-toggle-row input:checked + .settings-switch::after {
    transform: translateX(16px);
}

.toggle-text-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.toggle-main-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.toggle-sub-label {
    font-size: 0.68rem;
    color: var(--text-muted);
}

/* Settings Zoom Slider */
.settings-slider-box {
    margin-top: 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.65rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.settings-slider-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.settings-slider-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.settings-slider-val {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-sun);
    font-family: var(--font-mono);
}

/* =========================================================
   MOBILE SWIPEABLE 3-PAGE WORKSPACE & SIMPLIFIED UI
   ========================================================= */

/* Desktop defaults (min-width: 821px) */
@media (min-width: 821px) {
    .mobile-nav-bar {
        display: none !important;
    }

    .mobile-swipe-wrapper {
        display: block;
        width: 100%;
        height: calc(100vh - 52px);
        overflow: hidden;
    }

    #mobilePage1 {
        display: flex !important;
        flex-direction: column;
        width: 100%;
        height: 100%;
    }

    .mobile-page:not(#mobilePage1) {
        display: none !important;
    }

    .polar-chart-mobile-subbadge {
        display: none !important;
    }
}

/* Tablet & Mobile Media Query (<= 820px) */
@media (max-width: 820px) {
    /* Header adjustments on mobile */
    header {
        height: 48px;
        padding: 0 0.65rem;
    }
    
    .app-title {
        font-size: 0.95rem;
    }

    .header-actions {
        gap: 0.35rem;
    }
    
    .unit-toggle-group {
        gap: 0.2rem;
    }

    .unit-label {
        display: none;
    }

    .unit-btn {
        padding: 0.22rem 0.42rem;
        font-size: 0.7rem;
    }

    .location-trigger-btn {
        padding: 0.22rem 0.45rem;
        font-size: 0.72rem;
        max-width: 125px;
    }
    
    .location-trigger-btn span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .export-png-btn {
        padding: 0.22rem 0.45rem;
        font-size: 0.72rem;
    }

    .export-png-btn span {
        display: none;
    }

    .viewport-panel {
        flex: 1;
        height: 50%;
        min-height: 140px;
        position: relative;
    }

    .split-divider {
        display: none;
    }

    /* Hide cluttered floating overlays on Page 1 canvas viewports */
    #panel2D .floating-overlay.top-right,
    #panel2D .floating-overlay.bottom-left,
    #panel3D .floating-overlay.top-right,
    #panel3D .floating-overlay.bottom-right {
        display: none !important;
    }

    /* Page 1: Simplified Footer Control Station */
    .control-station {
        min-height: 105px;
        padding: 0.45rem 0.85rem 0.65rem 0.85rem;
        display: flex;
        align-items: center;
        gap: 0;
        width: 100%;
        background: var(--bg-surface);
        border-top: 1px solid var(--border-color);
        z-index: 50;
    }

    /* Hide logo, playback controls, and extra date/lat/lon on Page 1 mobile */
    .app-branding-badge,
    .playback-cluster,
    .location-cluster {
        display: none !important;
    }

    /* Header hidden on mobile vertical mode */
    header,
    header.app-header {
        display: none !important;
    }

    html, body {
        height: 100%;
        height: 100dvh;
        height: var(--app-height, 100vh);
        min-height: 100%;
        min-height: 100dvh;
        min-height: var(--app-height, 100vh);
        overflow: hidden !important;
        position: fixed;
        width: 100vw;
        left: 0;
        top: 0;
    }

    /* 5-Tab Mobile Top Navigation Bar */
    .mobile-nav-bar {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        background: #10141c;
        border-bottom: 1px solid var(--border-color);
        padding: 0.35rem 0.4rem;
        gap: 0.25rem;
        z-index: 200;
        height: 48px;
        flex-shrink: 0;
    }

    .mobile-tab-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.15rem;
        background: transparent;
        border: none;
        border-radius: 6px;
        color: var(--text-muted);
        padding: 0.35rem 0.15rem;
        font-size: 0.68rem;
        font-weight: 600;
        font-family: inherit;
        cursor: pointer;
        transition: all 0.15s ease;
        white-space: nowrap;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-tab-btn * {
        pointer-events: none;
    }

    .mobile-tab-btn .tab-icon {
        opacity: 0.7;
    }

    .mobile-tab-btn:hover {
        color: var(--text-primary);
        background: rgba(255, 255, 255, 0.04);
    }

    .mobile-tab-btn.active {
        color: var(--accent-sun);
        background: rgba(245, 158, 11, 0.12);
        border: 1px solid rgba(245, 158, 11, 0.28);
    }

    .mobile-tab-btn.active .tab-icon {
        opacity: 1;
        stroke: var(--accent-sun);
    }

    /* Multi-Page Container: Instant, clean tab switching without horizontal overflow/scroll bugs */
    .mobile-swipe-wrapper {
        display: block !important;
        width: 100vw;
        flex: 1 1 auto;
        min-height: 0;
        height: calc(100% - 48px);
        height: calc(100dvh - 48px);
        height: calc(var(--app-height, 100vh) - 48px);
        max-height: calc(100% - 48px);
        max-height: calc(100dvh - 48px);
        max-height: calc(var(--app-height, 100vh) - 48px);
        overflow: hidden !important;
        position: relative;
    }

    .mobile-page {
        display: none !important;
        width: 100vw;
        height: 100%;
        max-height: 100%;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        position: relative;
    }

    .mobile-page.active {
        display: flex !important;
        flex-direction: column;
    }

    /* Hide desktop-only floating panels on mobile page 1 */
    .desktop-only,
    #panel2D .massing-manager-card,
    #panel2D .draw-mode-banner {
        display: none !important;
    }

    /* Page 1: Strictly contained without offscreen cutoff when active */
    #mobilePage1.active {
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column;
        height: 100%;
        max-height: 100%;
        min-height: 0;
        justify-content: space-between;
    }

    /* Split Container on Page 1: Flexibly fills remaining vertical space */
    .split-container {
        flex: 1 1 auto;
        min-height: 0;
        height: auto !important;
        max-height: none;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        width: 100%;
    }

    .viewport-panel {
        flex: 1 1 50% !important;
        min-height: 0 !important;
        height: 50% !important;
        max-height: 50% !important;
        width: 100% !important;
        position: relative;
        overflow: hidden;
    }

    .split-divider {
        display: none !important;
    }

    /* Page 1 Floating Overlays hidden for clean view */
    #mobilePage1 .floating-overlay {
        display: none !important;
    }

    /* Simplified Timeline on Page 1: Snug fit with iPhone safe area */
    .control-station {
        flex-shrink: 0;
        height: auto;
        min-height: auto;
        padding: 0.35rem 0.85rem max(0.65rem, calc(0.45rem + env(safe-area-inset-bottom, 0px))) 0.85rem;
        gap: 0;
        border-top: 1px solid var(--border-color);
        background: #10141c;
        z-index: 50;
        width: 100%;
    }

    /* Let the 2 key sliders span the whole width of the screen with generous touch padding */
    .scrub-title {
        display: none !important;
    }

    .timeline-cluster {
        flex: 1;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
        margin: 0;
        padding: 0.15rem 0;
    }

    .timeline-row {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
        padding: 0.1rem 0;
    }

    .timeline-header {
        margin-bottom: 0.1rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .slider-container {
        width: 100%;
        padding: 0.2rem 0;
        display: flex;
        align-items: center;
    }

    .custom-range {
        width: 100%;
        height: 8px;
    }

    .custom-range::-webkit-slider-thumb {
        width: 26px !important;
        height: 26px !important;
        border-radius: 50% !important;
        background: #ffffff !important;
        box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.45), 0 2px 8px rgba(0, 0, 0, 0.6) !important;
        cursor: pointer;
    }

    .custom-range::-moz-range-thumb {
        width: 26px !important;
        height: 26px !important;
        border-radius: 50% !important;
        background: #ffffff !important;
        box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.45), 0 2px 8px rgba(0, 0, 0, 0.6) !important;
        cursor: pointer;
    }

    .month-ticks-grid {
        width: 100%;
        margin-top: 0.15rem;
    }

    /* =========================================================
       PAGE 2: Dedicated Massings & 2D Sketching Mobile Page
       ========================================================= */
    #mobilePageMassings.active {
        display: block !important;
        width: 100vw;
        height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-massings-page {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        min-height: 100%;
        position: relative;
        padding-bottom: max(1.5rem, calc(1rem + env(safe-area-inset-bottom, 0px)));
    }

    /* Minimalist Floating Pen Button in Top Left */
    .mobile-floating-draw-btn {
        position: absolute;
        top: 14px;
        left: 14px;
        z-index: 100;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: #181c24;
        color: var(--accent-sun);
        border: 1.5px solid rgba(245, 158, 11, 0.45);
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.65), 0 0 10px rgba(245, 158, 11, 0.25);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .mobile-floating-draw-btn:active,
    .mobile-floating-draw-btn.active {
        background: var(--accent-sun) !important;
        color: #000000 !important;
        border-color: #f59e0b !important;
        box-shadow: 0 0 16px rgba(245, 158, 11, 0.7) !important;
        transform: scale(1.05);
    }

    /* Top-justified, centered, static proportionate 1:1 square chart box */
    .mobile-massings-chart-box {
        flex: 0 0 auto;
        width: 100vw;
        height: 100vw;
        max-width: 460px;
        max-height: 460px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        background: #0d0f12;
        overflow: hidden;
        margin: 0 auto;
    }

    /* Minimal Massings List Footer below Chart with Delete Button */
    .mobile-massings-footer-bar {
        flex: 0 0 auto;
        width: 100%;
        background: #141820;
        border-top: 1px solid var(--border-color);
        padding: 0.65rem 0.85rem;
    }

    .mobile-massings-items {
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
        width: 100%;
    }

    .mobile-massings-items .massing-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.5rem 0.75rem;
        background: #1c212c;
        border: 1px solid #283040;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.15s ease;
        text-align: left;
        width: 100%;
    }

    .mobile-massings-items .massing-item.selected {
        border-color: var(--accent-sun);
        background: rgba(245, 158, 11, 0.12);
    }

    .mobile-massings-items .massing-item-info {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
        gap: 0.6rem;
        flex: 1 1 auto;
        min-width: 0;
    }

    .mobile-massings-items .massing-item-name {
        font-size: 0.8rem;
        font-weight: 600;
        color: var(--text-primary);
        text-align: left;
        white-space: nowrap;
    }

    .mobile-massings-items .massing-item-meta {
        font-size: 0.7rem;
        color: var(--text-muted);
        font-family: var(--font-mono);
        text-align: left;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-massings-items .massing-item-delete {
        background: transparent;
        border: none;
        color: #ef4444;
        cursor: pointer;
        padding: 0.25rem 0.4rem;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0.8;
        transition: all 0.15s ease;
        flex-shrink: 0;
        margin-left: 0.5rem;
    }

    .mobile-massings-items .massing-item-delete:active {
        opacity: 1;
        background: rgba(239, 68, 68, 0.2);
        transform: scale(1.1);
    }

    .mobile-massings-items .empty-massings-hint {
        display: none !important;
    }

    .mobile-canvas-container {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .mobile-canvas-container .polar-canvas {
        display: block;
        max-width: 100%;
        max-height: 100%;
        margin: auto;
    }

    /* =========================================================
       Touch-Friendly Display & Analysis Toggle Buttons
       ========================================================= */
    .analysis-toggle-buttons-grid {
        display: flex;
        flex-direction: column;
        gap: 0.55rem;
        margin-top: 0.5rem;
    }

    .analysis-toggle-btn {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
        min-height: 44px;
        padding: 0.65rem 0.85rem;
        background: #181c24;
        border: 1.5px solid #262b36;
        border-radius: 8px;
        color: var(--text-secondary);
        font-family: inherit;
        font-size: 0.82rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.15s ease;
        text-align: left;
    }

    .analysis-toggle-btn.active {
        background: rgba(245, 158, 11, 0.08);
        border-color: var(--accent-sun);
        color: var(--text-primary);
        font-weight: 600;
    }

    .analysis-toggle-btn .toggle-indicator {
        width: 22px;
        height: 22px;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.85rem;
        font-weight: 700;
        background: #232a38;
        color: var(--text-muted);
        flex-shrink: 0;
        transition: all 0.15s ease;
    }

    .analysis-toggle-btn.active .toggle-indicator {
        background: var(--accent-sun);
        color: #000000;
    }

    /* =========================================================
       PAGE 3: Analysis & Sun Data Page
       ========================================================= */
    .mobile-analysis-page {
        padding: 0.85rem;
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
        padding-bottom: 2.5rem;
    }

    .mobile-card-section {
        background: #141820;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 0.85rem;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    }

    .mobile-section-header {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.45rem;
        border-bottom: 1px solid #1f2633;
    }

    .mobile-section-title {
        font-size: 0.82rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--text-primary);
        margin: 0;
    }

    .mobile-unit-toggle {
        display: flex;
        background: rgba(0, 0, 0, 0.4);
        border: 1px solid var(--border-color);
        border-radius: 6px;
        padding: 2px;
        gap: 3px;
    }

    .mobile-unit-btn {
        flex: 1;
        padding: 0.45rem 0.5rem;
        font-size: 0.78rem;
        font-weight: 600;
        font-family: inherit;
        background: transparent;
        border: none;
        color: var(--text-muted);
        border-radius: 4px;
        cursor: pointer;
        transition: all 0.15s ease;
    }

    .mobile-unit-btn.active {
        background: var(--accent-sun);
        color: #000000;
        font-weight: 700;
    }

    .mobile-toggle-list {
        display: flex;
        flex-direction: column;
        gap: 0.55rem;
    }

    .mobile-toggle-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 0.78rem;
        color: var(--text-primary);
        cursor: pointer;
    }

    .mobile-scale-control {
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
        margin-top: 0.85rem;
        padding-top: 0.65rem;
        border-top: 1px solid #1f2633;
    }

    .mobile-scale-label-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 0.76rem;
        color: var(--text-muted);
    }

    .mobile-hud-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.45rem;
    }

    .mobile-hud-item {
        display: flex;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.3);
        border: 1px solid #1f2633;
        border-radius: 6px;
        padding: 0.4rem 0.6rem;
        gap: 0.15rem;
    }

    .mobile-hud-label {
        font-size: 0.65rem;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.03em;
    }

    .mobile-hud-val {
        font-family: var(--font-mono);
        font-size: 0.88rem;
        font-weight: 700;
        color: var(--accent-sun);
    }

    .mobile-camera-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.45rem;
    }

    .mobile-camera-grid .camera-btn {
        padding: 0.5rem 0.6rem;
        font-size: 0.75rem;
        justify-content: center;
    }

    /* =========================================================
       PAGE 4: Location Map & City Database
       ========================================================= */
    .mobile-location-page {
        padding: 0.85rem;
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
        padding-bottom: 2.5rem;
    }

    .mobile-loc-card {
        background: #141820;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 0.85rem;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .mobile-loc-map-wrapper {
        position: relative;
        width: 100%;
        aspect-ratio: 2 / 1;
        background: #0f131a;
        border: 1px solid #232b38;
        border-radius: 6px;
        overflow: hidden;
    }

    .mobile-loc-map-wrapper canvas {
        width: 100%;
        height: 100%;
        display: block;
    }

    .mobile-loc-status {
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
    }

    .mobile-loc-status-coords {
        font-family: var(--font-mono);
        font-weight: 700;
        color: var(--accent-sun);
        font-size: 0.85rem;
    }

    .mobile-loc-status-name {
        font-weight: 600;
        color: var(--text-primary);
        font-size: 0.85rem;
    }

    .mobile-season-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.45rem;
    }

    .mobile-season-grid .season-btn {
        padding: 0.45rem 0.5rem;
        font-size: 0.75rem;
        text-align: center;
        justify-content: center;
    }

    /* =========================================================
       PAGE 5: Dedicated PDF / PNG Export Page
       ========================================================= */
    .mobile-export-page {
        padding: 0.85rem;
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
        padding-bottom: 2.5rem;
    }

    .mobile-export-card {
        background: #141820;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 0.95rem;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
    }

    .mobile-export-preview-wrap {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.45rem;
        margin: 0.35rem 0;
    }

    .export-preview-box.mobile-box {
        width: 280px;
        height: 280px;
        border-radius: 6px;
        overflow: hidden;
        border: 1px solid #283140;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .export-preview-box.mobile-box canvas {
        width: 280px;
        height: 280px;
        display: block;
    }

    .mobile-export-settings {
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
    }

    /* Inclusions Large Touch Toggle Buttons */
    .export-toggle-buttons-grid {
        display: flex;
        flex-direction: column;
        gap: 0.45rem;
        width: 100%;
    }

    .export-toggle-btn {
        display: flex;
        align-items: center;
        gap: 0.65rem;
        width: 100%;
        min-height: 44px;
        padding: 0.65rem 0.85rem;
        background: #10141c;
        border: 1px solid #283140;
        border-radius: 6px;
        color: var(--text-muted);
        font-size: 0.82rem;
        font-weight: 600;
        font-family: inherit;
        cursor: pointer;
        transition: all 0.15s ease;
        text-align: left;
    }

    .export-toggle-btn .toggle-indicator {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
        border-radius: 4px;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid #3b4657;
        font-size: 0.75rem;
        font-weight: 800;
        color: var(--text-muted);
        flex-shrink: 0;
    }

    .export-toggle-btn.active {
        background: rgba(245, 158, 11, 0.1);
        border-color: var(--accent-sun);
        color: var(--text-primary);
    }

    .export-toggle-btn.active .toggle-indicator {
        background: var(--accent-sun);
        border-color: var(--accent-sun);
        color: #000000;
    }

    .mobile-download-btn {
        width: 100%;
        justify-content: center;
        padding: 0.85rem;
        font-size: 0.92rem;
        font-weight: 700;
        margin-top: 0.5rem;
        border-radius: 6px;
        min-height: 48px;
    }
}
