:root {
  color-scheme: dark;
  --bg: #101115;
  --rail: #131419;
  --panel: #17181e;
  --raised: #1d1e26;
  --line: #2b2c35;
  --text: #efeff5;
  --muted: #a1a3b3;
  --quiet: #898ea3;
  --accent: #b5a0ff;
  --accent-bg: #2b243e;
  --green: #68dab6;
  --amber: #eac28a;
  --red: #f69d9d;
  --grid: #292a33;
  --shadow: 0 30px 100px #0008;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f7fa;
  --rail: #fff;
  --panel: #fff;
  --raised: #f0f1f6;
  --line: #e1e3eb;
  --text: #212434;
  --muted: #5e6376;
  --quiet: #646b80;
  --accent: #6c49ce;
  --accent-bg: #ece7fc;
  --green: #117653;
  --amber: #815513;
  --red: #ad3030;
  --grid: #e7e9f1;
  --shadow: 0 30px 100px #232a4820;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 13px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
  border: 0;
  background: none;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
input,
select {
  color: var(--text);
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  min-width: 0;
}
select {
  cursor: pointer;
}
button,
a,
input,
select,
summary {
  touch-action: manipulation;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  letter-spacing: -0.03em;
  line-height: 1.3;
}
h1 {
  font-size: 30px;
  font-weight: 600;
}
h2 {
  font-size: 15px;
  font-weight: 600;
}
h3 {
  font-size: 14px;
  font-weight: 500;
}
code,
kbd,
.mono {
  font-family: "Cascadia Code", Consolas, monospace;
}
code {
  font-size: 11px;
  overflow-wrap: anywhere;
}
svg {
  display: block;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip {
  position: fixed;
  top: -80px;
  left: 10px;
  background: var(--accent);
  color: var(--bg);
  z-index: 100;
  padding: 12px;
}
.skip:focus {
  top: 10px;
}
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: 224px;
  background: var(--rail);
  border-right: 1px solid var(--line);
  padding: 28px 16px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -1px;
  padding: 0 11px;
}
.brand svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}
.brand-dot {
  color: var(--accent);
}
.workspace-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  margin: 31px 0 27px;
  text-align: left;
}
.workspace-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: var(--accent);
  background: var(--accent-bg);
  font-size: 12px;
  font-weight: 600;
}
.workspace-switch > span:last-child {
  margin-left: auto;
  color: var(--muted);
}
.workspace-switch strong {
  display: block;
  font-size: 11px;
  font-weight: 500;
}
.workspace-switch small {
  color: var(--muted);
  font-size: 10px;
  display: block;
}
.nav-caption {
  font-size: 10px;
  letter-spacing: 1.7px;
  color: var(--quiet);
  padding: 0 13px;
  margin-bottom: 11px;
}
.rail nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rail nav button {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--muted);
  text-align: left;
}
.rail nav button > span:first-child {
  font-size: 17px;
  line-height: 1;
  width: 18px;
  text-align: center;
}
.rail nav button[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-bg);
}
.rail nav button:hover {
  background: var(--raised);
}
.nav-dot {
  background: var(--green);
  border-radius: 50%;
  height: 5px;
  width: 5px;
  margin-left: auto;
}
.count {
  display: inline-block;
  background: var(--raised);
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 4px;
  padding: 0 5px;
  font-size: 10px;
  font-weight: 400;
  margin-left: 6px;
}
.rail .count {
  margin-left: auto;
}
.rail-bottom {
  margin-top: auto;
}
.rail-bottom > a {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
  padding: 8px 12px;
}
.connection-summary {
  margin: 18px 10px 0;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  color: var(--muted);
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 10px;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--quiet);
  border-radius: 50%;
  flex-shrink: 0;
}
.demo-dot {
  background: var(--amber);
}
.shell {
  margin-left: 224px;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  gap: 20px;
}
.crumb {
  display: flex;
  gap: 13px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}
.crumb span {
  color: var(--quiet);
}
.crumb strong {
  font-weight: 500;
  color: var(--text);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}
