:root {
  color-scheme: light;
  --color-white: #ffffff;
  --color-rule: #eaeaea;
  --color-neutral-50: #fafafa;
  --color-neutral-100: #f7f7f7;
  --color-neutral-200: #e5e5e5;
  --color-neutral-300: #d4d4d4;
  --color-neutral-400: #a3a3a3;
  --color-neutral-500: #737373;
  --color-neutral-600: #5c5c5c;
  --color-neutral-700: #404040;
  --color-neutral-800: #262626;
  --color-neutral-900: #181818;
  --color-neutral-950: #0a0a0a;
  --color-red-50: #fff5f4;
  --color-red-100: #ffdadb;
  --color-red-200: #ffb5b8;
  --color-red-300: #ff8a90;
  --color-red-400: #f45159;
  --color-red-500: #e80f15;
  --color-red-600: #c41219;
  --color-red-700: #a01018;
  --color-red-800: #800c16;
  --color-red-900: #560610;
  --color-red-950: #32040a;
  --color-green-50: #f0fdf3;
  --color-green-100: #d3fddc;
  --color-green-200: #a7f3b9;
  --color-green-300: #74e592;
  --color-green-400: #41c965;
  --color-green-500: #169c3d;
  --color-green-600: #13712a;
  --color-green-700: #105d24;
  --color-green-800: #104a20;
  --color-green-900: #103d1d;
  --color-green-950: #05230e;
  --color-amber-50: #fff9f4;
  --color-amber-100: #ffe8ce;
  --color-amber-200: #ffd3a1;
  --color-amber-300: #ffb66b;
  --color-amber-400: #f68c39;
  --color-amber-500: #dd6526;
  --color-amber-600: #b6441c;
  --color-amber-700: #913517;
  --color-amber-800: #742d15;
  --color-amber-900: #5e2a0e;
  --color-amber-950: #341406;
  --color-violet-50: #f7f5ff;
  --color-violet-100: #efeaff;
  --color-violet-200: #e3dcfe;
  --color-violet-300: #c9baf9;
  --color-violet-400: #aa90ee;
  --color-violet-500: #8b66db;
  --color-violet-600: #7048bb;
  --color-violet-700: #5a3898;
  --color-violet-800: #472d78;
  --color-violet-900: #36225b;
  --color-violet-950: #201436;
  --canvas: var(--color-neutral-100);
  --surface: var(--color-white);
  --surface-muted: var(--color-neutral-50);
  --ink: var(--color-neutral-900);
  --muted: var(--color-neutral-600);
  --border: var(--color-rule);
  --control-border: var(--color-neutral-500);
  --focus: var(--color-neutral-900);
  --success: var(--color-green-600);
  --success-bg: var(--color-green-100);
  --unsupported: var(--color-neutral-600);
  --warning: var(--color-amber-700);
  --warning-bg: var(--color-amber-100);
  --failed: var(--color-red-700);
  --failed-bg: var(--color-red-100);
  --accent: var(--color-neutral-900);
  --accent-bg: var(--color-neutral-200);
  --selection: var(--color-white);
  --action-hover: var(--color-neutral-800);
  --action-active: var(--color-neutral-950);
  --accent-secondary: var(--color-violet-700);
  --value-boolean: var(--color-violet-700);
  --value-null: var(--color-neutral-600);
  --value-annotation: var(--color-neutral-600);
  --value-integer: var(--color-violet-700);
  --value-float: var(--color-violet-700);
  --comparison-distinct: var(--color-amber-100);
  --comparison-fragment-bg: var(--color-amber-200);
  --comparison-fragment-ink: var(--color-amber-900);
  /* Prefer installed coding fonts, then platform terminal fonts and browser defaults. */
  --font-mono:
    "Roboto Mono", "JetBrains Mono", "Cascadia Mono", "Cascadia Code", "SF Mono", "SFMono-Regular",
    Menlo, Consolas, "Ubuntu Mono", "Liberation Mono", "DejaVu Sans Mono", ui-monospace, monospace;
  --font-ui: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --text-ui: 0.9375rem;
  --text-xs: 0.8125rem;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --control-height: 2.25rem;
  --line: 1px;
  --radius-small: 6px;
  --radius: 8px;
  --gutter: clamp(24px, 2vw, 32px);
  --shadow-surface: 0 1px 2px #0000000a, 0 2px 6px #00000004;
  --shadow-overlay: 0 16px 64px #00000026;
  --backdrop: #00000066;
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%235c5c5c' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --motion-shimmer-period: 1600ms;
  --motion-busy-period: 1000ms;
  --motion-busy-delay: 150ms;
  --motion-offset: 4px;
  --motion-feedback: 140ms;
  --motion-enter: 180ms;
  --motion-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
body {
  margin: 0;
}
/* Opt in application markup; temporary probe nodes outside the shell keep native defaults. */
.toolkit,
.toolkit *,
.toolkit *::before,
.toolkit *::after {
  box-sizing: border-box;
}
.toolkit :where(h1, h2, h3, p, dl, dd, pre) {
  margin: 0;
}
.toolkit :where(button, input, select, textarea) {
  font: inherit;
}
.toolkit :where(img, svg, video) {
  max-width: 100%;
  vertical-align: middle;
}
.toolkit [hidden] {
  display: none !important;
}
/* Startup and saved lookups reveal the layout without exposing pending evidence. */
.toolkit [data-measurement-skeleton]:not([hidden]) .placeholder {
  background-image: linear-gradient(100deg, transparent 25%, var(--surface) 50%, transparent 75%);
  background-size: 200% 100%;
  animation: measurement-shimmer var(--motion-shimmer-period) linear infinite;
}
.toolkit[data-startup][data-mode="error"] .placeholder {
  animation: none !important;
}
@keyframes measurement-shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}
/* Application-owned effects only; temporary collector nodes live outside this shell. */
.toolkit :where(a, button, summary, input, select, textarea) {
  transition:
    background-color var(--motion-feedback) var(--motion-ease),
    border-color var(--motion-feedback) var(--motion-ease),
    color var(--motion-feedback) var(--motion-ease);
}
.toolkit dialog[open] {
  animation: overlay-enter var(--motion-enter) var(--motion-ease);
}
.toolkit dialog[open]::backdrop,
.toolkit
  :where([data-results]:not([hidden]), [data-save-status][data-saved="true"], [data-reveal]) {
  animation: surface-enter var(--motion-enter) var(--motion-ease);
}
.toolkit [data-busy="true"] > .busy-indicator {
  animation:
    busy-show 0s var(--motion-busy-delay) forwards,
    busy-spin var(--motion-busy-period) linear var(--motion-busy-delay) infinite;
}
@keyframes busy-show {
  to {
    visibility: visible;
  }
}
@keyframes busy-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes overlay-enter {
  from {
    opacity: 0;
    transform: translateY(var(--motion-offset));
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes surface-enter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Cancel even effects already in flight. Keep visible static progress through cleanup. */
.toolkit[data-measuring="true"] *,
.toolkit[data-measuring="true"] *::before,
.toolkit[data-measuring="true"] *::after,
.toolkit[data-measuring="true"] dialog::backdrop {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
.toolkit[data-measuring="true"] [data-busy="true"] > .busy-indicator {
  visibility: visible;
}
@media (prefers-reduced-motion: reduce) {
  .toolkit [data-busy="true"] > .busy-indicator {
    visibility: visible;
  }
}
/* Shared classes also apply to template clones and browser-created nodes. */
.toolkit [data-tone="neutral"] {
  --tone-fg: var(--muted);
  --tone-bg: var(--canvas);
  --tone-border: var(--control-border);
}
.toolkit [data-tone="success"] {
  --tone-fg: var(--success);
  --tone-bg: var(--success-bg);
  --tone-border: var(--color-green-600);
  --tone-solid: var(--color-green-600);
  --tone-hover: var(--color-green-700);
  --tone-active: var(--color-green-800);
}
.toolkit [data-tone="warning"] {
  --tone-fg: var(--warning);
  --tone-bg: var(--warning-bg);
  --tone-border: var(--color-amber-600);
  --tone-solid: var(--color-amber-600);
  --tone-hover: var(--color-amber-700);
  --tone-active: var(--color-amber-800);
}
.toolkit [data-tone="danger"] {
  --tone-fg: var(--failed);
  --tone-bg: var(--failed-bg);
  --tone-border: var(--color-red-600);
  --tone-solid: var(--color-red-600);
  --tone-hover: var(--color-red-700);
  --tone-active: var(--color-red-800);
}
.toolkit [data-tone="investigation"] {
  --tone-fg: var(--color-violet-700);
  --tone-bg: var(--color-violet-200);
  --tone-border: var(--color-violet-600);
  --tone-solid: var(--color-violet-600);
  --tone-hover: var(--color-violet-700);
  --tone-active: var(--color-violet-800);
}
.toolkit .status-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--tone-fg, var(--muted));
  background: var(--tone-bg, var(--canvas));
  font: 11px/1.5 var(--font-mono);
}
.toolkit .panel {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-surface);
}
.toolkit .alert {
  padding: 12px 16px;
  border-left: 3px solid var(--tone-border, var(--control-border));
  border-radius: var(--radius-small);
  color: var(--tone-fg, var(--ink));
  background: var(--tone-bg, var(--surface-muted));
}
.toolkit :is(button, .button)[data-variant="solid"] {
  color: var(--color-white);
  background: var(--tone-solid, var(--ink));
  border-color: var(--tone-solid, var(--ink));
}
.toolkit :is(button, .button)[data-variant="solid"]:not(:disabled):hover {
  background: var(--tone-hover, var(--action-hover));
}
.toolkit :is(button, .button)[data-variant="solid"]:not(:disabled):active {
  background: var(--tone-active, var(--action-active));
}
.toolkit :is(button, .button)[data-variant="subtle"] {
  border-color: transparent;
  background: transparent;
}
.toolkit :is(button, .button)[data-variant="subtle"]:not(:disabled):hover {
  background: var(--surface-muted);
}
.toolkit :is(button, .button, input, select, textarea):disabled {
  opacity: 1;
  color: var(--muted);
  background-color: var(--surface-muted);
  border-color: var(--control-border);
  cursor: default;
}
.toolkit :where(input, select, textarea)[aria-invalid="true"] {
  border-color: var(--failed);
}
.toolkit :where(input, textarea)[readonly] {
  background: var(--surface-muted);
}
.toolkit :where(input[type="checkbox"], input[type="radio"]) {
  width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  margin: 0;
  accent-color: var(--ink);
  flex-shrink: 0;
}
.toolkit label:has(> input:is([type="checkbox"], [type="radio"])) {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: var(--control-height);
}
.toolkit .busy-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.toolkit .busy-indicator {
  display: inline-block;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  border: 1.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  visibility: hidden;
}
@media (pointer: coarse) {
  .toolkit {
    --control-height: 2.75rem;
  }
}

