@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;600;700;800&family=Rajdhani:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600&display=swap');

/* 🔵 Default Cyberpunk Blue Theme */
:root {
    --bg-dark: #070b14;
    --panel-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --neon-primary: #0ea5e9;
    --neon-secondary: #10b981;
    --text-main: #e2e8f0;
}

/* 🟢 Matrix Green Theme */
body.theme-matrix {
    --bg-dark: #021205;
    --panel-bg: rgba(3, 30, 10, 0.7);
    --glass-border: rgba(34, 197, 94, 0.2);
    --neon-primary: #22c55e;
    --neon-secondary: #16a34a;
    --text-main: #dcfce7;
}

/* 🟣 Neon Purple Theme */
body.theme-purple {
    --bg-dark: #0f071a;
    --panel-bg: rgba(26, 15, 42, 0.7);
    --glass-border: rgba(168, 85, 247, 0.2);
    --neon-primary: #a855f7;
    --neon-secondary: #ec4899;
    --text-main: #f3e8ff;
}

/* Frosted Arctic */
body.theme-arctic {
    --bg-dark: #07151c;
    --panel-bg: rgba(14, 38, 48, 0.74);
    --glass-border: rgba(125, 211, 252, 0.22);
    --neon-primary: #67e8f9;
    --neon-secondary: #a7f3d0;
    --text-main: #ecfeff;
}

/* Signal Amber */
body.theme-amber {
    --bg-dark: #17110a;
    --panel-bg: rgba(47, 30, 10, 0.76);
    --glass-border: rgba(251, 191, 36, 0.24);
    --neon-primary: #fbbf24;
    --neon-secondary: #fb7185;
    --text-main: #fff7ed;
}

/* Carbon Mint */
body.theme-carbon {
    --bg-dark: #0b1010;
    --panel-bg: rgba(22, 31, 29, 0.78);
    --glass-border: rgba(110, 231, 183, 0.2);
    --neon-primary: #6ee7b7;
    --neon-secondary: #fcd34d;
    --text-main: #ecfdf5;
}

/* High Contrast Light */
body.theme-paper {
    --bg-dark: #eef3f1;
    --panel-bg: rgba(255, 255, 255, 0.82);
    --glass-border: rgba(15, 23, 42, 0.14);
    --neon-primary: #0f766e;
    --neon-secondary: #d97706;
    --text-main: #172033;
}

body.theme-paper .glass {
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
}

/* 🔥 Custom Theming Classes (Foolproof) */
.t-bg { background-color: var(--bg-dark) !important; }
.t-panel { background-color: var(--panel-bg) !important; }
.t-border { border-color: var(--glass-border) !important; }
.t-text { color: var(--text-main) !important; }
.t-primary { color: var(--neon-primary) !important; }
.t-secondary { color: var(--neon-secondary) !important; }
.t-bg-primary { background-color: var(--neon-primary) !important; }
.t-bg-secondary { background-color: var(--neon-secondary) !important; }
.t-focus-primary:focus { border-color: var(--neon-primary) !important; outline: none; }

.t-gradient-text {
    background: linear-gradient(135deg, var(--neon-primary), var(--neon-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.t-gradient-bg {
    background: linear-gradient(135deg, var(--neon-primary), var(--neon-secondary)) !important;
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(255, 255, 255, 0.02), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(255, 255, 255, 0.02), transparent 25%);
    color: var(--text-main);
    font-family: 'Space Grotesk', sans-serif;
    margin: 0;
    overflow: hidden;
    letter-spacing: 0;
}

/* L.E.O protected gateway */
.login-page {
    --login-bg: #040b14;
    --login-glass: rgba(255, 255, 255, 0.03);
    --login-glass-hover: rgba(255, 255, 255, 0.05);
    --login-cyan: #00e5ff;
    --login-blue: #0088ff;
    --login-glow: rgba(0, 229, 255, 0.4);
    --login-muted: #8ab4f8;
    --login-error: #ff4444;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 24px;
    overflow: hidden;
    color: #ffffff;
    font-family: 'Rajdhani', sans-serif;
    background-color: var(--login-bg);
    background-image:
        linear-gradient(rgba(0, 229, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.025) 1px, transparent 1px),
        radial-gradient(circle at 50% 45%, rgba(0, 136, 255, 0.14), transparent 42%),
        radial-gradient(circle at 15% 10%, rgba(0, 229, 255, 0.08), transparent 30%);
    background-size: 48px 48px, 48px 48px, auto, auto;
    animation: matrixRain 24s linear infinite;
}

.login-page::before,
.login-page::after {
    content: '';
    position: fixed;
    width: 22rem;
    height: 22rem;
    border: 1px solid rgba(0, 229, 255, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

.login-page::before {
    transform: translate(-42vw, -32vh);
    box-shadow: 0 0 80px rgba(0, 136, 255, 0.12), inset 0 0 80px rgba(0, 229, 255, 0.06);
}

.login-page::after {
    transform: translate(42vw, 35vh) scale(0.65);
    border-color: rgba(0, 136, 255, 0.16);
}

.login-shell {
    position: relative;
    width: min(100%, 440px);
    z-index: 1;
}

.login-orbit {
    position: absolute;
    inset: -42px -34px;
    border: 1px solid rgba(0, 229, 255, 0.12);
    border-radius: 24px;
    transform: rotate(-4deg);
    pointer-events: none;
}

.login-orbit::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    top: 13%;
    right: 12%;
    border-radius: 50%;
    background: var(--login-cyan);
    box-shadow: 0 0 20px var(--login-cyan);
}

.login-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 40px;
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.1), 0 28px 90px rgba(0, 0, 0, 0.45);
    animation: pulseGlow 4s ease-in-out infinite;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.login-brand-mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--login-cyan);
    border-radius: 12px;
    color: var(--login-cyan);
    font: 700 1.5rem 'Orbitron', sans-serif;
    box-shadow: 0 0 24px rgba(0, 229, 255, 0.24), inset 0 0 18px rgba(0, 229, 255, 0.12);
}

.login-eyebrow,
.login-status,
.login-form label {
    color: var(--login-muted);
    font: 600 0.75rem 'Rajdhani', sans-serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.login-eyebrow {
    margin: 0 0 4px;
    font-size: 0.7rem;
}

.login-brand h1 {
    margin: 0;
    color: #ffffff;
    font: 700 2.5rem/1 'Orbitron', sans-serif;
    letter-spacing: 0.12em;
    text-shadow: 0 0 22px rgba(0, 229, 255, 0.55);
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(138, 180, 248, 0.65);
    font: 600 0.65rem 'JetBrains Mono', monospace;
    letter-spacing: 0.14em;
}

.login-divider::before,
.login-divider::after {
    content: '';
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.35), transparent);
}

.login-error {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 68, 68, 0.55);
    border-radius: 8px;
    color: #ff9b9b;
    background: rgba(255, 68, 68, 0.1);
    font: 500 0.9rem 'Rajdhani', sans-serif;
}

.login-error i { color: var(--login-error); margin-top: 2px; }

.login-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login-form label { margin-top: 4px; }

.login-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.login-input-wrap i { color: rgba(138, 180, 248, 0.7); }
.login-input-wrap:focus-within {
    border-color: var(--login-cyan);
    box-shadow: inset 0 0 10px rgba(0, 229, 255, 0.2), 0 0 15px rgba(0, 229, 255, 0.2);
}

.login-input-wrap input {
    width: 100%;
    min-width: 0;
    padding: 14px 0;
    border: 0;
    outline: 0;
    color: var(--login-cyan);
    background: transparent;
    font: 600 1rem 'Rajdhani', sans-serif;
}

.login-input-wrap input::placeholder { color: rgba(138, 180, 248, 0.5); }
.login-input-wrap:has(input:invalid:not(:placeholder-shown)) { border-color: rgba(255, 68, 68, 0.65); }

.login-recaptcha {
    align-self: center;
    margin: 8px 0 4px;
    min-height: 78px;
}

.login-submit {
    min-height: 48px;
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(90deg, var(--login-blue), var(--login-cyan));
    font: 700 1rem 'Rajdhani', sans-serif;
    letter-spacing: 0.08em;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.login-submit:hover:not(:disabled) {
    transform: scale(1.02);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.8);
}

.login-submit:disabled { opacity: 0.8; cursor: wait; }
.login-submit-loading { display: none; }
.login-submit.is-loading .login-submit-label { display: none; }
.login-submit.is-loading .login-submit-loading { display: inline; }

.login-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(138, 180, 248, 0.65);
    font-size: 0.65rem;
}

.login-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--login-cyan);
    box-shadow: 0 0 12px var(--login-cyan);
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 229, 255, 0.1), 0 28px 90px rgba(0, 0, 0, 0.45); }
    50% { box-shadow: 0 0 40px rgba(0, 229, 255, 0.3), 0 28px 90px rgba(0, 0, 0, 0.45); }
}

@keyframes matrixRain {
    from { background-position: 0% 0%, 0% 0%, 0 0, 0 0; }
    to { background-position: 0% 100%, 0% 100%, 0 0, 0 0; }
}

.glass {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

body > aside,
body > main {
    min-width: 0;
}

body > main > div:not(#chat-container) .t-bg,
body > aside .t-bg {
    transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.dashboard-workspace {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hud-shell {
    display: grid;
    grid-template-columns: minmax(250px, 300px) minmax(0, 1fr) minmax(280px, 380px);
    gap: 18px;
    min-height: 0;
    flex: 1;
    width: 100%;
    max-width: 100%;
}

.hud-column {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 0;
    width: 100%;
    min-width: 0;
}

.hud-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 240, 255, 0.22);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(15, 22, 34, 0.9), rgba(9, 14, 20, 0.88));
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.08), inset 0 0 20px rgba(0, 240, 255, 0.04);
    padding: 16px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.feature-page-focus {
    animation: feature-page-focus 1.2s ease-out;
}

@keyframes feature-page-focus {
    0% { box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.9), 0 0 32px rgba(34, 211, 238, 0.55); }
    100% { box-shadow: 0 0 18px rgba(0, 240, 255, 0.08), inset 0 0 20px rgba(0, 240, 255, 0.04); }
}

