/*
 * Goldenheart Experience Layer
 * Shared finishing system for Web and .NET MAUI Blazor Hybrid hosts.
 * Loaded last so every host keeps one accessible, responsive visual language.
 */

:root,
:root[data-theme="light"] {
    color-scheme: light;
    --gh-canvas: #ffffff;
    --gh-surface: #ffffff;
    --gh-surface-raised: #ffffff;
    --gh-subtle: #ffffff;
    --gh-text: #171317;
    --gh-text-strong: #080608;
    --gh-muted: #655e65;
    --gh-border: #e7e2e4;
    --gh-border-strong: #cfc6ca;
    --gh-ink-950: #171317;
    --gh-ink-800: #302a30;
    --gh-ink-650: #655e65;
    --gh-ink-500: #777078;
    --gh-surface-soft: #ffffff;
    --gh-red: #c81f36;
    --gh-red-strong: #a91429;
    --gh-red-soft: #fff0f3;
    --gh-gold: #d9a22e;
    --gh-gold-strong: #9f6907;
    --gh-gold-soft: #fff8e7;
    --gh-gold-700: #8d5b07;
    --gh-gold-600: #a96d08;
    --gh-gold-500: #d9a22e;
    --gh-gold-300: #f1c96f;
    --gh-gold-100: #fff8e7;
    --gh-success: #167550;
    --gh-success-soft: #ebf8f2;
    --gh-danger: #af2638;
    --gh-danger-soft: #fff0f2;
    --gh-shadow-xs: 0 1px 2px rgba(31, 16, 20, .05);
    --gh-shadow-sm: 0 8px 24px rgba(31, 16, 20, .07);
    --gh-shadow: 0 20px 60px rgba(31, 16, 20, .09);
    --gh-shadow-lg: 0 32px 90px rgba(31, 16, 20, .13);
    --gh-focus: 0 0 0 3px rgba(200, 31, 54, .24);
    --gh-radius-xs: .65rem;
    --gh-radius-sm: .85rem;
    --gh-radius-md: 1.15rem;
    --gh-radius-lg: 1.65rem;
    --gh-radius-xl: 2rem;
    --gh-control-height: 2.875rem;
    --gh-content-max: 100rem;
    --gh-ease: cubic-bezier(.2, .8, .2, 1);
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --gh-canvas: #000000;
    --gh-surface: #000000;
    --gh-surface-raised: #000000;
    --gh-subtle: #000000;
    --gh-text: #eceaec;
    --gh-text-strong: #ffffff;
    --gh-muted: #aaa3aa;
    --gh-border: #2b282a;
    --gh-border-strong: #514b4e;
    --gh-ink-950: #ffffff;
    --gh-ink-800: #eceaec;
    --gh-ink-650: #b8b1b8;
    --gh-ink-500: #aaa3aa;
    --gh-surface-soft: #000000;
    --gh-red: #f04b60;
    --gh-red-strong: #ff687a;
    --gh-red-soft: #25070d;
    --gh-gold: #e4b247;
    --gh-gold-strong: #f4c966;
    --gh-gold-soft: #211807;
    --gh-gold-700: #f4c966;
    --gh-gold-600: #e4b247;
    --gh-gold-500: #d6a12e;
    --gh-gold-300: #f4cf79;
    --gh-gold-100: #211807;
    --gh-success: #67d2a1;
    --gh-success-soft: #061d13;
    --gh-danger: #ff8794;
    --gh-danger-soft: #24070c;
    --gh-shadow-xs: none;
    --gh-shadow-sm: none;
    --gh-shadow: none;
    --gh-shadow-lg: none;
    --gh-focus: 0 0 0 3px rgba(240, 75, 96, .42);
}

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

html {
    min-height: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 5.5rem;
    background: var(--gh-canvas);
}

body,
#app {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--gh-text);
    background: var(--gh-canvas);
    font-family: "Segoe UI Variable Text", "Segoe UI Variable", Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

::selection {
    color: var(--gh-text-strong);
    background: color-mix(in srgb, var(--gh-gold) 34%, transparent);
}

:where(h1, h2, h3) {
    color: var(--gh-text-strong);
    text-wrap: balance;
}

:where(p, li, dd) {
    text-wrap: pretty;
}

