:root {
    --font-sans: Vazirmatn, sans-serif;
    --color-text: #f3f4f6;
    --color-muted: #cbd5e1;
    --color-muted-soft: #9ca3af;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-deep: #1d4ed8;
    --accent-soft: #60a5fa;
    --accent-ring: rgba(37, 99, 235, 0.5);
    --danger: #ef4444;
    --danger-soft: #fca5a5;
    --danger-deep: #b91c1c;
    --success: #10b981;
    --success-soft: #6ee7b7;
    --success-deep: #047857;
    --warn: #eab308;
    --warn-soft: #fde68a;
    --warn-deep: #a16207;
    --info: #38bdf8;
    --info-soft: #7dd3fc;
    --info-deep: #0284c7;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-bg-soft: rgba(255, 255, 255, 0.05);
    --glass-bg-card: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-border-soft: rgba(255, 255, 255, 0.1);
    --glass-blur: 20px;
    --glass-blur-strong: 30px;
    --radius-control: 0.75rem;
    --radius-panel: 1.15rem;
    --radius-pill: 9999px;
    --shadow-glass: 0 10px 40px rgba(0, 0, 0, 0.4);
    --shadow-glass-soft: 0 8px 32px rgba(0, 0, 0, 0.2);
    --focus-ring: 0 0 0 3px var(--accent-ring);
    --gradient-app: linear-gradient(135deg, #1e3a8a 0%, #0c0a09 100%);
    --table-head-bg: #1e3a8a;
}

html {
    font-family: var(--font-sans);
}

body {
    font-family: var(--font-sans);
    scrollbar-width: thin;
    scrollbar-color: var(--accent) rgba(255, 255, 255, 0.1);
    color: var(--color-text);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--accent-soft);
    outline-offset: 2px;
}

.g-blue { background: linear-gradient(135deg, #3b82f6, #4f46e5); }
.g-red { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.g-orange { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.g-purple { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.g-green { background: linear-gradient(135deg, #10b981, #047857); }
.g-cyan { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.g-pink { background: linear-gradient(135deg, #ec4899, #be185d); }
.g-yellow { background: linear-gradient(135deg, #eab308, #ca8a04); }
.g-indigo { background: linear-gradient(135deg, #6366f1, #4338ca); }
.g-teal { background: linear-gradient(135deg, #14b8a6, #0f766e); }

.header-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 8px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.4rem;
    color: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.header h1 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 6px;
    background: linear-gradient(90deg, #ffffff, #c7d2fe);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-divider {
    width: 64px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-soft));
    margin: 0 auto;
    border-radius: 10px;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}
.gradient-bg {
    background: var(--gradient-app);
    min-height: 100vh;
}
.ltr {
    direction: ltr;
    text-align: left;
}
.copy-icon {
    cursor: pointer;
    margin-left: 8px;
    color: var(--success);
    transition: color 0.15s ease-in-out;
}
.copy-icon:hover {
    color: var(--success-soft);
}
.glass-morphism {
    background: var(--glass-bg-soft);
    backdrop-filter: blur(var(--glass-blur-strong));
    -webkit-backdrop-filter: blur(var(--glass-blur-strong));
    border: 1px solid var(--glass-border-soft);
    box-shadow: var(--shadow-glass);
}
.glass-container,
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-glass-soft);
}
.card-section {
    /* Same glass recipe as .glass-container (search_settings baseline) */
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-glass-soft);
    border-radius: var(--radius-panel);
}
.glass-input, .glass-select {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
    color: var(--color-text) !important;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    font-size: 0.95rem;
    border-radius: var(--radius-control);
    font-family: var(--font-sans);
}
.glass-select {
   appearance: none;
   -webkit-appearance: none;
   color-scheme: dark;
   background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23d1d5db' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
   background-position: left 0.75rem center;
   background-repeat: no-repeat;
   background-size: 1.25em 1.25em;
   padding-left: 2.5rem; 
}
.glass-input::placeholder { color: var(--color-muted-soft); }
.glass-input:focus, .glass-select:focus {
    background-color: rgba(255, 255, 255, 0.15) !important;
    box-shadow: var(--focus-ring);
    outline: none;
    border-color: rgba(59, 130, 246, 0.7) !important;
}
.glass-select option {
    background-color: var(--table-head-bg);
    color: var(--color-text);
}
.glass-select optgroup {
    background-color: var(--accent-deep);
    color: var(--accent-soft);
    font-weight: 700;
    font-style: normal;
}
select.glass-input option {
    background-color: var(--table-head-bg);
    color: var(--color-text);
}
select.glass-input optgroup {
    background-color: var(--accent-deep);
    color: var(--accent-soft);
    font-weight: 700;
    font-style: normal;
}

/* Table datetime: date left, time right (LTR isolate inside RTL pages). */
.wh-datetime {
    display: inline-flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 0.4rem;
    width: auto;
    max-width: none;
    margin-inline: auto;
    direction: ltr;
    unicode-bidi: isolate;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    font-family: var(--font-sans);
}
.wh-datetime--empty {
    justify-content: center;
    color: var(--color-muted-soft);
}
.wh-datetime__date {
    color: var(--color-text);
}
.wh-datetime__time {
    color: var(--color-muted);
    font-size: 0.92em;
}

.custom-select { position: relative; z-index: 1; }
.custom-select.open { z-index: 80; }
.custom-select select { display: none; }
.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
    cursor: pointer;
}
.custom-select-trigger i {
    color: #d1d5db;
    font-size: 0.75rem;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.custom-select.open .custom-select-trigger i { transform: rotate(180deg); }
.custom-select-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    z-index: 90;
    max-height: 260px;
    overflow-y: auto;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    padding: 0.4rem;
    display: none;
}
.custom-select.open .custom-select-menu { display: block; }
.custom-select-option {
    padding: 0.55rem 0.9rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    color: #e5e7eb;
    cursor: pointer;
    transition: background 0.15s ease;
}
.custom-select-option:hover { background: rgba(59, 130, 246, 0.25); }
.custom-select-option.selected { background: rgba(59, 130, 246, 0.4); color: #fff; font-weight: 600; }

.glass-table {
    width: 100%;
    border-collapse: collapse;
}
.glass-table thead.sticky {
    z-index: 10;
}
.glass-table thead th {
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
    color: #d1d5db;
}
.glass-table tbody tr {
    transition: background-color 0.2s ease;
}
.glass-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.08);
}
.glass-table td, .glass-table th {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1rem;
    vertical-align: middle;
}
.glass-table th.text-right,
.glass-table td.text-right {
    text-align: right;
}
.glass-table th.text-center,
.glass-table td.text-center {
    text-align: center;
}

/* Accounts results table: solid sticky header + centered cells */
.accounts-results-table {
    table-layout: fixed;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.accounts-results-table thead th {
    position: sticky;
    top: 0;
    z-index: 20;
    background-color: var(--table-head-bg) !important;
    background-image: none !important;
    color: #e2e8f0 !important;
    text-align: center !important;
    vertical-align: middle !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
.accounts-results-table tbody td {
    text-align: center !important;
    vertical-align: middle !important;
}
.accounts-results-table tbody td .cell-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
}
.accounts-results-table tbody td form,
.accounts-results-table tbody td details {
    display: inline-flex;
    justify-content: center;
    align-items: center;
}
.accounts-results-table .status-toggle {
    border: 0;
    background: transparent;
    cursor: pointer;
    line-height: 1;
    padding: 0.15rem;
}
.accounts-results-table .status-toggle i,
.accounts-results-table .status-icon {
    font-size: 1.45rem;
}
.accounts-results-table .status-toggle.is-active,
.accounts-results-table .status-icon.is-active {
    color: #22c55e !important;
}
.accounts-results-table .status-toggle.is-inactive,
.accounts-results-table .status-icon.is-inactive {
    color: #ef4444 !important;
}
.accounts-results-table .action-disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.glass-table tbody tr:last-child td {
    border-bottom: none;
}
.glass-table input.access-perm-cb {
    accent-color: var(--accent, #3b82f6);
    cursor: pointer;
    width: 1rem;
    height: 1rem;
}

.admin-panel-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}
.admin-panel-toolbar__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
}
.admin-panel-toolbar__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

/* Grouped admin tables (e.g. linkdoni categories) — neutral slate, not blue glass bleed */
.wh-table-shell:has(.admin-panel-toolbar) {
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.dashboard-stat-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 8.6rem;
    text-decoration: none;
    color: inherit;
    padding: 0.5rem 0.65rem 0.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    border-color: rgba(125, 211, 252, 0.14);
    background:
        linear-gradient(145deg, rgba(34, 211, 238, 0.07) 0%, rgba(255, 255, 255, 0.03) 42%, rgba(15, 23, 42, 0.2) 100%),
        var(--glass-bg);
}
.dashboard-stat-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 2px;
    background: linear-gradient(180deg, rgba(34, 211, 238, 0.85), rgba(167, 139, 250, 0.15));
    opacity: 0.55;
    pointer-events: none;
}
.dashboard-stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(34, 211, 238, 0.35);
    box-shadow:
        var(--shadow-glass-soft),
        0 0 0 1px rgba(34, 211, 238, 0.08),
        0 10px 28px rgba(0, 0, 0, 0.28),
        0 0 28px rgba(34, 211, 238, 0.08);
}
.dashboard-stat-card__icon {
    border: 1px solid rgba(34, 211, 238, 0.18);
    width: 1.55rem;
    height: 1.55rem;
    font-size: 0.7rem;
    border-radius: 0.45rem;
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.12);
    flex: 0 0 auto;
}
.dashboard-stat-card__head {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    margin-bottom: 0.3rem;
    min-height: 2.1rem;
}
.dashboard-stat-card__title {
    font-size: 0.74rem;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.dashboard-stat-card__value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 0.15rem;
    min-height: 1.35rem;
    text-shadow: 0 0 18px rgba(125, 211, 252, 0.22);
}
.dashboard-stat-card__value--text {
    font-size: 0.88rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.dashboard-stat-card__chart {
    height: 2.65rem;
    flex: 0 0 2.65rem;
    margin: 0.05rem 0 0.15rem;
    display: flex;
    align-items: center;
    min-width: 0;
}
.dashboard-stat-card__chart > .dash-echart,
.dashboard-stat-card__chart > .dash-neon {
    width: 100%;
    margin: 0;
}
.dashboard-stat-card__subtitle {
    font-size: 0.65rem;
    color: #94a3b8;
    line-height: 1.35;
    margin: auto 0 0;
    min-height: 1.75rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.dashboard-section {
    margin-bottom: 1rem;
}
.dashboard-section__title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem 0.55rem;
    margin-bottom: 0.45rem;
}
.dashboard-section__title > .fas {
    color: #22d3ee;
    filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.45));
}
.dashboard-section__more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-right: auto;
    padding: 0.28rem 0.7rem 0.28rem 0.55rem;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.2;
    color: #e0faff;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 999px;
    border: 1px solid rgba(34, 211, 238, 0.35);
    background:
        linear-gradient(135deg, rgba(34, 211, 238, 0.22), rgba(59, 130, 246, 0.12) 55%, rgba(15, 23, 42, 0.25));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 0 16px rgba(34, 211, 238, 0.12);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.dashboard-section__more .fas {
    font-size: 0.62rem;
    color: #67e8f9;
    filter: none;
    transition: transform 0.18s ease;
}
.dashboard-section__more:hover {
    color: #fff;
    text-decoration: none;
    border-color: rgba(103, 232, 249, 0.65);
    background:
        linear-gradient(135deg, rgba(34, 211, 238, 0.34), rgba(59, 130, 246, 0.2) 55%, rgba(15, 23, 42, 0.3));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 0 22px rgba(34, 211, 238, 0.22);
    transform: translateY(-1px);
}
.dashboard-section__more:hover .fas {
    transform: translateX(-2px);
    color: #a5f3fc;
}
.dashboard-section__more:focus-visible {
    outline: 2px solid rgba(34, 211, 238, 0.7);
    outline-offset: 2px;
}
.dashboard-queue {
    margin-bottom: 1rem;
}
.dashboard-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
}
.dashboard-links__item {
    color: #67e8f9;
    text-decoration: none;
}
.dashboard-links__item:hover {
    text-decoration: underline;
}
.dashboard-links__sep {
    color: rgba(255, 255, 255, 0.2);
    margin: 0 0.15rem;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    align-items: stretch;
}
@media (min-width: 768px) {
    .dashboard-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (min-width: 1280px) {
    .dashboard-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@media (min-width: 1536px) {
    .dashboard-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}
.dashboard-grid--single {
    grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 768px) {
    .dashboard-grid--single {
        grid-template-columns: minmax(0, 22rem);
    }
}
.dashboard-section--changelog {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.dashboard-stat-card--changelog:hover {
    box-shadow: var(--shadow-glass-soft), 0 10px 28px rgba(34, 211, 238, 0.16);
}
.dept-company-picker {
    margin-bottom: 1.5rem;
}
.dept-company-picker__label {
    font-size: 0.875rem;
    color: #d1d5db;
    margin-bottom: 0.65rem;
}
.dashboard-stat-card--chart {
    /* legacy class — equal-height layout is on .dashboard-stat-card */
    min-height: inherit;
}

/* Compact neon dashboard shell */
.dashboard-home {
    --dash-neon: #22d3ee;
}
.dashboard-home__head {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.95rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(34, 211, 238, 0.12);
}
@media (min-width: 640px) {
    .dashboard-home__head {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}
.dashboard-home__title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.01em;
}
.dashboard-home__title .fas {
    color: var(--dash-neon);
    filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.55));
}
.dashboard-home__meta {
    margin: 0.15rem 0 0;
    font-size: 0.78rem;
    color: #94a3b8;
}

/* Hub dashboard favorites (tile launcher) */
.hub-fav {
    --glow-blue: #60a5fa;
    --glow-teal: #2dd4bf;
    --glow-purple: #c084fc;
    --glow-indigo: #818cf8;
    --glow-green: #34d399;
    --glow-yellow: #fbbf24;
    margin-bottom: 1.15rem;
}
.hub-fav__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.85rem;
    margin-bottom: 0.7rem;
}
.hub-fav__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #e2e8f0;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.hub-fav__title .fas {
    color: #fbbf24;
}
.hub-fav__hint {
    margin: 0;
    font-size: 0.72rem;
    color: #64748b;
}
.hub-fav.is-accepting-drop .hub-fav__grid {
    outline: 2px dashed rgba(96, 165, 250, 0.55);
    outline-offset: 4px;
    border-radius: 1rem;
    background: rgba(96, 165, 250, 0.06);
}
.hub-fav__grid.is-drop-target {
    outline-color: rgba(52, 211, 153, 0.65);
    background: rgba(52, 211, 153, 0.08);
}
.hub-fav__grid.is-reordering {
    user-select: none;
}
.hub-fav__grid.is-reordering .hub-fav__tile {
    transition: none;
}
.hub-fav__grid.is-reordering .hub-fav__tile:hover {
    transform: none;
}
.hub-fav__placeholder {
    min-height: 5.6rem;
    border-radius: 1rem;
    border: 2px dashed rgba(96, 165, 250, 0.55);
    background: rgba(96, 165, 250, 0.12);
    box-sizing: border-box;
}
.hub-fav__ghost {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 120;
    margin: 0;
    pointer-events: none;
    will-change: transform;
    border-radius: 1rem;
    box-shadow:
        0 18px 36px rgba(0, 0, 0, 0.45),
        0 0 22px color-mix(in srgb, var(--glow, #60a5fa) 35%, transparent);
    opacity: 0.97;
}
.hub-fav__grip {
    position: absolute;
    top: 0.28rem;
    left: 0.28rem;
    z-index: 2;
    width: 1.55rem;
    height: 1.55rem;
    border: none;
    border-radius: 0.45rem;
    background: rgba(15, 23, 42, 0.55);
    color: rgba(226, 232, 240, 0.85);
    cursor: grab;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    touch-action: none;
    opacity: 0.85;
}
.hub-fav__grip:hover {
    background: rgba(96, 165, 250, 0.35);
    color: #fff;
}
.hub-fav__grip:active {
    cursor: grabbing;
}
body.hub-fav-reordering {
    cursor: grabbing !important;
    user-select: none !important;
}
body.hub-fav-reordering * {
    cursor: grabbing !important;
}
#adminSidebar a.is-hub-fav-dragging,
.hub-fav-modal__option.is-hub-fav-dragging {
    opacity: 0.55;
}
.hub-fav-modal__drag-hint {
    margin: -0.25rem 0 0;
    font-size: 0.72rem;
    color: #64748b;
}
.hub-fav-modal__option[draggable="true"] {
    cursor: grab;
}
.hub-fav__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(5.6rem, 1fr));
    gap: 0.55rem;
}
.hub-fav__tile {
    position: relative;
    min-height: 5.6rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        radial-gradient(120% 100% at 50% 0%, color-mix(in srgb, var(--glow, #60a5fa) 22%, transparent), transparent 62%),
        linear-gradient(165deg, rgba(15, 23, 42, 0.55), rgba(255, 255, 255, 0.04));
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.hub-fav__tile:hover {
    border-color: color-mix(in srgb, var(--glow, #60a5fa) 45%, rgba(255, 255, 255, 0.2));
    box-shadow:
        0 14px 28px rgba(0, 0, 0, 0.28),
        0 0 18px color-mix(in srgb, var(--glow, #60a5fa) 28%, transparent);
}
.hub-fav__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 5.6rem;
    padding: 0.7rem 0.45rem 0.65rem;
    text-decoration: none;
    color: inherit;
}
.hub-fav__icon {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: var(--glow, #60a5fa);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 16px color-mix(in srgb, var(--glow, #60a5fa) 35%, transparent);
}
.hub-fav__label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #e2e8f0;
    text-align: center;
    line-height: 1.35;
    direction: rtl;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hub-fav__unpin {
    position: absolute;
    top: 0.28rem;
    right: 0.28rem;
    margin: 0;
}
.hub-fav__unpin button {
    width: 1.45rem;
    height: 1.45rem;
    border: none;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.65);
    color: rgba(248, 250, 252, 0.7);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.hub-fav__tile:hover .hub-fav__unpin button,
.hub-fav__tile:focus-within .hub-fav__unpin button {
    opacity: 1;
}
.hub-fav__unpin button:hover {
    background: rgba(244, 63, 94, 0.85);
    color: #fff;
}
.hub-fav__tile--add {
    width: 100%;
    border-style: dashed;
    border-color: rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    touch-action: manipulation;
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.7rem 0.45rem;
}
.hub-fav__tile--add:hover {
    color: #e2e8f0;
    border-color: rgba(96, 165, 250, 0.55);
}
.hub-fav__tile--add .hub-fav__icon {
    color: #94a3b8;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.04);
}
.hub-fav__empty {
    grid-column: 1 / -1;
    font-size: 0.8rem;
    color: #64748b;
    padding: 0.5rem 0.25rem;
}
.hub-fav-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.hub-fav-modal[hidden] {
    display: none !important;
}
.hub-fav-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.72);
}
.hub-fav-modal__panel {
    position: relative;
    z-index: 1;
    width: min(32rem, 96vw);
    max-height: min(78vh, 36rem);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 1.05rem 1.05rem;
}
.hub-fav-modal__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.hub-fav-modal__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #f8fafc;
}
.hub-fav-modal__close {
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    cursor: pointer;
}
.hub-fav-modal__close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}
.hub-fav-modal__filter {
    flex-shrink: 0;
}
.hub-fav-modal__list {
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding-inline-end: 0.15rem;
}
.hub-fav-modal__group-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 0.35rem;
}
.hub-fav-modal__options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
    gap: 0.4rem;
}
.hub-fav-modal__option {
    margin: 0;
}
.hub-fav-modal__pick {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.65rem;
    border-radius: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #e2e8f0;
    font-size: 0.78rem;
    font-weight: 600;
    text-align: right;
    cursor: pointer;
}
.hub-fav-modal__pick:hover {
    border-color: rgba(96, 165, 250, 0.45);
    background: rgba(96, 165, 250, 0.1);
}
.hub-fav-modal__pick .fas {
    color: #60a5fa;
    width: 1rem;
    text-align: center;
}
body.hub-fav-modal-open {
    overflow: hidden;
}
@media (max-width: 640px) {
    .hub-fav__grid {
        grid-template-columns: repeat(auto-fill, minmax(4.8rem, 1fr));
        gap: 0.4rem;
    }
    .hub-fav__tile,
    .hub-fav__link {
        min-height: 4.9rem;
    }
    .hub-fav__unpin button {
        opacity: 1;
    }
}

.dashboard-charts {
    margin-bottom: 1.05rem;
}
.dashboard-charts__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.6rem;
    align-items: stretch;
}
.dashboard-chart-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0.5rem 0.65rem 0.4rem;
    min-width: 0;
    min-height: 0;
    position: relative;
    overflow: hidden;
    border-color: rgba(34, 211, 238, 0.16);
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(34, 211, 238, 0.12), transparent 55%),
        radial-gradient(90% 80% at 0% 100%, rgba(167, 139, 250, 0.08), transparent 50%),
        linear-gradient(160deg, rgba(15, 23, 42, 0.35), rgba(255, 255, 255, 0.03)),
        var(--glass-bg);
    box-shadow:
        var(--shadow-glass-soft),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.dashboard-chart-panel::after {
    content: '';
    position: absolute;
    inset: auto -20% -40% auto;
    width: 55%;
    height: 70%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.12), transparent 68%);
    pointer-events: none;
}
.dashboard-chart-panel__title {
    position: relative;
    z-index: 1;
    font-size: 0.72rem;
    font-weight: 700;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    margin: 0 0 0.15rem;
    letter-spacing: 0.01em;
    flex: 0 0 auto;
}
.dashboard-chart-panel__title .fas {
    color: #22d3ee;
    filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.5));
}
.dash-echart {
    position: relative;
    z-index: 1;
    width: 100%;
    min-width: 0;
}
.dash-echart--mini {
    height: 2.65rem;
    margin: 0.1rem 0 0.05rem;
}
.dash-echart--panel {
    height: 9.25rem;
    flex: 0 0 auto;
}
.dashboard-chart-panel--hero .dash-echart--panel {
    height: 9.25rem;
}

