:root {
  color-scheme: light;
  --ink: #10233a;
  --muted: #4a5b70;
  --paper: #ffffff;
  --canvas: #f1f5f9;
  --line: #d7e0e9;
  --blue: #0657a7;
  --blue-hover: #064580;
  --blue-soft: #eaf3fd;
  --green: #225d43;
  --green-soft: #e9f5ef;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
  color: var(--ink);
  background: var(--canvas);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
::selection { background: #cae3ff; color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
body { margin: 0; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.85rem, 4vw, 2.6rem); line-height: 1.08; letter-spacing: -.034em; font-weight: 730; }
h2 { font-size: 1.125rem; letter-spacing: -.015em; }
h3 { font-size: 1rem; }
p + p { margin-top: .5rem; }
.topbar { background: var(--paper); border-bottom: 1px solid var(--line); }
.topbar-inner, main { width: min(100% - 48px, 1216px); margin: 0 auto; }
.topbar-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.identity { display: flex; align-items: center; gap: 18px; font-weight: 650; }
.identity img { width: 148px; height: auto; }
.identity span { border-left: 1px solid var(--line); padding-left: 18px; }
main { padding-block: 36px 56px; }
.page-heading { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin-bottom: 26px; }
.page-heading p, .detail-head p, .login p { margin-top: .45rem; color: var(--muted); }
.workspace-grid { display: grid; grid-template-columns: minmax(250px, 310px) minmax(0, 1fr); gap: 16px; align-items: start; }
.queue, .detail, .login { background: var(--paper); border: 1px solid var(--line); border-radius: 13px; }
.queue-head, .detail-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.detail-head p { font-size: .875rem; }
.detail { min-height: 316px; }
#cases { list-style: none; margin: 0; padding: 0; }
#cases li:not(:last-child) { border-bottom: 1px solid var(--line); }
.case-button { width: 100%; text-align: left; border: 0; border-radius: 0; background: transparent; padding: 13px 20px; }
.case-button:focus-visible { outline-offset: -4px; }
.case-button[aria-current] { background: var(--blue-soft); }
.case-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.case-time { color: var(--muted); font-size: .8rem; }
.case-sub { display: block; color: var(--muted); margin-top: 4px; font-size: .85rem; font-weight: 500; }
.empty { padding: 20px; color: var(--muted); }
#more { margin: 12px 20px; }
.status { font-size: .75rem; font-weight: 650; border-radius: 5px; padding: 4px 8px; color: #194f81; background: var(--blue-soft); white-space: nowrap; }
.status[data-state="paid"], .status[data-state="redeemed"] { color: var(--green); background: var(--green-soft); }
.action-panel { padding: 18px 20px; background: #f8fafc; border-bottom: 1px solid var(--line); }
.action-panel > p { color: var(--muted); font-size: .9rem; margin-top: 6px; }
.action-panel form { margin-top: 12px; }
.action-panel form + form { margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); }
.rates { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 13px; }
.rates button { min-height: 34px; padding: 6px 9px; font-size: .82rem; }
.field-row { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.field { display: grid; gap: 4px; min-width: 0; }
.field.grow { flex: 1 1 184px; }
label { font-weight: 630; font-size: .875rem; }
input, select, button { font: inherit; color: inherit; }
input, select { min-width: 0; min-height: 38px; background: var(--paper); border: 1px solid #9faebd; border-radius: 6px; padding: 6px 9px; }
button { min-height: 38px; font-size: .875rem; font-weight: 650; background: var(--paper); border: 1px solid #a4b3c2; border-radius: 6px; padding: 7px 12px; cursor: pointer; }
button:hover { background: var(--blue-soft); }
button:disabled { opacity: .56; cursor: wait; }
button.primary { color: white; background: var(--blue); border-color: var(--blue); }
button.primary:hover { background: var(--blue-hover); }
button.plain { border-color: transparent; }
.money, .code, td:last-child { font-variant-numeric: tabular-nums; }
.code { width: min(100%, 274px); letter-spacing: .035em; font-weight: 700; }
.file-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 20px 11px; }
.file-head span { font-size: .84rem; color: var(--muted); }
.file-scroll { max-height: 460px; overflow: auto; scrollbar-color: #abbbcc #f3f6fa; }
.file-scroll:focus-visible { outline-offset: -3px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .875rem; }
th, td { padding: 9px 20px; border-top: 1px solid var(--line); }
thead { position: sticky; top: 0; background: var(--paper); }
th { color: var(--muted); font-size: .8rem; font-weight: 650; }
td:first-child { overflow-wrap: anywhere; }
th:last-child, td:last-child { text-align: right; white-space: nowrap; }
.login { width: min(100%, 420px); margin: 5vh auto 0; padding: 29px; }
.login h1 { font-size: 2rem; }
.login form { display: grid; gap: 9px; margin-top: 24px; }
.login form button { margin-top: 5px; }
.message { position: fixed; bottom: 18px; right: 24px; max-width: min(480px, 100% - 48px); background: var(--ink); color: white; padding: 10px 15px; border-radius: 8px; box-shadow: 0 10px 24px #0b21322a; font-size: .9rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 760px) {
  .topbar-inner, main { width: calc(100% - 28px); }
  .topbar-inner { min-height: 64px; }
  .identity { gap: 9px; font-size: .88rem; }
  .identity img { width: 116px; }
  .identity span { padding-left: 9px; }
  main { padding-top: 23px; }
  .page-heading { align-items: start; flex-wrap: wrap; margin-bottom: 18px; }
  .workspace-grid { grid-template-columns: minmax(0, 1fr); }
  #cases { max-height: 230px; overflow: auto; }
  .queue-head, .detail-head, th, td { padding-inline: 14px; }
}
.action-panel form > p, .action-panel .field-row { margin-top: 8px; }
.action-panel p { color: var(--muted); font-size: .9rem; }
