:root {
    /* Premium Typography Tokens */
    --font-heading: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Inter", Arial, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Inter", Arial, sans-serif;

    /* Base Color Tokens */
    --bg-base: #090e14; /* Deep graphite / dark navy base */
    --bg-surface: #121926;
    --bg-panel: rgba(18, 25, 38, 0.7); /* Glassmorphism base */

    /* Accent Color Tokens — canon: ANDEL_ADMIN_V2_CLASSIC_PRODUCTION_DESIGN.md §4.2 */
    --brand: #2563EB;              /* identity only */
    --brand-hi: #38BDF8;           /* identity gradient end */
    --blue: #3B82F6;               /* Working Blue — the only interaction color */
    --blue-soft: rgba(59, 130, 246, 0.12);
    --blue-line: rgba(59, 130, 246, 0.36);
    --data: #22D3EE;               /* cyan is data-only: charts and data signals */
    --data-soft: rgba(34, 211, 238, 0.10);
    /* Deprecated aliases (kept so legacy rules keep resolving) */
    --accent-cyan: var(--data);
    --accent-cyan-glow: rgba(34, 211, 238, 0.4);
    --accent-blue: var(--blue);
    --accent-blue-glow: rgba(59, 130, 246, 0.4);

    /* Semantic Color Tokens */
    --color-success: #10B981;
    --color-success-bg: rgba(16, 185, 129, 0.1);
    --color-warning: #F59E0B;
    --color-warning-bg: rgba(245, 158, 11, 0.1);
    --color-error: #EF4444;
    --color-error-bg: rgba(239, 68, 68, 0.1);
    --color-info: #3B82F6;
    --color-info-bg: rgba(59, 130, 246, 0.1);

    /* Text Colors */
    --text-primary: #F3F4F6;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;

    /* UI Tokens */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.15);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.2);
    --shadow-glow: none; /* no glow at rest — canon */

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-full: 9999px;

    /* Legacy Mappings (to preserve visual output) */
    --neon-cyan: var(--accent-cyan);
    --electric-blue: var(--accent-blue);
    --glass-bg: var(--bg-panel);
}

body {
    /* Soft radial gradient background */
    background: radial-gradient(circle at 50% 0%, #151e2d 0%, var(--bg-base) 100%);
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-primary);
    margin-top: 0;
}

a {
    color: var(--blue);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: #fff;
    text-shadow: none;
}

/* ==========================================================================
   LAYOUT & STRUCTURE
   ========================================================================== */

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: rgba(9, 14, 20, 0.85); /* Darker sidebar */
    backdrop-filter: blur(12px);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 20;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    letter-spacing: 0.5px;
}

.sidebar-logo-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--brand), var(--brand-hi));
    box-shadow: var(--shadow-glow);
}

.sidebar-logo span {
    font-size: 0.8rem;
    font-weight: normal;
    color: var(--text-muted);
    font-family: var(--font-body);
    background: rgba(255,255,255,0.05);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: auto;
}

.sidebar-section-title {
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
    font-weight: 600;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 0.25rem;
}

