:root {
  color-scheme: dark;
  --bg: #111019;
  --panel: #191724;
  --line: #302b40;
  --text: #f5f1fb;
  --muted: #b3abc3;
  --accent: #ccb9fb;
  --gold: #e9c487;
  --purple: #7f5ac0;
  --focus: #e8ceff;
  --radius: 12px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    15px/1.55 Inter,
    system-ui,
    sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid #4e4264;
  border-radius: 8px;
  padding: 0.63rem 0.94rem;
  background: #262037;
  color: var(--text);
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
button:hover,
.button:hover {
  background: #362b4c;
  text-decoration: none;
}
.primary {
  background: #cdb5ff;
  border-color: #cdb5ff;
  color: #221639;
}
.primary:hover {
  background: #dfceff;
  border-color: #dfceff;
}
.ghost {
  background: transparent;
}
.compact {
  padding: 0.38rem 0.65rem;
  font-size: 0.86rem;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.topbar {
  background: #15121e;
  border-bottom: 1px solid var(--line);
}
.top-inner,
main,
.footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}
.top-inner {
  min-height: 70px;
  display: flex;
  gap: 26px;
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  white-space: nowrap;
}
.mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #392759;
  color: var(--gold);
  font-size: 1.35rem;
}
nav {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-left: auto;
}
nav a {
  color: var(--muted);
  padding: 0.5rem 0.7rem;
  border-radius: 7px;
  white-space: nowrap;
}
nav a.selected,
nav a:hover {
  background: #2a2239;
  color: var(--text);
  text-decoration: none;
}
main {
  flex: 1;
  padding-block: 38px 55px;
}
h1,
h2,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin-bottom: 0.42rem;
  overflow-wrap: anywhere;
}
h2 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  letter-spacing: -0.015em;
}
p {
  margin-bottom: 0.85rem;
}
.page-head p,
.quiet,
small,
.sub,
.footer {
  color: var(--muted);
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 23px;
}
.page-head p {
  margin: 0;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.panel.flush {
  padding: 0;
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 22px;
}
.panel-head h2 {
  margin: 0;
}
.table-scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}
th,
td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
th {
  font-size: 0.81rem;
  font-weight: 650;
  color: var(--muted);
  background: #1d192b;
  white-space: nowrap;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover td {
  background: #1e1a2b;
}
.job-name {
  font-weight: 700;
}
.sub {
  display: block;
  font-size: 0.82rem;
  margin-top: 2px;
}
.mono,
code {
  font-family: ui-monospace, monospace;
  font-size: 0.88em;
}
.wrap {
  overflow-wrap: anywhere;
  min-width: 145px;
}
.numeric {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.status {
  display: inline-block;
  padding: 0.18rem 0.52rem;
  margin-right: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  white-space: nowrap;
  font-size: 0.82rem;
}
.status.ready {
  color: #a8e4c1;
  border-color: #335243;
  background: #1c342c;
}
.status.failed {
  color: #ffc8cb;
  border-color: #794652;
  background: #39232b;
}
.status.queued,
.status.generating,
.status.publishing {
  color: var(--gold);
  background: #33291f;
  border-color: #59462f;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.metric {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px 20px;
}
.metric span {
  color: var(--muted);
  font-size: 0.85rem;
}
.metric strong {
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}
.stack {
  display: grid;
  gap: 15px;
}
.stack h2,
.stack p {
  margin: 0;
}
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.form-width {
  max-width: 740px;
}
label {
  display: grid;
  gap: 6px;
  font-weight: 620;
  min-width: 0;
}
small {
  font-weight: 400;
  line-height: 1.4;
}
input:not([type="checkbox"]),
textarea,
select {
  width: 100%;
  min-width: 0;
  background: #120f1a;
  border: 1px solid #463c57;
  border-radius: 8px;
  color: var(--text);
  padding: 0.61rem 0.75rem;
}
input::placeholder {
  color: #9b90aa;
}
textarea {
  resize: vertical;
}
.checkbox {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  font-weight: 500;
}
.checkbox input {
  accent-color: #b898f9;
  width: 17px;
  height: 17px;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.nowrap,
.search {
  flex-wrap: nowrap;
}
.search input {
  min-width: 210px;
}
.pagination {
  margin-top: 12px;
}
.space-below {
  margin-bottom: 18px;
}
.back {
  display: inline-block;
  margin-bottom: 15px;
}
.notice {
  border: 1px solid #624e86;
  background: #281f3e;
  border-radius: 9px;
  padding: 12px 15px;
  margin-bottom: 16px;
}
.notice.error {
  border-color: #794652;
  background: #3b2530;
  color: #ffdae0;
}
.empty {
  padding: 28px;
}
.empty h2 {
  margin-bottom: 0.5rem;
}
.login {
  max-width: 440px;
  margin: 8vh auto;
}
.login h1 {
  margin-bottom: 1.2rem;
}
.footer {
  padding: 17px 0;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  display: flex;
  justify-content: space-between;
}
.sr-only,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
[hidden] {
  display: none !important;
}
.skip:focus {
  display: block;
  padding: 10px 20px;
}
@media (max-width: 720px) {
  .top-inner,
  main,
  .footer {
    width: calc(100% - 28px);
  }
  .top-inner {
    padding: 12px 0;
    gap: 10px;
    flex-wrap: wrap;
  }
  .brand {
    margin-right: auto;
  }
  nav {
    order: 2;
    width: 100%;
    margin-left: 0;
  }
  main {
    padding-top: 24px;
  }
  .fields,
  .metrics {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 16px;
  }
  .panel.flush {
    padding: 0;
  }
  .panel-head,
  th,
  td {
    padding: 11px 12px;
  }
  .search {
    width: 100%;
  }
  .search input {
    min-width: 0;
  }
}

.job-filters {
  justify-content: flex-start;
  align-items: end;
}
.job-filters label {
  flex: 1 1 160px;
}
