:root {
  color-scheme: dark;
  --bg: #141716;
  --panel: #1b201d;
  --line: #343c37;
  --ink: #f0f3f0;
  --muted: #a3afa7;
  --mint: #a7e4c4;
  --red: #f0a8a4;
  --mark: #e9c383;
  --control: #202622;
  font:
    14px/1.45 Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-variant-numeric: tabular-nums;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
select {
  cursor: pointer;
}
button,
input,
select,
textarea {
  background: var(--control);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 11px;
}
button:hover,
select:hover {
  border-color: #718478;
}
button:active {
  background: #324039;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
a {
  color: var(--mint);
}
:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.045em;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.035em;
}
h3 {
  font-size: 16px;
  margin-top: 24px;
}
header {
  border-bottom: 1px solid var(--line);
  min-height: 62px;
  padding: 12px clamp(16px, 4vw, 70px);
  display: flex;
  align-items: center;
  gap: 14px;
}
header .brand,
.loginbrand {
  font-size: 21px;
  letter-spacing: -1.6px;
  font-weight: 750;
}
.divider {
  height: 20px;
  width: 1px;
  background: var(--line);
}
.muted,
small {
  color: var(--muted);
}
.out {
  margin-left: auto;
  background: transparent;
}
.wrap {
  max-width: 1580px;
  padding: 42px clamp(16px, 4vw, 70px) 90px;
  margin: auto;
}
.title,
.tools,
.tabs,
.action,
.dialogtop,
.right,
.filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.title,
.dialogtop {
  justify-content: space-between;
}
.tabs {
  gap: 4px;
  padding: 3px;
  background: #1b211e;
  border-radius: 8px;
  width: fit-content;
  margin: 23px 0;
}
.tabs button {
  border: 0;
  background: transparent;
  color: var(--muted);
}
.tabs button[aria-current="page"] {
  background: #35423a;
  color: #ecfff1;
}
.primary {
  color: #102a1b;
  background: var(--mint);
  border-color: transparent;
  font-weight: 640;
}
.primary:hover {
  background: #b9f4d5;
}
.tools {
  justify-content: space-between;
  margin: 18px 0 12px;
}
.summary {
  color: var(--muted);
  font-size: 13px;
}
.summary b {
  color: var(--ink);
}
.scroll {
  overflow-x: auto;
  border-top: 1px solid var(--line);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th {
  text-align: left;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}
td,
th {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
}
th:first-child,
td:first-child {
  padding-left: 0;
}
tbody tr:hover {
  background: #1a201c;
}
.num {
  text-align: right;
}
.date {
  white-space: nowrap;
  color: var(--muted);
}
.vid {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.03em;
}
.linkbtn {
  border: 0;
  padding: 4px 0;
  text-align: left;
  background: transparent;
  font-weight: 570;
}
.linkbtn:hover {
  text-decoration: underline;
}
.status {
  border: 1px solid transparent;
  background: transparent;
  font-size: 17px;
  min-width: 40px;
  height: 36px;
  padding: 0 10px;
}
.ok {
  color: var(--mint);
}
.wait {
  color: var(--mark);
}
.skip {
  color: var(--muted);
}
.pill {
  font-size: 12px;
  color: var(--mint);
  background: #24332a;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.empty {
  padding: 35px 8px;
  color: var(--muted);
}
.foot {
  padding: 14px 0;
  color: var(--muted);
  font-size: 12px;
}
.login {
  margin: 15vh auto;
  max-width: 380px;
  padding: 24px;
}
.loginbrand {
  margin-bottom: 36px;
}
.login h1 {
  margin-bottom: 24px;
}
.form {
  display: grid;
  gap: 15px;
}
.form label {
  display: grid;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
}
.form input,
.form select,
.form textarea {
  width: 100%;
  font-size: 14px;
}
.form textarea {
  min-height: 90px;
  resize: vertical;
}
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.err {
  color: var(--red);
  font-size: 13px;
}
.cardline {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.cardline p {
  margin-top: 5px;
  color: var(--muted);
}
dialog {
  width: min(510px, calc(100% - 24px));
  max-height: 88dvh;
  overflow: auto;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid #49564d;
  border-radius: 14px;
  padding: 24px;
}
dialog::backdrop {
  background: #050a07b8;
}
.dialogtop {
  margin-bottom: 20px;
}
.dialogtop button {
  font-size: 20px;
  line-height: 1;
}
.action {
  margin-top: 8px;
}
.metrics {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
}
.metrics dd {
  margin: 0;
  text-align: right;
}
.metrics dt {
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #2c3830;
  z-index: 5;
}
.tip {
  position: fixed;
  background: #2f3b33;
  color: #f5fff7;
  border: 1px solid #647369;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 12px;
  max-width: 260px;
  pointer-events: none;
  z-index: 10;
}
.groups {
  max-width: 680px;
  margin-top: 15px;
}
.groups h2 {
  margin-bottom: 12px;
}
.sort {
  border: none;
  background: none;
  padding: 0;
  color: inherit;
}
.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  width: 26px;
  border-radius: 7px;
  background: var(--mint);
  color: #10321f;
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -2px;
}
.wrap .caption {
  color: var(--muted);
  margin: 10px 0 16px;
}
.filterlabel {
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}
.filterlabel select {
  color: var(--ink);
}
[hidden] {
  display: none !important;
}
@media (max-width: 680px) {
  header {
    min-height: 54px;
  }
  .wrap {
    padding-top: 25px;
  }
  .tabs {
    margin: 17px 0;
  }
  .tools {
    align-items: flex-start;
  }
  .filters {
    gap: 6px;
  }
  td,
  th {
    padding: 8px 7px;
  }
  .desktop {
    display: none;
  }
  .plan {
    min-width: 585px;
  }
  .report {
    min-width: 570px;
  }
  dialog {
    padding: 18px;
  }
  .title {
    gap: 12px;
  }
  .form input,
  .form textarea,
  .form select {
    font-size: 16px;
  }
  .cardline {
    align-items: flex-start;
  }
  .caption {
    font-size: 13px;
  }
  .summary {
    width: 100%;
  }
}
.shortname {
  display: none;
}
@media (max-width: 680px) {
  .plan {
    min-width: 0;
    table-layout: fixed;
  }
  .plan th:nth-child(1) {
    width: 50px;
  }
  .plan th:nth-child(3),
  .plan td:nth-child(3) {
    display: none;
  }
  .plan th:nth-child(n + 4) {
    width: 34px;
  }
  .plan th:nth-child(n + 4),
  .plan td:nth-child(n + 4) {
    text-align: center;
    padding: 2px;
  }
  .plan .status {
    min-width: 0;
    width: 100%;
    height: 44px;
    padding: 0;
  }
  .plan .linkbtn {
    font-size: 13px;
  }
  .plan .longname {
    display: none;
  }
  .plan .shortname {
    display: inline;
    text-decoration: none;
  }
  .plan td {
    padding-top: 7px;
    padding-bottom: 7px;
  }
}
