:root {
  font-family: Inter, Arial, sans-serif;
  color: #202930;
  background: #f5f7fa;
  --panel: #fff;
  --muted: #52606b;
  --line: #dce1e7;
  --accent: #2456d6;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
input,
select {
  min-height: 44px;
}
button {
  border: 1px solid var(--line);
  background: var(--panel);
  color: inherit;
  padding: 10px 16px;
  border-radius: 5px;
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.15s;
}
button:hover {
  background: #eaf0ff;
  transform: translateY(-1px);
}
button:active {
  transform: translateY(1px);
}
button.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #2456d6;
  outline-offset: 3px;
}
input,
select,
textarea {
  max-width: 100%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: inherit;
  border-radius: 4px;
  padding: 10px 12px;
}
textarea {
  width: 100%;
  min-height: 180px;
  font:
    14px/1.6 ui-monospace,
    monospace;
}
label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}
input[type="checkbox"] {
  min-height: 24px;
  width: 24px;
  accent-color: var(--accent);
}
input[type="range"] {
  padding: 0;
  min-width: 120px;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 16px;
  margin-bottom: 24px;
}
.module {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
  min-width: 0;
}
.module-head {
  padding: 24px;
  border-bottom: 1px solid var(--line);
}
.module-head h2 {
  font-size: 24px;
  margin: 8px 0 0;
  font-weight: 550;
  letter-spacing: -0.035em;
}
.eyebrow {
  font-size: 13px;
  color: var(--muted);
}
.module-body {
  padding: 24px;
  min-height: 240px;
}
.module-status {
  display: block;
  padding: 16px 24px;
  background: #f1f5fd;
  min-height: 52px;
  font-size: 14px;
  color: #18366c;
}
.table-scroll {
  overflow: auto;
  max-width: 100%;
}
table {
  border-collapse: collapse;
  min-width: 540px;
  width: 100%;
  text-align: left;
  font-size: 14px;
}
th {
  color: var(--muted);
  font-weight: 500;
  background: #f8f9fb;
}
th,
td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td:first-child {
  font-family: ui-monospace, monospace;
}
th:first-letter {
  text-transform: uppercase;
}
.compact th,
.compact td {
  padding: 8px 12px;
}
.list {
  display: grid;
  gap: 12px;
}
.item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.item p {
  margin: 4px 0;
  font-size: 14px;
  color: var(--muted);
}
.stack {
  display: grid;
  gap: 16px;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.pill {
  padding: 6px 10px;
  background: #edf2fa;
  border-radius: 4px;
  font-size: 13px;
}
.good {
  color: #17613d;
  background: #eaf5ee;
}
.warning {
  color: #895510;
  background: #fff3d9;
}
.bad {
  color: #9b3030;
  background: #fdeeee;
}
pre {
  white-space: pre-wrap;
  word-break: break-word;
  font:
    14px/1.6 ui-monospace,
    monospace;
  background: #f4f6f9;
  padding: 16px;
  margin: 16px 0 0;
}
.hint {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
h3 {
  font-size: 18px;
  font-weight: 550;
  margin: 0 0 16px;
}
progress {
  width: 100%;
  height: 16px;
  accent-color: var(--accent);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px;
  max-width: min(520px, 90vw);
  color: inherit;
  background: var(--panel);
}
dialog::backdrop {
  background: #18233280;
}
.skeleton {
  height: 18px;
  background: #e5e9ef;
  border-radius: 3px;
  margin: 20px 0;
  max-width: 90%;
}
nav.tree ul {
  list-style: none;
  padding-left: 24px;
}
nav.tree details {
  padding: 12px 0;
}
nav.tree summary {
  cursor: pointer;
}
.console {
  max-width: 1280px;
  margin: 40px auto;
  padding: 0 24px;
}
.console-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.console-header h1 {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.04em;
}
.console-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
}
.console-nav {
  display: grid;
  align-content: start;
  gap: 8px;
}
.console-nav button {
  text-align: left;
}
.console-nav button[aria-pressed="true"] {
  background: #2456d6;
  color: white;
}
.console-eventlog {
  margin-top: 24px;
}
.console-eventlog ul {
  padding-left: 24px;
}
.dark {
  color-scheme: dark;
  color: #e9eef5;
  background: #101724;
  --panel: #172233;
  --muted: #b5c0d1;
  --line: #344255;
}
.dark th,
.dark pre {
  background: #202d42;
}
.dark .module-status {
  background: #1e304b;
  color: #c6d9ff;
}
.dark button:hover {
  background: #304468;
}
@media (max-width: 700px) {
  .split {
    grid-template-columns: 1fr;
  }
  .module-head,
  .module-body {
    padding: 16px;
  }
  .item {
    align-items: start;
    flex-wrap: wrap;
  }
  .console-layout {
    grid-template-columns: 1fr;
  }
  .console-nav {
    display: flex;
    overflow: auto;
    padding: 3px;
  }
  .console-nav button {
    white-space: nowrap;
  }
  .console {
    padding: 0 16px;
    margin: 24px auto;
  }
  .console-header h1 {
    font-size: 28px;
  }
  .toolbar > * {
    flex: 1;
    min-width: 120px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