@media (min-width: 768px) {
    .dashboard-charts--pair .dashboard-charts__grid,
    .dashboard-charts--grid .dashboard-charts__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .dashboard-charts--trio .dashboard-charts__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .dashboard-charts--trio .dashboard-chart-panel--hero {
        grid-column: 1 / -1;
    }
    .dash-echart--panel {
        height: 9.5rem;
    }
}

@media (min-width: 1100px) {
    .dashboard-charts--trio .dashboard-charts__grid {
        grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.9fr) minmax(0, 0.9fr);
    }
    .dashboard-charts--trio .dashboard-chart-panel--hero {
        grid-column: auto;
    }
    .dashboard-charts--pair .dash-echart--panel,
    .dashboard-charts--grid .dash-echart--panel,
    .dashboard-charts--solo .dash-echart--panel,
    .dashboard-charts--trio .dash-echart--panel,
    .dashboard-chart-panel--hero .dash-echart--panel {
        height: 10rem;
    }
}

@media (min-width: 1280px) {
    .dashboard-charts--solo .dashboard-charts__grid {
        grid-template-columns: minmax(0, 1fr);
        max-width: 40rem;
    }
}
.dash-neon {
    margin: 0.1rem 0 0.1rem;
}
.dash-neon--spark {
    height: 2.35rem;
}
.dash-neon--donut {
    height: 2.45rem;
    display: flex;
    justify-content: center;
}
.dash-neon__svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.25));
}
.dash-neon__svg--donut {
    width: 2.45rem;
    height: 2.45rem;
}
.dash-neon__line {
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 280;
    stroke-dashoffset: 280;
    animation: dash-neon-draw 0.85s ease forwards;
}
.dash-neon__fill {
    pointer-events: none;
}
.dash-neon__track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 4.5;
}
.dash-neon__ring {
    fill: none;
    stroke-width: 4.5;
    stroke-linecap: butt;
}
@keyframes dash-neon-draw {
    to { stroke-dashoffset: 0; }
}
.dashboard-stat-card.is-selected {
    border-color: rgba(96, 165, 250, 0.55);
    box-shadow: var(--shadow-glass-soft), 0 0 0 1px rgba(96, 165, 250, 0.4);
    background: rgba(37, 99, 235, 0.16);
}