:where(a, button, input, select, textarea) {
    -webkit-tap-highlight-color: transparent;
}

:where(button, input, select, textarea) {
    font: inherit;
}

:where(button, [role="button"], a, input, select, textarea):focus-visible {
    outline: 2px solid var(--gh-red);
    outline-offset: 3px;
    box-shadow: none;
}

:where(input, select, textarea):focus-visible {
    outline-offset: 0;
    border-color: var(--gh-red) !important;
    box-shadow: var(--gh-focus) !important;
}

:where(button, input, select, textarea):disabled,
[aria-disabled="true"] {
    cursor: not-allowed !important;
    opacity: .56;
}

:where(input, select, textarea) {
    accent-color: var(--gh-red);
}

:where(input, textarea)::placeholder {
    color: color-mix(in srgb, var(--gh-muted) 78%, transparent);
}

:where(input, textarea):-webkit-autofill,
:where(input, textarea):-webkit-autofill:hover,
:where(input, textarea):-webkit-autofill:focus {
    -webkit-text-fill-color: var(--gh-text-strong);
    box-shadow: 0 0 0 1000px var(--gh-surface) inset !important;
    caret-color: var(--gh-text-strong);
}

:where(a, button, input, select, textarea) {
    touch-action: manipulation;
}

.gh-skip-link {
    position: fixed;
    z-index: 10000;
    top: .75rem;
    left: .75rem;
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    padding: .65rem 1rem;
    color: #fff;
    border-radius: var(--gh-radius-sm);
    background: var(--gh-red-strong);
    box-shadow: var(--gh-shadow-sm);
    font-weight: 750;
    text-decoration: none;
    transform: translateY(-180%);
    transition: transform .18s var(--gh-ease);
}

.gh-skip-link:focus {
    transform: translateY(0);
}

#main-content:focus {
    outline: 0;
}

* {
    scrollbar-color: color-mix(in srgb, var(--gh-muted) 35%, transparent) transparent;
    scrollbar-width: thin;
}

/* Shared action language */
.button,
.gh-primary-button,
.gh-text-button,
.offline-primary-action,
.offline-secondary-action,
.offline-footer button,
.gh-theme-toggle,
.gh-demo-launch,
.gh-demo-add-service,
.gh-service-form-actions a,
.gh-service-form-actions button {
    min-height: var(--gh-control-height);
    border-radius: var(--gh-radius-sm);
    font-weight: 720;
    letter-spacing: -.01em;
    transition: transform .18s var(--gh-ease), border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.button:hover,
.gh-primary-button:hover,
.offline-primary-action:hover,
.gh-demo-launch:hover,
.gh-demo-add-service:hover,
.gh-service-form-actions a:hover,
.gh-service-form-actions button:hover {
    transform: translateY(-1px);
}

.button-primary,
.gh-primary-button,
.offline-primary-action,
.gh-service-form-actions button {
    color: #fff;
    border-color: var(--gh-red);
    background: linear-gradient(135deg, var(--gh-red-strong), var(--gh-red));
    box-shadow: 0 10px 25px color-mix(in srgb, var(--gh-red) 22%, transparent);
}

.button-primary:hover,
.gh-primary-button:hover,
.offline-primary-action:hover,
.gh-service-form-actions button:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--gh-red-strong), color-mix(in srgb, var(--gh-red) 88%, var(--gh-gold)));
}

.button-quiet,
.gh-text-button,
.offline-secondary-action,
.gh-theme-toggle {
    color: var(--gh-text);
    border-color: var(--gh-border);
    background: var(--gh-surface);
}

.button-quiet:hover,
.gh-text-button:hover,
.offline-secondary-action:hover,
.gh-theme-toggle:hover {
    color: var(--gh-text-strong);
    border-color: var(--gh-border-strong);
    background: var(--gh-surface-raised);
}

/* Public sign-in */
.login-layout,
.login-page,
.login-panel {
    background: var(--gh-canvas);
}

.login-page {
    min-height: 100dvh;
    padding: clamp(.75rem, 2vw, 1.5rem);
}

