/* Industry colours are independent of the account's saved light, dark or tinted mode. */
@media screen {
    html[data-sm-industry="clubs"] {
        --industry-ink: #143759;
        --industry-accent: #12477b;
        --industry-chart: #317ac0;
        --industry-highlight: #a1d0ff;
        --industry-night: #0d2033;
    }
    html[data-sm-industry="retail"] {
        --industry-ink: #4f3518;
        --industry-accent: #774915;
        --industry-chart: #b4792b;
        --industry-highlight: #ffcf88;
        --industry-night: #281e15;
    }
    html[data-sm-industry="hair"] {
        --industry-ink: #422744;
        --industry-accent: #633566;
        --industry-chart: #9a599d;
        --industry-highlight: #efb9f0;
        --industry-night: #25182a;
    }
    html[data-sm-industry="nursing"] {
        --industry-ink: #174341;
        --industry-accent: #175654;
        --industry-chart: #408b88;
        --industry-highlight: #94ddd7;
        --industry-night: #102726;
    }
    html[data-sm-industry="homeservices"] {
        --industry-ink: #572a25;
        --industry-accent: #8b3829;
        --industry-chart: #bc5a44;
        --industry-highlight: #ffc0ab;
        --industry-night: #301a18;
    }

    html[data-sm-industry] {
        --theme-page: color-mix(in srgb, var(--industry-accent) 5%, white);
        --theme-surface: #fff;
        --theme-raised: color-mix(in srgb, var(--industry-accent) 8%, white);
        --theme-tint: color-mix(in srgb, var(--industry-accent) 12%, white);
        --theme-muted-bg: color-mix(in srgb, var(--industry-accent) 16%, white);
        --theme-line: color-mix(in srgb, var(--industry-accent) 28%, white);
        --theme-ink: var(--industry-ink);
        --theme-muted: color-mix(in srgb, var(--industry-ink) 78%, white);
        --theme-accent: var(--industry-accent);
        --theme-solid: var(--industry-accent);
        --theme-chart: var(--industry-chart);
        --theme-on-solid: #fff;
        --theme-focus: var(--industry-accent);
        --theme-success-bg: #e5f4eb;
        --theme-success: #215739;
        --theme-success-line: #7da991;
        --theme-info-bg: #e4f0fd;
        --theme-info: #174971;
        --theme-info-line: #86a9cc;
        --theme-warning-bg: #fff1d1;
        --theme-warning: #6a4515;
        --theme-warning-line: #b88d4b;
        --theme-danger-bg: #fdeae8;
        --theme-danger: #8b2f2b;
        --theme-danger-line: #c18682;
        --theme-card: var(--theme-surface);
        --theme-border: var(--theme-line);
        --theme-text: var(--theme-ink);
        --theme-rail: var(--theme-raised);
    }

    html[data-sm-industry][data-sm-theme="ocean"] {
        --theme-page: color-mix(in srgb, var(--industry-accent) 9%, white);
        --theme-raised: color-mix(in srgb, var(--industry-accent) 13%, white);
        --theme-tint: color-mix(in srgb, var(--industry-accent) 17%, white);
        --theme-muted-bg: color-mix(in srgb, var(--industry-accent) 20%, white);
    }

    html[data-sm-industry][data-sm-theme="dark"] {
        --theme-page: var(--industry-night);
        --theme-surface: color-mix(in srgb, var(--industry-night) 93%, white);
        --theme-raised: color-mix(in srgb, var(--industry-night) 87%, white);
        --theme-tint: color-mix(in srgb, var(--industry-night) 87%, var(--industry-highlight));
        --theme-muted-bg: color-mix(in srgb, var(--industry-night) 77%, white);
        --theme-line: color-mix(in srgb, var(--industry-night) 57%, var(--industry-highlight));
        --theme-ink: color-mix(in srgb, var(--industry-highlight) 12%, white);
        --theme-muted: color-mix(in srgb, var(--industry-highlight) 40%, white);
        --theme-accent: var(--industry-highlight);
        --theme-solid: var(--industry-accent);
        --theme-focus: var(--industry-highlight);
        --theme-success-bg: #1a3b30;
        --theme-success: #a5eac0;
        --theme-success-line: #538f73;
        --theme-info-bg: #213d53;
        --theme-info: #b8ddff;
        --theme-info-line: #6085a3;
        --theme-warning-bg: #473618;
        --theme-warning: #ffe3a4;
        --theme-warning-line: #967d49;
        --theme-danger-bg: #4e2a31;
        --theme-danger: #ffbfc3;
        --theme-danger-line: #b6767b;
    }

    html[data-sm-industry] .sidebar { background: var(--theme-rail); }
    html[data-sm-industry] .sidebar > a.active {
        background: var(--theme-tint);
        box-shadow: inset 3px 0 0 var(--theme-accent);
        color: var(--theme-accent);
    }

    html[data-sm-industry] :is(.sm-theme-swatch-light, .sm-theme-swatch-ocean) {
        background: linear-gradient(135deg, var(--theme-page) 50%, var(--industry-accent) 50%);
    }
    html[data-sm-industry] .sm-theme-swatch-dark {
        background: linear-gradient(135deg, var(--industry-night) 50%, var(--industry-highlight) 50%);
    }
    html[data-sm-industry] :is(.login-story, .login-photo)::after {
        background: linear-gradient(transparent 35%, color-mix(in srgb, var(--industry-ink) 88%, transparent));
    }

    /* Sporting venues use a navy masthead and a blue booking rail. */
    html[data-sm-industry="clubs"] .topbar {
        background: #143759;
        border-bottom-color: #356385;
        color: #fff;
    }
    html[data-sm-industry="clubs"] .topbar :is(.brand, .access-account, .topbar-context, .role-view-current, .demo-label, .btn.ghost, .topbar-feature-search label) {
        color: #fff;
    }
    html[data-sm-industry="clubs"] .topbar .brand small { color: #d5e9ff; }
    html[data-sm-industry="clubs"] .topbar :is(.brand-mark, .workspace-search-toggle) {
        background: #e2f0ff;
        color: #12477b;
        border-color: #b2d5f7;
    }
    html[data-sm-industry="clubs"] .topbar-context { border-top-color: #527b9f; }
    html[data-sm-industry="clubs"] .topbar :focus-visible { outline-color: #c5e4ff; }
    html[data-sm-industry="clubs"] .topbar .role-view-banner { color: var(--theme-ink); }

    html[data-sm-industry="clubs"] :is(.club-operation, .club-choices, .club-facility) {
        border-color: var(--theme-line);
    }
    html[data-sm-industry="clubs"] .club-facility {
        background: var(--theme-raised);
        color: var(--theme-accent);
    }
    html[data-sm-industry="clubs"] .club-tabs [aria-current="page"],
    html[data-sm-industry="clubs"] .venue-pos .vp-filter a[aria-current="true"] {
        background: var(--theme-solid);
        border-color: var(--theme-accent);
        color: var(--theme-on-solid);
    }
    html[data-sm-industry="clubs"] .club-event {
        background: var(--theme-info-bg);
        color: var(--theme-info);
        border-inline-start-color: var(--theme-info-line);
    }
    html[data-sm-industry="clubs"] .club-event.is-held {
        background: var(--theme-warning-bg);
        color: var(--theme-warning);
        border-inline-start-color: var(--theme-warning-line);
    }
    html[data-sm-industry="clubs"] .vp-till {
        --till-navy: #143759;
        --till-blue: var(--theme-solid);
    }
    html[data-sm-industry="clubs"] .vp-tile.vp-drink {
        background: var(--theme-info-bg);
        color: var(--theme-info);
        border-color: var(--theme-info-line);
        border-inline-start-color: var(--theme-info);
    }
    html[data-sm-industry="clubs"] .vp-tile.vp-food {
        background: var(--theme-warning-bg);
        color: var(--theme-warning);
        border-color: var(--theme-warning-line);
        border-inline-start-color: var(--theme-warning);
    }
}
