:root {
  color-scheme: light;
  --bg: #f5f5f4;
  --surface: #ffffff;
  --surface-muted: #f7f8f8;
  --surface-raised: #eef2f6;
  --ink: #050607;
  --text: #151b23;
  --muted: #526070;
  --faint: #718092;
  --line: #cdd8e3;
  --line-soft: #e4ebf1;
  --good: #14744a;
  --good-soft: #e5f4ec;
  --warn: #a56300;
  --warn-soft: #fff4da;
  --bad: #b52b2b;
  --bad-soft: #fae8e8;
  --info: #275f9f;
  --info-soft: #e8f1fb;
  --shadow: 0 18px 50px rgba(21, 31, 43, 0.12);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101418;
  --surface: #161c23;
  --surface-muted: #1d252e;
  --surface-raised: #252f3a;
  --ink: #f6f8fb;
  --text: #eef3f7;
  --muted: #aeb9c6;
  --faint: #8794a3;
  --line: #384554;
  --line-soft: #26323e;
  --good: #45b67f;
  --good-soft: #173526;
  --warn: #d99a2b;
  --warn-soft: #3c2d13;
  --bad: #eb7373;
  --bad-soft: #3a1f23;
  --info: #72a9e6;
  --info-soft: #182b42;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-y: auto;
}

button,
input,
select {
  font: inherit;
}

button {
  touch-action: manipulation;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
}

.sidebar {
  min-height: 100vh;
  padding: 20px 16px;
  border-right: 1px solid var(--line);
  background: #050607;
  color: #f7fafc;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 18px;
  position: sticky;
  top: 0;
}

.brand {
  display: block;
  align-items: center;
}

.brand strong {
  display: block;
  font-size: 18px;
  line-height: 1.1;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: #aeb8c4;
  font-size: 12px;
  line-height: 1.25;
}

.side-status {
  min-height: 68px;
  padding: 12px;
  border: 1px solid rgba(205, 216, 227, 0.28);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.side-status[data-tone="checking"] {
  border-color: rgba(217, 154, 43, 0.58);
}

.side-status[data-tone="bad"] {
  border-color: rgba(235, 115, 115, 0.62);
}

.side-status strong,
.side-status span {
  display: block;
}

.side-status strong {
  font-size: 14px;
}

.side-status span {
  color: #aeb8c4;
  font-size: 12px;
  line-height: 1.35;
}

.status-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.52);
  background: var(--faint);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.status-dot.ok {
  background: var(--good);
}

.status-dot.checking,
.status-dot.warn {
  background: var(--warn);
}

.status-dot.bad {
  background: var(--bad);
}

.status-dot.checking {
  animation: status-pulse 1s ease-in-out infinite;
}

@keyframes status-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(217, 154, 43, 0.12);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(217, 154, 43, 0.22);
  }
}