/* —— Changelog page —— */
.changelog-page {
    max-width: 56rem;
}
.changelog-meta-chip {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    padding: 0.65rem 1rem;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-width: 5.5rem;
}
.changelog-meta-chip__label {
    font-size: 0.7rem;
    color: #9ca3af;
}
.changelog-meta-chip__value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}
.changelog-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.changelog-release {
    display: grid;
    grid-template-columns: 1.25rem 1fr;
    gap: 0.85rem;
    position: relative;
}
.changelog-release__rail {
    position: relative;
    display: flex;
    justify-content: center;
}
.changelog-release__rail::before {
    content: '';
    position: absolute;
    top: 1.1rem;
    bottom: -1.6rem;
    width: 1px;
    background: linear-gradient(180deg, rgba(167, 139, 250, 0.45), rgba(255, 255, 255, 0.06));
}
.changelog-release:last-child .changelog-release__rail::before {
    display: none;
}
.changelog-release__dot {
    width: 0.7rem;
    height: 0.7rem;
    margin-top: 1.15rem;
    border-radius: 999px;
    background: #64748b;
    border: 2px solid rgba(15, 23, 42, 0.9);
    box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.25);
    z-index: 1;
}
.changelog-release--current .changelog-release__dot {
    background: #a78bfa;
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.28);
}
.changelog-release__body {
    padding: 1.15rem 1.25rem 1.35rem;
}
.changelog-release__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.changelog-version-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.55rem;
    border-radius: 0.45rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ede9fe;
    background: rgba(124, 58, 237, 0.28);
    border: 1px solid rgba(167, 139, 250, 0.35);
}
.changelog-current-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
    color: #bbf7d0;
    background: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(74, 222, 128, 0.28);
}
.changelog-release__count {
    flex-shrink: 0;
    text-align: center;
    min-width: 3.25rem;
    padding: 0.4rem 0.55rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}
.changelog-release__count span {
    display: block;
    font-size: 0.65rem;
    font-weight: 500;
    color: #9ca3af;
    margin-top: 0.15rem;
}
.changelog-modules {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    margin-top: 1.1rem;
}
.changelog-module__title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #e5e7eb;
    margin-bottom: 0.65rem;
}
.changelog-module__title i {
    color: #93c5fd;
    width: 1.1rem;
    text-align: center;
}
.changelog-module__count {
    margin-right: auto;
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 0.1rem 0.45rem;
}
.changelog-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.changelog-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.7rem;
    align-items: start;
    padding: 0.7rem 0.8rem;
    border-radius: 0.85rem;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.changelog-type {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.22rem 0.5rem;
    border-radius: 999px;
    border: 1px solid transparent;
    margin-top: 0.1rem;
}
.changelog-type i {
    font-size: 0.65rem;
}
.changelog-type--security {
    color: #fecaca;
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(248, 113, 113, 0.28);
}
.changelog-type--feature {
    color: #bfdbfe;
    background: rgba(59, 130, 246, 0.14);
    border-color: rgba(96, 165, 250, 0.3);
}
.changelog-type--fix {
    color: #fde68a;
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(251, 191, 36, 0.28);
}
.changelog-type--improve {
    color: #a7f3d0;
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(52, 211, 153, 0.28);
}
.changelog-type--ui {
    color: #e9d5ff;
    background: rgba(168, 85, 247, 0.14);
    border-color: rgba(192, 132, 252, 0.3);
}
.changelog-type--devops {
    color: #fdba74;
    background: rgba(249, 115, 22, 0.12);
    border-color: rgba(251, 146, 60, 0.28);
}
.changelog-type--other {
    color: #cbd5e1;
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.25);
}
.changelog-item__title {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #f3f4f6;
    line-height: 1.4;
}
.changelog-item__detail {
    margin: 0.25rem 0 0;
    font-size: 0.78rem;
    color: #9ca3af;
    line-height: 1.55;
}
@media (max-width: 640px) {
    .changelog-item {
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }
    .changelog-release__header {
        flex-direction: column;
    }
}