.login-shell-card {
    width: min(100%, 110rem);
    min-height: calc(100dvh - clamp(1.5rem, 4vw, 3rem));
    display: grid;
    grid-template-columns: minmax(27rem, 1.08fr) minmax(25rem, .92fr);
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--gh-border);
    border-radius: clamp(1.15rem, 2.3vw, 2rem);
    background: var(--gh-surface);
    box-shadow: var(--gh-shadow-lg);
}

.login-story,
.login-panel {
    min-height: auto;
}

.login-story {
    background:
        radial-gradient(circle at 12% 12%, rgba(240, 201, 111, .25), transparent 25rem),
        radial-gradient(circle at 88% 88%, rgba(200, 31, 54, .18), transparent 24rem),
        linear-gradient(145deg, #1b1016, #381720 54%, #1a1014);
}

.login-story-copy {
    margin-block: clamp(2rem, 5vh, 5rem);
}

.login-story h2 {
    font-family: "Segoe UI Variable Display", "Segoe UI Variable", Inter, sans-serif;
    font-weight: 650;
    letter-spacing: -.055em;
}

.login-proof-grid {
    border-color: rgba(255, 255, 255, .14);
    border-radius: var(--gh-radius-md);
    background: rgba(255, 255, 255, .12);
}

.login-proof-grid div {
    background: rgba(255, 255, 255, .055);
}

.login-story-visual img {
    filter: drop-shadow(0 28px 38px rgba(0, 0, 0, .28));
}

.login-panel {
    position: relative;
    padding: clamp(1.5rem, 5vw, 5rem);
    background: var(--gh-surface);
}

.login-panel-toolbar {
    position: absolute;
    top: clamp(1rem, 2vw, 1.75rem);
    right: clamp(1rem, 2vw, 1.75rem);
}

.login-card {
    width: min(100%, 29rem);
}

.login-card h1,
.status-card h1,
.device-login-card h2,
.organization-create-hero h1 {
    font-family: "Segoe UI Variable Display", "Segoe UI Variable", Inter, sans-serif;
    font-weight: 650;
    letter-spacing: -.045em;
}

.login-form > input,
.device-login-form input {
    min-height: 3.25rem;
    color: var(--gh-text-strong);
    border-color: var(--gh-border);
    border-radius: var(--gh-radius-sm);
    background: var(--gh-surface);
    box-shadow: var(--gh-shadow-xs);
}

.login-platforms span {
    min-height: 2.25rem;
    display: inline-flex;
    align-items: center;
}

/* Web workspace */
.workspace-shell {
    grid-template-columns: 17rem minmax(0, 1fr);
    background: var(--gh-canvas);
}

.workspace-sidebar {
    color: #fff;
    background:
        radial-gradient(circle at 5% 4%, rgba(241, 201, 111, .14), transparent 12rem),
        linear-gradient(180deg, #171014 0%, #221218 52%, #100c0e 100%);
}

.workspace-nav-link {
    min-height: 3rem;
    border-radius: var(--gh-radius-sm);
}

.workspace-nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .07);
}

.workspace-nav-link.active {
    background: linear-gradient(90deg, rgba(200, 31, 54, .25), rgba(255, 255, 255, .07));
    box-shadow: inset 3px 0 0 var(--gh-red);
}

.workspace-topbar {
    min-height: 4.75rem;
    border-bottom-color: var(--gh-border);
    background: color-mix(in srgb, var(--gh-surface) 94%, transparent);
    backdrop-filter: blur(18px);
}

.workspace-search {
    min-height: 2.8rem;
    border-radius: 999px;
    background: var(--gh-surface);
}

.workspace-content {
    width: 100%;
    max-width: var(--gh-content-max);
    margin-inline: auto;
}

.dashboard-panel,
.dashboard-insight-card,
.dashboard-stats article,
.dashboard-action-card,
.dashboard-app-card,
.dashboard-addon-card,
.organization-form-section,
.organization-create-review,
.organization-created-card,
.published-app-shell {
    border-color: var(--gh-border);
    border-radius: var(--gh-radius-md);
    background: var(--gh-surface);
    box-shadow: var(--gh-shadow-xs);
}

.dashboard-hero {
    overflow: hidden;
    border-color: var(--gh-border);
    border-radius: var(--gh-radius-lg);
    background:
        radial-gradient(circle at 94% 15%, color-mix(in srgb, var(--gh-gold) 22%, transparent), transparent 17rem),
        radial-gradient(circle at 15% 100%, color-mix(in srgb, var(--gh-red) 9%, transparent), transparent 22rem),
        var(--gh-surface);
}

