/* Senate Edict — white marble and lapis */
[data-theme="azorius"] {
    /* Background surfaces */
    --bg-color: #f3f5f9;
    --bg-gradient: linear-gradient(135deg, #f3f5f9 0%, #e9edf4 50%, #f3f5f9 100%);
    --panel-bg: #fffffff2;
    --panel-bg-opaque: #ffffff;
    --card-bg: #ffffffe0;
    --list-bg: #ffffffe6;
    --entry-bg: #f2f5fad9;
    --entry-hover-bg: #e8edf6f7;
    --canvas-bg: rgba(243, 245, 249, 0.86);
    --bg-secondary: #ffffff;
    --bg-tertiary: #e9edf4;
    --bg-primary: #f3f5f9;
    --hero-scrim: #f3f5f9;
    --border-primary: #d5dbe6;
    --text-accent: #1a4fb0;

    /* Text */
    --text-color: #131a26;
    --text-primary: #131a26;
    --text-muted: #5c6778;
    --text-secondary: #3f4a5c;

    /* Accent */
    --accent-color: #1f5fd0;
    --color-accent: #1f5fd0;
    --accent-primary: #1f5fd0;
    --accent-gradient: linear-gradient(135deg, #1f5fd0 0%, #1d4ed8 50%, #3b82f6 100%);
    --accent-glow: #1f5fd033;
    --accent-hover: #1f5fd066;
    --accent-bg: #1f5fd01a;
    --accent-bg-hover: #1f5fd033;
    --accent-light: #143f9a;
    --highlight: #1f5fd033;

    /* Borders */
    --border-color: #d5dbe6cc;
    --border-hover: #1f5fd0;
    --glass-border: #d5dbe699;

    /* Inputs and forms */
    --input-bg: #fffffff2;
    --input-border: #d5dbe6;
    --select-option-bg: #ffffff;
    --widget-bg: color-mix(in srgb, var(--bg-color) 86%, transparent);

    /* Buttons */
    --button-bg: #ffffff;
    --button-border: #1f5fd033;
    --button-text: #131a26;
    --button-primary-text: #ffffff;

    /* Tabs */
    --tab-bg: #ffffff;
    --tab-text: #3f4a5c;
    --tab-active-text: #131a26;

    /* Scrollbars */
    --scrollbar-track: #d5dbe64d;
    --scrollbar-thumb: #d5dbe6;
    --scrollbar-thumb-hover: #aeb8c8;

    /* Deck group headers */
    --deck-header-bg: linear-gradient(to right, rgba(31, 95, 208, 0.15), transparent);
    --deck-header-border: #1f5fd04d;
    --deck-header-text: var(--accent-color);

    /* Popups and modals */
    --popup-bg: #ffffff;
    --popup-border: #d5dbe6;
    --popup-shadow: #0f172a1f;
    --popup-section-border: #d5dbe6;

    /* Charts and stats */
    --chart-bg: #ffffff99;
    --chart-title-color: #5c6778;

    /* Dividers and collapse controls */
    --divider-border: #d5dbe6;
    --divider-btn-bg: #ffffff;
    --divider-btn-text: #3f4a5c;

    /* Scanning and loading */
    --scanning-bg: #f3f5f9fa;
    --scanning-text: #131a26;

    /* PRO gates */
    --pro-overlay-bg: #f3f5f9d9;
    --pro-overlay-border: #1f5fd066;
    --pro-text: #5c6778;

    /* Chips and tags */
    --chip-bg: #1f5fd0;
    --chip-text: #ffffff;
    --chip-or-bg: #0e7490;
    --chip-or-text: #ffffff;
    --chip-exclude-bg: #b91c1c;
    --chip-exclude-text: #ffffff;
    --tag-bg: #ffffff;
    --tag-text: #131a26;
    --tag-border: #d5dbe6;
    --favorite-color: #a16207;
    --favorite-bg: #a1620733;

    /* Card type colors */
    --type-creature: #15803d;
    --type-land: #92400e;
    --type-instant: #1d4ed8;
    --type-sorcery: #b91c1c;
    --type-enchantment: #6d28d9;
    --type-artifact: #57534e;
    --type-planeswalker: #a16207;
    --type-other: #6b7280;

    /* MTG mana colors (canonical, never themed) */
    --mtg-white-mana: #F0EFD8;
    --mtg-blue-mana: #4a90d9;
    --mtg-black-mana: #20242a;
    --mtg-red-mana: #e05c4b;
    --mtg-green-mana: #5cb85c;
    --mtg-generic-mana: #706e6eff;
    --mtg-multicolor: #CFB53B;
    --mtg-gold: #E69F00;

    /* Drawn over a live camera picture (the card scanner's outlines, badges and readout).
       The picture is not themed, so neither are these: light ink on a dark scrim reads
       over any table. */
    --on-media-ink: #ffffff;
    --on-media-scrim: #000000;

    /* MTG rarity colors (canonical) */
    --rarity-common: #373737;
    --rarity-uncommon: #BBC5D5;
    --rarity-rare: #FFE182;
    --rarity-mythic: #FF9550;
    --rarity-special: #A77BD6;
    --rarity-bonus: #5CC8C0;

    /* MTG archetype colors (canonical) */
    --archetype-aggro: #e74c3c;
    --archetype-tribal: #e67e22;
    --archetype-protection: #1abc9c;
    --archetype-control: #3498db;
    --archetype-ramp: #27ae60;
    --archetype-draw: #f39c12;
    --archetype-combo: #9b59b6;
    --archetype-balanced: #2ecc71;

    /* Semantic: success */
    --success-color: #15803d;
    --success-bg: #15803d1a;
    --success-border: #15803d4d;
    --success-bg-hover: #15803d33;

    /* Semantic: danger */
    --danger-color: #b91c1c;
    --danger: #b91c1c;
    --error-color: #b91c1c;
    --danger-bg: #b91c1c1a;
    --danger-border: #b91c1c66;
    --error-border: #b91c1c66;
    --danger-bg-hover: #b91c1c33;

    /* Semantic: warning */
    --warning-color: #a16207;
    --warning-bg: #a162071a;
    --warning-border: #a162074d;

    /* Semantic: info */
    --info-color: #0e7490;
    --info-bg: #0e74901a;
    --info-border: #0e74904d;
    --info-bg-hover: #0e749033;

    /* Social */
    --discord-color: #5865F2;

    /* Functional curve (cast timing) */
    --fc-sweet-spot: #0f766e;
    --fc-less-value: #a16207;
    --fc-reactive: #b91c1c;
    --fc-face: #7c3aed;

    /* Accent as RGB triplets, for rgba() */
    --accent-rgb: 31, 95, 208;
    --color-accent-rgb: 31, 95, 208;

    /* Overlays and banners */
    --overlay-bg: #0f172a99;
    --impersonation-bg: linear-gradient(135deg, #1f5fd0, #1d4ed8);

    /* Effects */
    --glass-blur: blur(12px);

    /* Breakpoints and chrome sizes (identical in every theme) */
    --mobile-width: 768px;
    --tablet-width: 1024px;
    --desktop-width: 1440px;
    --header-height: 60px;
    --mobile-header-height: 50px;
}
