/* VERSION: 1.3.0 */
/* CORE VARIABLES, RESET, AND LAYOUT */

:root {
    /* --- Modern High-Contrast Void & Glass Tokens --- */
    --bg-void: #07080b;
    --bg-main: #0a0c10;
    --bg-panel: #141722;
    --bg-surface-glass: rgba(18, 22, 34, 0.78);
    --bg-surface-glass-darker: rgba(10, 13, 20, 0.88);
    --bg-surface-elevated: rgba(26, 32, 48, 0.85);
    --bg-well-recessed: rgba(6, 8, 12, 0.88);
    --bg-hover: rgba(255, 255, 255, 0.08);
    --bg-sidebar: rgba(13, 16, 24, 0.85);
    --bg-header: rgba(11, 14, 20, 0.82);

    /* --- Crisp Glass Borders & Specular Rim Highlights --- */
    --glass-border: rgba(255, 255, 255, 0.13);
    --glass-border-bright: rgba(255, 255, 255, 0.28);
    --glass-rim-top: inset 0 1px 0 rgba(255, 255, 255, 0.22);
    --glass-shadow-deep: 0 24px 64px rgba(0, 0, 0, 0.88), 0 4px 20px rgba(0, 0, 0, 0.6);
    --border-color: rgba(255, 255, 255, 0.13);
    --sidebar-border: rgba(255, 255, 255, 0.10);

    /* --- Unified Greyscale Iconography Hierarchy --- */
    --icon-base: rgba(240, 246, 252, 0.72);
    --icon-hover: #ffffff;
    --icon-muted: rgba(240, 246, 252, 0.45);
    --icon-glow: drop-shadow(0 0 6px rgba(255, 255, 255, 0.45));

    /* --- High-Contrast Typography --- */
    --text-main: #f8fafc;
    --fg-main: #f8fafc;
    --text-muted: #94a3b8;
    --fg-muted: #94a3b8;
    --text-dim: #64748b;

    /* --- Accent & Status Accents --- */
    --accent: #6366f1;
    --accent-glow: rgba(99, 102, 241, 0.4);
    --accent-dim: #94a3b8;
    --highlight: #38bdf8;
    --error: #f43f5e;

    /* --- Universal Layout Metrics --- */
    --controls-height: 86px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

html {
    background-color: var(--bg-void, #07080b); 
}

body {
    background-color: var(--bg-void, #07080b);
    background-image: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main, #f8fafc);
    height: 100dvh; 
    width: 100vw;
    overflow: hidden;
    position: fixed;
    display: flex;
    flex-direction: column;
}

#app-layout {
    display: flex;
    width: 100%;
    flex: 1;
    min-height: 0; 
    position: relative;
    overflow: hidden;
    background-color: var(--bg-void, #07080b);
}