:root {
  color-scheme: light;
  --ink: #14213d;
  --muted: #66758c;
  --line: #d9e2ef;
  --soft: #f5f7fb;
  --panel: #ffffff;
  --navy: #173b70;
  --green: #177245;
  --red: #a23124;
  --gold: #8a6100;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #eef3fa;
  color: var(--ink);
}

button, input {
  font: inherit;
}

button {
  border: 0;
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.full-shell {
  min-height: 100vh;
}

.full-topbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.full-kicker,
.full-subtitle,
.full-status,
.muted {
  color: var(--muted);
}

.full-kicker {
  margin: 0 0 6px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2, h3, h4, p {
  margin-top: 0;
}

h1 {
  margin-bottom: 6px;
  font-size: 1.65rem;
  line-height: 1.15;
}

.full-subtitle {
  margin-bottom: 0;
  max-width: 760px;
  font-size: 0.92rem;
}

.full-version {
  align-self: flex-start;
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--navy);
  background: var(--soft);
  font-size: 0.82rem;
  font-weight: 800;
}

.full-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
}

.full-sidebar,
.full-content,
.full-card,
.full-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.full-sidebar {
  position: sticky;
  top: 18px;
  align-self: start;
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 16px;
}

.full-search label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
}

.full-search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.full-search-row input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 11px;
  color: var(--ink);
}

.full-search-row button {
  padding: 10px 14px;
}

.full-status {
  margin: 12px 0;
  font-size: 0.84rem;
}

.full-client-list {
  display: grid;
  gap: 8px;
}

.full-client-button {
  width: 100%;
  text-align: left;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.full-client-button.is-active,
.full-client-button:hover {
  border-color: #9bb5d6;
  background: #edf4ff;
}

.full-client-button strong {
  display: block;
  font-size: 0.94rem;
}

.full-client-button span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.full-content {
  min-width: 0;
  padding: 18px;
}

.full-empty-state {
  padding: 48px 24px;
  text-align: center;
}

.full-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.full-detail-head h2 {
  margin-bottom: 6px;
  font-size: 1.45rem;
}

.full-grid {
  display: grid;
  gap: 12px;
}

.full-grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.full-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.full-card,
.full-section {
  padding: 14px;
}

.full-card small {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.full-card strong {
  display: block;
  overflow-wrap: anywhere;
}

.full-section {
  margin-top: 14px;
  overflow: hidden;
}

.full-section h3 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.full-table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
  font-size: 0.84rem;
}

th {
  color: #52647d;
  background: #f7f9fd;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.full-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.full-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: #f7f9fd;
  font-size: 0.78rem;
  font-weight: 700;
}

.full-pill.good {
  border-color: #b7e1c8;
  color: var(--green);
  background: #ecfff3;
}

.full-pill.warn {
  border-color: #f2d491;
  color: var(--gold);
  background: #fff8e7;
}

.full-pill.bad {
  border-color: #f1b5ac;
  color: var(--red);
  background: #fff0ee;
}

.full-score {
  text-align: center;
}

.full-score strong {
  font-size: 1.8rem;
}

.json-block {
  max-height: 420px;
  overflow: auto;
  margin: 0;
  padding: 12px;
  border-radius: 6px;
  background: #101827;
  color: #dbe8ff;
  font-size: 0.76rem;
}

details summary {
  cursor: pointer;
  font-weight: 800;
}

.empty-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 920px) {
  .full-layout,
  .full-grid.cols-2,
  .full-grid.cols-3 {
    grid-template-columns: 1fr;
  }

  .full-sidebar {
    position: static;
    max-height: none;
  }

  .full-topbar,
  .full-detail-head {
    flex-direction: column;
  }
}