.dashboard-view-tabs,
.admin-view-tabs {
    scrollbar-width: none;
}

.dashboard-view-tabs a,
.admin-view-tabs a {
    min-height: 2.75rem;
    border-radius: 999px;
}

.dashboard-view-tabs a.is-active,
.admin-view-tabs a.is-active {
    color: #fff;
    border-color: #171014;
    background: #171014;
}

:root[data-theme="dark"] .dashboard-view-tabs a.is-active,
:root[data-theme="dark"] .admin-view-tabs a.is-active {
    color: #000;
    border-color: #fff;
    background: #fff;
}

.dashboard-stats article,
.dashboard-addon-card,
.dashboard-app-card,
.dashboard-list-card,
.dashboard-pulse-grid article {
    transition: transform .18s var(--gh-ease), border-color .18s ease, box-shadow .18s ease;
}

.dashboard-stats article:hover,
.dashboard-addon-card:hover,
.dashboard-app-card:hover,
.dashboard-list-card:hover,
.dashboard-pulse-grid article:hover {
    border-color: color-mix(in srgb, var(--gh-red) 35%, var(--gh-border));
    box-shadow: var(--gh-shadow-sm);
    transform: translateY(-2px);
}

.dashboard-card-icon,
.dashboard-stat-icon,
.organization-section-icon,
.admin-metric-icon,
.admin-tool-icon,
.workspace-module-icon {
    color: var(--gh-red);
    border-color: color-mix(in srgb, var(--gh-gold) 55%, var(--gh-border));
    background: linear-gradient(145deg, var(--gh-gold-soft), var(--gh-red-soft));
}

.dashboard-live-label,
.dashboard-active-chip,
.dashboard-secure-badge,
.admin-live,
.admin-privilege-badge {
    border-radius: 999px;
}

/* Organization and service forms */
.organization-create-page {
    width: min(100%, 92rem);
    margin-inline: auto;
}

.organization-create-hero {
    border-radius: var(--gh-radius-lg);
    background:
        radial-gradient(circle at 95% 20%, color-mix(in srgb, var(--gh-gold) 18%, transparent), transparent 18rem),
        var(--gh-surface);
}

.organization-form-section,
.gh-service-form-section {
    scroll-margin-top: 6rem;
}

.organization-field-grid input,
.organization-field-grid select,
.organization-field-grid textarea,
.gh-service-form-section input[type="text"],
.gh-service-form-section select,
.gh-service-form-section textarea {
    min-height: 3.05rem;
    color: var(--gh-text-strong);
    border-color: var(--gh-border);
    border-radius: var(--gh-radius-sm);
    background: var(--gh-surface);
    box-shadow: var(--gh-shadow-xs);
}

.organization-addons label,
.organization-platforms label,
.gh-service-platforms label {
    min-height: 3rem;
    border-radius: var(--gh-radius-sm);
    transition: border-color .18s ease, background-color .18s ease, transform .18s var(--gh-ease);
}

.organization-addons label:hover,
.organization-platforms label:hover,
.gh-service-platforms label:hover {
    border-color: color-mix(in srgb, var(--gh-red) 38%, var(--gh-border));
    transform: translateY(-1px);
}

.organization-create-review {
    top: 5.75rem;
}

.gh-service-form-shell,
.gh-demo {
    border-radius: var(--gh-radius-lg);
    box-shadow: var(--gh-shadow);
}

.gh-service-form-header,
.gh-demo-hero {
    background:
        radial-gradient(circle at 86% 12%, color-mix(in srgb, var(--gh-gold) 24%, transparent), transparent 20rem),
        radial-gradient(circle at 10% 100%, color-mix(in srgb, var(--gh-red) 10%, transparent), transparent 22rem),
        var(--gh-surface);
}

.gh-service-form-header h1,
.gh-demo-hero h1 {
    font-family: "Segoe UI Variable Display", "Segoe UI Variable", Inter, sans-serif;
    font-weight: 650;
}

.gh-service-form-section,
.gh-demo-panel,
.gh-demo-metrics article,
.gh-demo-feature-grid article {
    border-radius: var(--gh-radius-md);
    box-shadow: var(--gh-shadow-xs);
}

