/* IMP-1840: the console's semantic variables are one mapping onto the canonical
   Mystrix tokens published in css/mystrix-tokens.css (IMP-0626's palette, shared
   with Creator from one source file). This file owns no palette colour values of
   its own; every name below resolves into the shared `--st-*` set, so existing
   pages inherit the product palette without touching their stylesheets. */

:root {
    /* Surfaces. The old near-invisible neutral stack becomes the token system's
       violet-cast lift: page canvas, recessed chrome, cards/inputs, raised. */
    --bg-primary: var(--st-canvas);
    --bg-secondary: var(--st-well);
    --bg-secondary2: var(--st-surface-2);
    --bg-tertiary: var(--st-surface-1);

    /* Text */
    --text-primary: var(--st-text);
    --text-secondary: var(--st-text-muted);
    --text-muted: var(--st-text-muted);

    /* Accents. The brief's palette has exactly four accent roles; the console's
       old separate blue "info" resolves into the primary accent. */
    --accent: var(--st-primary);
    --accent-hover: var(--st-amethyst-deep);
    --success: var(--st-positive);
    --warning: var(--st-secondary);
    --danger: var(--st-danger);
    --error: var(--st-danger);
    --info: var(--st-primary);

    /* Rules (borders). --border was a near-invisible neutral on a neutral page
       (both effectively invisible against each other); --st-rule is the
       canonical ruled line from the shared tokens. */
    --border: var(--st-rule);
    --border2: var(--st-rule);

    /* Hover shades, derived from the tokens (there is no deep token per role).
       Solid roles darken 18% toward ink; info follows the primary's deep step. */
    --success-hover: color-mix(in srgb, var(--st-positive) 82%, var(--st-ink));
    --warning-hover: color-mix(in srgb, var(--st-secondary) 82%, var(--st-ink));
    --danger-hover: color-mix(in srgb, var(--st-danger) 82%, var(--st-ink));
    --info-hover: var(--st-amethyst-deep);

    /* Non-production banner: a deep ember step of the secondary accent. */
    --env-banner-bg: color-mix(in srgb, var(--st-secondary) 40%, var(--st-ink));

    /* IMP-0615 convention retained: -NNN suffix = alpha*1000. IMP-1840 re-hued
       every old one-off brand tint onto the canonical accent it duplicates, so
       the values derive from the shared tokens instead of a second palette.
       Neutral overlays (black, white, pewter) are kept as-is: no token makes
       them redundant. Page moves replace these with the tokens' own wash/line
       pairs as each page adopts the design language. */

    --tint-accent-200: color-mix(in srgb, var(--st-primary) 20%, transparent);

    --tint-black-200: rgba(0, 0, 0, 0.2);
    --tint-black-300: rgba(0, 0, 0, 0.3);
    --tint-black-400: rgba(0, 0, 0, 0.4);
    --tint-black-500: rgba(0, 0, 0, 0.5);
    --tint-black-600: rgba(0, 0, 0, 0.6);
    --tint-black-700: rgba(0, 0, 0, 0.7);

    --tint-danger-80: color-mix(in srgb, var(--st-danger) 8%, transparent);
    --tint-danger-100: color-mix(in srgb, var(--st-danger) 10%, transparent);
    --tint-danger-120: color-mix(in srgb, var(--st-danger) 12%, transparent);
    --tint-danger-150: color-mix(in srgb, var(--st-danger) 15%, transparent);
    --tint-danger-200: color-mix(in srgb, var(--st-danger) 20%, transparent);
    --tint-danger-300: color-mix(in srgb, var(--st-danger) 30%, transparent);

    --tint-emerald-100: color-mix(in srgb, var(--st-positive) 10%, transparent);
    --tint-emerald-200: color-mix(in srgb, var(--st-positive) 20%, transparent);

    --tint-honey-150: color-mix(in srgb, var(--st-secondary) 15%, transparent);
    --tint-honey-200: color-mix(in srgb, var(--st-secondary) 20%, transparent);

    --tint-indigo-50: color-mix(in srgb, var(--st-primary) 5%, transparent);
    --tint-indigo-100: color-mix(in srgb, var(--st-primary) 10%, transparent);
    --tint-indigo-200: color-mix(in srgb, var(--st-primary) 20%, transparent);

    --tint-info-100: color-mix(in srgb, var(--st-primary) 10%, transparent);
    --tint-info-150: color-mix(in srgb, var(--st-primary) 15%, transparent);
    --tint-info-200: color-mix(in srgb, var(--st-primary) 20%, transparent);
    --tint-info-300: color-mix(in srgb, var(--st-primary) 30%, transparent);

    --tint-pewter-200: rgba(160, 160, 176, 0.2);

    --tint-success-100: color-mix(in srgb, var(--st-positive) 10%, transparent);
    --tint-success-150: color-mix(in srgb, var(--st-positive) 15%, transparent);
    --tint-success-200: color-mix(in srgb, var(--st-positive) 20%, transparent);
    --tint-success-300: color-mix(in srgb, var(--st-positive) 30%, transparent);

    --tint-text-primary-40: rgba(255, 255, 255, 0.04);
    --tint-text-primary-100: rgba(255, 255, 255, 0.1);
    --tint-text-primary-150: rgba(255, 255, 255, 0.15);
    --tint-text-primary-200: rgba(255, 255, 255, 0.2);

    --tint-violet-150: color-mix(in srgb, var(--st-primary) 15%, transparent);

    --tint-warning-100: color-mix(in srgb, var(--st-secondary) 10%, transparent);
    --tint-warning-150: color-mix(in srgb, var(--st-secondary) 15%, transparent);
    --tint-warning-200: color-mix(in srgb, var(--st-secondary) 20%, transparent);
    --tint-warning-300: color-mix(in srgb, var(--st-secondary) 30%, transparent);

    /* Audit #1787260305518 fixes BUG-9169. The scene-renderer palette Story Director's preview shares with the Reader. */
    --theme-primary: var(--accent);
    --color-000000: #000000;
    --tint-accent-yellow-180: rgba(232, 147, 95, 0.18);
    --tint-accent-yellow-350: rgba(232, 147, 95, 0.35);
    --tint-accent-yellow-450: rgba(232, 147, 95, 0.45);
    --tint-accent-yellow-750: rgba(232, 147, 95, 0.75);
    --tint-accent-yellow-80: rgba(232, 147, 95, 0.08);
    --tint-black-0: rgba(11, 10, 16, 0);
    --tint-black-650: rgba(11, 10, 16, 0.65);
    --tint-black-720: rgba(11, 10, 16, 0.72);
    --tint-black-750: rgba(11, 10, 16, 0.75);
    --tint-coral-220: rgba(255, 140, 90, 0.22);
    --tint-cream-220: rgba(255, 230, 200, 0.22);
    --tint-frost-350: rgba(160, 200, 255, 0.35);
    --tint-ivory-300: rgba(255, 255, 240, 0.3);
    --tint-jade-180: rgba(34, 197, 94, 0.18);
    --tint-jade-350: rgba(34, 197, 94, 0.35);
    --tint-jade-450: rgba(34, 197, 94, 0.45);
    --tint-jade-750: rgba(34, 197, 94, 0.75);
    --tint-jade-80: rgba(34, 197, 94, 0.08);
    --tint-moonlight-100: rgba(200, 210, 220, 0.1);
    --tint-moonlight-180: rgba(200, 210, 220, 0.18);
    --tint-moonlight-300: rgba(200, 210, 220, 0.3);
    --tint-navy-600: rgba(10, 15, 40, 0.6);
    --tint-skylight-250: rgba(180, 220, 255, 0.25);
    --tint-steel-280: rgba(140, 170, 220, 0.28);
    --tint-sunbeam-250: rgba(255, 200, 120, 0.25);
    --tint-text-450: rgba(239, 234, 247, 0.45);
    --tint-text-80: rgba(239, 234, 247, 0.08);
    --tint-twilight-350: rgba(40, 40, 70, 0.35);
    --tint-vote-primary-180: rgba(155, 126, 245, 0.18);
    --tint-vote-primary-350: rgba(155, 126, 245, 0.35);
    --tint-vote-primary-500: rgba(155, 126, 245, 0.5);
    --tint-vote-primary-700: rgba(155, 126, 245, 0.7);
    --tint-vote-primary-80: rgba(155, 126, 245, 0.08);
    /* IMP-0615: colour and tint tokens for the remaining component literals. */
    --color-050812: #050812;
    --color-059669: #059669;
    --color-065f46: #065f46;
    --color-070c17: #070c17;
    --color-090d16: #090d16;
    --color-0e0c14: #0e0c14;
    --color-0f0f1a: #0f0f1a;
    --color-102632: #102632;
    --color-111522: #111522;
    --color-111827: #111827;
    --color-131019: #131019;
    --color-151b2c: #151b2c;
    --color-15803d: #15803d;
    --color-17664c: #17664c;
    --color-182949: #182949;
    --color-1a1a2e: #1a1a2e;
    --color-1f2937: #1f2937;
    --color-201a30: #201a30;
    --color-242b46: #242b46;
    --color-2a2338: #2a2338;
    --color-2b1028: #2b1028;
    --color-2d2d44: #2d2d44;
    --color-2e2417: #2e2417;
    --color-321512: #321512;
    --color-333333: #333333;
    --color-343046: #343046;
    --color-34706b: #34706b;
    --color-373249: #373249;
    --color-374151: #374151;
    --color-454057: #454057;
    --color-496a9b: #496a9b;
    --color-4a5568: #4a5568;
    --color-4b5563: #4b5563;
    --color-4f46e5: #4f46e5;
    --color-4fae94: #4fae94;
    --color-64547b: #64547b;
    --color-6b7280: #6b7280;
    --color-6ee7b7: #6ee7b7;
    --color-7160b8: #7160b8;
    --color-745020: #745020;
    --color-75669c: #75669c;
    --color-864b74: #864b74;
    --color-8675b5: #8675b5;
    --color-8a4c32: #8a4c32;
    --color-8b580f: #8b580f;
    --color-8c2837: #8c2837;
    --color-8c6cda: #8c6cda;
    --color-8cd4bc: #8cd4bc;
    --color-92400e: #92400e;
    --color-9374bf: #9374bf;
    --color-947cac: #947cac;
    --color-991b1b: #991b1b;
    --color-9b7ef5: #9b7ef5;
    --color-9ca3af: #9ca3af;
    --color-9ca8bc: #9ca8bc;
    --color-a0a0b0: #a0a0b0;
    --color-a5b4c9: #a5b4c9;
    --color-a8c6ff: #a8c6ff;
    --color-aaaaaa: #aaaaaa;
    --color-ac9cda: #ac9cda;
    --color-b06a35: #b06a35;
    --color-b6a0ff: #b6a0ff;
    --color-b8a0ff: #b8a0ff;
    --color-b8b4dc: #b8b4dc;
    --color-bda0f7: #bda0f7;
    --color-c4a9ff: #c4a9ff;
    --color-c4afff: #c4afff;
    --color-c5a56b: #c5a56b;
    --color-c6b1f1: #c6b1f1;
    --color-c6b4ff: #c6b4ff;
    --color-c8b0ff: #c8b0ff;
    --color-c8b7ff: #c8b7ff;
    --color-cbb7ed: #cbb7ed;
    --color-d1fae5: #d1fae5;
    --color-d8bc86: #d8bc86;
    --color-dbaf67: #dbaf67;
    --color-e2565a: #e2565a;
    --color-e8ae6c: #e8ae6c;
    --color-eee5ff: #eee5ff;
    --color-eee7fa: #eee7fa;
    --color-eef2ff: #eef2ff;
    --color-efe8ff: #efe8ff;
    --color-f3f4f6: #f3f4f6;
    --color-fca5a5: #fca5a5;
    --color-fcd34d: #fcd34d;
    --color-fee2e2: #fee2e2;
    --color-fef3c7: #fef3c7;
    --color-ffb4ab: #ffb4ab;
    --color-ffffff: #ffffff;
    --tint-000000-120: rgba(0, 0, 0, 0.12);
    --tint-000000-150: rgba(0, 0, 0, 0.15);
    --tint-000000-220: rgba(0, 0, 0, 0.22);
    --tint-000000-250: rgba(0, 0, 0, 0.25);
    --tint-000000-480: rgba(0, 0, 0, 0.48);
    --tint-000000-540: rgba(0, 0, 0, 0.54);
    --tint-000000-650: rgba(0, 0, 0, 0.65);
    --tint-000000-80: rgba(0, 0, 0, 0.08);
    --tint-04080c-100: rgba(4, 8, 12, 0.1);
    --tint-04080c-120: rgba(4, 8, 12, 0.12);
    --tint-04080c-550: rgba(4, 8, 12, 0.55);
    --tint-04080c-800: rgba(4, 8, 12, 0.8);
    --tint-080d1e-788: rgba(8, 13, 30, 0.788);
    --tint-080e1c-420: rgba(8, 14, 28, 0.42);
    --tint-0a0a14-700: rgba(10, 10, 20, 0.7);
    --tint-0c1934-700: rgba(12, 25, 52, 0.7);
    --tint-0f172a-820: rgba(15, 23, 42, 0.82);
    --tint-10b981-120: rgba(16, 185, 129, 0.12);
    --tint-111827-720: rgba(17, 24, 39, 0.72);
    --tint-111827-950: rgba(17, 24, 39, 0.95);
    --tint-141f34-220: rgba(20, 31, 52, 0.22);
    --tint-6b2c15-920: rgba(107, 44, 21, 0.92);
    --tint-746893-439: rgba(116, 104, 147, 0.439);
    --tint-781c2a-950: rgba(120, 28, 42, 0.95);
    --tint-7960b5-220: rgba(121, 96, 181, 0.22);
    --tint-8c6cda-71: rgba(140, 108, 218, 0.071);
    --tint-8d74be-533: rgba(141, 116, 190, 0.533);
    --tint-9b7ef5-250: rgba(155, 126, 245, 0.25);
    --tint-9c7df0-169: rgba(156, 125, 240, 0.169);
    --tint-9c7df0-212: rgba(156, 125, 240, 0.212);
    --tint-a380f0-47: rgba(163, 128, 240, 0.047);
    --tint-a8c6ff-500: rgba(168, 198, 255, 0.5);
    --tint-a97bf0-63: rgba(169, 123, 240, 0.063);
    --tint-ac8cec-467: rgba(172, 140, 236, 0.467);
    --tint-b397f5-102: rgba(179, 151, 245, 0.102);
    --tint-b9deff-520: rgba(185, 222, 255, 0.52);
    --tint-dce5ea-340: rgba(220, 229, 234, 0.34);
    --tint-e2f0f5-220: rgba(226, 240, 245, 0.22);
    --tint-e5deff-900: rgba(229, 222, 255, 0.9);
    --tint-ebf6ff-920: rgba(235, 246, 255, 0.92);
    --tint-eed2a4-480: rgba(238, 210, 164, 0.48);
    --tint-ffffff-12: rgba(255, 255, 255, 0.012);
    --tint-ffffff-43: rgba(255, 255, 255, 0.043);
    --tint-ffffff-650: rgba(255, 255, 255, 0.65);
    --tint-ffffff-850: rgba(255, 255, 255, 0.85);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--st-font-ui);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

