@charset "UTF-8";

:root {
  color-scheme: light;
  --bg: #f7f8fc;
  --surface: #fff;
  --surface-raised: #fff;
  --surface-soft: #f8f9fc;
  --surface-hover: #f1f2f8;
  --ink: #242735;
  --ink-strong: #191c2b;
  --muted: #8b8d9e;
  --secondary: #6f7285;
  --line: #e9ebf2;
  --line-strong: #dce0eb;
  --violet: #7764ed;
  --violet-hover: #6955de;
  --violet-soft: #f0edff;
  --mint: #18a884;
  --mint-soft: #e9f8f2;
  --danger: #d85b63;
  --danger-soft: #fff0f1;
  --warning: #ad7b28;
  --warning-soft: #fff6e5;
  --dark-button: #2c2f40;
  --dark-button-text: #fff;
  --shadow: 0 5px 22px rgb(35 38 65 / 3%);
  --shadow-raised: 0 18px 60px rgb(35 38 65 / 13%);
  --body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --sidebar: 232px;
  --radius: 12px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #11131b;
  --surface: #191c26;
  --surface-raised: #222631;
  --surface-soft: #151821;
  --surface-hover: #242836;
  --ink: #dee0ed;
  --ink-strong: #f0f0f9;
  --muted: #747b92;
  --secondary: #9ca2b9;
  --line: #292d3c;
  --line-strong: #373d51;
  --violet: #aa9aff;
  --violet-hover: #bcafff;
  --violet-soft: #2c2744;
  --mint: #51c7a5;
  --mint-soft: #17372f;
  --danger: #ef8990;
  --danger-soft: #3b252e;
  --warning: #e0b36c;
  --warning-soft: #3a3023;
  --dark-button: #dfe1f0;
  --dark-button-text: #222533;
  --shadow: 0 5px 22px rgb(0 0 0 / 6%);
  --shadow-raised: 0 18px 60px rgb(0 0 0 / 30%);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; scroll-behavior: smooth; scrollbar-gutter: stable; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 13px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.overlay-open { overflow: hidden; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
button { color: inherit; }
a { color: var(--violet); text-decoration: none; }
button { border: 0; }
input, textarea, select { min-width: 0; color: var(--ink); }
button:disabled, select:disabled { cursor: not-allowed; opacity: .45; }
button:not(:disabled), a, select { touch-action: manipulation; }
button, input, select, textarea, a { outline: none; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline-width: 2px; outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--ink-strong); }
strong, b { font-weight: 650; }
svg { display: block; }
.icon { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.icon-library { position: absolute; width: 0; height: 0; pointer-events: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 100; padding: 10px 18px; border-radius: 8px; background: var(--violet); color: var(--surface); }
.skip-link:focus { top: 12px; }
.muted { color: var(--muted); }
.mint-text { color: var(--mint); }
.flip { transform: rotate(180deg); }
.break-text { overflow-wrap: anywhere; }
.mobile-only { display: none !important; }

.button { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 13px; border: 1px solid transparent; border-radius: 7px; font-size: 12px; font-weight: 650; line-height: 1.4; white-space: nowrap; transition: background .16s ease, border-color .16s ease, box-shadow .16s ease; }
.button .icon { width: 15px; height: 15px; }
.button-primary { background: var(--violet); color: #fff; box-shadow: 0 2px 3px rgb(88 64 181 / 10%); }
.button-primary:hover:not(:disabled) { background: var(--violet-hover); box-shadow: 0 3px 9px rgb(88 64 181 / 18%); }
:root[data-theme="dark"] .button-primary { color: #1e1936; }
.button-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); box-shadow: 0 1px 2px rgb(30 30 60 / 2%); }
.button-secondary:hover:not(:disabled) { background: var(--surface-hover); border-color: var(--muted); }
.button-dark { background: var(--dark-button); color: var(--dark-button-text); }
.button-dark:hover:not(:disabled) { opacity: .88; }
.button-danger { color: var(--danger); background: var(--danger-soft); border-color: transparent; }
.button-danger:hover:not(:disabled) { border-color: var(--danger); }
.button-danger-solid { background: #cc4d58; color: #fff; }
.button-danger-solid:hover:not(:disabled) { background: #b63d48; }
.icon-button { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; background: transparent; color: var(--secondary); border-radius: 6px; flex-shrink: 0; }
.icon-button:hover:not(:disabled) { background: var(--surface-hover); color: var(--ink-strong); }
.icon-button.bordered { border: 1px solid var(--line-strong); background: var(--surface); width: 36px; height: 36px; }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 2px 0; background: none; color: var(--violet); font-size: 11px; font-weight: 600; line-height: 1.7; }
.text-button:hover:not(:disabled) { color: var(--violet-hover); text-decoration: underline; text-underline-offset: 3px; }
.text-button .icon { width: 14px; height: 14px; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); flex-shrink: 0; }
.status-dot.error { background: var(--danger); }
.status-dot.loading { background: var(--warning); }
.legend-dot { display: inline-block; width: 6px; height: 6px; flex-shrink: 0; border-radius: 2px; }
.mint-dot { background: var(--mint); }
.violet-dot { background: var(--violet); }
.eyebrow { color: var(--muted); font-family: var(--body); font-size: 9px; font-weight: 750; letter-spacing: 1.55px; line-height: 1.5; }
.outline-badge { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface-soft); border-radius: 5px; padding: 4px 8px; font-size: 10px; color: var(--secondary); line-height: 1.4; white-space: nowrap; }
.outline-badge .icon { width: 13px; height: 13px; }
.icon-tile { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 9px; flex: 0 0 auto; }
.mint { background: var(--mint-soft); color: var(--mint); }
.violet { background: var(--violet-soft); color: var(--violet); }
.neutral { background: var(--surface-hover); color: var(--secondary); }
.soft-badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 6px; border-radius: 4px; background: var(--surface-soft); color: var(--secondary); }
.soft-badge .status-dot { width: 4px; height: 4px; }
.mint-badge { display: inline-flex; align-items: center; gap: 3px; padding: 3px 7px; border-radius: 5px; color: var(--mint); background: var(--mint-soft); font-size: 10px; font-weight: 650; white-space: nowrap; }
.inline-error { padding: 9px 11px; margin-top: 12px; background: var(--danger-soft); border: 1px solid color-mix(in srgb, var(--danger) 22%, transparent); border-radius: 6px; color: var(--danger); font-size: 12px; overflow-wrap: anywhere; }
.field-help { font-size: 11px; color: var(--muted); line-height: 1.9; }
.field-label { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; font-size: 12px; font-weight: 650; }
.field-label span { color: var(--muted); font-size: 10px; font-weight: 500; }

