:root {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
  --ink: #152237;
  --muted: #516074;
  --nav: #121f32;
  --line: #dce3ec;
  --page: #f3f6fa;
  --red: #bf2539;
  --red-dark: #a81d30;
  --blue: #164481;
  --focus: #1463d4;
  font-size: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--page); line-height: 1.5; }
button, select, input { font: inherit; }
button, select { cursor: pointer; }
button:disabled, select:disabled, input:disabled { cursor: not-allowed; }
[hidden] { display: none !important; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.16; }
h1 { font-size: clamp(2rem, 4vw, 3.05rem); letter-spacing: -.055em; overflow-wrap: anywhere; }
h2 { font-size: 1.25rem; letter-spacing: -.027em; }
h3 { font-size: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; z-index: 20; top: 10px; left: 10px; background: white; padding: 10px; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.frame { width: min(100% - 64px, 1200px); margin: 0 auto; }
.top { background: var(--nav); color: #fff; }
.top-inner { width: min(100% - 64px, 1280px); margin: 0 auto; min-height: 72px; display: flex; gap: 34px; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; text-decoration: none; font-size: 1.53rem; font-weight: 850; letter-spacing: -.06em; color: #fff; }
.brand-mark { display: inline-flex; align-items: center; gap: 3px; transform: skew(-19deg); margin-left: 3px; }
.brand-mark i { width: 5px; height: 22px; display: block; background: #f24a57; border-radius: 1px; }
.brand-mark i:nth-child(1) { height: 13px; }
.brand-mark i:nth-child(2) { height: 17px; }
.brand-period { color: #fa5c65; }
.top-nav { flex: 1; display: flex; align-self: stretch; align-items: stretch; gap: 5px; }
.top-nav button { position: relative; color: #d5dfed; border: 0; background: transparent; padding: 0 12px; font-size: .88rem; font-weight: 650; white-space: nowrap; }
.top-nav button:hover { color: #fff; background: #ffffff0c; }
.top-nav button.current { color: #fff; }
.top-nav button.current::after { content: ""; display: block; position: absolute; height: 3px; bottom: 0; left: 11px; right: 11px; border-radius: 3px 3px 0 0; background: #f14f5b; }
.icon { display: inline-grid; place-items: center; font-family: system-ui, sans-serif; font-size: 1.12em; font-weight: 750; line-height: 1; min-width: 1em; }
.top-nav .icon { margin-right: 6px; color: #a8b9d0; }
.top-nav .current .icon { color: #ff7a84; }
.profile { display: flex; align-items: center; gap: 9px; color: #fff; border: 0; background: transparent; padding: 5px; margin-left: auto; font-size: .87rem; font-weight: 700; text-align: left; white-space: nowrap; }
.profile small { display: block; font-weight: 500; color: #bdc9da; font-size: .76rem; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #304763; color: #edf4ff; }
.staff-main { padding-bottom: 54px; }
.event-toolbar, .toolbar-actions, .section-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.event-toolbar { padding: 21px 0; }
.event-select { display: flex; align-items: center; gap: 10px; min-width: 0; }
.event-select label { color: var(--muted); font-size: .87rem; font-weight: 650; white-space: nowrap; }
.event-select select { min-width: 0; text-overflow: ellipsis; }
.toolbar-actions { justify-content: flex-end; flex-wrap: wrap; }
.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; border-radius: 7px; padding: 8px 13px; color: var(--ink); font-size: .88rem; font-weight: 720; text-decoration: none; text-align: center; white-space: nowrap; }
.primary, .danger { background: var(--red); color: white; border-color: var(--red); }
.primary:not(:disabled):hover, .danger:not(:disabled):hover { background: var(--red-dark); border-color: var(--red-dark); }
.secondary, .mini { border-color: #d5deea; background: white; }
.secondary:hover, .mini:hover, .quiet:hover { background: #edf3fa; }
.quiet { color: var(--blue); background: transparent; }
.mini { min-height: 35px; padding: 5px 11px; font-size: .82rem; }
.button:disabled { opacity: .53; }
.full { width: 100%; }
.event-hero, .login-hero {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; color: #fff;
  background: #142236; border-radius: 12px;
}
.event-hero { min-height: 266px; }
.event-hero::before, .login-hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, #122035 2%, #122035ed 28%, #122035b5 47%, #12203519 78%),
    url("/hero.jpg") right 46% / cover no-repeat; }
.hero-content { padding: 29px 35px 33px; }
.hero-content h1 { margin: 11px 0 5px; font-size: clamp(2.25rem, 4.2vw, 3.34rem); font-weight: 850; max-width: 620px; text-wrap: balance; }
.hero-meta { color: #e1e8f2; margin: 11px 0 6px; font-size: 1rem; }
.hero-charity { color: #f1f4fa; }
.hero-charity strong { color: white; }
.status { display: inline-flex; align-items: center; gap: 6px; border-radius: 40px; padding: 4px 9px; font-size: .77rem; font-weight: 740; white-space: nowrap; line-height: 1.35; }
.status span { width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.status-open, .status-checked-in { background: #e0f4e9; color: #14583d; }
.status-registered, .status-scheduled { background: #fff0d3; color: #734202; }
.status-closed, .status-withdrawn { background: #f9e5ea; color: #842135; }
.status-finalized { background: #e2ebfb; color: #204d8a; }
.event-hero .status-open { background: #2b5a45; color: #e0faeb; border: 1px solid #64977a; }
.surface { background: white; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 1px 2px #14223606; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(174px, 1fr)); gap: 15px; margin: 18px 0; }
.stat { padding: 17px 16px; display: flex; align-items: flex-start; gap: 13px; }
.stat-icon, .tile-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; background: #edf2fc; color: #284c85; border-radius: 8px; }
.stat-icon { width: 40px; height: 40px; flex-basis: 40px; font-size: 1.2rem; }
.stat-icon.check { background: #e3f3eb; color: #1d6549; }
.stat-icon.ticket { background: #f8e7ed; color: #9b2441; }
.stat-icon.award { background: #f8edd9; color: #744708; }
.stat h2 { font-size: .88rem; letter-spacing: 0; color: var(--muted); font-weight: 680; margin: 1px 0 3px; }
.stat strong { display: block; line-height: 1.1; font-size: 1.75rem; letter-spacing: -.05em; }
.stat p { color: var(--muted); font-size: .82rem; margin-top: 4px; }
.overview-columns { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(275px, 1fr); gap: 17px; align-items: start; }
.overview-columns.reverse { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.overview-columns.equal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel-heading { padding: 18px 18px 14px; display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.panel-heading p, .page-heading p, .muted { margin-top: 5px; color: var(--muted); }
.panel-heading p { font-size: .9rem; }
.table-tools { display: flex; gap: 9px; flex-wrap: wrap; padding: 0 18px 15px; align-items: center; }
.table-tools.roomy { padding: 15px 18px; }
.search-field { position: relative; flex: 1 1 235px; min-width: 0; }

.search-field .icon-search { position: absolute; top: 13px; left: 12px; width: 12px; height: 12px; min-width: 0; border: 2px solid #64778f; border-radius: 50%; pointer-events: none; }
.search-field .icon-search::after { content: ""; position: absolute; width: 6px; height: 2px; background: #64778f; left: 7px; top: 8px; transform: rotate(45deg); }
.search-field #car-search { padding-left: 34px; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select { display: block; min-height: 42px; max-width: 100%; padding: 8px 10px; border: 1px solid #bdcbdc; border-radius: 7px; color: var(--ink); background-color: white; }
input:not([type=checkbox]):not([type=radio]):not([type=file]) { width: 100%; }
select { appearance: none; padding-right: 31px; background-image: linear-gradient(45deg, transparent 50%, #526783 50%), linear-gradient(135deg, #526783 50%, transparent 50%); background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--red); flex: none; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .87rem; text-align: left; }
th { background: #f3f6fa; font-size: .76rem; font-weight: 750; color: #455670; letter-spacing: .025em; }
th, td { padding: 10px 11px; vertical-align: middle; border-top: 1px solid #e7edf4; }
th:first-child, td:first-child { padding-left: 18px; }
th:last-child, td:last-child { padding-right: 18px; }
tr:last-child td:first-child { border-bottom-left-radius: 9px; }
tr:last-child td:last-child { border-bottom-right-radius: 9px; }
td small { display: block; color: var(--muted); font-size: .79rem; }
.entry-identity { display: flex; align-items: center; gap: 9px; }
.entry-identity > div { min-width: 0; }
.entry-thumb { display: block; width: 56px; height: 40px; flex: 0 0 56px; object-fit: cover; border-radius: 6px; background: #e9eff7; }
.car-number { display: inline-flex; border-radius: 5px; background: #e9eff7; padding: 3px 6px; color: #244571; font-weight: 800; white-space: nowrap; }
.text-link { background: transparent; border: none; padding: 0; text-align: left; color: var(--ink); font-weight: 750; }
.text-link:hover { color: var(--blue); text-decoration: underline; }
.table-car { min-height: 24px; }
.action-panel { padding-bottom: 7px; }
.action-tile { display: flex; text-align: left; align-items: center; gap: 11px; text-decoration: none; color: var(--ink);
  padding: 12px 13px; margin: 0 10px; width: calc(100% - 20px); border: 0; border-top: 1px solid #edf1f6; background: transparent; }
.action-tile:hover { background: #f4f7fb; }
.action-tile strong, .action-tile small, .category-counts small { display: block; }
.action-tile strong { font-size: .91rem; line-height: 1.3; }
.action-tile small, .category-counts small { color: var(--muted); font-size: .81rem; margin-top: 2px; }
.action-tile:nth-child(3) .tile-icon { background: #f8e7ed; color: #9b2441; }
.action-tile:nth-child(4) .tile-icon { background: #f8edd9; color: #744708; }
.empty { padding: 28px; }
.empty p { color: var(--muted); margin-top: 7px; }
.empty .button { margin-top: 14px; }
.table-empty { border-top: 1px solid var(--line); }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin: 10px 0 22px; }
.page-heading h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.content-panel { padding: 20px; }
.content-panel > p, .content-panel form { margin-top: 12px; }
.sub-panel { margin-top: 17px; }
.result-list { display: grid; grid-template-columns: minmax(0,1fr); gap: 14px; }
.result-table { margin-top: 12px; }
.detail-list { margin: 14px 0; }
.detail-list div, .category-counts > div { padding: 10px 0; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.detail-list dd { margin: 0; text-align: right; font-weight: 700; }
.detail-list dt { color: var(--muted); }
.category-counts { margin-top: 13px; }
.long-url { overflow-wrap: anywhere; margin-bottom: 14px; font-weight: 650; }
.login-layout { display: grid; grid-template-columns: 1.6fr 1fr; align-items: stretch; gap: 22px; padding-top: clamp(28px, 8vh, 90px); padding-bottom: 32px; }
.login-hero { min-height: 395px; justify-content: center; align-items: start; flex-direction: column; padding: 34px; }
.login-hero h1 { max-width: 490px; }
.login-card { padding: 25px; align-content: center; }
.login-card h2 { margin-bottom: 16px; }
.login-card form { display: grid; gap: 12px; }
.device-sign-in { max-width: 480px; padding-top: clamp(24px, 8vh, 80px); padding-bottom: 24px; }
.device-sign-in h1 { font-size: clamp(1.5rem, 5vw, 2rem); margin-bottom: 12px; }
.device-sign-in .login-card > a { display: inline-block; margin-top: 15px; }
.device-link-panel { display: grid; gap: 12px; }
.device-link-panel img { display: block; justify-self: center; max-width: 100%; height: auto; }
.device-link-panel p { margin: 0; }
.demo-options { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.demo-options p { width: 100%; color: var(--muted); font-size: .89rem; }
.field { display: grid; grid-template-columns: minmax(0,1fr); gap: 5px; align-content: start; color: var(--ink); font-weight: 675; min-width: 0; font-size: .9rem; }
.field input, .field select { width: 100%; min-width: 0; font-weight: 450; font-size: 1rem; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.form-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
form > .field + .field { margin-top: 10px; }
form > p + .field { margin-top: 12px; }
.form-error { border: 1px solid #e9aab4; color: #861a32; background: #fff1f4; padding: 9px 11px; margin-top: 12px; border-radius: 7px; }
.form-hint { color: var(--muted); font-size: .87rem; margin: 7px 0 12px; }
.check-label { margin-top: 12px; display: flex; gap: 7px; align-items: center; min-height: 40px; }
.photo-control { margin: 15px 0 4px; display: flex; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #f5f8fc; }
.photo-control h3 span { font-size: .8rem; font-weight: 500; color: var(--muted); margin-left: 4px; }
.photo-control p { font-size: .88rem; color: var(--muted); margin: 5px 0 8px; }
.photo-preview { width: 110px; height: 88px; object-fit: cover; border-radius: 6px; border: 1px solid #b9c7da; }
.photo-buttons { display: flex; flex-wrap: wrap; gap: 5px; }
.photo-sharing { margin-top: 10px; }
.photo-status { color: var(--blue); font-size: .86rem; font-weight: 650; }
.photo-status:not(:empty) { margin-top: 6px; }
dialog { width: min(100% - 22px, 590px); max-height: calc(100% - 24px); border: 1px solid var(--line); border-radius: 12px; padding: 0; color: var(--ink); box-shadow: 0 18px 60px #18253f40; }
dialog.wide { width: min(100% - 22px, 760px); }
dialog::backdrop { background: #0e1928aa; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 18px; border-bottom: 1px solid var(--line); background: white; position: sticky; top: 0; z-index: 1; }
.dialog-body { padding: 16px 18px 19px; }
.icon-button { background: white; color: var(--ink); min-width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 7px; font-size: 1.4rem; }
.icon-button:hover { background: #edf3fa; }
.tie-field { padding: 9px 11px 11px; margin: 10px 0; border: 1px solid var(--line); border-radius: 7px; }
.tie-field legend { font-weight: 750; }
.tie-field [data-reason] { margin-top: 8px; }
#toast { position: fixed; bottom: 18px; right: 18px; z-index: 3; padding: 12px 15px; border: 1px solid #526b8a; background: var(--nav); color: white; border-radius: 8px; opacity: 0; pointer-events: none; max-width: min(410px,calc(100% - 36px)); transform: translateY(7px); transition: opacity .15s, transform .15s; }
#toast.visible { opacity: 1; transform: none; }
.public-top { min-height: 64px; justify-content: space-between; gap: 12px; }
.public-name { color: #e0e9f6; text-decoration: none; font-weight: 650; font-size: .86rem; text-align: right; }
.public-main { max-width: 620px; width: calc(100% - 28px); margin: 28px auto 44px; }
.public-wide { max-width: 900px; }
.public-hero { min-height: 216px; margin-bottom: 15px; }
.public-card { padding: clamp(16px, 4vw, 26px); }
.public-card h1 { font-size: clamp(1.85rem, 5vw, 2.65rem); }
.public-card > p { color: var(--muted); margin: 7px 0 14px; }
.public-card .lookup-form { display: flex; gap: 9px; align-items: end; margin-top: 14px; max-width: 360px; }
.lookup-form > .field { flex: 1; }
.public-links { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.public-cars { margin-top: 20px; }
.display-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(185px,1fr)); gap: 10px; margin-top: 11px; }
.display-car { display: grid; align-content: start; justify-items: start; color: var(--ink); text-decoration: none; gap: 3px; padding: 12px; }
.display-car:hover { border-color: #4776b0; }
.display-car small { color: var(--muted); }
.display-photo, .vote-car-photo { display: block; width: 100%; background: #edf2f8; border-radius: 7px; object-fit: contain; }
.display-photo { aspect-ratio: 4 / 3; margin-bottom: 5px; }
.vote-car-photo { aspect-ratio: 4 / 3; max-height: 360px; margin-bottom: 14px; }
.back-link { display: inline-block; margin-bottom: 13px; font-size: .87rem; font-weight: 700; }
.vote-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.vote-number { font-size: 2rem; font-weight: 900; line-height: 1; padding: 4px 8px 6px; border-radius: 7px; background: #e8effa; color: #1f4578; }
.vote-options { margin: 11px 0 14px; }
.vote-options ul { margin: 7px 0 9px; padding-left: 22px; }
.vote-options form { margin-top: 8px; }
.award-option { display: flex; align-items: center; min-height: 45px; gap: 9px; padding: 7px 9px; border: 1px solid var(--line); cursor: pointer; border-radius: 7px; margin-bottom: 6px; }
.award-option small { margin-left: auto; color: var(--muted); }
#vote-form .button { margin-top: 6px; }
.success-note, .vote-card p.success-note { background: #e0f4e9; color: #14583d; border-radius: 7px; padding: 9px 11px; font-weight: 700; }
.voting-notice { padding: 9px 11px; background: #f3f6fa; border-radius: 7px; }
.success-mark { display: grid; place-items: center; border-radius: 50%; width: 45px; height: 45px; background: #e0f4e9; color: #14583d; margin-bottom: 10px; }

#print-root { display: none; }
.print-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.print-note { font-size: .85rem; margin-top: 8px; color: var(--muted); }
.paper-preview { padding: 12px; background: #eef2f7; margin-top: 12px; border-radius: 7px; }
.paper-preview > * { padding: 14px; background: white; margin-bottom: 9px; }
.paper-preview > :last-child { margin-bottom: 0; }
.print-brand { font-size: .9rem; font-weight: 800; letter-spacing: .19em; }
.print-badge, .print-certificate { text-align: center; overflow-wrap: anywhere; }
.print-badge h2, .print-results h2 { margin: 10px 0 3px; font-size: 1.7rem; }
.print-badge h3 { font-size: 1.6rem; }
.print-badge img { display: block; margin: 8px auto; width: min(225px,100%); height: auto; }
.print-car-number { font-weight: 900; font-size: 5.3rem; letter-spacing: -.065em; line-height: 1.1; margin: 12px 0 4px; }
.printed-url { font-size: .88rem; }
.code-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 12px; }
.code-card { border: 1px dashed #747474; padding: 10px; text-align: center; overflow-wrap: anywhere; }
.code-card span { display: block; font-size: .8rem; }
.code-card strong { font: 700 .98rem ui-monospace,monospace; }
.print-result-group { margin-top: 12px; }
.print-result-group h4 { margin: 7px 0; }
.print-result-group th, .print-result-group td { padding: 4px 7px; }
.print-certificate { border: 3px solid #253f67; }
.certificate-inner { border: 1px solid #526a8d; padding: 24px 9px; }
.certificate-inner h2 { margin: 22px 0; font-size: clamp(1.4rem, 4.5vw, 2rem); }
.certificate-inner h3 { margin: 6px 0; font: 700 clamp(1.55rem,5vw,2.45rem) Georgia,serif; }
.certificate-event { margin: 21px 0 0; }
@media (max-width: 960px) {
  .top-inner, .frame { width: calc(100% - 38px); }
  .top-inner { gap: 16px; }
  .staff-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; row-gap: 0; padding-top: 6px; }
  .staff-top .profile { grid-column: 2; grid-row: 1; min-height: 44px; }
  .staff-top .top-nav { grid-column: 1 / -1; grid-row: 2; min-width: 0; overflow: auto hidden; }
  .top-nav button { min-height: 44px; padding-inline: 7px; }
  .overview-columns:not(.equal):not(.reverse) { grid-template-columns: minmax(0,1fr); }
  .action-panel { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .action-panel .panel-heading { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .top-inner, .frame { width: calc(100% - 26px); }
  .top-inner:not(.public-top) { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; padding-top: 6px; min-height: 59px; }
  .profile { grid-column: 2; grid-row: 1; min-height: 44px; }
  .top-nav { grid-column: 1 / -1; grid-row: 2; overflow: auto hidden; margin: 0 -13px; padding: 0 9px; }
  .top-nav button { min-height: 44px; }
  .event-toolbar { padding: 13px 0; align-items: stretch; flex-direction: column; gap: 8px; }
  .event-select { align-items: start; flex-direction: column; gap: 4px; }
  .event-select select { width: 100%; }
  .event-toolbar .toolbar-actions { justify-content: start; }
  .event-hero { min-height: 208px; }
  .event-hero::before { background: linear-gradient(90deg,#122035f5,#122035ad 65%,#12203545),url("/hero.jpg") 68% center / cover no-repeat; }
  .hero-content { padding: 22px 17px; }
  .hero-meta, .hero-charity { font-size: .92rem; }
  .stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 12px 0; }
  .stat { padding: 10px; gap: 7px; }
  .stat-icon { width: 28px; height: 28px; flex-basis: 28px; font-size: .92rem; }
  .stat h2 { font-size: .8rem; }
  .stat p { font-size: .76rem; }
  .stat strong { font-size: 1.46rem; }
  .page-heading { align-items: start; flex-direction: column; margin-bottom: 14px; }
  .page-heading .toolbar-actions { justify-content: start; }
  .overview-columns.equal, .overview-columns.reverse { grid-template-columns: minmax(0,1fr); }
  .login-layout { grid-template-columns: minmax(0,1fr); gap: 12px; padding-top: 14px; }
  .login-hero { padding: 23px; min-height: 190px; }
  .login-card { padding: 19px; }
  .public-main { margin-top: 14px; }
  .public-top { min-height: 56px; }
  .button { min-height: 44px; }
}
@media (max-width: 455px) {
  .panel-heading { padding: 13px; }
  .table-tools, .table-tools.roomy { padding-left: 13px; padding-right: 13px; }
  .entry-list thead { position: absolute; height: 1px; width: 1px; overflow: hidden; clip-path: inset(50%); }
  .entry-list table, .entry-list tbody { display: block; }
  .entry-list tr { display: grid; grid-template-columns: auto minmax(0,1fr) auto;
    gap: 3px 8px; padding: 10px 12px; border-top: 1px solid #e7edf4; }
  .entry-list tr:has(.entry-pick) { grid-template-columns: 20px auto minmax(0,1fr) auto; }
  .entry-list td { display: block; border: 0; padding: 0; min-width: 0; }
  .entry-list .entry-vehicle { grid-row: 1; grid-column: -3; overflow-wrap: anywhere; }
  .entry-list .entry-no, .entry-list .entry-pick { align-self: start; grid-row: 1; }
  .entry-list .entry-class { grid-row: 2; grid-column: -3; color: var(--muted); }
  .entry-list .entry-status { grid-row: 2; grid-column: -2; justify-self: end; }
  .entry-list .entry-action { grid-row: 1; grid-column: -2; justify-self: end; }
  .entry-identity { gap: 6px; }
  .entry-thumb { width: 42px; height: 34px; flex-basis: 42px; }
  .result-table th, .result-table td { padding: 6px 5px; overflow-wrap: anywhere; }
  .result-table .button { white-space: normal; max-width: 85px; padding: 5px; line-height: 1.2; }
  .action-panel { display: block; }
  .form-grid { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .vehicle-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .photo-control { flex-direction: column; }
  .photo-preview { width: 145px; height: 95px; }
  .photo-buttons .button { padding-inline: 8px; }
  .dialog-body { padding: 12px; }
}
@page { size: letter portrait; margin: .48in; }
@media print {
  body { background: #fff; color: black; }
  body > :not(#print-root) { display: none !important; }
  #print-root { display: block; }
  .print-sheet { break-after: page; }
  .print-sheet:last-child { break-after: auto; }
  .print-badge { padding: .24in .15in; }
  .print-badge h2 { font-size: 26pt; }
  .print-car-number { margin: .25in 0 .06in; font-size: 108pt; }
  .print-badge h3 { font-size: 25pt; }
  .print-badge img { width: 2.55in; margin: .17in auto .05in; }
  .print-badge strong { font-size: 15pt; }
  .print-results h2 { font-size: 23pt; }
  .print-results table { color: black; font-size: 10pt; }
  .print-results th { color: black; }
  .print-results tr { break-inside: avoid; }
  .print-results h4 { break-after: avoid; }
  .print-result-group { margin-top: .15in; }
  .code-card { min-height: .85in; padding: .16in .08in; }
  .code-card strong { font-size: 13pt; }
  .print-certificate { padding: .14in; margin-top: .7in; }
  .certificate-inner { padding: 1in .2in; }
  .certificate-inner h2 { font-size: 32pt; }
  .certificate-inner h3 { font-size: 33pt; }
}
.award-picks { display: grid; gap: 4px; max-height: 13rem; overflow: auto; }
.award-picks label { display: flex; gap: 6px; align-items: center; min-height: 36px; }
.share-tools { display: grid; gap: 16px; }
.share-tools section + section { border-top: 1px solid var(--line); padding-top: 13px; }
.share-tools p { color: var(--muted); margin-top: 6px; }
.share-actions { display: flex; gap: 7px; flex-wrap: wrap; margin: 8px 0; }
.share-preview { display: block; width: 100%; min-height: 116px; resize: vertical; border: 1px solid #b8c7d9;
  border-radius: 7px; background: #f7f9fc; color: var(--ink); padding: 8px 10px; font: inherit; margin-bottom: 8px; }
.share-tools summary { cursor: pointer; font-weight: 700; font-size: .91rem; color: var(--blue); }
.share-tools details .share-preview { margin-top: 7px; font-size: .86rem; }