.admin-layout {
    display: flex;
    /* IMP-0370: dvh/svh tracks the visible viewport (100vh includes the space behind the
       mobile URL bar). The vh line above each one is the fallback for browsers without it. */
    min-height: 100vh;
    min-height: 100dvh;
}

.admin-sidebar {
    width: 150px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    position: fixed;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
}

.sidebar-header {
    padding: .1rem;
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
}

.logo i {
    color: var(--accent);
}

.nav {
    padding: 1rem 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.2rem .2rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
}

 .nav-item i {
     width: 20px;
     text-align: center;
 }

.nav-item:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--accent);
    color: var(--text-primary);
}

/* IMP-1827: the Operations entry expands into its workspaces while one of them is open;
   each workspace marks itself active. */
.nav-subgroup {
    border-left: 2px solid var(--border);
    margin: 0.1rem 0 0.25rem 0.9rem;
}

.nav-subgroup .nav-item {
    font-size: 0.85rem;
    padding-left: 0.4rem;
}

.nav-divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 1.5rem;
}

/* IMP-0387: skip-to-content link for keyboard users; visible only when focused. */
.skip-to-content {
    position: fixed;
    z-index: 10000;
    inset-block-start: 0.75rem;
    inset-inline-start: 0.75rem;
    padding: 0.65rem 0.9rem;
    border-radius: 10px;
    background: var(--st-primary);
    color: var(--st-on-accent);
    font-weight: 600;
    transform: translateY(-200%);
}

