/* AVLedger — ECAM-inspired dark avionics design tokens */
:root {
    --bg: #080C0F;
    --bg-input: #0A1014;
    --panel: #0E1519;
    --panel2: #121B21;
    --panel-hover: #152129;
    --line: #1E2C34;
    --line2: #2A3D47;
    --text: #DCE7EC;
    --dim: #6F868F;
    --label: #38C5DC;
    --ok: #38D94A;
    --warn: #FFA51F;
    --crit: #FF4D3D;
    --cx: #C77DE8;
    --mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --sidebar-w: 232px;
    --mobile-topbar-h: 52px;
    --mobile-nav-h: 60px;
    --radius: 3px;
    --radius-sm: 2px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: rgba(56, 197, 220, 0.14);
}

html, body {
    min-height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
    color-scheme: dark;
}

body.modal-open {
    overflow: hidden;
    overscroll-behavior: none;
}

button, a, input, select, textarea, label {
    touch-action: manipulation;
}

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

/* Custom avionics scrollbars */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: var(--line2);
    border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--dim);
}

.mono { font-family: var(--mono); }
.dim { color: var(--dim); }
.text-label { color: var(--label); }
.text-warn { color: var(--warn); }
.text-ok { color: var(--ok); }
.text-crit { color: var(--crit); }
.tabular { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