.toolkit .tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px;
  margin-top: var(--space-5);
  border-bottom: 1px solid var(--border);
}
.toolkit .tabs button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font: 13px/1.5 var(--font-mono);
}
.toolkit .tabs [aria-selected="true"] {
  color: var(--ink);
  box-shadow: inset 0 -2px var(--ink);
}
.toolkit .tabs button:not(:disabled):hover {
  background: var(--surface-muted);
}
.toolkit {
  min-height: 100svh;
  background: var(--canvas);
  color: var(--ink);
  font: var(--text-ui) / 1.5 var(--font-ui);
  -webkit-font-smoothing: antialiased;
}
.toolkit :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.toolkit :where(h1, h2, h3, h4) {
  line-height: 1.3;
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: -0.025em;
}
.toolkit h1 {
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.045em;
}
.toolkit h2 {
  font-size: 1.125rem;
}
.toolkit h3 {
  font-size: 1.125rem;
}
.toolkit .ruled-heading {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-width: 0;
  overflow-wrap: anywhere;
}
.toolkit .ruled-heading::after {
  content: "";
  flex: 1;
  min-width: var(--space-4);
  border-top: var(--line) solid var(--border);
}
.toolkit .muted {
  color: var(--muted);
}
.toolkit .eyebrow {
  font: 0.6875rem / 1.5 var(--font-mono);
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.toolkit .stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}
.toolkit .control {
  border: var(--line) solid var(--control-border);
  border-radius: var(--radius-small);
  background: var(--surface);
  color: var(--ink);
  min-height: var(--control-height);
  padding: 6px var(--space-3);
  line-height: 1.5;
  max-width: 100%;
  font-family: var(--font-ui);
}
@media (prefers-reduced-motion: reduce) {
  .toolkit *,
  .toolkit *::before,
  .toolkit *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .toolkit dialog::backdrop {
    animation: none !important;
  }
}

