:root {
  color-scheme: light;
  --ink: #1f2937;
  --muted: #59697a;
  --line: #dce4ed;
  --blue: #205ece;
  --nav: #18344c;
  --paper: #fff;
  --ground: #f4f7fa;
  font:
    15px/1.5 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: var(--ink);
  background: var(--ground);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
[hidden] {
  display: none !important;
}
button,
input,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid #cbd5e0;
  border-radius: 7px;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
}
button:hover {
  border-color: #6786a6;
  background: #f1f6fb;
}
button:disabled {
  cursor: default;
  opacity: 0.53;
}
button.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
  font-weight: 600;
}
button.primary:hover {
  background: #184eaf;
}
button.link {
  padding: 0;
  background: none;
  border: 0;
  color: #2459a5;
}
a {
  color: #205aa8;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
:focus-visible {
  outline: 3px solid #729ef3;
  outline-offset: 3px;
}
input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--blue);
  flex: none;
}
input:not([type="checkbox"]),
select {
  background: white;
  border: 1px solid #bfccd8;
  color: var(--ink);
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  min-width: 0;
}
header {
  height: 66px;
  padding: 0 max(28px, calc((100vw - 1120px) / 2));
  background: var(--nav);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: white;
}
.brand,
.toplinks,
.inline,
.rowactions,
.dialogtitle,
.sectionhead,
.publishbar,
.title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand {
  font-size: 21px;
  font-weight: 700;
  white-space: nowrap;
}
.brand span {
  font-size: 14px;
  font-weight: 450;
  border-left: 1px solid #597488;
  padding-left: 15px;
  color: #e1e8ef;
}
.mark {
  width: 30px;
  height: 29px;
  display: inline-flex;
  align-items: end;
  gap: 3px;
  transform: skewY(-8deg);
}
.mark b {
  width: 7px;
  background: #84c5ed;
  border-radius: 1px;
}
.mark b:nth-child(1) {
  height: 14px;
}
.mark b:nth-child(2) {
  height: 25px;
}
.mark b:nth-child(3) {
  height: 19px;
}
.toplinks a,
.toplinks button {
  color: white;
  font-size: 14px;
}
.toplinks button {
  background: none;
  border-color: #688198;
}
.toplinks button:hover {
  background: #294962;
}
main {
  max-width: 1120px;
  margin: auto;
  padding: 0 24px 60px;
}
nav {
  display: flex;
  border-bottom: 1px solid var(--line);
  gap: 30px;
  margin-bottom: 26px;
}
nav button {
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  padding: 15px 0 11px;
  background: none;
  color: var(--muted);
}
nav button[aria-current="page"] {
  border-bottom-color: var(--blue);
  color: var(--blue);
  font-weight: 700;
}
.title,
.sectionhead,
.publishbar,
.dialogtitle {
  justify-content: space-between;
}
.title {
  margin: 18px 0;
}
.title p,
p.muted {
  color: var(--muted);
  margin: 5px 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 29px;
  letter-spacing: -0.04em;
}
h2 {
  font-size: 18px;
}
h3 {
  font-size: 15px;
}
h2 span {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
}
.activepanel {
  background: #e9f2f9;
  border-left: 4px solid #457795;
  padding: 18px 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.activepanel .version {
  font-size: 18px;
  font-weight: 650;
}
.activepanel p {
  margin-top: 4px;
}
.meta,
small {
  font-size: 13px;
  color: var(--muted);
}
.job-progress {
  margin-top: 12px;
  padding: 15px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  overflow-wrap: anywhere;
}
.job-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.job-heading small {
  margin-left: auto;
}
.job-heading .status.working {
  background: #e6efff;
  color: #214d99;
}
.job-heading .working::before {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  margin-right: 0.45em;
  border-radius: 50%;
  background: currentColor;
}
@media (prefers-reduced-motion: no-preference) {
  .job-heading .working::before {
    animation: job-active 1.6s ease-in-out infinite alternate;
  }
  @keyframes job-active {
    to {
      opacity: 0.35;
    }
  }
}
#jobSelection {
  margin-top: 2px;
}
#jobMessage {
  margin-top: 8px;
  font-weight: 600;
}
.job-progress[data-state="failed"] #jobMessage,
.job-progress[data-state="rejected"] #jobMessage {
  color: #9e3834;
}
#jobSteps {
  display: grid;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  gap: 6px;
  padding: 0;
  margin: 12px 0 0;
  list-style: none;
}
#jobSteps li {
  border-top: 4px solid var(--line);
  padding-top: 5px;
  color: var(--muted);
  font-size: 13px;
}
#jobSteps li.passed {
  border-color: #7093af;
}
#jobSteps li[aria-current] {
  border-color: var(--blue);
  color: #204d98;
  font-weight: 700;
}
.job-progress[data-state="failed"] #jobSteps li[aria-current] {
  border-color: #b34843;
  color: #963c37;
}
.connection {
  margin-top: 10px;
  color: #87550e;
  font-size: 14px;
}
@media (max-width: 650px) {
  .job-progress {
    padding: 12px;
  }
  #jobSteps {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 7px;
  }
}
.sectionhead {
  margin: 22px 0 9px;
}
.inline {
  font-size: 14px;
  gap: 6px;
}
.list {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 16px;
  min-height: 57px;
}
.row + .row {
  border-top: 1px solid var(--line);
}
.row .grow {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.row .grow small {
  display: block;
  margin-top: 2px;
}
.prnum {
  color: #376183;
  font-weight: 650;
  min-width: 40px;
}
.status {
  font-size: 12px;
  white-space: nowrap;
  color: #3e596e;
  background: #edf2f6;
  padding: 2px 8px;
  border-radius: 5px;
}
.status.good {
  background: #e3f2ec;
  color: #207250;
}
.status.warn {
  background: #fff0d9;
  color: #87550e;
}
.status.bad {
  background: #fce8e6;
  color: #9e3834;
}
.publishbar {
  padding: 12px 0;
  color: var(--muted);
}
.publishbar .primary {
  padding: 0.55rem 1.2rem;
}
.empty {
  padding: 18px;
  color: var(--muted);
}
.rowactions {
  gap: 10px;
  flex-wrap: wrap;
}
.rowactions button {
  font-size: 13px;
}
.grouphead {
  padding: 8px 16px;
  color: #35536a;
  background: #f2f6fa;
  font-weight: 600;
  font-size: 13px;
}
.row.compact {
  min-height: 40px;
  padding: 8px 16px;
}
.loginbox {
  width: min(400px, calc(100% - 36px));
  background: white;
  padding: 30px;
  margin: 14vh auto 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 35px #1c375211;
}
.loginbox .brand {
  color: var(--nav);
  margin-bottom: 18px;
}
.loginbox form,
label.field,
.loginbox label {
  display: grid;
  gap: 5px;
}
.loginbox form {
  gap: 15px;
  margin-top: 18px;
}
#loginError,
.error {
  color: #a52121;
  font-size: 14px;
}
dialog {
  padding: 0;
  width: min(590px, 94vw);
  max-height: 84vh;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  box-shadow: 0 14px 54px #182c4340;
}
dialog::backdrop {
  background: #132c4180;
}
.dialogtitle {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.dialogtitle button {
  border: 0;
  font-size: 22px;
  padding: 0 0.4rem;
}
#dialogBody {
  padding: 18px 20px;
}
#dialogBody form {
  display: grid;
  gap: 13px;
}
.checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 10px;
}
.checks label {
  display: flex;
  align-items: start;
  gap: 6px;
  overflow-wrap: anywhere;
}
.checks small {
  display: block;
  font-size: 11px;
}
.sub {
  margin: 9px 0 3px;
  font-size: 13px;
  color: var(--muted);
}
.footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}
.feedback {
  color: #882c20;
}
.secret {
  font-family: ui-monospace, monospace;
  user-select: all;
  overflow-wrap: anywhere;
  background: #f0f4f8;
  padding: 10px;
  margin: 12px 0;
}
#notice {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--nav);
  color: white;
  padding: 9px 16px;
  border-radius: 8px;
  max-width: min(650px, 92vw);
  z-index: 3;
}
@media (max-width: 650px) {
  header {
    padding: 0 14px;
    height: 57px;
  }
  .brand {
    font-size: 17px;
    gap: 7px;
  }
  .brand span {
    font-size: 12px;
    padding-left: 7px;
  }
  .toplinks {
    gap: 8px;
  }
  .toplinks a,
  .toplinks button {
    font-size: 12px;
  }
  main {
    padding: 0 12px 35px;
  }
  nav {
    margin-bottom: 15px;
  }
  .title {
    align-items: start;
  }
  h1 {
    font-size: 24px;
  }
  .title p {
    font-size: 13px;
  }
  .row {
    padding: 10px;
    gap: 7px;
    flex-wrap: wrap;
  }
  .row .grow {
    min-width: 145px;
  }
  .rowactions {
    width: 100%;
    margin-top: 2px;
  }
  .activepanel {
    padding: 12px;
    align-items: start;
    flex-wrap: wrap;
  }
  .checks {
    grid-template-columns: 1fr;
  }
  .prnum {
    min-width: 33px;
  }
  .sectionhead select {
    max-width: 155px;
  }
  .title > button,
  .sectionhead > button {
    white-space: nowrap;
  }
}
