:root {
  color-scheme: dark;
  --canvas: #08090a;
  --surface: #0f1011;
  --surface-raised: #151617;
  --border: #292a2d;
  --border-strong: #3b3d42;
  --text: #f2f3f5;
  --muted: #9b9ca2;
  --accent: #5e6ad2;
  --accent-hover: #6f79dc;
  --danger: #e5484d;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--canvas);
  color: var(--text);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-width: 0; max-width: 100%; overflow-x: hidden; background: var(--canvas); }
body { min-height: 100vh; line-height: 1.5; }
a { color: #aeb4ff; text-decoration: none; }
a:hover { color: #d7d9ff; }
button, .button, input, select, textarea { font: inherit; }
button, .button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 0 16px; border: 1px solid var(--accent); border-radius: 6px;
  background: var(--accent); color: white; cursor: pointer;
}
button:hover, .button:hover { background: var(--accent-hover); color: white; }
:focus-visible { outline: 3px solid #aeb4ff; outline-offset: 2px; }
.quiet { background: transparent; border-color: var(--border); color: var(--muted); }
.shell-header {
  position: sticky; top: 0; z-index: 2; min-height: 64px; display: flex; align-items: center;
  gap: 24px; padding: 10px 28px; border-bottom: 1px solid var(--border); background: #0b0c0d;
}
.wordmark { color: var(--text); font-weight: 650; white-space: nowrap; }
nav { display: flex; align-items: center; gap: 6px; flex: 1; overflow-x: auto; }
nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 10px; color: var(--muted); white-space: nowrap; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 56px 0 96px; }
.page-heading { margin-bottom: 42px; max-width: 780px; }
.page-heading h1 { margin: 6px 0 10px; font-size: clamp(30px, 5vw, 48px); line-height: 1.08; letter-spacing: -0.035em; }
.page-heading p { color: var(--muted); }
.split, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: none; }
.eyebrow, .mono, .technical dd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.eyebrow { color: #8d95ef !important; font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: 8px; margin-bottom: 48px; }
.metrics div { min-width: 0; padding: 20px; border-right: 1px solid var(--border); }
.metrics div:last-child { border-right: 0; }
.metrics span, .metrics strong { display: block; }
.metrics span { color: var(--muted); font-size: 13px; }
.metrics strong { margin-top: 8px; font-size: 28px; }
.panel, .operator-group { margin: 22px 0; padding: 22px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.rows { border-top: 1px solid var(--border); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; border-bottom: 1px solid var(--border); color: var(--text); }
.row span:first-child { display: grid; }
.row small { color: var(--muted); }
.badge, .status { display: inline-flex; width: fit-content; padding: 3px 8px; border: 1px solid var(--border-strong); border-radius: 999px; color: #c6c9d2; font-size: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: 8px; }
table { width: 100%; min-width: 680px; border-collapse: collapse; background: var(--surface); }
th, td { padding: 13px 15px; border-bottom: 1px solid var(--border); text-align: left; }
th { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid label { display: grid; gap: 7px; color: #c7c8cc; font-size: 13px; }
.wide { grid-column: 1 / -1; }
input, select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--border-strong);
  border-radius: 6px; background: var(--surface); color: var(--text);
}
textarea { min-height: 110px; resize: vertical; }
.code { min-height: 180px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 13px; }
fieldset { min-width: 0; padding: 18px; border: 1px solid var(--border); border-radius: 8px; }
fieldset label + label { margin-top: 14px; }
.actions { display: flex; justify-content: flex-end; }
.actions { gap: 10px; flex-wrap: wrap; }
.empty, .notice { padding: 28px; border: 1px dashed var(--border-strong); color: var(--muted); }
.filter-bar { display: grid; grid-template-columns: minmax(220px, 1fr) 180px 180px auto; gap: 12px; align-items: end; margin-bottom: 22px; }
.filter-bar label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
.resolution-list { display: grid; gap: 14px; }
.resolution-card { padding: 18px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface-raised); }
.resolution-card h3 { margin: 0; text-transform: capitalize; }
.resolution-card .technical { margin-bottom: 0; }
summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: #c7c8cc; }
pre { max-width: 100%; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.timeline-item { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--border); }
.technical { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px 18px; }
.technical dt { color: var(--muted); }
.technical dd { margin: 0; overflow-wrap: anywhere; }
iframe { width: 100%; min-height: 720px; border: 1px solid var(--border); background: white; }
.login-page { display: grid; place-items: center; padding: 24px; }
.login-panel { width: min(440px, 100%); padding: 34px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.login-panel p { color: var(--muted); }
.login-panel .button { margin-top: 16px; width: 100%; }
@media (max-width: 760px) {
  .shell-header { position: static; flex-wrap: wrap; padding: 8px 14px; gap: 8px; }
  .shell-header nav { order: 3; flex-basis: 100%; }
  .shell { width: min(100% - 24px, 1180px); padding-top: 34px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metrics div:nth-child(2) { border-right: 0; }
  .metrics div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .form-grid { grid-template-columns: 1fr; }
  .wide { grid-column: auto; }
  .split, .section-heading { align-items: flex-start; flex-direction: column; }
  .timeline-item { grid-template-columns: 1fr; }
  .filter-bar { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
