header {
    position: sticky;
    top: 0;
    z-index: 4000;
}

nav {
    position: sticky;
    top: 64px;
    z-index: 3500;
    max-width: 100vw;
}

main {
    position: relative;
    z-index: 1;
}

:root {
    --shell-border: rgba(148, 163, 184, 0.22);
    --shell-surface: rgba(255, 255, 255, 0.84);
    --shell-surface-strong: rgba(255, 255, 255, 0.94);
    --shell-subtle: rgba(248, 250, 252, 0.85);
    --shell-copy: #475569;
    --shell-heading: #0f172a;
    --shell-accent: #2563eb;
    --shell-copy-soft: #64748b;
    --shell-icon-soft: #475569;
    --shell-icon-strong: #0f172a;
    /* Premium veterinary landing palette */
    --vet-premium-bg-main: #f1f5f9;
    --vet-premium-bg-soft: #e2e8f0;
    --vet-premium-surface: #ffffff;
    --vet-premium-hero: #e2e8f0;
    --vet-premium-sage: #cbd5e1;
    --vet-premium-aqua: #60a5fa;
    --vet-premium-aqua-hover: #3b82f6;
    --vet-premium-text: #0f172a;
    --vet-premium-text-soft: #475569;
    --vet-premium-border: #e2e8f0;
    --vet-premium-shadow: rgba(15, 23, 42, 0.06);
    --vet-premium-ivory: #f8fafc;
    --vet-premium-accent-strong: #3b82f6;
    --tooltip-bg: rgba(15, 23, 42, 0.96);
    --tooltip-color: #f8fafc;
    --tooltip-border: rgba(255, 255, 255, 0.08);
    --tooltip-shadow: 0 16px 36px rgba(15, 23, 42, 0.22);
    --tooltip-arrow: rgba(15, 23, 42, 0.96);
}

.app-shell {
    position: relative;
    overflow-x: hidden;
}

.app-shell-backdrop {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.app-shell-orb {
    position: absolute;
    border-radius: 9999px;
    filter: blur(80px);
    opacity: 0.55;
}

.app-shell-orb--primary {
    top: -3rem;
    left: -6rem;
    width: 24rem;
    height: 24rem;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.3) 0%, rgba(59, 130, 246, 0.14) 48%, transparent 72%);
}

.app-shell-orb--secondary {
    right: -5rem;
    top: 20rem;
    width: 22rem;
    height: 22rem;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.24) 0%, rgba(16, 185, 129, 0.12) 52%, transparent 74%);
}

.app-shell-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(circle at center, rgba(15, 23, 42, 0.5), transparent 78%);
}

.app-main-shell {
    position: relative;
    z-index: 1;
}

body.app-shell-loading {
    cursor: progress;
}

body.app-shell-loading #app-main {
    opacity: 0.72;
    transition: opacity 0.18s ease;
}

body.app-shell-loading #app-main a,
body.app-shell-loading #app-main button,
body.app-shell-loading #app-main input,
body.app-shell-loading #app-main select,
body.app-shell-loading #app-main textarea {
    pointer-events: none;
}

.app-breadcrumb {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--shell-border);
    background: rgba(255, 255, 255, 0.78);
    border-radius: 999px;
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.workspace-page {
    position: relative;
    z-index: 1;
}

.workspace-hero {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem 1.35rem;
    border: 1px solid var(--shell-border);
    border-radius: 1.75rem;
    background:
        linear-gradient(180deg, var(--shell-surface-strong) 0%, var(--shell-surface) 100%);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.workspace-hero--compact {
    padding: 1.1rem 1.2rem;
}

.workspace-hero__content {
    min-width: 0;
}

.workspace-hero__actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.workspace-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.45rem;
    padding: 0.38rem 0.78rem;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, 0.14);
    background: linear-gradient(90deg, rgba(239, 246, 255, 0.92) 0%, rgba(240, 253, 250, 0.92) 100%);
    color: var(--shell-accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.workspace-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.95rem;
}

.workspace-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.46rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(248, 250, 252, 0.78);
    color: var(--shell-copy);
    font-size: 0.74rem;
    font-weight: 700;
}

.workspace-meta-pill i {
    color: var(--shell-accent);
}

.shell-icon-button {
    color: inherit;
}

.shell-icon-button i.topbar-svg-ready {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    font-size: 0;
    line-height: 1;
}

.shell-icon-button i.topbar-svg-ready::before {
    content: none !important;
}

.shell-icon-button i.topbar-svg-ready svg {
    width: 100%;
    height: 100%;
    display: block;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.shell-icon-button i.topbar-svg-ready .icon-fill {
    fill: currentColor;
    stroke: none;
}

.shell-icon-button i,
.app-shell i[class^="fa"],
.app-shell i[class*=" fa-"],
.login-page i[class^="fa"],
.login-page i[class*=" fa-"] {
    color: currentColor;
}

/* Sidebar horizontal scroll */
.sidebar-nav {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: auto;
    scrollbar-width: thin;
    min-width: 0;
}

.sidebar-nav::-webkit-scrollbar { height: 6px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; border-radius: 999px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.2); border-radius: 999px; }
.sidebar-nav:hover::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.4); }
.sidebar-nav::-webkit-scrollbar-thumb:hover { background: rgba(148, 163, 184, 0.55); }

html[data-theme="dark"] .sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); }
html[data-theme="dark"] .sidebar-nav:hover::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.25); }
html[data-theme="dark"] .sidebar-nav::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.4); }

.sidebar-nav-link {
    flex-shrink: 0;
}

.sidebar-nav-glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.95rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 245, 249, 0.96) 100%);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.sidebar-nav-glyph i {
    color: var(--shell-icon-soft);
    transition: color 0.18s ease, transform 0.18s ease;
}

.sidebar-nav-link:hover .sidebar-nav-glyph,
.sidebar-nav-link:focus-visible .sidebar-nav-glyph {
    transform: translateY(-1px) scale(1.04);
    border-color: rgba(96, 165, 250, 0.28);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.12);
}

.sidebar-nav-link:hover .sidebar-nav-glyph i,
.sidebar-nav-link:focus-visible .sidebar-nav-glyph i {
    color: var(--shell-accent);
    transform: scale(1.04);
}

.sidebar-nav-link--active .sidebar-nav-glyph {
    background: linear-gradient(180deg, rgba(224, 242, 254, 0.98) 0%, rgba(238, 242, 255, 0.98) 100%);
    border-color: rgba(59, 130, 246, 0.24);
    box-shadow: 0 14px 28px rgba(59, 130, 246, 0.16);
}

.sidebar-nav-link--active .sidebar-nav-glyph i {
    color: var(--shell-accent);
}

.workspace-stats-grid .rounded-2xl,
.workspace-stats-grid .rounded-3xl,
.workspace-surface,
.workspace-surface--table {
    backdrop-filter: blur(14px);
}

.workspace-content-stack > * + * {
    margin-top: 1.5rem;
}

.workspace-surface {
    border: 1px solid var(--shell-border);
    border-radius: 1.75rem;
    background: var(--shell-surface);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.workspace-surface--table {
    border: 1px solid var(--shell-border);
    border-radius: 1.75rem;
    background: var(--shell-surface-strong);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.workspace-filter-bar {
    position: relative;
}

.workspace-filter-bar::after {
    content: "";
    position: absolute;
    inset: auto 1.25rem -1px 1.25rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.34), transparent);
}

.workspace-table thead th {
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    font-weight: 800;
}

.workspace-table tbody tr {
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.workspace-table tbody tr:hover {
    background: rgba(248, 250, 252, 0.86);
}

.workspace-table td,
.workspace-table th,
.workspace-page label,
.workspace-page dt,
.workspace-page dd {
    color: inherit;
}

.workspace-empty-cell {
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.9) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.workspace-pagination {
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.72) 0%, rgba(255, 255, 255, 0.94) 100%);
}

.leaflet-container {
    z-index: 10 !important;
}

.leaflet-pane,
.leaflet-top,
.leaflet-bottom {
    z-index: 20 !important;
}

.leaflet-popup,
.leaflet-tooltip {
    z-index: 30 !important;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ── Topbar actions scroll — modern thin scrollbar with fade edges ── */
.topbar-actions-scroll {
    position: relative;
    overflow-x: auto;
    overflow-y: clip;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}

/* Topbar tooltips: JS-controlled position:fixed to escape overflow */
#topbar .tt {
    position: fixed;
    top: -999px;
    left: -999px;
    transform: translateX(-50%) translateY(-4px) scale(0.96);
}

/* Disable CSS hover for topbar — JS handles show/hide */
#topbar .tt-wrap:hover .tt,
#topbar .tt-wrap:focus-within .tt {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-4px) scale(0.96);
    transition-delay: 0s;
}

/* JS adds this class to show the active tooltip */
#topbar .tt.tt--visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0) scale(1) !important;
    transition-delay: 0s !important;
}

.topbar-actions-scroll::-webkit-scrollbar:horizontal {
    height: 3px;
}

.topbar-actions-scroll::-webkit-scrollbar:vertical {
    width: 0;
    height: 0;
}

.topbar-actions-scroll::-webkit-scrollbar-track:horizontal {
    background: transparent;
    border-radius: 999px;
    margin: 0 20px;
}

.topbar-actions-scroll::-webkit-scrollbar-thumb:horizontal {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    transition: background 0.3s ease;
}

.topbar-actions-scroll:hover::-webkit-scrollbar-thumb:horizontal {
    background: rgba(255, 255, 255, 0.45);
}

.topbar-actions-scroll::-webkit-scrollbar-thumb:horizontal:hover {
    background: rgba(255, 255, 255, 0.6);
}

.tt-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tt {
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) translateY(-4px) scale(0.96);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    width: max-content;
    max-width: min(18rem, calc(100vw - 2rem));
    white-space: normal;
    text-wrap: balance;
    text-align: center;
    line-height: 1.35;
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1) 0.35s,
                transform 0.2s cubic-bezier(0.16, 1, 0.3, 1) 0.35s,
                visibility 0.2s ease 0.35s;
    z-index: 9999999;
    background: var(--tooltip-bg);
    color: var(--tooltip-color);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.45rem 0.7rem;
    border-radius: 0.65rem;
    box-shadow: var(--tooltip-shadow), 0 8px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--tooltip-border);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
}

.tt::after {
    content: "";
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid var(--tooltip-arrow);
}

.tt-wrap:hover .tt,
.tt-wrap:focus-within .tt {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
    transition-delay: 0.4s;
}