/* —— Changelog compact layout —— */
.changelog-page--compact {
    max-width: 48rem;
}
.changelog-page--compact .changelog-page__head {
    margin-bottom: 1rem;
}
.changelog-stack {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.changelog-release-card {
    padding: 0.85rem 1rem 1rem;
}
.changelog-release-card__head {
    margin-bottom: 0.65rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.changelog-release-card__title {
    margin: 0.35rem 0 0;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
}
.changelog-release-card__summary {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    color: #9ca3af;
    line-height: 1.45;
}
.changelog-release-details {
    padding: 0;
    overflow: hidden;
}
.changelog-release-details__summary {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.85rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.changelog-release-details__summary::-webkit-details-marker {
    display: none;
}
.changelog-release-details__summary::after {
    content: '\f078';
    font-family: 'Font Awesome 7 Pro', 'Font Awesome 6 Pro', 'Font Awesome 6 Free', sans-serif;
    font-weight: 900;
    font-size: 0.65rem;
    color: #94a3b8;
    transition: transform 0.2s ease;
}
.changelog-release-details[open] .changelog-release-details__summary::after {
    transform: rotate(180deg);
}
.changelog-release-details__title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #e5e7eb;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.changelog-release-details__meta {
    font-size: 0.72rem;
    color: #64748b;
    white-space: nowrap;
}
.changelog-release-details__count {
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 0.1rem 0.45rem;
    white-space: nowrap;
}
.changelog-release-details__summary-text {
    margin: 0;
    padding: 0 0.85rem 0.55rem;
    font-size: 0.78rem;
    color: #9ca3af;
    line-height: 1.45;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.changelog-modules-compact {
    padding: 0.55rem 0.85rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.changelog-module-compact__title {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0 0 0.25rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #cbd5e1;
}
.changelog-module-compact__title i {
    width: 0.95rem;
    text-align: center;
    color: #93c5fd;
    font-size: 0.72rem;
}
.changelog-lines {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.changelog-line {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #d1d5db;
}
.changelog-type-dot {
    flex-shrink: 0;
    width: 0.45rem;
    height: 0.45rem;
    margin-top: 0.38rem;
    border-radius: 999px;
    background: #64748b;
}
.changelog-type-dot.changelog-type--feature { background: #60a5fa; }
.changelog-type-dot.changelog-type--fix { background: #fbbf24; }
.changelog-type-dot.changelog-type--improve { background: #34d399; }
.changelog-type-dot.changelog-type--ui { background: #c084fc; }
.changelog-type-dot.changelog-type--security { background: #f87171; }
.changelog-type-dot.changelog-type--devops { background: #fb923c; }
.changelog-line__text {
    min-width: 0;
}
@media (max-width: 640px) {
    .changelog-release-details__summary {
        grid-template-columns: auto 1fr auto;
    }
    .changelog-release-details__meta {
        display: none;
    }
}

#toast-container {
    position: fixed;
    top: 1.15rem;
    right: 1.15rem;
    left: auto;
    bottom: auto;
    transform: none;
    z-index: 400;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    pointer-events: none;
    width: min(22rem, calc(100vw - 2rem));
}
#toast-container .toast {
    pointer-events: auto;
}
.toast {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    width: 100%;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-inline-start: 3px solid rgba(148, 163, 184, 0.7);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    border-radius: 0.85rem;
    padding: 0.85rem 0.95rem;
    color: #f8fafc;
    opacity: 0;
    transform: translateX(1.1rem) translateY(-0.25rem);
    transition: opacity 0.35s cubic-bezier(0.21, 1.02, 0.73, 1),
                transform 0.35s cubic-bezier(0.21, 1.02, 0.73, 1);
}
.toast.show {
    opacity: 1;
    transform: translateX(0) translateY(0);
}
.toast-icon {
    font-size: 1.15rem;
    margin: 0.1rem 0 0;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}
.toast-message {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.55;
    flex: 1;
    min-width: 0;
}
.toast-success {
    border-inline-start-color: var(--success);
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.55), rgba(15, 23, 42, 0.94));
}
.toast-error {
    border-inline-start-color: var(--danger);
    background: linear-gradient(135deg, rgba(127, 29, 29, 0.5), rgba(15, 23, 42, 0.94));
}
.toast-warn {
    border-inline-start-color: var(--warn);
    background: linear-gradient(135deg, rgba(113, 63, 18, 0.5), rgba(15, 23, 42, 0.94));
}
.toast-info {
    border-inline-start-color: var(--info);
    background: linear-gradient(135deg, rgba(7, 89, 133, 0.5), rgba(15, 23, 42, 0.94));
}
.toast-success .toast-icon { color: var(--success-soft); }
.toast-error .toast-icon { color: var(--danger-soft); }
.toast-warn .toast-icon { color: var(--warn-soft); }
.toast-info .toast-icon { color: var(--info-soft); }

/* Admin / list option icons (tables) */
.option-icon {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.65rem;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.option-icon img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}
.option-icon--svg {
    background: #fff;
    padding: 0.3rem;
}
.modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 40;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal-backdrop.show {
    opacity: 1;
}
.modal-content {
    position: fixed;
    z-index: 50;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.modal-content.show {
    opacity: 1;
    transform: scale(1);
}
#confirm-modal {
    z-index: 200;
}
#confirm-modal .modal-content {
    z-index: 210;
}
.sidebar-link-active {
    background: rgba(59, 130, 246, 0.2);
    border-right: 4px solid #3b82f6;
    color: #ffffff;
}
body.is-nav-pending {
    cursor: progress;
}
body.is-nav-pending .admin-sidebar a {
    pointer-events: none;
}
.admin-sidebar a.is-nav-loading {
    opacity: 0.65;
}

.admin-sidebar-title-rule {
    height: 1px;
    margin: 0 0.35rem 1.25rem;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(147, 197, 253, 0.55) 20%,
        rgba(96, 165, 250, 0.85) 50%,
        rgba(147, 197, 253, 0.55) 80%,
        transparent 100%
    );
    border: 0;
}
/* Lighter than Tailwind shadow-lg — less paint cost while the nav scrolls. */
.admin-sidebar {
    box-shadow: -3px 0 14px rgba(0, 0, 0, 0.28);
}
.admin-sidebar-nav {
    overflow-y: auto;
    overscroll-behavior: contain;
    contain: layout paint;
    isolation: isolate;
    transform: translateZ(0);
}

.admin-nav-root {
    list-style: none;
    margin: 0;
    padding: 0;
}

.admin-nav-group {
    margin-bottom: 0.5rem;
}

.admin-nav-group-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.7rem 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.admin-nav-group-toggle:hover {
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(96, 165, 250, 0.45);
}
.admin-nav-group-label {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}
.admin-nav-group-caret {
    font-size: 0.75rem;
    color: #93c5fd;
    transition: transform 0.25s ease;
}
.admin-nav-group.is-open .admin-nav-group-caret {
    transform: rotate(180deg);
}
.admin-nav-submenu {
    list-style: none;
    margin: 0.45rem 0 0;
    padding: 0.35rem 0.25rem 0.35rem 0.55rem;
    border-right: 2px solid rgba(59, 130, 246, 0.35);
    display: none;
}
.admin-nav-group.is-open > .admin-nav-submenu {
    display: block;
}
.admin-nav-submenu li {
    margin-bottom: 0.35rem;
}
.admin-nav-submenu li:last-child {
    margin-bottom: 0;
}
.admin-nav-submenu a {
    font-size: 0.9rem;
}
.admin-nav-heading {
    pointer-events: none;
    margin-top: 0.65rem;
    padding: 0.15rem 0.5rem 0.05rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: rgba(226, 232, 240, 0.45);
}
.admin-nav-submenu > .admin-nav-heading:first-child {
    margin-top: 0;
}

/* Nested submenu (e.g. seasonal themes under iT-Panel) */
.admin-nav-submenu .admin-nav-nested {
    margin-bottom: 0.35rem;
}
.admin-nav-submenu .admin-nav-nested-toggle {
    padding: 0.45rem 0.55rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.04);
}
.admin-nav-submenu .admin-nav-nested-submenu {
    margin-top: 0.3rem;
    padding: 0.25rem 0.15rem 0.2rem 0.45rem;
    border-right-color: rgba(251, 191, 36, 0.35);
}
.admin-nav-submenu .admin-nav-nested-submenu a {
    font-size: 0.85rem;
}

@media (max-height: 760px) {
    .admin-sidebar {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    .admin-sidebar h2 {
        font-size: 1.15rem;
        margin-bottom: 0.75rem !important;
    }
    .admin-sidebar-nav li {
        margin-bottom: 0.35rem !important;
    }
    .admin-sidebar-nav a {
        padding-top: 0.4rem;
        padding-bottom: 0.4rem;
        font-size: 0.92rem;
    }
    .admin-sidebar-footer {
        padding-top: 0.75rem !important;
    }
}
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 9999px;
    white-space: nowrap;
}
.badge-blue { background: rgba(59, 130, 246, 0.18); color: #93c5fd; }
.badge-red { background: rgba(239, 68, 68, 0.18); color: var(--danger-soft); }
.badge-green { background: rgba(16, 185, 129, 0.18); color: var(--success-soft); }
.badge-yellow { background: rgba(234, 179, 8, 0.18); color: var(--warn-soft); }
.badge-sky { background: rgba(56, 189, 248, 0.18); color: var(--info-soft); }
.badge-gray { background: rgba(148, 163, 184, 0.18); color: #cbd5e1; }

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
    color: #fff;
    font-weight: 600;
    padding: 0.6rem 1.15rem;
    border-radius: var(--radius-control);
    transition: filter 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(147, 197, 253, 0.35);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
}
.btn-primary:hover { filter: brightness(1.07); box-shadow: 0 10px 24px rgba(37, 99, 235, 0.36); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; filter: none; }

.btn-secondary {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    color: #f8fafc;
    font-weight: 600;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-control);
    transition: filter 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    border: 1px solid rgba(148, 163, 184, 0.35);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.35);
}
.btn-secondary:hover { filter: brightness(1.08); color: #fff; border-color: rgba(148, 163, 184, 0.5); }
.btn-secondary:disabled { opacity: 0.5; cursor: not-allowed; filter: none; }

.btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    color: #e5e7eb;
    font-weight: 500;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-control);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    border: 1px solid var(--glass-border-soft);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    text-decoration: none;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.22); color: #fff; }

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, var(--danger-deep) 100%);
    color: #fff;
    font-weight: 600;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-control);
    transition: filter 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(252, 165, 165, 0.4);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(185, 28, 28, 0.3);
}
.btn-danger:hover { filter: brightness(1.08); color: #fff; box-shadow: 0 10px 22px rgba(185, 28, 28, 0.4); }
.btn-danger:disabled { opacity: 0.5; cursor: not-allowed; filter: none; }

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, var(--success-deep) 100%);
    color: #fff;
    font-weight: 600;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-control);
    transition: filter 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(110, 231, 183, 0.4);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(4, 120, 87, 0.28);
}
.btn-success:hover { filter: brightness(1.07); color: #fff; }
.btn-success:disabled { opacity: 0.5; cursor: not-allowed; filter: none; }

.btn-warn {
    background: linear-gradient(135deg, var(--warn) 0%, var(--warn-deep) 100%);
    color: #1c1917;
    font-weight: 700;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-control);
    transition: filter 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(253, 230, 138, 0.45);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(161, 98, 7, 0.28);
}
.btn-warn:hover { filter: brightness(1.06); color: #0c0a09; }
.btn-warn:disabled { opacity: 0.5; cursor: not-allowed; filter: none; }

.btn-compact {
    padding: 0.42rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    gap: 0.35rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    width: auto;
    min-width: 4.75rem;
}
.btn-compact--tile {
    width: 72%;
    max-width: 7.25rem;
    min-width: 4.75rem;
    justify-content: center;
}
.btn-danger.btn-compact {
    box-shadow: 0 4px 10px rgba(185, 28, 28, 0.25);
}

.btn-block { width: 100%; }

.auth-shell {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    overflow: hidden;
}
.auth-shell::before {
    content: '';
    position: absolute;
    width: min(42rem, 95vw);
    height: min(42rem, 95vw);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}
.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 28rem;
    padding: 2.5rem 2.25rem 2.25rem;
    border-radius: var(--radius-panel);
    color: var(--color-text);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-glass-soft);
    backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    animation: auth-card-in 0.45s ease-out;
}
@keyframes auth-card-in {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.auth-card-header {
    text-align: center;
    margin-bottom: 1.75rem;
}
.auth-icon-badge {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-control);
    background: var(--glass-bg-soft);
    border: 1px solid var(--glass-border);
    box-shadow: none;
    color: var(--accent-soft);
    font-size: 1.45rem;
}
.auth-card-title {
    font-size: 1.85rem;
    font-weight: 800;
    text-align: center;
    margin: 0 0 0.4rem;
    color: #fff;
    letter-spacing: -0.01em;
}
.auth-card-subtitle {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-muted-soft);
    line-height: 1.6;
}
.auth-label {
    display: block;
    margin-bottom: 0.55rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-muted);
}
.form-label {
    display: block;
    margin-bottom: 0.55rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-muted);
}
.auth-field { margin-bottom: 1.15rem; }
.auth-password-wrap {
    position: relative;
}
.auth-password-wrap .glass-input {
    padding-inline-start: 2.85rem !important;
}
.auth-password-toggle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    inset-inline-start: 0.45rem;
    width: 2.35rem;
    height: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 0.55rem;
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    line-height: 1;
}
.auth-password-toggle:hover {
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.08);
}
.auth-password-toggle:focus-visible {
    outline: 2px solid rgba(96, 165, 250, 0.75);
    outline-offset: 2px;
}
.auth-card .glass-input {
    padding: 0.85rem 1rem !important;
    font-size: 1rem;
    border-radius: 0.9rem;
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
}
.auth-card .glass-input:focus {
    background-color: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(96, 165, 250, 0.75) !important;
}
.auth-card .btn-primary {
    margin-top: 0.35rem;
    padding: 0.9rem 1.25rem;
    font-size: 1.05rem;
    border-radius: 0.9rem;
    background: linear-gradient(90deg, #2563eb 0%, #4338ca 100%);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35);
}
.auth-card .btn-primary:hover {
    filter: brightness(1.08);
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.45);
}
.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    background: rgba(127, 29, 29, 0.35);
    border: 1px solid rgba(248, 113, 113, 0.4);
    border-inline-start: 3px solid var(--danger);
    color: #fee2e2;
    padding: 0.8rem 0.95rem;
    border-radius: 0.85rem;
    margin-bottom: 1.1rem;
    font-size: 0.875rem;
    line-height: 1.55;
}
.auth-alert--success {
    background: rgba(6, 78, 59, 0.35);
    border-color: rgba(52, 211, 153, 0.4);
    border-inline-start-color: var(--success);
    color: #d1fae5;
}
.auth-alert--warn {
    background: rgba(113, 63, 18, 0.35);
    border-color: rgba(250, 204, 21, 0.4);
    border-inline-start-color: var(--warn);
    color: #fef3c7;
}
.auth-shell--profile {
    align-items: flex-start;
    justify-content: center;
    padding: 5.25rem 1.25rem 2.5rem;
    min-height: 100vh;
}
.auth-card--profile {
    max-width: min(58rem, 94vw);
    padding: 2rem 2.15rem 1.75rem;
    margin: 0 auto;
}
.auth-card--profile .auth-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    text-align: right;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.auth-card--profile .auth-card-header-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}
.auth-card--profile .auth-icon-badge {
    width: 3.15rem;
    height: 3.15rem;
    margin: 0;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.auth-card--profile .auth-card-title {
    font-size: 1.55rem;
    margin: 0;
    text-align: right;
}
.auth-card--profile .auth-card-subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    text-align: right;
}
.auth-card--profile .auth-card-meta {
    margin: 0;
    font-size: 0.875rem;
    color: #93c5fd;
    white-space: nowrap;
}
.auth-card--profile .auth-field {
    margin-bottom: 1rem;
}
.auth-card--profile .auth-label {
    margin-bottom: 0.45rem;
    font-size: 0.875rem;
}
.auth-card--profile .glass-input,
.auth-card--profile .glass-select {
    padding: 0.75rem 0.95rem !important;
    font-size: 0.95rem;
}
.auth-card--profile .profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 1rem;
}
@media (min-width: 768px) {
    .auth-shell--profile {
        padding-top: 2rem;
    }
    .auth-card--profile .profile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 1100px) {
    .auth-shell--profile {
        align-items: center;
    }
    .auth-card--profile .profile-grid--triple {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (min-width: 768px) {
    .auth-card--profile .profile-grid .auth-field--span-2 {
        grid-column: span 2;
    }
}
.profile-section {
    margin-bottom: 1.35rem;
}
.profile-section:last-of-type {
    margin-bottom: 0.35rem;
}
.profile-section--security {
    margin-top: 0.25rem;
    padding-top: 0.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.profile-section-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #e2e8f0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 0.5rem;
    margin: 0 0 1rem;
}
.profile-section-title i {
    color: #93c5fd;
    font-size: 0.9rem;
}
.profile-notify-channels {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin-bottom: 0.35rem;
    align-items: stretch;
}
@media (min-width: 768px) {
    .profile-notify-channels {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
.profile-notify-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    padding: 0.9rem 0.95rem 0.95rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.profile-notify-card:has(.profile-notify-channel__input:checked) {
    border-color: rgba(52, 211, 153, 0.5);
    background:
        linear-gradient(180deg, rgba(16, 185, 129, 0.14), rgba(16, 185, 129, 0.05));
}
.profile-notify-channel {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    margin: 0;
    cursor: pointer;
}
.profile-notify-channel__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.profile-notify-channel__box {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-height: 7.4rem;
    padding: 0.1rem 0.1rem 0.15rem;
    border-radius: 0;
    border: 0;
    background: transparent;
    transition: none;
}
.profile-notify-channel__input:focus-visible + .profile-notify-channel__box {
    outline: 2px solid #38bdf8;
    outline-offset: 3px;
    border-radius: 0.45rem;
}
.profile-notify-channel__input:checked + .profile-notify-channel__box {
    border-color: transparent;
    background: transparent;
}
.profile-notify-channel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    color: #93c5fd;
}
.profile-notify-channel__head > i {
    width: 2.15rem;
    height: 2.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.7rem;
    background: rgba(56, 189, 248, 0.14);
    color: #7dd3fc;
}
.profile-notify-card--bale .profile-notify-channel__head > i {
    background: rgba(139, 92, 246, 0.16);
    color: #c4b5fd;
}
.profile-notify-card--desktop .profile-notify-channel__head > i {
    background: rgba(245, 158, 11, 0.14);
    color: #fcd34d;
}
.profile-notify-channel__state {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    color: #fcd34d;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.35);
}
.profile-notify-channel__state::before {
    content: attr(data-off);
}
.profile-notify-channel__input:checked + .profile-notify-channel__box .profile-notify-channel__state {
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(52, 211, 153, 0.45);
}
.profile-notify-channel__input:checked + .profile-notify-channel__box .profile-notify-channel__state::before {
    content: attr(data-on);
}
.profile-notify-channel__title {
    display: block;
    color: #f8fafc;
    font-size: 0.95rem;
    font-weight: 700;
}
.profile-notify-channel__desc {
    display: block;
    color: #94a3b8;
    font-size: 0.78rem;
    line-height: 1.7;
    min-height: 2.65rem;
}
.profile-notify-card__panel {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 0.65rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.profile-notify-card__status {
    margin: 0;
    min-height: 3.4rem;
    font-size: 0.8rem;
    line-height: 1.7;
}
.profile-notify-card__actions {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.45rem;
    margin-top: auto;
    min-height: 5.35rem;
}
.profile-notify-card__actions .btn-secondary,
.profile-notify-card__actions .btn-ghost {
    width: 100%;
    min-width: 0;
    margin-top: 0;
    padding: 0.55rem 0.75rem;
    font-size: 0.84rem;
    font-weight: 600;
    border-radius: 0.7rem;
}
.profile-notify-card__actions .btn-secondary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    border-color: rgba(147, 197, 253, 0.45);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
}
.profile-notify-card__actions .btn-secondary:hover {
    filter: brightness(1.08);
    color: #fff;
}
.profile-notify-card__actions .btn-ghost {
    background: rgba(16, 185, 129, 0.1);
    color: #a7f3d0;
    border-color: rgba(52, 211, 153, 0.42);
}
.profile-notify-card__actions .btn-ghost:hover {
    background: rgba(16, 185, 129, 0.18);
    color: #ecfdf5;
    border-color: rgba(110, 231, 183, 0.6);
}
.profile-notify-card__actions #baleUnlinkBtn {
    background: rgba(244, 63, 94, 0.1);
    color: #fecdd3;
    border-color: rgba(251, 113, 133, 0.45);
}
.profile-notify-card__actions #baleUnlinkBtn:hover {
    background: rgba(244, 63, 94, 0.18);
    color: #fff1f2;
    border-color: rgba(253, 164, 175, 0.65);
}
.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.25rem;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.profile-actions .btn-primary,
.profile-actions .btn-ghost {
    width: auto;
    min-width: 9.5rem;
}
.profile-actions--compact {
    margin-top: 1rem;
    padding-top: 0;
    border-top: none;
}
.profile-notify-actions.profile-actions--compact {
    margin-top: 0.95rem;
    padding-top: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.profile-notify-actions #saveNotifyPrefsBtn {
    margin-top: 0;
    margin-inline-start: auto;
    padding: 0.62rem 1.1rem;
    font-size: 0.9rem;
    border-radius: 0.75rem;
}
@media (max-width: 900px) {
    .auth-card--profile {
        padding: 1.5rem 1.25rem 1.35rem;
    }
    .auth-card--profile .auth-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .auth-shell--profile {
        padding-top: 5.25rem;
    }
}

/* —— Supplier Quality portal (mobile-first accordion) —— */
.sqm-portal-body {
    min-height: 100dvh;
}
.sqm-portal-welcome-lead {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #f1f5f9;
    line-height: 1.45;
}
.sqm-portal-welcome-lead strong {
    font-weight: 800;
    color: #7dd3fc;
}
.sqm-portal-welcome-sub {
    margin: 0.3rem 0 0;
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.55;
}
.sqm-portal-company {
    color: #cbd5e1;
    font-weight: 600;
}
.sqm-portal-welcome-sep {
    margin: 0 0.35rem;
    opacity: 0.5;
}
.sqm-portal {
    width: min(720px, 100%);
    margin: 0 auto;
    padding: max(0.75rem, env(safe-area-inset-top)) max(0.85rem, env(safe-area-inset-right))
        max(1.5rem, env(safe-area-inset-bottom)) max(0.85rem, env(safe-area-inset-left));
}
.sqm-portal-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(56, 189, 248, 0.25);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(15, 23, 42, 0.55));
    backdrop-filter: blur(12px);
}
.sqm-portal-top-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}
.sqm-portal-avatar {
    flex: 0 0 auto;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.85rem;
    display: grid;
    place-items: center;
    background: rgba(56, 189, 248, 0.15);
    color: #7dd3fc;
    font-size: 1rem;
}
.sqm-portal-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sqm-portal-sub {
    margin: 0.15rem 0 0;
    font-size: 0.8rem;
    color: #94a3b8;
}
.sqm-portal-logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(248, 113, 113, 0.35);
    background: rgba(244, 63, 94, 0.08);
    color: #fecaca;
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
}
.sqm-portal-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.sqm-portal-stat {
    text-align: center;
    padding: 0.65rem 0.35rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.4);
}
.sqm-portal-stat.is-warn {
    border-color: rgba(251, 191, 36, 0.4);
    background: rgba(245, 158, 11, 0.1);
}
.sqm-portal-stat-n {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.2;
}
.sqm-portal-stat-l {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.7rem;
    color: #94a3b8;
}
.sqm-portal-section-title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 800;
    color: #e2e8f0;
}
.sqm-portal-hint {
    margin: 0 0 0.85rem;
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.6;
}
.sqm-portal-empty {
    text-align: center;
    padding: 2rem 1rem;
    border-radius: 1rem;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    color: #94a3b8;
}
.sqm-portal-empty i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}
.sqm-portal-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.sqm-acc {
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 23, 42, 0.5);
    overflow: hidden;
}
.sqm-acc.needs-reply {
    border-color: rgba(56, 189, 248, 0.35);
}
.sqm-acc.is-closed {
    opacity: 0.88;
}
.sqm-acc-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.9rem 0.85rem;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.sqm-acc-summary::-webkit-details-marker {
    display: none;
}
.sqm-acc-chevron {
    flex: 0 0 auto;
    width: 1.5rem;
    height: 1.5rem;
    margin-top: 0.15rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}
