:root {
  color-scheme: light dark;
  font: 100%/1.5 system-ui, -apple-system, sans-serif;
  --canvas: #f3f5f8;
  --surface: #fff;
  --ink: #171c26;
  --muted: #515b6b;
  --line: #d9dfe8;
  --input: #f8f9fb;
  --blue: #0757bc;
  --blue-hover: #064898;
  --tint: #eaf2ff;
  --focus: #0766d9;
  --danger: #ab233a;
  --danger-bg: #fff2f4;
  --success: #147040;
  --success-bg: #e7f6ed;
  --shadow: 0 16px 48px #1c385511;
  background: var(--canvas);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
.shell { width: min(100% - 2rem, 57rem); margin-inline: auto; }
.toolbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.toolbar-inner { min-height: 4.25rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-block: .5rem; }
.brand { min-height: 2.75rem; display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); font-weight: 650; text-decoration: none; }
.brand:hover { text-decoration: underline; }
.chip { width: 1.7rem; height: 1.7rem; flex: 0 0 auto; border-radius: .48rem; display: grid; place-items: center; background: var(--blue); color: white; }
.chip::before { content: ""; width: .65rem; height: .65rem; border: 1.5px solid currentColor; border-radius: .12rem; box-shadow: 0 .23rem 0 -.15rem currentColor, 0 -.23rem 0 -.15rem currentColor, .23rem 0 0 -.15rem currentColor, -.23rem 0 0 -.15rem currentColor; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1.14; letter-spacing: -.045em; }
h2 { font-size: 1.25rem; letter-spacing: -.02em; }
h3 { font-size: 1.125rem; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.description { margin-top: .6rem; color: var(--muted); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 1.25rem; }
.signin { max-width: 28.5rem; padding-block: clamp(2rem, 8vw, 6rem); text-align: center; }
.login-panel { padding: clamp(1.25rem, 6vw, 2.5rem); box-shadow: var(--shadow); }
.login-panel h1 { font-size: clamp(1.85rem, 5vw, 2.25rem); }
.lock { position: relative; display: block; width: 3.25rem; aspect-ratio: 1; margin: 0 auto 1.2rem; border-radius: 1rem; background: var(--tint); color: var(--focus); }
.lock::before, .lock::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); border: 2px solid currentColor; }
.lock::before { top: .75rem; width: .58rem; height: .65rem; border-radius: .6rem .6rem 0 0; }
.lock::after { top: 1.37rem; width: 1.03rem; height: .76rem; border-radius: .22rem; background: var(--tint); }
.login-form { display: grid; gap: 1rem; margin-top: 1.5rem; text-align: left; }
.field { display: grid; gap: .35rem; }
label { font-size: .9375rem; font-weight: 650; }
input:not([type="hidden"]), .button { font: inherit; min-height: 2.75rem; border: 1px solid var(--line); border-radius: .65rem; }
input:not([type="hidden"]) { width: 100%; padding: .65rem .8rem; background: var(--input); color: var(--ink); }
.button { padding: .55rem 1rem; cursor: pointer; font-weight: 650; }
.primary { background: var(--blue); color: white; border-color: transparent; }
.primary:hover { background: var(--blue-hover); }
.secondary { background: var(--surface); color: var(--ink); }
.secondary:hover { background: var(--input); }
.reject { color: var(--danger); }
.login-form .button { margin-top: .3rem; }
a { color: var(--focus); text-underline-offset: .2em; }
a:focus-visible, input:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.back-link { display: inline-flex; align-items: center; min-height: 2.75rem; margin-top: .75rem; font-size: .9375rem; }
.notice { margin-top: 1rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: .65rem; background: var(--tint); text-align: start; }
.notice.error { color: var(--danger); background: var(--danger-bg); }
.dashboard { padding-block: clamp(2rem, 7vw, 4rem); }
.queue { margin-top: 2rem; }
.queue h2 { margin-bottom: .75rem; }
.empty { padding: 2rem 1rem; display: grid; justify-items: center; gap: .65rem; color: var(--muted); text-align: center; }
.check { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: 50%; color: var(--success); background: var(--success-bg); font-weight: 700; }
.entries { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.entry { padding: 1rem 1.25rem; }
.entry dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: .75rem 1rem; margin: .75rem 0 1rem; }
.entry dt { font-size: .875rem; color: var(--muted); }
.entry dd { margin: .125rem 0 0; overflow-wrap: anywhere; font-weight: 550; }
.actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .6rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.pagination { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #12151c; --surface: #1b202a; --ink: #f4f6fa; --muted: #b4bfce;
    --line: #485363; --input: #151a23; --blue: #155dbd; --blue-hover: #104d9e;
    --tint: #213553; --focus: #8bbdff; --danger: #ff9cae; --danger-bg: #3a2531;
    --success: #93e4b3; --success-bg: #213c31; --shadow: 0 16px 48px #0004;
  }
}
@media (prefers-contrast: more) {
  :root { --line: var(--muted); }
  a:focus-visible, input:focus-visible, button:focus-visible { outline-width: 4px; }
}