.chat-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    min-height: 320px;
    max-width: 100%;
}

.hud-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(0, 240, 255, 0.05) 50%, transparent 100%);
    pointer-events: none;
}

.panel-resizer {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 14px;
    height: 14px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(0, 240, 255, 0.32);
    border-radius: 4px;
    background: rgba(0, 240, 255, 0.08);
    cursor: nwse-resize;
    z-index: 3;
    padding: 0;
    transition: transform 160ms ease, border-color 160ms ease;
}

.panel-resizer::before {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(0, 240, 255, 0.8);
    border-bottom: 2px solid rgba(0, 240, 255, 0.8);
    transform: rotate(45deg);
    display: block;
}

.panel-resizer:hover {
    transform: scale(1.06);
    border-color: rgba(0, 240, 255, 0.6);
}

.panel-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.14);
}

.eyebrow {
    color: #8ab4f8;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-family: 'Fira Code', monospace;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    padding: 4px 8px;
    border: 1px solid rgba(0, 240, 255, 0.24);
    border-radius: 999px;
    background: rgba(0, 240, 255, 0.08);
    color: var(--dashboard-cyan);
    font-size: 9px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-family: 'Fira Code', monospace;
}

.status-pill.success {
    color: #76ffc0;
    border-color: rgba(0, 255, 136, 0.35);
    background: rgba(0, 255, 136, 0.08);
}

.status-pill.warning {
    color: #ffbf69;
    border-color: rgba(255, 170, 0, 0.35);
    background: rgba(255, 170, 0, 0.08);
}

.status-pill.info {
    color: #7de2ff;
    border-color: rgba(0, 240, 255, 0.35);
    background: rgba(0, 240, 255, 0.08);
}

.status-pill.idle {
    color: #b6c2d9;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.03);
}

[data-layout-panel="system-vitals"] {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 240, 255, 0.38) transparent;
}

.metrics-row {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    align-items: stretch;
    width: 100%;
}

.metric-card {
    min-height: 82px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(8, 12, 18, 0.7) !important;
    padding: 12px 10px !important;
}

.metric-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-bottom: 8px;
    text-align: center;
}

.metric-value {
    width: 100%;
    display: block;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: #e5f3ff;
    overflow-wrap: anywhere;
}

.metric-value-accent {
    color: #fbbf24;
}

.metric-value-healthy {
    color: #34d399;
}

.metric-card > div {
    width: 100%;
    text-align: center;
}

.metric-card .flex.items-center.justify-between {
    justify-content: center !important;
    gap: 8px;
}

.metric-card .text-lg,
.metric-card .text-lg.font-bold,
.metric-card #dashboard-provider,
.metric-card #dashboard-model,
.metric-card #dashboard-tokens,
.metric-card #dashboard-health {
    text-align: center;
    justify-self: center;
    width: 100%;
}

.vitals-graph {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 6px;
    height: 96px;
    margin-top: 14px;
    padding: 12px 8px 6px;
    border: 1px solid rgba(0, 240, 255, 0.16);
    border-radius: 12px;
    background: rgba(2, 8, 14, 0.72);
    min-height: 96px;
    flex-shrink: 0;
}

.graph-bar {
    flex: 1;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, rgba(0, 255, 136, 0.96), rgba(0, 240, 255, 0.38));
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

.sat-map {
    position: relative;
    z-index: 1;
    height: 180px;
    border: 1px solid rgba(0, 240, 255, 0.14);
    border-radius: 12px;
    background:
        radial-gradient(circle at center, rgba(0, 240, 255, 0.1), transparent 35%),
        rgba(3, 9, 17, 0.7);
    overflow: hidden;
}

.sat-map::before,
.sat-map::after {
    content: '';
    position: absolute;
    inset: 10%;
    border: 1px solid rgba(0, 240, 255, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

.sat-map::before {
    animation: satOrbitPulse 3.6s ease-in-out infinite;
}

.sat-map::after {
    inset: 24%;
    border-color: rgba(0, 255, 136, 0.1);
    animation: satOrbitPulse 3.6s ease-in-out 1.8s infinite reverse;
}

.map-node {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(0, 240, 255, 0.85);
    background: #00f0ff;
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.5);
    animation: satNodePulse 2.8s ease-in-out infinite;
    z-index: 2;
}

.map-node.is-live {
    background: #ffaa00;
    border-color: #ffd166;
    animation-duration: 1s;
    box-shadow: 0 0 22px rgba(255, 170, 0, 0.9);
}

.map-node.is-complete {
    background: #00ff88;
    border-color: #76ffc0;
    box-shadow: 0 0 18px rgba(0, 255, 136, 0.75);
}

.map-node.is-failed {
    background: #ff4444;
    border-color: #ff9b9b;
    animation-duration: 0.75s;
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.85);
}

.map-node.is-standby {
    opacity: 0.7;
}

.node-main { top: 50%; left: 50%; transform: translate(-50%, -50%); width: 16px; height: 16px; }
.node-a { top: 18%; left: 22%; animation-delay: 0.35s; }
.node-b { top: 28%; right: 22%; animation-delay: 0.7s; }
.node-c { bottom: 16%; left: 18%; animation-delay: 1.05s; }
.node-d { bottom: 18%; right: 20%; animation-delay: 1.4s; }
.node-e { top: 58%; right: 46%; animation-delay: 1.75s; }

.map-connection {
    position: absolute;
    display: block;
    height: 1px;
    background: linear-gradient(90deg, rgba(0, 240, 255, 0.1), rgba(0, 240, 255, 0.6), rgba(0, 240, 255, 0.1));
    transform-origin: center;
    overflow: hidden;
    opacity: 0.72;
    z-index: 1;
}

.map-connection::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -30%;
    width: 30%;
    height: 5px;
    border-radius: 999px;
    background: #7de2ff;
    box-shadow: 0 0 10px #00f0ff;
    animation: satSignalTravel 2.4s linear infinite;
}

.map-connection.is-live {
    opacity: 1;
    background: linear-gradient(90deg, rgba(255, 170, 0, 0.1), rgba(255, 209, 102, 0.9), rgba(255, 170, 0, 0.1));
}

.map-connection.is-live::after {
    background: #ffd166;
    box-shadow: 0 0 14px #ffaa00;
    animation-duration: 0.9s;
}

.c1 { top: 45%; left: 27%; width: 22%; transform: rotate(15deg); }
.c2 { top: 38%; right: 27%; width: 22%; transform: rotate(-18deg); }
.c3 { bottom: 28%; left: 26%; width: 20%; transform: rotate(-18deg); }
.c4 { bottom: 28%; right: 26%; width: 20%; transform: rotate(18deg); }
.c2::after { animation-delay: 0.6s; }
.c3::after { animation-delay: 1.2s; }
.c4::after { animation-delay: 1.8s; }

@keyframes satNodePulse {
    0%, 100% { opacity: 0.72; box-shadow: 0 0 10px rgba(0, 240, 255, 0.32); }
    50% { opacity: 1; box-shadow: 0 0 24px rgba(0, 240, 255, 0.95), 0 0 42px rgba(0, 255, 136, 0.28); }
}

@keyframes satSignalTravel {
    0% { transform: translateX(0); opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { transform: translateX(430%); opacity: 0; }
}

@keyframes satOrbitPulse {
    0%, 100% { transform: scale(0.96); opacity: 0.35; }
    50% { transform: scale(1.04); opacity: 0.85; }
}

.ops-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ops-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.ops-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 10px;
    border: 1px solid rgba(0, 240, 255, 0.12);
    border-radius: 12px;
    background: rgba(2, 8, 14, 0.7);
}

.ops-label {
    color: #7c8fb3;
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: 'Fira Code', monospace;
}

.ops-value {
    color: #ecfaff;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
}

.ops-trend {
    font-size: 9px;
    font-family: 'Fira Code', monospace;
    letter-spacing: 0.08em;
    text-transform: lowercase;
}

.ops-trend.positive {
    color: #7cf5b8;
}

.workflow-rail {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 4px;
}

.rail-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
    color: #8ba1bf;
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: 'Fira Code', monospace;
}

.rail-step.is-active {
    border-color: rgba(0, 240, 255, 0.34);
    color: #dffcff;
    background: rgba(0, 240, 255, 0.08);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
}

.analytics-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.analytics-chart {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    align-items: end;
    gap: 8px;
    height: 120px;
    padding: 12px 10px 4px;
    border: 1px solid rgba(0, 240, 255, 0.12);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(4, 11, 17, 0.8), rgba(2, 8, 12, 0.95));
}

.analytics-chart span {
    display: block;
    height: var(--h);
    min-height: 18%;
    border-radius: 10px 10px 0 0;
    background: linear-gradient(180deg, color-mix(in srgb, var(--c) 88%, white), var(--c));
    box-shadow: 0 0 18px color-mix(in srgb, var(--c) 55%, transparent);
}

.analytics-metrics {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.analytics-metrics div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    border: 1px solid rgba(0, 240, 255, 0.12);
    border-radius: 10px;
    background: rgba(2, 8, 14, 0.7);
    color: #dffcff;
}