.skip-to-content:focus {
    transform: translateY(0);
    outline: 2px solid var(--st-parchment);
    outline-offset: 2px;
}

.admin-main {
    flex: 1;
    /* Audit #1787260301351 fixes BUG-5321: wide operational content must shrink
       inside the Admin shell instead of enlarging the document. */
    min-width: 0;
    margin-left: 152px;
}

 @media (max-width: 1024px) {
     .admin-sidebar {
         width: 72px;
     }

     .admin-main {
         margin-left: 72px;
     }

     .sidebar-header {
         padding: 1rem;
     }

     .logo {
         justify-content: center;
     }

     .logo-text {
         display: none;
     }

     .nav-item {
         justify-content: center;
         padding: 0.75rem;
     }

     .nav-label {
         display: none;
     }

     .nav-subgroup {
         margin-left: 0.5rem;
     }

     .nav-subgroup .nav-item {
         padding: 0.5rem;
     }
 }

.admin-header {
    display: flex;
    justify-content: space-between;
    padding: .1rem .1rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.env-badge {
    padding: 0.25rem 0.75rem;
    background: var(--accent);
    border-radius: 9999px;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.header-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.header-btn:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.admin-dropdown {
    position: relative;
}

.admin-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.1rem 0.1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.2s;
}

.admin-dropdown-trigger:hover {
    background: var(--bg-primary);
    border-color: var(--accent);
}

.admin-avatar {
    width: 32px;
    height: 32px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.admin-name {
    font-size: 0.875rem;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-arrow {
    font-size: 0.7rem;
    color: var(--text-secondary);
    transition: transform 0.2s;
}

.admin-dropdown-menu.active + .admin-dropdown-trigger .dropdown-arrow,
.admin-dropdown-trigger:focus .dropdown-arrow {
    transform: rotate(180deg);
}

.admin-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 8px 24px var(--tint-black-400);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 1000;
}

.admin-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 0.75rem 1rem;
}

.dropdown-header-name {
    font-weight: 600;
    font-size: 0.875rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-header-role {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: capitalize;
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 0.25rem 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.15s;
}

.dropdown-item:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.dropdown-item i {
    width: 16px;
    text-align: center;
}

.dropdown-item-danger {
    color: var(--danger);
}

.dropdown-item-danger:hover {
    background: var(--tint-danger-100);
    color: var(--danger);
}

.admin-content {
    padding: .1rem;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-success { background: var(--tint-success-100); border: 1px solid var(--success); }
.alert-warning { background: var(--tint-warning-100); border: 1px solid var(--warning); }
.alert-danger { background: var(--tint-danger-100); border: 1px solid var(--danger); }

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

 .dashboard-grid-compact {
     grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
     gap: 0.75rem;
     margin-bottom: 1.25rem;
 }

 .dashboard-grid-secondary {
     margin-top: 0.25rem;
 }

.stat-card {
    background: var(--bg-secondary2);
    border: 1px solid var(--border2);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

 .dashboard-grid-secondary .stat-card {
     opacity: 0.92;
 }

 .dashboard-grid-compact .stat-card {
     padding: 0.75rem 0.85rem;
     border-radius: 10px;
     gap: 0.75rem;
 }

.stat-icon {
    width: 50px;
    height: 50px;
    background: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

 .dashboard-grid-compact .stat-icon {
     width: 34px;
     height: 34px;
     border-radius: 10px;
     font-size: 0.95rem;
 }

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
}

 .dashboard-grid-compact .stat-value {
     font-size: 1.15rem;
     line-height: 1.2;
 }

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

 .dashboard-grid-compact .stat-label {
     font-size: 0.75rem;
 }

.dashboard-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: .1rem;
}

.dashboard-section {
    background: var(--bg-secondary2);
    border: 1px solid var(--border2);
    border-radius: 12px;
    padding: .1rem;
}

.dashboard-section h2 {
    font-size: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.activity-item {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.activity-time {
    color: var(--text-secondary);
    font-size: 0.875rem;
    min-width: 80px;
}

.status-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
}

.status-ok i { color: var(--success); }
.status-warning i { color: var(--warning); }
.status-error i { color: var(--danger); }

.page-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-success { background: var(--success); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-sm { padding: 0.5rem 0.75rem; font-size: 0.75rem; }

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
    vertical-align: middle;
}

.btn-icon:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.table-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    background: var(--bg-tertiary);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.admin-table tbody tr:hover {
    background: var(--bg-tertiary);
}

/* BUG-0816: data-table name / email / creator cells had no truncation, so a
   long value (e.g. an unbroken email or display name) clipped unreadably and
   forced the table to overflow horizontally. Long unbroken strings now wrap
   inside the cell instead of clipping or blowing out the layout. */
.admin-table td {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* BUG-0816: opt-in single-line ellipsis truncation for the identity columns
   (name / email / creator). The truncation styling lives here; enabling it on
   the specific <td>s (adding class="cell-truncate" and a title= for hover
   full-text) is a template change in the route-specific admin listing script, which is
   outside the CSS scope and noted separately. */
.admin-table td.cell-truncate {
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-success { background: var(--tint-success-200); color: var(--success); }
.badge-warning { background: var(--tint-warning-200); color: var(--warning); }
.badge-danger { background: var(--tint-danger-200); color: var(--danger); }
.badge-info { background: var(--tint-info-200); color: var(--info); }
.badge-secondary { background: var(--bg-tertiary); color: var(--text-secondary); }

.search-input,
.filter-select {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
}

.search-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--accent);
}

.moderation-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.moderation-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

.moderation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.moderation-type {
    font-weight: 600;
    text-transform: capitalize;
}

.moderation-content {
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.moderation-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.moderation-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.moderation-actions {
    display: flex;
    gap: 0.5rem;
}

/* BUG-6766: queue page navigation; admin.css is the only sheet this page loads. */
.moderation-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.moderation-pagination .btn {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

code {
    background: var(--bg-tertiary);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.875rem;
}

.form-container { max-width: 600px; }
.admin-form { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; }
/* BUG-6742: groups a form's fields so one attribute can make them read-only; no chrome of its own. */
.form-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 0.75rem; background: var(--bg-tertiary);
    border: 1px solid var(--border); border-radius: 8px; color: var(--text-primary); font-size: 1rem;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); }
.form-group input[readonly] { opacity: 0.7; cursor: not-allowed; }
.form-group small { display: block; margin-top: 0.25rem; color: var(--text-secondary); font-size: 0.8rem; }
.checkbox-group label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.checkbox-group input[type="checkbox"] { width: auto; }
.form-actions { display: flex; gap: 1rem; justify-content: flex-end; margin-top: 2rem; }
.btn-secondary { background: var(--bg-tertiary); color: var(--text-primary); text-decoration: none; }
.actions-cell { white-space: nowrap; }
/* Audit #1787260300184 fixes BUG-4179: row actions include suspension, bans, deletes,
   and hard deletes. Keep every shared icon target at the preferred 44px mobile size and
   leave a visible/tappable gutter between adjacent decisions so a missed View tap cannot
   land on an irreversible action. */
.actions-cell .btn-icon {
    margin: 0.25rem;
}
.btn-danger-icon:hover { color: var(--danger); }

.login-container { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; background: var(--bg-primary); }
.login-box { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; width: 100%; max-width: 400px; }
.login-header { text-align: center; margin-bottom: 2rem; }
.login-header i { font-size: 3rem; color: var(--accent); margin-bottom: 1rem; display: block; }
.login-header h1 { font-size: 1.5rem; margin: 0; }
.login-btn { width: 100%; padding: 0.75rem; background: var(--accent); color: white; border: none; border-radius: 8px; font-size: 1rem; cursor: pointer; }
.login-btn:hover { background: var(--accent-hover); }
.error-msg { background: var(--tint-danger-100); border: 1px solid var(--danger); color: var(--danger); padding: 0.75rem; border-radius: 8px; margin-bottom: 1rem; text-align: center; }

.input-with-button { display: flex; gap: 0.5rem; }
.input-with-button input { flex: 1; }
.input-with-button button { flex-shrink: 0; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.admin-form h3 { margin: 1.5rem 0 1rem; font-size: 1rem; color: var(--text-secondary); }

/* Compact table and button variants */
.btn-warning { background: var(--warning); color: var(--st-on-accent); }
.btn-warning:hover { background: var(--warning-hover); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-primary); }
.btn-outline:hover { background: var(--bg-tertiary); }

/* Enhanced dashboard styles */
.stat-card-warning {
    border-color: var(--warning);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--tint-warning-100) 100%);
}

.stat-card-warning .stat-icon {
    background: var(--warning);
}

.stat-card-info {
    border-color: var(--info);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--tint-info-100) 100%);
}