.sqm-acc[open] .sqm-acc-chevron {
    transform: rotate(180deg);
    color: #7dd3fc;
}
.sqm-acc-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.sqm-acc-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.sqm-acc-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.72rem;
    color: #7dd3fc;
    font-weight: 700;
}
.sqm-acc-pill {
    font-size: 0.68rem;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.04);
}
.sqm-acc-pill.muted { color: #94a3b8; }
.sqm-acc-pill.danger {
    color: #fecaca;
    border-color: rgba(248, 113, 113, 0.4);
    background: rgba(244, 63, 94, 0.12);
}
.sqm-acc.has-new {
    border-color: rgba(251, 191, 36, 0.45);
    box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.12);
}
.sqm-acc-pill-new {
    color: #fef3c7;
    border-color: rgba(251, 191, 36, 0.55);
    background: rgba(245, 158, 11, 0.22);
    font-weight: 700;
}
.sqm-acc-pill.action {
    color: #bae6fd;
    border-color: rgba(56, 189, 248, 0.45);
    background: rgba(14, 165, 233, 0.15);
}
.sqm-acc-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.45;
}
.sqm-acc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    font-size: 0.72rem;
    color: #94a3b8;
}
.sqm-acc-body {
    padding: 0 0.85rem 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.sqm-acc-desc {
    margin: 0.85rem 0;
    padding: 0.75rem 0.8rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.sqm-acc-desc-label {
    font-size: 0.7rem;
    color: #64748b;
    margin-bottom: 0.35rem;
}
.sqm-acc-desc-text {
    font-size: 0.88rem;
    color: #cbd5e1;
    white-space: pre-wrap;
    line-height: 1.7;
}
.sqm-portal-thread {
    margin: 0 0 0.85rem;
}
.sqm-portal-thread-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.55rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #e2e8f0;
}
.sqm-portal-thread-title i { color: #7dd3fc; font-size: 0.8rem; }
.sqm-portal-thread-count {
    font-weight: 500;
    color: #64748b;
    font-size: 0.75rem;
}
.sqm-portal-thread-empty {
    margin: 0 0 0.85rem;
    font-size: 0.8rem;
    color: #64748b;
}
.sqm-portal-thread-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.sqm-portal-msg {
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.7rem 0.75rem;
    background: rgba(2, 6, 23, 0.35);
}
.sqm-portal-msg.sqm-msg--supplier {
    border-color: rgba(56, 189, 248, 0.35);
    background: rgba(14, 165, 233, 0.08);
}
.sqm-portal-msg.sqm-msg--revise {
    border-color: rgba(251, 191, 36, 0.4);
    background: rgba(245, 158, 11, 0.08);
}
.sqm-portal-msg.sqm-msg--ok {
    border-color: rgba(52, 211, 153, 0.35);
    background: rgba(16, 185, 129, 0.08);
}
.sqm-portal-msg.sqm-msg--closed {
    border-color: rgba(248, 113, 113, 0.3);
    background: rgba(244, 63, 94, 0.06);
}
.sqm-portal-msg-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.65rem;
    margin-bottom: 0.4rem;
    font-size: 0.72rem;
}
.sqm-portal-msg-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 700;
    color: #f1f5f9;
}
.sqm-portal-msg-label i { opacity: 0.75; font-size: 0.7rem; }
.sqm-portal-msg-who { color: #94a3b8; }
.sqm-portal-msg-time {
    margin-inline-start: auto;
    color: #64748b;
    direction: ltr;
    unicode-bidi: plaintext;
}
.sqm-portal-msg-body {
    font-size: 0.84rem;
    color: #e2e8f0;
    line-height: 1.65;
    display: grid;
    gap: 0.45rem;
}
.sqm-portal-msg-field {
    font-size: 0.68rem;
    color: #64748b;
    margin-bottom: 0.15rem;
}
.sqm-acc-reply {
    margin-top: 0.25rem;
    padding: 0.85rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(56, 189, 248, 0.3);
    background: rgba(14, 165, 233, 0.08);
}
.sqm-acc-reply-title {
    margin: 0 0 0.65rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #e0f2fe;
}
.sqm-acc-qc-note {
    margin-bottom: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(251, 191, 36, 0.35);
    background: rgba(245, 158, 11, 0.1);
    font-size: 0.84rem;
    color: #fef3c7;
    line-height: 1.6;
}
.sqm-acc-qc-note-label {
    font-size: 0.68rem;
    color: #fcd34d;
    margin-bottom: 0.25rem;
}
.sqm-acc-form {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.sqm-acc-label {
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: #cbd5e1;
}
.sqm-acc-input {
    width: 100%;
    border-radius: 0.75rem !important;
    font-size: 0.9rem !important;
    min-height: 2.75rem;
}
.sqm-acc-submit {
    margin-top: 0.55rem;
    width: 100%;
    min-height: 2.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}
.sqm-acc-status {
    margin-top: 0.35rem;
    padding: 0.75rem 0.85rem;
    border-radius: 0.75rem;
    font-size: 0.84rem;
    line-height: 1.55;
}
.sqm-acc-status.is-review {
    color: #e0f2fe;
    border: 1px solid rgba(56, 189, 248, 0.25);
    background: rgba(14, 165, 233, 0.08);
}
.sqm-acc-status.is-closed {
    color: #d1fae5;
    border: 1px solid rgba(52, 211, 153, 0.3);
    background: rgba(16, 185, 129, 0.08);
}
@media (min-width: 640px) {
    .sqm-portal {
        padding-top: 1.25rem;
        padding-bottom: 2rem;
    }
    .sqm-portal-title { font-size: 1.2rem; }
    .sqm-acc-summary { padding: 1rem 1.1rem; }
    .sqm-acc-body { padding-left: 1.1rem; padding-right: 1.1rem; }
}
@media (max-width: 420px) {
    .sqm-portal-logout-btn span { display: none; }
    .sqm-portal-stat-n { font-size: 1.1rem; }
}
.auth-footer {
    margin-top: 1.35rem;
    text-align: center;
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.7;
}
.auth-footer a {
    color: #93c5fd !important;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s ease;
}
.auth-footer a:hover {
    color: #dbeafe !important;
}

.glass-table tbody tr.row-winner {
    background: rgba(34, 197, 94, 0.12);
    box-shadow: inset 4px 0 0 0 #22c55e;
}

input[type="date"].glass-input { color-scheme: dark; }
input[type="file"].glass-input { padding-top: 0.45rem; padding-bottom: 0.45rem; }

/* JalaliDatePicker popup is light; page text is near-white and inherits into .jdp-time. */
jdp-container {
    color: var(--jdp-color-5, #333);
    font-family: var(--font-sans, Vazirmatn, sans-serif);
}
jdp-container .jdp-time,
jdp-container .jdp-time input,
jdp-container .jdp-time select,
jdp-container .jdp-year,
jdp-container .jdp-year input,
jdp-container .jdp-year select,
jdp-container .jdp-month,
jdp-container .jdp-month input,
jdp-container .jdp-month select {
    color: var(--jdp-color-5, #333) !important;
}
jdp-container .jdp-time-container .jdp-time:after {
    color: var(--jdp-color-5, #333);
}
jdp-container .jdp-time option,
jdp-container .jdp-year option,
jdp-container .jdp-month option {
    color: #111;
    background: #fff;
}

.home-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 30;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    color: #cbd5e1;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}
.home-btn:hover {
    color: #fff;
    transform: scale(1.08);
    border-color: rgba(96, 165, 250, 0.6);
    box-shadow: 0 0 12px rgba(96, 165, 250, 0.5);
}

.copyright,
.site-copyright {
    position: fixed !important;
    bottom: 1.1rem !important;
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    transform: translateX(-50%);
    z-index: 50 !important;
    direction: ltr !important;
    unicode-bidi: isolate;
    text-align: center;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #e2e8f0 !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 1.15rem !important;
    background: rgba(15, 23, 42, 0.82) !important;
    border: 1px solid rgba(148, 163, 184, 0.38) !important;
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
    white-space: nowrap;
    max-width: calc(100vw - 1.5rem);
    margin: 0 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.copyright p,
.site-copyright p {
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex-wrap: nowrap;
    direction: ltr !important;
    unicode-bidi: isolate;
    color: inherit;
}
.site-copyright-heart,
.copyright .heart-container,
.site-copyright .heart-container {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}
.copyright a,
.site-copyright a {
    color: #93c5fd !important;
    text-decoration: none !important;
    font-weight: 600;
    transition: color 0.25s ease;
}
.copyright a:hover,
.site-copyright a:hover {
    color: #bfdbfe !important;
}
.copyright:hover,
.site-copyright:hover {
    transform: translateX(-50%) translateY(-2px);
    border-color: rgba(96, 165, 250, 0.55) !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(96, 165, 250, 0.12) !important;
}

@media (max-width: 480px) {
    .copyright,
    .site-copyright {
        bottom: 0.75rem !important;
        font-size: 0.7rem;
        padding: 0.45rem 0.75rem !important;
        border-radius: 1rem !important;
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .home-btn { top: 14px; right: 14px; width: 42px; height: 42px; }
    .header h1 { font-size: 1.2rem; }
}

@media print {
    body { background: #fff !important; color: #111 !important; }
    .no-print { display: none !important; }
    .print-table { width: 100%; border-collapse: collapse; }
    .print-table th, .print-table td {
        border: 1px solid #999;
        padding: 6px 8px;
        text-align: center;
        font-size: 12px;
    }
    .print-table thead th { background: #eee !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Brands missing from Font Awesome Pro — rendered as <img class="brand-icon"> */
.brand-icon {
    display: inline-block;
    width: 1.15em;
    height: 1.15em;
    vertical-align: -0.15em;
    object-fit: contain;
}
.icon-container .brand-icon {
    width: 1.875rem;
    height: 1.875rem;
}
.search-engine-icon.brand-icon {
    width: 1.4rem;
    height: 1.4rem;
    flex-shrink: 0;
}

/* Admin layout: responsive sidebar drawer */
.admin-sidebar-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 40;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.85rem;
    border: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.85);
    color: var(--color-text);
    backdrop-filter: blur(12px);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.admin-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 25;
    background: rgba(0, 0, 0, 0.45);
}
@media (max-width: 900px) {
    .admin-sidebar-toggle { display: inline-flex; }
    .admin-sidebar {
        transform: translateX(110%);
        transition: transform 0.25s ease;
        z-index: 35;
        width: min(18rem, 86vw) !important;
    }
    body.admin-nav-open .admin-sidebar { transform: translateX(0); }
    body.admin-nav-open .admin-sidebar-backdrop { display: block; }
    .admin-main {
        margin-right: 0 !important;
        padding: 4.5rem 1rem 1.5rem !important;
    }
}

/* Global session / login chip (shared with home) */
.home-login {
    position: fixed;
    top: 0.7rem;
    left: 0.7rem;
    z-index: 50;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.45rem 0.3rem 0.3rem;
    border-radius: 0.85rem;
    text-decoration: none;
    color: var(--color-text);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    box-shadow: var(--shadow-glass-soft);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    animation: home-login-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.home-login-icon {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 0.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--glass-bg-soft);
    border: 1px solid var(--glass-border-soft);
    color: var(--accent-soft);
    font-size: 0.78rem;
}
.home-login-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    min-width: 0;
}
.home-login-title {
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}
.home-login-eyebrow {
    display: none;
}
.home-login-hint {
    display: none;
}
.home-login-id {
    display: none;
}
.home-login-id-value {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 700;
    direction: ltr;
    unicode-bidi: isolate;
}
.home-login-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.1rem;
    color: #93c5fd;
    font-size: 0.65rem;
    transition: transform 0.3s ease, color 0.3s ease;
}
.home-login--session {
    max-width: min(96vw, 15.5rem);
    padding-right: 0.3rem;
    overflow: visible;
}
.home-login--session .home-login-copy {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}
.home-login--session .home-login-title {
    max-width: 5.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.home-login--session .home-login-icon {
    color: #86efac;
    border-color: rgba(74, 222, 128, 0.25);
    background: rgba(34, 197, 94, 0.12);
}
.home-login-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    margin-right: 0;
    flex-shrink: 0;
    position: relative;
    overflow: visible;
}
.home-login-logout-form {
    margin: 0;
    display: inline-flex;
}
.home-login-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 1.7rem;
    min-height: 1.7rem;
    padding: 0;
    border-radius: 0.55rem;
    border: 1px solid transparent;
    font-size: 0.72rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    background: transparent;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.home-login-action span {
    display: none;
}
.home-login-action--panel {
    color: #dbeafe;
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(96, 165, 250, 0.35);
}
.home-login-action--panel:hover {
    background: rgba(59, 130, 246, 0.35);
    color: #fff;
    transform: translateY(-1px);
}
.home-login-action--bell {
    position: relative;
    color: #dbeafe;
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(96, 165, 250, 0.35);
}
.home-login-action--bell:hover,
.home-login-action--bell[aria-expanded="true"] {
    background: rgba(59, 130, 246, 0.35);
    color: #fff;
    transform: translateY(-1px);
}
.home-login-action--bell.has-unread {
    color: #fecaca;
    background: rgba(239, 68, 68, 0.22);
    border-color: rgba(248, 113, 113, 0.55);
    box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.28), 0 0 14px rgba(239, 68, 68, 0.28);
}
.home-login-action--bell.has-unread i {
    color: #f87171;
    transform-origin: top center;
    animation: wh-bell-nudge 2s ease-in-out infinite;
}
.home-login-action--bell.has-unread:hover,
.home-login-action--bell.has-unread[aria-expanded="true"] {
    background: rgba(239, 68, 68, 0.34);
    color: #fff;
    border-color: rgba(252, 165, 165, 0.7);
}
.home-login-action--bell.has-unread:hover i,
.home-login-action--bell.has-unread[aria-expanded="true"] i {
    color: #fecaca;
}
@keyframes wh-bell-nudge {
    0%, 100% { transform: rotate(0deg); }
    6% { transform: rotate(14deg); }
    12% { transform: rotate(-12deg); }
    18% { transform: rotate(10deg); }
    24% { transform: rotate(-8deg); }
    30% { transform: rotate(4deg); }
    36%, 100% { transform: rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
    .home-login-action--bell.has-unread i {
        animation: none;
    }
}
.home-login-bell-badge {
    position: absolute;
    top: -0.22rem;
    left: -0.18rem;
    min-width: 0.85rem;
    height: 0.85rem;
    padding: 0 0.18rem;
    border-radius: var(--radius-pill);
    background: #ef4444;
    color: #fff;
    font-size: 0.5rem;
    font-weight: 800;
    line-height: 0.85rem;
    text-align: center;
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.55);
}
.home-login-notify {
    position: relative;
    display: inline-flex;
}
.home-login--session.has-notify-open,
.home-login.has-notify-open {
    z-index: 120;
}
.home-login-notify-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: min(92vw, 22rem);
    max-height: min(70vh, 26rem);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: var(--color-text);
    /* Less transparent than default glass so hub text behind stays readable. */
    background: linear-gradient(160deg, rgba(30, 58, 138, 0.94) 0%, rgba(12, 10, 9, 0.97) 100%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-panel);
    box-shadow: var(--shadow-glass);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    z-index: 9999;
    font-family: var(--font-sans);
}
.home-login-notify-panel[hidden] {
    display: none !important;
}
.home-login-notify-panel.is-open {
    display: flex !important;
}
.home-login-notify-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0.9rem;
    border-bottom: 1px solid var(--glass-border-soft);
}
.home-login-notify-head strong {
    color: var(--color-text);
    font-size: 0.88rem;
    font-weight: 700;
}
.home-login-notify-head span {
    color: var(--accent-soft);
    font-size: 0.72rem;
    font-weight: 600;
}
.home-login-notify-list {
    list-style: none;
    margin: 0;
    padding: 0.4rem;
    overflow-y: auto;
    flex: 1 1 auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) rgba(255, 255, 255, 0.1);
}
.home-login-notify-empty {
    padding: 1.1rem 0.85rem;
    text-align: center;
    color: var(--color-muted-soft);
    font-size: 0.8rem;
    line-height: 1.6;
}
.home-login-notify-item {
    border-radius: var(--radius-control);
    border: 1px solid transparent;
    margin-bottom: 0.28rem;
}
.home-login-notify-item:last-child {
    margin-bottom: 0;
}
.home-login-notify-item.is-unread {
    background: rgba(59, 130, 246, 0.14);
    border-color: rgba(96, 165, 250, 0.28);
}
.home-login-notify-link {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
    padding: 0.62rem 0.7rem;
    text-decoration: none;
    color: inherit;
    border-radius: var(--radius-control);
    transition: background 0.15s ease;
}
.home-login-notify-link:hover {
    background: var(--glass-bg-soft);
}
.home-login-notify-title {
    color: var(--color-text);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.4;
}
.home-login-notify-item.is-unread .home-login-notify-title::before {
    content: '';
    display: inline-block;
    width: 0.4rem;
    height: 0.4rem;
    margin-left: 0.4rem;
    border-radius: var(--radius-pill);
    background: var(--accent-soft);
    vertical-align: middle;
}
.home-login-notify-body {
    color: var(--color-muted);
    font-size: 0.72rem;
    line-height: 1.55;
}
.home-login-notify-time {
    color: var(--color-muted-soft);
    font-size: 0.66rem;
}
.home-login-notify-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.9rem;
    border-top: 1px solid var(--glass-border-soft);
    background: var(--glass-bg-soft);
}
.home-login-notify-desktop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.55rem 0.9rem;
    border-top: 1px solid rgba(96, 165, 250, 0.2);
    background: rgba(37, 99, 235, 0.12);
}
.home-login-notify-desktop[hidden] {
    display: none !important;
}
.home-login-notify-desktop-text {
    flex: 1;
    min-width: 0;
    font-size: 0.72rem;
    line-height: 1.45;
    color: #bfdbfe;
}
.home-login-notify-desktop-btn {
    flex-shrink: 0;
    border: 1px solid rgba(147, 197, 253, 0.35);
    background: rgba(59, 130, 246, 0.22);
    color: #eff6ff;
    border-radius: 9999px;
    padding: 0.28rem 0.7rem;
    font-size: 0.72rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.home-login-notify-desktop-btn:hover {
    background: rgba(59, 130, 246, 0.38);
    border-color: rgba(147, 197, 253, 0.55);
    color: #fff;
}
.home-login-notify-markall,
.home-login-notify-all {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--accent-soft);
    background: transparent;
    border: 0;
    padding: 0.15rem 0;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}