.analytics-metrics span {
    color: #7c8fb3;
    font-size: 9px;
    font-family: 'Fira Code', monospace;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.analytics-metrics strong {
    font-size: 1rem;
    font-weight: 700;
}

.log-feed {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 190px;
    overflow-y: auto;
}

.feed-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid rgba(0, 240, 255, 0.12);
    border-radius: 8px;
    background: rgba(2, 8, 14, 0.7);
    color: #d9ebff;
    font-size: 11px;
    font-family: 'Fira Code', monospace;
}

.feed-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px currentColor;
}

.feed-dot.success { color: #00ff88; background: #00ff88; }
.feed-dot.info { color: #00f0ff; background: #00f0ff; }
.feed-dot.warning { color: #ffbf69; background: #ffbf69; }

.ai-core-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    width: 100%;
}

.ai-core-wrap {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 180px;
}

.ai-core-sphere {
    position: relative;
    width: min(52vw, 170px);
    height: min(52vw, 170px);
    max-width: 170px;
    max-height: 170px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(0, 240, 255, 0.34);
    background: radial-gradient(circle at center, rgba(0, 240, 255, 0.18), rgba(2, 10, 18, 0.9));
    box-shadow: inset 0 0 35px rgba(0, 240, 255, 0.12), 0 0 26px rgba(0, 240, 255, 0.12);
    animation: aiPulse 3s ease-in-out infinite;
}

.core-ring {
    position: absolute;
    display: block;
    border: 1px solid rgba(0, 240, 255, 0.24);
    border-radius: 50%;
}

.ring-one { width: 118%; height: 118%; }
.ring-two { width: 135%; height: 135%; border-color: rgba(0, 255, 136, 0.2); }
.ring-three { width: 150%; height: 150%; border-color: rgba(0, 240, 255, 0.16); }

.core-center {
    position: relative;
    z-index: 1;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.28em;
    font-size: 1.1rem;
    color: #dffbff;
    text-shadow: 0 0 18px rgba(0, 240, 255, 0.8);
    animation: leoTextLight 2.4s ease-in-out infinite;
}

.brain-visual-panel {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 12px 10px;
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 12px;
    background: rgba(5, 15, 26, 0.7);
    box-shadow: inset 0 0 18px rgba(0, 240, 255, 0.06);
}

.brain-visual-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #dcedff;
    font-family: 'Fira Code', monospace;
}

.brain-meter {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
    gap: 6px;
    height: 86px;
    padding: 10px 4px 0;
}

.brain-meter-bar {
    display: block;
    height: 18%;
    min-height: 14px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(180deg, rgba(0, 240, 255, 0.6), rgba(0, 255, 136, 0.16));
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.18);
    transition: height 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
    opacity: 0.65;
}

.brain-meter-bar.active {
    opacity: 1;
    box-shadow: 0 0 18px rgba(0, 255, 136, 0.3);
}

.brain-mini-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.brain-mini-stats div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 8px;
    border-radius: 8px;
    background: rgba(15, 24, 35, 0.8);
    border: 1px solid rgba(0, 240, 255, 0.12);
}

.brain-mini-stats span {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #8aa5bd;
    font-family: 'Fira Code', monospace;
}

.brain-mini-stats strong {
    font-size: 12px;
    color: #e3f7ff;
}

.brain-response-text {
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid rgba(0, 240, 255, 0.12);
    border-radius: 10px;
    background: rgba(3, 10, 18, 0.8);
    color: #d7f6ff;
    font-size: 11px;
    line-height: 1.55;
    font-family: 'Fira Code', monospace;
    word-break: break-word;
}

.command-center-panel,
.memory-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 210px;
}

.command-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.command-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 76px;
    border: 1px solid rgba(0, 240, 255, 0.18);
    border-radius: 12px;
    background: rgba(10, 18, 28, 0.75);
    color: #eaf9ff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 10px;
    font-family: 'Fira Code', monospace;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.command-tile:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 255, 136, 0.34);
}

.command-tile i {
    font-size: 16px;
    color: #7de2ff;
}

.command-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.command-summary div {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px 8px;
    border-radius: 10px;
    border: 1px solid rgba(0, 240, 255, 0.12);
    background: rgba(3, 10, 18, 0.74);
    text-align: center;
}

.command-summary span,
.memory-tags span {
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8ea5bb;
    font-family: 'Fira Code', monospace;
}

.command-summary strong {
    font-size: 12px;
    color: #ecf9ff;
}

.memory-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.memory-tags span {
    padding: 5px 8px;
    border: 1px solid rgba(0, 240, 255, 0.14);
    border-radius: 999px;
    background: rgba(12, 22, 34, 0.78);
}

.memory-feed {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.memory-feed div {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 11px;
    background: rgba(6, 13, 20, 0.8);
    border: 1px solid rgba(0, 240, 255, 0.1);
    color: #ddebff;
}

.memory-feed i {
    color: #00ff88;
}

.leo-launch-btn {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 260px;
    border: 1px solid rgba(0, 240, 255, 0.34);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.14), rgba(0, 255, 136, 0.12));
    color: #ebffff;
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.14);
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    letter-spacing: 0.18em;
    padding: 12px 16px;
    text-transform: uppercase;
}

.agent-registry-panel {
    min-height: 0;
}

.agent-canvas-shell {
    position: relative;
    min-height: 260px;
    border: 1px solid rgba(0, 240, 255, 0.18);
    border-radius: 12px;
    background: rgba(2, 8, 14, 0.72);
    overflow: hidden;
}

.console-panel {
    min-height: 180px;
}

.console-window {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 120px;
    border-radius: 12px;
    padding: 12px 10px;
    border: 1px solid rgba(0, 240, 255, 0.14);
    background: rgba(2, 8, 14, 0.76);
    color: #d2f7ff;
    font-family: 'Fira Code', monospace;
    font-size: 11px;
}

.console-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.console-tag {
    display: inline-block;
    min-width: 36px;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(0, 240, 255, 0.08);
    color: #7de2ff;
    border: 1px solid rgba(0, 240, 255, 0.2);
    text-align: center;
}

.system-activity-panel,
.automation-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.system-feed {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 180px;
    overflow-y: auto;
}

.feed-line {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid rgba(0, 240, 255, 0.12);
    border-radius: 10px;
    background: rgba(2, 8, 14, 0.72);
}

.feed-time {
    display: inline-block;
    min-width: 48px;
    color: #7de2ff;
    font-size: 9px;
    font-family: 'Fira Code', monospace;
    letter-spacing: 0.12em;
}

.feed-text {
    color: #dffcff;
    font-size: 11px;
    line-height: 1.4;
}

.automation-strip {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.auto-btn {
    flex: 1 1 90px;
    min-height: 32px;
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 10px;
    background: rgba(0, 240, 255, 0.06);
    color: #ebffff;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: 'Fira Code', monospace;
    transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.auto-btn:hover {
    border-color: rgba(0, 240, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.12);
}

.task-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-form {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.task-form input,
.task-form textarea,
.task-form select {
    width: 100%;
    border: 1px solid rgba(0, 240, 255, 0.18);
    border-radius: 10px;
    background: rgba(2, 8, 14, 0.72);
    color: #ecfaff;
    padding: 9px 10px;
    font-size: 11px;
}

.task-form textarea {
    resize: vertical;
    min-height: 70px;
}

.leo-browser-panel {
    display: flex;
    flex-direction: column;
    min-height: 380px;
}

.leo-browser-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 10px;
    width: 100%;
    min-width: 0;
}

.leo-browser-bar input {
    min-width: 0;
    flex: 1 1 auto;
    font-size: 11px;
    color: #ecfaff;
    background: rgba(2, 8, 14, 0.72);
    border: 1px solid rgba(0, 240, 255, 0.18);
    border-radius: 10px;
    padding: 9px 10px;
    width: 100%;
}

.leo-browser-bar button {
    flex: 0 0 auto;
}

.leo-browser-viewport {
    flex: 1;
    min-height: 260px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0, 240, 255, 0.18);
    background: rgba(255, 255, 255, 0.02);
}

.leo-browser-status {
    margin: 0 0 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(17, 24, 39, 0.85);
    border: 1px solid rgba(0, 240, 255, 0.18);
    color: #d8f8ff;
    font-size: 10px;
    line-height: 1.5;
}

.leo-browser-toolbar-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0 0 10px;
}

.leo-browser-trust-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    color: #d8f8ff;
    font-family: 'Fira Code', monospace;
}

.leo-browser-trust-toggle input {
    accent-color: #22d3ee;
}

.leo-browser-status-error {
    border-color: rgba(248, 113, 113, 0.45);
    color: #fecaca;
    background: rgba(69, 10, 10, 0.35);
}

#leo-browser-frame {
    width: 100%;
    height: 100%;
    min-height: 260px;
    border: 0;
    background: #ffffff;
}

#mic-btn.listening-active {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.28), rgba(34, 211, 238, 0.18));
    border-color: rgba(34, 197, 94, 0.7);
    color: #d1fae5;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}

#mic-retry-btn {
    min-width: 64px;
}

#mic-wave {
    display: none;
    align-items: end;
    gap: 3px;
    height: 30px;
    padding: 0 4px;
}

#mic-wave span {
    display: block;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, #22d3ee, #34d399);
    animation: mic-wave 0.8s ease-in-out infinite alternate;
    transform-origin: bottom center;
}

#mic-wave span:nth-child(1) { height: 6px; animation-delay: 0.1s; }
#mic-wave span:nth-child(2) { height: 10px; animation-delay: 0.2s; }
#mic-wave span:nth-child(3) { height: 16px; animation-delay: 0.3s; }
#mic-wave span:nth-child(4) { height: 10px; animation-delay: 0.4s; }
#mic-wave span:nth-child(5) { height: 6px; animation-delay: 0.5s; }

@keyframes mic-wave {
    from { transform: scaleY(0.5); opacity: 0.55; }
    to { transform: scaleY(1.5); opacity: 1; }
}