.stat-card-info .stat-icon {
    background: var(--info);
}

.stat-link {
    width: 100%;
    text-align: right;
    font-size: 0.75rem;
    color: var(--accent);
    text-decoration: none;
    margin-top: 0.5rem;
    transition: color 0.2s;
}

.stat-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.activity-type {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
    white-space: nowrap;
}

.activity-type-info {
    background: var(--tint-info-200);
    color: var(--info);
}

.activity-type-success {
    background: var(--tint-success-200);
    color: var(--success);
}

.activity-type-warning {
    background: var(--tint-warning-200);
    color: var(--warning);
}

.activity-type-danger {
    background: var(--tint-danger-200);
    color: var(--danger);
}

.activity-text {
    flex: 1;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.status-indicator {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 0.25rem;
}

.status-ok .status-indicator { color: var(--success); }
.status-error .status-indicator { color: var(--danger); }
.status-unknown .status-indicator { color: var(--text-secondary); }
.status-unknown i { color: var(--text-secondary); }

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.quick-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.quick-action-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.quick-action-btn i {
    color: var(--accent);
}

.quick-action-btn:hover i {
    color: var(--text-primary);
}

/* Live Traffic Graph */
.dashboard-section-full {
    grid-column: 1 / -1;
}

 .traffic-header {
     display: flex;
     justify-content: space-between;
     align-items: center;
     gap: 1rem;
     margin-bottom: 1rem;
 }

 .traffic-header h2 {
     margin-bottom: 0;
 }

 .traffic-controls {
     display: flex;
     align-items: center;
     gap: 0.5rem;
 }

 .traffic-range-select {
     background: var(--bg-tertiary);
     border: 1px solid var(--border);
     color: var(--text-primary);
     padding: 0.45rem 0.6rem;
     border-radius: 8px;
     font-size: 0.85rem;
 }

 .traffic-range-select:focus {
     outline: none;
     border-color: var(--accent);
 }

.traffic-graph-container {
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: .1rem;
}

.traffic-stats-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.traffic-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
}