/* The entry screen uses the same routing signature as the live dashboard. */
.auth-screen { min-height: 100svh; display: flex; flex-direction: column; background: var(--surface); }
.auth-topbar { display: flex; align-items: center; justify-content: space-between; padding: 32px 4.7%; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-strong); font-size: 16px; font-weight: 800; letter-spacing: -.6px; line-height: 1.3; }
.brand-mark { display: flex; width: 34px; height: 34px; align-items: center; justify-content: center; color: #fff; background: #7764ed; border-radius: 10px; box-shadow: inset 0 1px 0 rgb(255 255 255 / 20%), 0 3px 7px rgb(119 100 237 / 16%); }
.brand-mark .icon { width: 20px; height: 20px; stroke-width: 1.9; }
.brand-caption { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; font-weight: 600; letter-spacing: 1.35px; }
.auth-theme { display: inline-flex; align-items: center; gap: 6px; color: var(--secondary); }
.auth-theme .icon { width: 15px; height: 15px; }
.auth-theme select { border: 0; background: transparent; font-size: 11px; padding: 5px; }
.auth-layout { display: grid; grid-template-columns: minmax(320px, 410px) minmax(400px, 620px); align-items: center; gap: clamp(48px, 8vw, 140px); flex: 1; width: min(1180px, 91%); margin: auto; padding: 52px 0 80px; }
.auth-card { padding: 4px 0 0; }
.auth-card > .eyebrow { display: flex; gap: 8px; align-items: center; margin-bottom: 25px; font-size: 10px; color: var(--secondary); }
.auth-card h1 { font-size: clamp(35px, 3.4vw, 47px); line-height: 1.4; letter-spacing: -1.8px; font-weight: 750; }
.auth-intro { color: var(--secondary); margin: 22px 0 35px; line-height: 1.95; font-size: 13px; }
.key-input-wrap { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 9px 0 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface-soft); transition: border-color .15s; }
.key-input-wrap:focus-within { border-color: var(--violet); box-shadow: 0 0 0 3px color-mix(in srgb, var(--violet) 10%, transparent); }
.key-input-wrap > .icon { width: 17px; height: 17px; color: var(--muted); }
.key-input-wrap input { flex: 1; width: 100%; border: 0; outline: 0; background: none; font-family: var(--mono); font-size: 12px; }
.key-input-wrap input::placeholder { font-family: var(--body); color: var(--muted); font-size: 12px; }
.key-input-wrap input:focus-visible { outline: 0; }
.auth-card .field-help { margin: 9px 0 0; }
.auth-submit { width: 100%; min-height: 46px; margin-top: 24px; justify-content: space-between; padding: 10px 17px; font-size: 13px; }
.auth-security { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 19px; font-size: 10px; color: var(--muted); }
.auth-security .icon { width: 12px; height: 12px; }
.auth-art { position: relative; min-height: 485px; border-radius: 20px; border: 1px solid var(--line); background: radial-gradient(ellipse at 75% 35%, color-mix(in srgb, var(--mint) 5%, var(--surface-soft)), var(--surface-soft) 70%); overflow: hidden; }
.auth-art-heading { position: relative; padding: 43px 36px 0; z-index: 1; }
.auth-art-heading .eyebrow { color: var(--violet); font-size: 9px; letter-spacing: 1.3px; }
.auth-art-heading h2 { font-size: 24px; margin: 15px 0 9px; letter-spacing: -.9px; }
.auth-art-heading p { color: var(--secondary); font-size: 12px; }
.art-orbit { position: absolute; border: 1px solid color-mix(in srgb, var(--violet) 6%, transparent); border-radius: 50%; width: 500px; height: 500px; right: -145px; top: 35px; }
.orbit-two { width: 670px; height: 670px; right: -230px; top: -50px; }
.art-routing { height: 245px; position: relative; margin: 21px 20px 0; }
.art-paths { position: absolute; width: 100%; height: 100%; color: var(--line-strong); }
.art-node { position: absolute; display: flex; align-items: center; gap: 9px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; box-shadow: 0 6px 20px rgb(43 48 89 / 4%); }
.art-input { left: 3%; top: 40%; flex-direction: column; justify-content: center; width: 75px; height: 75px; gap: 6px; font-size: 10px; color: var(--secondary); }
.art-input > .icon { width: 23px; height: 23px; color: var(--violet); }
.art-cache, .art-network { right: 0; width: 209px; padding: 14px 12px; }
.art-cache { top: 8%; border-color: color-mix(in srgb, var(--mint) 22%, var(--line)); }
.art-network { top: 64%; }
.art-node-icon { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0; }
.art-node-icon .icon { width: 17px; height: 17px; }
.art-node strong, .art-node div > span { display: block; }
.art-node strong { font-size: 11px; }
.art-node div > span { color: var(--muted); font-size: 9px; margin-top: 3px; }
.art-node-check { width: 13px; height: 13px; color: var(--mint); margin-left: auto; }
.art-footnote { display: flex; flex-wrap: wrap; justify-content: center; gap: 25px; margin: 6px 20px 25px; position: relative; }
.art-footnote > span { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--secondary); }
.auth-footer { display: flex; justify-content: space-between; width: 90.6%; margin: 0 auto; padding: 24px 0; color: var(--muted); font-size: 10px; border-top: 1px solid var(--line); }
.auth-footer > span:first-child { font-weight: 700; letter-spacing: -.2px; }

/* Workbench shell */
.sidebar { position: fixed; z-index: 30; top: 0; bottom: 0; left: 0; width: var(--sidebar); background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 28px 16px 17px; }
.sidebar-brand { padding: 0 9px; display: flex; align-items: center; justify-content: space-between; }
.sidebar .brand { font-size: 15px; gap: 9px; }
.sidebar .brand-mark { width: 32px; height: 32px; border-radius: 9px; }
.sidebar .brand-caption { font-size: 9px; letter-spacing: 1.5px; font-weight: 500; }
.workspace-label { display: flex; align-items: center; gap: 9px; padding: 11px 10px; margin: 31px 2px 27px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); font-size: 11px; font-weight: 650; line-height: 1.5; }
.workspace-avatar { display: flex; width: 28px; height: 28px; align-items: center; justify-content: center; background: var(--surface); color: var(--secondary); border: 1px solid var(--line); border-radius: 6px; font-size: 9px; font-weight: 800; letter-spacing: -.2px; }
.workspace-label small { display: block; font-size: 8px; font-weight: 500; color: var(--muted); margin-top: 1px; }
.workspace-label > .icon { margin-left: auto; width: 12px; height: 12px; color: var(--muted); }
.nav-label { padding-left: 13px; color: var(--muted); font-size: 10px; margin-bottom: 10px; }
.nav-list { display: flex; flex-direction: column; gap: 5px; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 11px 13px; color: var(--secondary); font-size: 12px; font-weight: 550; border-radius: 7px; min-height: 40px; }
.nav-item .icon { width: 17px; height: 17px; color: var(--muted); }
.nav-item:hover { background: var(--surface-hover); color: var(--ink); }
.nav-item.active { color: var(--violet); background: var(--violet-soft); font-weight: 700; }
.nav-item.active .icon { color: var(--violet); }
.nav-active-dot { margin-left: auto; width: 5px; height: 5px; border-radius: 50%; background: var(--violet); }
.nav-count { margin-left: auto; font-family: var(--mono); font-size: 9px; color: var(--muted); }
.sidebar-bottom { margin-top: auto; padding: 28px 9px 0; }
.sidebar-service { display: flex; gap: 7px; align-items: center; color: var(--secondary); font-size: 10px; margin-bottom: 17px; }
.service-tag { margin-left: auto; border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; color: var(--muted); font-family: var(--mono); font-size: 8px; }
.theme-switch { display: flex; align-items: center; padding: 3px; gap: 4px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-soft); }
.theme-switch button { display: flex; justify-content: center; align-items: center; flex: 1; height: 28px; border-radius: 4px; background: none; color: var(--muted); }
.theme-switch button:hover { color: var(--ink); }
.theme-switch button[aria-pressed="true"] { background: var(--surface-raised); color: var(--ink); box-shadow: 0 1px 5px rgb(20 25 50 / 8%); }
.theme-switch .icon { width: 14px; height: 14px; }
.logout-button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; background: none; font-size: 10px; color: var(--muted); padding: 14px 4px 2px; }
.logout-button .icon { width: 13px; height: 13px; }
.logout-button:hover { color: var(--danger); }
.main-shell { margin-left: var(--sidebar); min-width: 0; }
.topbar { height: 64px; border-bottom: 1px solid var(--line); background: var(--surface); display: flex; align-items: center; justify-content: space-between; padding: 0 34px; }
.breadcrumb { display: flex; align-items: center; gap: 14px; font-size: 11px; color: var(--secondary); }
.breadcrumb strong { font-weight: 600; color: var(--ink); }
.breadcrumb-divider { width: 11px; height: 11px; color: var(--line-strong); }
.topbar-meta { display: flex; align-items: center; gap: 21px; font-size: 10px; }
.timezone { color: var(--muted); font-family: var(--mono); font-size: 9px; }
.connection-state { display: inline-flex; align-items: center; gap: 6px; color: var(--secondary); }
.main-content { max-width: 1600px; margin: 0 auto; padding: 33px 34px 22px; min-height: calc(100svh - 126px); }
.page-view { animation: enter-view .24s ease-out; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.page-heading .eyebrow { margin-bottom: 5px; font-size: 9px; }
.page-heading h1 { font-size: 27px; line-height: 1.6; letter-spacing: -.9px; font-weight: 750; }
.heading-dot { color: var(--violet); padding-left: 3px; }
.page-heading p { font-size: 11px; color: var(--secondary); margin-top: 3px; }
.heading-aside { display: flex; align-items: flex-end; flex-direction: column; font-size: 9px; color: var(--muted); gap: 6px; padding-top: 18px; }
.live-indicator { display: flex; align-items: center; gap: 6px; color: var(--secondary); font-size: 10px; }
.live-indicator .status-dot { box-shadow: 0 0 0 3px var(--mint-soft); width: 5px; height: 5px; }
.overview-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 23px; }
.segmented-control { display: flex; align-items: center; gap: 3px; border: 1px solid var(--line); padding: 3px; background: var(--surface-soft); border-radius: 7px; }
.segmented-control button { background: transparent; padding: 5px 13px; border: 1px solid transparent; border-radius: 4px; color: var(--secondary); font-size: 10px; font-weight: 550; line-height: 1.6; white-space: nowrap; }
.segmented-control button.selected { background: var(--surface); border-color: var(--line); color: var(--ink-strong); box-shadow: 0 1px 3px rgb(25 30 60 / 4%); }
.toolbar-actions { display: flex; align-items: center; gap: 9px; }
.refresh-select { display: flex; align-items: center; gap: 5px; margin-right: 3px; color: var(--muted); }
.refresh-select .icon { width: 13px; height: 13px; }
.refresh-select select { background: none; border: 0; color: var(--secondary); padding: 5px 0; font-size: 10px; }
.error-banner { display: flex; gap: 9px; align-items: center; margin-bottom: 20px; background: var(--danger-soft); border: 1px solid color-mix(in srgb, var(--danger) 23%, transparent); border-radius: 8px; padding: 10px 12px; color: var(--danger); font-size: 12px; }
.error-banner > .icon { width: 16px; height: 16px; }
.error-banner > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.error-banner .text-button { color: var(--danger); flex-shrink: 0; }
.error-banner .icon-button { width: 24px; height: 24px; }