.tt-wrap:not(:hover) .tt {
    transition-delay: 0s;
}

.tt-wrap.tt-active .tt {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0) scale(1) !important;
    pointer-events: none !important;
}

#btnTenantConfigMenu:focus .tt,
#btnTenantConfigMenu:focus-within .tt {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-4px);
}

#tenantConfigMenuContainer[open] #btnTenantConfigMenu .tt {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateX(-50%) translateY(-4px) !important;
}

[data-tooltip] {
    position: relative;
}

[data-tooltip]::before,
[data-tooltip]::after {
    position: absolute;
    left: 50%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 9999999;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    bottom: calc(100% + 10px);
    transform: translateX(-50%) translateY(6px) scale(0.98);
    width: max-content;
    max-width: min(18rem, calc(100vw - 2rem));
    padding: 0.55rem 0.72rem;
    border-radius: 0.85rem;
    background: var(--tooltip-bg);
    color: var(--tooltip-color);
    border: 1px solid var(--tooltip-border);
    box-shadow: var(--tooltip-shadow);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.35;
    white-space: normal;
    text-wrap: balance;
    text-align: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

[data-tooltip]::after {
    content: "";
    bottom: calc(100% + 4px);
    transform: translateX(-50%) translateY(6px);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--tooltip-arrow);
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after,
[data-tooltip]:focus-visible::before,
[data-tooltip]:focus-visible::after,
[data-tooltip].tt-active::before,
[data-tooltip].tt-active::after {
    opacity: 1;
    visibility: visible;
}

[data-tooltip]:hover::before,
[data-tooltip]:focus-visible::before,
[data-tooltip].tt-active::before {
    transform: translateX(-50%) translateY(0) scale(1);
}

[data-tooltip]:hover::after,
[data-tooltip]:focus-visible::after,
[data-tooltip].tt-active::after {
    transform: translateX(-50%) translateY(0);
}

[data-tooltip][data-tooltip-placement="bottom"]::before {
    top: calc(100% + 10px);
    bottom: auto;
    transform: translateX(-50%) translateY(-6px) scale(0.98);
}

[data-tooltip][data-tooltip-placement="bottom"]::after {
    top: calc(100% + 4px);
    bottom: auto;
    transform: translateX(-50%) translateY(-6px);
    border-top: 0;
    border-bottom: 6px solid var(--tooltip-arrow);
}

[data-tooltip][data-tooltip-placement="bottom"]:hover::before,
[data-tooltip][data-tooltip-placement="bottom"]:focus-visible::before,
[data-tooltip][data-tooltip-placement="bottom"].tt-active::before {
    transform: translateX(-50%) translateY(0) scale(1);
}

[data-tooltip][data-tooltip-placement="bottom"]:hover::after,
[data-tooltip][data-tooltip-placement="bottom"]:focus-visible::after,
[data-tooltip][data-tooltip-placement="bottom"].tt-active::after {
    transform: translateX(-50%) translateY(0);
}

#tenantConfigMenuContainer > #tenantConfigMenuPanel {
    display: none;
}

#tenantConfigMenuContainer[open] > #tenantConfigMenuPanel {
    display: block;
}

#tenantConfigMenuContainer > summary::-webkit-details-marker {
    display: none;
}

.nav-hidden {
    display: none !important;
}

#navbar {
    overflow-x: clip !important;
    overflow-y: visible !important;
    max-width: 100vw;
}
#navbar .tt {
    position: fixed;
}
.sidebar-nav {
    overflow-x: auto !important;
    overflow-y: visible !important;
}

.form-control {
    width: 100%;
    border: 1px solid rgb(203 213 225);
    border-radius: 0.75rem;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: rgb(30 41 59);
    background-color: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:hover {
    border-color: rgb(148 163 184);
}

.form-control:focus {
    outline: none;
    border-color: rgb(59 130 246);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-control[type="file"] {
    padding: 0.55rem 0.65rem;
    background: rgba(255, 255, 255, 0.88);
}

.form-control[type="file"]::file-selector-button {
    margin-right: 0.85rem;
    border: 0;
    border-radius: 0.85rem;
    padding: 0.55rem 0.9rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96) 0%, rgba(30, 41, 59, 0.96) 100%);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.form-control[type="file"]::file-selector-button:hover {
    transform: translateY(-1px);
    opacity: 0.94;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.22);
    outline-offset: 2px;
}

html[data-theme="light"] .app-shell .text-slate-500,
html[data-theme="light"] .app-shell .text-slate-600 {
    color: var(--shell-copy) !important;
}

html[data-theme="light"] .app-shell .text-slate-400 {
    color: var(--shell-copy-soft) !important;
}

html[data-theme="light"] .app-shell .text-slate-700,
html[data-theme="light"] .app-shell .text-slate-800 {
    color: #5b331c !important;
}

html[data-theme="light"] .workspace-table thead,
html[data-theme="light"] .workspace-page thead,
html[data-theme="light"] .workspace-page .uppercase {
    color: #8b5e3c !important;
}

html[data-theme="light"] #navbar .shell-icon-button {
    box-shadow: 0 12px 28px rgba(194, 65, 12, 0.12);
}

html[data-theme="light"] .sidebar-nav-link {
    color: #475569 !important;
}

html[data-theme="light"] .sidebar-nav-glyph {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(148, 163, 184, 0.2) !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}

html[data-theme="light"] .sidebar-nav-glyph i {
    color: #64748b !important;
}

html[data-theme="light"] .sidebar-nav-link:hover .sidebar-nav-glyph,
html[data-theme="light"] .sidebar-nav-link:focus-visible .sidebar-nav-glyph {
    border-color: rgba(59, 130, 246, 0.25) !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.08) !important;
    background: rgba(241, 245, 249, 0.95) !important;
}

html[data-theme="light"] .sidebar-nav-link:hover .sidebar-nav-glyph i,
html[data-theme="light"] .sidebar-nav-link:focus-visible .sidebar-nav-glyph i {
    color: #3b82f6 !important;
}

html[data-theme="light"] .sidebar-nav-link--active {
    color: #3b82f6 !important;
}

html[data-theme="light"] .sidebar-nav-link--active .sidebar-nav-glyph {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
    border-color: rgba(59, 130, 246, 0.22) !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1) !important;
}

html[data-theme="light"] .sidebar-nav-link--active .sidebar-nav-glyph i {
    color: #2563eb !important;
}

.form-check {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    color: rgb(51 65 85);
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
    width: 1rem;
    height: 1rem;
    accent-color: rgb(37 99 235);
}

.dashboard-reveal {
    animation: dashboard-reveal 0.45s ease both;
}

@keyframes dashboard-reveal {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

html[data-theme="dark"] {
    color-scheme: dark;
}

/* ── Light theme: Soft neutral — designed for 8+ hour work sessions ────
   Low-contrast, blue-grey palette. No warm tints. Reduces eye strain.
   Inspired by Linear, Notion, Vercel — professional, calm, focused. ── */

html[data-theme="light"] {
    color-scheme: light;
    --shell-border: rgba(148, 163, 184, 0.22);
    --shell-surface: rgba(248, 250, 252, 0.92);
    --shell-surface-strong: rgba(255, 255, 255, 0.97);
    --shell-subtle: rgba(241, 245, 249, 0.9);
    --shell-copy: #334155;
    --shell-heading: #0f172a;
    --shell-accent: #3b82f6;
    --shell-copy-soft: #64748b;
    --shell-icon-soft: #475569;
    --shell-icon-strong: #1e293b;
    --tooltip-bg: rgba(255, 255, 255, 0.97);
    --tooltip-color: #1e293b;
    --tooltip-border: rgba(148, 163, 184, 0.2);
    --tooltip-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
    --tooltip-arrow: rgba(255, 255, 255, 0.97);
}

html[data-theme="light"] body {
    background-color: #f8fafc !important;
    color: #1e293b !important;
}

html[data-theme="light"] .app-shell-orb--primary {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, rgba(59, 130, 246, 0.03) 48%, transparent 74%);
}

html[data-theme="light"] .app-shell-orb--secondary {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.04) 0%, rgba(99, 102, 241, 0.02) 54%, transparent 76%);
}

html[data-theme="light"] .app-shell-grid {
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
}

html[data-theme="light"] .app-breadcrumb,
html[data-theme="light"] .workspace-hero,
html[data-theme="light"] .workspace-surface,
html[data-theme="light"] .workspace-surface--table {
    background: rgba(255, 255, 255, 0.85) !important;
    border-color: rgba(148, 163, 184, 0.2) !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.03) !important;
}

html[data-theme="light"] .workspace-kicker {
    background: rgba(241, 245, 249, 0.8) !important;
    border-color: rgba(148, 163, 184, 0.18) !important;
    color: #3b82f6 !important;
}

html[data-theme="light"] .workspace-meta-pill {
    background: rgba(241, 245, 249, 0.85) !important;
    border-color: rgba(148, 163, 184, 0.16) !important;
    color: #475569 !important;
}

html[data-theme="light"] .workspace-meta-pill i {
    color: #3b82f6 !important;
}

html[data-theme="light"] .workspace-table tbody tr:hover {
    background: rgba(241, 245, 249, 0.6) !important;
}

html[data-theme="light"] .workspace-empty-cell,
html[data-theme="light"] .workspace-pagination {
    background: rgba(248, 250, 252, 0.8) !important;
    color: #64748b !important;
}

html[data-theme="light"] #topbar {
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 50%, #334155 100%) !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1), 0 8px 24px rgba(15, 23, 42, 0.06) !important;
}

html[data-theme="light"] #navbar {
    background: rgba(255, 255, 255, 0.88) !important;
    border-color: rgba(148, 163, 184, 0.18) !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
}

html[data-theme="light"] footer {
    background: rgba(248, 250, 252, 0.9) !important;
    border-color: rgba(148, 163, 184, 0.15) !important;
}

html[data-theme="light"] footer,
html[data-theme="light"] footer p,
html[data-theme="light"] footer div {
    color: #64748b !important;
}