.traffic-stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.traffic-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.traffic-stat-unit {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.traffic-chart-wrapper {
    height: 280px;
    position: relative;
}

.traffic-chart {
    display: block;
    width: 100%;
    height: 100%;
}

.traffic-chart-grid {
    stroke: rgba(75, 85, 99, 0.3);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.traffic-chart-axis-label {
    fill: #9ca3af;
    font-size: 11px;
}

.traffic-chart-area {
    fill: var(--tint-info-100);
    stroke: none;
}

.traffic-chart-requests {
    fill: none;
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}

.traffic-chart-requests,
.traffic-chart-requests-point {
    stroke: var(--info);
    fill: var(--info);
}

.traffic-legend {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}

 .legend-item.legend-active {
     color: var(--text-primary);
 }

 .legend-item.legend-inactive {
     opacity: 0.55;
 }

.legend-color {
    width: 16px;
    height: 3px;
    border-radius: 2px;
}

/* =========================================================================
   Bootstrap-style utilities for forms
   ========================================================================= */
.row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.col-md-6 {
    flex: 1;
    min-width: 280px;
}

.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.card-header {
    padding: 1rem 1.25rem;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
}

.card-header h5 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
}

.card-header small {
    font-size: 0.8rem;
}

.card-body {
    padding: 1.25rem;
}

.mb-0 { margin-bottom: 0; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.me-2 { margin-right: 0.5rem; }
.text-muted { color: var(--text-secondary); }

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.form-select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a0a0a0' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}

.form-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--tint-accent-200);
}

