:root {
  color-scheme: light;
  --ink: #192438;
  --muted: #596779;
  --quiet: #42526a;
  --line: #dce3ed;
  --paper: #fff;
  --bg: #f5f7fb;
  --nav: #151d2b;
  --accent: #234bc2;
  --accent-soft: #eaf0ff;
  --bad: #a33725;
  --bad-bg: #fff2ed;
  --green: #25664f;
  --green-bg: #e6f5ed;
  --rail: 216px;
  font:
    14px/1.5 system-ui,
    -apple-system,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
}
[hidden] {
  display: none !important;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid #5578e8;
  outline-offset: 3px;
}
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail);
  background: var(--nav);
  color: #edf2fc;
  display: flex;
  flex-direction: column;
  padding: 27px 16px 22px;
  z-index: 2;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  margin: 0 7px 36px;
}
.brand strong {
  display: block;
  font-size: 19px;
  letter-spacing: -0.6px;
}
.brand small,
.rail-foot small {
  display: block;
  color: #aebbd0;
  font-size: 11px;
}
.mark {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  background: #3559d4;
  border-radius: 8px;
  color: white;
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
}
.rail nav {
  display: grid;
  gap: 6px;
}
.rail nav button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: 0;
  border-radius: 7px;
  padding: 11px;
  color: #c5cfe0;
  text-align: left;
  transition:
    background 0.15s,
    color 0.15s;
}
.rail nav button span {
  width: 18px;
  text-align: center;
  font-size: 16px;
}
.rail nav button:hover,
.rail nav button[aria-current] {
  background: #2a3855;
  color: white;
}
.rail nav button[aria-current] {
  font-weight: 700;
}
.rail-foot {
  margin: auto 7px 0;
  border-top: 1px solid #354155;
  padding-top: 16px;
  font-size: 12px;
}
.rail-foot small {
  margin: 4px 0 0 13px;
}
.local-dot,
.worker-status:before {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8494aa;
  content: "";
  margin-right: 7px;
  vertical-align: 1px;
}
.local-dot {
  background: #79a5ff;
}
main {
  margin-left: var(--rail);
  min-width: 0;
}
.topbar {
  min-height: 68px;
  padding: 12px 32px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 1;
}
.breadcrumb {
  color: var(--muted);
  white-space: nowrap;
}
.breadcrumb span {
  margin: 0 9px;
  color: #93a1b5;
}
.breadcrumb strong {
  color: var(--ink);
}
.worker {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.worker-status {
  margin-right: 5px;
  color: var(--quiet);
  font-size: 12px;
  white-space: nowrap;
}
.worker-status[data-state="running"]:before {
  background: #428d68;
}
.worker-status[data-mode="live"]:before,
.worker-status[data-state="error"]:before {
  background: #b6432c;
}
.workspace {
  max-width: 1480px;
  margin: auto;
  padding: 34px 32px 70px;
}
.view {
  animation: arrive 0.18s ease-out;
}
@keyframes arrive {
  from {
    opacity: 0.45;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.view-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  margin: 0 0 25px;
}
.view-heading h1 {
  font-size: clamp(27px, 3vw, 36px);
  letter-spacing: -0.04em;
  line-height: 1.2;
  margin: 4px 0 8px;
}
.view-heading p,
.section-heading p {
  margin: 0;
  color: var(--muted);
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 750;
  color: var(--accent) !important;
  margin: 0;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 7px 12px;
  font-weight: 650;
  white-space: nowrap;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.button.primary {
  color: #fff;
  background: var(--accent);
}
.button.primary:hover {
  background: #173aa1;
}
.button.secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}
.button.secondary:hover,
.icon:hover {
  background: var(--accent-soft);
  border-color: #b6c6ee;
}
.button.danger {
  border-color: #eed0c6;
  color: var(--bad);
  background: #fff8f5;
}
.button.danger:hover {
  background: #ffede5;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 16px 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-bottom: 25px;
}
.metric {
  padding: 1px 17px;
  min-width: 0;
}
.metric + .metric {
  border-left: 1px solid var(--line);
}
.metric span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.metric strong {
  display: block;
  font-size: 25px;
  line-height: 1.2;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
}
.table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
}
.filters {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.filters button {
  border: 0;
  border-radius: 6px;
  padding: 7px 10px;
  color: var(--muted);
  background: none;
  white-space: nowrap;
}
.filters button:hover,
.filters button[aria-pressed="true"] {
  background: var(--accent-soft);
  color: var(--accent);
}
.filters button[aria-pressed="true"] {
  font-weight: 700;
}
input,
textarea,
select {
  border: 1px solid #ccd6e4;
  border-radius: 7px;
  background: #fff;
  padding: 8px 10px;
  min-width: 0;
  color: var(--ink);
  min-height: 38px;
}
#search {
  width: min(195px, 100%);
}
input::placeholder,
textarea::placeholder {
  color: #657386;
}
textarea {
  width: 100%;
  resize: vertical;
}
#task-results {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow-wrap: anywhere;
}
#task-results ul {
  max-height: 180px;
  overflow: auto;
  padding-left: 20px;
}
.table-scroll {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 660px;
}
th {
  font-size: 12px;
  color: var(--muted);
  background: #f9fafd;
  font-weight: 700;
}
td,
th {
  padding: 12px 14px;
  border-bottom: 1px solid #e7ebf2;
  vertical-align: middle;
}
td {
  font-size: 13px;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #f7f9ff;
}
td:first-child {
  min-width: 130px;
  max-width: 210px;
  overflow-wrap: anywhere;
}
td small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.link {
  border: 0;
  background: none;
  color: var(--accent);
  font-weight: 700;
  padding: 4px 0;
  white-space: nowrap;
}
.link:hover {
  text-decoration: underline;
}
.domain {
  font-weight: 720;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
.tag {
  display: inline-block;
  white-space: nowrap;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  background: #edf1f7;
  color: #4b5d74;
}
.tag.watching,
.tag.pending,
.tag.submitting {
  background: var(--accent-soft);
  color: var(--accent);
}
.tag.review,
.tag.failed {
  background: var(--bad-bg);
  color: var(--bad);
}
.tag.registered {
  background: var(--green-bg);
  color: var(--green);
}
.empty {
  text-align: center;
  padding: 37px 15px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 9px 9px;
}
.empty strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  margin-bottom: 5px;
}
.table-scroll:has(+ .empty:not([hidden])) {
  border-radius: 9px 9px 0 0;
}
.section-heading {
  margin: 27px 0 12px;
}
.section-heading h2 {
  font-size: 19px;
  margin: 0 0 4px;
}
.settings-line,
.registrar {
  padding: 15px 17px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0 0 9px;
}
.registrar summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
}
.registrar summary:before {
  content: "›";
  color: var(--muted);
  font-size: 21px;
  line-height: 1;
  transition: transform 0.15s;
}
.registrar[open] summary:before {
  transform: rotate(90deg);
}
.registrar summary strong {
  font-size: 15px;
}
.registrar summary .tag {
  margin-left: auto;
}
.registrar form {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.settings-line,
.settings-actions {
  display: flex;
  align-items: end;
  gap: 8px;
  flex-wrap: wrap;
}
.settings-actions {
  margin-top: 13px;
}
.settings-message {
  color: var(--muted);
  font-size: 12px;
}
.notice,
.alert {
  padding: 10px 13px;
  border: 1px solid #c5d2f3;
  border-radius: 7px;
  background: var(--accent-soft);
  margin-bottom: 15px;
  color: #23438f;
}
.alert,
.warning {
  border-color: #efd0c6;
  color: var(--bad);
  background: var(--bad-bg);
}
.warning {
  border: 1px solid #efd0c6;
  border-radius: 7px;
  padding: 10px;
  margin: 0;
}
.authorization {
  color: var(--bad);
  font-weight: 650;
}
.live-plan {
  line-height: 1.5;
}
.live-plan ul {
  padding: 0;
  list-style: none;
  max-height: 230px;
  overflow: auto;
  margin: 8px 0 0;
}
.live-plan li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.live-plan small {
  display: block;
  color: var(--muted);
}
dialog {
  width: min(575px, calc(100% - 26px));
  max-height: calc(100% - 26px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 60px #17244433;
  color: var(--ink);
  overflow: auto;
}
dialog[open] {
  animation: arrive 0.18s ease-out;
}
dialog::backdrop {
  background: #17223885;
}
.dialog-head,
.dialog-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  padding: 14px 18px;
  position: sticky;
  z-index: 1;
}
.dialog-head {
  top: 0;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.dialog-foot {
  bottom: 0;
  justify-content: end;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.dialog-head h2 {
  margin: 2px 0 0;
  font-size: 22px;
  overflow-wrap: anywhere;
}
.dialog-body {
  padding: 15px 18px;
  display: grid;
  gap: 13px;
}
.dialog-body h3 {
  margin: 0;
  font-size: 15px;
}
.icon {
  width: 34px;
  height: 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--quiet);
  font-size: 19px;
  flex-shrink: 0;
}
label {
  display: grid;
  gap: 4px;
  color: var(--quiet);
  font-size: 13px;
  font-weight: 650;
}
label small,
fieldset p {
  font-weight: 400;
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.small-field {
  max-width: 180px;
}
.form-error {
  margin-right: auto;
  color: var(--bad);
  font-size: 12px;
}
.form-error:empty {
  display: none;
}
fieldset {
  margin: 0;
  padding: 8px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
legend {
  padding: 0 4px;
  font-weight: 700;
}
.route {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) minmax(72px, 110px) auto auto;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
}
.route-name {
  font-size: 13px;
}
.route-name small {
  color: var(--muted);
}
.route .icon {
  font-size: 14px;
}
.timeline {
  display: grid;
}
.event {
  display: grid;
  grid-template-columns: 133px 105px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding: 9px 1px;
  font-size: 12px;
}
.event time {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.event strong,
.event span {
  overflow-wrap: anywhere;
}
.event p {
  margin: 2px 0 0;
  color: var(--muted);
}
.event .tag {
  justify-self: start;
}
.detail-facts {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 6px 10px;
  margin: 0;
  font-size: 13px;
}
.detail-facts dt {
  color: var(--muted);
}
.detail-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.resolve {
  margin-top: 13px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
}
.check {
  display: flex;
  align-items: center;
  gap: 6px;
}
.check input {
  min-height: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
@media (max-width: 900px) {
  :root {
    --rail: 170px;
  }
  .topbar,
  .workspace {
    padding-left: 20px;
    padding-right: 20px;
  }
  .metric {
    padding-inline: 11px;
  }
}
@media (max-width: 670px) {
  .rail {
    position: relative;
    width: auto;
    padding: 9px 13px 8px;
    gap: 8px;
  }
  .brand {
    margin: 0;
  }
  .brand strong {
    font-size: 15px;
  }
  .brand small,
  .rail-foot {
    display: none;
  }
  .mark {
    width: 25px;
    height: 25px;
    font-size: 15px;
  }
  .rail nav {
    display: flex;
    gap: 3px;
  }
  .rail nav button {
    width: auto;
    padding: 6px 9px;
    gap: 5px;
  }
  .rail nav button span {
    font-size: 13px;
    width: 13px;
  }
  main {
    margin: 0;
  }
  .topbar {
    padding: 7px 12px;
    min-height: 48px;
  }
  .breadcrumb {
    display: none;
  }
  .workspace {
    padding: 21px 12px 42px;
  }
  .view-heading {
    align-items: start;
    margin-bottom: 15px;
  }
  .view-heading p:not(.eyebrow) {
    font-size: 12px;
  }
  .metrics {
    padding: 11px 0;
    margin-bottom: 15px;
  }
  .metric strong {
    font-size: 20px;
  }
  .metric span {
    font-size: 11px;
  }
  .table-toolbar {
    align-items: flex-start;
  }
  .filters button {
    padding: 6px;
  }
  #search {
    width: 108px;
  }
  .event {
    grid-template-columns: 1fr auto;
  }
  .event > div {
    grid-column: 1/-1;
  }
  .dialog-body,
  .dialog-head,
  .dialog-foot {
    padding-inline: 13px;
  }
}
@media (max-width: 360px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .route {
    grid-template-columns: minmax(76px, 1fr) 65px auto auto;
  }
  .route .icon {
    width: 30px;
  }
  .table-toolbar {
    flex-direction: column;
  }
  #search {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
  }
}

@media (max-width: 670px) {
  table {
    min-width: 0;
    table-layout: fixed;
  }

  th:nth-child(2),
  th:nth-child(3),
  td:nth-child(2),
  td:nth-child(3) {
    display: none;
  }

  th:nth-child(4) {
    width: 82px;
  }

  th:nth-child(5) {
    width: 62px;
  }

  td,
  th {
    padding-inline: 10px;
  }
}

.schedule-fields .form-grid {
  margin: 9px 0 5px;
}

.schedule-line {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 7px;
}

.schedule-line label {
  flex: 1 1 190px;
}

.schedule-fields .schedule-preview,
td .burst-label {
  color: var(--accent);
  font-weight: 700;
}