html[data-theme="dark"] body {
    background-color: #020617 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] {
    --shell-border: rgba(71, 85, 105, 0.64);
    --shell-surface: rgba(15, 23, 42, 0.86);
    --shell-surface-strong: rgba(11, 18, 32, 0.96);
    --shell-subtle: rgba(15, 23, 42, 0.88);
    --shell-copy: #cbd5e1;
    --shell-heading: #f8fafc;
    --shell-accent: #93c5fd;
    --shell-copy-soft: #9fb3c8;
    --shell-icon-soft: #d7e5f6;
    --shell-icon-strong: #f8fafc;
    --tooltip-bg: rgba(11, 18, 32, 0.98);
    --tooltip-color: #f8fafc;
    --tooltip-border: rgba(71, 85, 105, 0.56);
    --tooltip-shadow: 0 20px 40px rgba(2, 6, 23, 0.42);
    --tooltip-arrow: rgba(11, 18, 32, 0.98);
}

html[data-theme="dark"] .app-shell-grid {
    background-image:
        linear-gradient(rgba(71, 85, 105, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(71, 85, 105, 0.12) 1px, transparent 1px);
}

html[data-theme="dark"] .app-breadcrumb,
html[data-theme="dark"] .workspace-hero,
html[data-theme="dark"] .workspace-surface,
html[data-theme="dark"] .workspace-surface--table {
    background: rgba(11, 18, 32, 0.9) !important;
    border-color: rgba(71, 85, 105, 0.64) !important;
    box-shadow: 0 18px 44px rgba(2, 6, 23, 0.45) !important;
}

html[data-theme="dark"] .workspace-kicker {
    background: linear-gradient(90deg, rgba(30, 41, 59, 0.92) 0%, rgba(15, 23, 42, 0.92) 100%) !important;
    border-color: rgba(96, 165, 250, 0.22) !important;
    color: #93c5fd !important;
}

html[data-theme="dark"] .workspace-meta-pill {
    background: rgba(15, 23, 42, 0.88) !important;
    border-color: rgba(71, 85, 105, 0.54) !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .workspace-meta-pill i {
    color: #93c5fd !important;
}

html[data-theme="dark"] .shell-icon-button {
    color: #f8fafc !important;
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.34);
}

html[data-theme="dark"] .app-shell i[class^="fa"],
html[data-theme="dark"] .app-shell i[class*=" fa-"] {
    color: currentColor;
    opacity: 1;
}

html[data-theme="dark"] .sidebar-nav-link {
    color: #dbe7f6 !important;
}

html[data-theme="dark"] .sidebar-nav-glyph {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%) !important;
    border-color: rgba(71, 85, 105, 0.56) !important;
    box-shadow: 0 10px 22px rgba(2, 6, 23, 0.36) !important;
}

html[data-theme="dark"] .sidebar-nav-glyph i {
    color: #dbe7f6 !important;
}

html[data-theme="dark"] .sidebar-nav-link:hover .sidebar-nav-glyph,
html[data-theme="dark"] .sidebar-nav-link:focus-visible .sidebar-nav-glyph {
    border-color: rgba(96, 165, 250, 0.48) !important;
    box-shadow: 0 14px 30px rgba(14, 165, 233, 0.22) !important;
}

html[data-theme="dark"] .sidebar-nav-link:hover .sidebar-nav-glyph i,
html[data-theme="dark"] .sidebar-nav-link:focus-visible .sidebar-nav-glyph i {
    color: #bfdbfe !important;
}

html[data-theme="dark"] .sidebar-nav-link--active .sidebar-nav-glyph {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.98) 0%, rgba(8, 47, 73, 0.98) 100%) !important;
    border-color: rgba(56, 189, 248, 0.54) !important;
    box-shadow: 0 16px 34px rgba(14, 165, 233, 0.24) !important;
}

html[data-theme="dark"] .sidebar-nav-link--active .sidebar-nav-glyph i {
    color: #7dd3fc !important;
}

html[data-theme="dark"] .app-shell .shell-icon-button i,
html[data-theme="dark"] .app-shell #navbar .sidebar-nav-glyph i,
html[data-theme="dark"] .app-shell .workspace-meta-pill i,
html[data-theme="dark"] .app-shell .workspace-kicker i,
html[data-theme="dark"] .app-shell .app-breadcrumb i {
    color: #f8fafc !important;
    text-shadow: 0 0 12px rgba(147, 197, 253, 0.16);
}

html[data-theme="dark"] .app-shell i.text-slate-400,
html[data-theme="dark"] .app-shell i.text-slate-500,
html[data-theme="dark"] .app-shell i.text-slate-600,
html[data-theme="dark"] .app-shell .text-slate-400 i,
html[data-theme="dark"] .app-shell .text-slate-500 i,
html[data-theme="dark"] .app-shell .text-slate-600 i {
    color: #dbe7f6 !important;
}

html[data-theme="dark"] .app-shell a:hover i,
html[data-theme="dark"] .app-shell button:hover i {
    color: inherit !important;
}

html[data-theme="dark"] .workspace-filter-bar::after {
    background: linear-gradient(90deg, transparent, rgba(71, 85, 105, 0.6), transparent) !important;
}

html[data-theme="dark"] .workspace-table tbody tr:hover {
    background: rgba(22, 32, 51, 0.92) !important;
}

html[data-theme="dark"] .workspace-empty-cell,
html[data-theme="dark"] .workspace-pagination {
    background: rgba(15, 23, 42, 0.9) !important;
}

html[data-theme="dark"] .workspace-table thead,
html[data-theme="dark"] .workspace-page thead,
html[data-theme="dark"] .workspace-page .uppercase {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] #topbar {
    background: linear-gradient(90deg, #020617 0%, #115e59 100%) !important;
}