.home-login-notify-markall:hover,
.home-login-notify-all:hover {
    color: #fff;
}
.notify-inbox-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.notify-inbox-item {
    border: 1px solid var(--glass-border-soft);
    border-radius: var(--radius-control);
    background: var(--glass-bg-soft);
    padding: 0.85rem 1rem;
}
.notify-inbox-item.is-unread {
    border-color: rgba(96, 165, 250, 0.4);
    background: rgba(59, 130, 246, 0.12);
}
.notify-inbox-title-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: baseline;
}
.notify-inbox-title {
    color: var(--color-text);
    font-weight: 700;
    font-size: 0.92rem;
}
.notify-inbox-meta {
    color: var(--color-muted-soft);
    font-size: 0.72rem;
    white-space: nowrap;
}
.notify-inbox-body {
    margin: 0.45rem 0 0;
    color: var(--color-muted);
    font-size: 0.84rem;
    line-height: 1.7;
}
.notify-inbox-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    margin-top: 0.65rem;
}
.notify-inbox-module {
    color: var(--color-muted-soft);
    font-size: 0.72rem;
}
.notify-inbox-link,
.notify-inbox-mark {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-soft);
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
}
.notify-inbox-link:hover,
.notify-inbox-mark:hover {
    color: #fff;
}
.home-login-action--logout {
    color: #fecaca;
    background: rgba(239, 68, 68, 0.16);
    border-color: rgba(248, 113, 113, 0.35);
}
.home-login-action--logout:hover {
    background: rgba(239, 68, 68, 0.28);
    color: #fff;
    transform: translateY(-1px);
}
.home-login:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: var(--shadow-glass-soft), 0 10px 28px rgba(0, 0, 0, 0.28);
}
.home-login--session:hover {
    border-color: rgba(74, 222, 128, 0.28);
}
.home-login:hover .home-login-arrow {
    transform: translateX(-3px);
    color: #bfdbfe;
}
.home-login:focus-visible,
.home-login-action:focus-visible {
    outline: 2px solid rgba(96, 165, 250, 0.9);
    outline-offset: 3px;
}
@keyframes home-login-in {
    from { opacity: 0; transform: translateY(-10px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 480px) {
    .home-login {
        top: 0.55rem;
        left: 0.55rem;
        padding: 0.25rem 0.35rem 0.25rem 0.25rem;
        gap: 0.35rem;
        border-radius: 0.75rem;
    }
    .home-login-icon {
        width: 1.65rem;
        height: 1.65rem;
        border-radius: 0.45rem;
        font-size: 0.7rem;
    }
    .home-login-title {
        font-size: 0.72rem;
        max-width: 4.5rem;
    }
    .home-login--session .home-login-title {
        max-width: 4.5rem;
    }
    .home-login-action {
        width: 1.55rem;
        min-height: 1.55rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    .home-login,
    .home-login-arrow {
        animation: none;
        transition: none;
    }
}

/* Large monitors and wall displays (23"+ / TV) */
@media (min-width: 1920px) {
    html {
        font-size: 106.25%;
    }
}
@media (min-width: 2560px) {
    html {
        font-size: 112.5%;
    }
}

/* Directory lookup pages (voip / phone / email) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.directory-page {
    width: min(72rem, 96vw);
    margin: 0 auto;
    padding: 5.5rem 1rem 2.5rem;
}
.directory-shell {
    max-width: none !important;
    width: 100%;
    margin: 0 auto;
}
.directory-header {
    align-items: flex-start;
}
.directory-header-badge {
    color: #fff !important;
    border: none !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}
.directory-header-badge.g-blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important; }
.directory-header-badge.g-purple { background: linear-gradient(135deg, #8b5cf6, #6d28d9) !important; }
.directory-header-badge.g-green { background: linear-gradient(135deg, #10b981, #047857) !important; }
.directory-header-badge.g-indigo { background: linear-gradient(135deg, #6366f1, #4338ca) !important; }
.directory-count-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.14);
    border: 1px solid rgba(147, 197, 253, 0.28);
    color: #bfdbfe;
    white-space: nowrap;
}
.directory-count-chip__label {
    font-size: 0.8rem;
    opacity: 0.85;
}
.directory-count-chip__value {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
}
.directory-toolbar {
    position: relative;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(12rem, 1fr) auto;
    gap: 0.75rem;
    align-items: stretch;
    margin-bottom: 1.25rem;
    padding: 0.85rem;
    border-radius: var(--radius-panel);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.directory-toolbar__actions {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}
.directory-toolbar__actions .btn-primary,
.directory-toolbar__actions .btn-ghost {
    white-space: nowrap;
}
.directory-search-field {
    position: relative;
}
.directory-search-field > i {
    position: absolute;
    top: 50%;
    right: 0.95rem;
    transform: translateY(-50%);
    color: #93c5fd;
    pointer-events: none;
    font-size: 0.9rem;
}
.directory-search-field .glass-input {
    padding-right: 2.5rem !important;
}
.directory-table-wrap {
    position: relative;
    z-index: 1;
    overflow-x: auto;
    border-radius: var(--radius-panel);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.22);
}
.directory-table {
    margin: 0;
}
.directory-table thead th {
    background: rgba(15, 23, 42, 0.55);
    color: #93c5fd;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
}
.directory-table tbody td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #e5e7eb;
    vertical-align: middle;
}
.directory-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.04);
}
.directory-table tbody tr:last-child td {
    border-bottom: 0;
}
.directory-col-index {
    width: 4rem;
    color: #94a3b8 !important;
    font-variant-numeric: tabular-nums;
}
.directory-empty {
    text-align: center !important;
    padding: 2rem 1rem !important;
    color: #94a3b8 !important;
}
.directory-value {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    max-width: 100%;
}
.directory-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.directory-link:hover {
    text-decoration: underline;
    filter: brightness(1.08);
}
.directory-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 0.55rem;
    border: 1px solid rgba(74, 222, 128, 0.35);
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.directory-copy:hover {
    background: rgba(34, 197, 94, 0.22);
    color: #bbf7d0;
}
@media (max-width: 900px) {
    .directory-page {
        padding-top: 5.75rem;
    }
    .directory-toolbar {
        grid-template-columns: 1fr;
    }
    .directory-toolbar__actions {
        justify-content: stretch;
    }
    .directory-toolbar__actions .btn-primary {
        flex: 1;
    }
    .directory-table thead {
        display: none;
    }
    .directory-table tbody tr {
        display: block;
        margin: 0.65rem;
        padding: 0.65rem 0.75rem;
        border-radius: 0.85rem;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }
    .directory-table tbody td {
        display: flex;
        justify-content: space-between;
        gap: 0.75rem;
        border: 0 !important;
        padding: 0.4rem 0.15rem !important;
        text-align: left !important;
    }
    .directory-table tbody td::before {
        content: attr(data-label);
        color: #93c5fd;
        font-size: 0.75rem;
        font-weight: 600;
        flex-shrink: 0;
    }
    .directory-col-index {
        width: auto;
    }
}

/* ===== WorkHub unified design system (reference) ===== */

.wh-required {
    color: #f87171;
    font-weight: 700;
}

.wh-page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
    margin-bottom: 1.15rem;
}
.wh-page-header__title {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    display: flex;
    align-items: center;
}
.wh-page-header__subtitle {
    margin: 0.3rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--color-muted);
}
.wh-page-header__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
}