.task-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.task-actions {
    display: flex;
    gap: 8px;
}

.task-submit,
.task-reset {
    flex: 1;
    min-height: 34px;
    border-radius: 10px;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: 'Fira Code', monospace;
}

.task-submit {
    border: 1px solid rgba(0, 255, 136, 0.3);
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.18), rgba(0, 240, 255, 0.12));
    color: #ebfff7;
}

.task-reset {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #dceaff;
}

.task-list {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
}

.task-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(0, 240, 255, 0.12);
    border-radius: 10px;
    background: rgba(2, 8, 14, 0.7);
}

.task-item.done {
    border-color: rgba(0, 255, 136, 0.25);
    opacity: 0.82;
}

.task-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.task-title {
    margin: 0;
    color: #ebffff;
    font-size: 12px;
    font-weight: 700;
}

.task-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 8px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: 'Fira Code', monospace;
    border: 1px solid rgba(0, 240, 255, 0.2);
    color: #dffcff;
    background: rgba(0, 240, 255, 0.06);
}

.task-badge.high { background: rgba(255, 170, 0, 0.1); color: #ffd166; border-color: rgba(255, 170, 0, 0.25); }
.task-badge.critical { background: rgba(255, 68, 68, 0.1); color: #ff9a9a; border-color: rgba(255, 68, 68, 0.25); }
.task-badge.low { background: rgba(0, 255, 136, 0.08); color: #7cf5b8; border-color: rgba(0, 255, 136, 0.25); }

.task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: #a9bfdc;
    font-size: 9px;
    font-family: 'Fira Code', monospace;
}

.task-actions-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.task-tag-btn {
    padding: 5px 8px;
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 8px;
    background: rgba(0, 240, 255, 0.04);
    color: #dffcff;
    font-size: 9px;
    font-family: 'Fira Code', monospace;
}

.task-tag-btn.delete {
    border-color: rgba(255, 68, 68, 0.25);
    color: #ff9a9a;
}

.chat-terminal {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    height: min(62vh, 720px);
    flex: 1 1 auto;
    padding: 16px;
    border: 1px solid rgba(0, 240, 255, 0.18);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(6, 13, 20, 0.8), rgba(4, 9, 15, 0.9));
    box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.04);
    overflow: hidden;
}

.chat-composer {
    position: static;
    width: 100%;
    padding: 0;
    background: transparent;
    flex: 0 0 auto;
}

.composer-shell {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 64px;
    padding: 8px 10px;
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 12px;
    background: rgba(6, 13, 20, 0.8);
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.08);
    transition: gap 0.2s ease, padding 0.2s ease;
    min-width: 0;
}

#user-input {
    min-width: 0;
    width: 100%;
    font-family: 'Fira Code', monospace;
    font-size: 12px;
    flex: 1 1 auto;
    max-width: 100%;
}

#attachment-btn, #mic-btn {
    background: rgba(0, 240, 255, 0.04);
}

body > main > div:not(#chat-container) .t-bg:hover,
body > aside .t-bg:hover {
    border-color: var(--neon-primary) !important;
}

select,
input,
button {
    font: inherit;
}

@keyframes aiPulse {
    0%, 100% { box-shadow: inset 0 0 35px rgba(0, 240, 255, 0.12), 0 0 26px rgba(0, 240, 255, 0.12); }
    50% { box-shadow: inset 0 0 50px rgba(0, 255, 136, 0.14), 0 0 36px rgba(0, 240, 255, 0.18); }
}

@keyframes leoTextLight {
    0%, 100% {
        color: #dffbff;
        filter: brightness(1);
        text-shadow: 0 0 8px rgba(0, 240, 255, 0.55), 0 0 18px rgba(0, 240, 255, 0.8);
    }
    50% {
        color: #ffffff;
        filter: brightness(1.35);
        text-shadow: 0 0 10px rgba(0, 255, 136, 0.75), 0 0 24px rgba(0, 240, 255, 0.95), 0 0 42px rgba(0, 240, 255, 0.45);
    }
}

button:focus-visible,
select:focus-visible,
input:focus-visible {
    outline: 2px solid var(--neon-primary);
    outline-offset: 2px;
}

::selection {
    color: var(--bg-dark);
    background: var(--neon-primary);
}

.layout-draggable {
    transition: transform 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.layout-editing .layout-draggable {
    cursor: grab;
    outline: 1px dashed color-mix(in srgb, var(--neon-primary) 65%, transparent);
    outline-offset: 3px;
}

.layout-editing .layout-draggable:hover {
    transform: translateY(-2px);
    border-color: var(--neon-primary) !important;
}

.layout-editing .layout-draggable:active,
.layout-editing .layout-dragging {
    cursor: grabbing;
    opacity: 0.55;
}

.layout-editing .layout-drag-target {
    outline: 2px solid var(--neon-secondary);
    outline-offset: 4px;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--neon-primary); }

.msg-leo {
    background: var(--panel-bg);
    border-left: 3px solid var(--neon-primary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    border-radius: 16px 16px 16px 4px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.msg-user {
    background: var(--bg-dark);
    border-right: 3px solid var(--neon-secondary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    border-radius: 16px 16px 4px 16px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.code-block {
    background-color: #000000 !important;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--neon-secondary);
    overflow-x: auto;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.8);
}

.agent-test-timeline {
    width: min(100%, 540px);
    background: linear-gradient(180deg, rgba(13, 21, 31, 0.94), rgba(10, 16, 24, 0.9));
    border: 1px solid rgba(0, 240, 255, 0.22);
    border-left: 3px solid rgba(0, 240, 255, 0.9);
    border-radius: 16px 16px 16px 6px;
    padding: 14px 14px 12px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
}

.agent-test-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    color: #a7f3d0;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: 'Fira Code', monospace;
}

.agent-test-progress {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(0, 240, 255, 0.12) 0%, rgba(0, 240, 255, 0.02) 52%, rgba(0, 0, 0, 0) 56%);
    border: 1px solid rgba(0, 240, 255, 0.22);
    box-shadow: inset 0 0 12px rgba(0, 240, 255, 0.08);
}

.agent-test-progress::before {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    border: 2px solid rgba(0, 240, 255, 0.14);
    border-top-color: rgba(0, 240, 255, 0.9);
    animation: spinRing 2.1s linear infinite;
}

.agent-test-progress strong {
    position: relative;
    z-index: 1;
    color: #7de2ff;
    font-size: 0.7rem;
    font-family: 'Fira Code', monospace;
}

.agent-test-track {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
    overflow: hidden;
    border: 1px solid rgba(0, 240, 255, 0.08);
    margin-bottom: 12px;
}

.agent-test-bar {
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(125, 226, 255, 0.9), rgba(34, 197, 94, 0.9));
    box-shadow: 0 0 10px rgba(125, 226, 255, 0.7);
    transition: width 0.35s ease;
}

.agent-test-steps {
    display: grid;
    gap: 8px;
}

.agent-test-item {
    display: grid;
    grid-template-columns: 12px 1fr;
    gap: 10px;
    align-items: start;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(0, 240, 255, 0.12);
    background: rgba(2, 8, 14, 0.42);
    transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.agent-test-item.active {
    border-color: rgba(0, 240, 255, 0.5);
    background: rgba(0, 240, 255, 0.08);
    transform: translateX(2px);
}

.agent-test-item.done {
    border-color: rgba(0, 255, 136, 0.45);
    background: rgba(0, 255, 136, 0.06);
}

.agent-test-item.pending {
    opacity: 0.7;
}

.agent-test-dot {
    position: relative;
    width: 10px;
    height: 10px;
    margin-top: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.32);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.07);
}

.agent-test-item.active .agent-test-dot {
    background: #7de2ff;
    box-shadow: 0 0 0 3px rgba(125, 226, 255, 0.16), 0 0 14px rgba(125, 226, 255, 0.8);
    animation: pulseDot 1.2s ease-in-out infinite;
}

.agent-test-item.done .agent-test-dot {
    background: #00ff88;
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.12), 0 0 14px rgba(0, 255, 136, 0.7);
}

.agent-test-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    color: #dfeaf8;
}

.agent-test-copy strong {
    font-size: 0.8rem;
    font-weight: 700;
}

.agent-test-copy small {
    color: rgba(191, 219, 254, 0.9);
    font-size: 0.68rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.28); opacity: 0.76; }
}

@keyframes spinRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slide-up {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.animate-slide-up { animation: slide-up 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

/* Keep the dashboard usable on narrow screens without changing the desktop shell. */
@media (max-width: 767px) {
    body {
        display: block !important;
        min-height: 100dvh;
        height: auto !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    body > aside {
        width: 100% !important;
        max-height: 42dvh;
        min-height: 0;
        border-right: 0 !important;
        border-bottom: 1px solid var(--glass-border);
    }

    body > aside > div:first-child {
        padding: 1rem 1.25rem !important;
    }

    body > aside > div:nth-child(2) {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem !important;
        padding: 0.75rem 1rem !important;
        overflow-y: auto;
    }

    body > aside > div:nth-child(2) > div {
        min-width: 0;
    }

    body > aside > div:last-child {
        padding: 0.75rem 1rem !important;
    }

    body > main {
        display: block !important;
        min-height: 58dvh;
        height: auto !important;
        overflow: visible !important;
    }

    body > main > header {
        height: auto !important;
        min-height: 3.5rem;
        padding: 0.75rem 1rem !important;
        gap: 0.75rem;
    }

    body > main > header h2 {
        min-width: 0;
        font-size: 0.8rem;
    }

    body > main > header h2 i {
        margin-right: 0.4rem !important;
    }

    body > main > header > div {
        flex-shrink: 0;
    }

    body > main > header > div > button {
        padding: 0.4rem 0.55rem !important;
        font-size: 0 !important;
    }

    body > main > header > div > button i {
        margin-right: 0 !important;
        font-size: 0.75rem;
    }

    body > main > header > div > div {
        padding: 0.4rem 0.55rem !important;
    }

    body > main > div:not(#chat-container):not(:last-child) {
        padding: 1rem !important;
    }

    #agent-canvas-shell {
        grid-template-columns: 1fr !important;
    }

    #create-agent-form {
        grid-template-columns: 1fr !important;
    }

    #chat-container {
        min-height: 42dvh;
        max-height: none !important;
        padding: 1rem !important;
        padding-bottom: 6.5rem !important;
        overflow: visible !important;
    }

    .msg-leo,
    .msg-user {
        max-width: 94% !important;
        padding: 0.85rem !important;
        font-size: 0.85rem;
        overflow-wrap: anywhere;
    }

    body > main > div.absolute {
        position: sticky !important;
        bottom: 0;
        width: auto !important;
        padding: 0.65rem !important;
        background: linear-gradient(to top, var(--bg-dark) 72%, transparent) !important;
    }

    body > main > div.absolute > div {
        gap: 0.35rem !important;
        padding: 0.4rem !important;
        border-radius: 1rem !important;
    }

    #attachment-btn,
    #mic-btn,
    body > main > div.absolute button:last-child {
        width: 2.5rem !important;
        height: 2.5rem !important;
    }

    #user-input {
        min-width: 0;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        font-size: 0.85rem;
    }
}

