:root {
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: #e9eef5;
  background: #0c111b;
  font-synthesis: none;
  --muted: #99a7bb;
  --line: #293346;
  --green: #5de0b4;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  background: #62dfba;
  color: #09261e;
  border: 0;
  border-radius: 7px;
  padding: 10px 16px;
  font-weight: 600;
}
button.secondary {
  background: #202d40;
  color: #e9eef5;
}
button.danger {
  background: #542d36;
  color: #ffd9df;
}
button:disabled {
  opacity: 0.45;
  cursor: wait;
}
input,
select {
  width: 100%;
  background: #101a29;
  border: 1px solid #39465d;
  border-radius: 7px;
  color: inherit;
  padding: 11px;
}
input[type="checkbox"] {
  width: auto;
}
label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  color: #b6c3d5;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
a {
  color: var(--green);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 28px;
  letter-spacing: -0.7px;
}
h2 {
  font-size: 19px;
}
h3 {
  font-size: 15px;
}
.muted {
  color: var(--muted);
  line-height: 1.6;
}
.small {
  font-size: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 650;
  font-size: 20px;
}
.mark {
  display: grid;
  place-items: center;
  background: #193f37;
  border: 1px solid #2c6d5c;
  color: var(--green);
  border-radius: 11px;
  width: 42px;
  height: 42px;
  font-size: 24px;
}
.auth {
  max-width: 430px;
  margin: 10vh auto;
  padding: 30px;
}
.auth .brand {
  margin-bottom: 42px;
}
.auth h1 {
  margin-bottom: 12px;
}
.auth form {
  display: grid;
  gap: 20px;
  margin-top: 30px;
}
.auth button {
  margin-top: 5px;
}
.auth footer {
  margin-top: 28px;
  color: var(--muted);
  font-size: 12px;
}
header {
  height: 84px;
  border-bottom: 1px solid var(--line);
  padding: 20px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #101722;
}
.account {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
}
.layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
}
nav {
  padding: 32px 16px;
  border-right: 1px solid var(--line);
  min-height: calc(100vh - 84px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
nav button {
  text-align: left;
  background: none;
  color: #aab7ca;
  font-weight: 500;
  padding: 13px 18px;
}
nav button.active {
  background: #19332f;
  color: var(--green);
}
main {
  max-width: 1400px;
  padding: 36px;
  width: 100%;
}
.eyebrow {
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-size: 10px;
  font-weight: 700;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.page-head p {
  margin-bottom: 0;
}
.panel {
  border: 1px solid var(--line);
  background: #111a28;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}
.empty {
  padding: 42px 22px;
  text-align: center;
  color: var(--muted);
}
.badge {
  display: inline-block;
  border: 1px solid #3e5066;
  border-radius: 20px;
  padding: 4px 9px;
  font-size: 11px;
  color: #b4c2d3;
}
.badge.good {
  color: var(--green);
  border-color: #285c50;
  background: #14342c;
}
.badge.bad {
  color: #f6b4bd;
  border-color: #74434d;
}
.cards {
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
}
.card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #111a28;
}
.card h2 {
  margin: 18px 0 8px;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.actions button {
  font-size: 12px;
  padding: 8px 12px;
}
form.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
  align-items: end;
}
form.grid button {
  min-height: 42px;
}
.checks {
  display: flex;
  gap: 16px;
  align-items: center;
  min-height: 42px;
}
.checks label {
  display: flex;
  align-items: center;
  gap: 6px;
}
.error {
  background: #38232e;
  border: 1px solid #79424f;
  border-radius: 8px;
  padding: 12px 16px;
  color: #ffd3db;
  margin: 18px 0;
  font-size: 13px;
}
.success {
  color: var(--green);
  font-size: 13px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}
th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}
td,
th {
  padding: 15px 10px;
  border-bottom: 1px solid var(--line);
}
td:first-child,
th:first-child {
  padding-left: 0;
}
.target {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  margin-top: 14px;
}
.target .muted {
  margin: 6px 0 12px;
}
.loading {
  padding: 40px;
  text-align: center;
  color: var(--muted);
}
dialog {
  background: #142032;
  color: inherit;
  border: 1px solid #4b627c;
  border-radius: 12px;
  width: min(620px, 90vw);
  padding: 28px;
}
dialog::backdrop {
  background: #000a;
}
dialog pre {
  white-space: pre-wrap;
  word-break: break-all;
  padding: 16px;
  background: #090f19;
  border-radius: 8px;
  font-size: 13px;
  user-select: all;
  max-height: 40vh;
  overflow: auto;
}
dialog p {
  color: var(--muted);
  line-height: 1.6;
}
@media (max-width: 760px) {
  header {
    height: auto;
    padding: 18px;
  }
  .brand {
    font-size: 16px;
  }
  .account span {
    display: none;
  }
  .layout {
    display: block;
  }
  nav {
    min-height: auto;
    flex-direction: row;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 10px;
    overflow: auto;
  }
  main {
    padding: 24px 16px;
  }
  .page-head {
    align-items: start;
  }
  .auth {
    margin: 4vh auto;
    padding: 24px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .checks {
    flex-wrap: wrap;
  }
}

.pilot-notice { margin: 1rem; padding: .75rem 1rem; border: 1px solid #43526b; border-radius: .5rem; color: #d8e4f5; background: #152033; }

.orchestration-status { margin: 0; font-size: .8rem; color: var(--muted, #64748b); }