.wh-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.wh-toolbar__end {
    font-size: 0.875rem;
    color: var(--color-muted);
}

.admin-main > h2.text-3xl.font-bold.text-white.flex.items-center {
    margin: 0 0 1.5rem;
    font-size: 1.875rem;
    line-height: 1.25;
}
.admin-main > h2.text-3xl.font-bold.text-white.flex.items-center + p.text-gray-300 {
    margin-top: -1rem;
    margin-bottom: 1.5rem;
}

.wh-table-shell {
    border-radius: var(--radius-panel);
    overflow: hidden;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-glass-soft);
}
.wh-table-scroll {
    overflow: auto;
    max-height: min(70vh, 720px);
}

.glass-table.wh-table,
.card-section .glass-table:not(.directory-table),
.wh-table-shell .glass-table:not(.directory-table),
.wh-table-scroll .glass-table:not(.directory-table),
.tick-table-wrap .glass-table,
.accounts-results-scroll .glass-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.glass-table.wh-table thead th,
.card-section .glass-table:not(.directory-table) thead th,
.wh-table-shell .glass-table:not(.directory-table) thead th,
.wh-table-scroll .glass-table:not(.directory-table) thead th,
.tick-table-wrap .glass-table thead th,
.accounts-results-scroll .glass-table thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--table-head-bg) !important;
    background-image: none !important;
    color: #e2e8f0 !important;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.card-section .glass-table:not(.directory-table) tbody td,
.wh-table-shell .glass-table:not(.directory-table) tbody td,
.tick-table-wrap .glass-table tbody td,
.accounts-results-scroll .glass-table tbody td {
    text-align: center;
    vertical-align: middle;
}

.wh-empty-cell,
.wh-loading-cell,
.glass-table .wh-empty-cell,
.glass-table .wh-loading-cell {
    text-align: center !important;
    padding: 1.5rem 1rem !important;
    color: var(--color-muted-soft) !important;
}
.wh-loading-cell {
    color: var(--color-muted) !important;
}
.wh-loading-icon {
    margin-left: 0.5rem;
}

.wh-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-control);
    font-size: 0.875rem;
    line-height: 1.55;
    border: 1px solid transparent;
    border-inline-start-width: 3px;
    border-inline-start-style: solid;
}
.wh-alert--error {
    background: rgba(127, 29, 29, 0.28);
    border-color: rgba(248, 113, 113, 0.35);
    border-inline-start-color: var(--danger);
    color: #fecaca;
}
.wh-alert--success {
    background: rgba(6, 78, 59, 0.28);
    border-color: rgba(52, 211, 153, 0.32);
    border-inline-start-color: var(--success);
    color: #bbf7d0;
}
.wh-alert--warn {
    background: rgba(113, 63, 18, 0.28);
    border-color: rgba(250, 204, 21, 0.32);
    border-inline-start-color: var(--warn);
    color: #fde68a;
}
.wh-alert--info {
    background: rgba(7, 89, 133, 0.28);
    border-color: rgba(56, 189, 248, 0.32);
    border-inline-start-color: var(--info);
    color: #e0f2fe;
}
.wh-alert__icon {
    margin-top: 0.1rem;
    flex-shrink: 0;
    font-size: 1.05rem;
    opacity: 0.95;
}
.wh-alert__text {
    flex: 1;
    min-width: 0;
}
.wh-alert--error .wh-alert__icon { color: var(--danger-soft); }
.wh-alert--success .wh-alert__icon { color: var(--success-soft); }
.wh-alert--warn .wh-alert__icon { color: var(--warn-soft); }
.wh-alert--info .wh-alert__icon { color: var(--info-soft); }

.wh-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.35;
}
.wh-badge--active {
    color: #86efac;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(74, 222, 128, 0.28);
}
.wh-badge--inactive {
    color: #cbd5e1;
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.22);
}

.wh-row-action {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border: 0;
    background: transparent;
    padding: 0;
    font: inherit;
    cursor: pointer;
    transition: color 0.15s ease;
}
.wh-row-action--edit {
    color: var(--accent-soft);
}
.wh-row-action--edit:hover {
    color: #bfdbfe;
}
.wh-row-action--delete {
    color: #f87171;
}
.wh-row-action--delete:hover {
    color: var(--danger-soft);
}
.wh-row-action--success {
    color: var(--success-soft);
}
.wh-row-action--success:hover {
    color: #a7f3d0;
}
.wh-row-action--warn {
    color: var(--warn-soft);
}
.wh-row-action--warn:hover {
    color: #fef08a;
}

.wh-text-success { color: var(--success-soft); }
.wh-text-danger { color: #f87171; }
.wh-text-warn { color: var(--warn-soft); }
.wh-text-info { color: var(--info-soft); }

.wh-panel--success {
    border: 1px solid rgba(52, 211, 153, 0.32);
    border-inline-start: 3px solid var(--success);
}
.wh-panel--error {
    border: 1px solid rgba(248, 113, 113, 0.35);
    border-inline-start: 3px solid var(--danger);
}
.wh-panel--warn {
    border: 1px solid rgba(250, 204, 21, 0.32);
    border-inline-start: 3px solid var(--warn);
}

.wh-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}
@media (min-width: 768px) {
    .wh-stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (min-width: 1024px) {
    .wh-stat-grid--dense {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@media (min-width: 1280px) {
    .wh-stat-grid--dense {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glass-soft), 0 10px 28px rgba(0, 0, 0, 0.28);
}

.auth-card--ticketing {
    max-width: min(80rem, 96vw);
}

.card-section {
    border-radius: var(--radius-panel);
}

.wh-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.wh-modal.hidden {
    display: none !important;
}
.wh-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.wh-modal__panel,
.tick-modal-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 42rem;
    max-height: min(90vh, 760px);
    overflow-y: auto;
    margin: auto;
    border-radius: var(--radius-panel);
    padding: 1.5rem 1.35rem 1.25rem;
    color: var(--color-text);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-glass-soft);
    backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
}
.wh-modal__header,
.tick-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.wh-modal__title,
.tick-modal-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.wh-modal__close,
.tick-modal-close {
    border: 0;
    background: transparent;
    color: #cbd5e1;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.15s ease;
}
.wh-modal__close:hover,
.tick-modal-close:hover {
    color: #fff;
}

.wh-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}
@media (min-width: 640px) {
    .wh-form-grid {
        grid-template-columns: 1fr 1fr;
    }
    .wh-form-grid .wh-form-span-2 {
        grid-column: span 2;
    }
}

.wh-table-action-btn,
.accounts-table-action-btn,
.tick-action-btn {
    border: 0;
    background: transparent;
    line-height: 1;
    padding: 0.15rem;
    cursor: pointer;
}

.public-page-shell {
    position: relative;
    z-index: 1;
    max-width: 56rem;
    margin: 0 auto;
    padding: 1.25rem 1rem 2rem;
}

@media (max-width: 900px) {
    .table-stack-mobile tbody tr {
        display: block;
        margin-bottom: 0.85rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: var(--radius-control);
        background: rgba(255, 255, 255, 0.04);
        overflow: hidden;
    }
    .table-stack-mobile thead {
        display: none;
    }
    .table-stack-mobile tbody td {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0.75rem;
        border: 0 !important;
        padding: 0.55rem 0.85rem !important;
        text-align: right !important;
    }
    .table-stack-mobile tbody td::before {
        content: attr(data-label);
        color: #93c5fd;
        font-size: 0.75rem;
        font-weight: 600;
        flex-shrink: 0;
    }
}

/* Admin density — tighter cards without breaking layouts */
.admin-main {
    padding: 1.35rem 1.5rem 1.75rem;
}
@media (max-width: 1024px) {
    .admin-main {
        padding: 4.5rem 1rem 1.5rem;
    }
}
.admin-main .card-section.p-8 {
    padding: 1.15rem 1.25rem !important;
}
.admin-main .card-section.p-6 {
    padding: 1rem 1.1rem !important;
}
.admin-main .card-section.p-5 {
    padding: 0.85rem 1rem !important;
}
.admin-main .mb-8 {
    margin-bottom: 1.25rem !important;
}
.admin-main .mb-6 {
    margin-bottom: 1rem !important;
}
.admin-main .gap-6 {
    gap: 0.9rem !important;
}
.admin-main .text-3xl {
    font-size: 1.45rem !important;
    line-height: 1.3 !important;
}

/* Confirm modal */
.confirm-modal-panel {
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.confirm-modal-body {
    padding: 1.25rem 1.35rem 1.2rem;
}
.confirm-modal-title {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}
.confirm-modal-title__icon {
    color: #fbbf24;
    font-size: 1.25rem;
    filter: drop-shadow(0 2px 8px rgba(251, 191, 36, 0.35));
}
.confirm-modal-message {
    margin: 0 0 1.15rem;
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.6;
}
.confirm-modal-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.55rem;
}