@media (min-width: 768px) and (max-width: 1100px) {
    body > aside {
        width: 17rem !important;
    }

    #agent-canvas-shell {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #create-agent-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .login-page {
        display: grid !important;
        min-height: 100dvh;
        padding: 16px;
        overflow: auto !important;
    }

    .login-page > .login-shell {
        display: block !important;
        width: min(100%, 440px) !important;
        min-height: 0 !important;
        height: auto !important;
        overflow: visible !important;
    }

    .login-orbit { inset: -16px -8px; }

    .login-card {
        gap: 18px;
        padding: 24px 20px;
    }

    .login-brand h1 { font-size: 2rem; }
    .login-brand-mark { width: 42px; height: 42px; }
    .login-recaptcha { transform: scale(0.88); transform-origin: center; }
}

@media (max-width: 360px) {
    .login-card { padding: 20px 16px; }
    .login-eyebrow { font-size: 0.62rem; }
    .login-brand h1 { font-size: 1.75rem; }
    .login-recaptcha { transform: scale(0.78); margin-left: -18px; margin-right: -18px; }
}

/* Dashboard Interface v2.0 */
.dashboard-page {
    --dashboard-bg: #040b14;
    --dashboard-glass: rgba(255, 255, 255, 0.03);
    --dashboard-glass-hover: rgba(255, 255, 255, 0.05);
    --dashboard-cyan: #00e5ff;
    --dashboard-blue: #0088ff;
    --dashboard-success: #00ff88;
    --dashboard-warning: #ffaa00;
    --dashboard-danger: #ff4444;
    --dashboard-muted: rgba(138, 180, 248, 0.5);
    display: grid !important;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    height: 100vh !important;
    padding: 24px;
    overflow: hidden !important;
    background-color: var(--dashboard-bg) !important;
    background-image:
        linear-gradient(rgba(0, 229, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.018) 1px, transparent 1px),
        radial-gradient(circle at 72% 20%, rgba(0, 136, 255, 0.12), transparent 34%),
        radial-gradient(circle at 20% 80%, rgba(0, 229, 255, 0.06), transparent 30%);
    background-size: 56px 56px, 56px 56px, auto, auto;
    font-family: 'Rajdhani', sans-serif;
}

.dashboard-page .dashboard-sidebar,
.dashboard-page .dashboard-workspace,
.dashboard-page .workspace-nav,
.dashboard-page .workspace-overview,
.dashboard-page .agent-command-panel,
.dashboard-page .chat-terminal,
.dashboard-page .chat-composer {
    min-width: 0;
}

.dashboard-page .dashboard-sidebar {
    width: auto !important;
    height: calc(100vh - 48px);
    border: 1px solid rgba(0, 229, 255, 0.3) !important;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1), 0 0 15px rgba(0, 229, 255, 0.08);
}

.dashboard-page .dashboard-sidebar > div:first-child {
    padding: 24px !important;
    border-color: rgba(0, 229, 255, 0.2) !important;
}

.dashboard-page .dashboard-sidebar > div:first-child h1,
.dashboard-page .dashboard-sidebar .t-primary,
.dashboard-page .workspace-nav h2,
.dashboard-page .agent-command-panel h3 {
    font-family: 'Orbitron', sans-serif;
}

.dashboard-page .dashboard-sidebar > div:first-child h1 {
    color: var(--dashboard-cyan);
    font-size: 1.45rem;
    text-shadow: 0 0 18px rgba(0, 229, 255, 0.55);
}

.dashboard-page #sidebar-widgets {
    padding: 20px !important;
    gap: 14px !important;
}

.dashboard-page #sidebar-widgets > .t-bg,
.dashboard-page .workspace-overview,
.dashboard-page .agent-command-panel,
.dashboard-page .metric-card,
.dashboard-page .workspace-nav,
.dashboard-page .chat-terminal,
.dashboard-page .chat-composer > div {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)) !important;
    border: 1px solid rgba(0, 229, 255, 0.3) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1), 0 0 15px rgba(0, 229, 255, 0.06);
}

.dashboard-page #sidebar-widgets > .t-bg {
    border-radius: 10px;
}

.dashboard-page #sidebar-widgets > .t-bg:hover,
.dashboard-page .metric-card:hover,
.dashboard-page .agent-command-panel:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)) !important;
    border-color: rgba(0, 229, 255, 0.6) !important;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.13);
}

.dashboard-page .dashboard-workspace {
    gap: 24px;
    overflow: hidden;
}

.dashboard-page .workspace-nav {
    height: 64px !important;
    flex: 0 0 64px;
    padding: 0 20px !important;
    border-radius: 12px;
}

.dashboard-page .workspace-nav h2 {
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mobile-sidebar-toggle {
    display: none;
    margin-right: 10px;
    padding: 6px 8px;
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 6px;
    color: var(--dashboard-cyan);
    background: rgba(0, 229, 255, 0.08);
}

.dashboard-page .workspace-overview {
    padding: 20px !important;
    border-radius: 12px;
    overflow-y: auto;
}

/* Animated Agents Dashboard v3.0 */
.dashboard-page {
    --dashboard-bg: #02060d;
    background-color: var(--dashboard-bg) !important;
    background-image:
        linear-gradient(rgba(0, 229, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 75% 22%, rgba(0, 136, 255, 0.14), transparent 34%);
    background-size: 48px 48px, 48px 48px, auto;
}

.dashboard-page .workspace-overview {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible;
}

.dashboard-page .metrics-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    align-items: stretch;
    width: 100%;
    max-height: 260px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 229, 255, 0.5) transparent;
}

.dashboard-page.content-auto-layout [data-layout-panel="system-vitals"] {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important;
}

.dashboard-page.content-auto-layout [data-layout-panel="system-vitals"] .metrics-row {
    max-height: none !important;
    overflow: visible !important;
}

.dashboard-page.content-auto-layout .hud-panel[data-layout-panel]:not([data-layout-panel="chat"]) {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important;
}

.dashboard-page.content-auto-layout [data-layout-panel="headlines-logs"] .log-feed {
    max-height: none !important;
    overflow: visible !important;
}

.dashboard-page.content-auto-layout [data-layout-panel="system-feed"] .system-feed {
    max-height: none !important;
    overflow: visible !important;
}

.dashboard-page.content-auto-layout [data-layout-panel="top-console"] .console-window {
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important;
}

.dashboard-page.content-auto-layout #backup-manager-modal > div,
.dashboard-page.content-auto-layout #cloud-storage-manager-modal > div {
    height: auto !important;
    max-height: calc(100dvh - 32px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.dashboard-page.content-auto-layout #backup-manager-modal .grid,
.dashboard-page.content-auto-layout #cloud-storage-manager-modal .grid {
    min-height: 0;
    overflow: visible !important;
}

.dashboard-page .metrics-row::-webkit-scrollbar {
    width: 6px;
}

.dashboard-page .metrics-row::-webkit-scrollbar-thumb {
    background: rgba(0, 229, 255, 0.45);
    border-radius: 999px;
}

.dashboard-page .metric-card {
    min-height: 68px;
    padding: 10px 8px !important;
    border-radius: 10px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 100%;
}

.dashboard-page .metric-card > div:first-child {
    margin-bottom: 4px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    font-size: 9px;
    line-height: 1.2;
}

.dashboard-page .metric-card > div:first-child span {
    text-align: center;
    display: inline-block;
}

.dashboard-page .metric-card > div:first-child i {
    font-size: 9px;
    line-height: 1;
}

.dashboard-page .metric-card > div:last-child {
    font-size: 0.9rem;
    line-height: 1.25;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-page .holographic-agent-panel {
    position: relative;
    margin-top: 0 !important;
    padding: 18px !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)) !important;
    border: 1px solid rgba(0, 229, 255, 0.3) !important;
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1), 0 0 15px rgba(0, 229, 255, 0.15);
}

.agent-canvas-shell {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    border: 1px solid rgba(0, 229, 255, 0.22);
    border-radius: 10px;
    background: #02060d;
    box-shadow: inset 0 0 30px rgba(0, 229, 255, 0.07);
}

#agent-canvas {
    display: block;
    width: 100%;
    min-height: 260px;
}

.agent-canvas-shell::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(transparent 50%, rgba(0, 229, 255, 0.035) 51%, transparent 52%);
    background-size: 100% 8px;
    mix-blend-mode: screen;
}

