:root {
  --ink: #1b2638;
  --muted: #526177;
  --line: #dde4ed;
  --paper: #fff;
  --bg: #f5f7fa;
  --blue: #245fd1;
  --light: #eef4ff;
  --green: #20654f;
  --amber: #80520f;
  --red: #a33232;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  font:
    14px/1.6 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    sans-serif;
  color: var(--ink);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: white;
  font-weight: 550;
}
button:hover {
  background: #f0f4fa;
  border-color: #aabbd5;
}
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
button.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}
button.primary:hover {
  background: #194da9;
}
button.link {
  padding: 4px 6px;
  border: 0;
  color: var(--blue);
  background: transparent;
}
button.danger {
  color: var(--red);
}
a {
  color: var(--blue);
  text-underline-offset: 3px;
}
input,
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #b9c5d4;
  border-radius: 6px;
  background: white;
  color: var(--ink);
  caret-color: var(--blue);
}
textarea {
  min-height: 100px;
  resize: vertical;
}
input::placeholder,
textarea::placeholder {
  color: #66768a;
}
input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--blue);
  flex-shrink: 0;
}
label {
  display: block;
  font-weight: 550;
  margin: 16px 0 6px;
}
label input,
label select,
label textarea {
  margin-top: 5px;
}
label.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
}
.check input {
  margin: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 26px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}