/* iT Asset checklist — JSON drop zone + compact system specs */
.asset-json-dropzone {
    border: 2px dashed rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-control);
    padding: 1.1rem 0.85rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    background: rgba(255, 255, 255, 0.03);
}
.asset-json-dropzone:hover,
.asset-json-dropzone:focus-visible {
    border-color: rgba(96, 165, 250, 0.55);
    background: rgba(59, 130, 246, 0.08);
    outline: none;
}
.asset-json-dropzone.is-dragover {
    border-color: rgba(96, 165, 250, 0.85);
    background: rgba(59, 130, 246, 0.14);
}
.asset-json-dropzone.has-file {
    border-color: rgba(52, 211, 153, 0.55);
    background: rgba(16, 185, 129, 0.08);
}
.asset-json-dropzone__icon {
    font-size: 1.65rem;
    color: #60a5fa;
    margin-bottom: 0.35rem;
}
.asset-json-dropzone__title {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
}
.asset-json-dropzone__hint {
    margin: 0.25rem 0 0;
    font-size: 0.75rem;
    color: var(--color-muted-soft);
}
.asset-json-dropzone__name {
    display: block;
    margin-top: 0.45rem;
    font-size: 0.75rem;
    color: #6ee7b7;
    word-break: break-all;
}
.asset-json-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.asset-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    margin-bottom: 1.15rem;
}
@media (min-width: 768px) {
    .asset-spec-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
.asset-spec-item {
    padding: 0.4rem 0.55rem;
    border-radius: 0.55rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-width: 0;
}
.asset-spec-item--wide {
    grid-column: 1 / -1;
}
.asset-spec-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--color-muted-soft);
    margin-bottom: 0.12rem;
}
.asset-spec-value {
    display: block;
    font-size: 0.78rem;
    line-height: 1.35;
    color: #f3f4f6;
    word-break: break-word;
}
.asset-spec-value.ltr {
    direction: ltr;
    text-align: left;
}
.asset-spec-empty {
    color: var(--color-muted-soft);
    font-style: italic;
}
.asset-checklist-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.25rem;
    margin-bottom: 1.15rem;
}
@media (min-width: 768px) {
    .asset-checklist-items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.asset-checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    padding: 0.35rem 0.45rem;
    border-radius: 0.45rem;
    cursor: pointer;
}
.asset-checklist-item:hover {
    background: rgba(255, 255, 255, 0.05);
}
.asset-checklist-item input {
    margin-top: 0.15rem;
}
.asset-checklist-item span {
    font-size: 0.8rem;
    line-height: 1.4;
    color: #e5e7eb;
}

/* Complaints public portal */
.complaints-public-shell { padding-top: 5rem; }
.complaints-public-shell--hub { padding-top: 1.25rem; padding-bottom: 1.5rem; }
.complaints-public-card { max-width: min(42rem, 94vw); padding: 1.65rem 1.5rem 1.25rem; }
.complaints-public-header { margin-bottom: 1.25rem; }
.complaints-public-brand { display: flex; align-items: flex-start; gap: 0.85rem; margin-bottom: 1rem; }
.complaints-public-icon {
    width: 2.75rem; height: 2.75rem; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    border-radius: 0.8rem; background: rgba(56, 189, 248, 0.12); border: 1px solid rgba(56, 189, 248, 0.28);
    color: #7dd3fc; font-size: 1.1rem;
}
.complaints-public-title { margin: 0; font-size: 1.4rem; font-weight: 800; color: #fff; }
.complaints-public-subtitle { margin: 0.3rem 0 0; font-size: 0.86rem; line-height: 1.6; color: var(--color-muted-soft); }
.complaints-public-nav {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.3rem; padding: 0.28rem;
    border-radius: 0.75rem; background: rgba(15, 23, 42, 0.5); border: 1px solid rgba(255, 255, 255, 0.08);
}
.complaints-public-nav-link {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    padding: 0.58rem 0.7rem; border-radius: 0.55rem; font-size: 0.83rem; font-weight: 600;
    color: #94a3b8; text-decoration: none; transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.complaints-public-nav-link:hover { color: #e2e8f0; background: rgba(255, 255, 255, 0.05); }
.complaints-public-nav-link.is-active {
    color: #fff; background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
}
.complaints-public-footer {
    margin: 1.2rem 0 0; padding-top: 0.9rem; border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center; font-size: 0.76rem; line-height: 1.6; color: rgba(148, 163, 184, 0.85);
}
.complaints-form { display: flex; flex-direction: column; gap: 1rem; }
.complaints-error-list { margin: 0; padding-right: 1.1rem; }
.complaints-privacy-card,
.complaints-panel {
    padding: 0.85rem 0.95rem; border-radius: 0.8rem; border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.28);
}
.complaints-privacy-card {
    display: flex; align-items: center; justify-content: space-between; gap: 0.85rem;
    border-color: rgba(148, 163, 184, 0.22); background: rgba(15, 23, 42, 0.35);
}
.complaints-privacy-card.is-anonymous { border-color: rgba(52, 211, 153, 0.45); background: rgba(16, 185, 129, 0.1); }
.complaints-privacy-title { display: flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; font-weight: 700; color: #f8fafc; margin-bottom: 0.15rem; }
.complaints-privacy-card.is-anonymous .complaints-privacy-title { color: #d1fae5; }
.complaints-privacy-hint { margin: 0; font-size: 0.77rem; line-height: 1.5; color: rgba(148, 163, 184, 0.95); }
.complaints-privacy-card.is-anonymous .complaints-privacy-hint { color: rgba(209, 250, 229, 0.88); }
.complaints-switch { position: relative; display: inline-flex; flex-shrink: 0; cursor: pointer; }
.complaints-switch-input { position: absolute; opacity: 0; width: 0; height: 0; }
.complaints-switch-track {
    width: 2.75rem; height: 1.5rem; border-radius: 999px; background: rgba(71, 85, 105, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.35); position: relative; transition: background 0.2s ease, border-color 0.2s ease;
}
.complaints-switch-track::after {
    content: ''; position: absolute; top: 0.11rem; right: 0.11rem; width: 1.1rem; height: 1.1rem;
    border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25); transition: transform 0.2s ease;
}
.complaints-switch-input:checked + .complaints-switch-track { background: #10b981; border-color: #34d399; }
.complaints-switch-input:checked + .complaints-switch-track::after { transform: translateX(-1.25rem); }
.complaints-switch-input:focus-visible + .complaints-switch-track { outline: 2px solid #38bdf8; outline-offset: 2px; }
.complaints-panel.is-hidden { display: none; }
.complaints-section-head { display: flex; align-items: center; justify-content: space-between; gap: 0.65rem; margin-bottom: 0.65rem; }
.complaints-section-title { margin: 0; font-size: 0.88rem; font-weight: 700; color: #e2e8f0; }
.complaints-badge {
    font-size: 0.72rem; font-weight: 600; padding: 0.18rem 0.5rem; border-radius: 999px;
    background: rgba(16, 185, 129, 0.16); color: #6ee7b7; white-space: nowrap;
}
.complaints-badge--warn { background: rgba(234, 179, 8, 0.16); color: #fde68a; }
.complaints-badge--status { background: rgba(56, 189, 248, 0.16); color: #7dd3fc; }
.complaints-note { margin: 0; font-size: 0.8rem; color: rgba(148, 163, 184, 0.95); }
.complaints-note--warn { margin: -0.25rem 0 0.65rem; color: rgba(253, 224, 71, 0.9); }
.complaints-identity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.complaints-field--full { grid-column: 1 / -1; }
.complaints-required { color: #f87171; }
.complaints-body-input { min-height: 9rem; resize: vertical; }
.complaints-char-hint { margin-top: 0.3rem; font-size: 0.74rem; color: rgba(148, 163, 184, 0.9); text-align: left; }
.complaints-char-hint.is-valid { color: #6ee7b7; }
.complaints-char-hint.is-invalid { color: #fca5a5; }
.complaints-submit-btn { margin-top: 0.2rem; padding: 0.7rem 1rem; font-size: 0.93rem; }
.complaints-success { text-align: center; padding: 0.35rem 0 0.15rem; }
.complaints-success-icon {
    width: 3rem; height: 3rem; margin: 0 auto 0.75rem; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: rgba(16, 185, 129, 0.16); color: #34d399; font-size: 1.45rem;
}
.complaints-success-title { margin: 0 0 0.4rem; font-size: 1.15rem; font-weight: 800; color: #ecfdf5; }
.complaints-success-text { margin: 0 0 0.9rem; font-size: 0.86rem; color: rgba(203, 213, 225, 0.95); }
.complaints-tracking-code-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}
.complaints-tracking-code-wrap--inline,
.complaints-tracking-code-wrap--compact {
    justify-content: flex-start;
}
.complaints-tracking-code-wrap--compact .directory-copy {
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 0.45rem;
    font-size: 0.72rem;
}
.complaints-tracking-code {
    display: inline-block; padding: 0.7rem 1rem; border-radius: 0.7rem; background: rgba(15, 23, 42, 0.55);
    border: 1px dashed rgba(56, 189, 248, 0.45); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 1.1rem; letter-spacing: 0.08em; color: #7dd3fc;
}
.complaints-tracking-code--inline { padding: 0.3rem 0.55rem; font-size: 0.92rem; }
.complaints-tracking-code--compact {
    padding: 0.2rem 0.45rem;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    border-style: solid;
    border-color: rgba(56, 189, 248, 0.28);
    background: rgba(14, 165, 233, 0.08);
}
.complaints-success-actions { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1.1rem; }
.complaints-track-result { padding-top: 0.5rem; border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 0.25rem; }
.complaints-track-result-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.85rem; margin-bottom: 0.85rem; }
.complaints-track-status { text-align: left; }
.complaints-track-subject { margin-bottom: 0.55rem; }
.complaints-track-subject-text { font-weight: 600; color: #f8fafc; line-height: 1.55; }
.complaints-track-meta { font-size: 0.77rem; color: rgba(148, 163, 184, 0.95); margin-bottom: 0.85rem; }
.complaints-responses-list { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.45rem; }
.complaints-response-card {
    padding: 0.75rem 0.85rem; border-radius: 0.7rem; background: rgba(15, 23, 42, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.complaints-response-date { display: block; margin-bottom: 0.35rem; font-size: 0.72rem; color: rgba(148, 163, 184, 0.9); }
.complaints-response-body { font-size: 0.85rem; line-height: 1.65; color: #e2e8f0; }
@media (max-width: 640px) {
    .complaints-public-card { padding: 1.25rem 1rem 1rem; }
    .complaints-identity-grid { grid-template-columns: 1fr; }
}

/* —— WorkHub 404 —— */
.wh-404-page { overflow-x: hidden; }
.wh-404-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 5.5rem 1.25rem 2.5rem;
}
.wh-404-visual {
    position: relative;
    width: min(16rem, 72vw);
    height: min(16rem, 72vw);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
}
.wh-404-orbit {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px dashed rgba(148, 163, 184, 0.22);
    animation: wh-404-spin 28s linear infinite;
}
.wh-404-orbit--inner {
    inset: 14%;
    border-color: rgba(96, 165, 250, 0.28);
    animation-duration: 18s;
    animation-direction: reverse;
}
.wh-404-glow {
    position: absolute;
    width: 70%;
    height: 70%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.22) 0%, transparent 68%);
    filter: blur(8px);
    animation: wh-404-pulse 4s ease-in-out infinite;
}
.wh-404-code {
    position: relative;
    z-index: 2;
    font-size: clamp(4.5rem, 18vw, 6.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #e2e8f0 0%, #93c5fd 45%, #6366f1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 40px rgba(96, 165, 250, 0.35);
    animation: wh-404-float 5s ease-in-out infinite;
}
.wh-404-pin {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.35rem;
    color: rgba(125, 211, 252, 0.85);
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.45));
    animation: wh-404-bob 3s ease-in-out infinite;
}
.wh-404-card {
    max-width: 30rem;
    width: 100%;
    animation: auth-card-in 0.55s ease-out;
}
.wh-404-badge {
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.35), rgba(99, 102, 241, 0.25));
    border-color: rgba(96, 165, 250, 0.45);
}
.wh-404-path-block {
    margin-bottom: 1.35rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-control);
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.wh-404-path-label {
    display: block;
    font-size: 0.72rem;
    color: rgba(148, 163, 184, 0.95);
    margin-bottom: 0.4rem;
}
.wh-404-path {
    display: block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.82rem;
    color: #bae6fd;
    word-break: break-all;
    unicode-bidi: isolate;
}
.wh-404-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
@keyframes wh-404-spin {
    to { transform: rotate(360deg); }
}
@keyframes wh-404-pulse {
    0%, 100% { opacity: 0.65; transform: scale(0.96); }
    50% { opacity: 1; transform: scale(1.04); }
}
@keyframes wh-404-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
@keyframes wh-404-bob {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-5px); }
}
@media (min-width: 768px) {
    .wh-404-shell {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 2.5rem;
        padding-top: 4rem;
    }
    .wh-404-visual {
        width: 14rem;
        height: 14rem;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    .wh-404-card { max-width: 26rem; }
}
@media (max-width: 767px) {
    .wh-404-shell { padding-top: 4.75rem; }
}