html[data-theme="dark"] #navbar,
html[data-theme="dark"] footer {
    background-color: #020617 !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] #navbar a,
html[data-theme="dark"] footer,
html[data-theme="dark"] footer p,
html[data-theme="dark"] footer div {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .bg-white,
html[data-theme="dark"] .panel-glass {
    background-color: #0f172a !important;
}

html[data-theme="dark"] [class*="bg-white/"] {
    background-color: rgba(15, 23, 42, 0.78) !important;
}

html[data-theme="dark"] .bg-slate-50,
html[data-theme="dark"] [class*="bg-slate-50/"] {
    background-color: #111827 !important;
}

html[data-theme="dark"] .bg-slate-100 {
    background-color: #1e293b !important;
}

html[data-theme="dark"] .bg-slate-200,
html[data-theme="dark"] [class*="bg-slate-200/"] {
    background-color: #334155 !important;
}

html[data-theme="dark"] .border-slate-100,
html[data-theme="dark"] .border-slate-200,
html[data-theme="dark"] .border-slate-300,
html[data-theme="dark"] .border-slate-400 {
    border-color: #334155 !important;
}

html[data-theme="dark"] .text-slate-900 {
    color: #f8fafc !important;
}

html[data-theme="dark"] .text-slate-800 {
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .text-slate-700 {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .text-slate-600,
html[data-theme="dark"] .text-slate-500 {
    color: #bfd0e3 !important;
}

html[data-theme="dark"] .text-slate-300,
html[data-theme="dark"] .text-slate-200,
html[data-theme="dark"] .text-slate-100 {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .text-slate-400 {
    color: #93a9c1 !important;
}

html[data-theme="dark"] .shadow-soft {
    box-shadow: 0 16px 40px rgba(2, 6, 23, 0.45) !important;
}

html[data-theme="dark"] .shadow-strong {
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.62) !important;
}

html[data-theme="dark"] .bg-indigo-50,
html[data-theme="dark"] .bg-sky-50,
html[data-theme="dark"] .bg-cyan-50,
html[data-theme="dark"] .bg-cyan-100,
html[data-theme="dark"] .bg-emerald-50,
html[data-theme="dark"] .bg-amber-50,
html[data-theme="dark"] .bg-rose-50,
html[data-theme="dark"] .bg-sky-100,
html[data-theme="dark"] .bg-emerald-100,
html[data-theme="dark"] .bg-amber-100,
html[data-theme="dark"] .bg-rose-100,
html[data-theme="dark"] .bg-indigo-100 {
    background-color: #1e293b !important;
}

html[data-theme="dark"] .border-indigo-100,
html[data-theme="dark"] .border-indigo-200,
html[data-theme="dark"] .border-indigo-300,
html[data-theme="dark"] .border-sky-200,
html[data-theme="dark"] .border-sky-300,
html[data-theme="dark"] .border-cyan-200,
html[data-theme="dark"] .border-cyan-300,
html[data-theme="dark"] .border-emerald-200,
html[data-theme="dark"] .border-emerald-300,
html[data-theme="dark"] .border-amber-200,
html[data-theme="dark"] .border-amber-300,
html[data-theme="dark"] .border-rose-200,
html[data-theme="dark"] .border-rose-300 {
    border-color: #475569 !important;
}

html[data-theme="dark"] .text-slate-950 {
    color: #f8fafc !important;
}

html[data-theme="dark"] .text-indigo-700,
html[data-theme="dark"] .text-indigo-800,
html[data-theme="dark"] .text-indigo-900,
html[data-theme="dark"] .text-indigo-950,
html[data-theme="dark"] .text-cyan-700,
html[data-theme="dark"] .text-cyan-800,
html[data-theme="dark"] .text-cyan-900,
html[data-theme="dark"] .text-cyan-950,
html[data-theme="dark"] .text-cyan-100,
html[data-theme="dark"] .text-emerald-700,
html[data-theme="dark"] .text-emerald-800,
html[data-theme="dark"] .text-emerald-900,
html[data-theme="dark"] .text-emerald-950,
html[data-theme="dark"] .text-amber-700,
html[data-theme="dark"] .text-amber-800,
html[data-theme="dark"] .text-amber-900,
html[data-theme="dark"] .text-amber-950,
html[data-theme="dark"] .text-rose-700,
html[data-theme="dark"] .text-rose-800,
html[data-theme="dark"] .text-rose-900,
html[data-theme="dark"] .text-rose-950,
html[data-theme="dark"] .text-sky-700,
html[data-theme="dark"] .text-sky-800,
html[data-theme="dark"] .text-sky-900,
html[data-theme="dark"] .text-sky-950 {
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .hover\:bg-slate-50:hover,
html[data-theme="dark"] .hover\:bg-slate-100:hover,
html[data-theme="dark"] .hover\:bg-cyan-50:hover,
html[data-theme="dark"] .hover\:bg-cyan-100:hover,
html[data-theme="dark"] .hover\:bg-indigo-50:hover,
html[data-theme="dark"] .hover\:bg-indigo-100:hover,
html[data-theme="dark"] .hover\:bg-emerald-50:hover,
html[data-theme="dark"] .hover\:bg-emerald-100:hover {
    background-color: #1f2937 !important;
}

html[data-theme="dark"] .hover\:border-slate-300:hover,
html[data-theme="dark"] .hover\:border-cyan-200:hover,
html[data-theme="dark"] .hover\:border-indigo-300:hover {
    border-color: #64748b !important;
}

html[data-theme="dark"] .hover\:text-blue-800:hover,
html[data-theme="dark"] .hover\:text-primary:hover {
    color: #93c5fd !important;
}

html[data-theme="dark"] .bg-primary {
    background-color: #2563eb !important;
}

html[data-theme="dark"] .hover\:bg-blue-700:hover {
    background-color: #1d4ed8 !important;
}

html[data-theme="dark"] .vet-theme-surface {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .vet-theme-subtle {
    background-color: #111827 !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .vet-home .bg-white {
    background-color: #101a2c !important;
}

html[data-theme="dark"] .vet-home .bg-slate-50,
html[data-theme="dark"] .vet-home [class*="bg-slate-50/"] {
    background-color: #162033 !important;
}

html[data-theme="dark"] .vet-home .border-slate-200,
html[data-theme="dark"] .vet-home .border-slate-300,
html[data-theme="dark"] .vet-home .border-slate-400 {
    border-color: #334155 !important;
}

html[data-theme="dark"] .vet-home .text-slate-900 {
    color: #f8fafc !important;
}

html[data-theme="dark"] .vet-home .text-slate-700 {
    color: #e4eefb !important;
}

html[data-theme="dark"] .vet-home .text-slate-600,
html[data-theme="dark"] .vet-home .text-slate-500 {
    color: #c8d9eb !important;
}

html[data-theme="dark"] .vet-home .text-slate-400 {
    color: #a8bed4 !important;
}

html[data-theme="dark"] .vet-home .text-primary {
    color: #93c5fd !important;
}

html[data-theme="dark"] .vet-home .hover\:text-blue-800:hover,
html[data-theme="dark"] .vet-home .hover\:text-primary:hover {
    color: #bfdbfe !important;
}

html[data-theme="dark"] .vet-home .hover\:bg-slate-50:hover,
html[data-theme="dark"] .vet-home .hover\:bg-slate-100:hover {
    background-color: #1c2940 !important;
}

html[data-theme="dark"] .vet-home .hover\:border-slate-300:hover {
    border-color: #64748b !important;
}

html[data-theme="dark"] .vet-home .bg-sky-100 {
    background-color: rgba(14, 116, 144, 0.22) !important;
}

html[data-theme="dark"] .vet-home .bg-emerald-100 {
    background-color: rgba(5, 150, 105, 0.22) !important;
}

html[data-theme="dark"] .vet-home .bg-amber-100 {
    background-color: rgba(217, 119, 6, 0.2) !important;
}

html[data-theme="dark"] .vet-home .bg-rose-100 {
    background-color: rgba(225, 29, 72, 0.18) !important;
}

html[data-theme="dark"] .vet-home .bg-indigo-100 {
    background-color: rgba(79, 70, 229, 0.22) !important;
}

html[data-theme="dark"] .vet-home .text-sky-700 {
    color: #7dd3fc !important;
}

html[data-theme="dark"] .vet-home .text-emerald-700 {
    color: #86efac !important;
}

html[data-theme="dark"] .vet-home .text-amber-700 {
    color: #fcd34d !important;
}

html[data-theme="dark"] .vet-home .text-rose-700 {
    color: #fda4af !important;
}

html[data-theme="dark"] .vet-home .text-indigo-700 {
    color: #c7d2fe !important;
}

html[data-theme="dark"] .vet-home .border-emerald-200,
html[data-theme="dark"] .vet-home .border-emerald-300 {
    border-color: rgba(16, 185, 129, 0.35) !important;
}

html[data-theme="dark"] .vet-home .border-amber-200,
html[data-theme="dark"] .vet-home .border-amber-300 {
    border-color: rgba(245, 158, 11, 0.35) !important;
}

html[data-theme="dark"] .vet-home .border-rose-200,
html[data-theme="dark"] .vet-home .border-rose-300 {
    border-color: rgba(244, 63, 94, 0.35) !important;
}

html[data-theme="dark"] .vet-home .bg-emerald-50,
html[data-theme="dark"] .vet-home [class*="bg-emerald-50/"] {
    background-color: rgba(6, 95, 70, 0.28) !important;
}

html[data-theme="dark"] .vet-home .bg-amber-50,
html[data-theme="dark"] .vet-home [class*="bg-amber-50/"] {
    background-color: rgba(120, 53, 15, 0.28) !important;
}

html[data-theme="dark"] .vet-home .bg-rose-50,
html[data-theme="dark"] .vet-home [class*="bg-rose-50/"] {
    background-color: rgba(127, 29, 29, 0.24) !important;
}

html[data-theme="dark"] .vet-home .shadow-soft {
    box-shadow: 0 18px 44px rgba(2, 6, 23, 0.5) !important;
}

html[data-theme="dark"] .vet-screen {
    color: #dbe7f6 !important;
}

html[data-theme="dark"] .vet-screen .workspace-hero,
html[data-theme="dark"] .vet-screen .workspace-surface,
html[data-theme="dark"] .vet-screen .workspace-surface--table {
    background:
        linear-gradient(180deg, rgba(15, 24, 39, 0.98) 0%, rgba(12, 20, 34, 0.96) 100%) !important;
    border-color: rgba(71, 85, 105, 0.72) !important;
    box-shadow: 0 20px 44px rgba(2, 6, 23, 0.5) !important;
}

html[data-theme="dark"] .vet-screen .workspace-kicker {
    background: linear-gradient(90deg, rgba(30, 41, 59, 0.94) 0%, rgba(8, 47, 73, 0.8) 100%) !important;
    border-color: rgba(56, 189, 248, 0.28) !important;
    color: #93c5fd !important;
}

html[data-theme="dark"] .vet-screen .workspace-meta-pill {
    background: rgba(15, 23, 42, 0.92) !important;
    border-color: rgba(71, 85, 105, 0.62) !important;
    color: #dbe7f6 !important;
}

html[data-theme="dark"] .vet-screen .workspace-meta-pill i {
    color: #7dd3fc !important;
}

html[data-theme="dark"] .vet-screen .workspace-filter-bar {
    background: rgba(15, 23, 42, 0.78) !important;
    border-color: rgba(51, 65, 85, 0.88) !important;
}

html[data-theme="dark"] .vet-screen .workspace-pagination {
    border-color: rgba(51, 65, 85, 0.88) !important;
}

html[data-theme="dark"] .vet-screen .workspace-table thead {
    background: rgba(17, 24, 39, 0.94) !important;
}

html[data-theme="dark"] .vet-screen .workspace-table tbody tr {
    border-color: #223149 !important;
}

html[data-theme="dark"] .vet-screen.bg-white,
html[data-theme="dark"] .vet-screen .bg-white {
    background-color: #101a2c !important;
}

html[data-theme="dark"] .vet-screen [class*="bg-white/"] {
    background-color: rgba(16, 26, 44, 0.82) !important;
}

html[data-theme="dark"] .vet-screen .bg-slate-50,
html[data-theme="dark"] .vet-screen [class*="bg-slate-50/"] {
    background-color: #162033 !important;
}

html[data-theme="dark"] .vet-screen .bg-slate-100 {
    background-color: #1b2940 !important;
}

html[data-theme="dark"] .vet-screen .bg-slate-200,
html[data-theme="dark"] .vet-screen [class*="bg-slate-200/"] {
    background-color: #253349 !important;
}

html[data-theme="dark"] .vet-screen,
html[data-theme="dark"] .vet-screen .border-slate-100,
html[data-theme="dark"] .vet-screen .border-slate-200,
html[data-theme="dark"] .vet-screen .border-slate-300,
html[data-theme="dark"] .vet-screen .border-slate-400 {
    border-color: #334155 !important;
}

html[data-theme="dark"] .vet-screen .divide-slate-100 > :not([hidden]) ~ :not([hidden]) {
    border-color: #223149 !important;
}

html[data-theme="dark"] .vet-screen .text-slate-900 {
    color: #f8fafc !important;
}

html[data-theme="dark"] .vet-screen .text-slate-800,
html[data-theme="dark"] .vet-screen .text-slate-700 {
    color: #e4eefb !important;
}

html[data-theme="dark"] .vet-screen .text-slate-600,
html[data-theme="dark"] .vet-screen .text-slate-500 {
    color: #c8d9eb !important;
}

html[data-theme="dark"] .vet-screen .text-slate-400 {
    color: #a8bed4 !important;
}

html[data-theme="dark"] .vet-screen .text-primary {
    color: #93c5fd !important;
}

html[data-theme="dark"] .vet-screen .hover\:text-blue-800:hover,
html[data-theme="dark"] .vet-screen .hover\:text-primary:hover {
    color: #bfdbfe !important;
}

html[data-theme="dark"] .vet-screen .hover\:bg-white:hover,
html[data-theme="dark"] .vet-screen .hover\:bg-slate-50:hover,
html[data-theme="dark"] .vet-screen .hover\:bg-slate-100:hover {
    background-color: #1c2940 !important;
}

html[data-theme="dark"] .vet-screen .hover\:border-slate-300:hover,
html[data-theme="dark"] .vet-screen .hover\:border-indigo-300:hover,
html[data-theme="dark"] .vet-screen .hover\:border-cyan-200:hover {
    border-color: #64748b !important;
}

html[data-theme="dark"] .vet-screen .bg-sky-100 {
    background-color: rgba(14, 116, 144, 0.22) !important;
}

html[data-theme="dark"] .vet-screen .bg-sky-50 {
    background-color: rgba(14, 116, 144, 0.16) !important;
}

html[data-theme="dark"] .vet-screen .bg-cyan-50,
html[data-theme="dark"] .vet-screen .bg-cyan-100 {
    background-color: rgba(8, 145, 178, 0.2) !important;
}

html[data-theme="dark"] .vet-screen .bg-indigo-50,
html[data-theme="dark"] .vet-screen .bg-indigo-100 {
    background-color: rgba(79, 70, 229, 0.2) !important;
}

html[data-theme="dark"] .vet-screen .bg-emerald-50,
html[data-theme="dark"] .vet-screen [class*="bg-emerald-50/"] {
    background-color: rgba(6, 95, 70, 0.28) !important;
}

html[data-theme="dark"] .vet-screen .bg-emerald-100 {
    background-color: rgba(5, 150, 105, 0.22) !important;
}

html[data-theme="dark"] .vet-screen .bg-amber-50,
html[data-theme="dark"] .vet-screen [class*="bg-amber-50/"] {
    background-color: rgba(120, 53, 15, 0.28) !important;
}

html[data-theme="dark"] .vet-screen .bg-amber-100 {
    background-color: rgba(217, 119, 6, 0.2) !important;
}

html[data-theme="dark"] .vet-screen .bg-rose-50,
html[data-theme="dark"] .vet-screen [class*="bg-rose-50/"] {
    background-color: rgba(127, 29, 29, 0.24) !important;
}

html[data-theme="dark"] .vet-screen .bg-rose-100 {
    background-color: rgba(225, 29, 72, 0.18) !important;
}

html[data-theme="dark"] .vet-screen .text-cyan-700,
html[data-theme="dark"] .vet-screen .text-cyan-800,
html[data-theme="dark"] .vet-screen .text-cyan-900,
html[data-theme="dark"] .vet-screen .text-cyan-950,
html[data-theme="dark"] .vet-screen .text-sky-700,
html[data-theme="dark"] .vet-screen .text-sky-800,
html[data-theme="dark"] .vet-screen .text-sky-900,
html[data-theme="dark"] .vet-screen .text-sky-950 {
    color: #7dd3fc !important;
}

html[data-theme="dark"] .vet-screen .text-indigo-700,
html[data-theme="dark"] .vet-screen .text-indigo-800,
html[data-theme="dark"] .vet-screen .text-indigo-900,
html[data-theme="dark"] .vet-screen .text-indigo-950 {
    color: #c7d2fe !important;
}

html[data-theme="dark"] .vet-screen .text-emerald-700,
html[data-theme="dark"] .vet-screen .text-emerald-800,
html[data-theme="dark"] .vet-screen .text-emerald-900,
html[data-theme="dark"] .vet-screen .text-emerald-950 {
    color: #86efac !important;
}

html[data-theme="dark"] .vet-screen .text-amber-700,
html[data-theme="dark"] .vet-screen .text-amber-800,
html[data-theme="dark"] .vet-screen .text-amber-900,
html[data-theme="dark"] .vet-screen .text-amber-950 {
    color: #fcd34d !important;
}

html[data-theme="dark"] .vet-screen .text-rose-700,
html[data-theme="dark"] .vet-screen .text-rose-800,
html[data-theme="dark"] .vet-screen .text-rose-900,
html[data-theme="dark"] .vet-screen .text-rose-950 {
    color: #fda4af !important;
}

html[data-theme="dark"] .vet-screen .text-slate-950 {
    color: #f8fafc !important;
}

html[data-theme="dark"] .vet-screen .border-sky-200,
html[data-theme="dark"] .vet-screen .border-sky-300 {
    border-color: rgba(34, 211, 238, 0.32) !important;
}

html[data-theme="dark"] .vet-screen .border-cyan-200,
html[data-theme="dark"] .vet-screen .border-cyan-300 {
    border-color: rgba(34, 211, 238, 0.32) !important;
}

html[data-theme="dark"] .vet-screen .border-indigo-200,
html[data-theme="dark"] .vet-screen .border-indigo-300 {
    border-color: rgba(129, 140, 248, 0.32) !important;
}

html[data-theme="dark"] .vet-screen .border-emerald-200,
html[data-theme="dark"] .vet-screen .border-emerald-300 {
    border-color: rgba(16, 185, 129, 0.35) !important;
}

html[data-theme="dark"] .vet-screen .border-amber-200,
html[data-theme="dark"] .vet-screen .border-amber-300 {
    border-color: rgba(245, 158, 11, 0.35) !important;
}

html[data-theme="dark"] .vet-screen .border-rose-200,
html[data-theme="dark"] .vet-screen .border-rose-300 {
    border-color: rgba(244, 63, 94, 0.35) !important;
}

html[data-theme="dark"] .vet-screen .shadow-soft {
    box-shadow: 0 18px 44px rgba(2, 6, 23, 0.5) !important;
}

html[data-theme="dark"] .vet-screen .border-dashed {
    border-color: rgba(100, 116, 139, 0.72) !important;
}

html[data-theme="dark"] .vet-screen a[class*="bg-slate-900"],
html[data-theme="dark"] .vet-screen button[class*="bg-slate-900"],
html[data-theme="dark"] .vet-screen a.bg-primary,
html[data-theme="dark"] .vet-screen button.bg-primary {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%) !important;
    border-color: rgba(96, 165, 250, 0.34) !important;
    color: #f8fafc !important;
    box-shadow: 0 14px 28px rgba(2, 6, 23, 0.34) !important;
}

html[data-theme="dark"] .vet-screen a[class*="bg-slate-900"]:hover,
html[data-theme="dark"] .vet-screen button[class*="bg-slate-900"]:hover,
html[data-theme="dark"] .vet-screen a.bg-primary:hover,
html[data-theme="dark"] .vet-screen button.bg-primary:hover {
    background: linear-gradient(135deg, #132033 0%, #214b7a 100%) !important;
}

html[data-theme="dark"] .vet-screen a[class*="border-slate-300"],
html[data-theme="dark"] .vet-screen button[class*="border-slate-300"],
html[data-theme="dark"] .vet-screen a[class*="border-slate-200"],
html[data-theme="dark"] .vet-screen button[class*="border-slate-200"] {
    background: rgba(15, 23, 42, 0.92) !important;
    border-color: rgba(71, 85, 105, 0.82) !important;
    color: #dbe7f6 !important;
}

html[data-theme="dark"] .vet-screen a[class*="border-slate-300"]:hover,
html[data-theme="dark"] .vet-screen button[class*="border-slate-300"]:hover,
html[data-theme="dark"] .vet-screen a[class*="border-slate-200"]:hover,
html[data-theme="dark"] .vet-screen button[class*="border-slate-200"]:hover {
    background: #1c2940 !important;
    border-color: #64748b !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .vet-screen a[class*="border-rose-300"],
html[data-theme="dark"] .vet-screen button[class*="border-rose-300"] {
    background: rgba(69, 10, 10, 0.28) !important;
    border-color: rgba(244, 63, 94, 0.42) !important;
    color: #fda4af !important;
}

html[data-theme="dark"] .vet-screen a[class*="border-rose-300"]:hover,
html[data-theme="dark"] .vet-screen button[class*="border-rose-300"]:hover {
    background: rgba(127, 29, 29, 0.38) !important;
    color: #fecdd3 !important;
}

html[data-theme="dark"] .vet-screen .rounded-2xl.border.border-slate-200,
html[data-theme="dark"] .vet-screen .rounded-2xl.border.border-slate-300,
html[data-theme="dark"] .vet-screen .rounded-xl.border.border-slate-200,
html[data-theme="dark"] .vet-screen .rounded-xl.border.border-slate-300 {
    box-shadow: 0 14px 28px rgba(2, 6, 23, 0.22) !important;
}

html[data-theme="dark"] .form-control,
html[data-theme="dark"] .login-input,
html[data-theme="dark"] input[type="text"],
html[data-theme="dark"] input[type="password"],
html[data-theme="dark"] input[type="email"],
html[data-theme="dark"] input[type="number"],
html[data-theme="dark"] input[type="search"],
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
    background-color: #0b1220 !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .form-control[type="file"] {
    background-color: #0b1220 !important;
}

html[data-theme="dark"] .form-control[type="file"]::file-selector-button {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    color: #dbeafe;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
    color: #64748b !important;
}

html[data-theme="dark"] .login-heading,
html[data-theme="dark"] .login-label,
html[data-theme="dark"] .login-copy,
html[data-theme="dark"] .login-meta,
html[data-theme="dark"] .login-message {
    color: #cbd5e1 !important;
}

html[data-theme="light"] .login-hero-title {
    background-image: linear-gradient(135deg, #0f172a 0%, #3b82f6 52%, #6366f1 100%) !important;
    text-shadow: none !important;
}

html[data-theme="light"] .login-hero-subtitle {
    color: #475569 !important;
}

html[data-theme="light"] .login-legal {
    color: #64748b !important;
}

html[data-theme="dark"] .login-error {
    background-color: rgba(127, 29, 29, 0.25) !important;
    border-color: rgba(248, 113, 113, 0.35) !important;
    color: #fecaca !important;
}

html[data-theme="dark"] .login-legal {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .tt {
    background: rgba(15, 23, 42, 0.98);
    border-color: rgba(148, 163, 184, 0.16);
}

html[data-theme="dark"] .tt::after {
    border-bottom-color: rgba(15, 23, 42, 0.98);
}

html[data-theme="dark"] #tenantConfigMenuPanel,
html[data-theme="dark"] #userMenuPanel {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] #tenantConfigMenuPanel a:hover,
html[data-theme="dark"] #userMenuPanel a:hover {
    background-color: #111827 !important;
}


/* ── vet-premium-app: Unified neutral-cool — NO custom overrides ─────
   The home page now inherits the global light/dark theme entirely.
   Only the vet-premium-surface and component classes remain for
   the home page's unique layout cards (hero, module cards, etc.).
   ──────────────────────────────────────────────────────────────────── */

body.vet-premium-app {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    color: #0f172a;
}

body.vet-premium-app .app-shell-orb--primary {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 74%);
}
body.vet-premium-app .app-shell-orb--secondary {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.03) 0%, transparent 76%);
}
body.vet-premium-app .app-shell-grid {
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
}

/* Premium surface cards (home page layout) */
.vet-premium-surface {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 1.75rem;
    padding: 1.75rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 6px 20px rgba(15, 23, 42, 0.03);
    backdrop-filter: blur(8px);
}

.vet-premium-surface--hero {
    position: relative;
    overflow: hidden;
}

.vet-premium-surface--beige {
    background: rgba(241, 245, 249, 0.85);
}

.vet-premium-surface--metric {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(241, 245, 249, 0.88) 100%);
}

.vet-premium-hero__backdrop {
    position: absolute; inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.vet-premium-hero__content { position: relative; z-index: 1; }
.vet-premium-hero__title { font-size: 1.5rem; font-weight: 800; line-height: 1.3; color: #0f172a; }
.vet-premium-hero__copy { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.6; color: #475569; }
.vet-premium-eyebrow { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #3b82f6; }

/* Badges and pills */
.vet-premium-pill {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.35rem 0.85rem; border-radius: 999px;
    font-size: 0.72rem; font-weight: 700;
    background: rgba(241, 245, 249, 0.9); border: 1px solid rgba(148, 163, 184, 0.18); color: #3b82f6;
}
.vet-premium-badge {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.3rem 0.7rem; border-radius: 999px;
    font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
    background: rgba(241, 245, 249, 0.85); border: 1px solid rgba(148, 163, 184, 0.15); color: #475569;
}
.vet-premium-badge--aqua { background: rgba(59, 130, 246, 0.08); color: #2563eb; border-color: rgba(59, 130, 246, 0.15); }
.vet-premium-badge--soft { background: rgba(241, 245, 249, 0.9); color: #64748b; }
.vet-premium-tag {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.3rem 0.65rem; border-radius: 0.65rem;
    font-size: 0.68rem; font-weight: 600;
    background: rgba(241, 245, 249, 0.8); border: 1px solid rgba(148, 163, 184, 0.12); color: #475569;
}

/* Progress bar */
.vet-premium-progress { height: 6px; border-radius: 999px; background: rgba(148, 163, 184, 0.15); overflow: hidden; }
.vet-premium-progress__bar { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #3b82f6 0%, #6366f1 100%); transition: width 0.6s ease; }

/* Icon shell */
.vet-premium-icon-shell {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.75rem; height: 2.75rem; border-radius: 1rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.08);
}
.vet-premium-icon-shell--soft { background: rgba(241, 245, 249, 0.9); color: #64748b; box-shadow: none; }

/* Buttons */
.vet-premium-btn {
    display: inline-flex; align-items: center; gap: 0.45rem;
    padding: 0.5rem 1rem; border-radius: 0.75rem;
    font-size: 0.8rem; font-weight: 600; transition: all 0.15s ease; border: 1px solid transparent; cursor: pointer;
}
.vet-premium-btn--primary { background: #3b82f6; color: #fff; border-color: #3b82f6; }
.vet-premium-btn--primary:hover { background: #2563eb; }
.vet-premium-btn--secondary { background: rgba(241, 245, 249, 0.9); color: #334155; border-color: rgba(148, 163, 184, 0.2); }
.vet-premium-btn--secondary:hover, .vet-premium-btn--ghost:hover { background: rgba(226, 232, 240, 0.7); }
.vet-premium-btn--ghost { background: transparent; color: #475569; border-color: rgba(148, 163, 184, 0.15); }

/* Mini cards */
.vet-premium-mini-card {
    background: rgba(255, 255, 255, 0.85); border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 1.25rem; padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}
.vet-premium-mini-card__label { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #64748b; }
.vet-premium-mini-card__value { font-size: 1.75rem; font-weight: 900; color: #0f172a; margin-top: 0.35rem; }
.vet-premium-mini-card__meta { font-size: 0.72rem; color: #94a3b8; margin-top: 0.25rem; }

/* Module cards */
.vet-premium-module-card {
    background: rgba(255, 255, 255, 0.88); border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 1.5rem; padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03); transition: box-shadow 0.2s ease;
}
.vet-premium-module-card:hover { box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06); }
.vet-premium-module-card__kicker { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #3b82f6; }
.vet-premium-module-card__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.5rem; height: 2.5rem; border-radius: 0.85rem;
    background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 100%); color: #4f46e5;
}
.vet-premium-module-card__stat { background: rgba(241, 245, 249, 0.6); border-radius: 0.85rem; padding: 0.75rem; }
.vet-premium-module-card__stat-label { font-size: 0.65rem; font-weight: 600; color: #64748b; }
.vet-premium-module-card__stat-value { font-size: 1.25rem; font-weight: 900; color: #0f172a; display: block; margin-top: 0.15rem; }

/* Alerts */
.vet-premium-alert {
    background: rgba(241, 245, 249, 0.7); border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 1.25rem; padding: 1.25rem;
}
.vet-premium-alert--success { border-color: rgba(16, 185, 129, 0.2); background: rgba(236, 253, 245, 0.5); }
.vet-premium-alert--warning { border-color: rgba(245, 158, 11, 0.2); background: rgba(255, 251, 235, 0.5); }
.vet-premium-alert--danger { border-color: rgba(244, 63, 94, 0.2); background: rgba(255, 241, 242, 0.5); }
.vet-premium-alert__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2rem; height: 2rem; border-radius: 0.6rem; flex-shrink: 0;
    background: rgba(241, 245, 249, 0.9); color: #64748b;
}

/* Steps */
.vet-premium-step {
    display: flex; align-items: flex-start; gap: 0.75rem;
    padding: 0.85rem 1rem; border-radius: 1rem;
    background: rgba(241, 245, 249, 0.5); border: 1px solid rgba(148, 163, 184, 0.12);
}
.vet-premium-step.is-complete { background: rgba(236, 253, 245, 0.4); border-color: rgba(16, 185, 129, 0.15); }
.vet-premium-step__marker {
    display: inline-flex; align-items: center; justify-content: center;
    width: 1.75rem; height: 1.75rem; border-radius: 0.5rem; flex-shrink: 0;
    background: rgba(241, 245, 249, 0.9); color: #64748b; font-size: 0.7rem;
}
.vet-premium-step.is-complete .vet-premium-step__marker { background: rgba(16, 185, 129, 0.12); color: #059669; }

/* Notes */
.vet-premium-note {
    display: flex; align-items: flex-start; gap: 0.65rem;
    padding: 0.75rem; border-radius: 0.85rem;
    background: rgba(241, 245, 249, 0.5); font-size: 0.8rem; color: #475569;
}
.vet-premium-note i { color: #3b82f6; margin-top: 0.15rem; flex-shrink: 0; }

/* Trust grid */
.vet-premium-trust-grid { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.vet-premium-trust-item__number { font-size: 1.5rem; font-weight: 900; color: #0f172a; display: block; }
.vet-premium-trust-item__label { font-size: 0.7rem; color: #64748b; }

/* Quick form */
.vet-premium-quick-form { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: flex-end; }
.vet-premium-field { flex: 1; min-width: 180px; }
.vet-premium-field__label { display: block; font-size: 0.7rem; font-weight: 700; color: #475569; margin-bottom: 0.35rem; text-transform: uppercase; letter-spacing: 0.06em; }

/* Inline badges container */
.vet-premium-inline-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* Module card tone variants */
.vet-premium-module-card--indigo .vet-premium-module-card__kicker { color: #4f46e5; }
.vet-premium-module-card--emerald .vet-premium-module-card__kicker { color: #059669; }
.vet-premium-module-card--cyan .vet-premium-module-card__kicker { color: #0891b2; }
.vet-premium-module-card--amber .vet-premium-module-card__kicker { color: #d97706; }
.vet-premium-module-card--rose .vet-premium-module-card__kicker { color: #e11d48; }
.vet-premium-module-card--slate .vet-premium-module-card__kicker { color: #475569; }

.vet-premium-module-card--indigo .vet-premium-module-card__icon { background: linear-gradient(135deg, #eef2ff, #e0e7ff); color: #4f46e5; }
.vet-premium-module-card--emerald .vet-premium-module-card__icon { background: linear-gradient(135deg, #ecfdf5, #d1fae5); color: #059669; }
.vet-premium-module-card--cyan .vet-premium-module-card__icon { background: linear-gradient(135deg, #ecfeff, #cffafe); color: #0891b2; }
.vet-premium-module-card--amber .vet-premium-module-card__icon { background: linear-gradient(135deg, #fffbeb, #fef3c7); color: #d97706; }
.vet-premium-module-card--rose .vet-premium-module-card__icon { background: linear-gradient(135deg, #fff1f2, #fecdd3); color: #e11d48; }

/* Dark mode for vet-premium components */
html[data-theme="dark"] body.vet-premium-app { background: #020617; color: #e2e8f0; }
html[data-theme="dark"] .vet-premium-surface { background: rgba(15, 23, 42, 0.88); border-color: rgba(51, 65, 85, 0.5); }
html[data-theme="dark"] .vet-premium-surface--beige { background: rgba(15, 23, 42, 0.7); }
html[data-theme="dark"] .vet-premium-surface--metric { background: rgba(15, 23, 42, 0.8); }
html[data-theme="dark"] .vet-premium-hero__title { color: #e2e8f0; }
html[data-theme="dark"] .vet-premium-hero__copy { color: #94a3b8; }
html[data-theme="dark"] .vet-premium-eyebrow { color: #60a5fa; }
html[data-theme="dark"] .vet-premium-pill { background: rgba(30, 41, 59, 0.7); border-color: rgba(51, 65, 85, 0.4); color: #60a5fa; }
html[data-theme="dark"] .vet-premium-badge { background: rgba(30, 41, 59, 0.6); border-color: rgba(51, 65, 85, 0.3); color: #94a3b8; }
html[data-theme="dark"] .vet-premium-tag { background: rgba(30, 41, 59, 0.5); border-color: rgba(51, 65, 85, 0.3); color: #94a3b8; }
html[data-theme="dark"] .vet-premium-mini-card { background: rgba(15, 23, 42, 0.7); border-color: rgba(51, 65, 85, 0.4); }
html[data-theme="dark"] .vet-premium-mini-card__value { color: #e2e8f0; }
html[data-theme="dark"] .vet-premium-mini-card__label { color: #64748b; }
html[data-theme="dark"] .vet-premium-mini-card__meta { color: #64748b; }
html[data-theme="dark"] .vet-premium-module-card { background: rgba(15, 23, 42, 0.8); border-color: rgba(51, 65, 85, 0.4); }
html[data-theme="dark"] .vet-premium-module-card__stat { background: rgba(15, 23, 42, 0.5); }
html[data-theme="dark"] .vet-premium-module-card__stat-value { color: #e2e8f0; }
html[data-theme="dark"] .vet-premium-alert { background: rgba(15, 23, 42, 0.5); border-color: rgba(51, 65, 85, 0.3); }
html[data-theme="dark"] .vet-premium-step { background: rgba(15, 23, 42, 0.4); border-color: rgba(51, 65, 85, 0.3); }
html[data-theme="dark"] .vet-premium-note { background: rgba(15, 23, 42, 0.4); color: #94a3b8; }
html[data-theme="dark"] .vet-premium-trust-item__number { color: #e2e8f0; }
html[data-theme="dark"] .vet-premium-icon-shell { background: rgba(30, 41, 59, 0.8); color: #60a5fa; }
html[data-theme="dark"] .vet-premium-btn--secondary { background: rgba(30, 41, 59, 0.7); color: #cbd5e1; border-color: rgba(51, 65, 85, 0.4); }
html[data-theme="dark"] .vet-premium-btn--ghost { color: #94a3b8; border-color: rgba(51, 65, 85, 0.3); }
html[data-theme="dark"] .vet-premium-progress { background: rgba(51, 65, 85, 0.3); }

/* ══════════════════════════════════════════════════════════════════════
   VHUB — Module Hub Grid (23 modules, categorized)
   ══════════════════════════════════════════════════════════════════════ */

/* Category section */
.vhub-category { margin-top: 0.25rem; }
.vhub-category__header {
    display: flex; align-items: center; gap: 0.75rem;
    margin-bottom: 0.75rem; padding: 0 0.25rem;
}
.vhub-category__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.25rem; height: 2.25rem; border-radius: 0.65rem; flex-shrink: 0;
    font-size: 0.85rem;
}
.vhub-category__icon--core     { background: #e0f2fe; color: #0284c7; }
.vhub-category__icon--clinical { background: #d1fae5; color: #059669; }
.vhub-category__icon--services { background: #fef3c7; color: #d97706; }
.vhub-category__icon--admin    { background: #ffe4e6; color: #e11d48; }
.vhub-category__icon--crm      { background: #e0e7ff; color: #4f46e5; }
.vhub-category__icon--config   { background: #f1f5f9; color: #475569; }

.vhub-category__title {
    font-family: 'Poppins', sans-serif; font-size: 0.9rem; font-weight: 700;
    color: var(--vet-premium-text, #0f172a); line-height: 1.2;
}
.vhub-category__desc {
    font-size: 0.72rem; color: var(--vet-premium-text-soft, #64748b); margin-top: 0.1rem;
}

/* Module grid — responsive auto-fill */
.vhub-module-grid {
    display: grid; gap: 0.65rem;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
@media (min-width: 1280px) {
    .vhub-module-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
@media (min-width: 1536px) {
    .vhub-module-grid { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }
}

/* Module card */
.vhub-card {
    background: rgba(255,255,255,0.92); border: 1px solid rgba(148,163,184,0.14);
    border-radius: 1rem; padding: 1rem;
    display: flex; flex-direction: column; gap: 0.6rem;
    transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
    position: relative; overflow: hidden;
}
.vhub-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    border-radius: 1rem 1rem 0 0; opacity: 0; transition: opacity 0.18s ease;
}
.vhub-card:hover {
    box-shadow: 0 6px 20px rgba(15,23,42,0.07);
    border-color: rgba(148,163,184,0.25);
    transform: translateY(-1px);
}
.vhub-card:hover::before { opacity: 1; }

/* Card head: icon + meta */
.vhub-card__head { display: flex; align-items: flex-start; gap: 0.6rem; }
.vhub-card__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.1rem; height: 2.1rem; border-radius: 0.6rem; flex-shrink: 0;
    font-size: 0.85rem;
}
.vhub-card__meta { min-width: 0; flex: 1; }
.vhub-card__title {
    font-family: 'Poppins', sans-serif; font-size: 0.82rem; font-weight: 700;
    color: var(--vet-premium-text, #0f172a); line-height: 1.2;
}
.vhub-card__summary {
    font-size: 0.68rem; color: var(--vet-premium-text-soft, #64748b);
    line-height: 1.35; margin-top: 0.15rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Stat pill */
.vhub-card__stat {
    display: flex; align-items: baseline; gap: 0.35rem;
    background: rgba(241,245,249,0.6); border-radius: 0.5rem; padding: 0.35rem 0.6rem;
}
.vhub-card__stat-value {
    font-size: 1.1rem; font-weight: 900; color: var(--vet-premium-text, #0f172a);
}
.vhub-card__stat-label {
    font-size: 0.62rem; font-weight: 600; color: var(--vet-premium-text-soft, #64748b);
    text-transform: uppercase; letter-spacing: 0.04em;
}

/* Action buttons row */
.vhub-card__actions {
    display: flex; gap: 0.35rem; margin-top: auto;
}
.vhub-card__btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2rem; height: 2rem; border-radius: 0.5rem; font-size: 0.7rem;
    transition: all 0.15s ease; border: 1px solid transparent; cursor: pointer;
    text-decoration: none;
}
.vhub-card__btn--list {
    background: rgba(241,245,249,0.8); color: #475569; border-color: rgba(148,163,184,0.12);
}
.vhub-card__btn--create {
    background: #3b82f6; color: #fff;
}
.vhub-card__btn--dash {
    background: transparent; color: #64748b; border-color: rgba(148,163,184,0.12);
}
.vhub-card__btn--list:hover { background: #e2e8f0; color: #1e293b; }
.vhub-card__btn--create:hover { background: #2563eb; }
.vhub-card__btn--dash:hover { background: rgba(241,245,249,0.7); color: #334155; }

/* ── Tone variants: icon gradient + top bar ── */
/* Sky */
.vhub-card--sky .vhub-card__icon { background: linear-gradient(135deg, #e0f2fe, #bae6fd); color: #0284c7; }
.vhub-card--sky::before { background: linear-gradient(90deg, #38bdf8, #0ea5e9); }
.vhub-card--sky .vhub-card__title { color: #0c4a6e; }

/* Emerald */
.vhub-card--emerald .vhub-card__icon { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #059669; }
.vhub-card--emerald::before { background: linear-gradient(90deg, #34d399, #10b981); }
.vhub-card--emerald .vhub-card__title { color: #064e3b; }

/* Amber */
.vhub-card--amber .vhub-card__icon { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #d97706; }
.vhub-card--amber::before { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.vhub-card--amber .vhub-card__title { color: #78350f; }

/* Rose */
.vhub-card--rose .vhub-card__icon { background: linear-gradient(135deg, #ffe4e6, #fecdd3); color: #e11d48; }
.vhub-card--rose::before { background: linear-gradient(90deg, #fb7185, #f43f5e); }
.vhub-card--rose .vhub-card__title { color: #881337; }

/* Indigo */
.vhub-card--indigo .vhub-card__icon { background: linear-gradient(135deg, #e0e7ff, #c7d2fe); color: #4f46e5; }
.vhub-card--indigo::before { background: linear-gradient(90deg, #818cf8, #6366f1); }
.vhub-card--indigo .vhub-card__title { color: #312e81; }

/* Slate */
.vhub-card--slate .vhub-card__icon { background: linear-gradient(135deg, #f1f5f9, #e2e8f0); color: #475569; }
.vhub-card--slate::before { background: linear-gradient(90deg, #94a3b8, #64748b); }
.vhub-card--slate .vhub-card__title { color: #1e293b; }

/* ── Dark mode for vhub components ── */
html[data-theme="dark"] .vhub-category__icon--core     { background: rgba(14,165,233,0.15); color: #38bdf8; }
html[data-theme="dark"] .vhub-category__icon--clinical { background: rgba(16,185,129,0.15); color: #34d399; }
html[data-theme="dark"] .vhub-category__icon--services { background: rgba(245,158,11,0.15); color: #fbbf24; }
html[data-theme="dark"] .vhub-category__icon--admin    { background: rgba(244,63,94,0.15); color: #fb7185; }
html[data-theme="dark"] .vhub-category__icon--crm      { background: rgba(99,102,241,0.15); color: #818cf8; }
html[data-theme="dark"] .vhub-category__icon--config   { background: rgba(100,116,139,0.15); color: #94a3b8; }
html[data-theme="dark"] .vhub-category__title { color: #e2e8f0; }
html[data-theme="dark"] .vhub-category__desc { color: #64748b; }

html[data-theme="dark"] .vhub-card {
    background: rgba(15,23,42,0.82); border-color: rgba(51,65,85,0.4);
}
html[data-theme="dark"] .vhub-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.25); border-color: rgba(51,65,85,0.6);
}
html[data-theme="dark"] .vhub-card__title { color: #e2e8f0 !important; }
html[data-theme="dark"] .vhub-card__summary { color: #64748b; }
html[data-theme="dark"] .vhub-card__stat { background: rgba(15,23,42,0.5); }
html[data-theme="dark"] .vhub-card__stat-value { color: #e2e8f0; }
html[data-theme="dark"] .vhub-card__btn--list { background: rgba(30,41,59,0.7); color: #cbd5e1; border-color: rgba(51,65,85,0.3); }
html[data-theme="dark"] .vhub-card__btn--dash { color: #94a3b8; border-color: rgba(51,65,85,0.3); }
html[data-theme="dark"] .vhub-card__btn--list:hover { background: rgba(51,65,85,0.6); }
html[data-theme="dark"] .vhub-card__btn--dash:hover { background: rgba(30,41,59,0.5); }

html[data-theme="dark"] .vhub-card--sky .vhub-card__icon { background: rgba(14,165,233,0.15); color: #38bdf8; }
html[data-theme="dark"] .vhub-card--emerald .vhub-card__icon { background: rgba(16,185,129,0.15); color: #34d399; }
html[data-theme="dark"] .vhub-card--amber .vhub-card__icon { background: rgba(245,158,11,0.15); color: #fbbf24; }
html[data-theme="dark"] .vhub-card--rose .vhub-card__icon { background: rgba(244,63,94,0.15); color: #fb7185; }
html[data-theme="dark"] .vhub-card--indigo .vhub-card__icon { background: rgba(99,102,241,0.15); color: #818cf8; }
html[data-theme="dark"] .vhub-card--slate .vhub-card__icon { background: rgba(100,116,139,0.15); color: #94a3b8; }

/* Breakdown rows (reusable) */
.vhub-breakdown-row {
    display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
    padding: 0.6rem 0.85rem; border-radius: 0.65rem;
    background: rgba(241,245,249,0.5); border: 1px solid rgba(148,163,184,0.1);
}
.vhub-breakdown-row__label {
    font-size: 0.82rem; font-weight: 600; color: var(--vet-premium-text, #0f172a);
}
.vhub-breakdown-row__value {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 2rem; padding: 0.2rem 0.6rem; border-radius: 9999px;
    font-size: 0.72rem; font-weight: 700; color: #fff;
}
.vhub-breakdown-row__value--sky { background: #0284c7; }
.vhub-breakdown-row__value--emerald { background: #059669; }
.vhub-breakdown-row__value--amber { background: #d97706; }
.vhub-breakdown-row__value--rose { background: #e11d48; }
.vhub-breakdown-row__value--indigo { background: #4f46e5; }
.vhub-breakdown-row__value--slate { background: #475569; }

/* Empty state (reusable) */
.vhub-empty-state {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 1.5rem; border-radius: 0.85rem; text-align: center;
    background: rgba(241,245,249,0.4); border: 1px dashed rgba(148,163,184,0.2);
    color: var(--vet-premium-text-soft, #64748b); font-size: 0.8rem;
}
.vhub-empty-state i { font-size: 1.2rem; opacity: 0.5; }

/* Section panel (reusable surface for module dashboards) */
.vhub-panel {
    background: rgba(255,255,255,0.92); border: 1px solid rgba(148,163,184,0.14);
    border-radius: 1.25rem; padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(15,23,42,0.03);
}
.vhub-panel__eyebrow {
    font-size: 0.62rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.12em; color: var(--vet-premium-accent-strong, #3b82f6);
}
.vhub-panel__title {
    font-family: 'Poppins', sans-serif; font-size: 1rem; font-weight: 700;
    color: var(--vet-premium-text, #0f172a); margin-top: 0.25rem; line-height: 1.3;
}
.vhub-panel__desc {
    font-size: 0.78rem; color: var(--vet-premium-text-soft, #64748b);
    margin-top: 0.35rem; line-height: 1.5;
}

/* Gauge (coverage bars) */
.vhub-gauge__header { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.vhub-gauge__label { font-size: 0.72rem; font-weight: 600; color: var(--vet-premium-text-soft, #64748b); }
.vhub-gauge__pct { font-size: 1rem; font-weight: 900; color: var(--vet-premium-text, #0f172a); }

/* Progress bar color variants */
.vhub-progress--emerald { background: #10b981 !important; }
.vhub-progress--amber { background: #f59e0b !important; }
.vhub-progress--rose { background: #f43f5e !important; }

/* Shortcut links */
.vhub-shortcut {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.55rem 0.75rem; border-radius: 0.6rem;
    font-size: 0.78rem; font-weight: 600; color: var(--vet-premium-text, #0f172a);
    background: rgba(241,245,249,0.5); border: 1px solid rgba(148,163,184,0.1);
    transition: all 0.15s ease; text-decoration: none;
}
.vhub-shortcut i { color: #3b82f6; font-size: 0.72rem; width: 1rem; text-align: center; }
.vhub-shortcut:hover { background: rgba(226,232,240,0.7); border-color: rgba(148,163,184,0.2); }

/* Dark mode for reusable vhub components */
html[data-theme="dark"] .vhub-breakdown-row { background: rgba(15,23,42,0.4); border-color: rgba(51,65,85,0.3); }
html[data-theme="dark"] .vhub-breakdown-row__label { color: #e2e8f0; }
html[data-theme="dark"] .vhub-empty-state { background: rgba(15,23,42,0.3); border-color: rgba(51,65,85,0.3); color: #64748b; }
html[data-theme="dark"] .vhub-panel { background: rgba(15,23,42,0.82); border-color: rgba(51,65,85,0.4); }
html[data-theme="dark"] .vhub-panel__title { color: #e2e8f0; }
html[data-theme="dark"] .vhub-panel__desc { color: #64748b; }
html[data-theme="dark"] .vhub-gauge__pct { color: #e2e8f0; }
html[data-theme="dark"] .vhub-shortcut { background: rgba(15,23,42,0.4); border-color: rgba(51,65,85,0.3); color: #e2e8f0; }
html[data-theme="dark"] .vhub-shortcut:hover { background: rgba(30,41,59,0.6); }
html[data-theme="dark"] .vhub-shortcut i { color: #60a5fa; }

/* ══════════════════════════════════════════════════════════════════════
   UNIFIED DARK MODE — Targeted overrides for workspace/owner-ficha
   Only targets custom CSS classes, NOT Tailwind utilities.
   Tailwind dark: variants in templates handle their own elements.
   ══════════════════════════════════════════════════════════════════════ */

/* Workspace surfaces (used by base_list.html, base_dashboard.html) */
html[data-theme="dark"] .workspace-surface,
html[data-theme="dark"] .workspace-surface--table {
    background: rgba(15, 23, 42, 0.88);
    border-color: rgba(51, 65, 85, 0.6);
    box-shadow: 0 18px 44px rgba(2, 6, 23, 0.3);
}

html[data-theme="dark"] .workspace-hero {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(51, 65, 85, 0.5);
}

html[data-theme="dark"] .workspace-hero h2,
html[data-theme="dark"] .workspace-hero h3 { color: #e2e8f0; }
html[data-theme="dark"] .workspace-hero p { color: #94a3b8; }

html[data-theme="dark"] .workspace-filter-bar {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(51, 65, 85, 0.5);
}

html[data-theme="dark"] .workspace-table thead {
    background: rgba(15, 23, 42, 0.7);
    color: #94a3b8;
}

html[data-theme="dark"] .workspace-table tbody tr {
    border-color: rgba(51, 65, 85, 0.4);
}

html[data-theme="dark"] .workspace-table tbody tr:hover {
    background: rgba(30, 41, 59, 0.5);
}

html[data-theme="dark"] .workspace-table td {
    color: #cbd5e1;
}

html[data-theme="dark"] .workspace-pagination {
    background: rgba(15, 23, 42, 0.5);
    border-color: rgba(51, 65, 85, 0.5);
}

html[data-theme="dark"] .workspace-empty-cell {
    color: #64748b;
}

/* owner-ficha components (used by detail/form templates) */
html[data-theme="dark"] .owner-ficha-card {
    background: rgba(15, 23, 42, 0.92);
    border-color: rgba(51, 65, 85, 0.6);
}

html[data-theme="dark"] .owner-ficha-data-card {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(51, 65, 85, 0.5);
}

html[data-theme="dark"] .owner-ficha-contact-card {
    background: rgba(15, 23, 42, 0.5);
    border-color: rgba(51, 65, 85, 0.4);
}

html[data-theme="dark"] .owner-ficha-contact-card p {
    color: #cbd5e1;
}

html[data-theme="dark"] .owner-ficha-contact-card__icon {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.9) 100%);
    color: #94a3b8;
}

html[data-theme="dark"] .owner-ficha-pill {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(51, 65, 85, 0.5);
    color: #cbd5e1;
}

html[data-theme="dark"] .owner-ficha-mini-icon {
    background: rgba(30, 41, 59, 0.8);
    color: #94a3b8;
}

html[data-theme="dark"] .owner-ficha-row {
    border-color: rgba(51, 65, 85, 0.3);
}

html[data-theme="dark"] .owner-ficha-row dt { color: #64748b; }
html[data-theme="dark"] .owner-ficha-row dd { color: #e2e8f0; }

html[data-theme="dark"] .owner-ficha-pet-card {
    background: rgba(15, 23, 42, 0.5);
    border-color: rgba(51, 65, 85, 0.4);
}

html[data-theme="dark"] .owner-ficha-pet-card:hover {
    background: rgba(30, 41, 59, 0.6);
}

html[data-theme="dark"] .owner-ficha-pet-card__icon {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.96) 0%, rgba(15, 23, 42, 0.96) 100%);
}

html[data-theme="dark"] .owner-ficha-state {
    background: rgba(30, 41, 59, 0.8);
    color: #cbd5e1;
    border-color: rgba(51, 65, 85, 0.5);
}

/* Tone variants for owner-ficha-pill in dark */
html[data-theme="dark"] .owner-ficha-pill--emerald { background: rgba(6, 78, 59, 0.3); color: #6ee7b7; border-color: rgba(16, 185, 129, 0.3); }
html[data-theme="dark"] .owner-ficha-pill--amber { background: rgba(120, 53, 15, 0.3); color: #fcd34d; border-color: rgba(245, 158, 11, 0.3); }
html[data-theme="dark"] .owner-ficha-pill--rose { background: rgba(127, 29, 29, 0.3); color: #fda4af; border-color: rgba(244, 63, 94, 0.3); }
html[data-theme="dark"] .owner-ficha-pill--indigo { background: rgba(49, 46, 129, 0.3); color: #a5b4fc; border-color: rgba(99, 102, 241, 0.3); }
html[data-theme="dark"] .owner-ficha-pill--cyan { background: rgba(22, 78, 99, 0.3); color: #67e8f9; border-color: rgba(6, 182, 212, 0.3); }
html[data-theme="dark"] .owner-ficha-pill--slate { background: rgba(30, 41, 59, 0.5); color: #94a3b8; border-color: rgba(51, 65, 85, 0.4); }
html[data-theme="dark"] .owner-ficha-pill--violet { background: rgba(76, 29, 149, 0.3); color: #c4b5fd; border-color: rgba(139, 92, 246, 0.3); }

/* Tone variants for owner-ficha-contact-card in dark */
html[data-theme="dark"] .owner-ficha-contact-card--emerald { border-color: rgba(16, 185, 129, 0.2); }
html[data-theme="dark"] .owner-ficha-contact-card--amber { border-color: rgba(245, 158, 11, 0.2); }
html[data-theme="dark"] .owner-ficha-contact-card--rose { border-color: rgba(244, 63, 94, 0.2); }
html[data-theme="dark"] .owner-ficha-contact-card--indigo { border-color: rgba(99, 102, 241, 0.2); }
html[data-theme="dark"] .owner-ficha-contact-card--cyan { border-color: rgba(6, 182, 212, 0.2); }
html[data-theme="dark"] .owner-ficha-contact-card--violet { border-color: rgba(139, 92, 246, 0.2); }

/* State badges in dark */
html[data-theme="dark"] .owner-ficha-state--emerald,
html[data-theme="dark"] .owner-ficha-state--success { background: rgba(6, 78, 59, 0.4); color: #6ee7b7; border-color: rgba(16, 185, 129, 0.3); }
html[data-theme="dark"] .owner-ficha-state--amber,
html[data-theme="dark"] .owner-ficha-state--warning { background: rgba(120, 53, 15, 0.4); color: #fcd34d; border-color: rgba(245, 158, 11, 0.3); }
html[data-theme="dark"] .owner-ficha-state--rose,
html[data-theme="dark"] .owner-ficha-state--danger { background: rgba(127, 29, 29, 0.4); color: #fda4af; border-color: rgba(244, 63, 94, 0.3); }
html[data-theme="dark"] .owner-ficha-state--indigo { background: rgba(49, 46, 129, 0.4); color: #a5b4fc; border-color: rgba(99, 102, 241, 0.3); }
html[data-theme="dark"] .owner-ficha-state--slate,
html[data-theme="dark"] .owner-ficha-state--neutral { background: rgba(30, 41, 59, 0.6); color: #94a3b8; border-color: rgba(51, 65, 85, 0.4); }