.nav {
  display: block;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.nav-section {
  display: block;
  margin: 16px 0 8px;
  color: #7f8b98;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-section:first-child {
  margin-top: 0;
}

.nav-item,
.quiet-button {
  width: 100%;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 10px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  text-align: left;
  color: #dbe3ec;
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.nav-item:hover,
.quiet-button:hover {
  border-color: rgba(205, 216, 227, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.nav-item.active {
  color: #101418;
  background: #ffffff;
}

.nav-icon,
.button-icon,
.row-icon,
.command-button span[data-icon],
.language-control span[data-icon],
.language-button span[data-icon],
.account-button span[data-icon],
.account-menu span[data-icon],
.icon-button span[data-icon],
.quiet-button span[data-icon],
.scroll-top span[data-icon],
.search-field span[data-icon] {
  display: inline-grid;
  place-items: center;
}

.nav-icon svg,
.button-icon svg,
.row-icon svg,
.command-button svg,
.language-control svg,
.language-button svg,
.account-button svg,
.account-menu svg,
.icon-button svg,
.quiet-button svg,
.scroll-top svg,
.search-field svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rail-foot {
  display: grid;
  gap: 12px;
}

.pill {
  width: max-content;
  max-width: 100%;
  padding: 4px 10px;
  border: 1px solid rgba(205, 216, 227, 0.32);
  border-radius: 999px;
  color: #dbe3ec;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 800;
}

.workspace {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.topbar {
  min-height: 78px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(14px);
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 30;
}

.title-block {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.title-block span,
.panel h3 span,
.metric span,
.table-card__head span,
.surface-panel__chrome span,
.login-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.title-block h1 {
  font-size: 22px;
  line-height: 1.15;
}

.title-block p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.button,
.icon-button,
.text-button,
.login-submit {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  font-weight: 850;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}

.button.primary,
.login-submit {
  border-color: var(--ink);
  color: var(--bg);
  background: var(--ink);
}

.icon-button {
  width: 38px;
  padding: 0;
  position: relative;
  display: inline-grid;
  place-items: center;
}

.button:hover,
.icon-button:hover,
.text-button:hover,
.login-submit:hover {
  border-color: var(--ink);
}

.button:disabled,
.icon-button:disabled {
  cursor: not-allowed;
  color: var(--faint);
  background: var(--surface-raised);
}

.badge {
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  position: absolute;
  top: 2px;
  right: 2px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: var(--bad);
  font-size: 10px;
  line-height: 1;
}

.main {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 22px;
}

.main:focus {
  outline: none;
}

.route-view {
  display: grid;
  gap: 16px;
}

.notice {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--warn);
  border-radius: 8px;
  color: var(--text);
  background: var(--warn-soft);
}

.hero {
  min-height: 108px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.hero h2 {
  margin-top: 4px;
  font-size: 30px;
  line-height: 1.1;
}

.hero p {
  margin-top: 8px;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.45;
}

.hero-readback {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-muted);
  font-size: 12px;
  font-weight: 800;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.metric,
.panel,
.table-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.metric {
  min-height: 128px;
  padding: 16px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.metric strong {
  font-size: 30px;
  line-height: 1;
}

.metric p,
.panel p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 12px;
}

.panel {
  min-height: 220px;
  padding: 16px;
  display: grid;
  align-content: start;
  gap: 12px;
}

.panel h3 {
  display: grid;
  gap: 4px;
}

.panel h3 strong {
  font-size: 18px;
}

.readiness-list,
.pointer-list,
.finding-list,
.activity-list,
.command-list {
  display: grid;
  gap: 8px;
}

.readiness-row,
.pointer-row,
.finding-row,
.activity-row,
.command-row,
.search-row,
.event-row {
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.readiness-row strong,
.pointer-row strong,
.finding-row strong,
.activity-row strong,
.command-row strong,
.search-row strong,
.event-row strong {
  display: block;
  font-size: 14px;
  line-height: 1.2;
}

.readiness-row span,
.pointer-row span,
.finding-row span,
.activity-row span,
.command-row span,
.search-row span,
.event-row span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  white-space: normal;
}

.state-chip {
  width: max-content;
  max-width: 100%;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: var(--surface-muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  vertical-align: middle;
}

.state-chip__dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 999px;
  background: var(--faint);
  box-shadow: 0 0 0 2px color-mix(in srgb, currentColor 12%, transparent);
}

.state-chip__label {
  min-width: 0;
  color: inherit;
  font: inherit;
  line-height: 1;
  white-space: nowrap;
}

.state-chip.ok {
  border-color: color-mix(in srgb, var(--good) 34%, var(--line));
  color: var(--good);
  background: var(--good-soft);
}

.state-chip.ok .state-chip__dot {
  background: var(--good);
}

.state-chip.warn {
  border-color: color-mix(in srgb, var(--warn) 34%, var(--line));
  color: var(--warn);
  background: var(--warn-soft);
}

.state-chip.warn .state-chip__dot {
  background: var(--warn);
}

.state-chip.bad {
  border-color: color-mix(in srgb, var(--bad) 34%, var(--line));
  color: var(--bad);
  background: var(--bad-soft);
}

.state-chip.bad .state-chip__dot {
  background: var(--bad);
}

.state-chip.neutral .state-chip__dot {
  display: none;
}

.state-chip.neutral {
  border-color: var(--line);
  color: var(--muted);
  background: var(--surface);
  gap: 0;
}

.table-card__head {
  min-height: 42px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.runtime-table {
  width: 100%;
  border-collapse: collapse;
}

.runtime-table th,
.runtime-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

.runtime-table th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.runtime-table tr:last-child td {
  border-bottom: 0;
}

.empty {
  min-height: 96px;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface-muted);
  display: grid;
  align-content: center;
  text-align: left;
}

.surface-panel {
  width: min(680px, calc(100vw - 24px));
  max-height: min(720px, calc(100vh - 24px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 80;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.surface-panel.wide {
  width: min(880px, calc(100vw - 24px));
}

.surface-panel[hidden],
.backdrop[hidden],
.scroll-top[hidden],
[hidden] {
  display: none;
}

.surface-panel__chrome,
.surface-panel__foot {
  min-height: 58px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.surface-panel__chrome h2 {
  margin-top: 2px;
  font-size: 18px;
  line-height: 1.15;
}

.surface-panel__foot {
  min-height: 46px;
  border-top: 1px solid var(--line);
  border-bottom: 0;
  justify-content: flex-end;
  color: var(--muted);
  background: var(--surface-raised);
  font-size: 13px;
}

.key-hint {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface);
  font-size: 12px;
  font-family: inherit;
  font-weight: 850;
  display: inline-grid;
  place-items: center;
}

.text-button {
  min-height: 30px;
  padding: 0 10px;
  color: var(--muted);
  background: var(--surface);
  font-size: 13px;
}

.search-field {
  margin: 14px 16px 0;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 0 10px;
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.panel-list {
  min-height: 0;
  overflow: auto;
  padding: 14px 16px;
  display: grid;
  align-content: start;
  gap: 8px;
}

.search-row,
.event-row {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.event-row {
  cursor: default;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(16, 20, 24, 0.18);
}

.evidence-box {
  margin: 14px 16px;
  min-height: 360px;
  max-height: min(560px, calc(100vh - 190px));
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface-muted);
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.toast-region {
  position: fixed;
  right: 16px;
  bottom: calc(70px + env(safe-area-inset-bottom));
  z-index: 120;
  pointer-events: none;
  display: grid;
  gap: 8px;
}

.toast {
  max-width: min(360px, calc(100vw - 32px));
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 800;
}

.scroll-top {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow);
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  cursor: pointer;
}

body[data-fullscreen-state="active"] .sidebar,
body[data-fullscreen-state="active"] .topbar {
  position: sticky;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 1.08fr) minmax(430px, 0.92fr);
  background: var(--surface);
}

.login-hero {
  min-height: 100vh;
  padding: clamp(32px, 7vw, 72px);
  color: #ffffff;
  background: #050607;
  display: grid;
  align-items: center;
}

.login-hero div {
  display: grid;
  gap: 20px;
}

.login-hero span,
.login-language span,
.login-heading span,
.access-box > span,
.access-box label span {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.login-hero span {
  color: #9fdcc7;
}

.login-hero h1 {
  font-size: clamp(58px, 7vw, 84px);
  line-height: 0.98;
}

.login-hero p {
  color: #d8dee6;
  font-size: 16px;
  line-height: 1.45;
}

.login-panel {
  width: min(430px, calc(100vw - 40px));
  min-height: 458px;
  margin: auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 20px 54px rgba(21, 31, 43, 0.10);
  display: grid;
  align-content: start;
  gap: 18px;
  position: relative;
}

.login-language {
  width: max-content;
  justify-self: end;
  position: relative;
}

.login-language [data-language-button] {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  background: var(--surface-muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.login-language [data-language-button]::after,
.language-button::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.login-language strong {
  color: var(--text);
  font-size: 12px;
}

.login-heading {
  display: grid;
  gap: 10px;
}

.login-heading h1 {
  font-size: 28px;
  line-height: 1.08;
}

.login-heading p,
.access-box p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.login-form {
  display: grid;
  gap: 14px;
}

.access-box {
  min-height: 182px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  display: grid;
  gap: 11px;
}

.access-box label {
  display: grid;
  gap: 7px;
  color: var(--muted);
}

.access-box input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--text);
  background: var(--surface);
}

.login-submit {
  width: 100%;
  min-height: 38px;
  border-color: var(--ink);
  color: var(--bg);
  background: var(--ink);
}

.login-submit[aria-busy="true"] {
  cursor: progress;
  opacity: 0.82;
}

.login-submit:disabled {
  cursor: progress;
}

.login-message {
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fafafa;
  display: grid;
  align-content: center;
  line-height: 1.35;
}

.login-message[data-tone="warning"] {
  border-color: #d6a231;
  color: #7a5100;
  background: #fff8e6;
}

.login-message[data-tone="error"] {
  border-color: #d65d5d;
  color: #8f1e1e;
  background: #fff0f0;
}

.verification-note {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafafa;
  display: grid;
  align-content: center;
  padding: 10px;
}

.turnstile-box {
  min-height: 0;
}

.turnstile-box iframe {
  max-width: 100%;
}

@media (max-width: 860px) {
  .login-shell {
    grid-template-columns: 1fr;
    background: #050607;
  }

  .login-hero {
    min-height: 240px;
    padding: 30px 24px 22px;
    align-items: end;
  }

  .login-hero h1 {
    font-size: clamp(44px, 15vw, 64px);
  }

  .login-panel {
    width: min(420px, calc(100vw - 32px));
    margin: -18px auto 28px;
  }
}

@media (max-width: 520px) {
  .login-hero {
    min-height: 190px;
    padding: 24px 20px 18px;
  }

  .login-hero h1 {
    font-size: 44px;
  }

  .login-panel {
    width: calc(100vw - 24px);
    min-height: 0;
    padding: 20px;
    gap: 14px;
  }

  .login-language {
    justify-self: stretch;
  }

  .login-language [data-language-button] {
    width: 100%;
    justify-content: space-between;
  }

  .login-language .language-list {
    width: 100%;
  }
}

.verification-note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 980px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
    position: relative;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    grid-template-rows: auto auto auto auto;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding-bottom: 2px;
  }

  .nav-section {
    display: none;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .metrics,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .main {
    padding: 14px;
  }

  .topbar {
    padding: 14px;
  }

  .button {
    min-width: 42px;
  }

  .button span:not(.button-icon) {
    display: none;
  }

  .runtime-table,
  .runtime-table tbody,
  .runtime-table tr,
  .runtime-table td {
    display: block;
    width: 100%;
  }

  .runtime-table thead {
    display: none;
  }

  .runtime-table tr {
    border-bottom: 1px solid var(--line-soft);
  }

  .runtime-table td {
    border-bottom: 0;
  }

  .runtime-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
  }
}

.sr-only {
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  position: absolute;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.command-strip {
  flex: 0 0 auto;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: nowrap;
  overflow: visible;
}

.command-button {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  position: relative;
  flex: 0 0 auto;
}

.command-button.compact {
  width: 38px;
  padding: 0;
}

.command-label {
  color: inherit;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
}

.command-button.primary {
  border-color: var(--ink);
  color: var(--bg);
  background: var(--ink);
}

.command-button:hover {
  border-color: var(--ink);
}

.command-button:disabled {
  cursor: progress;
}

.command-button.loading span[data-icon] {
  animation: codeanvil-spin 0.8s linear infinite;
}

@keyframes codeanvil-spin {
  to {
    transform: rotate(360deg);
  }
}

.language-control {
  position: relative;
  flex: 0 0 auto;
}

.language-control,
.account-control {
  z-index: 35;
}

.language-button {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.account-control {
  position: relative;
  flex: 0 0 auto;
}

.account-button {
  min-height: 38px;
  padding: 0 10px 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  display: inline-grid;
  grid-template-columns: 28px minmax(0, auto) 10px;
  gap: 8px;
  align-items: center;
  text-align: left;
}

.account-button::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.account-button:hover {
  border-color: var(--ink);
}

.account-avatar {
  width: 28px;
  height: 28px;
  border: 1px solid #3e4a56;
  border-radius: 50%;
  color: #ffffff;
  background: #050607;
  display: inline-grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
}

.account-label {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.account-label strong {
  font-size: 12px;
  line-height: 1.1;
}

.account-label small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.1;
}

.language-list {
  min-width: 178px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 100;
  display: grid;
  gap: 4px;
}

.account-menu {
  width: 246px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 100;
  display: grid;
  gap: 2px;
}

.language-list[hidden],
.account-menu[hidden] {
  display: none;
}

.language-list button,
.segmented-language button {
  min-height: 32px;
  border: 0;
  border-radius: 7px;
  padding: 0 10px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.language-list button:hover,
.language-list button.active {
  color: #ffffff;
  background: var(--ink);
}

.language-list button.active::after {
  content: "";
  width: 6px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
  flex: 0 0 auto;
}

.account-menu__head {
  padding: 10px 10px 9px;
  border-bottom: 1px solid var(--line-soft);
  display: grid;
  gap: 3px;
}

.account-menu__head strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.2;
}

.account-menu__head span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.account-menu button {
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  padding: 0 9px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  text-align: left;
}

.account-menu button:hover {
  color: #ffffff;
  background: var(--ink);
}

.account-menu button:hover small,
.account-menu button:hover .row-icon {
  color: rgba(255, 255, 255, 0.72);
}

.account-menu button span:last-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.account-menu button strong {
  font-size: 13px;
  line-height: 1.15;
}

.account-menu button small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.segmented-language {
  min-height: 38px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(96px, 1fr));
  gap: 3px;
}

.segmented-language button {
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

.segmented-language button.active {
  color: #ffffff;
  background: var(--ink);
}

.main {
  width: min(1560px, 100%);
  padding: 18px;
}

.route-view {
  gap: 12px;
}

.system-band {
  min-height: 116px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  display: grid;
  grid-template-columns: minmax(240px, 0.6fr) minmax(0, 1.4fr);
  overflow: hidden;
}

.system-state {
  padding: 18px;
  border-right: 1px solid var(--line);
  color: #ffffff;
  background: #050607;
  display: grid;
  align-content: center;
  gap: 5px;
}

.system-state span,
.indicator span,
.metric-card span,
.panel-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.system-state span {
  color: #b8c2ce;
}

.system-state strong {
  font-size: 34px;
  line-height: 1;
}

.system-state p {
  color: #d8dee6;
  font-size: 12px;
  line-height: 1.4;
}

.indicator-grid {
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.indicator {
  min-height: 90px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  display: grid;
  align-content: space-between;
}

.indicator strong {
  font-size: 18px;
  line-height: 1.2;
}

.indicator.ok {
  border-color: var(--line);
  box-shadow: inset 3px 0 0 var(--good);
}

.indicator.warn {
  border-color: var(--line);
  box-shadow: inset 3px 0 0 var(--warn);
}

.indicator.bad {
  border-color: var(--line);
  box-shadow: inset 3px 0 0 var(--bad);
}

.metrics.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.metric-card {
  min-height: 96px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  display: grid;
  align-content: start;
  gap: 8px;
}

.metric-card strong {
  font-size: 24px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.metric-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.metric-card.ok {
  border-color: var(--line);
  box-shadow: inset 3px 0 0 var(--good);
}

.metric-card.warn {
  border-color: var(--line);
  box-shadow: inset 3px 0 0 var(--warn);
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
  gap: 12px;
  align-items: start;
}

@media (min-width: 1500px) {
  .shell {
    grid-template-columns: 268px minmax(0, 1fr);
  }

  .main {
    width: min(1680px, 100%);
    padding: 20px 24px;
  }

  .overview-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.38fr);
  }
}

.data-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.data-panel.wide {
  grid-row: span 3;
}

.panel-head {
  min-height: 52px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-head div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.panel-head strong {
  font-size: 15px;
  line-height: 1.15;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

.data-table th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table td strong,
.instance-card strong {
  display: block;
  font-size: 13px;
  line-height: 1.2;
}

.data-table td span,
.instance-card span,
.instance-card em {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.code-fragment {
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.muted {
  color: var(--muted);
}

.endpoint-link {
  display: inline-block;
  max-width: 100%;
  color: var(--text);
  overflow-wrap: anywhere;
}

.endpoint-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.definition-grid {
  min-width: 0;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.definition-grid div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--surface-muted);
  display: grid;
  gap: 5px;
}

.definition-grid dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.definition-grid dd {
  min-width: 0;
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.timeline-list {
  padding: 8px;
  display: grid;
  gap: 6px;
}

.timeline-row {
  min-height: 62px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--surface-muted);
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.timeline-row .state-chip {
  justify-self: end;
}

.timeline-row.ok {
  border-color: color-mix(in srgb, var(--good) 28%, var(--line));
}

.timeline-row.warn {
  border-color: color-mix(in srgb, var(--warn) 32%, var(--line));
}

.timeline-row.bad {
  border-color: color-mix(in srgb, var(--bad) 30%, var(--line));
}

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--faint);
  justify-self: center;
}

.timeline-row.ok .timeline-dot {
  background: var(--good);
}

.timeline-row.warn .timeline-dot {
  background: var(--warn);
}

.timeline-row.bad .timeline-dot {
  background: var(--bad);
}

.timeline-row strong {
  display: block;
  font-size: 13px;
  line-height: 1.25;
}

.timeline-row span:not(.state-chip):not(.timeline-dot) {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

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

.entity-card {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.entity-card.ok {
  --entity-accent: var(--good);
}

.entity-card.warn {
  --entity-accent: var(--warn);
}

.entity-card__head {
  min-height: 64px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: inset 3px 0 0 var(--entity-accent, var(--faint));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.entity-title {
  min-width: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.entity-title strong {
  display: block;
  font-size: 15px;
  line-height: 1.2;
}

.entity-title span:not(.row-icon) {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.entity-state {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.environment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.environment-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.environment-card.ok {
  border-color: color-mix(in srgb, var(--good) 24%, var(--line));
}

.environment-card.warn {
  border-color: color-mix(in srgb, var(--warn) 28%, var(--line));
}

.environment-card.bad {
  border-color: color-mix(in srgb, var(--bad) 26%, var(--line));
}

.environment-card header {
  min-height: 46px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.environment-card header > span:first-child {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.environment-card .definition-grid {
  grid-template-columns: 1fr;
  padding: 10px;
  gap: 8px;
}

.row-icon {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
}

.command-row,
.search-row {
  grid-template-columns: 24px minmax(0, 1fr) auto;
}

.command-row {
  min-height: 58px;
  border-color: transparent;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.command-list {
  gap: 0;
  padding: 6px;
}

.command-row + .command-row,
.command-row + .command-row.passive,
.command-row.passive + .command-row {
  border-top-color: var(--line-soft);
}

.command-row.passive {
  cursor: default;
}

.command-row:hover,
.search-row:hover {
  border-color: var(--ink);
  background: var(--surface-muted);
}

.settings-stack {
  display: grid;
  gap: 0;
  padding: 6px;
}

.setting-row {
  width: 100%;
  min-height: 66px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text);
  background: transparent;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  text-align: left;
}

button.setting-row {
  cursor: pointer;
}

.setting-row.passive {
  cursor: default;
}

.setting-row + .setting-row {
  border-top-color: var(--line-soft);
}

button.setting-row:hover {
  border-color: var(--ink);
  background: var(--surface-muted);
}

.setting-row__body {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.setting-row__body strong {
  display: block;
  font-size: 14px;
  line-height: 1.2;
}

.setting-row__body span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.setting-row__control {
  min-width: 0;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.instance-stack {
  display: grid;
  gap: 10px;
}

.instance-card {
  min-height: 92px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  display: grid;
  grid-template-columns: minmax(210px, 0.9fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.instance-card__main {
  min-width: 0;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.instance-env {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.instance-env > span:first-child {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.instance-env a,
.instance-env em {
  min-width: 0;
  color: var(--text);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.instance-state,
.pointer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.pointer-actions > span:last-child {
  color: var(--muted);
  font-size: 12px;
}

.boundary-block {
  min-height: 118px;
  padding: 14px;
  display: grid;
  align-content: start;
  gap: 12px;
}

.boundary-block p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

body[data-fullscreen-state="active"] .shell {
  min-height: 100vh;
}

body[data-fullscreen-state="active"] .sidebar {
  position: sticky;
}

@media (max-width: 1100px) {
  .overview-grid,
  .system-band {
    grid-template-columns: 1fr;
  }

  .system-state {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .indicator-grid,
  .metrics.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .environment-grid {
    grid-template-columns: 1fr;
  }

  .data-panel.wide {
    grid-row: auto;
  }

  .instance-card {
    grid-template-columns: 1fr;
  }

  .instance-state {
    justify-content: flex-start;
  }
}

@media (max-width: 980px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
    position: relative;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    grid-template-rows: auto auto auto;
    gap: 12px;
  }

  .rail-foot {
    display: none;
  }

  .nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 0 4px;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav-section {
    display: none;
  }

  .nav-item {
    width: auto;
    min-height: 38px;
    min-width: max-content;
    padding: 0 14px 0 10px;
    font-size: 13px;
    flex: 0 0 auto;
  }

  .topbar {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 14px 16px;
    gap: 12px;
  }

  .command-strip {
    width: 100%;
    justify-content: flex-start;
    padding-bottom: 2px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .command-strip::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 720px) {
  .account-label {
    display: none;
  }

  .account-button {
    grid-template-columns: 28px;
    padding-right: 8px;
  }

  .account-button::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .main {
    padding: 12px;
  }

  .sidebar {
    padding: 14px 12px 12px;
  }

  .side-status {
    min-height: 58px;
    padding: 10px;
  }

  .topbar {
    position: relative;
    padding: 12px;
    gap: 10px;
  }

  .title-block h1 {
    font-size: 20px;
  }

  .title-block p {
    display: none;
  }

  .indicator-grid,
  .metrics.compact,
  .definition-grid {
    grid-template-columns: 1fr;
  }

  .entity-card__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .entity-state {
    justify-content: flex-start;
  }

  .command-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 0 4px;
    scrollbar-width: none;
  }

  .command-strip::-webkit-scrollbar {
    display: none;
  }

  .command-button {
    min-width: 42px;
    width: auto;
    padding: 0 11px;
    position: relative;
  }

  .command-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
    clip-path: inset(50%);
  }

  .language-control,
  .account-control {
    flex: 0 0 auto;
  }

  .language-button {
    min-width: 116px;
    height: 42px;
    justify-content: center;
  }

  .account-button {
    width: 42px;
    height: 42px;
    grid-template-columns: 28px;
    justify-content: center;
    padding: 0;
  }

  .settings-stack {
    padding: 4px;
  }

  .setting-row {
    min-height: 74px;
    padding: 12px 10px;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
  }

  .setting-row__control {
    width: 100%;
    grid-column: 2;
    justify-self: start;
    justify-content: flex-start;
  }

  .setting-row__control .state-chip {
    width: max-content;
  }

  .segmented-language.setting-row__control {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .segmented-language button {
    min-width: 0;
    padding: 0 8px;
  }

  .account-menu {
    width: min(280px, calc(100vw - 24px));
    gap: 1px;
    right: 0;
  }

  .account-menu__head {
    padding: 8px 10px 7px;
  }

  .account-menu button {
    min-height: 38px;
  }

  .command-row,
  .search-row {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .command-row .state-chip,
  .search-row .state-chip {
    grid-column: 2;
    justify-self: start;
  }

  .timeline-row {
    grid-template-columns: 16px minmax(0, 1fr);
  }

  .timeline-row .state-chip {
    grid-column: 2;
    justify-self: start;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table thead {
    display: none;
  }

  .data-table tr {
    border-bottom: 1px solid var(--line-soft);
  }

  .data-table td {
    border-bottom: 0;
  }

  .data-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
  }
}

/* OS Design System Contract: component primitives override generic row/table text rules. */
span.state-chip,
.readiness-row span.state-chip,
.pointer-row span.state-chip,
.finding-row span.state-chip,
.activity-row span.state-chip,
.command-row span.state-chip,
.search-row span.state-chip,
.event-row span.state-chip,
.timeline-row span.state-chip,
.data-table td span.state-chip,
.instance-card span.state-chip,
.panel-head span.state-chip,
.entity-state span.state-chip,
.setting-row span.state-chip {
  width: max-content;
  max-width: 100%;
  min-height: 30px;
  margin-top: 0;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  vertical-align: middle;
}

span.state-chip .state-chip__label {
  min-width: 0;
  margin: 0;
  color: inherit;
  font: inherit;
  line-height: 1;
  white-space: nowrap;
  display: block;
}

span.state-chip .state-chip__dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  margin: 0;
  border-radius: 999px;
  background: var(--faint);
  display: block;
}

span.state-chip.ok .state-chip__dot {
  background: var(--good);
}

span.state-chip.warn .state-chip__dot {
  background: var(--warn);
}

span.state-chip.bad .state-chip__dot {
  background: var(--bad);
}

span.state-chip.neutral .state-chip__dot {
  display: none;
}

.segmented-language.setting-row__control {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(96px, 1fr));
  justify-content: stretch;
}

.segmented-language.setting-row__control button {
  min-width: 0;
}

.segmented-language.setting-row__control button.active {
  color: #ffffff;
  background: var(--ink);
}
