:root {
    --color-hex: #3b82f6;
    --color-rgb: 59,130,246;
    --color-brand: #3B82F6;
    --color-brand-rgb: 59, 130, 246;

    /* Fallback aliases — закрывают 36 сломанных var(--ceramic-{color}) без shade-суффикса в _ceramic.css */
    --ceramic-gray: var(--ceramic-gray-500);
    --ceramic-orange: var(--ceramic-orange-500);
    --ceramic-green: var(--ceramic-green-500);
    --ceramic-red: var(--ceramic-red-500);
    --ceramic-blue: var(--ceramic-blue-500);

    /* Override legacy --brand-primary* из _ceramic.css:423-425 (hardcoded #E07D00 orange) на per-tenant brand */
    --brand-primary: var(--color-brand);
    --brand-primary-light: color-mix(in srgb, var(--color-brand) 50%, white);
    --brand-primary-dark: color-mix(in srgb, var(--color-brand) 85%, black);

    /* Override Tailwind --orange-600 (palette.css:93 = "212 106 34") → brand color в space-separated формате (rgb(var(--orange-600)) валиден). Это перекрашивает все utilities bg/text/border-orange-600 в brand color. */
        --orange-600: 59 130 246;
}

/* Text selection — раньше browser default (полупрозрачный синий) был незаметен на dark background */
::selection {
    background-color: color-mix(in srgb, var(--color-brand) 35%, transparent);
    color: inherit;
}
::-moz-selection {
    background-color: color-mix(in srgb, var(--color-brand) 35%, transparent);
    color: inherit;
}