/* An open KPI strip gives the analytical panels room to breathe. */
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); margin-bottom: 23px; }
.kpi { position: relative; padding: 19px 21px 17px; min-width: 0; }
.kpi + .kpi::before { content: ""; position: absolute; top: 21px; bottom: 21px; left: 0; width: 1px; background: var(--line); }
.kpi-label { display: flex; align-items: center; justify-content: space-between; gap: 5px; color: var(--secondary); font-size: 11px; }
.kpi-label > .icon { width: 15px; height: 15px; color: var(--muted); }
.kpi-value { font-size: clamp(23px, 2.45vw, 36px); font-weight: 750; letter-spacing: -1.8px; line-height: 1.25; margin: 13px 0 15px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kpi-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 7px; color: var(--muted); font-size: 9px; line-height: 1.9; }
.kpi-foot b { color: var(--secondary); font-family: var(--mono); font-weight: 500; font-size: 9px; }
.kpi-foot-note { font-size: 8px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; overflow: hidden; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px 0; }
.panel-heading h2 { font-size: 13px; line-height: 1.6; font-weight: 750; letter-spacing: -.15px; }
.panel-heading p { font-size: 10px; color: var(--muted); margin-top: 3px; }
.panel-heading .eyebrow { font-size: 8px; letter-spacing: 1.25px; margin-bottom: 6px; }
.analytics-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 20px; margin-bottom: 23px; }
.trend-panel { display: flex; flex-direction: column; }
.mini-tabs { display: flex; gap: 12px; flex-shrink: 0; }
.mini-tabs button { position: relative; background: none; padding: 4px 0; font-size: 9px; color: var(--muted); line-height: 1.6; }
.mini-tabs button.selected { color: var(--ink-strong); font-weight: 700; }
.mini-tabs button.selected::after { content: ""; position: absolute; width: 12px; height: 2px; left: calc(50% - 6px); bottom: -4px; background: var(--violet); border-radius: 2px; }
.trend-summary { display: flex; align-items: baseline; gap: 7px; padding: 17px 22px 8px; min-height: 62px; }
.trend-summary > strong { font-size: 25px; letter-spacing: -.8px; font-weight: 750; line-height: 1.4; font-variant-numeric: tabular-nums; }
.trend-summary > span:not(.chart-legend) { color: var(--muted); font-size: 9px; }
.chart-legend { display: inline-flex; flex-wrap: wrap; gap: 12px; margin-left: auto; align-self: center; padding-top: 8px; font-size: 9px; color: var(--secondary); }
.chart-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.trend-chart { position: relative; flex: 1; min-height: 198px; padding: 0 17px 2px 14px; }
.trend-chart > svg { width: 100%; height: auto; min-height: 195px; overflow: visible; }
.chart-gridline { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 5; }
.chart-axis-label { fill: var(--muted); font-size: 10px; font-family: var(--mono); }
.chart-line { fill: none; stroke: var(--violet); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart-line.cache { stroke: var(--mint); stroke-width: 2; }
.chart-highlight-line { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 4; pointer-events: none; }
.chart-point { fill: var(--surface); stroke: var(--violet); stroke-width: 2.5; }
.chart-point.cache { stroke: var(--mint); }
.chart-hit { fill: transparent; cursor: crosshair; }
.chart-hit:focus { outline: none; fill: color-mix(in srgb, var(--violet) 6%, transparent); }
.chart-hit:focus-visible { stroke: var(--violet); stroke-width: 1; }
.chart-empty { position: absolute; inset: 15px 45px 30px 55px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; background: color-mix(in srgb, var(--surface) 85%, transparent); text-align: center; }
.chart-empty > .icon { width: 26px; height: 26px; margin-bottom: 5px; color: var(--line-strong); }
.chart-empty strong { font-size: 11px; color: var(--secondary); }
.chart-empty > span { font-size: 9px; color: var(--muted); }
.chart-tooltip { position: absolute; z-index: 5; min-width: 148px; max-width: calc(100% - 20px); padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-raised); box-shadow: 0 5px 20px rgb(20 25 50 / 12%); font-size: 10px; pointer-events: none; top: 12px; }
.chart-tooltip > strong { display: block; color: var(--secondary); font-family: var(--mono); font-size: 9px; margin-bottom: 6px; }
.chart-tooltip > div { display: flex; justify-content: space-between; gap: 18px; color: var(--secondary); margin-top: 3px; }
.chart-tooltip b { color: var(--ink); font-family: var(--mono); font-size: 10px; }
.panel-bottom-note { display: flex; align-items: center; gap: 6px; padding: 12px 22px; color: var(--muted); border-top: 1px solid var(--line); font-size: 9px; margin-top: auto; }
.panel-bottom-note > .icon { width: 12px; height: 12px; }
.hit-ring { --ring-value: 0deg; position: relative; width: 42px; height: 42px; border-radius: 50%; background: conic-gradient(var(--mint) var(--ring-value), var(--line) 0); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hit-ring::before { content: ""; width: 34px; height: 34px; border-radius: 50%; background: var(--surface); position: absolute; }
.hit-ring > span { position: relative; font-family: var(--mono); font-size: 8px; font-weight: 500; letter-spacing: -.5px; }
.flow-panel { display: flex; flex-direction: column; }
.flow-visual { padding: 0 24px; flex: 1; display: flex; align-items: center; }
.flow-visual > svg { width: 100%; height: auto; min-height: 165px; }
.flow-guide { fill: none; stroke: var(--line); stroke-width: 13; stroke-linecap: round; }
.flow-ribbon { fill: none; stroke-linecap: round; transition: stroke-width .45s ease; }
.flow-junction { fill: var(--surface-raised); stroke: var(--line-strong); stroke-width: 1; }
.flow-icon { fill: none; stroke: var(--violet); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.flow-end { stroke-width: 1; }
.mint-end { fill: var(--mint-soft); stroke: color-mix(in srgb, var(--mint) 30%, transparent); }
.violet-end { fill: var(--violet-soft); stroke: color-mix(in srgb, var(--violet) 30%, transparent); }
.flow-check { fill: none; stroke: var(--mint); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.violet-stroke { stroke: var(--violet); }
.flow-svg-label { font-size: 10px; fill: var(--secondary); font-family: var(--body); }
.flow-breakdown { display: grid; grid-template-columns: 1fr 1fr; margin: 0 22px 15px; }
.flow-breakdown > div { display: flex; flex-direction: column; padding: 0 14px; min-width: 0; }
.flow-breakdown > div:first-child { padding-left: 0; border-right: 1px solid var(--line); }
.flow-breakdown > div > span { display: flex; align-items: center; gap: 6px; color: var(--secondary); font-size: 10px; }
.flow-breakdown strong { font-size: 24px; font-weight: 750; line-height: 1.4; letter-spacing: -.7px; margin: 3px 0 2px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.flow-breakdown small { color: var(--muted); font-size: 9px; }
.flow-breakdown small b { font-family: var(--mono); color: var(--secondary); font-size: 9px; font-weight: 400; }
.flow-footnote { display: flex; justify-content: center; align-items: center; gap: 5px; color: var(--mint); background: color-mix(in srgb, var(--mint-soft) 45%, var(--surface)); border-top: 1px solid color-mix(in srgb, var(--mint) 9%, var(--line)); padding: 12px; font-size: 9px; }
.flow-footnote .icon { width: 12px; height: 12px; }
.resource-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 23px; align-items: start; }
.database-panel .panel-heading, .optimization-panel .panel-heading { padding-top: 22px; }
.storage-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; margin: 24px 22px 14px; }
.metric-caption { display: block; color: var(--secondary); font-size: 10px; }
.storage-head strong { font-size: 29px; font-weight: 750; letter-spacing: -1px; line-height: 1.5; display: block; margin-top: 3px; }
.storage-limit { color: var(--muted); font-size: 9px; text-align: right; padding-bottom: 5px; }
.storage-limit b { font-family: var(--mono); color: var(--secondary); font-size: 9px; font-weight: 500; }
.storage-limit small { display: block; margin-top: 3px; font-size: 9px; }
.database-meter { height: 7px; margin: 0 22px; position: relative; background: var(--surface-hover); border-radius: 3px; }
.database-meter > span { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--violet); transition: width .45s ease; }
.database-meter > i { display: block; position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--secondary); border-radius: 1px; }
.meter-caption { display: flex; justify-content: space-between; gap: 10px; margin: 7px 22px 21px; color: var(--muted); font-size: 8px; }
.meter-caption b { font-family: var(--mono); font-size: 8px; font-weight: 400; }
.quota-divider { border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 8px; padding-top: 15px; margin: 0 22px 4px; }
.quota-divider > span:first-child { color: var(--secondary); font-size: 9px; }
.quota-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 0 22px; padding: 12px 0 10px; }
.quota-row + .quota-row { border-top: 1px solid var(--line); }
.quota-row > div:first-child { display: flex; align-items: center; gap: 10px; font-size: 11px; }
.quota-icon { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 8px; color: var(--secondary); }
.quota-icon .icon { width: 15px; height: 15px; }
.quota-row small { display: block; color: var(--muted); font-size: 8px; margin-top: 2px; }
.quota-row small b { font-family: var(--mono); font-size: 8px; font-weight: 400; }
.quota-number { text-align: right; min-width: 130px; }
.quota-number > strong { font-family: var(--mono); font-size: 12px; font-weight: 500; }
.quota-number > span { color: var(--muted); font-size: 9px; }
.quota-number > span b { font-size: 9px; font-weight: 400; }
.quota-track { width: 125px; height: 3px; background: var(--surface-hover); margin: 7px 0 0 auto; border-radius: 2px; }
.quota-track i { display: block; height: 3px; width: 0; border-radius: 2px; background: var(--violet); }
.database-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 22px 17px; color: var(--muted); font-size: 9px; }
.database-footer b { color: var(--secondary); font-family: var(--mono); font-size: 9px; font-weight: 500; }
.resource-details { border-top: 1px solid var(--line); }
.resource-details > summary { display: flex; align-items: center; justify-content: space-between; padding: 11px 22px; color: var(--secondary); font-size: 9px; cursor: pointer; list-style: none; }
.resource-details > summary::-webkit-details-marker { display: none; }
.resource-details > summary > .icon { width: 12px; height: 12px; }
.resource-details[open] > summary > .icon { transform: rotate(180deg); }
.resource-details .metric-list { margin: 0; padding: 0 22px 12px; }
.metric-list { margin: 0; }
.metric-list > div { display: flex; justify-content: space-between; gap: 20px; padding: 9px 0; font-size: 10px; }
.metric-list > div + div { border-top: 1px solid var(--line); }
.metric-list dt { color: var(--secondary); min-width: 0; }
.metric-list dd { text-align: right; margin: 0; font-family: var(--mono); font-size: 10px; color: var(--ink); max-width: 60%; overflow-wrap: anywhere; }
.saving-hero { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 20px 22px 18px; }
.saving-hero strong { font-size: 36px; font-weight: 750; line-height: 1.5; letter-spacing: -1.7px; display: block; color: var(--mint); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.saving-label { color: var(--muted); font-size: 9px; line-height: 1.85; text-align: right; }
.efficiency-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; padding: 0 22px 20px; }
.efficiency-metrics > div { min-width: 0; }
.efficiency-metrics span { color: var(--muted); font-size: 8px; display: block; margin-bottom: 5px; }
.efficiency-metrics strong { font-family: var(--mono); font-size: 12px; font-weight: 500; display: block; overflow-wrap: anywhere; }
.compact-storage { margin: 0 22px 17px; border-top: 1px solid var(--line); padding-top: 16px; }
.compact-storage-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.compact-storage h3 { font-size: 11px; font-weight: 700; }
.compact-storage > p { color: var(--muted); font-size: 9px; margin-top: 5px; margin-bottom: 17px; }
.storage-compare-row { display: grid; grid-template-columns: 83px minmax(20px, 1fr) 74px; gap: 10px; align-items: center; font-size: 9px; color: var(--secondary); margin: 10px 0; }
.storage-compare-row strong { font-family: var(--mono); font-size: 9px; font-weight: 400; text-align: right; }
.compare-track { height: 8px; background: var(--surface-hover); border-radius: 2px; }
.compare-track > i { display: block; height: 8px; border-radius: 2px; width: 0; background: color-mix(in srgb, var(--violet) 28%, var(--surface)); transition: width .45s ease; }
.compact-row .compare-track > i { background: var(--mint); }
.storage-saved-note { color: var(--muted); font-size: 9px; margin-top: 14px; display: flex; align-items: center; gap: 4px; }
.storage-saved-note > strong { color: var(--secondary); font-family: var(--mono); font-size: 9px; font-weight: 500; }
.storage-saved-note .text-button { margin-left: auto; font-size: 9px; }