.search-shortcut {
  color: var(--muted);
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 11px;
}
.search-shortcut > span {
  font-size: 22px;
  line-height: 1;
}
.search-shortcut kbd {
  font-size: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 4px;
  color: var(--quiet);
  margin-left: 35px;
}
.icon-button {
  font-size: 20px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  color: var(--muted);
}
.icon-button:hover {
  background: var(--raised);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.button:hover:not(:disabled) {
  border-color: var(--quiet);
  background: var(--raised);
}
.button.primary {
  background: #ac96f4;
  border-color: #ac96f4;
  color: #191125;
  font-weight: 600;
}
.button.primary:hover:not(:disabled) {
  background: #bba8fc;
}
.connect-button {
  background: var(--raised);
  font-size: 10px;
}
.quiet {
  border-color: transparent;
  background: none;
  color: var(--muted);
  font-size: 10px;
}
.shell main {
  max-width: 1680px;
  padding: 26px 36px 0;
  margin: auto;
  min-width: 0;
}
.demo-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 28px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 7px;
  padding: 11px 14px;
}
.demo-pill {
  border: 1px solid #a4875355;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 10px;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: 0.8px;
}
.demo-banner button {
  margin-left: auto;
  font-size: 10px;
  color: var(--accent);
  white-space: nowrap;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4px 0 28px;
  gap: 20px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 500;
  color: var(--quiet);
  margin-bottom: 11px;
}
.page-heading p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}
.page-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.refresh-status {
  font-size: 10px;
  color: var(--muted);
  max-width: 140px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 33px;
}
.stat-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 18px;
  overflow: hidden;
  text-align: left;
  min-height: 160px;
}
.stat-card:hover {
  border-color: var(--quiet);
}
.stat-card.selected {
  border-color: #a994ff70;
}
.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
}
.stat-icon {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 5px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--accent);
}
.stat-number {
  display: block;
  font-size: 29px;
  letter-spacing: -1px;
  font-weight: 500;
  line-height: 1.4;
  margin: 12px 0 6px;
}
.stat-meta {
  position: relative;
  z-index: 1;
  font-size: 10px;
  color: var(--muted);
}
.stat-spark {
  position: absolute;
  width: 47%;
  height: 48px;
  right: 10px;
  bottom: 18px;
  opacity: 0.7;
}
.stat-kind {
  font-size: 10px;
  color: var(--quiet);
  display: block;
  margin-top: 8px;
}
.section-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}
.section-top > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-top h2 {
  display: inline-block;
}
.section-mark {
  width: 3px;
  height: 15px;
  border-radius: 2px;
  background: var(--accent);
}
.section-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.subtle {
  font-size: 10px;
  color: var(--muted);
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.query-controls {
  display: flex;
  align-items: end;
  gap: 12px;
  padding: 20px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
  min-width: 0;
}
.field input,
.field select {
  font-size: 11px;
  width: 100%;
  height: 37px;
}
.metric-field {
  flex: 1;
  min-width: 140px;
}
.agg-field {
  width: 115px;
}
.field-label {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-bottom: 7px;
}
.segmented {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px;
  background: var(--bg);
  gap: 2px;
  min-height: 36px;
}
.segmented button {
  font-size: 10px;
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
}
.segmented button[aria-pressed="true"] {
  background: var(--raised);
  color: var(--text);
  box-shadow: 0 1px 3px #0002;
}
.run-query {
  height: 37px;
}
.custom-range {
  display: flex;
  gap: 15px;
  padding: 0 20px 20px;
}
.filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px 18px;
  border-bottom: 1px solid var(--line);
  min-height: 40px;
  flex-wrap: wrap;
}
.filter-label {
  font-size: 10px;
  letter-spacing: 0.8px;
  color: var(--quiet);
}
.filter-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.filter-chip {
  font-size: 10px;
  border: 1px solid var(--line);
  background: var(--raised);
  border-radius: 4px;
  padding: 2px 6px;
  overflow-wrap: anywhere;
  max-width: 300px;
}
.filter-chip button {
  color: var(--muted);
  padding: 0 0 0 8px;
}
.add-filter {
  font-size: 10px;
  color: var(--muted);
}
.live-control {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  font-size: 10px;
  color: var(--muted);
}
#live-toggle {
  width: 28px;
  height: 16px;
  background: var(--line);
  border-radius: 20px;
  padding: 2px;
}
#live-toggle span {
  display: block;
  width: 12px;
  height: 12px;
  background: var(--muted);
  border-radius: 50%;
  transition: transform 0.15s;
}
#live-toggle[aria-checked="true"] {
  background: #3e675c;
}
#live-toggle[aria-checked="true"] span {
  background: #8cedc9;
  transform: translateX(12px);
}
.chart-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 23px 23px 8px;
}
.chart-heading h3 {
  margin: 8px 0 4px;
  font-family: Consolas, monospace;
  font-size: 13px;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.kind-badge {
  font-size: 10px;
  letter-spacing: 0.4px;
  color: var(--accent);
  background: var(--accent-bg);
  border: 1px solid #a994ff25;
  border-radius: 4px;
  padding: 2px 6px;
}
.chart-value {
  text-align: right;
}
.chart-value strong {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -1px;
  line-height: 1.4;
}
.chart-value > span {
  display: block;
  font-size: 10px;
  color: var(--quiet);
  max-width: 185px;
}
.chart-wrap {
  position: relative;
  padding: 14px 14px 0;
  min-height: 250px;
}
#chart {
  width: 100%;
  height: auto;
  min-height: 240px;
  max-height: 370px;
  overflow: visible;
  touch-action: pan-y;
}
#chart .grid-line {
  stroke: var(--grid);
  stroke-width: 1;
  stroke-dasharray: 3 5;
}
#chart text {
  fill: var(--quiet);
  font-size: 10px;
  font-family: Consolas, monospace;
}
#chart .series-path {
  fill: none;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.legend {
  display: flex;
  gap: 8px 20px;
  flex-wrap: wrap;
  padding: 7px 23px 21px;
}
.legend button {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  max-width: 100%;
  color: var(--muted);
  overflow-wrap: anywhere;
  text-align: left;
}
.legend button[aria-pressed="false"] {
  opacity: 0.45;
  text-decoration: line-through;
}
.legend .swatch {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  flex-shrink: 0;
}
.chart-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 10px 20px;
  font-size: 10px;
  color: var(--quiet);
}
.chart-empty {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  color: var(--muted);
  background: var(--panel);
  padding: 30px;
}
.chart-empty strong {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 7px;
}
.chart-empty p {
  max-width: 400px;
  font-size: 11px;
}
.chart-tooltip {
  position: absolute;
  background: var(--rail);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px 14px;
  box-shadow: var(--shadow);
  font-size: 10px;
  pointer-events: none;
  z-index: 5;
  min-width: 160px;
  max-width: 270px;
}
.chart-tooltip strong {
  display: block;
  font-size: 10px;
  margin-bottom: 6px;
}
.tooltip-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: var(--muted);
}
.tooltip-row b {
  color: var(--text);
  font-weight: 500;
}
.data-section {
  margin-top: 29px;
}
.search-input {
  padding: 6px 10px;
  font-size: 10px;
  height: 32px;
  background: var(--panel);
  width: 185px;
}
.table-scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 10px;
}
th {
  color: var(--quiet);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: var(--raised);
}
td,
th {
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  color: var(--muted);
}
tr:last-child td {
  border-bottom: 0;
}
td:first-child {
  color: var(--text);
}
td .label-tag {
  display: inline-block;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
  margin: 2px 4px 2px 0;
  font-size: 10px;
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}
.table-checkbox {
  width: 13px;
  height: 13px;
  accent-color: var(--accent);
  padding: 0;
  margin: 0 10px 0 0;
  vertical-align: middle;
}
.table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: var(--quiet);
  padding: 11px 0;
}
.table-footer > div {
  display: flex;
  gap: 10px;
}
#catalog-section {
  margin-top: 24px;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.catalog-card {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 16px;
  background: var(--panel);
  min-width: 0;
}
.catalog-card:hover {
  border-color: var(--accent);
}
.catalog-card h3 {
  font-family: Consolas, monospace;
  font-size: 10px;
  overflow-wrap: anywhere;
  margin: 10px 0;
}
.catalog-card p {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
.catalog-note {
  font-size: 10px;
  color: var(--quiet);
  margin-top: 10px;
}
.activity-panel {
  padding: 23px;
}
.activity-note {
  font-size: 11px;
  color: var(--muted);
  margin: 18px 0 28px;
}
.activity-event {
  display: flex;
  gap: 15px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.activity-event .event-dot {
  height: 7px;
  width: 7px;
  border: 2px solid var(--green);
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}
.activity-event > div {
  flex: 1;
  min-width: 0;
}
.activity-event h3 {
  font-family: Consolas, monospace;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.activity-event p {
  font-size: 10px;
  color: var(--muted);
  margin: 5px 0;
}
.activity-event time {
  font-size: 10px;
  color: var(--quiet);
  white-space: nowrap;
}
.event-values {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 10px;
  color: var(--muted);
}
.empty-state {
  padding: 60px 24px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 9px;
}
.empty-state strong {
  display: block;
  color: var(--text);
  font-size: 16px;
  margin-bottom: 8px;
}
.empty-state p {
  font-size: 12px;
}
.saved-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.saved-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  min-width: 0;
}
.saved-card h3 {
  margin-bottom: 14px;
  font-size: 15px;
  overflow-wrap: anywhere;
}
.saved-card p {
  font-size: 11px;
  color: var(--muted);
  overflow-wrap: anywhere;
  margin: 7px 0;
}
.saved-card > div {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}
.notice {
  background: var(--accent-bg);
  color: var(--accent);
  padding: 12px 16px;
  border: 1px solid #a994ff44;
  border-radius: 6px;
  font-size: 11px;
  margin-bottom: 20px;
}
.notice.error {
  background: #9b333315;
  border-color: #e67a7a55;
  color: var(--red);
}
.inline-notice {
  margin: 10px 20px;
}
.error-text {
  font-size: 11px;
  color: var(--red);
  margin: 15px 0 0;
  overflow-wrap: anywhere;
}
.error-text:empty {
  display: none;
}
footer {
  display: flex;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 22px 0;
  margin-top: 35px;
  color: var(--quiet);
  font-size: 10px;
}
footer > span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
}
.footer-logo {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
}
footer a:hover {
  color: var(--accent);
}
dialog {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--shadow);
  width: min(510px, calc(100vw - 30px));
  max-height: 85vh;
  overflow: auto;
}
dialog::backdrop {
  background: #0009;
  backdrop-filter: blur(5px);
}
dialog h2 {
  font-size: 24px;
  margin: 10px 0 12px;
}
dialog p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 22px;
}
dialog .field {
  margin: 18px 0;
  font-size: 11px;
}
dialog .field input {
  height: 41px;
  font-size: 12px;
}
.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.dialog-header .eyebrow {
  margin: 0;
  font-size: 10px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 23px;
}
.connection-help {
  font-size: 10px;
  color: var(--muted);
  background: var(--raised);
  border-radius: 6px;
  padding: 12px;
}
.connection-help a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.connection-help code {
  font-size: 10px;
}
#command-dialog {
  padding: 0;
  top: 12vh;
  margin-top: 0;
  width: min(580px, calc(100vw - 30px));
}
.command-top {
  display: flex;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  gap: 10px;
}
.command-top input {
  background: none;
  border: none;
  flex: 1;
  font-size: 14px;
  padding: 4px;
}
#command-results {
  max-height: 50vh;
  overflow: auto;
  padding: 8px;
}
#command-results button {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 12px;
  border-radius: 6px;
  font-family: Consolas, monospace;
  font-size: 11px;
}
#command-results button:hover,
#command-results button:focus {
  background: var(--accent-bg);
}
#command-results button span {
  color: var(--muted);
  font-size: 10px;
}
.command-footer {
  font-size: 10px;
  color: var(--quiet);
  padding: 13px 20px;
  border-top: 1px solid var(--line);
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 15px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  padding: 11px 18px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  z-index: 60;
  box-shadow: var(--shadow);
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.noscript {
  position: fixed;
  inset: 0;
  background: var(--bg);
  padding: 20vh 15vw;
  z-index: 100;
  font-size: 20px;
}
.noscript a {
  text-decoration: underline;
}
.loading #chart {
  opacity: 0.35;
}
.loading .run-query {
  opacity: 0.6;
}
@media (min-width: 1700px) {
  .shell main {
    padding-left: 55px;
    padding-right: 55px;
  }
  .stat-card {
    min-height: 175px;
  }
  .stat-number {
    font-size: 34px;
  }
  .chart-wrap {
    padding: 20px 25px 0;
  }
  .query-controls {
    padding: 23px;
  }
  .catalog-card h3 {
    font-size: 12px;
  }
}
@media (max-width: 1250px) {
  .rail {
    width: 195px;
    padding: 24px 12px;
  }
  .shell {
    margin-left: 195px;
  }
  .topbar {
    padding: 0 25px;
  }
  .shell main {
    padding: 23px 25px 0;
  }
  .query-controls {
    flex-wrap: wrap;
  }
  .metric-field {
    flex-basis: 50%;
  }
  .range-control {
    flex: 1;
  }
  .stat-grid {
    gap: 10px;
  }
  .stat-card {
    padding: 15px;
  }
  .stat-number {
    font-size: 26px;
  }
  .stat-top {
    font-size: 10px;
  }
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .search-shortcut kbd {
    margin-left: 5px;
  }
  .section-actions .button {
    font-size: 10px;
    padding: 7px;
  }
  .chart-heading {
    padding: 20px 20px 8px;
  }
}
@media (max-width: 950px) {
  .rail {
    width: 72px;
    align-items: center;
    padding: 25px 8px;
  }
  .brand {
    padding: 0;
  }
  .brand > span,
  .workspace-switch,
  .nav-caption,
  .rail-bottom,
  .rail nav button > .count,
  .rail nav .nav-dot {
    display: none;
  }
  .rail nav {
    margin-top: 40px;
    gap: 15px;
    width: 100%;
  }
  .rail nav button {
    font-size: 0;
    gap: 0;
    justify-content: center;
    padding: 12px;
  }
  .rail nav button > span:first-child {
    font-size: 24px;
  }
  .shell {
    margin-left: 72px;
  }
  .topbar {
    height: 64px;
    padding: 0 22px;
  }
  .shell main {
    padding: 20px 22px 0;
  }
  .search-shortcut {
    display: none;
  }
  .page-actions .refresh-status {
    display: none;
  }
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat-card {
    min-height: 140px;
  }
  .stat-spark {
    width: 45%;
  }
  .stat-number {
    font-size: 30px;
  }
  .stat-top {
    font-size: 12px;
  }
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .section-top {
    flex-wrap: wrap;
    gap: 10px;
  }
  .section-top > div {
    flex-wrap: wrap;
  }
  .data-section .section-actions {
    width: 100%;
    justify-content: space-between;
  }
  .saved-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .demo-banner button {
    display: none;
  }
  .demo-banner {
    font-size: 10px;
  }
  h1 {
    font-size: 27px;
  }
  .page-heading {
    align-items: flex-end;
  }
}
@media (max-width: 600px) {
  .rail {
    inset: auto 0 0;
    width: 100%;
    height: 63px;
    padding: 0;
    flex-direction: row;
    border-right: 0;
    border-top: 1px solid var(--line);
    background: var(--rail);
  }
  .rail .brand {
    display: none;
  }
  .rail nav {
    flex-direction: row;
    justify-content: space-around;
    margin: 0;
    gap: 0;
  }
  .rail nav button {
    font-size: 10px;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    border-radius: 0;
    padding: 10px 4px;
  }
  .rail nav button > span:first-child {
    font-size: 18px;
  }
  .shell {
    margin-left: 0;
    margin-bottom: 63px;
  }
  .topbar {
    padding: 0 17px;
    height: 61px;
  }
  .crumb {
    font-size: 10px;
    gap: 8px;
  }
  .top-actions {
    gap: 7px;
  }
  .connect-button {
    font-size: 10px;
    padding: 7px 9px;
  }
  .shell main {
    padding: 17px 15px 0;
  }
  .demo-banner {
    padding: 10px;
    gap: 8px;
    margin-bottom: 24px;
  }
  .page-heading {
    margin-bottom: 22px;
    gap: 10px;
  }
  .eyebrow {
    font-size: 10px;
  }
  .page-heading h1 {
    font-size: 24px;
  }
  .page-heading p {
    font-size: 10px;
    max-width: 240px;
  }
  .page-actions .button {
    padding: 7px 9px;
    font-size: 10px;
  }
  .stat-grid {
    gap: 9px;
    margin-bottom: 27px;
  }
  .stat-card {
    padding: 13px;
    min-height: 151px;
  }
  .stat-top {
    font-size: 10px;
  }
  .stat-icon {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }
  .stat-number {
    font-size: 25px;
    margin: 13px 0 5px;
  }
  .stat-meta {
    font-size: 10px;
  }
  .stat-kind {
    font-size: 10px;
  }
  .stat-spark {
    height: 28px;
    width: 34%;
    bottom: 20px;
    right: 8px;
  }
  .section-top h2 {
    font-size: 13px;
  }
  .section-top .subtle {
    font-size: 10px;
  }
  .section-actions {
    gap: 2px;
  }
  .section-actions .button {
    font-size: 10px;
    padding: 5px 7px;
  }
  .query-controls {
    padding: 15px;
    gap: 12px;
  }
  .metric-field {
    flex-basis: calc(100% - 100px);
    min-width: 0;
  }
  .agg-field {
    width: 85px;
  }
  .range-control {
    flex-basis: calc(100% - 105px);
    min-width: 0;
  }
  .segmented button {
    padding: 5px 7px;
    font-size: 10px;
  }
  .run-query {
    font-size: 10px;
    padding: 7px 10px;
  }
  .field-label,
  .field {
    font-size: 10px;
  }
  .filter-row {
    padding: 0 15px 14px;
    gap: 8px;
  }
  .live-control {
    margin-left: 0;
  }
  .filter-label {
    display: none;
  }
  .filter-chips {
    width: 100%;
  }
  .filter-chips:empty {
    display: none;
  }
  .chart-heading {
    padding: 17px 15px 5px;
  }
  .chart-heading h3 {
    font-size: 11px;
  }
  .chart-heading .subtle {
    font-size: 10px;
  }
  .chart-value strong {
    font-size: 23px;
  }
  .chart-value > span {
    font-size: 10px;
    max-width: 125px;
  }
  .chart-wrap {
    padding: 10px 4px 0;
    min-height: 210px;
  }
  #chart {
    min-height: 200px;
  }
  .legend {
    gap: 8px 12px;
    padding: 5px 15px 16px;
  }
  .legend button {
    font-size: 10px;
  }
  .chart-footer {
    font-size: 10px;
    padding: 10px 15px;
  }
  .chart-footer > span:first-child {
    max-width: 230px;
  }
  .chart-tooltip {
    font-size: 10px;
    max-width: 235px;
    min-width: 130px;
  }
  .custom-range {
    padding: 0 15px 15px;
    gap: 8px;
  }
  .custom-range .field {
    max-width: 50%;
  }
  .custom-range input {
    padding: 8px;
    font-size: 10px;
  }
  .catalog-grid {
    gap: 9px;
  }
  .catalog-card {
    padding: 13px;
  }
  .catalog-card h3 {
    font-size: 10px;
  }
  .catalog-card p {
    font-size: 10px;
  }
  .search-input {
    width: 160px;
    font-size: 10px;
  }
  .table-footer {
    font-size: 10px;
  }
  .table-footer .button {
    font-size: 10px;
    padding: 5px;
  }
  .saved-grid {
    grid-template-columns: 1fr;
  }
  .activity-panel {
    padding: 16px;
  }
  .activity-event {
    gap: 10px;
  }
  .activity-event time {
    font-size: 10px;
  }
  .activity-event h3 {
    font-size: 10px;
  }
  .activity-note {
    font-size: 10px;
  }
  .event-values {
    gap: 10px;
  }
  .inline-notice {
    margin: 8px 15px;
  }
  .notice {
    font-size: 10px;
  }
  footer {
    gap: 10px;
    font-size: 10px;
    flex-wrap: wrap;
    padding: 19px 0;
  }
  footer > span:first-child {
    width: 100%;
  }
  dialog {
    padding: 22px;
  }
  dialog h2 {
    font-size: 22px;
  }
  .dialog-actions .button {
    font-size: 10px;
  }
  dialog .dialog-actions {
    gap: 7px;
  }
  .toast {
    max-width: 90vw;
    width: max-content;
    font-size: 11px;
  }
  .section-top > div {
    gap: 8px;
  }
  .refresh-status {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.stat-top > span:first-child,
.workspace-switch strong,
.workspace-switch small {
  overflow-wrap: anywhere;
  min-width: 0;
}
.activity-panel > .section-top {
  flex-wrap: wrap;
}
.activity-panel > .section-top > div {
  flex-wrap: wrap;
}
.activity-event > div {
  min-width: 0;
  overflow-wrap: anywhere;
}

:root[data-theme="light"] .series-path,
:root[data-theme="light"] #chart circle,
:root[data-theme="light"] .swatch {
  filter: brightness(0.65) saturate(1.2);
}
