:root {
  color-scheme: light;
  font-family: system-ui, "Microsoft YaHei", sans-serif;
  color: #142640;
  background: #f3f6fa;
  --muted: #52667e;
  --border: #dce5ef;
  --blue: #1764d2;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--blue); text-decoration: none; }
button, a.button { cursor: pointer; font: inherit; }
:focus-visible { outline: 3px solid #689af3; outline-offset: 3px; }
.bar { background: #12253e; color: white; }
.bar-inner, main { width: min(1140px, calc(100% - 36px)); margin-inline: auto; }
.bar-inner, .brand, .user, .page-heading, .actions, footer { display: flex; align-items: center; gap: 12px; }
.bar-inner, .page-heading, footer { justify-content: space-between; }
.bar-inner { min-height: 64px; }
.brand { color: #fff; font-weight: 680; }
.brand span { display: grid; place-items: center; width: 32px; height: 32px; background: #2271e4; border-radius: 8px; }
.user { color: #c9d8eb; font-size: .85rem; }
.user form { margin: 0; }
main { padding: 32px 0 48px; }
h1 { font-size: 1.78rem; margin: 0 0 6px; line-height: 1.22; }
h2 { font-size: 1.02rem; margin: 0 0 14px; }
p { color: var(--muted); margin: 0 0 12px; line-height: 1.65; }
.page-heading { margin-bottom: 18px; }
.page-heading p { margin: 0; }
.card { background: white; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 2px 6px #1426400a; overflow: hidden; }
.login { width: min(100%, 465px); margin: 62px auto; padding: 30px; }
.login p { margin: 12px 0 24px; }
.tabs { display: flex; gap: 6px; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.tabs a { padding: 8px 13px; color: var(--muted); font-size: .91rem; border-radius: 7px; }
.tabs a[aria-current] { background: #eaf2ff; color: #134fa9; font-weight: 670; }
.table-wrap { overflow: auto; }
table { width: 100%; min-width: 650px; border-collapse: collapse; text-align: left; }
th { background: #f6f8fc; font-size: .82rem; color: var(--muted); }
td, th { padding: 13px 16px; border-bottom: 1px solid #ebeff5; vertical-align: middle; }
td { font-size: .91rem; }
tbody tr:hover { background: #f8fbff; }
td:first-child { width: 41%; overflow-wrap: anywhere; }
.request { display: inline-block; color: #123c76; font-weight: 650; max-width: 55ch; }
.more { white-space: nowrap; }
.empty { text-align: center; padding: 36px; color: var(--muted); }
footer { padding: 12px 18px; color: var(--muted); font-size: .85rem; }
footer a + a { margin-left: 8px; }
.badge { display: inline-flex; align-items: center; white-space: nowrap; border-radius: 999px; padding: 3px 9px; font-size: .78rem; font-weight: 650; background: #edf1f7; color: #3d5069; }
.badge.pending { background: #fff3d4; color: #745000; }
.badge.running { background: #e7f0ff; color: #134fa9; }
.badge.succeeded { background: #ddf5e9; color: #096340; }
.badge.failed { background: #fce9e8; color: #942729; }
.back { display: inline-block; margin-bottom: 18px; }
.block { padding: 20px; margin-bottom: 15px; }
.reason { color: #142640; font-size: 1.03rem; white-space: pre-wrap; overflow-wrap: anywhere; }
dl { display: grid; gap: 8px; margin: 14px 0 0; }
dl div { display: grid; grid-template-columns: minmax(140px, .25fr) 1fr; align-items: baseline; gap: 8px; }
dt, label { color: var(--muted); font-size: .86rem; }
dd { margin: 0; min-width: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
details { padding: 10px 0; border-top: 1px solid var(--border); }
summary { cursor: pointer; font-weight: 620; overflow-wrap: anywhere; }
details code { display: block; color: var(--muted); margin: 6px 0; overflow-wrap: anywhere; }
pre { padding: 12px; margin-bottom: 0; background: #f5f8fc; border-radius: 8px; max-height: 440px; overflow: auto; tab-size: 4; }
textarea { margin-top: 6px; width: 100%; font: inherit; padding: 8px 11px; color: inherit; background: #f9fbfe; border: 1px solid var(--border); border-radius: 8px; resize: vertical; }
.actions { justify-content: flex-end; margin-top: 11px; }
button, .button { display: inline-block; border: 1px solid transparent; border-radius: 8px; padding: 7px 12px; font-size: .87rem; font-weight: 650; }
.primary { background: var(--blue); color: white; }
.quiet { background: white; border-color: var(--border); color: #24456e; }
.danger { border-color: #efc8c8; color: #a12727; background: #fff7f7; }
.block .button { margin-top: 12px; }
@media (max-width: 550px) {
  main { padding-top: 24px; }
  h1 { font-size: 1.45rem; }
  .page-heading { align-items: flex-start; }
  .user > span { display: none; }
  dl div { grid-template-columns: 1fr; gap: 3px; }
  .login, .block { padding: 17px; }
}