.toolkit kbd {
  font: inherit;
}
.toolkit summary {
  color: var(--muted);
  cursor: pointer;
}
.toolkit summary:hover {
  color: var(--ink);
}
.toolkit [data-collection-message] {
  overflow-wrap: anywhere;
}

.toolkit a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.toolkit a:hover {
  color: var(--ink);
}

.toolkit small {
  font-size: var(--text-ui);
}
.toolkit :where(h2, h3, [data-result-row]) {
  scroll-margin-top: 7rem;
}
.toolkit .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.toolkit :where(button, input, select, textarea, .button) {
  min-height: var(--control-height);
  max-width: 100%;
  border: 1px solid var(--control-border);
  border-radius: var(--radius-small);
  padding: 6px 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}
.toolkit :where(button, .button) {
  cursor: pointer;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}
.toolkit :where(button, .button):not(:disabled):hover {
  background: var(--surface-muted);
}
.toolkit :where(button, .button):not(:disabled):active {
  background: var(--accent-bg);
}
.toolkit button:disabled {
  opacity: 1;
  color: var(--muted);
  background: var(--surface-muted);
  cursor: default;
}
.toolkit :where(input, select, textarea) {
  accent-color: var(--accent);
}
.toolkit select:not([multiple]):not([size]) {
  appearance: none;
  padding-right: 36px;
  background-image: var(--select-chevron);
  background-position: right 12px center;
  background-repeat: no-repeat;
}
@media (forced-colors: active) {
  .toolkit select:not([multiple]):not([size]) {
    appearance: auto;
    background-image: none;
  }
}
.toolkit :where(input, textarea)::placeholder {
  color: var(--muted);
  opacity: 1;
}
.toolkit .primary {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
}
.toolkit .primary:not(:disabled):hover {
  background: var(--action-hover);
  color: var(--surface);
}
.toolkit .primary:not(:disabled):active {
  background: var(--action-active);
}
.toolkit :where(code, pre, .exact) {
  font-family: var(--font-mono);
  font-size: 0.875rem;
}
.toolkit dialog {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  width: min(780px, calc(100% - 32px));
  max-height: calc(100svh - 32px);
  overflow: auto;
  box-shadow: var(--shadow-overlay);
}
.toolkit dialog::backdrop {
  background: var(--backdrop);
}
.toolkit [hidden] {
  display: none !important;
}
@media (max-width: 42rem) {
  .toolkit {
    --gutter: 16px;
    --control-height: 2.75rem;
  }
  .toolkit h1 {
    font-size: 1.375rem;
  }
  .toolkit dialog {
    padding: 16px;
  }
}

.toolkit .relative-time {
  color: var(--muted);
  font-weight: 400;
  white-space: nowrap;
}
