@font-face {
  font-family: Instrument Sans;
  src: url("/fonts/latin-400.ttf");
}
@font-face {
  font-family: Instrument Sans;
  src: url("/fonts/latin-600.ttf");
  font-weight: 600;
}
:root {
  color-scheme: light;
  --paper: #f8f9f6;
  --ink: #151c23;
  --muted: #596571;
  --line: #d4dadd;
  --accent: #354bd3;
  --good: #197047;
  --bad: #ad3c28;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.6 "Instrument Sans",
    "PingFang SC",
    sans-serif;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
input {
  font: inherit;
}
button {
  min-height: 44px;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s;
}
button:hover {
  background: #273caf;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button.secondary {
  background: white;
  border-color: var(--line);
  color: var(--ink);
}
button.secondary:hover {
  background: #eef0ec;
}
button.quiet {
  background: transparent;
  color: var(--muted);
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
header,
main,
footer {
  max-width: 1120px;
  margin: auto;
  padding-left: 32px;
  padding-right: 32px;
}
header {
  height: 92px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  text-decoration: none;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.brand span {
  font-weight: 400;
  color: var(--muted);
  font-size: 17px;
}
main {
  min-height: calc(100vh - 195px);
  padding-top: 54px;
  padding-bottom: 60px;
}
h1 {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}
h2 {
  font-size: 21px;
  line-height: 1.35;
  margin: 0 0 18px;
}
p {
  margin: 0 0 20px;
  color: var(--muted);
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.meta {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 13px;
  margin: 14px 0 24px;
}
.projects {
  border-top: 1px solid var(--line);
}
.project {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.project-head {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.project-head h2 {
  margin: 0 0 8px;
}
.version {
  font-size: 14px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
}
.pr-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}
.pr-list li {
  padding: 10px 0;
  border-top: 1px solid #e7eae5;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.pr-list a {
  color: var(--ink);
  text-decoration: none;
}
.pr-list a:hover {
  text-decoration: underline;
}
.pr-number {
  font-size: 13px;
  color: var(--muted);
  min-width: 44px;
}
.draft {
  font-size: 12px;
  color: var(--muted);
  margin-left: auto;
  white-space: nowrap;
}
.empty {
  font-size: 14px;
  margin: 18px 0 0;
}
.confirm {
  margin-top: 24px;
  background: #eef0fd;
  border: 1px solid #c5ccf7;
  border-radius: 10px;
  padding: 24px;
}
.confirm p {
  max-width: 70ch;
  color: #353f72;
}
.actions {
  display: flex;
  gap: 12px;
}
.history {
  margin-top: 46px;
}
.job {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.job-head {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: baseline;
}
.job-head strong {
  font-size: 16px;
}
.job-head time {
  font-size: 13px;
  color: var(--muted);
}
.status {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}
.status.completed {
  color: var(--good);
}
.status.needs_attention {
  color: var(--bad);
}
.job p {
  margin: 10px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
}
.job a {
  font-size: 14px;
  color: var(--accent);
}
details {
  margin-top: 12px;
  font-size: 14px;
}
summary {
  cursor: pointer;
  color: var(--muted);
}
details ol {
  padding-left: 20px;
  color: var(--muted);
}
details li {
  padding: 5px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
#notice {
  color: var(--bad);
  margin: 24px 0 0;
  white-space: pre-wrap;
}
#login {
  max-width: 440px;
  padding: 35px 0 80px;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}
input {
  display: block;
  border: 1px solid #a5adb4;
  border-radius: 7px;
  background: white;
  min-height: 46px;
  padding: 8px 12px;
  width: 100%;
  margin-bottom: 20px;
}
footer {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  padding-bottom: 28px;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}
.muted {
  color: var(--muted);
}
::selection {
  background: #dce4ff;
}
@media (max-width: 640px) {
  header,
  main,
  footer {
    padding-left: 20px;
    padding-right: 20px;
  }
  header {
    height: 76px;
  }
  main {
    padding-top: 36px;
  }
  .brand {
    font-size: 20px;
  }
  .heading {
    align-items: flex-start;
  }
  .heading button {
    padding: 8px 12px;
    font-size: 14px;
  }
  h1 {
    font-size: 27px;
  }
  .project-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
  .project-head button {
    width: 100%;
  }
  .meta {
    flex-direction: column;
    gap: 3px;
  }
  .version {
    font-size: 13px;
    gap: 4px 14px;
  }
  .pr-list li {
    gap: 8px;
  }
  .pr-list a {
    font-size: 14px;
  }
  .job-head {
    flex-wrap: wrap;
    gap: 4px 12px;
  }
  footer {
    flex-direction: column;
    gap: 4px;
  }
  .confirm {
    padding: 20px;
  }
  .actions button {
    flex: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  button {
    transition: none;
  }
}
