:root {
  color-scheme: dark;
  --background: #101212;
  --surface: #181b1b;
  --surface-hover: #202525;
  --line: #313a3a;
  --control-line: #657271;
  --text: #f4f6f5;
  --muted: #a7b3b0;
  --accent: #6bd8cc;
  --accent-fill: #19a39a;
  --danger: #ffa9a2;
  --ink: #0a1110;
  font: 15px/1.5 Inter, "Segoe UI", Arial, sans-serif;
  background: var(--background);
  color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
a { color: inherit; text-underline-offset: .22em; }
button, input, select, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button, a.button { touch-action: manipulation; }
button { cursor: pointer; }
p { margin: 0; }
::selection { color: var(--ink); background: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
h1 { font-size: clamp(2.25rem, 3.8vw, 3.35rem); font-weight: 650; letter-spacing: -.038em; }
h2 { font-size: 1.13rem; font-weight: 650; letter-spacing: -.016em; }
h3 { font-size: 1.025rem; font-weight: 620; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.topbar { background: #141717; border-bottom: 1px solid var(--line); }
.topbar-inner, .workspace { width: min(100% - 64px, 1248px); margin-inline: auto; }
.topbar-inner { min-height: 71px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.topbar nav, .wordmark { display: flex; align-items: center; gap: 16px; }
.wordmark { text-decoration: none; font-weight: 600; }
.wordmark span { padding-left: 15px; border-left: 1px solid var(--line); }
.nav-link, .quiet { color: var(--muted); font-weight: 550; }
.nav-link { text-decoration: none; }
.nav-link span { margin-left: .25em; font-size: .92em; }
.nav-link:hover, .quiet:hover { color: var(--text); }
.quiet { border: 0; background: transparent; padding: 8px 0; }

.workspace { padding-block: 42px 64px; }
.console-home { width: min(100% - 64px, 760px); }
.console-modules {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px;
}
@media (min-width: 680px) {
  .console-modules:has(a:nth-child(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.console-modules a {
  min-height: 140px; padding: 18px 12px; display: grid; justify-items: center; align-content: center;
  gap: 12px; text-align: center; line-height: 1.28; text-decoration: none; font-weight: 620;
  background: var(--surface); border: 1px solid var(--control-line); border-radius: 12px;
}
.console-modules a:hover { background: var(--surface-hover); border-color: var(--accent); }
.console-modules svg, .scan-placeholder svg {
  width: 36px; height: 36px; color: var(--accent); fill: none; stroke: currentColor;
  stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round;
}
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.page-heading p { color: var(--muted); margin-top: 9px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 8px 13px; border: 1px solid var(--control-line);
  border-radius: 7px; color: var(--text); background: var(--surface);
  font-weight: 620; text-decoration: none; text-align: center; line-height: 1.3;
}
.button:hover:not(:disabled) { background: var(--surface-hover); }
.button.primary { background: var(--accent-fill); color: var(--ink); border-color: var(--accent-fill); }
.button.primary:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); }
.button:disabled { opacity: .48; cursor: default; }
.button.danger { color: var(--danger); }
.button svg, .search svg { width: 19px; height: 19px; flex: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.notice { margin-top: 20px; padding: 11px 15px; background: #1a2c28; color: #b7eadf; border: 1px solid #41645b; border-radius: 7px; }
.notice.error, .access-panel .notice.error { background: #321f20; color: #ffd1ce; border-color: #785050; }

.status-nav { margin-block: 27px 30px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.status-nav a { position: relative; display: grid; gap: 4px; padding: 13px 15px; color: var(--muted); text-decoration: none; }
.status-nav a + a { border-left: 1px solid var(--line); }
.status-nav a:hover, .status-nav a[aria-current] { background: var(--surface); color: var(--text); }
.status-nav a[aria-current]::after { content: ""; position: absolute; inset: auto 0 -1px; height: 2px; background: var(--accent); }
.status-nav a span { display: flex; gap: 7px; align-items: center; font-size: .86rem; font-weight: 550; }
.status-nav strong { color: var(--text); font-size: 1.35rem; font-variant-numeric: tabular-nums; line-height: 1.1; font-weight: 640; }
.status-dot { display: inline-block; flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.generated { color: #b6c4c1; }
.delivered { color: #82e0c3; }
.verified { color: #a0caff; }
.expired { color: #e8c58c; }
.revoked { color: #ffa9a2; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 310px); align-items: start; gap: clamp(22px, 3vw, 42px); }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 29px; margin-bottom: 12px; }
.section-heading > span { flex-shrink: 0; font-size: .87rem; }
.section-heading > span:not(.state) { color: var(--muted); }
.register-meta { display: flex; align-items: baseline; gap: 12px; color: var(--muted); font-size: .87rem; }
.register-meta .quiet { padding: 2px 0; }
.preview { min-width: 0; border-left: 1px solid var(--line); padding-left: clamp(15px, 2.3vw, 28px); scroll-margin-top: 20px; }
.card-art { width: 100%; border: 1px solid var(--line); border-radius: 8px; background: #0a0a0a; }
.card-link { display: block; border-radius: 8px; }
.card-link:hover .card-art { border-color: var(--control-line); }
.card-faces { display: grid; gap: 12px; }
.card-faces figure { margin: 0; min-width: 0; }
.card-faces figcaption { margin-bottom: 4px; color: var(--muted); font-size: .86rem; }
.card-downloads { display: grid; gap: 7px; }
.back-download { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px; }
.sample-note { color: var(--muted); margin-top: 12px; font-size: .9rem; }
.landing-preview-link { margin-top: 20px; }
.recipient-email-edit { margin-block: 15px; }
.recipient-email-edit summary { width: fit-content; padding-block: 10px; cursor: pointer; }
.recipient-email-edit form { display: grid; gap: 8px; margin-block: 5px 12px; }
.recipient-email-edit input { min-width: 0; min-height: 44px; padding: 8px 11px; color: var(--text); background: var(--surface); border: 1px solid var(--control-line); border-radius: 7px; }
.recipient-email-edit p { color: var(--muted); font-size: .9rem; }
.recipient-email-edit .button { justify-self: start; min-height: 44px; }
.search { display: flex; gap: 8px; margin-bottom: 12px; }
:is(.search, .card-downloads) select { color: var(--text); background: var(--surface); border: 1px solid var(--control-line); border-radius: 7px; padding: 7px 10px; min-height: 40px; }
.search-input { display: flex; gap: 6px; align-items: center; flex: 1; min-width: 0; color: var(--muted); background: var(--surface); border: 1px solid var(--control-line); border-radius: 7px; padding-left: 10px; }
.search-input input { min-width: 0; width: 100%; border: 0; background: transparent; color: var(--text); min-height: 38px; padding: 7px 9px 7px 0; }
.search-input:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.search-input input:focus-visible { outline: none; }
::placeholder { color: var(--muted); opacity: 1; }

.table-scroll { overflow-x: auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
table { width: 100%; min-width: 575px; border-collapse: collapse; }
th, td { padding: 11px 10px; text-align: left; vertical-align: middle; }
th { color: var(--muted); font-size: .84rem; font-weight: 620; background: #151818; }
td { border-top: 1px solid var(--line); }
tbody tr:hover { background: var(--surface); }
tbody .selected { background: #1a2927; }
.check-cell { width: 36px; }
input[type=checkbox] { width: 15px; height: 15px; margin: 0; vertical-align: middle; accent-color: var(--accent-fill); }
.redeem-code, .code-value { font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace; font-weight: 650; letter-spacing: .025em; }
.redeem-code { color: var(--accent); white-space: nowrap; text-decoration: none; }
.redeem-code:hover { text-decoration: underline; }
.email-cell { max-width: 290px; overflow-wrap: anywhere; }
.recipient-name { display: block; font-weight: 620; }
.state { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; font-weight: 550; }
.date-cell { white-space: nowrap; color: var(--muted); font-size: .86rem; font-variant-numeric: tabular-nums; }
.batch-toolbar, .inline-actions, .pagination { display: flex; align-items: center; gap: 8px; }
.batch-toolbar { color: var(--muted); font-size: .87rem; margin-bottom: 12px; justify-content: space-between; flex-wrap: wrap; }
.batch-selection, .select-page { display: flex; align-items: center; gap: 8px; }
.batch-selection { gap: 14px; }
.select-page { min-height: 40px; color: var(--text); cursor: pointer; }
.batch-filter-note { margin-bottom: 8px; color: var(--muted); font-size: .87rem; }
.invitation-batches { border-top: 1px solid var(--line); }
.invitation-batch { position: relative; border-bottom: 1px solid var(--line); }
.batch-select { position: absolute; inset: 3px auto auto 0; width: 44px; height: 48px; display: grid; place-items: center; cursor: pointer; }
.invitation-batch summary {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; align-items: center;
  min-height: 54px; padding: 8px 11px 8px 48px; gap: 12px; cursor: pointer; list-style: none;
}
.invitation-batch summary::-webkit-details-marker { display: none; }
.invitation-batch summary:hover, .invitation-batch:has(.batch-select:hover) summary { background: var(--surface-hover); }
.invitation-batch details[open] summary { background: var(--surface); }
.invitation-batch summary:focus-visible { outline-offset: -2px; }
.batch-title { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 12px; font-weight: 620; }
.batch-kind, .batch-title time, .batch-size { color: var(--muted); font-size: .87rem; font-weight: 400; }
.batch-kind.test { color: var(--accent); font-weight: 620; }
.batch-size { text-align: right; white-space: nowrap; }
.batch-size small { display: block; font: inherit; }
.batch-chevron { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.invitation-batch details[open] .batch-chevron { rotate: 180deg; }
.invitation-batch .table-scroll { border-bottom: 0; }
.invitation-batch td.check-cell { position: relative; }
.invite-select { position: absolute; inset: 0; display: grid; place-items: center; cursor: pointer; }
.batch-actions { display: flex; justify-content: flex-end; padding: 10px; border-top: 1px solid var(--line); }
.pagination { margin-top: 18px; justify-content: flex-end; color: var(--muted); }
.empty { display: grid; justify-items: start; gap: 9px; min-height: 248px; align-content: center; padding: 24px clamp(14px, 4vw, 40px); border-block: 1px solid var(--line); background: #141717; }
.empty > svg { fill: none; stroke: #8ab2aa; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; width: 38px; height: 38px; }
.empty p { color: var(--muted); max-width: 38ch; }
.empty .button { margin-top: 4px; }
.preview-details { display: grid; gap: 9px; margin: 13px 0; }
.preview-details div { display: grid; grid-template-columns: 81px minmax(0, 1fr); gap: 8px; }
.preview-details dt { color: var(--muted); font-size: .86rem; }
.preview-details dd { margin: 0; overflow-wrap: anywhere; font-size: .88rem; }
.preview-actions { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.preview-actions p { font-size: .87rem; color: var(--muted); margin-bottom: 9px; }
.preview-actions form { display: flex; flex-wrap: wrap; gap: 7px; }

dialog { padding: 0; width: min(100% - 32px, 510px); max-height: calc(100dvh - 32px); color: var(--text); background: var(--surface); border: 1px solid var(--control-line); border-radius: 12px; }
dialog::backdrop { background: rgb(5 8 8 / .78); }
dialog form { padding: 24px; }
.dialog-heading, .dialog-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dialog-heading h2 { font-size: 1.4rem; }
.dialog-actions { justify-content: flex-end; margin-top: 20px; }
dialog p, .access-panel p { color: var(--muted); }
.dialog-heading + p { margin: 7px 0 19px; }
dialog label, .access-panel label { display: block; margin: 12px 0 5px; font-weight: 620; }
dialog input, dialog select, .access-panel input:not([type=hidden]), .access-panel textarea {
  display: block; color: var(--text); background: var(--background); border: 1px solid var(--control-line);
  border-radius: 7px; min-height: 42px; padding: 8px 10px; width: 100%;
}
.export-dialog { padding: 24px; }
.export-dialog fieldset { border: 0; margin: 0; padding: 0; }
.export-dialog [data-paper-options] { margin-top: 16px; }
.export-dialog legend { padding: 0; margin-bottom: 7px; font-weight: 620; }
.export-dialog .paper-choice {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px; margin: 0;
  border: 1px solid var(--control-line); border-radius: 7px; background: var(--background); cursor: pointer;
}
.export-dialog .paper-choice + .paper-choice { margin-top: 7px; }
.export-dialog .paper-choice:hover { background: var(--surface-hover); }
.export-dialog .paper-choice:has(input:checked) { border-color: var(--accent); }
.paper-choice small { display: block; color: var(--muted); font-size: .86rem; font-weight: 400; }
.export-dialog input[type=radio] { flex: none; width: 16px; height: 16px; min-height: 0; margin: 0; accent-color: var(--accent-fill); }
.access-panel textarea { resize: vertical; }
.field-note { margin: 5px 0; font-size: .86rem; }
.errorlist { margin: 6px 0; padding: 0; list-style: none; color: var(--danger); }

.access-page { width: min(100% - 36px, 440px); margin-inline: auto; min-height: 100svh; display: grid; justify-items: start; align-content: center; gap: 24px; padding-block: 36px; }
.access-panel { width: 100%; padding: 26px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.access-panel h1 { font-size: clamp(1.7rem, 5vw, 2.55rem); }
.access-panel p { margin-top: 9px; }
.access-panel form { margin-top: 21px; }
.access-panel .primary { margin-top: 17px; width: 100%; }
.resend-form .button { margin-top: 9px; min-height: 44px; }
.access-link { display: inline-block; margin-top: 9px; }
.users-workspace { max-width: 960px; padding-top: 24px; }
.users-workspace h1 { font-size: clamp(1.75rem, 3.5vw, 2.4rem); letter-spacing: -.03em; }
.users-back { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-bottom: 10px; font-size: .9rem; }
.users-back::before {
  content: ""; width: 7px; height: 7px; margin-left: 2px;
  border: solid currentColor; border-width: 0 0 1.5px 1.5px; transform: rotate(45deg);
}
.users-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px 24px; }
.users-heading p { margin-top: 6px; color: var(--muted); }
.users-heading .users-add { min-height: 44px; padding-inline: 18px; }
.users-panel {
  margin-top: 22px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px;
}
.users-table { min-width: 0; table-layout: fixed; }
.users-table :is(th, td) { padding: 12px clamp(12px, 2.25vw, 22px); }
.users-table thead th { background: #141717; }
.users-table thead th:first-child { width: 37%; border-top-left-radius: 11px; }
.users-table thead th:nth-child(2) { width: 23%; }
.users-table thead th:nth-child(3) { width: 17%; }
.users-table thead th:last-child { border-top-right-radius: 11px; }
.users-table tbody tr { height: 66px; }
.users-table tbody th { border-top: 1px solid var(--line); background: transparent; color: var(--text); font-size: 1rem; }
.users-identity { overflow-wrap: anywhere; }
.users-current { display: inline-block; margin-inline-start: 7px; color: var(--muted); font-size: .8rem; font-weight: 500; }
.users-role { color: var(--muted); }
.users-table .users-action { text-align: right; }
.users-action .button { min-height: 44px; white-space: nowrap; }
.users-editor { max-width: 560px; }
.users-account {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 16px clamp(15px, 4vw, 24px); border-bottom: 1px solid var(--line);
}
.users-account h2 { min-width: 0; overflow-wrap: anywhere; }
.users-account .state { flex-shrink: 0; }
.users-form { display: grid; gap: 18px; padding: clamp(15px, 4vw, 24px); }
.users-field { display: grid; gap: 7px; min-width: 0; }
.users-field label { font-weight: 620; }
.users-field :is(input:not([type=checkbox]), select) {
  width: 100%; min-width: 0; min-height: 44px; padding: 8px 12px;
  border: 1px solid var(--control-line); border-radius: 7px; color: var(--text); background: var(--background);
}
.users-field [aria-invalid=true] { border-color: var(--danger); }
.users-check { display: flex; align-items: center; gap: 10px; min-height: 44px; width: fit-content; cursor: pointer; }
.users-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent-fill); }
.users-form .helptext { font-size: .88rem; color: var(--muted); }
.users-form .helptext ul { margin: 0; padding-inline-start: 18px; }
.users-form .errorlist { margin: 0; font-size: .9rem; }
.users-form-actions {
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px;
  padding-top: 16px; border-top: 1px solid var(--line);
}
.users-form-actions .button { min-height: 44px; }
@media (max-width: 620px) {
  .users-table, .users-table tbody { display: block; }
  .users-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .users-table tbody tr {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
    gap: 2px 12px; height: auto; padding: 13px 15px;
  }
  .users-table tbody tr + tr { border-top: 1px solid var(--line); }
  .users-table tbody :is(th, td) { padding: 0; border: 0; }
  .users-status { grid-column: 2; grid-row: 1; text-align: right; }
  .users-table .users-role { grid-column: 1; grid-row: 2; font-size: .9rem; }
  .users-table .users-action { grid-column: 2; grid-row: 2; }
}
@media (max-width: 340px) {
  .topbar:has(+ .users-workspace) .topbar-inner { flex-wrap: wrap; row-gap: 4px; padding-block: 8px; }
}
.fallback-landing { width: min(100% - 44px, 790px); justify-items: center; text-align: center; }
.fallback-landing p { color: var(--muted); }
.application-register { max-width: 760px; margin-block-start: 24px; }
.application-register article { padding-block: 16px; border-block-start: 1px solid var(--line); overflow-wrap: anywhere; }
.application-register header { display: flex; justify-content: space-between; gap: 12px; }
.application-register time, .application-email { color: var(--muted); }
.application-email { margin-top: 4px; }
.application-project { margin-block: 10px; white-space: pre-wrap; }
.application-register a { color: var(--accent); }
.scan-workspace { width: min(100% - 32px, 450px); }
.scan-workspace h1 { margin-bottom: 20px; font-size: 2rem; }
.scan-workspace [hidden] { display: none; }
.scan-workspace > .notice { margin: 0 0 12px; }
.scan-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-bottom: 16px; }
.scan-modes .button { min-height: 44px; color: var(--muted); }
.scan-modes [aria-current] { border-color: var(--accent); color: var(--text); }
.scan-preview {
  position: relative; aspect-ratio: 1; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden;
}
.scan-placeholder, .scan-live { position: absolute; inset: 0; }
.scan-placeholder {
  display: grid; justify-items: center; align-content: center; gap: 12px; padding: 24px; text-align: center;
  color: var(--muted);
}
.scan-live video { display: block; width: 100%; height: 100%; object-fit: cover; }
.camera-guide {
  position: absolute; inset: 12%; border: 2px solid #f4f6f5; border-radius: 12px;
  box-shadow: 0 0 0 1px #101212, 0 0 0 100vmax rgb(0 0 0 / .24); pointer-events: none;
}
.scan-feedback { min-height: 1.5em; margin: 10px 0; color: var(--muted); }
.scan-feedback.scan-error { color: var(--danger); }
.scan-action { width: 100%; min-height: 48px; }
.scan-details h2 { font-size: 1.35rem; }
.scan-details form { margin-top: 14px; }
.scan-details input:not([type=hidden]) { min-height: 48px; font-size: 16px; }
.scanned-code { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 12px; margin: 10px 0 0; }
.scanned-code dt { color: var(--muted); }
.scanned-code dd { margin: 0; }
.print-cards { display: grid; gap: 16px; margin-top: 24px; }
.print-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); gap: 12px; }
.print-face { width: 100%; }

@media (max-width: 920px) {
  .topbar-inner, .workspace { width: calc(100% - 40px); }
  .layout { grid-template-columns: minmax(0, 1fr) 225px; gap: 18px; }
  .preview { padding-left: 14px; }
}
@media (max-width: 740px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .preview { border-left: 0; border-top: 1px solid var(--line); padding: 15px 0 0; width: min(100%, 340px); }
  .status-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .status-nav a:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .status-nav a:nth-child(3n + 1) { border-left: 0; }
  .page-heading { align-items: flex-start; }
  table { min-width: 0; table-layout: fixed; }
  th, td { padding-inline: 5px; }
  .check-cell { width: 27px; }
  .code-cell { width: 100px; }
  .status-cell { width: 92px; }
  .status-cell .state { font-size: .82rem; white-space: nowrap; }
  .date-cell { display: none; }
}
@media (max-width: 520px) {
  .topbar-inner, .workspace { width: calc(100% - 28px); }
  .topbar-inner, .topbar nav, .wordmark { gap: 9px; }
  .wordmark span { padding-left: 8px; }
  .wordmark img { width: 36px; }
  .topbar a, .topbar button { font-size: .86rem; }
  .topbar .wordmark span, .topbar .nav-link, .topbar .quiet { white-space: nowrap; }
  .topbar .nav-link span { display: none; }
  .workspace { padding-block: 29px 44px; }
  .page-heading { flex-direction: column; gap: 13px; }
  .page-heading .inline-actions { flex-wrap: wrap; }
  .status-nav { margin-block: 20px 24px; }
  .status-nav a { padding-inline: 8px; }
  .batch-toolbar { gap: 4px 8px; }
  .invitation-batch summary { gap: 8px; }
  .batch-title { display: block; }
  .batch-kind { margin-inline-start: 5px; }
  .batch-title time { display: block; }
  .export-dialog { padding: 18px; }
  .search { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 5px; }
  .search-input { grid-column: 1 / -1; }
}
@page invitation { size: 85mm 40mm; margin: 0; }
@media print {
  :root { background: white; color-scheme: light; }
  .print-page { width: auto; padding: 0; margin: 0; page: invitation; }
  .print-page .page-heading { display: none; }
  .print-cards, .print-pair { display: block; margin: 0; }
  .print-face {
    width: 85mm; height: 40mm; break-inside: avoid; print-color-adjust: exact;
    outline: 1px solid #0a0a0a;
  }
  .print-face + .print-face, .print-pair + .print-pair { break-before: page; }
}
