:root {
  color-scheme: light;
  font: 100%/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1b1d30;
  background: #f7f8fc;
  --ink: #1b1d30;
  --muted: #5e6378;
  --line: #e1e3ed;
  --violet: #5641bf;
  --deep: #423299;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
h1, h2, p { margin: 0; }
a { color: inherit; }
button, input, textarea { font: inherit; }
h1 { font-weight: 750; font-size: clamp(1.9rem, 5vw, 2.7rem); line-height: 1.12; letter-spacing: -.046em; }
h2 { font-weight: 720; font-size: 1.17rem; line-height: 1.24; letter-spacing: -.02em; }
small, .optional { display: block; color: var(--muted); font-size: .875rem; font-weight: 450; }
:focus-visible { outline: 3px solid #8067ec; outline-offset: 3px; }
.masthead { background: #171a2b; color: white; }
.masthead-inner, .shell { width: min(100% - 40px, 1152px); margin-inline: auto; }
.masthead-inner, .brand, .user-menu { display: flex; align-items: center; gap: 13px; }
.masthead-inner { justify-content: space-between; flex-wrap: wrap; min-height: 72px; padding-block: 10px; }
.brand { text-decoration: none; line-height: 1.18; font-weight: 740; letter-spacing: -.013em; }
.brand small { color: #bfc2d8; margin-top: 3px; font-size: .875rem; }
.brand-mark { width: 39px; height: 39px; border-radius: 11px; background: #7963df; display: flex; align-items: center; justify-content: center; gap: 4px; }
.brand-mark i { width: 4px; height: 12px; background: #fff; border-radius: 8px; transform: rotate(23deg); }
.brand-mark i:nth-child(2) { height: 21px; }
.brand-mark i:nth-child(3) { height: 15px; }
.user-menu { color: #e0e0ef; font-size: .9rem; }
.shell { padding-block: 32px 54px; }
.shell.narrow { max-width: 550px; padding-top: clamp(48px, 11vh, 110px); }
.heading, .section-title, .panel-heading, .review-buttons { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.heading { margin-bottom: 22px; align-items: flex-end; }
.heading p, .description { color: var(--muted); margin-top: 8px; }
.panel { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 2px 4px #1b1d3006; }
.padded, .entry { padding: clamp(17px, 3vw, 25px); }
.entry { padding: clamp(22px, 5vw, 39px); }
.panel-heading { padding: 18px 22px; border-bottom: 1px solid var(--line); }
.section-title span { font-size: .875rem; color: var(--muted); }
.columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 320px); gap: 20px; align-items: start; }
.queue { grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); }
.stack, .fields { display: grid; gap: 15px; align-content: start; }
.fields { margin-top: 18px; }
.form-grid, .facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
label, legend { color: var(--ink); font-weight: 650; font-size: .925rem; }
label { display: block; min-width: 0; }
label small { margin-top: 4px; }
label .optional { display: inline; margin-left: .35em; }
input, textarea { display: block; width: 100%; margin-top: 5px; padding: 9px 11px; border: 1px solid #c5c9dc; border-radius: 7px; background: #fff; color: var(--ink); font-size: 1rem; }
textarea { resize: vertical; }
input[readonly], textarea[readonly] { background: #f7f8fc; }
fieldset { margin: 0; border: 1px solid var(--line); border-radius: 9px; display: grid; gap: 10px; padding: 12px 14px; }
legend { padding-inline: 5px; }
.button { appearance: none; display: inline-flex; width: fit-content; align-items: center; min-height: 39px; border: 1px solid transparent; border-radius: 7px; padding: 8px 13px; font-weight: 670; font-size: .92rem; cursor: pointer; text-decoration: none; }
.primary { background: var(--violet); color: white; }
.primary:hover { background: var(--deep); }
.secondary { color: var(--deep); border-color: #d1c9ee; background: #fff; }
.secondary:hover { background: #f4f0ff; }
.masthead .secondary { background: transparent; border-color: #5a5e77; color: #fff; }
.entry > .button { margin-top: 20px; }
.text-link { color: var(--deep); font-weight: 660; text-underline-offset: 4px; overflow-wrap: anywhere; }
.text-link:hover { color: #28205e; }
.back { display: inline-block; margin-bottom: 14px; }
.separator { margin-inline: 4px; }
.tag, .count { display: inline-flex; align-items: center; width: fit-content; border-radius: 20px; padding: 5px 10px; font-weight: 670; font-size: .875rem; line-height: 1.22; color: #594e76; background: #f0edf9; }
.tag.submitted { color: #725013; background: #fff0d3; }
.tag.changes { color: #8c3935; background: #fdeae7; }
.tag.ready, .tag.passed { color: #14523c; background: #e5f7ed; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: .925rem; }
th { color: var(--muted); background: #f7f8fc; font-size: .875rem; }
td, th { padding: 12px 16px; border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: 0; }
td small { overflow-wrap: anywhere; }
.empty { padding: 20px; color: var(--muted); }
.facts { margin-block: 17px 0; }
.facts dt { color: var(--muted); font-size: .875rem; font-weight: 620; }
.facts dd { margin: 3px 0 0; overflow-wrap: anywhere; }
.facts + .fields { margin-bottom: 12px; }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; overflow-wrap: anywhere; font-size: .875rem; }
.history { padding: 0; list-style: none; margin: 14px 0 0; }
.history li { position: relative; border-left: 2px solid var(--line); padding: 3px 0 14px 12px; overflow-wrap: anywhere; }
.history li:last-child { padding-bottom: 2px; }
.history strong { font-size: .925rem; }
.history p { margin-top: 4px; white-space: pre-wrap; }
.review-buttons { justify-content: flex-start; gap: 8px; }
.notice { background: #e4f5ec; color: #174e37; border: 1px solid #acd5bf; border-radius: 8px; padding: 11px 14px; margin-bottom: 15px; }
.notice.error { background: #fff0ec; color: #80342d; border-color: #e6beb7; }
@media (max-width: 800px) {
  .columns, .queue { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 540px) {
  .masthead-inner, .shell { width: calc(100% - 28px); }
  .form-grid, .facts { grid-template-columns: minmax(0, 1fr); }
  .user-menu > span { display: none; }
}
