:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: #25354a;
  background: #f5f7fa;
  font-size: 14px;
  line-height: 1.65;
  --accent: #225dca;
  --border: #e2e7ef;
  --muted: #738095;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
.button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #91b7ff;
  outline-offset: 3px;
}
button,
.button {
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 9px 16px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}
button:hover:not(:disabled),
.button:hover {
  filter: brightness(0.96);
}
.secondary {
  background: white;
  border-color: var(--border);
  color: #425269;
}
.quiet {
  background: transparent;
  color: var(--muted);
  padding: 5px 8px;
}
.danger {
  background: #b33f42;
}
.shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 224px;
  flex-shrink: 0;
  background: #132239;
  color: #a7b4c8;
  padding: 30px 18px;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
}
.brand {
  display: flex;
  gap: 13px;
  align-items: center;
  color: white;
  text-decoration: none;
  font-size: 28px;
  font-weight: 750;
  padding: 0 14px 38px;
}
.brand > span {
  font-size: 20px;
  letter-spacing: 0.3px;
}
.brand small {
  display: block;
  font-size: 11px;
  color: #92a4bf;
  font-weight: 400;
  letter-spacing: 2px;
}
.nav-label {
  font-size: 11px;
  letter-spacing: 2px;
  padding: 0 16px 12px;
  color: #7185a3;
}
nav {
  display: grid;
  gap: 7px;
}
nav button {
  background: transparent;
  color: #adbbce;
  justify-content: flex-start;
  padding: 12px 16px;
  font-weight: 500;
}
nav button > span:first-child {
  width: 21px;
  font-size: 18px;
}
nav button[aria-current] {
  background: #24436b;
  color: #fff;
  box-shadow: inset 3px 0 #6d9dff;
}
.count {
  margin-left: auto;
  font-size: 11px;
  padding: 0 6px;
  background: #ffffff13;
  border-radius: 4px;
}
.sidebar-foot {
  margin-top: auto;
  padding: 25px 12px 0;
  font-size: 12px;
}
.sidebar-foot p {
  color: #7185a3;
  font-size: 11px;
}
.sidebar-foot small {
  font-size: 9px;
  letter-spacing: 1px;
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #6aa9a0;
  border-radius: 50%;
  margin-right: 7px;
}
.workspace {
  margin-left: 224px;
  min-width: 0;
  flex: 1;
}
.topbar {
  height: 76px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb span {
  margin: 0 14px;
  color: #c3cbd6;
}
.breadcrumb strong {
  color: #43536a;
  font-weight: 500;
}
.identity {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
}
.context {
  padding: 20px 36px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.context label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}
.context select {
  min-width: 145px;
  background: #f8f9fc;
}
.context #context-note {
  font-size: 12px;
  color: var(--muted);
  margin-left: auto;
}
.context button {
  font-size: 12px;
  padding: 6px 12px;
}
main {
  padding: 32px 36px;
  max-width: 1520px;
  margin: auto;
  min-height: calc(100vh - 216px);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 25px;
  letter-spacing: -0.6px;
  margin-bottom: 6px;
  color: #1d2d43;
}
h2 {
  font-size: 17px;
  color: #26374e;
  margin-bottom: 16px;
}
h3 {
  font-size: 14px;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
}
.page-head p,
.muted {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 0;
}
.eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--muted);
  margin-bottom: 8px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 2px 4px #1c325003;
}
.grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
  margin-bottom: 22px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat {
  padding: 20px 23px;
}
.stat strong {
  display: block;
  font-size: 29px;
  font-weight: 600;
  line-height: 1.5;
  color: #243752;
}
.stat span {
  font-size: 12px;
  color: var(--muted);
}
.stat small {
  font-size: 10px;
  color: #8793a5;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.card-head h2 {
  margin: 0;
}
.badge {
  display: inline-block;
  background: #eef3fb;
  color: #54739d;
  font-size: 11px;
  border-radius: 5px;
  padding: 3px 9px;
  white-space: nowrap;
}
.badge.awaiting_approval {
  background: #fff3dd;
  color: #936619;
}
.badge.failed,
.badge.cancelled {
  background: #fceded;
  color: #a64e52;
}
.badge.succeeded {
  background: #eaf5ef;
  color: #33735c;
}
.badge.running {
  background: #eaf0ff;
  color: #3c64b4;
}
.callout {
  background: #f4f7fc;
  border: 1px solid #e4ebf7;
  border-radius: 7px;
  padding: 15px 17px;
  font-size: 12px;
  color: #62748c;
  margin: 16px 0;
}
.callout strong {
  display: block;
  color: #405d84;
  margin-bottom: 3px;
}
.empty {
  text-align: center;
  color: var(--muted);
  padding: 34px 16px;
  font-size: 13px;
}
.empty strong {
  display: block;
  color: #475c76;
  margin: 8px 0;
}
.section-space {
  margin-top: 22px;
}
.key-value {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  font-size: 12px;
  margin: 0;
}
.key-value dt {
  color: var(--muted);
}
.key-value dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
th {
  font-weight: 500;
  color: #8a96a6;
  font-size: 11px;
  background: #f8fafd;
}
td,
th {
  padding: 13px 12px;
  border-bottom: 1px solid #edf0f5;
}
td:first-child {
  font-weight: 500;
}
tbody tr:last-child td {
  border-bottom: 0;
}
.table-button {
  background: none;
  color: var(--accent);
  padding: 0;
  font-size: 12px;
  text-align: left;
}
code {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
label.field {
  display: grid;
  gap: 7px;
  font-size: 12px;
  color: #52627a;
  margin-bottom: 17px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #dbe2ec;
  border-radius: 6px;
  padding: 9px 11px;
  background: white;
  color: #2d4059;
  min-height: 40px;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
label small {
  font-size: 11px;
  color: var(--muted);
}
.check {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 12px;
  margin: 18px 0;
}
.check input {
  width: 16px;
  min-height: 16px;
  margin: 4px 0;
  flex-shrink: 0;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.steps {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}
.steps span {
  flex: 1;
  border-top: 3px solid #dce5f3;
  padding-top: 10px;
  font-size: 11px;
  color: #718099;
}
.steps span:first-child {
  border-color: #5280ce;
}
.login {
  max-width: 650px;
  margin: 65px auto;
  padding: 48px;
}
.login h1 {
  margin: 12px 0;
}
.login p {
  color: var(--muted);
  margin-bottom: 25px;
}
.login .muted {
  margin-top: 20px;
  margin-bottom: 0;
}
#notice {
  border: 1px solid #e4bb79;
  background: #fff8eb;
  color: #825c25;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 20px;
  overflow-wrap: anywhere;
}
#notice.error {
  background: #fff2f1;
  color: #a34444;
  border-color: #edcbc8;
}
footer {
  display: flex;
  justify-content: space-between;
  padding: 14px 36px 22px;
  font-size: 10px;
  color: #8a97a9;
}
dialog {
  width: min(760px, calc(100vw - 32px));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px;
  color: inherit;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 24px 90px #13223935;
}
dialog::backdrop {
  background: #101d3466;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.timeline {
  padding: 0;
  list-style: none;
}
.timeline li {
  padding: 10px 0 10px 15px;
  border-left: 2px solid #dbe5f5;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.skip {
  position: fixed;
  top: -100px;
  left: 10px;
  background: white;
  padding: 12px;
  z-index: 10;
}
.skip:focus {
  top: 10px;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1500px) {
  main {
    padding-top: 40px;
  }
}
@media (max-width: 1100px) {
  .context {
    flex-wrap: wrap;
    gap: 12px;
  }
  .context #context-note {
    display: none;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .sidebar {
    width: 190px;
  }
  .workspace {
    margin-left: 190px;
  }
  .topbar,
  .context {
    padding-left: 24px;
    padding-right: 24px;
  }
  main {
    padding: 24px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
}
@media (max-width: 700px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: static;
    width: 100%;
    padding: 15px 16px;
  }
  .brand {
    padding: 0 2px 14px;
    font-size: 24px;
  }
  .brand small,
  .nav-label,
  .sidebar-foot {
    display: none;
  }
  nav {
    display: flex;
    gap: 4px;
    overflow: auto;
  }
  nav button {
    font-size: 12px;
    white-space: nowrap;
    padding: 9px;
  }
  nav button > span:first-child {
    display: none;
  }
  .count {
    display: none;
  }
  .workspace {
    margin: 0;
  }
  .topbar {
    height: 55px;
    padding: 0 18px;
  }
  .context {
    padding: 14px 18px;
  }
  .context label {
    flex: 1;
    min-width: 135px;
    display: grid;
    gap: 4px;
  }
  .context select {
    min-width: 0;
  }
  .context button {
    align-self: end;
  }
  main {
    padding: 22px 16px;
  }
  .page-head {
    align-items: flex-start;
  }
  .page-head p {
    max-width: 250px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .card {
    padding: 19px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .login {
    margin: 20px auto;
    padding: 25px;
  }
  footer {
    padding: 10px 18px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .key-value {
    grid-template-columns: 86px 1fr;
  }
  .steps {
    flex-wrap: wrap;
  }
  h1 {
    font-size: 22px;
  }
}
.context label {
  white-space: nowrap;
}
table {
  min-width: 620px;
}
.error {
  color: #a34444;
  background: #fff2f1;
  border-color: #edcbc8;
}
@media (prefers-reduced-motion: no-preference) {
  button,
  a,
  input,
  select {
    transition:
      background-color 0.15s,
      border-color 0.15s,
      box-shadow 0.15s;
  }
}
.skip {
  top: 10px;
  transform: translateY(-200%);
  clip-path: inset(50%);
}
.skip:focus {
  transform: translateY(0);
  clip-path: none;
}
.device-card {
  max-width: 760px;
}
.device-card form {
  margin-top: 24px;
}
.device-result {
  font-size: 13px;
  color: #405d84;
  margin-top: 16px;
  overflow-wrap: anywhere;
}