.agent-canvas-labels {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.agent-holo-label {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    max-width: 150px;
    padding: 6px 8px;
    transform: translate(-50%, -50%);
    border: 1px solid color-mix(in srgb, var(--agent-state) 50%, transparent);
    border-radius: 7px;
    color: #ffffff;
    background: rgba(2, 6, 13, 0.78);
    box-shadow: 0 0 14px color-mix(in srgb, var(--agent-state) 25%, transparent);
    font-family: 'Rajdhani', sans-serif;
}

.agent-holo-label strong,
.agent-holo-label small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.agent-holo-label strong { font-size: 0.75rem; }
.agent-holo-label small { color: var(--agent-state); font: 0.62rem 'Fira Code', monospace; text-transform: uppercase; }

.agent-holo-icon {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    color: var(--agent-state);
    border: 1px solid var(--agent-state);
    border-radius: 50%;
    box-shadow: 0 0 12px color-mix(in srgb, var(--agent-state) 55%, transparent);
}

.agent-canvas-legend {
    position: absolute;
    right: 10px;
    bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: rgba(138, 180, 248, 0.75);
    font: 0.6rem 'Fira Code', monospace;
    text-transform: uppercase;
}

.agent-canvas-legend span { display: inline-flex; align-items: center; gap: 4px; }
.agent-legend-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--dashboard-cyan); box-shadow: 0 0 8px currentColor; }
.agent-legend-dot.is-active { background: #ffaa00; }
.agent-legend-dot.is-success { background: #00ff88; }

.agent-spawn-bar {
    padding: 8px;
    border: 1px solid rgba(0, 229, 255, 0.22);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.28);
}

.agent-spawn-bar input { background: rgba(0, 0, 0, 0.4) !important; }
.agent-spawn-bar button { background: linear-gradient(90deg, #0088ff, #00e5ff) !important; box-shadow: 0 0 15px rgba(0, 229, 255, 0.35); }

@media (max-width: 767px) {
    .dashboard-page .workspace-overview { gap: 12px; }
    .dashboard-page .holographic-agent-panel { padding: 12px !important; }
    .agent-canvas-legend { position: static; padding: 8px 8px 0; }
    .agent-holo-label { transform: translate(-50%, -50%) scale(0.88); }
}

.dashboard-page .metrics-row {
    gap: 14px !important;
}

.dashboard-page .metric-card {
    min-height: 104px;
    padding: 18px !important;
    border-radius: 10px !important;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.dashboard-page .metric-card > div:first-child span,
.dashboard-page .agent-command-panel h3,
.dashboard-page .workspace-overview button,
.dashboard-page .dashboard-sidebar h3 {
    color: #8ab4f8;
    letter-spacing: 0.08em;
}

.dashboard-page .metric-card > div:last-child {
    color: #ffffff !important;
    font: 600 1.35rem 'Orbitron', sans-serif;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.dashboard-page #dashboard-health { color: var(--dashboard-success) !important; }
.dashboard-page #dashboard-tokens { color: var(--dashboard-warning) !important; }

.dashboard-page .agent-command-panel {
    margin-top: 20px !important;
    border-radius: 12px;
}

.dashboard-page #agent-canvas-shell article {
    border-color: rgba(0, 229, 255, 0.22) !important;
    border-radius: 8px;
    background: rgba(0, 136, 255, 0.08) !important;
}

.dashboard-page #agent-canvas-shell article:hover {
    background: rgba(0, 136, 255, 0.14) !important;
    border-color: rgba(0, 229, 255, 0.55) !important;
}

.dashboard-page .chat-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    min-height: 420px;
}

.dashboard-page .chat-terminal {
    flex: 1 1 auto;
    margin-top: 0;
    padding: 24px !important;
    border: 1px solid rgba(0, 229, 255, 0.2) !important;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)) !important;
    box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.16);
}

.dashboard-page .msg-leo {
    max-width: min(80%, 760px);
    margin-bottom: 0;
    padding: 12px !important;
    border-left: 3px solid var(--dashboard-cyan);
    border-radius: 0 8px 8px 0;
    background: rgba(0, 136, 255, 0.1) !important;
    box-shadow: none;
    font-family: 'Rajdhani', sans-serif;
}

.dashboard-page .msg-user {
    max-width: min(80%, 760px);
    margin-bottom: 0;
    padding: 12px !important;
    border-right: 3px solid var(--dashboard-success);
    border-radius: 8px 0 0 8px;
    background: rgba(0, 229, 255, 0.06) !important;
    box-shadow: none;
}

.dashboard-page .chat-composer {
    padding: 16px 24px !important;
    background: linear-gradient(to top, var(--dashboard-bg) 65%, transparent) !important;
}

.dashboard-page .chat-composer > div {
    max-width: none;
    border-radius: 10px !important;
    padding: 8px !important;
    background: rgba(0, 0, 0, 0.6) !important;
    border-top: 1px solid rgba(0, 229, 255, 0.2) !important;
}

.dashboard-page .chat-composer button {
    border-radius: 8px !important;
}

.dashboard-page select,
.dashboard-page input[type="text"],
.dashboard-page input[type="password"] {
    border-radius: 6px !important;
    border-color: rgba(0, 229, 255, 0.3) !important;
    background: rgba(0, 0, 0, 0.4) !important;
    color: #ffffff !important;
    font-family: 'Rajdhani', sans-serif;
}

.dashboard-page .code-block,
.dashboard-page #user-input {
    font-family: 'Fira Code', monospace;
}

@media (max-width: 767px) {
    .leo-browser-bar {
        flex-wrap: wrap;
    }

    .leo-browser-bar input {
        order: 3;
        flex-basis: 100%;
        width: 100%;
    }

    .dashboard-page {
        display: block !important;
        height: auto !important;
        min-height: 100dvh;
        padding: 0;
        overflow-y: auto !important;
    }

    .dashboard-page .dashboard-sidebar {
        height: auto;
        max-height: none;
        border-radius: 0 0 12px 12px;
    }

    .dashboard-page .dashboard-workspace {
        gap: 12px;
        min-height: 0;
        overflow: visible;
    }

    .dashboard-page .workspace-nav,
    .dashboard-page .workspace-overview,
    .dashboard-page .chat-terminal {
        border-radius: 0;
    }

    .dashboard-page .workspace-overview { padding: 14px !important; }
    .dashboard-page .chat-terminal { min-height: 46dvh; height: min(58dvh, 540px); padding: 14px !important; }
    .dashboard-page .msg-leo,
    .dashboard-page .msg-user { max-width: 94%; }
    .dashboard-page .chat-composer { padding: 10px !important; }
    .dashboard-page .composer-shell {
        gap: 8px;
        padding: 8px;
        flex-wrap: nowrap;
        align-items: center;
    }
    .dashboard-page #attachment-btn,
    .dashboard-page #mic-btn,
    .dashboard-page .chat-composer button {
        width: clamp(2.5rem, 8vw, 3rem);
        height: clamp(2.5rem, 8vw, 3rem);
        flex: 0 0 auto;
    }
    .dashboard-page #user-input {
        min-width: 0;
        flex: 1 1 auto;
        width: auto;
    }
}

