/*
 * EdgeVenture console: the manager and the client portal (2026-11-11).
 * Loaded by includes/header.php only for /manager/ and /portal/ pages, which also get
 * body.ev-console (and ev-console--manager or ev-console--portal). The public site's look
 * lives in site.css; this is the same ink, bone, phosphor green and hot pink, worked for
 * screens people use all day: quieter, denser, the green for what is yours to act on and
 * the pink for what needs you. The header also re-maps the Tailwind colours these pages
 * already use (indigo, violet and purple to green, blue to cyan, amber and yellow to pink).
 * app.css stays as it is; everything here is scoped to body.ev-console.
 */

body.ev-console {
    --ev-ink: #050706;
    --ev-bone: #E9EDE8;
    --ev-green: #39FF88;
    --ev-pink: #FF2E88;
    --ev-cyan: #3CC8D8;
    --ev-display: 'Big Shoulders', 'Arial Narrow', Impact, sans-serif;
    --ev-sans: 'Instrument Sans', 'Inter', system-ui, -apple-system, sans-serif;
    --ev-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

    /* Tailwind's primary reads these three (rgb triples, so /10 and friends work). */
    --ev-pri: 10 122 64;
    --ev-pri-light: 14 154 82;
    --ev-pri-dark: 7 82 44;
    --ev-attn: #E01672;

    --primary: rgb(var(--ev-pri));
    --primary-light: rgb(var(--ev-pri-light));
    --primary-dark: rgb(var(--ev-pri-dark));
    --primary-dim: rgb(var(--ev-pri) / 0.10);
    --accent: #E01672;
    --accent-dark: #A50D58;
    --accent-dim: rgba(224, 22, 114, 0.10);
    --success: #0B8043;
    --warning: #E01672;
    --grad-primary: linear-gradient(135deg, rgb(var(--ev-pri)) 0%, rgb(var(--ev-pri-dark)) 100%);
    --grad-accent: linear-gradient(135deg, #FF2E88 0%, #E01672 100%);
    --grad-dark: linear-gradient(135deg, #050706 0%, #0D1110 100%);
    --shadow-pri: 0 4px 18px rgb(var(--ev-pri) / 0.22);
    --shadow-pri-lg: 0 8px 32px rgb(var(--ev-pri) / 0.18);
    --shadow-acc: 0 4px 18px rgba(224, 22, 114, 0.25);

    --bg: #ECEFEA;
    --surface: #FBFCFA;
    --surface-2: #F2F5F0;
    --surface-3: #E4E9E2;
    --text: #070A09;
    --text-secondary: #333C37;
    --text-muted: #5B6760;
    --text-subtle: #8F9A93;
    --border: #D3DAD1;
    --border-subtle: #E1E6DF;
    --border-strong: #B5BFB6;

    --sb-bg: #050706;
    --sb-surface: rgba(233, 237, 232, 0.04);
    --sb-border: #151B18;
    --sb-text: rgba(233, 237, 232, 0.72);
    --sb-hover: rgba(57, 255, 136, 0.06);
    --sb-active: rgba(57, 255, 136, 0.09);

    --r-xs: 3px; --r-sm: 5px; --r: 6px; --r-md: 8px; --r-lg: 10px; --r-xl: 12px;
    --shadow-xs: 0 1px 1px rgba(7, 10, 9, 0.04);
    --shadow-sm: 0 1px 2px rgba(7, 10, 9, 0.05);
    --shadow-md: 0 1px 2px rgba(7, 10, 9, 0.06), 0 10px 24px -12px rgba(7, 10, 9, 0.22);
    --shadow-lg: 0 2px 6px rgba(7, 10, 9, 0.07), 0 24px 48px -20px rgba(7, 10, 9, 0.32);

    font-family: var(--ev-sans);
    background: var(--bg);
    background-image: none;
    font-feature-settings: normal;
}
[data-theme="dark"] body.ev-console {
    --ev-pri: 57 255 136;
    --ev-pri-light: 125 255 177;
    --ev-pri-dark: 31 217 108;
    --ev-attn: #FF2E88;
    --accent: #FF2E88;
    --accent-dark: #E01672;
    --accent-dim: rgba(255, 46, 136, 0.12);
    --success: #39FF88;
    --warning: #FF2E88;
    --grad-primary: linear-gradient(135deg, #39FF88 0%, #1FD96C 100%);

    --bg: #050706;
    --surface: #0A0D0C;
    --surface-2: #0E1211;
    --surface-3: #161C19;
    --text: #E9EDE8;
    --text-secondary: #AEB7B1;
    --text-muted: #7F8A83;
    --text-subtle: #56615A;
    --border: #1E2622;
    --border-subtle: #151B18;
    --border-strong: #2F3A34;
    --shadow-xs: none;
    --shadow-sm: none;
    --shadow-md: 0 18px 40px -18px rgba(0, 0, 0, 0.85);
    --shadow-lg: 0 30px 70px -28px rgba(0, 0, 0, 0.95);
}

body.ev-console ::selection { background: var(--ev-pink); color: #fff; }
body.ev-console :focus-visible { outline: 2px solid rgb(var(--ev-pri)); outline-offset: 2px; }
body.ev-console code, body.ev-console kbd, body.ev-console pre, body.ev-console .font-mono { font-family: var(--ev-mono); }
[data-theme="dark"] body.ev-console { color-scheme: dark; }

/* ── Type ─────────────────────────────────────────────────────── */
body.ev-console .main-content h1 {
    font-family: var(--ev-display);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.012em;
    line-height: 1.02;
    font-size: clamp(1.7rem, 2.3vw, 2.15rem);
}
body.ev-console .main-content h1 .text-gray-400,
body.ev-console .main-content h1 .text-gray-500 { font-family: var(--ev-sans); text-transform: none; letter-spacing: 0; }
body.ev-console .page-header h1 { font-size: clamp(1.5rem, 2vw, 1.85rem); margin-bottom: 0.25rem; }
body.ev-console .main-content h2,
body.ev-console .main-content h3 { letter-spacing: -0.01em; }

/* Small capitals labels, table heads, kbd: the mono, like a terminal's column heads. */
body.ev-console .uppercase.tracking-wider,
body.ev-console .uppercase.tracking-widest,
body.ev-console .uppercase.tracking-wide,
body.ev-console .table th,
body.ev-console th.uppercase,
body.ev-console .sidebar-section,
body.ev-console .sidebar-brand small {
    font-family: var(--ev-mono);
    font-weight: 500;
    letter-spacing: 0.08em;
}

/* Big numbers: the display face, not a heavy sans. */
body.ev-console .stat-value,
body.ev-console .main-content .text-3xl.font-bold,
body.ev-console .main-content .text-3xl.font-extrabold,
body.ev-console .main-content .text-3xl.font-black,
body.ev-console .main-content .text-4xl.font-bold,
body.ev-console .main-content .text-4xl.font-extrabold,
body.ev-console .main-content .text-2xl.font-extrabold,
body.ev-console .main-content .text-2xl.font-black {
    font-family: var(--ev-display);
    font-weight: 800;
    letter-spacing: 0.01em;
    font-variant-numeric: tabular-nums;
}

/* ── Sidebar ──────────────────────────────────────────────────── */
body.ev-console .sidebar {
    background: var(--sb-bg);
    background-image: repeating-linear-gradient(0deg, rgba(233, 237, 232, 0.016) 0 1px, transparent 1px 4px);
    border-right: 1px solid var(--sb-border);
    color: var(--ev-bone);
}
body.ev-console .sidebar-brand { padding: 1.05rem 1.15rem 0.95rem; border-bottom: 1px solid var(--sb-border); }
body.ev-console .ev-console-brand { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--ev-bone); }
body.ev-console .ev-console-brand .ev-slap { width: 34px; height: auto; flex-shrink: 0; margin: -2px 0 -6px; transition: transform 200ms var(--ease-smooth); }
body.ev-console .ev-console-brand:hover .ev-slap { transform: rotate(-4deg); }
body.ev-console .sidebar-brand small { color: rgba(233, 237, 232, 0.42); font-size: 0.625rem; margin: 0.55rem 0 0 0.1rem; text-transform: uppercase; }
body.ev-console .sidebar-brand small b { color: var(--ev-green); font-weight: 500; }

body.ev-console .ev-word { display: inline-flex; align-items: center; font-family: var(--ev-mono); font-weight: 700; font-size: 0.875rem; line-height: 1; letter-spacing: -0.01em; white-space: nowrap; color: var(--ev-bone); }
body.ev-console .ev-w-at { color: var(--ev-pink); font-weight: 500; }
body.ev-console .ev-w-h { color: var(--ev-green); }
body.ev-console .ev-w-p { color: rgba(233, 237, 232, 0.45); font-weight: 500; }
body.ev-console .ev-cursor { display: inline-block; width: 0.55em; height: 1em; margin-left: 0.2em; vertical-align: -0.15em; background: var(--ev-green); animation: evConsoleBlink 1.1s steps(2, start) infinite; }
@keyframes evConsoleBlink { to { visibility: hidden; } }

body.ev-console .sidebar-link {
    color: var(--sb-text);
    border-radius: var(--r-sm);
    border: 1px solid transparent;
    font-weight: 500;
    font-size: 0.8125rem;
    padding: 0.5rem 0.9rem;
    margin: 0.0625rem 0.55rem;
}
body.ev-console .sidebar-link svg { opacity: 0.6; }
body.ev-console .sidebar-link:hover { color: var(--ev-bone); background: var(--sb-hover); transform: none; }
body.ev-console .sidebar-link:hover svg { opacity: 1; color: var(--ev-green); }
body.ev-console .sidebar-link:focus-visible { box-shadow: 0 0 0 2px rgba(57, 255, 136, 0.55); }
body.ev-console .sidebar-link.active {
    color: var(--ev-green);
    background: var(--sb-active);
    border-color: rgba(57, 255, 136, 0.18);
    box-shadow: inset 2px 0 0 var(--ev-green);
}
body.ev-console .sidebar-link.active svg { opacity: 1; color: var(--ev-green); }
body.ev-console .sidebar-link .badge {
    background: rgba(255, 46, 136, 0.16);
    color: #FF7FB2;
    border-color: rgba(255, 46, 136, 0.32);
    font-family: var(--ev-mono);
    font-weight: 500;
}
body.ev-console .sidebar-section,
body.ev-console .sidebar-nav p.uppercase { color: rgba(233, 237, 232, 0.34) !important; font-size: 0.6rem; }
body.ev-console .sidebar-section::before,
body.ev-console .sidebar-nav p.uppercase::before { content: '# '; color: rgba(57, 255, 136, 0.55); }
body.ev-console .sidebar-divider { background: var(--sb-border); }
body.ev-console .sidebar .ev-sidebar-foot { color: rgba(233, 237, 232, 0.55); background: rgba(233, 237, 232, 0.05); font-family: var(--ev-mono); }
body.ev-console .sidebar .ev-sidebar-foot:hover { color: var(--ev-green); background: rgba(57, 255, 136, 0.08); }

/* ── Top bar ──────────────────────────────────────────────────── */
body.ev-console .main-content > .border-b:first-child,
body.ev-console .main-content > .sticky.border-b,
body.ev-console .portal-topbar { background: color-mix(in srgb, var(--surface) 92%, transparent) !important; border-color: var(--border) !important; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
body.ev-console .main-content input[name="q"] { font-family: var(--ev-mono); font-size: 0.78rem; }
body.ev-console kbd { border-radius: 3px; }

/* ── Buttons ──────────────────────────────────────────────────── */
body.ev-console .btn { border-radius: var(--r-sm); font-weight: 600; letter-spacing: -0.01em; }
body.ev-console .btn:hover { transform: none; }
body.ev-console .btn-primary,
body.ev-console .btn-primary:hover { background: rgb(var(--ev-pri)); border-color: rgb(var(--ev-pri)); color: #fff; }
body.ev-console .btn-primary { box-shadow: none; }
body.ev-console .btn-primary:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ev-pink); }
body.ev-console .btn-primary:active { transform: translate(0, 0); box-shadow: 0 0 0 var(--ev-pink); }
[data-theme="dark"] body.ev-console .btn-primary,
[data-theme="dark"] body.ev-console .btn-primary:hover { color: #04120A; }
[data-theme="dark"] body.ev-console .btn-primary:hover { background: #7DFFB1; border-color: #7DFFB1; }
body.ev-console .btn-secondary,
[data-theme="dark"] body.ev-console .btn-secondary { background: transparent; color: var(--text); border-color: var(--border-strong); box-shadow: none; }
body.ev-console .btn-secondary:hover,
[data-theme="dark"] body.ev-console .btn-secondary:hover { background: rgb(var(--ev-pri) / 0.07); color: rgb(var(--ev-pri)); border-color: rgb(var(--ev-pri) / 0.6); box-shadow: none; }
body.ev-console .btn-accent { background: var(--ev-attn); color: #fff; box-shadow: none; }
body.ev-console .btn-accent:hover { box-shadow: 3px 3px 0 var(--ev-ink); color: #fff; }
[data-theme="dark"] body.ev-console .btn-accent:hover { box-shadow: 3px 3px 0 var(--ev-green); }
body.ev-console .btn-danger { background: #DC2626; box-shadow: none; }

/* Tailwind buttons and chips that sit on the green: ink text in the dark, where the green is bright. */
[data-theme="dark"] body.ev-console .bg-primary.text-white,
[data-theme="dark"] body.ev-console .bg-primary .text-white,
[data-theme="dark"] body.ev-console .bg-primary-dark.text-white,
[data-theme="dark"] body.ev-console .hover\:bg-primary:hover.text-white,
[data-theme="dark"] body.ev-console .bg-indigo-500.text-white,
[data-theme="dark"] body.ev-console .bg-indigo-600.text-white,
[data-theme="dark"] body.ev-console .bg-violet-600.text-white,
[data-theme="dark"] body.ev-console .bg-purple-600.text-white { color: #04120A !important; }
[data-theme="dark"] body.ev-console .bg-indigo-600,
[data-theme="dark"] body.ev-console .bg-violet-600,
[data-theme="dark"] body.ev-console .bg-purple-600 { background-color: #39FF88 !important; }
[data-theme="dark"] body.ev-console .hover\:bg-indigo-700:hover,
[data-theme="dark"] body.ev-console .hover\:bg-indigo-500:hover,
[data-theme="dark"] body.ev-console .hover\:bg-violet-500:hover,
[data-theme="dark"] body.ev-console .hover\:bg-primary-dark:hover { background-color: #7DFFB1 !important; }

/* ── Cards, tables, forms ─────────────────────────────────────── */
body.ev-console .card,
body.ev-console .stat-card,
body.ev-console .table-wrap { border-color: var(--border); box-shadow: var(--shadow-sm); }
body.ev-console .card-header { background: var(--surface-2); }
body.ev-console a.card:hover,
body.ev-console .card.interactive:hover,
body.ev-console .stat-card:hover { transform: none; border-color: rgb(var(--ev-pri) / 0.45); box-shadow: var(--shadow-md); }
body.ev-console .stat-card::after { background: rgb(var(--ev-pri)); width: 2px; }
body.ev-console .stat-card.highlight,
[data-theme="dark"] body.ev-console .stat-card.highlight { border-color: rgba(255, 46, 136, 0.35); background: linear-gradient(135deg, var(--surface) 0%, rgba(255, 46, 136, 0.05) 100%); }
body.ev-console .stat-card.highlight::after { background: var(--ev-pink); }
body.ev-console .rounded-2xl { border-radius: var(--r-lg); }
body.ev-console .rounded-xl { border-radius: var(--r-md); }
body.ev-console .bg-white { background-color: var(--surface); }

body.ev-console .table th { color: var(--text-muted); font-size: 0.65rem; background: var(--surface-2); }
body.ev-console .table tbody tr:hover td,
[data-theme="dark"] body.ev-console .table tbody tr:hover td { background: rgb(var(--ev-pri) / 0.05); }
body.ev-console .table tbody tr:hover td:first-child { box-shadow: inset 2px 0 0 rgb(var(--ev-pri)); }

body.ev-console .form-input:focus,
body.ev-console .form-select:focus,
body.ev-console .form-textarea:focus,
body.ev-console input:focus,
body.ev-console select:focus,
body.ev-console textarea:focus { border-color: rgb(var(--ev-pri)); box-shadow: 0 0 0 3px rgb(var(--ev-pri) / 0.16); outline: none; }
body.ev-console .form-group:focus-within .form-label { color: rgb(var(--ev-pri)); transform: none; }
[data-theme="dark"] body.ev-console input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
[data-theme="dark"] body.ev-console select,
[data-theme="dark"] body.ev-console textarea { background-color: var(--surface-2); border-color: var(--border); color: var(--text); }
[data-theme="dark"] body.ev-console input::placeholder,
[data-theme="dark"] body.ev-console textarea::placeholder { color: var(--text-subtle); }
body.ev-console input[type="checkbox"],
body.ev-console input[type="radio"],
body.ev-console input[type="range"],
body.ev-console progress { accent-color: rgb(var(--ev-pri)); }

/* ── Badges, avatar, progress, tabs, toasts ───────────────────── */
body.ev-console .badge { border-radius: 4px; font-weight: 600; }
body.ev-console .badge-green { background: #DDF7E8; color: #0A6B3A; border-color: #B7EBCD; }
body.ev-console .badge-blue { background: #E2F6F9; color: #0F6474; border-color: #BCE8EF; }
body.ev-console .badge-yellow { background: #FFE6F1; color: #A50D58; border-color: #FFC4DD; }
[data-theme="dark"] body.ev-console .badge-green { background: rgba(57, 255, 136, 0.10); color: #7DFFB1; border-color: rgba(57, 255, 136, 0.28); }
[data-theme="dark"] body.ev-console .badge-blue { background: rgba(60, 200, 216, 0.10); color: #8FE3EE; border-color: rgba(60, 200, 216, 0.28); }
[data-theme="dark"] body.ev-console .badge-yellow { background: rgba(255, 46, 136, 0.12); color: #FF8FBF; border-color: rgba(255, 46, 136, 0.32); }
body.ev-console .avatar { background: var(--ev-ink) !important; color: var(--ev-green) !important; font-family: var(--ev-mono); font-weight: 700; border: 1px solid rgba(57, 255, 136, 0.35); }
[data-theme="dark"] body.ev-console .avatar { background: #39FF88 !important; color: #04120A !important; border-color: #39FF88; }
body.ev-console .progress-bar { background: rgb(var(--ev-pri)); }
body.ev-console .tab.active,
body.ev-console .tab-active { color: rgb(var(--ev-pri)); border-color: rgb(var(--ev-pri)); }
body.ev-console .toast { border-radius: var(--r); font-family: var(--ev-sans); }
body.ev-console .toast-success { background: #0A6B3A; }
body.ev-console .toast-warning { background: #E01672; }
body.ev-console .toast-info { background: #050706; border-color: rgba(57, 255, 136, 0.4); }

/* ── Page header ──────────────────────────────────────────────── */
body.ev-console .page-header,
[data-theme="dark"] body.ev-console .page-header { background: color-mix(in srgb, var(--surface) 94%, transparent); border-color: var(--border); }

/* ── The portal's welcome panel and the manager's banners ─────── */
body.ev-console .ev-console-hero {
    background-color: var(--ev-ink);
    background-image:
        linear-gradient(rgba(57, 255, 136, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(57, 255, 136, 0.07) 1px, transparent 1px);
    background-size: 28px 28px;
    border: 1px solid #1E2622;
    color: var(--ev-bone);
}
body.ev-console .ev-console-hero h1,
body.ev-console .ev-console-hero h2 { color: var(--ev-bone) !important; }
body.ev-console .ev-console-hero::after {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--ev-green);
}

/* Impersonation bar (the old yellow one): pink, hard to miss. */
body.ev-console .ev-impersonating { background: var(--ev-pink) !important; color: #fff; font-family: var(--ev-mono); font-size: 0.78rem; }

/* Cookie banner inside the console: quiet. */
body.ev-console .cookie-banner { font-family: var(--ev-sans); }

/* ── Scrollbars ───────────────────────────────────────────────── */
[data-theme="dark"] body.ev-console { scrollbar-color: #2F3A34 #050706; }

@media (prefers-reduced-motion: reduce) {
    body.ev-console .ev-cursor { animation: none; }
    body.ev-console .btn-primary:hover { transform: none; }
}

/* ── Dark mode: the pale Tailwind tints (bg-*-50, text-*-700…) as glows on the ink ──
   Generated from the colour families these pages use; after the header's re-map, every family is one of
   green, cyan, pink or red. */
[data-theme="dark"] body.ev-console .bg-green-50,
[data-theme="dark"] body.ev-console .bg-green-100 { background-color: rgba(57,255,136,0.09) !important; }
[data-theme="dark"] body.ev-console .bg-green-50\/50,
[data-theme="dark"] body.ev-console .bg-green-50\/40,
[data-theme="dark"] body.ev-console .bg-green-50\/30,
[data-theme="dark"] body.ev-console .bg-green-100\/50,
[data-theme="dark"] body.ev-console .bg-green-200 { background-color: rgba(57,255,136,0.06) !important; }
[data-theme="dark"] body.ev-console .border-green-100,
[data-theme="dark"] body.ev-console .border-green-200,
[data-theme="dark"] body.ev-console .border-green-300 { border-color: rgba(57,255,136,0.28) !important; }
[data-theme="dark"] body.ev-console .text-green-500,
[data-theme="dark"] body.ev-console .text-green-600,
[data-theme="dark"] body.ev-console .text-green-700,
[data-theme="dark"] body.ev-console .text-green-800,
[data-theme="dark"] body.ev-console .text-green-900 { color: #7DFFB1 !important; }
[data-theme="dark"] body.ev-console .hover\:bg-green-50:hover,
[data-theme="dark"] body.ev-console .hover\:bg-green-100:hover { background-color: rgba(57,255,136,0.12) !important; }
[data-theme="dark"] body.ev-console .bg-emerald-50,
[data-theme="dark"] body.ev-console .bg-emerald-100 { background-color: rgba(57,255,136,0.09) !important; }
[data-theme="dark"] body.ev-console .bg-emerald-50\/50,
[data-theme="dark"] body.ev-console .bg-emerald-50\/40,
[data-theme="dark"] body.ev-console .bg-emerald-50\/30,
[data-theme="dark"] body.ev-console .bg-emerald-100\/50,
[data-theme="dark"] body.ev-console .bg-emerald-200 { background-color: rgba(57,255,136,0.06) !important; }
[data-theme="dark"] body.ev-console .border-emerald-100,
[data-theme="dark"] body.ev-console .border-emerald-200,
[data-theme="dark"] body.ev-console .border-emerald-300 { border-color: rgba(57,255,136,0.28) !important; }
[data-theme="dark"] body.ev-console .text-emerald-500,
[data-theme="dark"] body.ev-console .text-emerald-600,
[data-theme="dark"] body.ev-console .text-emerald-700,
[data-theme="dark"] body.ev-console .text-emerald-800,
[data-theme="dark"] body.ev-console .text-emerald-900 { color: #7DFFB1 !important; }
[data-theme="dark"] body.ev-console .hover\:bg-emerald-50:hover,
[data-theme="dark"] body.ev-console .hover\:bg-emerald-100:hover { background-color: rgba(57,255,136,0.12) !important; }
[data-theme="dark"] body.ev-console .bg-lime-50,
[data-theme="dark"] body.ev-console .bg-lime-100 { background-color: rgba(57,255,136,0.09) !important; }
[data-theme="dark"] body.ev-console .bg-lime-50\/50,
[data-theme="dark"] body.ev-console .bg-lime-50\/40,
[data-theme="dark"] body.ev-console .bg-lime-50\/30,
[data-theme="dark"] body.ev-console .bg-lime-100\/50,
[data-theme="dark"] body.ev-console .bg-lime-200 { background-color: rgba(57,255,136,0.06) !important; }
[data-theme="dark"] body.ev-console .border-lime-100,
[data-theme="dark"] body.ev-console .border-lime-200,
[data-theme="dark"] body.ev-console .border-lime-300 { border-color: rgba(57,255,136,0.28) !important; }
[data-theme="dark"] body.ev-console .text-lime-500,
[data-theme="dark"] body.ev-console .text-lime-600,
[data-theme="dark"] body.ev-console .text-lime-700,
[data-theme="dark"] body.ev-console .text-lime-800,
[data-theme="dark"] body.ev-console .text-lime-900 { color: #7DFFB1 !important; }
[data-theme="dark"] body.ev-console .hover\:bg-lime-50:hover,
[data-theme="dark"] body.ev-console .hover\:bg-lime-100:hover { background-color: rgba(57,255,136,0.12) !important; }
[data-theme="dark"] body.ev-console .bg-teal-50,
[data-theme="dark"] body.ev-console .bg-teal-100 { background-color: rgba(57,255,136,0.09) !important; }
[data-theme="dark"] body.ev-console .bg-teal-50\/50,
[data-theme="dark"] body.ev-console .bg-teal-50\/40,
[data-theme="dark"] body.ev-console .bg-teal-50\/30,
[data-theme="dark"] body.ev-console .bg-teal-100\/50,
[data-theme="dark"] body.ev-console .bg-teal-200 { background-color: rgba(57,255,136,0.06) !important; }
[data-theme="dark"] body.ev-console .border-teal-100,
[data-theme="dark"] body.ev-console .border-teal-200,
[data-theme="dark"] body.ev-console .border-teal-300 { border-color: rgba(57,255,136,0.28) !important; }
[data-theme="dark"] body.ev-console .text-teal-500,
[data-theme="dark"] body.ev-console .text-teal-600,
[data-theme="dark"] body.ev-console .text-teal-700,
[data-theme="dark"] body.ev-console .text-teal-800,
[data-theme="dark"] body.ev-console .text-teal-900 { color: #7DFFB1 !important; }
[data-theme="dark"] body.ev-console .hover\:bg-teal-50:hover,
[data-theme="dark"] body.ev-console .hover\:bg-teal-100:hover { background-color: rgba(57,255,136,0.12) !important; }
[data-theme="dark"] body.ev-console .bg-indigo-50,
[data-theme="dark"] body.ev-console .bg-indigo-100 { background-color: rgba(57,255,136,0.09) !important; }
[data-theme="dark"] body.ev-console .bg-indigo-50\/50,
[data-theme="dark"] body.ev-console .bg-indigo-50\/40,
[data-theme="dark"] body.ev-console .bg-indigo-50\/30,
[data-theme="dark"] body.ev-console .bg-indigo-100\/50,
[data-theme="dark"] body.ev-console .bg-indigo-200 { background-color: rgba(57,255,136,0.06) !important; }
[data-theme="dark"] body.ev-console .border-indigo-100,
[data-theme="dark"] body.ev-console .border-indigo-200,
[data-theme="dark"] body.ev-console .border-indigo-300 { border-color: rgba(57,255,136,0.28) !important; }
[data-theme="dark"] body.ev-console .text-indigo-500,
[data-theme="dark"] body.ev-console .text-indigo-600,
[data-theme="dark"] body.ev-console .text-indigo-700,
[data-theme="dark"] body.ev-console .text-indigo-800,
[data-theme="dark"] body.ev-console .text-indigo-900 { color: #7DFFB1 !important; }
[data-theme="dark"] body.ev-console .hover\:bg-indigo-50:hover,
[data-theme="dark"] body.ev-console .hover\:bg-indigo-100:hover { background-color: rgba(57,255,136,0.12) !important; }
[data-theme="dark"] body.ev-console .bg-violet-50,
[data-theme="dark"] body.ev-console .bg-violet-100 { background-color: rgba(57,255,136,0.09) !important; }
[data-theme="dark"] body.ev-console .bg-violet-50\/50,
[data-theme="dark"] body.ev-console .bg-violet-50\/40,
[data-theme="dark"] body.ev-console .bg-violet-50\/30,
[data-theme="dark"] body.ev-console .bg-violet-100\/50,
[data-theme="dark"] body.ev-console .bg-violet-200 { background-color: rgba(57,255,136,0.06) !important; }
[data-theme="dark"] body.ev-console .border-violet-100,
[data-theme="dark"] body.ev-console .border-violet-200,
[data-theme="dark"] body.ev-console .border-violet-300 { border-color: rgba(57,255,136,0.28) !important; }
[data-theme="dark"] body.ev-console .text-violet-500,
[data-theme="dark"] body.ev-console .text-violet-600,
[data-theme="dark"] body.ev-console .text-violet-700,
[data-theme="dark"] body.ev-console .text-violet-800,
[data-theme="dark"] body.ev-console .text-violet-900 { color: #7DFFB1 !important; }
[data-theme="dark"] body.ev-console .hover\:bg-violet-50:hover,
[data-theme="dark"] body.ev-console .hover\:bg-violet-100:hover { background-color: rgba(57,255,136,0.12) !important; }
[data-theme="dark"] body.ev-console .bg-purple-50,
[data-theme="dark"] body.ev-console .bg-purple-100 { background-color: rgba(57,255,136,0.09) !important; }
[data-theme="dark"] body.ev-console .bg-purple-50\/50,
[data-theme="dark"] body.ev-console .bg-purple-50\/40,
[data-theme="dark"] body.ev-console .bg-purple-50\/30,
[data-theme="dark"] body.ev-console .bg-purple-100\/50,
[data-theme="dark"] body.ev-console .bg-purple-200 { background-color: rgba(57,255,136,0.06) !important; }
[data-theme="dark"] body.ev-console .border-purple-100,
[data-theme="dark"] body.ev-console .border-purple-200,
[data-theme="dark"] body.ev-console .border-purple-300 { border-color: rgba(57,255,136,0.28) !important; }
[data-theme="dark"] body.ev-console .text-purple-500,
[data-theme="dark"] body.ev-console .text-purple-600,
[data-theme="dark"] body.ev-console .text-purple-700,
[data-theme="dark"] body.ev-console .text-purple-800,
[data-theme="dark"] body.ev-console .text-purple-900 { color: #7DFFB1 !important; }
[data-theme="dark"] body.ev-console .hover\:bg-purple-50:hover,
[data-theme="dark"] body.ev-console .hover\:bg-purple-100:hover { background-color: rgba(57,255,136,0.12) !important; }
[data-theme="dark"] body.ev-console .bg-fuchsia-50,
[data-theme="dark"] body.ev-console .bg-fuchsia-100 { background-color: rgba(57,255,136,0.09) !important; }
[data-theme="dark"] body.ev-console .bg-fuchsia-50\/50,
[data-theme="dark"] body.ev-console .bg-fuchsia-50\/40,
[data-theme="dark"] body.ev-console .bg-fuchsia-50\/30,
[data-theme="dark"] body.ev-console .bg-fuchsia-100\/50,
[data-theme="dark"] body.ev-console .bg-fuchsia-200 { background-color: rgba(57,255,136,0.06) !important; }
[data-theme="dark"] body.ev-console .border-fuchsia-100,
[data-theme="dark"] body.ev-console .border-fuchsia-200,
[data-theme="dark"] body.ev-console .border-fuchsia-300 { border-color: rgba(57,255,136,0.28) !important; }
[data-theme="dark"] body.ev-console .text-fuchsia-500,
[data-theme="dark"] body.ev-console .text-fuchsia-600,
[data-theme="dark"] body.ev-console .text-fuchsia-700,
[data-theme="dark"] body.ev-console .text-fuchsia-800,
[data-theme="dark"] body.ev-console .text-fuchsia-900 { color: #7DFFB1 !important; }
[data-theme="dark"] body.ev-console .hover\:bg-fuchsia-50:hover,
[data-theme="dark"] body.ev-console .hover\:bg-fuchsia-100:hover { background-color: rgba(57,255,136,0.12) !important; }
[data-theme="dark"] body.ev-console .bg-blue-50,
[data-theme="dark"] body.ev-console .bg-blue-100 { background-color: rgba(60,200,216,0.09) !important; }
[data-theme="dark"] body.ev-console .bg-blue-50\/50,
[data-theme="dark"] body.ev-console .bg-blue-50\/40,
[data-theme="dark"] body.ev-console .bg-blue-50\/30,
[data-theme="dark"] body.ev-console .bg-blue-100\/50,
[data-theme="dark"] body.ev-console .bg-blue-200 { background-color: rgba(60,200,216,0.06) !important; }
[data-theme="dark"] body.ev-console .border-blue-100,
[data-theme="dark"] body.ev-console .border-blue-200,
[data-theme="dark"] body.ev-console .border-blue-300 { border-color: rgba(60,200,216,0.28) !important; }
[data-theme="dark"] body.ev-console .text-blue-500,
[data-theme="dark"] body.ev-console .text-blue-600,
[data-theme="dark"] body.ev-console .text-blue-700,
[data-theme="dark"] body.ev-console .text-blue-800,
[data-theme="dark"] body.ev-console .text-blue-900 { color: #8FE3EE !important; }
[data-theme="dark"] body.ev-console .hover\:bg-blue-50:hover,
[data-theme="dark"] body.ev-console .hover\:bg-blue-100:hover { background-color: rgba(60,200,216,0.12) !important; }
[data-theme="dark"] body.ev-console .bg-sky-50,
[data-theme="dark"] body.ev-console .bg-sky-100 { background-color: rgba(60,200,216,0.09) !important; }
[data-theme="dark"] body.ev-console .bg-sky-50\/50,
[data-theme="dark"] body.ev-console .bg-sky-50\/40,
[data-theme="dark"] body.ev-console .bg-sky-50\/30,
[data-theme="dark"] body.ev-console .bg-sky-100\/50,
[data-theme="dark"] body.ev-console .bg-sky-200 { background-color: rgba(60,200,216,0.06) !important; }
[data-theme="dark"] body.ev-console .border-sky-100,
[data-theme="dark"] body.ev-console .border-sky-200,
[data-theme="dark"] body.ev-console .border-sky-300 { border-color: rgba(60,200,216,0.28) !important; }
[data-theme="dark"] body.ev-console .text-sky-500,
[data-theme="dark"] body.ev-console .text-sky-600,
[data-theme="dark"] body.ev-console .text-sky-700,
[data-theme="dark"] body.ev-console .text-sky-800,
[data-theme="dark"] body.ev-console .text-sky-900 { color: #8FE3EE !important; }
[data-theme="dark"] body.ev-console .hover\:bg-sky-50:hover,
[data-theme="dark"] body.ev-console .hover\:bg-sky-100:hover { background-color: rgba(60,200,216,0.12) !important; }
[data-theme="dark"] body.ev-console .bg-cyan-50,
[data-theme="dark"] body.ev-console .bg-cyan-100 { background-color: rgba(60,200,216,0.09) !important; }
[data-theme="dark"] body.ev-console .bg-cyan-50\/50,
[data-theme="dark"] body.ev-console .bg-cyan-50\/40,
[data-theme="dark"] body.ev-console .bg-cyan-50\/30,
[data-theme="dark"] body.ev-console .bg-cyan-100\/50,
[data-theme="dark"] body.ev-console .bg-cyan-200 { background-color: rgba(60,200,216,0.06) !important; }
[data-theme="dark"] body.ev-console .border-cyan-100,
[data-theme="dark"] body.ev-console .border-cyan-200,
[data-theme="dark"] body.ev-console .border-cyan-300 { border-color: rgba(60,200,216,0.28) !important; }
[data-theme="dark"] body.ev-console .text-cyan-500,
[data-theme="dark"] body.ev-console .text-cyan-600,
[data-theme="dark"] body.ev-console .text-cyan-700,
[data-theme="dark"] body.ev-console .text-cyan-800,
[data-theme="dark"] body.ev-console .text-cyan-900 { color: #8FE3EE !important; }
[data-theme="dark"] body.ev-console .hover\:bg-cyan-50:hover,
[data-theme="dark"] body.ev-console .hover\:bg-cyan-100:hover { background-color: rgba(60,200,216,0.12) !important; }
[data-theme="dark"] body.ev-console .bg-amber-50,
[data-theme="dark"] body.ev-console .bg-amber-100 { background-color: rgba(255,46,136,0.09) !important; }
[data-theme="dark"] body.ev-console .bg-amber-50\/50,
[data-theme="dark"] body.ev-console .bg-amber-50\/40,
[data-theme="dark"] body.ev-console .bg-amber-50\/30,
[data-theme="dark"] body.ev-console .bg-amber-100\/50,
[data-theme="dark"] body.ev-console .bg-amber-200 { background-color: rgba(255,46,136,0.06) !important; }
[data-theme="dark"] body.ev-console .border-amber-100,
[data-theme="dark"] body.ev-console .border-amber-200,
[data-theme="dark"] body.ev-console .border-amber-300 { border-color: rgba(255,46,136,0.28) !important; }
[data-theme="dark"] body.ev-console .text-amber-500,
[data-theme="dark"] body.ev-console .text-amber-600,
[data-theme="dark"] body.ev-console .text-amber-700,
[data-theme="dark"] body.ev-console .text-amber-800,
[data-theme="dark"] body.ev-console .text-amber-900 { color: #FF8FBF !important; }
[data-theme="dark"] body.ev-console .hover\:bg-amber-50:hover,
[data-theme="dark"] body.ev-console .hover\:bg-amber-100:hover { background-color: rgba(255,46,136,0.12) !important; }
[data-theme="dark"] body.ev-console .bg-yellow-50,
[data-theme="dark"] body.ev-console .bg-yellow-100 { background-color: rgba(255,46,136,0.09) !important; }
[data-theme="dark"] body.ev-console .bg-yellow-50\/50,
[data-theme="dark"] body.ev-console .bg-yellow-50\/40,
[data-theme="dark"] body.ev-console .bg-yellow-50\/30,
[data-theme="dark"] body.ev-console .bg-yellow-100\/50,
[data-theme="dark"] body.ev-console .bg-yellow-200 { background-color: rgba(255,46,136,0.06) !important; }
[data-theme="dark"] body.ev-console .border-yellow-100,
[data-theme="dark"] body.ev-console .border-yellow-200,
[data-theme="dark"] body.ev-console .border-yellow-300 { border-color: rgba(255,46,136,0.28) !important; }
[data-theme="dark"] body.ev-console .text-yellow-500,
[data-theme="dark"] body.ev-console .text-yellow-600,
[data-theme="dark"] body.ev-console .text-yellow-700,
[data-theme="dark"] body.ev-console .text-yellow-800,
[data-theme="dark"] body.ev-console .text-yellow-900 { color: #FF8FBF !important; }
[data-theme="dark"] body.ev-console .hover\:bg-yellow-50:hover,
[data-theme="dark"] body.ev-console .hover\:bg-yellow-100:hover { background-color: rgba(255,46,136,0.12) !important; }
[data-theme="dark"] body.ev-console .bg-orange-50,
[data-theme="dark"] body.ev-console .bg-orange-100 { background-color: rgba(255,46,136,0.09) !important; }
[data-theme="dark"] body.ev-console .bg-orange-50\/50,
[data-theme="dark"] body.ev-console .bg-orange-50\/40,
[data-theme="dark"] body.ev-console .bg-orange-50\/30,
[data-theme="dark"] body.ev-console .bg-orange-100\/50,
[data-theme="dark"] body.ev-console .bg-orange-200 { background-color: rgba(255,46,136,0.06) !important; }
[data-theme="dark"] body.ev-console .border-orange-100,
[data-theme="dark"] body.ev-console .border-orange-200,
[data-theme="dark"] body.ev-console .border-orange-300 { border-color: rgba(255,46,136,0.28) !important; }
[data-theme="dark"] body.ev-console .text-orange-500,
[data-theme="dark"] body.ev-console .text-orange-600,
[data-theme="dark"] body.ev-console .text-orange-700,
[data-theme="dark"] body.ev-console .text-orange-800,
[data-theme="dark"] body.ev-console .text-orange-900 { color: #FF8FBF !important; }
[data-theme="dark"] body.ev-console .hover\:bg-orange-50:hover,
[data-theme="dark"] body.ev-console .hover\:bg-orange-100:hover { background-color: rgba(255,46,136,0.12) !important; }
[data-theme="dark"] body.ev-console .bg-rose-50,
[data-theme="dark"] body.ev-console .bg-rose-100 { background-color: rgba(255,46,136,0.09) !important; }
[data-theme="dark"] body.ev-console .bg-rose-50\/50,
[data-theme="dark"] body.ev-console .bg-rose-50\/40,
[data-theme="dark"] body.ev-console .bg-rose-50\/30,
[data-theme="dark"] body.ev-console .bg-rose-100\/50,
[data-theme="dark"] body.ev-console .bg-rose-200 { background-color: rgba(255,46,136,0.06) !important; }
[data-theme="dark"] body.ev-console .border-rose-100,
[data-theme="dark"] body.ev-console .border-rose-200,
[data-theme="dark"] body.ev-console .border-rose-300 { border-color: rgba(255,46,136,0.28) !important; }
[data-theme="dark"] body.ev-console .text-rose-500,
[data-theme="dark"] body.ev-console .text-rose-600,
[data-theme="dark"] body.ev-console .text-rose-700,
[data-theme="dark"] body.ev-console .text-rose-800,
[data-theme="dark"] body.ev-console .text-rose-900 { color: #FF8FBF !important; }
[data-theme="dark"] body.ev-console .hover\:bg-rose-50:hover,
[data-theme="dark"] body.ev-console .hover\:bg-rose-100:hover { background-color: rgba(255,46,136,0.12) !important; }
[data-theme="dark"] body.ev-console .bg-pink-50,
[data-theme="dark"] body.ev-console .bg-pink-100 { background-color: rgba(255,46,136,0.09) !important; }
[data-theme="dark"] body.ev-console .bg-pink-50\/50,
[data-theme="dark"] body.ev-console .bg-pink-50\/40,
[data-theme="dark"] body.ev-console .bg-pink-50\/30,
[data-theme="dark"] body.ev-console .bg-pink-100\/50,
[data-theme="dark"] body.ev-console .bg-pink-200 { background-color: rgba(255,46,136,0.06) !important; }
[data-theme="dark"] body.ev-console .border-pink-100,
[data-theme="dark"] body.ev-console .border-pink-200,
[data-theme="dark"] body.ev-console .border-pink-300 { border-color: rgba(255,46,136,0.28) !important; }
[data-theme="dark"] body.ev-console .text-pink-500,
[data-theme="dark"] body.ev-console .text-pink-600,
[data-theme="dark"] body.ev-console .text-pink-700,
[data-theme="dark"] body.ev-console .text-pink-800,
[data-theme="dark"] body.ev-console .text-pink-900 { color: #FF8FBF !important; }
[data-theme="dark"] body.ev-console .hover\:bg-pink-50:hover,
[data-theme="dark"] body.ev-console .hover\:bg-pink-100:hover { background-color: rgba(255,46,136,0.12) !important; }
[data-theme="dark"] body.ev-console .bg-red-50,
[data-theme="dark"] body.ev-console .bg-red-100 { background-color: rgba(248,113,113,0.09) !important; }
[data-theme="dark"] body.ev-console .bg-red-50\/50,
[data-theme="dark"] body.ev-console .bg-red-50\/40,
[data-theme="dark"] body.ev-console .bg-red-50\/30,
[data-theme="dark"] body.ev-console .bg-red-100\/50,
[data-theme="dark"] body.ev-console .bg-red-200 { background-color: rgba(248,113,113,0.06) !important; }
[data-theme="dark"] body.ev-console .border-red-100,
[data-theme="dark"] body.ev-console .border-red-200,
[data-theme="dark"] body.ev-console .border-red-300 { border-color: rgba(248,113,113,0.28) !important; }
[data-theme="dark"] body.ev-console .text-red-500,
[data-theme="dark"] body.ev-console .text-red-600,
[data-theme="dark"] body.ev-console .text-red-700,
[data-theme="dark"] body.ev-console .text-red-800,
[data-theme="dark"] body.ev-console .text-red-900 { color: #FCA5A5 !important; }
[data-theme="dark"] body.ev-console .hover\:bg-red-50:hover,
[data-theme="dark"] body.ev-console .hover\:bg-red-100:hover { background-color: rgba(248,113,113,0.12) !important; }
[data-theme="dark"] body.ev-console .bg-gray-200 { background-color: var(--surface-3) !important; }
[data-theme="dark"] body.ev-console .border-gray-300, [data-theme="dark"] body.ev-console .border-gray-50 { border-color: var(--border) !important; }
[data-theme="dark"] body.ev-console .text-gray-300 { color: var(--text-subtle) !important; }
[data-theme="dark"] body.ev-console .divide-gray-100 > * + *, [data-theme="dark"] body.ev-console .divide-gray-200 > * + * { border-color: var(--border-subtle) !important; }
[data-theme="dark"] body.ev-console .hover\:bg-gray-200:hover { background-color: var(--surface-3) !important; }
[data-theme="dark"] body.ev-console .text-primary { color: rgb(var(--ev-pri)) !important; }

/* Portal welcome panel's button. */
body.ev-console .ev-hero-btn { background: transparent; color: #39FF88; border: 1px solid rgba(57, 255, 136, 0.55); }
body.ev-console .ev-hero-btn:hover { background: #39FF88; color: #04120A; border-color: #39FF88; box-shadow: 3px 3px 0 #FF2E88; transform: translate(-1px, -1px); }
body.ev-console .ev-slap { display: block; width: 72px; height: auto; }

/* ── Threads ──────────────────────────────────────────────────── */
body.ev-console .chat-bubble { border-radius: var(--r); }
body.ev-console .chat-bubble.sent { background: rgb(var(--ev-pri)); color: #fff; box-shadow: none; }
[data-theme="dark"] body.ev-console .chat-bubble.sent { color: #04120A; }
body.ev-console .chat-bubble.internal,
[data-theme="dark"] body.ev-console .chat-bubble.internal { background: rgba(255, 46, 136, 0.06); color: var(--ev-attn); border: 1px dashed rgba(255, 46, 136, 0.4); }
[data-theme="dark"] body.ev-console .chat-bubble.internal { color: #FF8FBF; }

/* Ids and dates in mono stay on one line in tables. */
body.ev-console .table td.font-mono,
body.ev-console .table td .font-mono,
body.ev-console .table td:has(> .font-mono) { white-space: nowrap; }

/* Colour variables some pages ask for with a fallback. */
body.ev-console { --success-bg: #DDF7E8; --success-text: #0A6B3A; --primary-bg: rgb(var(--ev-pri) / 0.10); }
[data-theme="dark"] body.ev-console { --success-bg: rgba(57, 255, 136, 0.09); --success-text: #7DFFB1; }

/* Wordmark on light ground (sign-in forms) vs on ink (sidebars, the sign-in side panel). */
body.ev-console .ev-word { color: var(--text); }
body.ev-console .ev-w-p { color: var(--text-subtle); }
body.ev-console .sidebar .ev-word,
body.ev-console .ev-on-ink .ev-word { color: var(--ev-bone); }
body.ev-console .sidebar .ev-w-p,
body.ev-console .ev-on-ink .ev-w-p { color: rgba(233, 237, 232, 0.45); }
body.ev-console .ev-word .ev-w-h { color: rgb(var(--ev-pri)); }
body.ev-console .sidebar .ev-w-h, body.ev-console .ev-on-ink .ev-w-h { color: var(--ev-green); }
body.ev-console .ev-slap.ev-auth-mark { width: 40px; margin: -2px 0 -7px; }
body.ev-console--auth .ev-word { font-size: 1rem; }

/* Sign-in pages: the dark side panel goes to ink, headings to the display face. */
body.ev-console--auth h1, body.ev-console--auth h2.text-2xl, body.ev-console--auth h2.text-3xl {
    font-family: var(--ev-display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.012em; line-height: 1.04;
}
/* A label and its arrow inside a button stay on one line (Tailwind makes svg a block). */
body.ev-console .btn > span:not(.js-hidden) { display: inline-flex; align-items: center; gap: 0.5rem; }
