:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #172e32;
  background: #f3f6f5;
  font-size: 14px;
  --ink: #173439;
  --muted: #687d80;
  --line: #dce5e3;
  --green: #176b59;
  --mint: #deeee5;
  --amber: #a1641b;
  --red: #a13b3b;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 10px 15px;
  border-radius: 7px;
  font-weight: 600;
}
button:hover {
  background: #edf4f1;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
button.danger {
  color: var(--red);
  border-color: #e4caca;
}
button.small {
  padding: 6px 10px;
  font-size: 12px;
}
button.link {
  border: 0;
  background: none;
  color: var(--green);
  padding: 4px;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid #c8d5d2;
  border-radius: 6px;
  padding: 10px;
  background: white;
  color: #19383a;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
textarea.code {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  min-height: 160px;
}
label {
  display: block;
  font-weight: 600;
  margin: 15px 0 6px;
}
label small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  margin: 4px 0;
}
a {
  color: var(--green);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -1px;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 15px;
}
p {
  line-height: 1.6;
}
small,
.muted {
  color: var(--muted);
}
.shell {
  display: grid;
  grid-template-columns: 232px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: #16383b;
  color: #d9e8e5;
  padding: 27px 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-left: 10px;
  color: white;
  font-size: 21px;
  letter-spacing: -0.5px;
  font-weight: 650;
}
.brand-mark {
  display: grid;
  place-items: center;
  background: #bddcca;
  color: #173c39;
  border-radius: 8px;
  width: 31px;
  height: 31px;
  font-size: 20px;
}
.sidebar .subtitle {
  font-size: 10px;
  letter-spacing: 2px;
  color: #a3c0bc;
  padding-left: 51px;
  margin-top: -18px;
}
.sidebar select {
  background: #23474a;
  border-color: #496367;
  color: #fff;
  font-size: 12px;
}
.nav {
  display: grid;
  gap: 4px;
}
.nav button {
  background: transparent;
  border: 0;
  color: #b9cfcb;
  text-align: left;
  font-weight: 450;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
}
.nav button.active {
  background: #345754;
  color: white;
}
.nav .icon {
  width: 20px;
  text-align: center;
  color: #b4d6ca;
}
.sidebar-foot {
  margin-top: auto;
  font-size: 11px;
  color: #adc6c0;
  line-height: 1.7;
  padding: 10px;
}
.main {
  min-width: 0;
}
.topbar {
  height: 73px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 35px;
  gap: 16px;
}
.topbar .workspace {
  font-size: 12px;
  color: var(--muted);
}
.topbar .right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  border-radius: 50%;
  background: #e5eee8;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 12px;
}
.content {
  padding: 32px 35px;
  max-width: 1500px;
  margin: 0 auto;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--green);
  margin-bottom: 10px;
}
.heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 25px;
}
.heading p {
  color: var(--muted);
  max-width: 710px;
  margin-bottom: 0;
}
.tools {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.banner {
  padding: 14px 18px;
  border: 1px solid #e7d7b8;
  background: #fffbef;
  color: #815d2a;
  border-radius: 8px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  line-height: 1.5;
}
.banner.good {
  border-color: #c5dfd0;
  background: #eef8f0;
  color: #356345;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 25px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 20px;
}
.stat .label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}
.stat .number {
  font-size: 31px;
  font-weight: 600;
  letter-spacing: -1px;
}
.stat .note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}
.grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 22px;
  margin-bottom: 18px;
  min-width: 0;
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.card-head h2 {
  margin: 0;
}
.empty {
  text-align: center;
  padding: 38px 20px;
  color: var(--muted);
}
.empty .symbol {
  font-size: 28px;
  display: block;
  margin-bottom: 15px;
  color: #659387;
}
.empty h3 {
  color: var(--ink);
}
.pill {
  display: inline-block;
  border-radius: 20px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 5px 9px;
  background: #edf1f2;
  color: #5d7476;
  white-space: nowrap;
}
.pill.succeeded,
.pill.live,
.pill.verified {
  background: #e4f1e8;
  color: #337256;
}
.pill.review,
.pill.queued,
.pill.testing {
  background: #fff2d7;
  color: #9b6d20;
}
.pill.blocked,
.pill.uncertain,
.pill.rejected {
  background: #fbe9e6;
  color: #ac4944;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
th {
  text-align: left;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
  background: #f8faf9;
}
th,
td {
  padding: 13px 12px;
  border-bottom: 1px solid #e5ece9;
  vertical-align: top;
}
td .muted {
  font-size: 11px;
  margin-top: 5px;
}
tr:last-child td {
  border-bottom: 0;
}
.item-title {
  font-weight: 600;
  color: var(--ink);
}
.agent-icon {
  background: #e7f0ea;
  color: var(--green);
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 20px;
  margin-bottom: 16px;
}
.agent p {
  font-size: 12px;
  color: var(--muted);
  min-height: 72px;
}
.agent .tools {
  margin-top: 18px;
}
.steps {
  display: grid;
  gap: 14px;
}
.step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.step .n {
  border-radius: 50%;
  background: #edf4ef;
  color: var(--green);
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 11px;
}
.step p {
  font-size: 12px;
  margin: 3px 0;
}
.toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  align-items: center;
}
.toolbar input {
  max-width: 350px;
}
.preview {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.7;
  font-size: 13px;
  background: #f7faf8;
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 7px;
  max-height: 470px;
  overflow: auto;
}
.asset-grid img {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  border-radius: 6px;
  background: #f4f6f5;
}
.login {
  max-width: 450px;
  margin: 7vh auto;
  padding: 35px;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.login .brand {
  color: var(--ink);
  padding: 0;
  margin-bottom: 24px;
}
.login button.primary {
  width: 100%;
  margin-top: 22px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.form-note {
  font-size: 12px;
  background: #f1f6f3;
  padding: 12px;
  border-radius: 6px;
  margin: 14px 0;
  color: #536c66;
  line-height: 1.6;
}
.error {
  background: #fff0ec;
  color: #9d3939;
  padding: 12px;
  border-radius: 6px;
  white-space: pre-wrap;
}
.hidden {
  display: none !important;
}
.loading {
  padding: 70px;
  color: var(--muted);
  text-align: center;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 11px;
  max-width: 800px;
  width: calc(100% - 36px);
  padding: 27px;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 24px 90px #0e292f40;
}
dialog::backdrop {
  background: #0c242b88;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 15px;
}
.modal-head h2 {
  margin: 0;
}
.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 22px;
}
#toast {
  position: fixed;
  bottom: 24px;
  right: 25px;
  max-width: 500px;
  background: #16383b;
  color: white;
  padding: 15px 22px;
  border-radius: 7px;
  box-shadow: 0 5px 20px #0002;
  display: none;
  z-index: 999;
}
#toast.show {
  display: block;
}
code {
  font-size: 11px;
  word-break: break-all;
}
.check {
  display: flex;
  gap: 9px;
  align-items: center;
}
.check input {
  width: auto;
}
.check label {
  margin: 0;
}
.details-row {
  margin: 14px 0;
}
.details-row strong {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 5px;
}
.tabs {
  display: flex;
  gap: 8px;
  margin: 15px 0;
}
.caption {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 20px 0;
}
@media (max-width: 1100px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    height: auto;
    position: static;
    padding: 15px;
  }
  .sidebar .subtitle,
  .sidebar-foot {
    display: none;
  }
  .nav {
    display: flex;
    overflow: auto;
  }
  .nav button {
    white-space: nowrap;
  }
  .brand {
    padding: 0;
  }
  .topbar {
    padding: 0 18px;
  }
  .content {
    padding: 24px 18px;
  }
  .heading {
    display: block;
  }
  .heading .tools {
    margin-top: 15px;
  }
  .cards,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    gap: 10px;
  }
  .card {
    padding: 17px;
  }
  h1 {
    font-size: 25px;
  }
  .topbar .right > span {
    display: none;
  }
}
.install-shell {
  max-width: 680px;
  margin: 5vh auto;
  padding: 24px;
}
.install-shell input {
  display: block;
  width: 100%;
  margin: 8px 0 20px;
}
