/* EmuTron "Style A — Command Deck" redesign: shared tokens.
 * Loaded after emulator.css. Every redesign/*.css file builds on these tokens only.
 * The accent derives from the active theme's --scheme (set by .theme-* on #app), so the
 * Dark / Galaxy / Ice / Rose / Aurora themes keep working. Never hardcode the accent hue. */

#app {
    --rd-font: 'Sora', 'Inter', system-ui, sans-serif;
    --rd-mono: 'JetBrains Mono', ui-monospace, monospace;

    --rd-accent: var(--scheme);
    --rd-accent-soft: color-mix(in srgb, var(--scheme) 12%, transparent);
    --rd-accent-line: color-mix(in srgb, var(--scheme) 28%, transparent);
    --rd-accent-glow: color-mix(in srgb, var(--scheme) 34%, transparent);
    --rd-on-accent: #04130A;

    --rd-bg: #080808;
    --rd-surface: rgba(17, 17, 17, 0.72);
    --rd-surface-raised: linear-gradient(180deg, rgba(23, 23, 23, 0.85), rgba(10, 10, 10, 0.9));
    --rd-surface-sunken: rgba(0, 0, 0, 0.35);
    --rd-sidebar: rgba(5, 5, 5, 0.92);
    --rd-dialog: linear-gradient(180deg, rgba(27, 27, 27, 0.97), rgba(15, 15, 15, 0.97));

    --rd-border: rgba(255, 255, 255, 0.07);
    --rd-border-strong: rgba(255, 255, 255, 0.12);
    --rd-grid-line: rgba(255, 255, 255, 0.03);

    --rd-text: #FFFFFF;
    --rd-text-2: rgba(255, 255, 255, 0.62);
    --rd-text-3: rgba(255, 255, 255, 0.45);

    --rd-ok: #22C55E;
    --rd-warn: #FBBF24;
    --rd-danger: #E5484D;
    --rd-offline: #FF4D94;

    --rd-radius-lg: 20px;
    --rd-radius: 14px;
    --rd-radius-sm: 10px;
    --rd-radius-pill: 999px;

    --rd-pad: 24px;
    --rd-gap: 24px;
    --rd-control-h: 36px;
    --rd-touch: 44px;

    --rd-label: 11px;          /* uppercase section labels, letter-spacing 0.12em */
    --rd-body: 13px;
    --rd-title: 16px;
    --rd-page-title: 26px;

    --rd-shadow-dialog: 0 30px 80px rgba(0, 0, 0, 0.6);
    --rd-sidebar-w: 248px;

    font-family: var(--rd-font);
}

/* Galaxy's violet accent is too dark for the near-black on-accent text (~4:1); white reaches ~4.6:1. */
#app.theme-galaxy { --rd-on-accent: #FFFFFF; }

/* Shared primitives any area may use. Area files must not redefine these. */
#app .rd-label {
    font-size: var(--rd-label);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rd-text-3);
}

#app .rd-mono { font-family: var(--rd-mono); }
