/* ============================================================
   3D PRINTING EMPIRE — Design System
   Direction: industrial workshop console. Warm charcoal surfaces,
   heated-bed amber accent, condensed display type, square corners.
   ============================================================ */

:root {
    /* Typography */
    --font-display: 'Saira Condensed', 'Arial Narrow', sans-serif;
    --font-body: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
    --font-mono: 'IBM Plex Mono', 'Consolas', monospace;

    /* Surfaces — warm charcoal, never pure black */
    --bg-0: #101013;
    --bg-1: #161619;
    --bg-2: #1d1d21;
    --bg-3: #26262b;
    --bg-inset: #121215;

    /* Lines */
    --line: #2c2c33;
    --line-strong: #3d3d47;

    /* Text — warm off-whites */
    --text-1: #f0eee8;
    --text-2: #b3b1a8;
    --text-3: #7b7972;

    /* Accent — heated-bed amber */
    --accent: #ff9e2c;
    --accent-strong: #ffb75e;
    --accent-dim: #b96f1e;
    --accent-ink: #221200;

    /* Semantic */
    --ok: #8bc53f;
    --warn: #e8b93e;
    --bad: #e15a4e;
    --info: #62a8e5;

    /* Spacing scale */
    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-5: 24px;
    --sp-6: 32px;

    /* Shape */
    --radius: 2px;
    --radius-lg: 4px;

    /* Layout metrics */
    --hud-height: 52px;
    --status-height: 30px;
    --panel-width: 372px;
    --panel-width-tablet: 320px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--bg-0);
    color: var(--text-1);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.55;
    font-feature-settings: "kern" 1, "liga" 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    user-select: none;
    touch-action: none;
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

img, canvas {
    display: block;
    max-width: 100%;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.hidden {
    display: none !important;
}

::selection {
    background: var(--accent-dim);
    color: var(--text-1);
}

/* Inline SVG icons inherit text color */
.bx-icon {
    display: inline-block;
    vertical-align: middle;
    flex: none;
    fill: currentColor;
}