.form-select optgroup {
    font-weight: 600;
    color: var(--text-secondary);
}

.form-select option {
    padding: 0.5rem;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.d-flex { display: flex; }
.gap-2 { gap: 0.5rem; }

/* Job Tracker Header Indicator */
.job-tracker-indicator {
    display: none;
    position: relative;
    margin-right: 1rem;
}
.job-tracker-indicator.active {
    display: block;
}
.job-tracker-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--accent);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    color: white;
    transition: background 0.2s;
}
.job-tracker-btn:hover {
    background: var(--accent-hover);
}
.job-tracker-btn .job-count {
    background: var(--tint-text-primary-200);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-weight: 600;
}
.job-tracker-btn .job-timer {
    font-family: monospace;
    font-size: 0.9rem;
}
.job-tracker-panel {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    width: 320px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 8px 24px var(--tint-black-400);
    z-index: 1000;
}
.job-tracker-panel.active {
    display: block;
}
.job-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
}
.job-panel-header .btn-clear {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: 4px;
    cursor: pointer;
}
.job-panel-header .btn-clear:hover {
    background: var(--bg-tertiary);
}
.job-panel-list {
    max-height: 300px;
    overflow-y: auto;
}
.job-empty {
    padding: 1.5rem;
    text-align: center;
    color: var(--text-secondary);
}
.job-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
}
.job-item:last-child {
    border-bottom: none;
}
.job-item-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-tertiary);
    flex-shrink: 0;
}
.job-running .job-item-icon {
    color: var(--accent);
}
.job-completed .job-item-icon {
    background: var(--success);
    color: white;
}
.job-failed .job-item-icon {
    background: var(--danger);
    color: white;
}
.job-item-info {
    flex: 1;
    min-width: 0;
}
.job-item-title {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.job-item-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
}
.job-progress {
    margin-top: 0.35rem;
    height: 3px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
}
.job-progress-bar {
    height: 100%;
    background: var(--accent);
    transition: width 0.3s;
}
.job-item-link, .job-item-dismiss {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 4px;
}
.job-item-link:hover, .job-item-dismiss:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Toast Notifications */
.job-toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}
.job-toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 16px var(--tint-black-400);
    min-width: 280px;
    max-width: 420px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    pointer-events: auto;
}
.job-toast.show {
    opacity: 1;
    transform: translateX(0);
}
.job-toast i:first-child {
    font-size: 1.1rem;
    flex-shrink: 0;
}
.job-toast-message {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.3;
}
.job-toast-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    opacity: 0.6;
}
.job-toast-close:hover {
    opacity: 1;
}
.job-toast-progress {
    border-left: 3px solid var(--accent);
}
.job-toast-progress i:first-child {
    color: var(--accent);
}
.job-toast-success {
    border-left: 3px solid var(--success);
}
.job-toast-success i:first-child {
    color: var(--success);
}
.job-toast-error {
    border-left: 3px solid var(--danger);
}
.job-toast-error i:first-child {
    color: var(--danger);
}
.job-toast-info {
    border-left: 3px solid var(--info);
}
.job-toast-info i:first-child {
    color: var(--info);
}