.gh-demo-sidebar {
    background: var(--gh-surface);
}

.gh-demo-personas button,
.gh-demo-nav-links a,
.gh-demo-quick-panel button {
    min-height: 2.85rem;
    border-radius: var(--gh-radius-sm);
}

.gh-demo-personas button.is-active,
.gh-demo-nav-links a.is-active {
    color: var(--gh-text-strong);
    border-color: color-mix(in srgb, var(--gh-red) 35%, var(--gh-border));
    background: linear-gradient(90deg, var(--gh-red-soft), var(--gh-gold-soft));
}

/* Native login, offline workspace and admin console */
.device-login-page,
.offline-app-shell,
.offline-main,
.admin-dashboard {
    background: var(--gh-canvas);
}

.device-login-header,
.offline-topbar,
.device-login-footer,
.offline-footer {
    background: var(--gh-surface);
}

.device-login-card,
.offline-empty-card,
.offline-workspace-card,
.offline-status-grid article,
.workspace-module-card,
.admin-welcome,
.admin-metric-grid article,
.admin-section,
.admin-panel {
    border-color: var(--gh-border);
    border-radius: var(--gh-radius-md);
    background: var(--gh-surface);
    box-shadow: var(--gh-shadow-xs);
}

.device-login-intro h1,
.offline-hero h1,
.admin-welcome h1,
.admin-section-heading h2,
.admin-panel-heading h2 {
    font-family: "Segoe UI Variable Display", "Segoe UI Variable", Inter, sans-serif;
    font-weight: 650;
    letter-spacing: -.045em;
}

.admin-shell {
    overflow: hidden;
    border-color: var(--gh-border);
    border-radius: var(--gh-radius-lg);
    background: var(--gh-surface);
    box-shadow: var(--gh-shadow);
}

