:root {
    --bg: #090b09;
    --bg-2: #10120f;
    --panel: #12150f;
    --panel-2: #0c0f0b;
    --panel-3: #171b14;
    --border: #4a513f;
    --border-strong: #707862;
    --text: #d4d0bf;
    --muted: #9d9678;
    --accent: #b7aa72;
    --accent-2: #d1c189;
    --danger: #b36a5f;
    --success: #7e9f69;
    --grid-line: rgba(183, 170, 114, 0.055);
    --overlay: rgba(0, 0, 0, 0.68);
    --focus: #ddd0a1;
    --hover-fill: rgba(183, 170, 114, 0.10);
    --active-fill: rgba(183, 170, 114, 0.16);
    --danger-fill: rgba(179, 106, 95, 0.16);
    --input-bg: #090b09;
    --input-bg-2: #0d0f0c;
    --chip-bg: #10130f;
    --shadow: 0 0 0 1px rgba(183,170,114,.12), 0 18px 44px rgba(0,0,0,.38);
    --transition-fast: 120ms cubic-bezier(.2,.7,.2,1);
    --drawer-width: 860px;
    --drawer-width-wide: 1120px;
    --left-drawer-width: 438px;
    --space-1: 6px;
    --space-2: 8px;
    --space-3: 10px;
    --space-4: 12px;
    --space-5: 14px;
    --space-6: 16px;
    --space-7: 18px;
    --space-8: 20px;
    --control-height: 40px;
    --control-height-compact: 34px;
    --control-padding-x: 12px;
    --label-size: 12px;
    --body-size: 13px;
    --radius-none: 0;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
    color: var(--text);
    font-family: Bahnschrift, "Roboto Condensed", "Arial Narrow", "Liberation Sans Narrow", "Nimbus Sans Narrow", monospace, sans-serif;
    letter-spacing: .01em;
}

body {
    overflow-y: scroll;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 64px 64px;
    opacity: 1;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255,255,255,.02), transparent 18%, transparent 82%, rgba(0,0,0,.18));
    mix-blend-mode: soft-light;
    opacity: .4;
}

button,
input,
select,
textarea {
    font: inherit;
    border-radius: var(--radius-none);
}

button {
    cursor: pointer;
}

a {
    color: var(--accent-2);
    text-decoration: none;
    transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

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

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}

hr {
    width: 100%;
    height: 1px;
    border: 0;
    background-color: rgba(183, 170, 114, .12);
}

/* V3 second-pass base palette: cold charcoal + muted khaki/olive. */
:root {
    --bg: #080a0a;
    --bg-2: #0d1111;
    --panel: #151918;
    --panel-2: #0e1111;
    --panel-3: #1a1f1d;
    --border: rgba(207,197,151,.14);
    --border-strong: rgba(207,197,151,.28);
    --text: #ddd9c9;
    --muted: #a39b7c;
    --accent: #a9a15f;
    --accent-2: #d0c287;
    --danger: #b36a5f;
    --success: #7e9f69;
    --grid-line: rgba(207,197,151,.045);
    --overlay: rgba(0,0,0,.74);
    --focus: #ded09a;
    --hover-fill: rgba(129,139,78,.12);
    --active-fill: rgba(129,139,78,.20);
    --input-bg: #090b0b;
    --input-bg-2: #101414;
    --shadow: 0 0 0 1px rgba(207,197,151,.10), 0 14px 42px rgba(0,0,0,.36);
}

html,
body {
    font-family: Inter, Bahnschrift, "Roboto Condensed", "Arial Narrow", "Liberation Sans Narrow", "Nimbus Sans Narrow", Arial, sans-serif;
}