@media (max-width: 520px) {
    .dashboard-page .composer-shell {
        gap: 6px;
        padding: 6px;
    }

    .dashboard-page #attachment-btn,
    .dashboard-page #mic-btn,
    .dashboard-page .chat-composer button {
        width: 2.4rem;
        height: 2.4rem;
    }

    .dashboard-page #user-input {
        font-size: 11px;
    }
}

    /* Fluid Responsive Dashboard v3.1 */
    .dashboard-page {
        grid-template-columns: clamp(240px, 15vw, 300px) minmax(0, 1fr);
        gap: clamp(16px, 2vw, 24px);
        padding: clamp(16px, 2vw, 24px);
    }

    .dashboard-page .dashboard-sidebar {
        width: 100% !important;
        height: calc(100vh - (2 * clamp(16px, 2vw, 24px)));
        overflow: hidden;
        transition: transform 0.3s ease-in-out;
    }

    .dashboard-page .dashboard-workspace {
        gap: clamp(16px, 2vw, 24px);
        min-height: 0;
    }

    .dashboard-page .workspace-overview {
        flex: 0 1 auto;
        min-height: 0;
        max-height: 60vh;
        overflow-y: auto;
    }

    .dashboard-page .metrics-row {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 8px !important;
        width: 100%;
        max-height: 240px;
    }

    .dashboard-page .metric-card {
        min-width: 0;
        min-height: 66px;
        padding: 10px 8px !important;
    }

    @media (min-width: 1200px) {
        .dashboard-page .metrics-row {
            grid-template-columns: 1fr;
            max-height: 220px;
        }
    }

    @media (max-width: 820px) {
        .dashboard-page .metrics-row {
            grid-template-columns: 1fr;
            max-height: 210px;
        }

        .dashboard-page .metric-card {
            min-height: 62px;
        }
    }

    @media (max-width: 560px) {
        .dashboard-page .metrics-row {
            grid-template-columns: 1fr;
            gap: 7px !important;
            max-height: 180px;
        }

        .dashboard-page .metric-card {
            min-height: 58px;
            padding: 8px 6px !important;
        }
    }

    .dashboard-page .holographic-agent-panel {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        width: 100%;
        min-height: 400px;
        max-height: 60vh;
        resize: vertical;
        overflow: auto;
    }

    .dashboard-page .agent-canvas-shell {
        flex: 1 1 auto;
        min-height: 320px;
        height: clamp(320px, 42vh, 560px);
        max-height: calc(60vh - 110px);
    }

    .dashboard-page #agent-canvas {
        width: 100%;
        height: 100% !important;
        min-height: 0;
        object-fit: contain;
    }

    .dashboard-page .chat-terminal {
        flex: 1 1 auto;
        min-height: 0;
        width: 100%;
    }

    .dashboard-page .chat-composer {
        flex: 0 0 auto;
        width: 100%;
        margin-top: auto;
    }

    @media (min-width: 1600px) {
        .dashboard-page .workspace-overview { max-height: 56vh; }
        .dashboard-page .holographic-agent-panel { max-height: 64vh; }
        .dashboard-page .agent-canvas-shell { height: clamp(400px, 48vh, 680px); }
    }

    @media (max-width: 1599px) and (min-width: 1025px) {
        .dashboard-page .workspace-overview { max-height: 58vh; }
        .dashboard-page .holographic-agent-panel { min-height: 360px; }
    }

    @media (max-width: 1024px) and (min-width: 769px) {
        .dashboard-page {
            grid-template-columns: clamp(240px, 27vw, 280px) minmax(0, 1fr);
        }

        .dashboard-page .metrics-row {
            grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
        }

        .dashboard-page .holographic-agent-panel { min-height: 360px; }
        .dashboard-page .agent-canvas-shell { height: clamp(300px, 38vh, 440px); }
    }

    @media (max-width: 768px) {
        .dashboard-page {
            display: block !important;
            height: auto !important;
            min-height: 100dvh;
            padding: 0;
            overflow-y: auto !important;
        }

        .dashboard-page .dashboard-sidebar {
            position: fixed;
            inset: 0 auto 0 0;
            z-index: 40;
            width: 100% !important;
            max-width: min(86vw, 320px);
            height: 100dvh;
            max-height: none;
            overflow-y: auto;
            transform: translateX(-105%);
            border-radius: 0 12px 12px 0;
        }

        .dashboard-page .composer-shell {
            flex-wrap: wrap;
            align-items: center;
        }

        .dashboard-page #user-input {
            flex-basis: calc(100% - 124px);
            min-width: 0;
        }

        .dashboard-page.mobile-sidebar-open .dashboard-sidebar {
            transform: translateX(0);
            box-shadow: 12px 0 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 229, 255, 0.18);
        }

        .dashboard-page.mobile-sidebar-open::after {
            content: '';
            position: fixed;
            inset: 0;
            z-index: 30;
            background: rgba(0, 0, 0, 0.58);
            pointer-events: none;
        }

        .mobile-sidebar-backdrop {
            display: block;
            position: fixed;
            inset: 0;
            z-index: 35;
            width: 100%;
            height: 100%;
            border: 0;
            background: rgba(0, 0, 0, 0.62);
            cursor: pointer;
        }

        .dashboard-page:not(.mobile-sidebar-open) .mobile-sidebar-backdrop {
            display: none;
        }

        .dashboard-page .dashboard-workspace {
            display: flex !important;
            gap: 12px;
            min-height: 0;
            overflow: visible;
        }

        .mobile-sidebar-toggle { display: inline-block; }

        .dashboard-page .workspace-overview {
            max-height: none;
            overflow: visible;
            padding: 14px !important;
        }

        .dashboard-page .metrics-row {
            grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        }

        .dashboard-page .holographic-agent-panel {
            min-height: 340px;
            max-height: none;
            resize: none;
        }

        .dashboard-page .agent-canvas-shell {
            min-height: 280px;
            height: clamp(280px, 52vh, 430px);
            max-height: none;
        }

        .dashboard-page .chat-terminal {
            min-height: 42dvh;
            max-height: none;
            overflow: visible;
            padding: 14px !important;
        }

        .dashboard-page .chat-composer {
            position: sticky !important;
            bottom: 0;
            padding: 10px !important;
        }
    }

    @media (max-width: 480px) {
        .dashboard-page .metrics-row {
            grid-template-columns: 1fr;
        }

        .dashboard-page .chat-terminal {
            height: min(52dvh, 440px);
        }

        .dashboard-page .composer-shell {
            gap: 6px;
            padding: 7px;
        }

        .dashboard-page #user-input {
            flex-basis: 100%;
            order: 3;
        }

        .dashboard-page .holographic-agent-panel { min-height: 320px; }
        .dashboard-page .agent-canvas-shell { height: 280px; }
    }

    /* Screen-aware division sizing */
    .dashboard-page {
        --dashboard-viewport-height: 100dvh;
        --layout-sidebar-width: 280px;
        --layout-workspace-gap: 24px;
        --layout-agent-height: 42vh;
        min-height: var(--dashboard-viewport-height);
        height: var(--dashboard-viewport-height) !important;
    }

    .dashboard-page .dashboard-sidebar {
        height: calc(var(--dashboard-viewport-height) - (2 * clamp(16px, 2vw, 24px)));
    }

    @media (min-width: 901px) {
        .dashboard-page.sidebar-auto-size {
            grid-template-columns: minmax(240px, var(--auto-sidebar-width, 280px)) minmax(0, 1fr);
        }

        .dashboard-page.sidebar-auto-size .dashboard-sidebar {
            width: 100% !important;
            height: var(--auto-sidebar-height, fit-content);
            max-height: calc(var(--dashboard-viewport-height) - (2 * clamp(16px, 2vw, 24px)));
            align-self: start;
            overflow: hidden;
        }

        .dashboard-page.sidebar-auto-size #sidebar-widgets {
            min-height: 0;
            overflow-y: auto;
        }
    }

    .dashboard-page .dashboard-workspace {
        display: flex;
        flex-direction: column;
        min-height: 0;
        height: 100%;
    }

    .dashboard-page {
        grid-template-columns: minmax(240px, var(--layout-sidebar-width)) minmax(0, 1fr);
        gap: var(--layout-workspace-gap);
    }

    .dashboard-page .workspace-nav {
        flex: 0 0 clamp(52px, 7vh, 64px);
        height: auto !important;
    }

    .dashboard-page .workspace-overview {
        flex: 0 1 min(60vh, 680px);
        min-height: 0;
    }

    .dashboard-page .holographic-agent-panel {
        min-height: clamp(280px, 38vh, 520px);
        max-height: min(60vh, 680px);
    }

    .dashboard-page .agent-canvas-shell {
        min-height: clamp(240px, 30vh, 460px);
        height: clamp(280px, var(--layout-agent-height), 680px);
        max-height: calc(var(--dashboard-viewport-height) * 0.6);
    }

    .dashboard-page .chat-terminal {
        flex: 1 1 0;
        min-height: clamp(160px, 22vh, 360px);
    }

    @media (max-height: 760px) and (min-width: 769px) {
        .dashboard-page .workspace-overview {
            flex-basis: min(52vh, 470px);
        }

        .dashboard-page .holographic-agent-panel {
            min-height: 240px;
        }

        .dashboard-page .agent-canvas-shell {
            min-height: 210px;
            height: 30vh;
        }

        .dashboard-page .chat-terminal {
            min-height: 130px;
        }
    }

    @media (min-width: 1600px) and (min-height: 1000px) {
        .dashboard-page .workspace-overview {
            flex-basis: min(58vh, 760px);
        }

        .dashboard-page .agent-canvas-shell {
            height: min(48vh, 680px);
        }
    }

    @media (max-width: 768px) {
        .dashboard-page {
            height: auto !important;
            min-height: 100dvh;
        }

        .dashboard-page .dashboard-sidebar {
            height: 100dvh;
        }

        .dashboard-page .dashboard-workspace {
            height: auto;
        }

        .dashboard-page .workspace-overview {
            flex: none;
            max-height: none;
        }

        .dashboard-page .holographic-agent-panel {
            min-height: 320px;
            max-height: none;
        }

        .dashboard-page .agent-canvas-shell {
            height: clamp(260px, var(--layout-agent-height), 440px);
            max-height: none;
        }

        .dashboard-page .chat-terminal {
            min-height: 40dvh;
        }
    }

    /* Final responsive layout pass */
    .dashboard-page,
    .dashboard-page .dashboard-workspace,
    .dashboard-page .hud-shell {
        min-width: 0;
    }

    .dashboard-page .hud-shell {
        overflow: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: rgba(0, 229, 255, 0.35) transparent;
    }

    .dashboard-page .hud-column {
        min-width: 0;
    }

    .dashboard-page .workspace-nav {
        min-width: 0;
    }

    .dashboard-page .workspace-nav > div {
        min-width: 0;
    }

    .dashboard-page .workspace-nav h2 {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .dashboard-page .workspace-nav > div:last-child {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        min-width: 0;
    }

    .dashboard-page .metric-card,
    .dashboard-page .feed-item,
    .dashboard-page .console-line {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .mobile-sidebar-backdrop {
        display: none;
    }

    @media (max-width: 1280px) and (min-width: 901px) {
        .dashboard-page {
            --layout-sidebar-width: 248px;
            --layout-workspace-gap: 16px;
            padding: 16px;
        }

        .dashboard-page .hud-shell {
            grid-template-columns: minmax(220px, 0.8fr) minmax(300px, 1.2fr);
            gap: 14px;
            overflow-x: hidden;
        }

        .dashboard-page .hud-left {
            grid-column: 1 / -1;
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            align-items: start;
        }

        .dashboard-page .hud-left > .hud-panel:first-child {
            grid-column: span 2;
        }

        .dashboard-page .hud-center,
        .dashboard-page .hud-right {
            min-width: 0;
        }

        .dashboard-page .sat-map {
            height: 150px;
        }

        .dashboard-page .workspace-nav {
            padding-inline: 14px !important;
        }

        .dashboard-page .workspace-nav > div:last-child {
            gap: 6px;
        }
    }

    @media (max-width: 1200px) {
        .dashboard-page .hud-shell {
            grid-template-columns: minmax(220px, 260px) minmax(0, 1fr) minmax(260px, 320px);
        }
    }

    @media (max-width: 980px) {
        .dashboard-page .hud-shell {
            grid-template-columns: minmax(0, 1fr);
        }

        .dashboard-page .hud-column {
            width: 100%;
        }
    }

    @media (max-width: 900px) {
        [data-layout-panel="system-vitals"] .metrics-row {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .dashboard-page {
            display: block !important;
            height: auto !important;
            min-height: 100dvh;
            padding: 0;
            overflow-x: hidden !important;
            overflow-y: auto !important;
        }

        .dashboard-page .dashboard-sidebar {
            position: fixed;
            inset: 0 auto 0 0;
            z-index: 40;
            width: min(86vw, 340px) !important;
            height: 100dvh;
            max-height: none;
            overflow-y: auto;
            transform: translateX(-105%);
            border-radius: 0 14px 14px 0;
            transition: transform 220ms ease, box-shadow 220ms ease;
        }

        .dashboard-page.mobile-sidebar-open .dashboard-sidebar {
            transform: translateX(0);
            box-shadow: 12px 0 40px rgba(0, 0, 0, 0.55), 0 0 25px rgba(0, 229, 255, 0.18);
        }

        .dashboard-page.mobile-sidebar-open::after {
            content: '';
            position: fixed;
            inset: 0;
            z-index: 30;
            background: rgba(0, 0, 0, 0.62);
            cursor: pointer;
        }

        .dashboard-page .dashboard-workspace {
            display: flex !important;
            width: 100%;
            height: auto;
            min-height: 100dvh;
            gap: 12px;
            overflow: visible;
        }

        .dashboard-page .workspace-nav {
            position: sticky;
            top: 0;
            z-index: 20;
            flex: 0 0 auto;
            min-height: 56px;
            height: auto !important;
            padding: 8px 12px !important;
            border-radius: 0 0 12px 12px;
        }

        .dashboard-page .workspace-nav > div:last-child {
            gap: 4px;
        }

        .dashboard-page .workspace-nav > div:last-child > button,
        .dashboard-page .workspace-nav > div:last-child > div {
            min-height: 36px;
            padding: 7px 9px !important;
        }

        .mobile-sidebar-toggle {
            display: inline-grid;
            place-items: center;
            width: 38px;
            height: 38px;
            margin-right: 8px;
        }

        .dashboard-page .hud-shell {
            display: grid;
            grid-template-columns: minmax(0, 1fr);
            gap: 12px;
            width: 100%;
            overflow: visible;
            padding-bottom: 12px;
        }

        .dashboard-page .hud-panel {
            display: flex;
            flex-direction: column;
            min-height: 180px;
            max-height: 42vh;
            padding: 12px 10px;
            overflow-y: auto;
            overflow-x: hidden;
        }

        .dashboard-page .panel-header {
            position: sticky;
            top: 0;
            z-index: 2;
            margin-bottom: 10px;
            padding-bottom: 8px;
            gap: 6px;
            background: rgba(9, 14, 20, 0.7);
            backdrop-filter: blur(4px);
        }

        .dashboard-page .eyebrow,
        .dashboard-page .status-pill {
            font-size: 8px !important;
            letter-spacing: 0.12em;
        }

        .dashboard-page .hud-column {
            display: flex;
            gap: 12px;
        }

        .dashboard-page .workspace-overview,
        .dashboard-page .holographic-agent-panel {
            max-height: none;
        }

        .dashboard-page .ai-core-panel {
            min-height: 220px;
            padding: 14px 12px;
        }

        .dashboard-page .ai-core-wrap {
            min-height: 150px;
        }

        .dashboard-page .ai-core-sphere {
            width: min(46vw, 170px);
            height: min(46vw, 170px);
        }

        .dashboard-page .leo-launch-btn {
            max-width: 100%;
            font-size: 10px;
            letter-spacing: 0.14em;
            padding: 11px 12px;
        }

        .dashboard-page .metrics-row {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px !important;
        }

        .dashboard-page .metric-card {
            min-height: 84px;
            padding: 12px !important;
        }

        .dashboard-page .metric-card > div:last-child {
            font-size: 1.05rem;
            overflow-wrap: anywhere;
        }

        .dashboard-page .holographic-agent-panel {
            min-height: 0;
        }

        .dashboard-page .agent-canvas-shell {
            height: clamp(260px, 48vw, 380px);
            min-height: 260px;
        }

        .dashboard-page .chat-terminal {
            min-height: 44dvh;
            max-height: none;
            overflow-y: auto;
            padding: 14px !important;
        }

        .dashboard-page .chat-composer {
            position: relative !important;
            padding: 8px !important;
        }

        .dashboard-page .composer-shell {
            gap: 6px;
            min-height: 58px;
            padding: 6px;
        }

        .dashboard-page .composer-shell button {
            width: 44px;
            height: 44px;
        }

        .dashboard-page #user-input {
            min-width: 80px;
            padding-inline: 6px;
            font-size: 11px;
        }
    }

    @media (max-width: 480px) {
        .dashboard-page .hud-panel {
            min-height: 160px;
            max-height: 38vh;
        }

        .dashboard-page .metrics-row {
            grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
            gap: 8px;
            max-height: 190px;
        }

        [data-layout-panel="system-vitals"] .panel-header {
            margin-bottom: 10px;
            padding-bottom: 8px;
            gap: 6px;
        }

        [data-layout-panel="system-vitals"] .panel-header .eyebrow {
            font-size: 8px;
            letter-spacing: 0.12em;
        }

        [data-layout-panel="system-vitals"] .metrics-row {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 8px;
        }

        [data-layout-panel="system-vitals"] .metric-card {
            min-height: 68px;
            padding: 9px 6px !important;
            border-radius: 10px;
        }

        [data-layout-panel="system-vitals"] .metric-card .flex.items-center.justify-between {
            margin-bottom: 6px;
            gap: 4px;
        }

        [data-layout-panel="system-vitals"] .metric-card span,
        [data-layout-panel="system-vitals"] .metric-card .text-[10px] {
            font-size: 8px !important;
            line-height: 1.2;
        }

        [data-layout-panel="system-vitals"] .metric-card .text-lg,
        [data-layout-panel="system-vitals"] .metric-card .text-lg.font-bold {
            font-size: 0.85rem !important;
            line-height: 1.2;
        }

        [data-layout-panel="system-vitals"] .vitals-graph {
            height: 72px;
            min-height: 72px;
            margin-top: 10px;
            padding: 8px 6px 4px;
        }

        .dashboard-page .ai-core-panel {
            min-height: 180px;
            padding: 12px 10px;
        }

        .dashboard-page .ai-core-wrap {
            min-height: 120px;
        }

        .dashboard-page .ai-core-sphere {
            width: min(64vw, 130px);
            height: min(64vw, 130px);
        }

        .dashboard-page .leo-launch-btn {
            width: 100%;
            max-width: 100%;
            font-size: 8.5px;
            letter-spacing: 0.1em;
            padding: 10px 8px;
        }

        .dashboard-page .agent-canvas-shell {
            min-height: 220px;
        }

        .dashboard-page .workspace-nav h2 {
            font-size: 0.72rem;
        }

        .dashboard-page .workspace-nav h2 > i {
            margin-right: 6px !important;
        }

        .dashboard-page .workspace-nav > div:last-child > button:not(:last-child) {
            font-size: 0;
            width: 36px;
            padding-inline: 0 !important;
        }

        .dashboard-page .workspace-nav > div:last-child > button:not(:last-child) i {
            margin-right: 0 !important;
            font-size: 0.75rem;
        }

        .dashboard-page .workspace-nav > div:last-child > div {
            padding-inline: 8px !important;
        }

        .dashboard-page .metrics-row {
            grid-template-columns: 1fr;
        }

        .dashboard-page .panel-header {
            align-items: flex-start;
            flex-wrap: wrap;
        }

        .dashboard-page .agent-spawn-bar {
            grid-template-columns: 1fr !important;
        }

        .dashboard-page .agent-canvas-shell {
            height: 280px;
        }

        .dashboard-page .msg-leo,
        .dashboard-page .msg-user {
            max-width: 96%;
            font-size: 0.92rem;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .dashboard-page .dashboard-sidebar,
        .dashboard-page .ai-core-sphere,
        .dashboard-page * {
            animation-duration: 0.001ms !important;
            transition-duration: 0.001ms !important;
        }
    }

    .layout-settings-modal {
        box-shadow: 0 0 30px rgba(0, 229, 255, 0.18), 0 24px 80px rgba(0, 0, 0, 0.5);
    }

    .layout-setting-list {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .layout-setting-row {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 8px 14px;
        color: #8ab4f8;
        font: 600 0.8rem 'Rajdhani', sans-serif;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .layout-setting-row output {
        color: var(--dashboard-cyan);
        font-family: 'Fira Code', monospace;
    }

    .layout-setting-row input {
        grid-column: 1 / -1;
        width: 100%;
        accent-color: var(--dashboard-cyan);
        cursor: ew-resize;
    }

    @media (min-width: 1281px) {
        .dashboard-page.content-auto-layout .hud-shell {
            grid-template-columns: minmax(250px, fit-content(380px)) minmax(0, 1fr) minmax(280px, fit-content(420px));
            grid-auto-rows: max-content;
            align-items: start;
        }

        .dashboard-page.content-auto-layout .hud-column {
            align-self: start;
        }
    }

    @media (min-width: 981px) and (max-width: 1280px) {
        .dashboard-page.content-auto-layout .hud-shell {
            grid-template-columns: minmax(220px, fit-content(360px)) minmax(300px, 1fr);
            grid-auto-rows: max-content;
            align-items: start;
        }

        .dashboard-page.content-auto-layout .hud-left {
            grid-template-columns: repeat(3, minmax(0, max-content));
            justify-content: start;
        }
    }