/* Data keeps its precision; wide tables scroll within their own panel. */
.daily-panel { margin-bottom: 23px; }
.daily-panel .panel-heading { padding-bottom: 19px; }
.table-meta { color: var(--muted); font-size: 9px; white-space: nowrap; }
.table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.data-table { width: 100%; border-spacing: 0; border-collapse: collapse; text-align: left; }
.data-table th { background: var(--surface-soft); color: var(--muted); font-size: 9px; font-weight: 550; line-height: 1.5; white-space: nowrap; padding: 11px 15px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.data-table td { padding: 13px 15px; color: var(--secondary); font-family: var(--mono); font-size: 10px; line-height: 1.6; white-space: nowrap; border-bottom: 1px solid var(--line); }
.data-table th:first-child, .data-table td:first-child { padding-left: 22px; }
.data-table th:last-child, .data-table td:last-child { padding-right: 22px; }
.data-table tbody > tr:last-child td { border-bottom: 0; }
.data-table tbody > tr:hover td { background: color-mix(in srgb, var(--surface-soft) 70%, transparent); }
.daily-table { min-width: 850px; }
.daily-table th:not(:first-child), .daily-table td:not(:first-child) { text-align: right; }
.daily-table td:nth-child(3) { color: var(--mint); }
.daily-table td.error-value { color: var(--danger); }
.daily-table td:first-child { color: var(--ink); }
.today-label { display: inline-block; color: var(--violet); background: var(--violet-soft); border-radius: 3px; padding: 1px 4px; margin-left: 6px; font-family: var(--body); font-size: 8px; }
.empty-cell { height: 165px; text-align: center !important; color: var(--muted) !important; white-space: normal !important; font-family: var(--body) !important; padding: 25px !important; }
.empty-cell strong, .empty-cell span { display: block; }
.empty-cell strong { color: var(--secondary); font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.empty-cell span { font-size: 10px; }
.activity-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; }
.activity-list { padding: 10px 22px 2px; }
.activity-row { display: flex; gap: 11px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.activity-row:last-child { border-bottom: 0; }
.activity-icon { display: flex; align-items: center; justify-content: center; width: 29px; height: 29px; flex-shrink: 0; color: var(--violet); border: 1px solid var(--line); background: var(--surface-soft); border-radius: 7px; }
.activity-icon .icon { width: 14px; height: 14px; }
.activity-description { flex: 1; min-width: 0; }
.activity-link { color: var(--ink); background: none; font-family: var(--mono); font-size: 10px; padding: 0; display: block; width: 100%; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-link:hover { color: var(--violet); }
.activity-description > span { display: block; color: var(--muted); font-size: 8px; margin-top: 3px; }
.activity-meta { text-align: right; color: var(--secondary); font-size: 9px; flex-shrink: 0; }
.activity-meta > span { display: block; color: var(--muted); font-size: 8px; margin-top: 2px; }
.list-empty { display: flex; align-items: center; justify-content: center; min-height: 170px; font-size: 11px; color: var(--muted); }
.panel-link { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; padding: 12px; border-top: 1px solid var(--line); background: transparent; color: var(--secondary); font-size: 10px; }
.panel-link:hover { color: var(--violet); background: var(--surface-soft); }
.panel-link .icon { width: 13px; height: 13px; }
.today-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; padding: 23px 22px 18px; }
.today-grid span { color: var(--muted); font-size: 9px; display: block; }
.today-grid strong { font-size: 22px; letter-spacing: -.5px; margin-top: 4px; display: block; line-height: 1.5; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.health-rates { margin: 0 22px 16px; display: flex; justify-content: space-between; gap: 12px; font-size: 9px; color: var(--secondary); }
.health-rates b { font-family: var(--mono); font-size: 10px; color: var(--mint); margin-left: 4px; }
.status-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 22px 18px; font-size: 10px; }
.status-badge { display: inline-flex; align-items: center; gap: 5px; font-family: var(--body); background: var(--surface-hover); color: var(--secondary); font-size: 9px; padding: 3px 7px; border-radius: 4px; white-space: nowrap; line-height: 1.5; max-width: 100%; }
.status-badge.good { background: var(--mint-soft); color: var(--mint); }
.status-badge.bad { background: var(--danger-soft); color: var(--danger); }
.status-badge .status-dot { width: 4px; height: 4px; background: currentColor; }
.status-badge > span { max-width: 230px; overflow: hidden; text-overflow: ellipsis; }
.status-badge b { font-family: var(--mono); font-weight: 500; margin-left: 3px; }
.health-note { border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; padding: 12px 22px; margin-top: 5px; }
.health-note b { color: var(--secondary); font-family: var(--mono); font-weight: 500; }
.dashboard-footnote { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-top: 19px; color: var(--muted); font-size: 9px; }
.dashboard-footnote > span { display: flex; align-items: flex-start; gap: 5px; max-width: 70%; }
.dashboard-footnote .icon { width: 12px; height: 12px; margin-top: 1px; }
.dashboard-footnote .text-button { font-size: 9px; flex-shrink: 0; }
.app-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 34px 22px; margin: 0 auto; max-width: 1600px; color: var(--muted); font-size: 9px; }
.app-footer > span:first-child { display: inline-flex; align-items: center; gap: 5px; font-weight: 750; font-size: 10px; color: var(--secondary); letter-spacing: -.3px; }
.footer-brand-mark { color: var(--violet); font-size: 15px; line-height: 1; }
#dashboard-content[aria-busy="true"] [data-metric], #dashboard-content[aria-busy="true"] .trend-summary > strong { opacity: .5; }
#refresh-button.is-loading .icon, .icon-button.is-loading .icon, #drawer-reload.is-loading .icon { animation: spin 1s linear infinite; }

/* Cache library and workbench */
.cache-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 21px 22px 10px; }
.search-form { display: flex; gap: 8px; flex: 1; max-width: 570px; }
.search-field { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 7px; padding: 0 11px; }
.search-field:focus-within { border-color: var(--violet); }
.search-field > .icon { width: 15px; height: 15px; color: var(--muted); }
.search-field input { width: 100%; border: 0; height: 35px; background: transparent; font-size: 11px; }
.search-field input:focus-visible { outline: 0; }
.search-field input::placeholder { color: var(--muted); }
.cache-filters { display: flex; align-items: center; gap: 8px; }
.filter-select { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); border-radius: 7px; padding: 0 10px; height: 36px; }
.filter-select .icon { width: 14px; height: 14px; color: var(--muted); }
.filter-select select { border: 0; padding: 5px 0; background: transparent; font-size: 11px; }
.cache-search-note { display: flex; justify-content: space-between; gap: 10px; padding: 0 22px 16px; color: var(--muted); font-size: 9px; }
.cache-search-note .text-button { font-size: 9px; }
.cache-table { min-width: 830px; }
.cache-table td { padding-top: 15px; padding-bottom: 15px; }
.cache-table td:nth-child(3) { color: var(--ink); }
.entry-cell { min-width: 250px; max-width: 350px; }
.entry-url { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0; background: transparent; color: var(--ink); text-align: left; font-family: var(--mono); font-size: 11px; line-height: 1.6; }
.entry-url:hover { color: var(--violet); }
.entry-id { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; overflow: hidden; text-overflow: ellipsis; }
.row-detail-button { border: 1px solid var(--line); background: var(--surface); display: flex; align-items: center; justify-content: center; width: 27px; height: 27px; color: var(--secondary); border-radius: 5px; }
.row-detail-button:hover { color: var(--violet); border-color: var(--violet); }
.row-detail-button .icon { width: 13px; height: 13px; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-top: 1px solid var(--line); }
.pagination > span { color: var(--muted); font-size: 10px; }
.pagination > div { display: flex; align-items: center; gap: 13px; }
.pagination .button { min-height: 30px; font-size: 10px; padding: 6px 9px; }
.pagination .button .icon { width: 12px; height: 12px; }
.page-number { font-size: 10px; font-family: var(--mono); color: var(--secondary); min-width: 14px; text-align: center; }
.section-error { margin: 0 22px 15px; padding: 10px 12px; border-radius: 6px; background: var(--danger-soft); color: var(--danger); font-size: 11px; overflow-wrap: anywhere; }
#cache-table-region[aria-busy="true"] { opacity: .55; }
.resolve-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(240px, 1fr); gap: 35px; align-items: start; }
.resolve-input-panel > .panel-heading { padding-bottom: 20px; }
#resolve-form { padding: 0 22px 22px; }
#resolve-input { display: block; width: 100%; resize: vertical; min-height: 230px; max-height: 600px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface-soft); padding: 16px; font-family: var(--mono); font-size: 11px; line-height: 2; }
#resolve-input::placeholder { color: var(--muted); font-family: var(--body); font-size: 11px; }
#resolve-input:focus { border-color: var(--violet); }
.input-footer { display: flex; justify-content: space-between; gap: 10px; margin: 10px 1px 8px; color: var(--secondary); font-size: 10px; }
.input-footer .text-button { color: var(--secondary); font-size: 10px; }
#link-count.over-limit { color: var(--danger); }
.resolve-submit-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
#resolve-progress { font-size: 10px; color: var(--muted); }
.resolve-explainer { padding: 22px 9px 0 0; }
.resolve-explainer > .eyebrow { color: var(--violet); font-size: 9px; letter-spacing: 1.2px; }
.resolve-explainer > h2 { font-size: 25px; line-height: 1.6; letter-spacing: -.8px; margin: 13px 0 26px; }
.explain-step { display: flex; align-items: flex-start; gap: 11px; margin: 20px 0; }
.explain-step .icon-tile { width: 30px; height: 30px; border-radius: 8px; }
.explain-step .icon { width: 15px; height: 15px; }
.explain-step h3 { font-size: 11px; font-weight: 700; }
.explain-step p { color: var(--muted); font-size: 10px; margin-top: 4px; line-height: 1.9; }
.resolve-explainer > .text-button { font-size: 10px; margin-left: 41px; }
.resolve-results-panel { margin-top: 24px; }
.resolve-results-panel .panel-heading { padding-bottom: 15px; }
.resolve-stats { display: flex; gap: 24px; flex-wrap: wrap; padding: 0 22px 19px; }
.resolve-stat { color: var(--muted); font-size: 10px; }
.resolve-stat b { font-family: var(--mono); font-size: 13px; margin-left: 6px; color: var(--ink); }
.resolve-stat.good b { color: var(--mint); }
.resolve-stat.bad b { color: var(--danger); }
.result-table { min-width: 650px; }
.result-table .entry-cell { max-width: 420px; }
.result-usage { padding: 13px 22px; color: var(--muted); font-size: 10px; border-top: 1px solid var(--line); }