.admin-sidebar {
    background:
        radial-gradient(circle at 5% 4%, rgba(241, 201, 111, .12), transparent 12rem),
        linear-gradient(180deg, #171014, #221218 55%, #100c0e);
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.is-active {
    background: linear-gradient(90deg, rgba(200, 31, 54, .23), rgba(255, 255, 255, .07));
}

.admin-commandbar {
    background: color-mix(in srgb, var(--gh-surface) 94%, transparent);
    backdrop-filter: blur(16px);
}

.admin-search {
    border-radius: 999px;
}

.admin-tool-grid article {
    border-radius: var(--gh-radius-md);
    transition: transform .18s var(--gh-ease), border-color .18s ease, box-shadow .18s ease;
}

.admin-tool-grid article:hover {
    border-color: color-mix(in srgb, var(--gh-red) 35%, var(--gh-border));
    box-shadow: var(--gh-shadow-sm);
    transform: translateY(-2px);
}

/* Dark mode must stay genuinely black. */
:root[data-theme="dark"] :where(.login-page, .login-panel, .workspace-shell, .workspace-topbar, .workspace-content,
    .dashboard-workspace, .dashboard-panel, .dashboard-insight-card, .dashboard-stats article, .dashboard-action-card,
    .dashboard-app-card, .dashboard-addon-card, .organization-create-page, .organization-create-hero,
    .organization-form-section, .organization-create-review, .organization-created-card, .published-app-shell,
    .device-login-page, .device-login-header, .device-login-card, .device-login-footer, .offline-app-shell,
    .offline-topbar, .offline-main, .offline-footer, .offline-empty-card, .offline-workspace-card,
    .offline-status-grid article, .workspace-module-card, .admin-dashboard, .admin-shell, .admin-content,
    .admin-commandbar, .admin-welcome, .admin-metric-grid article, .admin-section, .admin-panel,
    .gh-demo, .gh-demo-topbar, .gh-demo-sidebar, .gh-demo-main, .gh-demo-panel, .gh-demo-metrics article,
    .gh-demo-feature-grid article, .gh-service-form-shell, .gh-service-form-header, .gh-service-form-section) {
    background-color: #000;
}

/* Adaptive shells */
@media (max-width: 1180px) {
    .login-shell-card {
        grid-template-columns: minmax(23rem, .95fr) minmax(23rem, 1.05fr);
    }

    .workspace-shell {
        grid-template-columns: 14.5rem minmax(0, 1fr);
    }
}

@media (max-width: 960px) {
    .login-page {
        padding: 0;
    }

    .login-shell-card {
        min-height: 100dvh;
        grid-template-columns: 1fr;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .login-story {
        min-height: 19rem;
        padding: 1.5rem;
    }

    .login-story-copy {
        margin: 2.5rem 0 0;
    }

    .login-story h2 {
        max-width: 18ch;
        font-size: clamp(2.25rem, 8vw, 3.75rem);
    }

    .login-story-copy > p,
    .login-proof-grid,
    .login-story-visual,
    .login-story-footer {
        display: none;
    }

    .login-panel {
        min-height: auto;
        align-items: start;
        padding: 4.5rem clamp(1.25rem, 6vw, 3rem) 3rem;
    }

    .workspace-topbar {
        padding-inline: 1rem;
    }

    .workspace-search > span,
    .workspace-topbar-actions .button span:not(.gh-icon) {
        display: none;
    }

    .organization-create-review {
        position: static;
    }
}

@media (max-width: 760px) {
    :root {
        --gh-control-height: 3rem;
    }

    html {
        scroll-padding-top: 1rem;
    }

    .workspace-content,
    .offline-main,
    .gh-demo-main {
        padding-left: max(.8rem, env(safe-area-inset-left));
        padding-right: max(.8rem, env(safe-area-inset-right));
    }

    .workspace-mobile-nav {
        padding-bottom: max(.45rem, env(safe-area-inset-bottom));
        background: color-mix(in srgb, var(--gh-surface) 96%, transparent);
        backdrop-filter: blur(18px);
    }

    .workspace-mobile-nav a {
        min-height: 3.45rem;
        border-radius: var(--gh-radius-sm);
    }

    .dashboard-panel,
    .dashboard-insight-card,
    .organization-form-section,
    .organization-create-review,
    .gh-service-form-section,
    .gh-demo-panel {
        border-radius: var(--gh-radius-sm);
    }

    .gh-demo,
    .gh-service-form-shell,
    .admin-shell {
        border-inline: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .device-login-grid {
        width: min(100% - 1.5rem, 36rem);
    }

    .device-login-footer,
    .offline-footer {
        padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
    }
}

@media (max-width: 480px) {
    .login-story {
        min-height: 17rem;
    }

    .login-brand small,
    .workspace-brand small,
    .gh-brand small,
    .offline-brand small {
        letter-spacing: .05em;
    }

    .login-panel {
        padding-inline: 1rem;
    }

    .login-card h1 {
        font-size: 2.25rem;
    }

    .workspace-topbar-actions .gh-theme-toggle span,
    .device-login-header-actions .gh-theme-toggle span,
    .offline-topbar-actions .gh-theme-toggle span {
        display: none;
    }

    .workspace-topbar-actions .gh-theme-toggle,
    .device-login-header-actions .gh-theme-toggle,
    .offline-topbar-actions .gh-theme-toggle {
        width: 2.85rem;
        padding-inline: 0;
    }

    .button,
    .gh-primary-button,
    .offline-primary-action {
        min-height: 3.1rem;
    }
}

@media (hover: none) {
    .button:hover,
    .gh-primary-button:hover,
    .offline-primary-action:hover,
    .dashboard-stats article:hover,
    .dashboard-addon-card:hover,
    .dashboard-app-card:hover,
    .dashboard-list-card:hover,
    .dashboard-pulse-grid article:hover,
    .admin-tool-grid article:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

@media (forced-colors: active) {
    :where(button, a, input, select, textarea):focus-visible {
        outline: 3px solid Highlight;
    }

    .security-dot,
    .dashboard-live-label i,
    .admin-live i,
    .gh-demo-live i {
        forced-color-adjust: none;
    }
}

@media print {
    .workspace-sidebar,
    .workspace-topbar,
    .workspace-mobile-nav,
    .admin-sidebar,
    .admin-commandbar,
    .gh-theme-toggle,
    .gh-skip-link {
        display: none !important;
    }

    body,
    .workspace-shell,
    .workspace-content,
    .admin-shell,
    .admin-content {
        display: block;
        color: #000;
        background: #fff;
    }
}