.sidebar-menu a {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.sidebar-menu a:hover {
    color: var(--text-primary);
    background-color: rgba(255,255,255,0.03);
    text-shadow: none;
    transform: translateX(4px);
}

.sidebar-menu a.active {
    color: var(--text-primary);
    background-color: var(--blue-soft);
    border-left: 2px solid var(--blue);
}


.sidebar-menu a.nav-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-menu a.nav-future {
    opacity: 0.7;
    cursor: not-allowed;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-menu a.nav-future:hover {
    background-color: transparent;
    color: var(--text-secondary);
    transform: none;
    text-shadow: none;
}

.sidebar-menu a.nav-disabled:hover {
    background-color: transparent;
    color: var(--text-secondary);
    transform: none;
    text-shadow: none;
}

.nav-badge {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.nav-badge-locked {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.nav-badge-future {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.nav-badge-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

/* Main Content */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Top Bar */
.top-bar {
    height: 70px;
    background-color: rgba(9, 14, 20, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.workspace-switcher {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
    font-family: var(--font-body);
    font-size: 0.9rem;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

.workspace-switcher:hover {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: var(--border-light);
}

.workspace-switcher:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 1px var(--blue);
}

.workspace-switcher option {
    background-color: var(--bg-surface);
    color: var(--text-primary);
}

/* Dashboard Content */
.dashboard {
    padding: 2.5rem;
    padding-bottom: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.dashboard-header {
    margin-bottom: 2.5rem;
}

.dashboard-header h1 {
    font-size: 2.25rem;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}

.dashboard-header p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 1rem;
}

/* ==========================================================================
   PREMIUM COMPONENTS
   ========================================================================== */

/* Premium Section Wrapper */
.section-wrapper {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
}

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

.section-header > div {
    flex: 1;
}

.section-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.section-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0;
    margin-top: 0.25rem;
}

/* Premium Panel (Glassmorphism) */
.premium-panel {
    background-color: var(--bg-panel);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

/* Optional top highlight line for panels */
.premium-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

.panel-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
}

/* Grids */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.panels-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.panels-grid.equal-2 {
    grid-template-columns: 1fr 1fr;
}

.panels-grid.equal-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

/* KPI Card */
.kpi-card {
    background-color: var(--bg-panel);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    border-color: var(--border-light);
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--blue-line), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.kpi-card:hover::before {
    opacity: 1;
}

.kpi-title {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-value {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.kpi-change {
    font-size: 0.8rem;
    color: var(--color-success);
    display: flex;
    align-items: center;
    margin-top: auto;
}

/* Premium Tables */
.premium-table-wrapper {
    overflow-x: auto;
    margin: 0 -1.5rem -1.5rem -1.5rem;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.premium-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
}

.premium-table th {
    padding: 1rem 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
    white-space: nowrap;
}

.premium-table td {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.premium-table tbody tr {
    transition: background-color 0.15s ease;
}

.premium-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.premium-table tbody tr:last-child td {
    border-bottom: none;
}

/* Badges & Pills */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid transparent;
}

.status-pill::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-success { color: var(--color-success); background: var(--color-success-bg); border-color: rgba(16, 185, 129, 0.2); }
.status-success::before { background-color: var(--color-success); }

.status-warning { color: var(--color-warning); background: var(--color-warning-bg); border-color: rgba(245, 158, 11, 0.2); }
.status-warning::before { background-color: var(--color-warning); }

.status-error { color: var(--color-error); background: var(--color-error-bg); border-color: rgba(239, 68, 68, 0.2); }
.status-error::before { background-color: var(--color-error); }

.status-info { color: var(--color-info); background: var(--color-info-bg); border-color: rgba(59, 130, 246, 0.2); }
.status-info::before { background-color: var(--color-info); }

.status-neutral { color: var(--text-secondary); background: rgba(255,255,255,0.05); border-color: var(--border-subtle); }
.status-neutral::before { background-color: var(--text-muted); }

.severity-pill {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.severity-pill.high { color: var(--color-error); background: var(--color-error-bg); border: 1px solid rgba(239, 68, 68, 0.2); }
.severity-pill.medium { color: var(--color-warning); background: var(--color-warning-bg); border: 1px solid rgba(245, 158, 11, 0.2); }
.severity-pill.low { color: var(--color-info); background: var(--color-info-bg); border: 1px solid rgba(59, 130, 246, 0.2); }

/* Mock Labels & Warnings */
.mock-warning-badge {
    color: var(--color-error);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px dashed rgba(239, 68, 68, 0.6);
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
    background: var(--color-error-bg);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.mock-warning-badge.pulsing {
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0% { border-color: rgba(239, 68, 68, 0.4); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.1); }
    50% { border-color: rgba(239, 68, 68, 1); box-shadow: none; }
    100% { border-color: rgba(239, 68, 68, 0.4); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.mock-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--border-subtle);
    font-weight: 500;
}

/* Roles */
.role-label {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid;
    display: inline-block;
}
.role-superadmin { background: var(--blue-soft); color: var(--blue); border-color: rgba(59, 130, 246, 0.2); }
.role-owner { background: rgba(16, 185, 129, 0.1); color: var(--color-success); border-color: rgba(16, 185, 129, 0.2); }
.role-consultant { background: rgba(245, 158, 11, 0.1); color: var(--color-warning); border-color: rgba(245, 158, 11, 0.2); }
.role-partner { background: rgba(168, 85, 247, 0.1); color: #A855F7; border-color: rgba(168, 85, 247, 0.2); }

/* Command Briefing Highlight */
.command-briefing {
    margin-bottom: 2.5rem;
}

.briefing-hero {
    background: var(--bg-panel);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.briefing-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--blue);
    box-shadow: none;
}

.briefing-message {
    background: linear-gradient(90deg, var(--blue-soft), transparent);
    border-left: 2px solid var(--blue);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
}

.briefing-message p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
}

/* Premium Lists */
.premium-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.premium-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.85rem;
}

.premium-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Quick Jump */
.quick-jump-deck {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.quick-jump-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.quick-jump-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-cyan);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Specific Content Distributor overrides */
.content-pipeline {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.pipeline-column {
    flex: 1;
    min-width: 200px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pipeline-header {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
}

.pipeline-item {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: transform 0.2s;
}

.pipeline-item:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.06);
}

.channel-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.channel-header {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.channel-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.brand-preset-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: all 0.2s;
    cursor: default;
}

.brand-preset-card:hover {
    background: rgba(255,255,255,0.08);
    color: var(--text-primary);
}

.integration-pill {
    background: var(--color-info-bg);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93C5FD;
    border-radius: var(--radius-full);
    padding: 0.3rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Progress bar */
.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-bar-fill {
    height: 100%;
    background: var(--accent-blue);
    border-radius: var(--radius-full);
}

/* Mock Charts */
.mock-chart-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 150px;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-bottom: 1px solid var(--border-subtle);
}

.mock-bar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 12%;
}

.mock-bar {
    width: 100%;
    background: linear-gradient(to top, rgba(34, 211, 238, 0.2), var(--accent-cyan));
    border-radius: 4px 4px 0 0;
    transition: filter 0.2s ease;
}

.mock-bar:hover {
    filter: brightness(1.2);
    box-shadow: none;
}

.mock-bar-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .panels-grid, .panels-grid.equal-2, .panels-grid.equal-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 1rem;
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
        position: static;
        overflow-y: visible;
        z-index: 1;
    }
    .sidebar-logo {
        margin-bottom: 0;
    }
    .sidebar-section-title {
        display: none;
    }
    .sidebar-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .top-bar {
        flex-direction: column;
        height: auto;
        padding: 1rem;
        gap: 1rem;
    }
    .dashboard {
        padding: 1rem;
        padding-bottom: 4rem;
    }
    .cards-grid {
        grid-template-columns: 1fr;
    }
    .section-header {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Admin Experience Switcher */
.admin-mode-switcher {
    background: var(--bg-panel);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.admin-mode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.admin-mode-option {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-mode-option:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.admin-mode-option.active {
    background: linear-gradient(145deg, rgba(34, 211, 238, 0.08), rgba(14, 165, 233, 0.03));
    border-color: var(--accent-cyan);
    box-shadow: none;
}

.admin-mode-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.admin-mode-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.admin-mode-option.active .admin-mode-title {
    color: var(--accent-cyan);
}

.admin-mode-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.admin-mode-badge.reference {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
}

.admin-mode-badge.active {
    color: var(--accent-cyan);
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.3);
}

.admin-mode-badge.future {
    color: var(--color-warning);
    background: var(--color-warning-bg);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.admin-mode-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}


/* ==========================================================================
   A1 FOUNDATION — focus visibility (canon §4.6)
   ========================================================================== */
:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ==========================================================================
   A1 FOUNDATION — maturity & trust badge grammar (canon §5)
   One chip per object; RU labels live in templates, classes are the grammar.
   ========================================================================== */
.andel-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 9px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    color: var(--text-secondary);
    background: rgba(154, 164, 178, 0.10);
    border: 1px solid rgba(154, 164, 178, 0.28);
}
.andel-chip::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.85;
}
.andel-chip--quiet::before { display: none; }
.andel-chip--runtime { color: var(--color-success); border-color: rgba(16, 185, 129, 0.32); background: var(--color-success-bg); }
.andel-chip--demo { color: var(--color-warning); border-color: rgba(245, 158, 11, 0.32); background: var(--color-warning-bg); }
.andel-chip--preview { color: var(--blue); border-color: var(--blue-line); background: var(--blue-soft); }
.andel-chip--designed { color: var(--text-secondary); }
.andel-chip--planned { color: var(--text-muted); }
.andel-chip--legacy { color: var(--text-muted); border-style: dashed; }
.andel-chip--review { color: #C4B5FD; border-color: rgba(196, 181, 253, 0.30); background: rgba(196, 181, 253, 0.10); }
.andel-chip--quarantine { color: var(--color-warning); border-color: rgba(245, 158, 11, 0.45); background: var(--color-warning-bg); border-style: solid; }
.andel-chip--evidence { color: var(--color-success); border-color: rgba(16, 185, 129, 0.32); background: transparent; }
.andel-chip--origin { color: var(--text-secondary); background: transparent; }

/* Metric passport: source · period · status · updated (canon §5) */
.andel-passport {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    font-size: 11px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-subtle);
    padding-top: 6px;
    margin-top: 8px;
}
.andel-passport span { display: inline-flex; align-items: center; gap: 4px; }
.andel-passport .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-muted); flex: none; }