/* Reference, not decoration: explain the exact measures being displayed. */
.guide-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: start; margin-bottom: 23px; }
.guide-card .panel-heading { padding-bottom: 20px; }
.code-label { display: flex; align-items: center; gap: 8px; padding: 11px 16px; margin: 0 22px; border: 1px solid var(--line); border-bottom: 0; border-radius: 7px 7px 0 0; background: var(--surface-soft); color: var(--secondary); }
.code-label > code { font-family: var(--mono); font-size: 10px; }
.code-label > span:last-child { font-size: 9px; color: var(--muted); margin-left: auto; }
.method-badge { display: inline-block; color: var(--violet); font-family: var(--mono); font-weight: 500; font-size: 9px; min-width: 42px; }
.method-badge.get { color: var(--mint); }
.method-badge.delete { color: var(--danger); }
.code-block { margin: 0 22px; padding: 17px 16px; border: 1px solid var(--line); background: var(--surface-soft); border-radius: 0 0 7px 7px; overflow-x: auto; color: var(--secondary); font-size: 10px; line-height: 2; tab-size: 2; }
.code-block code { font-family: var(--mono); }
.guide-callout { display: flex; align-items: flex-start; gap: 6px; font-size: 9px; color: var(--muted); line-height: 1.9; padding: 14px 22px; }
.guide-callout .icon { width: 12px; height: 12px; margin-top: 3px; }
.endpoint-list { border-top: 1px solid var(--line); padding: 5px 22px 12px; }
.endpoint-list > div { display: flex; align-items: center; gap: 10px; padding: 12px 0; font-size: 9px; }
.endpoint-list > div + div { border-top: 1px solid var(--line); }
.endpoint-list code { color: var(--secondary); font-size: 9px; font-family: var(--mono); overflow-wrap: anywhere; }
.endpoint-list > div > span:last-child { color: var(--muted); margin-left: auto; text-align: right; }
.measurement-list { padding: 0 22px 10px; }
.measurement-list > div { padding: 13px 0; }
.measurement-list dd { font-size: 9px; }
.measurement-notes { background: var(--surface-soft); border-top: 1px solid var(--line); padding: 15px 22px; }
.measurement-notes p { color: var(--muted); font-size: 10px; line-height: 1.9; overflow-wrap: anywhere; }
.measurement-notes p + p { margin-top: 10px; }
.definitions-card .panel-heading { padding-bottom: 20px; }
.definitions-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 28px; padding: 0 22px 27px; }
.definitions-grid h3 { font-size: 11px; font-weight: 700; margin-bottom: 8px; }
.definitions-grid p { color: var(--secondary); font-size: 10px; line-height: 2; }
.price-reference { display: flex; justify-content: space-between; align-items: center; gap: 15px; flex-wrap: wrap; padding: 15px 22px; border-top: 1px solid var(--line); font-size: 9px; color: var(--muted); }
.price-reference b { color: var(--secondary); font-family: var(--mono); font-weight: 400; margin-left: 3px; }