.job-toast-joblog {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    height: 200px;
}

.job-toast-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.job-toast-title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.job-toast-title {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.job-toast-status {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.job-toast-log {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.5rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.8rem;
    line-height: 1.3;
}

.job-toast-log-line {
    padding: 0.1rem 0;
    border-bottom: 1px solid var(--tint-text-primary-40);
}

.job-toast-log-line:last-child {
    border-bottom: none;
}

.job-toast-log-stage {
    color: var(--accent);
    margin-right: 0.35rem;
}

/* IMP-0379: honor the OS-level vestibular-motion preference globally. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
/* IMP-0373: keep modal/drawer scrolling from chaining into the document. */
body.modal-open { overflow: hidden; }
.modal, .modal-content, [role="dialog"], .drawer, .side-panel {
    overscroll-behavior: contain;
}

/* IMP-0328: shared form-validation runtime semantics. */
.form-field-invalid {
    border-color: var(--danger) !important;
    outline: 2px solid color-mix(in srgb, var(--danger) 35%, transparent);
    outline-offset: 1px;
}

.form-field-error {
    color: var(--danger);
    display: block;
    font-size: 0.82rem;
    line-height: 1.35;
    margin-top: 0.35rem;
}

.form-error-summary {
    background: color-mix(in srgb, var(--danger) 12%, transparent);
    border: 1px solid var(--danger);
    border-radius: 6px;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
}

/* Reason-and-confirmation dialog shown before any Admin mutation (admin-reason.js). */
.admin-reason-dialog { max-inline-size: min(32rem, calc(100dvw - 2rem)); padding: 1.25rem; border-radius: 0.5rem; }
.admin-reason-dialog form { display: grid; gap: 0.5rem; }
.admin-reason-dialog textarea, .admin-reason-dialog input[type="text"] { inline-size: 100%; min-block-size: 44px; }
.admin-reason-actions { display: flex; gap: 0.5rem; justify-content: flex-end; }
.admin-reason-status::before { content: "\26A0\FE0F\00a0"; }
.admin-reason-status:empty::before { content: none; }

/* Password re-confirmation dialog shown before a money- or price-changing action (reauth.js). */
.reauth-dialog { max-inline-size: min(28rem, calc(100dvw - 2rem)); padding: 1.25rem; border-radius: 0.5rem; }
.reauth-form { display: grid; gap: 0.5rem; }
.reauth-form h2 { margin: 0; font-size: 1.1rem; }
.reauth-form input[type="password"] { inline-size: 100%; min-block-size: 44px; }
.reauth-error { margin: 0; min-block-size: 1.25rem; color: var(--danger); }
.reauth-error:not(:empty)::before { content: "\26A0\FE0F\00a0"; }
.reauth-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: flex-end; }
.reauth-actions button { min-block-size: 44px; min-inline-size: 44px; }