h2 {
  font-size: 18px;
}
h3 {
  font-size: 15px;
}
p {
  max-width: 74ch;
}
small,
.muted {
  color: var(--muted);
}
small {
  font-size: 12px;
}
strong {
  font-weight: 600;
}
:focus-visible {
  outline: 3px solid #6a9cf1;
  outline-offset: 3px;
}
::selection {
  background: #cfe0ff;
  color: var(--ink);
}
* {
  scrollbar-color: #acbacd #f5f7fa;
  scrollbar-width: thin;
}
code {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.skip {
  position: fixed;
  top: -60px;
  left: 15px;
  z-index: 99;
  padding: 10px;
  background: white;
}
.skip:focus {
  top: 5px;
}
.loading {
  padding: 40px;
}
.shell {
  display: grid;
  grid-template-columns: 214px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  padding: 26px 16px;
  background: white;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 650;
}
.brand svg {
  width: 26px;
  height: 26px;
  color: var(--blue);
}
nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
nav button {
  text-align: left;
  border-color: transparent;
  background: transparent;
  padding: 11px 13px;
}
nav button.active {
  background: var(--light);
  color: var(--blue);
}
.sidebar-foot {
  margin-top: auto;
  font-size: 12px;
  color: var(--muted);
}
.main {
  min-width: 0;
}
.topbar {
  padding: 16px 30px;
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar select {
  max-width: 290px;
  padding: 8px 10px;
}
.topbar .context {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.content {
  padding: 30px;
  max-width: 1560px;
  margin: auto;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}
.heading p {
  margin-top: 8px;
  color: var(--muted);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  margin-bottom: 20px;
}
.panel-head {
  padding: 19px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.panel-body {
  padding: 22px;
}
.toolbar {
  display: flex;
  gap: 12px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}
.toolbar input {
  max-width: 380px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  text-align: left;
}
th {
  background: #f8fafc;
  color: var(--muted);
  font-weight: 550;
  font-size: 12px;
  white-space: nowrap;
}
td,
th {
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}
tr:last-child td {
  border-bottom: 0;
}
td {
  vertical-align: middle;
}
td small {
  display: block;
  margin-top: 4px;
}
tbody tr:hover {
  background: #fafcff;
}
.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 5px;
  background: #f0f3f7;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.badge.good {
  background: #edf7f1;
  color: var(--green);
}
.badge.warn {
  background: #fff3df;
  color: var(--amber);
}
.badge.bad {
  background: #fdeeee;
  color: var(--red);
}
.notice {
  padding: 15px 18px;
  background: var(--light);
  border: 1px solid #cddcf5;
  border-radius: 7px;
  margin-bottom: 20px;
}
.notice.warn {
  background: #fff8e9;
  border-color: #ead8ae;
  color: #77501b;
}
.notice p + p {
  margin-top: 8px;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 22px;
}
.aside-info {
  padding: 20px;
  background: #edf2f8;
  border-radius: 8px;
  align-self: start;
}
.aside-info h3:not(:first-child) {
  margin-top: 22px;
}
.aside-info p {
  margin: 9px 0 16px;
  color: var(--muted);
}
.empty {
  padding: 55px 24px;
  text-align: center;
}
.empty p {
  margin: 9px auto 22px;
  color: var(--muted);
}
.tabs {
  display: flex;
  gap: 5px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
  padding-bottom: 8px;
}
.tabs button {
  border-color: transparent;
}
.tabs .active {
  color: var(--blue);
  background: var(--light);
}
.summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.summary:last-child {
  border: 0;
}
.summary strong {
  text-align: right;
  overflow-wrap: anywhere;
}
.route-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 22px;
  margin: 0;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
}
.route-option .details {
  flex: 1;
  min-width: 0;
}
.route-option small {
  display: block;
}
.route-option input {
  margin: 0;
}
.footer-actions {
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid label {
  margin-top: 8px;
}
.form-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}
form .actions {
  margin-top: 24px;
}
.list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.list li:last-child {
  border: 0;
}
.list small {
  display: block;
}
.login {
  max-width: 480px;
  margin: 12vh auto;
  padding: 32px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.login .brand {
  margin-bottom: 30px;
}
.login p {
  margin-top: 12px;
  color: var(--muted);
}
.login button {
  width: 100%;
  margin-top: 24px;
}
dialog {
  width: min(660px, calc(100vw - 32px));
  max-height: 88vh;
  padding: 0;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 20px 70px #14223538;
  color: var(--ink);
  background: white;
}
dialog::backdrop {
  background: #16233766;
}
dialog .dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
dialog .dialog-body {
  padding: 24px;
}
dialog .dialog-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
dialog p {
  color: var(--muted);
}
dialog h3 {
  margin: 16px 0 8px;
}
#message {
  position: fixed;
  bottom: 24px;
  left: calc(50% + 80px);
  transform: translateX(-50%);
  z-index: 100;
  max-width: min(650px, 90vw);
  padding: 14px 20px;
  background: #20304a;
  color: white;
  border-radius: 8px;
  box-shadow: 0 8px 26px #14223525;
}
#message.error {
  background: #8b2929;
}
.error-text {
  color: var(--red);
  margin-top: 12px;
}
.url-list {
  word-break: break-all;
  font-size: 13px;
}
.scope-label {
  font-size: 12px;
  color: var(--muted);
}
.review-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.review-cols h3 {
  margin-bottom: 12px;
}
.review-cols ul {
  padding-left: 20px;
}
details {
  margin-top: 20px;
}
summary {
  cursor: pointer;
  color: var(--blue);
}
.audit-action {
  min-width: 170px;
}
body[aria-busy="true"] {
  cursor: progress;
}
@media (max-width: 1050px) {
  .split {
    grid-template-columns: 1fr;
  }
  .aside-info {
    order: 2;
  }
  .content {
    padding: 22px;
  }
  .topbar {
    padding: 15px 22px;
  }
  .shell {
    grid-template-columns: 185px minmax(0, 1fr);
  }
  .sidebar {
    padding: 22px 12px;
  }
  .brand {
    font-size: 16px;
  }
  .heading {
    flex-wrap: wrap;
  }
}
@media (max-width: 700px) {
  .shell {
    display: block;
  }
  .sidebar {
    padding: 14px 16px;
    gap: 15px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  nav {
    flex-direction: row;
    overflow: auto;
    gap: 4px;
  }
  nav button {
    white-space: nowrap;
    padding: 8px 10px;
  }
  .sidebar-foot {
    display: none;
  }
  .topbar {
    padding: 12px 16px;
    align-items: flex-start;
  }
  .topbar .context {
    display: block;
    flex: 1;
  }
  .topbar select {
    max-width: 100%;
  }
  .scope-label {
    display: block;
    margin-bottom: 3px;
  }
  .topbar .muted {
    display: none;
  }
  .content {
    padding: 22px 16px;
  }
  h1 {
    font-size: 23px;
  }
  .heading {
    gap: 16px;
    margin-bottom: 20px;
  }
  .form-grid,
  .review-cols {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .panel-head,
  .panel-body {
    padding: 17px;
  }
  .toolbar {
    padding: 14px;
  }
  .footer-actions {
    flex-wrap: wrap;
    padding: 16px;
  }
  td,
  th {
    padding: 14px 16px;
  }
  td {
    min-width: 120px;
  }
  .route-option {
    padding: 15px;
  }
  .route-option .badge {
    white-space: normal;
  }
  .summary {
    gap: 12px;
  }
  .summary strong {
    max-width: 65%;
  }
  .login {
    margin: 8vh 16px;
    padding: 24px;
  }
  #message {
    left: 50%;
    bottom: 16px;
    width: 90vw;
  }
  dialog .dialog-body {
    padding: 18px;
  }
  dialog .dialog-head {
    padding: 16px 18px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  dialog[open] {
    animation: appear 0.16s ease-out;
  }
  @keyframes appear {
    from {
      transform: translateY(8px);
      opacity: 0.7;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
}
.scope-label {
  white-space: nowrap;
}
.review-cols {
  margin-top: 20px;
}
.notice .actions {
  margin-top: 12px;
}
.panel-body > .actions {
  margin-top: 18px;
}