/* Inspectors and confirmations */
.drawer-backdrop, .sidebar-scrim { position: fixed; inset: 0; background: rgb(15 19 35 / 28%); z-index: 50; backdrop-filter: blur(2px); }
.entry-drawer { position: fixed; z-index: 51; inset: 0 0 0 auto; width: min(480px, 100%); display: flex; flex-direction: column; border-left: 1px solid var(--line); background: var(--surface); box-shadow: -20px 0 80px rgb(20 25 50 / 10%); animation: enter-drawer .24s ease-out; }
.drawer-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 25px 26px 21px; border-bottom: 1px solid var(--line); }
.drawer-header .eyebrow { font-size: 8px; }
.drawer-header h2 { font-size: 19px; letter-spacing: -.5px; margin-top: 5px; }
.drawer-body { overflow-y: auto; padding: 24px 26px; flex: 1; overscroll-behavior: contain; }
.drawer-status { display: flex; align-items: center; gap: 9px; margin-bottom: 24px; }
.drawer-status > .status-badge { font-size: 10px; }
.drawer-status > span:not(.status-badge) { color: var(--muted); font-size: 10px; }
.drawer-field { margin-bottom: 23px; }
.drawer-field > label, .drawer-field-label > label { display: block; color: var(--secondary); font-size: 11px; font-weight: 650; }
.drawer-field > a { display: block; font-family: var(--mono); font-size: 11px; line-height: 1.9; margin-top: 8px; }
.drawer-field-label { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 8px; }
.drawer-field-label .text-button { font-size: 10px; }
.read-only-field { display: block; width: 100%; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 7px; padding: 11px 12px; font-family: var(--mono); font-size: 11px; line-height: 1.9; resize: vertical; }
.read-only-field::placeholder { color: var(--muted); font-family: var(--body); font-size: 10px; }
.token-field { min-height: 80px; max-height: 200px; overflow-wrap: anywhere; }
.long-url-field { min-height: 112px; max-height: 250px; overflow-wrap: anywhere; }
.drawer-url-actions { display: flex; gap: 8px; margin-top: 10px; }
.drawer-url-actions .button { font-size: 10px; min-height: 32px; }
a[aria-disabled="true"] { pointer-events: none; opacity: .45; }
.drawer-metadata { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 7px; }
.drawer-metadata dd { font-size: 9px; }
#drawer-message { margin-top: 16px; }
.drawer-footer { display: flex; justify-content: space-between; gap: 15px; padding: 18px 26px; border-top: 1px solid var(--line); background: var(--surface); }
.confirm-dialog { max-width: calc(100% - 32px); width: 408px; padding: 28px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 16px; box-shadow: var(--shadow-raised); }
.confirm-dialog::backdrop { background: rgb(15 19 35 / 40%); backdrop-filter: blur(3px); }
.confirm-icon { width: 42px; height: 42px; background: var(--danger-soft); color: var(--danger); display: flex; align-items: center; justify-content: center; border-radius: 12px; margin-bottom: 18px; }
.confirm-icon .icon { width: 21px; height: 21px; }
.confirm-dialog h2 { font-size: 19px; letter-spacing: -.4px; }
.confirm-dialog > p:not(.delete-url, .inline-error) { color: var(--secondary); margin-top: 11px; font-size: 12px; line-height: 1.9; }
.delete-url { background: var(--surface-soft); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; font-family: var(--mono); font-size: 10px; line-height: 1.9; margin-top: 17px; overflow-wrap: anywhere; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 25px; }
.toast-region { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; position: fixed; right: 24px; bottom: 24px; z-index: 90; width: min(390px, calc(100% - 32px)); pointer-events: none; }
.toast { display: flex; align-items: flex-start; gap: 9px; background: var(--surface-raised); border: 1px solid var(--line-strong); border-radius: 9px; color: var(--ink); box-shadow: var(--shadow-raised); padding: 13px 15px; font-size: 12px; animation: enter-toast .18s ease-out; max-width: 100%; overflow-wrap: anywhere; pointer-events: auto; }
.toast > .icon { color: var(--mint); width: 16px; height: 16px; margin-top: 1px; }
.toast.error > .icon { color: var(--danger); }
.noscript-message { position: fixed; z-index: 100; bottom: 20px; left: 20px; right: 20px; text-align: center; padding: 15px; background: var(--danger-soft); border: 1px solid var(--danger); border-radius: 8px; color: var(--danger); font-size: 13px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes enter-view { from { opacity: .4; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes enter-drawer { from { transform: translateX(35px); opacity: .4; } to { transform: translateX(0); opacity: 1; } }
@keyframes enter-toast { from { opacity: .3; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 1600px) {
  .main-content { padding-top: 39px; }
  .panel-heading { padding: 24px 27px 0; }
  .kpi { padding: 23px 27px 21px; }
  .analytics-grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
  .trend-chart { min-height: 230px; }
  .flow-visual { padding: 5px 36px; }
}
@media (max-width: 1240px) {
  :root { --sidebar: 212px; }
  .sidebar { padding-left: 12px; padding-right: 12px; }
  .main-content { padding: 28px 25px 20px; }
  .topbar { padding: 0 25px; }
  .app-footer { padding-left: 25px; padding-right: 25px; }
  .kpi { padding: 18px 15px 15px; }
  .kpi-label { font-size: 10px; }
  .kpi-value { font-size: 29px; }
  .kpi-foot { font-size: 8px; }
  .kpi-foot-note { display: none; }
  .panel-heading { padding-left: 18px; padding-right: 18px; }
  .analytics-grid, .resource-grid, .activity-grid { gap: 16px; }
  .analytics-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
  .trend-summary { padding-left: 18px; padding-right: 18px; }
  .flow-visual { padding-left: 16px; padding-right: 16px; }
  .flow-breakdown { margin-left: 18px; margin-right: 18px; }
  .chart-legend { gap: 8px; font-size: 8px; }
  .trend-chart { min-height: 195px; }
  .efficiency-metrics { grid-template-columns: repeat(2, 1fr); gap: 15px 20px; padding-bottom: 17px; }
  .saving-hero { padding-top: 16px; padding-bottom: 16px; }
  .today-grid { grid-template-columns: repeat(2, 1fr); gap: 15px 18px; padding-top: 18px; }
  .guide-grid { grid-template-columns: 1.1fr 1fr; gap: 16px; }
  .definitions-grid { grid-template-columns: repeat(2, 1fr); }
  .resolve-layout { gap: 24px; grid-template-columns: minmax(0, 1.55fr) minmax(220px, 1fr); }
}
@media (max-width: 1000px) {
  .main-content { padding: 26px 22px 20px; }
  .topbar { padding-left: 22px; padding-right: 22px; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { padding: 19px 21px 16px; }
  .kpi:nth-child(3), .kpi:nth-child(4) { border-top: 1px solid var(--line); }
  .kpi:nth-child(3)::before { display: none; }
  .kpi-value { font-size: 33px; }
  .kpi-foot { font-size: 9px; }
  .kpi-foot-note { display: inline; }
  .analytics-grid { grid-template-columns: minmax(0, 1fr); }
  .trend-chart { min-height: 220px; }
  .flow-panel { display: grid; grid-template-columns: 1.1fr 1fr; }
  .flow-panel .panel-heading { grid-column: 1 / -1; padding-bottom: 9px; }
  .flow-visual { padding-left: 20px; }
  .flow-visual > svg { min-height: 145px; }
  .flow-breakdown { margin: 0 20px; align-self: center; }
  .flow-breakdown > div { padding: 0 12px; }
  .flow-footnote { grid-column: 1 / -1; }
  .resource-grid { grid-template-columns: 1fr; }
  .efficiency-metrics { grid-template-columns: repeat(4, 1fr); }
  .activity-grid { grid-template-columns: 1fr; }
  .today-grid { grid-template-columns: repeat(4, 1fr); }
  .overview-toolbar { flex-wrap: wrap; }
  .toolbar-actions { margin-left: auto; }
  .refresh-select { order: 3; margin-left: 4px; }
  .heading-aside { padding-top: 10px; }
  .guide-grid { grid-template-columns: 1fr; }
  .resolve-layout { grid-template-columns: 1fr; gap: 20px; }
  .resolve-explainer { border-left: 2px solid var(--line-strong); padding: 0 0 0 20px; }
  .resolve-explainer > h2 { font-size: 19px; margin: 8px 0 18px; }
  .resolve-explainer > h2 br { display: none; }
  .explain-step { display: inline-flex; width: 31%; vertical-align: top; margin: 0 1% 15px 0; gap: 8px; }
  .explain-step .icon-tile { display: none; }
  .resolve-explainer > .text-button { margin-left: 0; display: flex; width: fit-content; }
  .cache-toolbar { flex-wrap: wrap; }
  .search-form { max-width: none; min-width: 220px; }
}
@media (max-width: 760px) {
  .mobile-only { display: inline-flex !important; }
  .sidebar { width: 248px; transform: translateX(-100%); transition: transform .2s ease; z-index: 41; padding: 25px 14px 20px; }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar-scrim { z-index: 40; }
  .sidebar-brand { padding-right: 0; }
  .sidebar-brand > .icon-button { width: 26px; height: 26px; }
  .main-shell { margin-left: 0; }
  .main-content { padding: 24px 20px 20px; }
  .topbar { height: 58px; padding: 0 18px 0 12px; }
  .breadcrumb { gap: 9px; font-size: 10px; }
  .breadcrumb-workspace, .breadcrumb-divider, .timezone { display: none; }
  .topbar-meta { font-size: 9px; }
  .main-content { min-height: calc(100svh - 116px); }
  .page-heading h1 { font-size: 26px; }
  .page-heading { margin-bottom: 21px; }
  .page-heading p { font-size: 10px; }
  .heading-aside { font-size: 8px; gap: 4px; }
  .live-indicator { font-size: 9px; }
  .overview-toolbar { margin-bottom: 20px; }
  .toolbar-actions { gap: 7px; }
  .toolbar-actions .button { min-height: 33px; font-size: 10px; padding: 7px 10px; }
  .refresh-select { margin-left: 0; }
  .refresh-select select { font-size: 9px; }
  .segmented-control button { padding: 5px 10px; }
  .panel-heading { padding-left: 20px; padding-right: 20px; }
  .analytics-grid, .resource-grid, .activity-grid { gap: 19px; }
  .kpi-grid, .analytics-grid, .resource-grid, .daily-panel { margin-bottom: 20px; }
  .trend-chart { min-height: 200px; }
  .trend-chart > svg { min-height: 195px; }
  .chart-legend { font-size: 9px; gap: 12px; }
  .cache-table { min-width: 790px; }
  .app-footer { padding: 16px 20px 20px; }
  .app-footer > span:last-child { font-size: 8px; }
  .auth-topbar { padding: 24px 7%; }
  .auth-layout { display: block; max-width: 430px; width: 86%; padding: 50px 0 70px; }
  .auth-card h1 { font-size: 39px; }
  .auth-art { display: none; }
  .auth-intro { margin-top: 18px; margin-bottom: 32px; }
  .auth-footer { width: 86%; }
  .auth-theme select { font-size: 10px; max-width: 95px; }
  .auth-theme { gap: 2px; }
  .dashboard-footnote > span { max-width: 65%; }
}
@media (max-width: 480px) {
  .main-content { padding: 22px 14px 16px; }
  .page-heading { align-items: flex-start; gap: 10px; }
  .page-heading h1 { font-size: 25px; }
  .page-heading p { font-size: 10px; max-width: 245px; }
  .page-heading .eyebrow { font-size: 8px; }
  .heading-aside { padding-top: 8px; max-width: 100px; text-align: right; }
  .heading-aside .live-indicator { font-size: 8px; white-space: nowrap; }
  #last-updated { max-width: 100px; font-size: 8px; }
  .overview-toolbar { gap: 10px; }
  .toolbar-actions { width: 100%; justify-content: flex-end; }
  .refresh-select { order: 0; margin-right: auto; }
  .toolbar-actions .button { min-height: 32px; }
  .kpi { padding: 16px 15px 14px; }
  .kpi-label { font-size: 9px; }
  .kpi-label .icon { width: 13px; height: 13px; }
  .kpi-value { font-size: 29px; letter-spacing: -1.25px; margin: 12px 0; }
  .kpi-foot { font-size: 8px; gap: 3px 6px; }
  .kpi-foot b { font-size: 8px; }
  .kpi-foot-note { display: none; }
  .panel-heading { padding: 18px 16px 0; }
  .panel-heading h2 { font-size: 12px; }
  .panel-heading p { font-size: 9px; }
  .panel-heading .eyebrow { font-size: 7px; }
  .mini-tabs { gap: 10px; }
  .mini-tabs button { font-size: 8px; }
  .trend-summary { padding: 16px 16px 3px; gap: 5px; }
  .trend-summary > strong { font-size: 22px; }
  .trend-summary > span:not(.chart-legend) { font-size: 8px; }
  .chart-legend { font-size: 8px; gap: 8px; padding-top: 4px; }
  .chart-legend .legend-dot { width: 5px; height: 5px; }
  .trend-chart { min-height: 180px; padding-left: 4px; padding-right: 10px; }
  .trend-chart > svg { min-height: 180px; }
  .panel-bottom-note { font-size: 8px; padding: 11px 16px; }
  .flow-panel { grid-template-columns: 1fr; }
  .flow-panel .panel-heading { grid-column: auto; padding-bottom: 0; }
  .flow-visual { padding: 0 22px; max-height: 180px; }
  .flow-visual > svg { height: 180px; }
  .flow-breakdown { margin: 0 22px 16px; }
  .flow-breakdown strong { font-size: 25px; }
  .flow-breakdown > div { padding-left: 22px; }
  .flow-footnote { font-size: 8px; grid-column: auto; }
  .resource-grid .panel-heading { padding-left: 16px; padding-right: 16px; }
  .outline-badge { padding: 3px 6px; font-size: 8px; }
  .storage-head, .meter-caption, .quota-row, .quota-divider, .compact-storage { margin-left: 16px; margin-right: 16px; }
  .database-meter { margin-left: 16px; margin-right: 16px; }
  .storage-head strong { font-size: 27px; }
  .storage-head { margin-top: 22px; }
  .quota-number { min-width: 120px; }
  .quota-number > strong { font-size: 11px; }
  .database-footer { padding-left: 16px; padding-right: 16px; font-size: 8px; }
  .database-footer b { font-size: 8px; }
  .saving-hero { padding-left: 16px; padding-right: 16px; }
  .saving-hero strong { font-size: 33px; }
  .efficiency-metrics { grid-template-columns: repeat(2, 1fr); padding-left: 16px; padding-right: 16px; }
  .efficiency-metrics span { font-size: 9px; }
  .efficiency-metrics strong { font-size: 13px; }
  .storage-compare-row { grid-template-columns: 75px minmax(20px, 1fr) 65px; gap: 6px; font-size: 8px; }
  .storage-compare-row strong { font-size: 8px; }
  .compact-storage > p { font-size: 8px; }
  .today-grid { grid-template-columns: repeat(2, 1fr); gap: 15px 18px; }
  .activity-list { padding-left: 16px; padding-right: 16px; }
  .activity-meta { font-size: 8px; }
  .activity-link { font-size: 9px; }
  .dashboard-footnote { flex-direction: column; gap: 8px; font-size: 8px; }
  .dashboard-footnote > span { max-width: 100%; }
  .app-footer { padding-left: 14px; padding-right: 14px; }
  .app-footer > span:last-child { font-size: 7px; }
  #view-cache .page-heading { flex-wrap: wrap; }
  #view-cache .page-heading .button { font-size: 10px; padding: 7px 11px; min-height: 32px; }
  .cache-toolbar { padding: 16px 16px 10px; gap: 11px; }
  .search-form { flex-basis: 100%; }
  .search-field input { font-size: 10px; }
  .cache-filters { width: 100%; justify-content: space-between; }
  .filter-select select { font-size: 10px; }
  .cache-search-note { padding: 0 16px 14px; font-size: 8px; }
  .pagination { padding: 13px 16px; flex-wrap: wrap; }
  .pagination > span { font-size: 9px; }
  .pagination > div { gap: 9px; }
  .pagination .button { font-size: 9px; }
  #view-resolve .page-heading { flex-wrap: wrap; }
  #resolve-form { padding-left: 16px; padding-right: 16px; }
  #resolve-input { padding: 13px; font-size: 10px; }
  .resolve-explainer { padding-left: 14px; }
  .explain-step { display: flex; width: auto; gap: 10px; margin-bottom: 16px; }
  .explain-step .icon-tile { display: flex; }
  .resolve-explainer > .text-button { margin-left: 40px; }
  .resolve-results-panel .panel-heading { flex-wrap: wrap; gap: 13px; }
  .resolve-results-panel .panel-heading .button { min-height: 30px; font-size: 10px; }
  .resolve-stats { gap: 12px 20px; padding-left: 16px; padding-right: 16px; }
  .resolve-stat { font-size: 9px; }
  .resolve-stat b { font-size: 12px; }
  .result-usage { font-size: 9px; padding-left: 16px; padding-right: 16px; }
  .code-label, .code-block { margin-left: 16px; margin-right: 16px; }
  .code-block { padding: 12px; font-size: 9px; }
  .endpoint-list { padding-left: 16px; padding-right: 16px; }
  .endpoint-list > div { gap: 6px; font-size: 8px; }
  .endpoint-list code { font-size: 8px; }
  .method-badge { font-size: 8px; min-width: 36px; }
  .endpoint-list > div > span:last-child { max-width: 82px; }
  .definitions-grid { grid-template-columns: 1fr; padding-left: 16px; padding-right: 16px; gap: 22px; }
  .price-reference { flex-direction: column; align-items: flex-start; gap: 7px; }
  .measurement-list { padding-left: 16px; padding-right: 16px; }
  .measurement-list dd { font-size: 8px; }
  .drawer-header { padding: 22px 20px 18px; }
  .drawer-body { padding: 22px 20px; }
  .drawer-footer { padding: 16px 20px; }
  .toast-region { bottom: 16px; right: 16px; }
  .auth-topbar { padding: 22px 6%; }
  .auth-topbar .brand { font-size: 15px; }
  .auth-topbar .brand-caption { font-size: 7px; }
  .auth-topbar .brand-mark { width: 32px; height: 32px; }
  .auth-layout { width: 86%; padding-top: 45px; }
  .auth-card h1 { font-size: 37px; }
  .auth-intro { font-size: 12px; }
  .auth-card > .eyebrow { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
