@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    color-scheme: light;
    --bg: #f4f7fb;
    --panel: #ffffff;
    --panel-raised: #f8fafc;
    --line: #e2e8f0;
    --muted: #64748b;
    --text: #1e293b;
    --teal: #138a68;
    --blue: #3974c6;
    --amber: #b7791f;
    --red: #c24141;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #090d14;
    --panel: #111722;
    --panel-raised: #151e2b;
    --line: #222d3d;
    --muted: #8491a5;
    --text: #e6edf7;
    --teal: #65dfb2;
    --blue: #7daeff;
    --amber: #f4bd70;
    --red: #fa8585;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'DM Sans', Inter, ui-sans-serif, system-ui, sans-serif; font-size: 14px; }
button, a { font: inherit; }
button { color: inherit; }
svg { width: 18px; height: 18px; stroke-width: 1.8; }

.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 252px; flex: 0 0 252px; min-height: 100vh; position: fixed; z-index: 30; inset: 0 auto 0 0; display: flex; flex-direction: column; padding: 22px 14px 14px; background: #0d121b; border-right: 1px solid #1b2533; transition: width .2s ease, transform .2s ease; }
.sidebar-collapsed { width: 76px; flex-basis: 76px; align-items: center; }
.main-shell { min-width: 0; width: calc(100% - 252px); margin-left: 252px; transition: width .2s ease, margin-left .2s ease; }
.sidebar-collapsed ~ .main-shell { width: calc(100% - 76px); margin-left: 76px; }
.brand-row { width: 100%; min-height: 48px; display: flex; align-items: center; gap: 11px; padding: 0 8px 22px; border-bottom: 1px solid #1b2533; }
.brand-home { min-width: 0; flex: 1; display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; border-radius: 9px; }
.brand-home:hover .brand-mark { transform: translateY(-2px); box-shadow: 0 8px 24px #3ad39c35; }
.brand-home .brand-mark { transition: transform .2s ease, box-shadow .2s ease; }
.brand-mark { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; color: #07130f; background: linear-gradient(145deg, #87ecc5, #42cfa0); border-radius: 11px; box-shadow: 0 6px 20px #3ad39c20; overflow: hidden; }
.brand-mark svg { width: 21px; height: 21px; stroke-width: 2.3; }
.brand-mark img { width: 36px; height: 36px; object-fit: contain; }
.brand-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.brand-copy strong { font: 600 15px 'Space Grotesk', sans-serif; letter-spacing: -.2px; }
.brand-copy span { color: var(--muted); font-size: 11px; }
.sidebar-collapsed .brand-row { justify-content: center; padding-inline: 0; }
.sidebar-collapsed .brand-home { flex: 0 0 auto; justify-content: center; }
.nav-caption { margin: 25px 9px 10px; color: #5f6b7c; font-size: 10px; font-weight: 700; letter-spacing: 1.4px; }
.sidebar-collapsed .nav-caption { font-size: 0; height: 1px; width: 35px; margin: 22px 0 12px; background: #283345; }
.side-nav { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.nav-item { min-height: 42px; display: flex; align-items: center; gap: 12px; padding: 0 11px; border-radius: 9px; color: #9aa7ba; text-decoration: none; transition: color .16s ease, background .16s ease; white-space: nowrap; }
.nav-item > svg:first-child { width: 18px; height: 18px; flex: 0 0 18px; color: #758399; }
.nav-item span { overflow: hidden; text-overflow: ellipsis; }
.nav-item:hover { color: #e8f4f1; background: #161f2c; }
.nav-item:hover > svg:first-child, .nav-item.active > svg:first-child { color: var(--teal); }
.nav-item:hover > svg:first-child { animation: icon-bob 420ms ease; }
.nav-item.active { color: #dff9ee; background: #153126; box-shadow: inset 2px 0 #5be0ae; }
.sidebar-collapsed .nav-item { width: 46px; justify-content: center; padding: 0; }
.sidebar-collapsed .nav-item span { display: none; }
.nav-subitems { margin: 1px 0 6px 41px; padding-left: 13px; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid #263243; }
.nav-subitems a { padding: 6px 0; color: #77859a; font-size: 12px; text-decoration: none; }
.nav-subitems a:hover { color: var(--teal); }
.sidebar-spacer { flex: 1; }
.online-dot { display: inline-block; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 11px #65dfb266; }
.collapse-button { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 38px; margin-top: 3px; padding: 0 10px; color: #78869a; background: transparent; border: 0; border-radius: 8px; text-align: left; cursor: pointer; }
.collapse-button:hover { color: #dce6f2; background: #151e2b; }
.collapse-button svg { width: 17px; height: 17px; }
.sidebar-collapsed .collapse-button { justify-content: center; padding: 0; }
.sidebar-collapsed .collapse-button span { display: none; }

.topbar { height: 68px; display: flex; justify-content: space-between; align-items: center; padding: 0 34px; background: #0c1119; border-bottom: 1px solid #1b2533; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 14px; }
.theme-switcher { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; color: #526176; background: #fff; border: 1px solid #d9e1eb; border-radius: 50%; cursor: pointer; box-shadow: 0 3px 9px #243b530d; transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease; }
.theme-switcher:hover { color: #147454; background: #e8f7ef; border-color: #bfe7d3; box-shadow: 0 5px 18px #138a6820; transform: rotate(-8deg) scale(1.06); }
.theme-switcher svg { width: 17px; height: 17px; }
.profile-menu { position: relative; display: flex; align-items: center; }
.profile-menu::after { content: ""; position: absolute; z-index: 50; top: 100%; right: 0; width: 100%; height: 18px; }
.profile-trigger { display: inline-flex; align-items: center; gap: 3px; padding: 0; color: #718096; background: transparent; border: 0; border-radius: 20px; cursor: pointer; }
.profile-trigger > svg { width: 13px; height: 13px; transition: transform .18s ease; }
.profile-menu:hover .profile-trigger > svg,
.profile-menu:focus-within .profile-trigger > svg { transform: rotate(180deg); }
.profile-menu:focus-within { outline: 2px solid #84d7b5; outline-offset: 4px; border-radius: 20px; }
.profile-dropdown { position: absolute; z-index: 60; top: calc(100% + 16px); right: 0; width: 250px; padding: 8px; color: #26364d; background: #fff; border: 1px solid #e0e7ef; border-radius: 13px; box-shadow: 0 18px 50px #17243a26; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-5px) scale(.98); transform-origin: top right; transition: opacity .15s ease, transform .15s ease, visibility .15s ease; }
.profile-menu:hover .profile-dropdown,
.profile-menu:focus-within .profile-dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0) scale(1); }
.dropdown-heading { display: flex; flex-direction: column; gap: 4px; padding: 10px 11px 12px; }
.dropdown-heading span { color: #8794a6; font: 700 9px 'Space Grotesk', sans-serif; letter-spacing: 1.1px; }
.dropdown-heading strong { color: #26364d; font: 600 13px 'Space Grotesk', sans-serif; }
.dropdown-item { min-height: 38px; display: flex; align-items: center; gap: 10px; padding: 0 10px; color: #536176; border-radius: 8px; font-size: 11px; text-decoration: none; transition: color .15s ease, background .15s ease; }
.dropdown-item > svg:first-child { width: 16px; height: 16px; color: #74839a; transition: transform .15s ease, color .15s ease; }
.dropdown-item:hover { color: #126b51; background: #eef8f3; }
.dropdown-item:hover > svg:first-child { color: #138a68; transform: translateX(2px); }
.dropdown-divider { height: 1px; margin: 5px 6px; background: #e8edf3; }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: #748196; font-size: 12px; }
.breadcrumb svg { width: 14px; height: 14px; color: #59677b; }
.breadcrumb strong { color: #d9e1ed; font-weight: 600; }
.breadcrumb-home { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.breadcrumb-home:hover { color: var(--text); }
.breadcrumb-home img { width: 23px; height: 23px; object-fit: contain; }
.avatar-mark { width: 34px; height: 34px; display: grid; place-items: center; color: #c6d2e2; background: linear-gradient(145deg, #1e3444, #202c3d); border: 1px solid #36516a; border-radius: 50%; box-shadow: 0 4px 14px #0c192640; transition: color .18s ease, border-color .18s ease, transform .18s ease; }
.avatar-mark svg { width: 17px; height: 17px; }
.profile-trigger:hover .avatar-mark { color: #80e1bd; border-color: #4a997a; transform: translateY(-1px); }
.main-content { max-width: 1600px; min-height: calc(100vh - 68px); margin: 0 auto; padding: 35px 36px 20px; display: flex; flex-direction: column; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 25px; }
.page-heading h1 { margin: 9px 0 7px; color: #f0f4fa; font: 600 29px 'Space Grotesk', sans-serif; letter-spacing: -.8px; }
.page-heading h1:focus { outline: 0; }
.page-heading p { margin: 0; color: #8c9aaf; font-size: 13px; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: #77869b; font: 700 10px 'Space Grotesk', sans-serif; letter-spacing: 1.25px; }
.eyebrow .online-dot { width: 6px; height: 6px; flex-basis: 6px; }
.heading-actions { display: flex; align-items: center; gap: 14px; }
.updated-label { color: #718096; font-size: 11px; white-space: nowrap; }
.button { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 12px; border-radius: 8px; cursor: pointer; text-decoration: none; transition: background .16s ease, border-color .16s ease, color .16s ease; }
.button svg { width: 15px; height: 15px; }
.button-quiet { color: #a7b3c3; background: #121a25; border: 1px solid #283546; }
.button-quiet:hover:not(:disabled) { color: #eff8f5; background: #1a2634; border-color: #43556d; }
.button:disabled { opacity: .55; cursor: wait; }
.button-primary { color: #082016; background: var(--teal); border: 1px solid var(--teal); font-weight: 700; }
.metric-grid { display: grid; gap: 14px; margin-bottom: 14px; }
.four-up { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.metric-card, .content-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.metric-card { min-height: 133px; box-shadow: 0 7px 22px #00000012; }
.metric-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.metric-label { color: #95a2b5; font-size: 12px; }
.metric-value { margin-top: 12px; color: #f1f5fb; font: 600 26px 'Space Grotesk', sans-serif; letter-spacing: -.5px; }
.metric-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 1px solid transparent; }
.metric-icon svg { width: 17px; height: 17px; }
.metric-icon > svg { transition: transform .22s ease, filter .22s ease; }
.metric-icon:hover > svg { transform: translateY(-3px) scale(1.12); filter: drop-shadow(0 3px 5px currentColor); }
.metric-icon .metric-device-icon { width: 25px; height: 25px; overflow: visible; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.cpu-signal { stroke-dasharray: 20; stroke-dashoffset: 20; animation: cpu-signal 2s ease-in-out infinite; }
.memory-bars { stroke-dasharray: 13; animation: memory-pulse 1.6s ease-in-out infinite alternate; }
.tone-green { color: #6ee2b7; background: #143026; border-color: #234d3c; }
.tone-teal { color: #62d8cf; background: #12302f; border-color: #20504f; }
.tone-blue { color: #86b3ff; background: #172a43; border-color: #29466c; }
.tone-violet { color: #baa4ff; background: #28213e; border-color: #453764; }
.tone-amber { color: #f4bd70; background: #342719; border-color: #57432a; }
.metric-detail { margin-top: 11px; color: #718096; font-size: 10px; line-height: 1.4; }
.compact-grid { margin-top: 0; }
.charts-grid { margin-top: 8px; }
.chart-card { position: relative; display: flex; flex-direction: column; min-height: 350px; padding: 18px; border-radius: 13px; }
.cluster-metric { position: relative; overflow: hidden; scroll-margin-top: 90px; }
.cluster-metric::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, var(--panel) 0%, color-mix(in srgb, var(--panel) 84%, transparent) 56%, color-mix(in srgb, var(--panel) 20%, transparent) 100%) center / cover no-repeat, url('/images/cluster-hero.png?v=cluster-only') right center / auto 100% no-repeat; opacity: .34; pointer-events: none; }
.cluster-metric .metric-top, .cluster-metric .metric-detail { position: relative; z-index: 1; }
.dashboard-page { position: relative; z-index: 0; isolation: isolate; width: 100%; }
.dashboard-page::before { content: ""; position: absolute; z-index: -1; inset: -35px -36px -20px; background: url('/images/dashboard-grid.svg') center top / 570px auto repeat; opacity: .15; pointer-events: none; }
.dashboard-page .page-heading { position: relative; scroll-margin-top: 90px; }
.dashboard-page .page-heading > * { position: relative; z-index: 1; }
.dashboard-page .page-heading::after { content: ""; position: absolute; z-index: 0; top: -30px; right: 0; width: min(72%, 820px); height: 175px; background: url('/images/technology-dots.svg') right center / contain no-repeat; filter: invert(1); opacity: .1; pointer-events: none; }
.cluster-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .9fr); align-items: center; gap: 20px; min-height: 244px; margin: 0 0 15px; padding: 20px 27px; overflow: hidden; isolation: isolate; background: radial-gradient(ellipse at 78% 48%, color-mix(in srgb, var(--blue) 14%, transparent), transparent 40%), linear-gradient(115deg, var(--panel), var(--panel-raised)); border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 9px 30px #1c35500b; }
.cluster-hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background-image: linear-gradient(color-mix(in srgb, var(--blue) 5%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--blue) 5%, transparent) 1px, transparent 1px); background-size: 30px 30px; mask-image: linear-gradient(90deg, transparent 18%, #000 100%); opacity: .55; pointer-events: none; }
.cluster-hero-copy { position: relative; z-index: 2; max-width: 500px; }
.cluster-hero-eyebrow { display: flex; align-items: center; gap: 8px; color: var(--muted); font: 700 9px 'Space Grotesk', sans-serif; letter-spacing: 1.15px; }
.cluster-hero-eyebrow .online-dot { width: 6px; height: 6px; flex-basis: 6px; }
.cluster-hero h2 { margin: 12px 0 8px; color: var(--text); font: 600 clamp(25px, 3vw, 36px) 'Space Grotesk', sans-serif; letter-spacing: -1.2px; }
.cluster-hero-copy > p { max-width: 410px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.cluster-hero-caption { display: inline-flex; align-items: center; gap: 7px; margin-top: 17px; color: var(--blue); font-size: 10px; font-weight: 600; }
.cluster-hero-caption svg { width: 14px; height: 14px; }
.cluster-hero-art { position: relative; min-width: 0; min-height: 200px; display: grid; place-items: center; isolation: isolate; }
.cluster-hero-art > img { position: relative; z-index: 1; display: block; width: min(100%, 450px); height: auto; filter: drop-shadow(0 11px 24px color-mix(in srgb, var(--blue) 17%, transparent)); animation: cluster-float 6s ease-in-out infinite; }
.cluster-orbit { position: absolute; z-index: 0; top: 27%; left: 33%; width: 38%; height: 47%; border: 1px solid color-mix(in srgb, var(--blue) 34%, transparent); border-radius: 50%; animation: cluster-orbit 16s linear infinite; }
.cluster-orbit::after { content: ""; position: absolute; top: 50%; left: -4px; width: 8px; height: 8px; border-radius: 50%; background: #ed3442; box-shadow: 0 0 12px #ed344288; }
.cluster-signal { position: absolute; z-index: 2; width: 9px; height: 9px; border: 2px solid #fff; border-radius: 50%; background: #1684ff; box-shadow: 0 0 0 0 color-mix(in srgb, var(--blue) 42%, transparent); animation: cluster-signal 2.4s ease-out infinite; }
.cluster-signal-cloud { top: 21%; left: 21%; }
.cluster-signal-globe { top: 20%; right: 20%; animation-delay: .55s; }
.cluster-signal-cpu { bottom: 20%; left: 22%; animation-delay: 1.1s; }
.cluster-signal-server { right: 20%; bottom: 19%; animation-delay: 1.65s; }
@keyframes cluster-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes cluster-orbit { to { transform: rotate(360deg); } }
@keyframes cluster-signal { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--blue) 42%, transparent); } 75%, 100% { box-shadow: 0 0 0 13px transparent; } }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-heading h2 { margin: 0; color: #e5ebf4; font: 600 14px 'Space Grotesk', sans-serif; }
.card-heading h2 { display: flex; align-items: center; gap: 8px; }
.card-heading h2 svg { width: 16px; height: 16px; color: #58c99f; }
.card-heading p { margin: 6px 0 0; color: #748197; font-size: 10px; }
.chart-live { display: inline-flex; align-items: center; gap: 7px; padding: 5px 7px; color: #81daba; background: #12271f; border: 1px solid #214538; border-radius: 6px; font: 700 9px 'Space Grotesk', sans-serif; letter-spacing: .6px; }
.chart-live .online-dot { width: 5px; height: 5px; flex-basis: 5px; }
.chart-plot-wrap { position: relative; display: flex; flex: 1 1 0%; flex-direction: column; width: 100%; height: 0; min-width: 0; min-height: 260px; margin-top: 15px; }
.chart-surface { display: block; flex: 1 1 0%; width: 100%; height: 100%; min-height: 0; }
.chart-surface .highcharts-root { width: 100% !important; height: 100% !important; max-width: none; }
.chart-screen-backdrop { position: fixed; inset: 0; z-index: 1990; display: block; width: 100vw; height: 100vh; padding: 0; background: #08111dcc; border: 0; backdrop-filter: blur(5px); cursor: default; }
.chart-card-expanded { position: fixed !important; z-index: 2000 !important; inset: 5vh 5vw; display: flex; flex-direction: column; width: 90vw; height: 90vh; min-height: 0; padding: clamp(20px, 3vw, 38px); overflow: hidden; box-shadow: 0 24px 90px #06101dcc; }
.chart-card-expanded .chart-plot-wrap { flex: 1 1 0%; height: 0; min-height: 0; margin-top: 20px; }
.chart-card-expanded .chart-surface { min-height: 0; }
.chart-card-expanded .card-heading h2 { font-size: clamp(18px, 2vw, 26px); }
.chart-card-expanded .card-heading p { font-size: 13px; }
.chart-card-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex: 0 0 auto; }
.chart-title-copy { min-width: 0; }
.chart-samples { display: inline-flex; align-items: baseline; gap: 4px; color: var(--muted); font: 600 9px 'Space Grotesk', sans-serif; white-space: nowrap; }
.chart-samples small { color: var(--muted); font: 500 9px 'DM Sans', sans-serif; }
.chart-range-menu { position: relative; }
.chart-range-trigger { min-height: 34px; display: inline-flex; align-items: center; gap: 8px; padding: 0 10px; color: #536176; background: #fff; border: 1px solid #e0e7ef; border-radius: 8px; cursor: pointer; font: 600 10px 'Space Grotesk', sans-serif; transition: border-color .15s ease, box-shadow .15s ease, color .15s ease; }
.chart-range-trigger:hover, .chart-range-trigger[aria-expanded="true"] { color: #126b51; border-color: #9bd9be; box-shadow: 0 4px 13px #138a6818; }
.chart-range-trigger svg { width: 13px; height: 13px; color: #74839a; transition: transform .16s ease; }
.chart-range-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.chart-range-options { position: absolute; z-index: 2020; top: calc(100% + 7px); right: 0; width: 160px; padding: 6px; color: #536176; background: #fff; border: 1px solid #e0e7ef; border-radius: 11px; box-shadow: 0 16px 42px #17243a26; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-5px) scale(.98); transform-origin: top right; transition: opacity .15s ease, transform .15s ease, visibility .15s ease; }
.chart-range-options.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0) scale(1); }
.chart-range-option { width: 100%; min-height: 34px; display: flex; align-items: center; justify-content: space-between; padding: 0 9px; color: #536176; background: transparent; border: 0; border-radius: 7px; cursor: pointer; text-align: left; font: 550 10px 'Space Grotesk', sans-serif; transition: background .15s ease, color .15s ease; }
.chart-range-option:hover, .chart-range-option.selected { color: #126b51; background: #eef8f3; }
.chart-range-option svg { width: 13px; height: 13px; color: #138a68; }
.chart-expand-button { width: 34px; height: 34px; display: grid; place-items: center; color: #536176; background: #fff; border: 1px solid #e0e7ef; border-radius: 8px; cursor: pointer; transition: color .15s ease, background .15s ease, border-color .15s ease, transform .15s ease; }
.chart-expand-button:hover { color: #126b51; background: #eef8f3; border-color: #9bd9be; transform: translateY(-1px); }
.chart-expand-button svg { display: block; width: 16px; height: 16px; }
.resource-history-controls { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.history-range-trigger { min-width: 176px; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 7px 12px; color: #536176; background: #fff; border: 1px solid #e0e7ef; border-radius: 11px; cursor: pointer; text-align: left; box-shadow: 0 3px 12px #17243a0c; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.history-range-trigger:hover, .history-range-trigger[aria-expanded="true"] { border-color: #9bd9be; box-shadow: 0 5px 18px #138a6818; transform: translateY(-1px); }
.history-range-trigger span { display: flex; flex-direction: column; gap: 3px; }
.history-range-trigger small { color: #8794a6; font: 700 8px 'Space Grotesk', sans-serif; letter-spacing: 1px; }
.history-range-trigger strong { color: #26364d; font: 600 12px 'Space Grotesk', sans-serif; }
.history-range-trigger > svg { width: 15px; height: 15px; color: #74839a; transition: transform .16s ease; }
.history-range-trigger[aria-expanded="true"] > svg { transform: rotate(180deg); }
.resource-footnote code { padding: 1px 5px; color: #607086; background: #eef2f7; border-radius: 4px; font-size: 10px; }
.chart-empty { position: absolute; z-index: 1; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); background: color-mix(in srgb, var(--panel) 72%, transparent); border: 1px dashed var(--line); border-radius: 9px; font-size: 11px; pointer-events: none; }
.chart-empty svg { width: 16px; height: 16px; color: var(--blue); }
.section-title-row { display: flex; justify-content: space-between; align-items: flex-end; margin: 20px 0 5px; }
.section-title-row h2 { margin: 6px 0 0; color: #e5ebf4; font: 600 17px 'Space Grotesk', sans-serif; }
.text-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 2px; color: #79d9b4; font-size: 11px; text-decoration: none; }
.text-link:hover { color: #bbf7df; }
.text-link svg { width: 13px; height: 13px; }
.notice { display: flex; align-items: flex-start; gap: 9px; padding: 12px 14px; border-radius: 9px; font-size: 11px; line-height: 1.55; }
.notice > svg { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 1px; }
.notice-neutral { margin-top: 3px; color: #98a6ba; background: #111a26; border: 1px solid #243246; }
.notice-neutral > svg { color: #7daeff; }
.notice-warning { color: #edc78d; background: #251e14; border: 1px solid #584328; }
.notice-warning > svg { color: var(--amber); }
.page-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 30px; color: #5f6d80; font-size: 10px; }
.resource-charts { margin-top: 5px; }
.task-manager-heading { align-items: center; }
.task-manager-updated { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.task-manager-updated .online-dot { width: 6px; height: 6px; flex-basis: 6px; }
.task-tabs { display: flex; align-items: center; gap: 5px; width: 100%; margin: -6px 0 17px; padding: 4px; overflow-x: auto; background: var(--panel-raised); border: 1px solid var(--line); border-radius: 11px; }
.task-tab { min-height: 37px; display: inline-flex; align-items: center; gap: 8px; padding: 0 13px; color: var(--muted); background: transparent; border: 0; border-radius: 8px; cursor: pointer; font-size: 11px; font-weight: 600; white-space: nowrap; transition: color .15s ease, background .15s ease, box-shadow .15s ease; }
.task-tab > svg { width: 15px; height: 15px; }
.task-tab:hover { color: var(--text); background: color-mix(in srgb, var(--panel) 70%, transparent); }
.task-tab.active { color: var(--text); background: var(--panel); box-shadow: 0 2px 7px #0b172012; }
.task-tab.active > svg { color: var(--teal); }
.task-tab-count { min-width: 19px; padding: 2px 5px; color: var(--muted); background: var(--panel-raised); border-radius: 10px; font-size: 9px; text-align: center; }
.task-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 13px; }
.task-metric-card { min-width: 0; padding: 16px 17px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 11px; box-shadow: 0 6px 19px #0000000a; }
.task-metric-top { min-height: 30px; display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.task-metric-top > span { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.task-metric-top > span svg { width: 15px; height: 15px; color: var(--teal); }
.task-metric-top > strong { color: var(--text); font: 600 clamp(17px, 1.7vw, 23px) 'Space Grotesk', sans-serif; white-space: nowrap; }
.task-metric-top > strong small { color: var(--muted); font: 500 10px 'DM Sans', sans-serif; }
.task-meter { height: 7px; overflow: hidden; background: color-mix(in srgb, var(--muted) 15%, var(--panel)); border-radius: 10px; }
.task-meter > span { display: block; width: 0; height: 100%; background: var(--teal); border-radius: inherit; transition: width .35s ease; }
.task-meter-cpu > span { background: #e79348; }
.task-meter-memory > span { background: #cb7095; }
.task-meter-swap > span { background: #8b78d2; }
.task-metric-card > .task-meter { margin-top: 10px; }
.task-metric-detail { min-height: 16px; margin-top: 8px; color: var(--muted); font-size: 9px; }
.task-process-summary { display: flex; flex-wrap: wrap; gap: 7px 13px; min-height: 23px; margin-top: 8px; color: var(--muted); font-size: 9px; }
.task-process-summary > span { display: inline-flex; align-items: center; gap: 5px; }
.task-process-summary b { color: var(--text); font-weight: 600; }
.task-group-node, .task-group-crm, .task-group-other { display: inline-block; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #218ad8; }
.task-group-crm { background: #845fe2; }
.task-group-other { background: #9aa7ba; }
.task-performance-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr); gap: 12px; margin-bottom: 13px; }
.task-core-card, .task-memory-card, .task-process-card { min-width: 0; padding: 17px 18px; }
.task-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.task-section-heading h2 { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--text); font: 600 13px 'Space Grotesk', sans-serif; }
.task-section-heading h2 svg { width: 15px; height: 15px; color: var(--teal); }
.task-section-heading p { margin: 5px 0 0; color: var(--muted); font-size: 9px; }
.task-inline-value { color: var(--muted); font-size: 9px; white-space: nowrap; }
.task-core-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: 15px 18px; margin-top: 20px; }
.task-core-meter > div:first-child { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 7px; color: var(--muted); font-size: 10px; }
.task-core-meter strong { color: var(--text); font-size: 10px; font-weight: 600; }
.task-core-meter .task-meter { height: 6px; }
.task-memory-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; margin: 10px 0 0; }
.task-memory-list > div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.task-memory-list dt { color: var(--muted); font-size: 9px; }
.task-memory-list dd { margin: 0; color: var(--text); font-size: 10px; font-weight: 600; text-align: right; white-space: nowrap; }
.task-charts { margin-top: 1px; }
.task-charts .chart-card:not(.chart-card-expanded) { height: 460px; min-height: 460px; padding: 19px 20px 17px; background: linear-gradient(145deg, var(--panel), color-mix(in srgb, var(--panel-raised) 42%, var(--panel))); border-radius: 14px; box-shadow: 0 10px 28px #17243a0c; }
.task-charts .card-heading { align-items: center; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.task-charts .card-heading h2 { color: var(--text); font-size: 14px; }
.task-charts .card-heading h2 svg { width: 17px; height: 17px; color: var(--teal); }
.task-charts .card-heading p { color: var(--muted); font-size: 10px; line-height: 1.45; }
.task-charts .chart-plot-wrap { flex: 1 1 0%; height: 0; min-height: 0; margin-top: 15px; }
.task-charts .chart-surface { flex: 1 1 0%; height: 100%; min-height: 0; }
.task-charts .chart-card-expanded { height: 90vh; }
.task-charts .chart-card-expanded .chart-plot-wrap { min-height: 0; }
.task-process-card { padding-bottom: 10px; }
.task-process-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 12px; }
.task-process-search { width: min(100%, 255px); min-height: 35px; display: flex; align-items: center; gap: 8px; padding: 0 10px; color: var(--muted); background: var(--panel-raised); border: 1px solid var(--line); border-radius: 8px; }
.task-process-search svg { width: 14px; height: 14px; flex: 0 0 14px; }
.task-process-search input { width: 100%; min-width: 0; color: var(--text); background: transparent; border: 0; outline: 0; font: inherit; font-size: 10px; }
.task-process-search input::placeholder { color: var(--muted); }
.task-table-scroll { width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
.task-process-table { width: 100%; min-width: 710px; border-collapse: collapse; text-align: left; }
.task-process-table th { position: sticky; top: 0; z-index: 1; padding: 0 11px; color: var(--muted); background: var(--panel-raised); border-bottom: 1px solid var(--line); font-size: 9px; font-weight: 600; white-space: nowrap; }
.task-process-table th button { min-height: 35px; padding: 0; color: inherit; background: transparent; border: 0; cursor: pointer; font: inherit; }
.task-process-table th button:hover { color: var(--teal); }
.task-process-table td { height: 39px; padding: 0 11px; color: var(--text); border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent); font-size: 10px; white-space: nowrap; }
.task-process-table tbody tr:last-child td { border-bottom: 0; }
.task-process-table tbody tr:hover { background: color-mix(in srgb, var(--teal) 5%, var(--panel)); }
.task-process-name { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.task-process-kind { display: inline-flex; align-items: center; padding: 3px 6px; color: var(--muted); background: var(--panel-raised); border: 1px solid var(--line); border-radius: 5px; font-size: 8px; }
.task-process-kind.node { color: #167ab5; background: #edf8ff; border-color: #d4ecfb; }
.task-process-kind.crm { color: #6943c4; background: #f3efff; border-color: #e3d9ff; }
.task-number { font-variant-numeric: tabular-nums; text-align: right; }
.task-status { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.task-status i { width: 6px; height: 6px; border-radius: 50%; background: #45b37d; }
.task-table-footnote { padding-top: 9px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.task-empty { padding: 24px 8px 8px; color: var(--muted); font-size: 10px; }
.task-notice { margin-top: 12px; }
.resource-footnote { display: flex; align-items: flex-start; gap: 8px; margin-top: 2px; color: #7f8ca0; font-size: 11px; line-height: 1.5; }
.resource-footnote svg { width: 15px; height: 15px; flex: 0 0 15px; color: #7daeff; }
.swagger-embed-card { overflow: hidden; }
.swagger-embed-heading { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.swagger-origin-badge, .settings-protocol { display: inline-flex; align-items: center; gap: 7px; padding: 7px 9px; color: #137454; background: #e8f7ef; border: 1px solid #c9ead9; border-radius: 8px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.swagger-origin-badge svg, .settings-protocol svg { width: 14px; height: 14px; }
.swagger-embed { display: block; width: 100%; height: calc(100vh - 245px); min-height: 620px; border: 0; background: #fff; }
.settings-card { padding: 22px; }
.settings-card > .card-heading { align-items: center; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.listener-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; padding-top: 17px; }
.listener-endpoint { padding: 15px; background: var(--panel-raised); border: 1px solid var(--line); border-radius: 10px; }
.listener-address { display: flex; align-items: center; gap: 9px; color: var(--teal); }
.listener-address svg { width: 16px; height: 16px; flex: 0 0 16px; }
.listener-address code { overflow-wrap: anywhere; color: var(--text); font: 600 13px 'Space Grotesk', monospace; }
.listener-endpoint dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 17px 0 0; }
.listener-endpoint dl > div { min-width: 0; }
.listener-endpoint dt { color: var(--muted); font-size: 10px; }
.listener-endpoint dd { margin: 5px 0 0; overflow-wrap: anywhere; color: var(--text); font-size: 11px; font-weight: 600; }
.settings-empty { margin-top: 17px; }
.placeholder-card { max-width: 720px; padding: 30px; }
.placeholder-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 22px; color: #baa4ff; background: #28213e; border: 1px solid #453764; border-radius: 13px; }
.placeholder-icon svg { width: 23px; height: 23px; }
.placeholder-card h2 { margin: 10px 0; color: #e9eef6; font: 600 18px 'Space Grotesk', sans-serif; }
.placeholder-card p { max-width: 570px; margin: 0; color: #8795a9; font-size: 12px; line-height: 1.7; }
.journal-explorer-page { min-width: 0; }
.journal-explorer { overflow: hidden; padding: 0; }
.explorer-toolbar { min-height: 58px; display: flex; align-items: center; gap: 13px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--panel); }
.explorer-history, .explorer-page-controls { display: inline-flex; align-items: center; gap: 5px; }
.explorer-tool-button { width: 32px; height: 32px; flex: 0 0 32px; display: inline-grid; place-items: center; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 7px; cursor: pointer; }
.explorer-tool-button:hover:not(:disabled) { color: var(--text); background: var(--panel-raised); }
.explorer-tool-button:disabled { opacity: .42; cursor: default; }
.explorer-tool-button svg { width: 16px; height: 16px; }
.explorer-address { min-width: 0; min-height: 36px; flex: 1; display: flex; align-items: center; gap: 8px; overflow: auto hidden; padding: 0 10px; color: var(--muted); background: var(--panel-raised); border: 1px solid var(--line); border-radius: 7px; white-space: nowrap; }
.explorer-address > img { width: 22px; height: 19px; flex: 0 0 22px; object-fit: contain; }
.explorer-address > svg { width: 14px; height: 14px; flex: 0 0 14px; opacity: .6; }
.explorer-address a { color: inherit; text-decoration: none; }
.explorer-address a:hover { color: var(--blue); text-decoration: underline; }
.explorer-address strong { color: var(--text); font-weight: 600; }
.explorer-refresh { flex: 0 0 auto; min-height: 36px; }
.explorer-table-wrap { max-width: 100%; overflow: auto; }
.explorer-table { width: 100%; min-width: 650px; border-collapse: collapse; text-align: left; }
.explorer-table th { position: sticky; top: 0; z-index: 1; height: 37px; padding: 0 14px; color: var(--muted); background: var(--panel-raised); border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 600; }
.explorer-table td { height: 43px; padding: 5px 14px; color: var(--muted); border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent); font-size: 11px; white-space: nowrap; }
.explorer-table tr:last-child td { border-bottom: 0; }
.explorer-table tbody tr:hover { background: color-mix(in srgb, var(--blue) 6%, var(--panel)); }
.explorer-table th:first-child, .explorer-table td:first-child { width: 52%; }
.explorer-item-link { min-width: 0; display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.explorer-item-link:hover { color: var(--blue); text-decoration: underline; }
.explorer-item-icon { width: 18px; height: 23px; flex: 0 0 auto; object-fit: contain; }
.explorer-item-icon.folder-icon { width: 26px; height: 22px; }
.open-log-viewer-button { min-width: min(100%, 300px); min-height: 58px; display: inline-flex; align-items: center; gap: 12px; padding: 9px 14px; color: var(--text); background: var(--panel-raised); border: 1px solid var(--line); border-radius: 11px; cursor: pointer; text-align: left; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.open-log-viewer-button:hover { border-color: color-mix(in srgb, var(--blue) 45%, var(--line)); box-shadow: 0 6px 18px #1b4a761a; transform: translateY(-1px); }
.open-log-viewer-button > svg:first-child { width: 23px; height: 23px; color: var(--blue); }
.open-log-viewer-button > span { display: flex; flex-direction: column; gap: 3px; }
.open-log-viewer-button strong { font-size: 11px; font-weight: 650; }
.open-log-viewer-button small { color: var(--muted); font-size: 9px; }
.open-log-viewer-arrow { width: 15px; height: 15px; margin-left: auto; color: var(--muted); }
.log-viewer-backdrop { position: fixed; z-index: 9999; inset: 0; display: grid; place-items: center; padding: .5vh .5vw; background: rgb(4 9 17 / 72%); backdrop-filter: blur(4px); }
.log-viewer-window { width: 99vw; height: 99vh; min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 22px 90px #0008; outline: none; }
.log-viewer-header { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.log-viewer-title-group { min-width: 0; display: flex; align-items: center; gap: 11px; }
.log-viewer-title-group > img { width: 24px; height: 29px; object-fit: contain; }
.log-viewer-title-group > div { min-width: 0; }
.log-viewer-title-group h2 { overflow: hidden; margin: 0; color: var(--text); font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.log-viewer-title-group p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.log-viewer-close { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; color: var(--muted); background: var(--panel-raised); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.log-viewer-close:hover { color: var(--text); background: color-mix(in srgb, var(--blue) 10%, var(--panel-raised)); }
.log-viewer-close svg { width: 18px; height: 18px; }
.log-viewer-filterbar { min-height: 57px; display: flex; align-items: flex-end; gap: 8px; padding: 6px 10px 8px; background: var(--panel-raised); border-bottom: 1px solid var(--line); }
.log-viewer-filterbar label { min-width: 115px; display: flex; flex-direction: column; gap: 3px; color: var(--muted); font-size: 9px; }
.log-viewer-filterbar label.log-filter-search { min-width: 170px; flex: 1; }
.log-viewer-filterbar input, .log-viewer-filterbar select { width: 100%; height: 29px; padding: 0 8px; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; font-family: inherit; font-size: 10px; outline: none; }
.log-viewer-filterbar input:focus, .log-viewer-filterbar select:focus { border-color: var(--blue); box-shadow: 0 0 0 2px color-mix(in srgb, var(--blue) 17%, transparent); }
.log-filter-submit { min-height: 29px; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; padding: 0 10px; font-size: 10px; }
.log-filter-submit svg { width: 13px; height: 13px; }
.log-filter-presets { min-height: 34px; display: flex; align-items: center; gap: 6px; padding: 4px 11px; border-bottom: 1px solid var(--line); }
.log-filter-presets > span { margin-right: 3px; color: var(--muted); font-size: 9px; }
.log-filter-presets button { min-height: 23px; padding: 2px 8px; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; font-size: 9px; cursor: pointer; }
.log-filter-presets button:hover { color: var(--text); border-color: var(--blue); }
.log-viewer-content { min-height: 0; flex: 1; overflow: auto; background: var(--panel-raised); }
.log-viewer-content pre { width: max-content; min-width: 100%; margin: 0; padding: 13px 15px; color: var(--text); font: 11px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre; tab-size: 4; }
.log-viewer-state { min-height: 0; flex: 1; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 20px; color: var(--muted); font-size: 12px; }
.log-viewer-error { color: #e57979; }
.log-viewer-footer { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 12px; color: var(--muted); background: var(--panel); border-top: 1px solid var(--line); font-size: 10px; }
.explorer-pagination { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 14px; color: var(--muted); border-top: 1px solid var(--line); font-size: 10px; }
.explorer-page-controls > span { min-width: 84px; text-align: center; }
.explorer-loading, .explorer-empty { min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 25px; color: var(--muted); text-align: center; font-size: 12px; }
.explorer-loading { flex-direction: row; }
.explorer-empty img { width: 42px; height: 42px; object-fit: contain; }
.explorer-empty h2 { margin: 3px 0 0; color: var(--text); font-size: 14px; }
.explorer-empty p { max-width: 480px; margin: 0; line-height: 1.6; }
.explorer-empty.compact { min-height: 130px; }
.explorer-message { margin: 16px; }
.text-reader-heading { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.text-reader-file { min-width: 0; display: flex; align-items: center; gap: 11px; }
.text-reader-file > img { width: 24px; height: 29px; object-fit: contain; }
.text-reader-file > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.text-reader-file strong { overflow: hidden; color: var(--text); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.text-reader-file span { color: var(--muted); font-size: 10px; }
.text-reader-body { max-height: min(68vh, 760px); min-height: 220px; overflow: auto; background: var(--panel-raised); }
.text-reader-body pre { min-width: max-content; margin: 0; padding: 17px 19px; color: var(--text); font: 11px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre; tab-size: 4; }
.status-pill { display: inline-flex; align-items: center; width: fit-content; padding: 4px 7px; border-radius: 6px; font-size: 9px; font-weight: 600; line-height: 1; white-space: nowrap; }
.status-ok { color: #7cdbb4; background: #153126; border: 1px solid #28513f; }
.status-muted { color: #8895a8; background: #1b2431; border: 1px solid #303b4b; }
.status-error { color: #fa9a9a; background: #351f24; border: 1px solid #5c3037; }
.status-warning { color: #f0c47f; background: #332718; border: 1px solid #59432a; }
.status-info { color: #94b8f3; background: #192941; border: 1px solid #2c4565; }
.muted-small { margin: 7px 0 0; color: #8190a5; font-size: 10px; }
.filter-row { display: flex; gap: 6px; margin: 0 0 14px; }
.filter-button { padding: 7px 10px; color: #8795a9; background: transparent; border: 1px solid transparent; border-radius: 7px; font-size: 11px; cursor: pointer; }
.filter-button:hover { color: #e5ebf4; background: #141d29; }
.filter-button.selected { color: #b8f1d9; background: #153126; border-color: #28513f; }
.journal-card { overflow: hidden; }
.journal-meta { display: flex; justify-content: space-between; gap: 10px; padding: 14px 16px; color: #8290a4; border-bottom: 1px solid #222d3d; font-size: 10px; }
.table-scroll { overflow-x: auto; }
.journal-table { width: 100%; border-collapse: collapse; text-align: left; }
.journal-table th { padding: 11px 14px; color: #718096; background: #0f151f; font: 600 9px 'Space Grotesk', sans-serif; letter-spacing: .7px; text-transform: uppercase; }
.journal-table td { padding: 11px 14px; color: #b9c4d3; border-top: 1px solid #202a38; vertical-align: top; font-size: 10px; }
.journal-time { min-width: 145px; color: #8896aa !important; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; }
.journal-source { min-width: 145px; color: #91a1b6 !important; }
.journal-message { min-width: 240px; line-height: 1.55; overflow-wrap: anywhere; }
.loading-state, .empty-state { min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #8290a4; }
.empty-state h1, .empty-state h2 { margin: 0; color: #e2e8f0; font: 600 17px 'Space Grotesk', sans-serif; }
.empty-state p { margin: 0 0 6px; color: #7e8ca0; font-size: 11px; text-align: center; }
.empty-icon, .empty-state > svg { width: 25px; height: 25px; color: #78879c; }
.loading-state { flex-direction: row; font-size: 12px; }
.spinner { width: 15px; height: 15px; border: 2px solid #344154; border-top-color: var(--teal); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-button { width: 34px; height: 34px; display: grid; place-items: center; color: #9ba8ba; background: #151e2b; border: 1px solid #2a3749; border-radius: 8px; cursor: pointer; }
.icon-button:hover { color: white; background: #1c2837; }
.mobile-only { display: none; }
.sidebar-scrim { display: none; }

@media (max-width: 1150px) {
    .four-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .explorer-toolbar { gap: 8px; padding: 9px; }
    .explorer-address { gap: 5px; padding-inline: 7px; font-size: 10px; }
    .explorer-refresh { width: 36px; min-width: 36px; justify-content: center; padding: 0; font-size: 0; }
    .explorer-refresh svg { width: 16px; height: 16px; }
    .log-viewer-filterbar { flex-wrap: wrap; }
    .log-viewer-filterbar label { min-width: 125px; flex: 1 1 150px; }
    .log-viewer-filterbar label.log-filter-search { flex: 2 1 230px; }
}
@media (max-width: 760px) {
    .sidebar { width: 252px; transform: translateX(-102%); box-shadow: 22px 0 50px #0008; }
    .sidebar.sidebar-open { transform: translateX(0); }
    .sidebar-collapsed { width: 252px; }
    .sidebar-collapsed .brand-copy, .sidebar-collapsed .nav-item span, .sidebar-collapsed .collapse-button span { display: initial; }
    .sidebar-collapsed .brand-row { justify-content: flex-start; padding-inline: 8px; }
    .sidebar-collapsed .nav-item { width: auto; justify-content: flex-start; padding: 0 11px; }
    .sidebar-scrim { display: block; position: fixed; z-index: 25; inset: 0; width: 100%; height: 100%; background: #02050abf; border: 0; }
    .main-shell, .sidebar-collapsed ~ .main-shell { width: 100%; margin-left: 0; }
    .desktop-only { display: none; }
    .mobile-only { display: grid; }
    .topbar { height: 60px; padding: 0 16px; }
    .topbar-right { gap: 8px; }
    .main-content { min-height: calc(100vh - 60px); padding: 25px 17px 17px; }
    .page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 19px; }
    .page-heading h1 { font-size: 25px; }
    .heading-actions { width: 100%; justify-content: space-between; }
    .four-up, .two-up { grid-template-columns: 1fr; }
    .metric-card { min-height: 120px; }
    .chart-card { min-height: 330px; padding: 14px; }
    .chart-plot-wrap { min-height: 270px; }
    .chart-card-expanded { inset: 2vh 2vw; width: 96vw; height: 96vh; padding: 16px; }
    .chart-card-expanded .chart-plot-wrap { min-height: 0; }
    .task-charts .chart-card:not(.chart-card-expanded) { height: 410px; min-height: 410px; padding: 14px; }
    .task-charts .chart-plot-wrap { min-height: 0; }
    .task-charts .card-heading { align-items: flex-start; }
    .task-charts .chart-card-actions { gap: 6px; }
    .task-charts .chart-samples { display: none; }
    .chart-card-expanded .chart-card-actions { gap: 5px; }
    .chart-card-expanded .chart-range-trigger { max-width: 106px; padding: 0 7px; font-size: 9px; }
    .chart-card-expanded .chart-live { padding: 4px 5px; }
    .task-manager-heading { align-items: flex-start; }
    .task-tabs { margin-top: 0; }
    .task-tab { gap: 6px; padding-inline: 10px; }
    .task-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .task-metric-card { padding: 12px; }
    .task-metric-top { align-items: flex-start; flex-direction: column; gap: 5px; }
    .task-metric-top > strong { font-size: 18px; }
    .task-performance-grid { grid-template-columns: 1fr; }
    .task-memory-list { gap: 0 12px; }
    .task-process-header { align-items: stretch; flex-direction: column; gap: 12px; }
    .task-process-search { width: 100%; }
    .task-process-card { padding: 13px 11px 9px; }
    .task-section-heading { align-items: flex-start; }
    .task-section-heading h2 { font-size: 12px; }
    .task-inline-value { font-size: 8px; }
    .explorer-toolbar { flex-wrap: wrap; }
    .explorer-history { flex: 0 0 auto; }
    .explorer-address { order: 3; flex-basis: 100%; }
    .explorer-refresh { margin-left: auto; }
    .explorer-table { min-width: 590px; }
    .explorer-table th, .explorer-table td { padding-inline: 10px; }
    .explorer-pagination { align-items: flex-start; flex-direction: column; }
    .explorer-page-controls { align-self: flex-end; }
    .text-reader-body pre { padding: 13px; font-size: 10px; }
    .open-log-viewer-button { width: 100%; min-height: 54px; }
    .log-viewer-backdrop { padding: 0; }
    .log-viewer-window { width: 100vw; height: 100vh; border-radius: 0; }
    .log-viewer-filterbar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 7px; padding: 8px; }
    .log-viewer-filterbar label, .log-viewer-filterbar label.log-filter-search { min-width: 0; }
    .log-filter-submit { min-height: 29px; }
    .log-viewer-content pre { padding: 10px; font-size: 10px; }
    .log-viewer-footer { align-items: flex-start; flex-direction: column; }
    .log-viewer-footer .explorer-page-controls { align-self: flex-end; }
    .journal-meta { flex-direction: column; }
    .journal-table th, .journal-table td { padding: 10px; }
    .breadcrumb { gap: 6px; font-size: 10px; }
    .breadcrumb-home img { width: 19px; height: 19px; }
    .cluster-hero { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 21px; }
    .cluster-hero h2 { margin-top: 9px; }
    .cluster-hero-art { min-height: 185px; margin-top: 6px; }
    .cluster-hero-art > img { width: min(100%, 360px); }
    .cluster-orbit { top: 25%; height: 50%; }
    .page-footer { font-size: 9px; }
    .swagger-embed { height: calc(100vh - 240px); min-height: 560px; }
    .swagger-embed-heading, .settings-card { padding: 15px; }
    .listener-endpoint dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Light theme defaults; the dark theme retains the original dashboard palette. */
:root[data-theme="light"],
:root[data-theme="light"] body { background: var(--bg); color: var(--text); }
:root[data-theme="light"] .sidebar { background: #fff; border-color: #e2e8f0; }
:root[data-theme="light"] .brand-row { border-color: #e8edf3; }
:root[data-theme="light"] .brand-mark { color: #fff; background: #edf5ff; box-shadow: 0 5px 15px #3974c61c; }
:root[data-theme="light"] .nav-caption { color: #8491a3; }
:root[data-theme="light"] .nav-item { color: #526176; }
:root[data-theme="light"] .nav-item > svg:first-child { color: #74839a; }
:root[data-theme="light"] .nav-item:hover { color: #17243a; background: #f2f6fa; }
:root[data-theme="light"] .nav-item.active { color: #126b51; background: #e7f6ef; box-shadow: inset 2px 0 #2aa77d; }
:root[data-theme="light"] .nav-subitems { border-color: #dce4ed; }
:root[data-theme="light"] .nav-subitems a { color: #68788e; }
:root[data-theme="light"] .collapse-button { color: #627188; }
:root[data-theme="light"] .collapse-button:hover { color: #17243a; background: #f2f6fa; }
:root[data-theme="light"] .topbar { background: #fff; border-color: #e2e8f0; }
:root[data-theme="light"] .breadcrumb { color: #718096; }
:root[data-theme="light"] .breadcrumb strong { color: #26364d; }
:root[data-theme="light"] .avatar-mark { color: #3974c6; background: linear-gradient(145deg, #edf6ff, #f1f5f9); border-color: #cdddf0; }
:root[data-theme="light"] .page-heading h1 { color: #17243a; }
:root[data-theme="light"] .page-heading p { color: #65758b; }
:root[data-theme="dark"] .task-process-kind.node { color: #8ed7fc; background: #152a36; border-color: #25495b; }
:root[data-theme="dark"] .task-process-kind.crm { color: #c5b5ff; background: #28213e; border-color: #453764; }
:root[data-theme="light"] .eyebrow { color: #64748b; }
:root[data-theme="light"] .updated-label { color: #718096; }
:root[data-theme="light"] .button-quiet { color: #536176; background: #fff; border-color: #dce4ed; }
:root[data-theme="light"] .button-quiet:hover:not(:disabled) { color: #17243a; background: #f4f7fb; border-color: #c4cfdd; }
:root[data-theme="light"] .button-primary { color: #fff; background: #138a68; border-color: #138a68; }
:root[data-theme="light"] .metric-card,
:root[data-theme="light"] .content-card { background: #fff; border-color: #e2e8f0; box-shadow: 0 5px 18px #243b530b; }
:root[data-theme="light"] .metric-label { color: #607087; }
:root[data-theme="light"] .metric-value { color: #17243a; }
:root[data-theme="light"] .metric-detail { color: #718096; }
:root[data-theme="light"] .tone-green { color: #16815e; background: #e6f7ef; border-color: #c6ebd9; }
:root[data-theme="light"] .tone-teal { color: #147d78; background: #e5f7f5; border-color: #c1e9e5; }
:root[data-theme="light"] .tone-blue { color: #3974c6; background: #eaf2fd; border-color: #d0e0f8; }
:root[data-theme="light"] .tone-violet { color: #7356b5; background: #f0ebfb; border-color: #ded4f5; }
:root[data-theme="light"] .tone-amber { color: #a66a12; background: #fff5df; border-color: #f1dfb8; }
:root[data-theme="light"] .card-heading h2,
:root[data-theme="light"] .section-title-row h2 { color: #26364d; }
:root[data-theme="light"] .card-heading h2 svg { color: #16815e; }
:root[data-theme="light"] .card-heading p,
:root[data-theme="light"] .page-footer,
:root[data-theme="light"] .resource-footnote { color: #68788e; }
:root[data-theme="light"] .chart-live { color: #16815e; background: #e8f7ef; border-color: #c9ead9; }
:root[data-theme="light"] .notice-neutral { color: #526176; background: #eef5fc; border-color: #d6e5f5; }
:root[data-theme="light"] .notice-warning { color: #895b13; background: #fff7e8; border-color: #f0dfbd; }
:root[data-theme="light"] .placeholder-icon { color: #7356b5; background: #f0ebfb; border-color: #ded4f5; }
:root[data-theme="light"] .placeholder-card h2 { color: #26364d; }
:root[data-theme="light"] .placeholder-card p { color: #617188; }
:root[data-theme="light"] .status-ok { color: #16815e; background: #e8f7ef; border-color: #c9ead9; }
:root[data-theme="light"] .status-muted { color: #64748b; background: #f1f4f8; border-color: #dfe5ec; }
:root[data-theme="light"] .status-error { color: #b23d45; background: #fff0f0; border-color: #f2d0d2; }
:root[data-theme="light"] .status-warning { color: #9a6719; background: #fff7e8; border-color: #f0dfbd; }
:root[data-theme="light"] .status-info { color: #3974c6; background: #eef5ff; border-color: #d3e3fb; }
:root[data-theme="light"] .muted-small { color: #68788e; }
:root[data-theme="light"] .filter-button { color: #64748b; }
:root[data-theme="light"] .filter-button:hover { color: #26364d; background: #f2f6fa; }
:root[data-theme="light"] .filter-button.selected { color: #126b51; background: #e7f6ef; border-color: #c9ead9; }
:root[data-theme="light"] .journal-meta { color: #607087; border-color: #e5eaf0; }
:root[data-theme="light"] .journal-table th { color: #607087; background: #f5f8fb; }
:root[data-theme="light"] .journal-table td { color: #34445b; border-color: #e8edf3; }
:root[data-theme="light"] .journal-time,
:root[data-theme="light"] .journal-source { color: #64748b !important; }
:root[data-theme="light"] .empty-state h1,
:root[data-theme="light"] .empty-state h2 { color: #26364d; }
:root[data-theme="light"] .empty-state p,
:root[data-theme="light"] .loading-state { color: #68788e; }
:root[data-theme="light"] .spinner { border-color: #dbe3ed; border-top-color: #138a68; }
:root[data-theme="light"] .icon-button { color: #526176; background: #fff; border-color: #dce4ed; }
:root[data-theme="light"] .icon-button:hover { color: #17243a; background: #f2f6fa; }
:root[data-theme="dark"] .theme-switcher { color: #c3cfde; background: #151e2b; border-color: #2a3749; box-shadow: none; }
:root[data-theme="dark"] .theme-switcher:hover { color: #83e2bd; background: #182b25; border-color: #2d5b49; }
:root[data-theme="dark"] .profile-trigger { color: #a6b3c4; }
:root[data-theme="dark"] .profile-dropdown { color: #e4edf7; background: #111a26; border-color: #2b3749; box-shadow: 0 18px 50px #0008; }
:root[data-theme="dark"] .chart-range-trigger, :root[data-theme="dark"] .chart-expand-button, :root[data-theme="dark"] .chart-range-options { color: #e4edf7; background: #111a26; border-color: #2b3749; box-shadow: 0 18px 50px #0008; }
:root[data-theme="dark"] .chart-range-trigger:hover, :root[data-theme="dark"] .chart-expand-button:hover, :root[data-theme="dark"] .chart-range-option:hover, :root[data-theme="dark"] .chart-range-option.selected { color: #b8f1d9; background: #183127; }
:root[data-theme="dark"] .chart-range-option { color: #aab7c8; }
:root[data-theme="dark"] .resource-footnote code { color: #aab7c8; background: #202a39; }
:root[data-theme="dark"] .dropdown-heading span { color: #8491a5; }
:root[data-theme="dark"] .dropdown-heading strong { color: #e4edf7; }
:root[data-theme="dark"] .dropdown-item { color: #aab7c8; }
:root[data-theme="dark"] .dropdown-item:hover { color: #b8f1d9; background: #183127; }
:root[data-theme="dark"] .dropdown-item:hover > svg:first-child { color: #70dcb4; }
:root[data-theme="dark"] .dropdown-divider { background: #263245; }
:root[data-theme="dark"] .swagger-origin-badge,
:root[data-theme="dark"] .settings-protocol { color: #88e2bf; background: #153126; border-color: #27533f; }
:root[data-theme="dark"] .dashboard-page::before { filter: invert(1); opacity: .1; }
:root[data-theme="dark"] .dashboard-page .page-heading::after { filter: none; opacity: .12; }
:root[data-theme="dark"] .cluster-metric::before { filter: none; opacity: .23; }
:root[data-theme="dark"] .cluster-hero { background: radial-gradient(ellipse at 78% 48%, #277eff1c, transparent 43%), linear-gradient(115deg, #111722, #101b2a); border-color: #263349; box-shadow: 0 12px 35px #0003; }
:root[data-theme="dark"] .cluster-hero::before { opacity: .4; }

@media (max-width: 420px) {
    .topbar { padding-inline: 12px; }
    .topbar-left { gap: 8px; }
    .theme-switcher { width: 34px; height: 34px; flex-basis: 34px; }
}

@keyframes cpu-signal { 0% { stroke-dashoffset: 20; opacity: .55; } 55%, 100% { stroke-dashoffset: 0; opacity: 1; } }
@keyframes memory-pulse { from { opacity: .48; transform: scaleY(.78); transform-origin: center bottom; } to { opacity: 1; transform: scaleY(1); transform-origin: center bottom; } }
@keyframes icon-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes bubble-rise { 0% { opacity: 0; transform: translate3d(0, 15px, 0) scale(.55); } 14% { opacity: .5; } 100% { opacity: 0; transform: translate3d(var(--bubble-drift), -105vh, 0) scale(1.25); } }
.ui-bubble-layer { position: fixed; z-index: 100; inset: 0; overflow: hidden; pointer-events: none; }
.ui-bubble { position: absolute; left: var(--bubble-left); bottom: -22px; width: var(--bubble-size); height: var(--bubble-size); border: 1px solid color-mix(in srgb, var(--teal) 45%, transparent); border-radius: 50%; background: radial-gradient(circle at 34% 30%, color-mix(in srgb, var(--teal) 20%, transparent), transparent 68%); box-shadow: inset 0 0 8px color-mix(in srgb, var(--teal) 16%, transparent); animation: bubble-rise var(--bubble-duration) cubic-bezier(.2,.65,.35,1) var(--bubble-delay) forwards; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
