/* The viewport is shared by navigation, the active page and the live server strip. */
[hidden] { display: none !important; }
html, body { height: 100%; overflow: hidden; }
body { display: grid; grid-template-rows: 82px 70px minmax(0, 1fr) 82px 32px; }
.site-header { width: 100%; height: 100%; margin: 0; max-width: none; min-height: 0; padding: 12px 4%; border-bottom: 1px solid var(--line); }
.site-header .brand { font-size: 23px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.language-switch { margin: 0; flex-shrink: 0; }
.language-switch select { width: 66px; min-height: 44px; margin: 0; padding: 8px; font-size: 13px; color: var(--ink); background: var(--canvas); border-color: var(--line); }
.account-mobile-label { display: none; }
#main { position: relative; min-height: 0; overflow: hidden; }
.compact-footer { display: flex; justify-content: space-between; align-items: center; padding: 0 24px; font-size: 10px; color: var(--muted); }
.donation-summary { display: flex; align-items: center; gap: 18px; min-width: 0; }
.donation-link { color: var(--accent); white-space: nowrap; }
.donation-link:hover { text-decoration: underline; }
.donation-month { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.donation-month strong { color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width:600px) { .compact-footer { padding: 0 12px; font-size: 9px; } .donation-summary { gap: 10px; } }
.online-bar { display: flex; align-items: center; gap: 24px; min-width: 0; padding: 10px 3%; background: var(--surface); border-top: 1px solid var(--line); }
.online-heading { flex-shrink: 0; display: grid; grid-template-columns: 7px auto; column-gap: 10px; align-items: center; }
.online-heading strong { font-size: 13px; }
.online-heading > span:last-child { grid-column: 2; color: var(--muted); font-size: 10px; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.online-servers { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); flex: 1; gap: 18px; min-width: 0; }
.online-server { display: flex; flex-direction: column; min-width: 0; border-left: 1px solid var(--line); padding-left: 16px; }
.online-server > span { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.online-server strong { font: 700 27px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.online-server small { font: 400 15px/1 var(--body); color: var(--muted); }
.online-pages { display: flex; gap: 6px; }
.online-pages button, .page-controls button { min-width: 36px; height: 36px; padding: 0; background: transparent; border: 1px solid var(--line); color: var(--ink); font-size: 22px; }
.online-pages button:disabled, .page-controls button:disabled { opacity: .35; cursor: default; }
.online-pages:has(button:disabled + button:disabled) { display: none; }
.hero { height: 100%; min-height: 0; max-width: none; }
.hero-copy { height: 100%; padding: clamp(25px, 5vh, 70px) 6.5%; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.hero h1 { font-size: clamp(36px, 7.5vh, 80px); }
.hero-category { margin-bottom: 18px; }
.hero-description { margin: 22px 0; font-size: 16px; }
.hero-caption { bottom: 16px; }
.screen-page { height: 100%; width: 100%; max-width: 1440px; margin: auto; padding: 24px 4%; display: flex; flex-direction: column; min-height: 0; }
.screen-heading { display: flex; flex-shrink: 0; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 20px; }
.screen-heading h1 { font-family: var(--body); font-size: clamp(28px, 3.2vw, 42px); line-height: 1.12; font-weight: 700; letter-spacing: -.04em; }
.screen-heading .kicker { margin-bottom: 6px; font-size: 11px; }
.screen-heading > div { min-width: 0; }
.screen-heading h1 { overflow-wrap: anywhere; }
.screen-panel { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.is-updating { position: relative; pointer-events: none; }
.is-updating > * { opacity: .18; }
.is-updating::after { content: ''; position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: statistics-spin .8s linear infinite; }
@keyframes statistics-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .is-updating::after { animation-duration: 2s; } }
.news-cover { float: left; width: 200px; margin-right: 24px; }
.news-cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.compact-news article::after { content: ''; display: block; clear: both; }
.article-cover { display: block; width: min(100%, 560px); height: min(27vh, 260px); object-fit: cover; flex-shrink: 0; margin-bottom: 16px; }
@media (max-width: 600px) { .news-cover { width: 120px; margin-right: 14px; } .article-cover { height: 20vh; } }
.screen-panel > .paged-table { flex: 1; min-height: 0; overflow: hidden; }
.screen-panel > [data-fit-list] { flex: 1; min-height: 0; overflow: hidden; }
.screen-panel table { table-layout: fixed; }
.screen-panel thead th { padding: 12px 16px; }
.screen-panel td, .screen-panel tbody th { padding: 12px 16px; line-height: 1.4; }
.screen-panel td a { text-decoration: none; border-bottom: 1px solid var(--line); }
.screen-panel td a:hover { border-color: var(--accent); }
#leaders tbody tr { height: 56px; }
#leaders tbody td { padding-top: 8px; padding-bottom: 8px; }
#leaders tbody td a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; border-bottom: 0; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
#leaders tbody td a:hover { text-decoration-color: var(--accent); }
.compact-stats { display: flex; gap: 36px; margin-bottom: 22px; flex-shrink: 0; color: var(--muted); font-size: 12px; }
.compact-stats strong { font-size: 20px; margin-right: 7px; color: var(--ink); font-variant-numeric: tabular-nums; }
.instant-filter { display: flex; align-items: center; gap: 14px; position: relative; }
.instant-filter select { margin: 0; min-width: 210px; font-size: 14px; }
.instant-filter .filter-status { position: absolute; right: 0; top: 100%; font-size: 10px; color: var(--muted); white-space: nowrap; }
.screen-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); flex-shrink: 0; margin-bottom: 18px; }
.screen-tabs button { position: relative; background: none; border: 0; color: var(--muted); font-size: 14px; min-height: 44px; padding: 8px 0 13px; white-space: nowrap; }
.screen-tabs button[aria-selected="true"] { color: var(--ink); }
.screen-tabs button[aria-selected="true"]::after { content: ''; position: absolute; height: 3px; background: var(--accent); bottom: -1px; left: 0; right: 0; }
.page-controls { display: flex; align-items: center; justify-content: flex-end; gap: 15px; height: 42px; flex-shrink: 0; margin-top: auto; padding-top: 6px; }
.page-controls span { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.page-controls.single-page { visibility: hidden; }
.driver-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding: 8px 0 25px; flex-shrink: 0; }
.driver-summary > div { display: flex; flex-direction: column; border-left: 2px solid var(--line); padding-left: 18px; }
.driver-summary strong { font: 700 34px/1.2 var(--display); }
.driver-summary span { font-size: 11px; color: var(--muted); }
.mobile-label { display: none; }
.points-label { color: var(--muted); font-size: 12px; }
.screen-heading .profile-identity img { width: 52px; height: 52px; }
.number-panel { flex-direction: row; align-items: center; gap: 48px; max-width: 900px; }
.number-ticket { width: 210px; min-height: 235px; flex-shrink: 0; }
.number-ticket strong { font-size: 110px; }
.number-copy { max-width: 500px; }
.number-copy h2, .settings-panel h2 { font: 700 26px/1.2 var(--body); letter-spacing: -.025em; }
.number-copy > p { font-size: 14px; margin: 18px 0; }
.settings-panel { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 32px; }
.settings-panel > div { width: min(100%, 500px); }
.settings-panel p { font-size: 12px; margin: 8px 0 22px; }
.settings-panel form .button { margin-top: 18px; }
.compact-reports article { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); padding: 16px 0; }
.compact-reports article > div { min-width: 0; }
.compact-reports h3 { font-size: 17px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.compact-reports article span, .compact-reports article p { font-size: 11px; color: var(--muted); }
.compact-reports .button { flex-shrink: 0; min-height: 42px; padding: 8px 18px; }
.server-screen .server-row { padding: 16px 12px; }
.server-name h2 { font-family: var(--body); font-weight: 600; line-height: 1.3; letter-spacing: normal; }
.server-screen .server-count strong { font-size: 29px; }
.compact-news article { padding: 17px 0; border-top: 1px solid var(--line); }
.compact-news time { font-size: 11px; color: var(--muted); }
.compact-news h2 { font: 600 23px/1.2 var(--body); margin: 10px 0; }
.compact-news p { font-size: 14px; margin-bottom: 10px; }
.article-screen { max-width: 1100px; }
.article-screen h1 { font-size: 30px; }
.article-screen .article-lead { font-size: 17px; margin: 0 0 20px; }
.paged-prose { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.text-page { font-size: 15px; line-height: 1.75; overflow-wrap: anywhere; }
.compact-verdicts article { padding: 12px 0; }
.compact-verdicts h2 { font: 600 22px/1.2 var(--body); }
.compact-verdicts article > p { font-size: 13px; margin: 5px 0 10px; }
.compact-appeal { display: flex; flex-direction: column; min-height: 0; flex: 1; max-width: 800px; }
.compact-appeal p { font-size: 14px; margin-bottom: 14px; }
.compact-appeal textarea { flex: 1; min-height: 70px; max-height: 280px; resize: none; }
.compact-appeal .button { align-self: flex-start; margin-top: 18px; }
.screen-panel .empty { border: 0; }
.notice { position: absolute; top: 12px; right: 24px; left: auto; z-index: 20; max-width: 500px; margin: 0; box-shadow: 0 8px 28px #0005; }
.number-copy .notice { position: static; margin: 18px 0; }
.event-placeholder { height: 100%; min-height: 0; padding: 30px 6%; display: flex; flex-direction: column; justify-content: center; }
.event-placeholder h1 { font-size: clamp(35px, 7vh, 68px); }
.event-placeholder > p:not(.kicker) { margin: 18px 0; font-size: 14px; }
.event-placeholder .button { align-self: flex-start; }
.login-layout { min-height: 0; height: 100%; padding: 30px 4%; }
.login-layout h1 { font-size: clamp(32px, 5vh, 56px); }
.login-layout > div > p:not(.kicker) { font-size: 14px; margin-top: 18px; }
.login-box { padding: 28px; }
.login-box h2 { font-size: 26px; }
.login-box .button { margin-top: 20px; }
.error-page { min-height: 0; padding: 40px 5%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.replay-panel .replay-scene { display: flex; flex-direction: column; flex: 1; min-height: 0; margin: 0; border-radius: 0; background: var(--surface); box-shadow: none; border-color: var(--line); }
.replay-panel .replay-stage { flex: 1; min-height: 80px; height: auto; }
.replay-panel .replay-toolbar, .replay-panel .replay-participants { background: var(--surface); padding: 8px 12px; gap: 12px; }
.replay-panel .replay-controls { padding: 6px 12px; }
.replay-panel .replay-title { font-size: 10px; }
.replay-panel .replay-camera-buttons button { padding: 7px 9px; border-radius: 0; }
.replay-panel .replay-participants select, .replay-panel .replay-rate select { min-height: 32px; padding: 3px 8px; margin: 4px 0 0; background: var(--canvas); color: var(--ink); border-color: var(--line); }
.replay-panel .replay-camera-buttons button.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.replay-panel .replay-dot { background: var(--accent); }
.replay-panel .replay-controls { background: var(--surface); border-color: var(--line); }
.replay-panel .replay-loading, .replay-panel .replay-error { background: #171b20f5; color: var(--ink); }
.replay-panel .replay-loading p, .replay-panel .replay-error p { color: var(--muted); }
.replay-panel .replay-spinner { border-color: var(--line); border-top-color: var(--accent); }
.replay-panel .replay-status, .replay-panel .replay-fullscreen { background: #20262de8; border-color: var(--line); color: var(--ink); }
.replay-panel .replay-time, .replay-panel .replay-distance strong { color: var(--ink); }
.replay-panel .replay-color-a { background: var(--accent); }
.replay-panel .replay-trails input { width: 16px; height: 16px; min-height: 16px; margin: 0; padding: 0; accent-color: var(--accent); }
.replay-panel .replay-participants label, .replay-panel .replay-track, .replay-panel .replay-distance span { color: var(--muted); }
.replay-panel .replay-play { min-height: 34px; padding: 5px 12px; }
.replay-panel .replay-seek { min-height: 20px; margin: 2px 0; accent-color: var(--accent); }
.replay-panel .replay-stage canvas { outline-offset: -4px; }
@media (max-width: 760px) {
  body { grid-template-rows: 72px 72px minmax(0, 1fr) 70px 32px; }
  .site-header { padding: 12px 16px; flex-wrap: nowrap; gap: 10px; position: relative; z-index: 30; }
  .site-header .brand { font-size: 18px; }
  .brand-symbol { font-size: 30px; }
  .account-link { font-size: 10px; padding: 8px 10px; }
  .account-label { display: none; }
  .account-mobile-label { display: inline; }
  .language-switch select { width: 53px; min-height: 40px; font-size: 11px; padding: 6px; }
  .menu-toggle { font-size: 12px; padding: 8px; }
  #navigation { position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: 20px; background: var(--surface); border-bottom: 1px solid var(--line); gap: 12px 22px; }
  .hero-copy { padding: 22px 22px 48px; }
  .hero h1 { font-size: clamp(32px, 6.3vh, 58px); }
  .hero-category { font-size: 10px; margin-bottom: 18px; }
  .hero-description { font-size: 14px; margin: 19px 0; }
  .hero-caption { left: 22px; right: 22px; font-size: 8px; }
  .online-bar { gap: 14px; padding: 8px 16px; }
  .online-heading strong { font-size: 11px; }
  .online-heading > span:last-child { font-size: 8px; }
  .online-servers { display: flex; gap: 10px; }
  .online-server { flex: 1; padding-left: 10px; }
  .online-server strong { font-size: 23px; }
  .online-server > span { font-size: 10px; }
  .online-server small { font-size: 12px; }
  .online-pages { gap: 4px; }
  .online-pages button { width: 32px; min-width: 32px; height: 40px; }
  .compact-footer { padding: 0 16px; font-size: 8px; }
  .screen-page { padding: 18px 18px 6px; }
  .screen-heading { gap: 14px; align-items: flex-start; margin-bottom: 16px; }
  .screen-heading h1 { font-size: 26px; }
  .screen-heading .kicker { font-size: 10px; }
  .screen-heading .text-link { font-size: 11px; white-space: nowrap; }
  .instant-filter { display: block; }
  .instant-filter label { font-size: 10px; }
  .instant-filter select { min-width: 130px; max-width: 150px; min-height: 42px; padding: 7px; font-size: 14px; }
  .instant-filter .filter-status { font-size: 8px; }
  .compact-stats { gap: 15px; font-size: 9px; margin-bottom: 12px; }
  .compact-stats strong { display: block; font-size: 19px; margin: 0; }
  .screen-tabs { gap: 20px; margin-bottom: 12px; }
  .screen-tabs button { font-size: 12px; min-height: 42px; padding-bottom: 12px; }
  .garage-page .screen-tabs { gap: 16px; }
  .garage-page .screen-tabs button { font-size: 10px; }
  .screen-panel thead th { font-size: 10px; padding: 10px 6px; }
  .screen-panel td, .screen-panel tbody th { font-size: 11px; padding: 12px 6px; overflow-wrap: anywhere; }
  .screen-panel table th:first-child { width: 42%; }
  .driver-summary { gap: 12px; padding: 5px 0 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .driver-summary > div { padding-left: 10px; }
  .driver-summary strong { font-size: 27px; }
  .driver-summary span { font-size: 10px; }
  .results-panel table th:first-child { width: 30%; }
  .results-panel table td, .results-panel table th { font-size: 9px; padding: 10px 4px; }
  .results-panel .paged-table table, .results-panel .paged-table tbody { display: block; }
  .results-panel .paged-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .results-panel .paged-table tbody tr { display: grid; grid-template-columns: 1fr 1fr; padding: 12px 0; border-bottom: 1px solid var(--line); gap: 7px 14px; }
  .results-panel .paged-table tbody th, .results-panel .paged-table tbody td { width: auto; padding: 0; border: 0; font-size: 11px; }
  .results-panel .paged-table tbody th { font-size: 14px; }
  .results-panel .paged-table tbody td:nth-child(2) { font-size: 15px; text-align: right; }
  .results-panel .mobile-label { display: inline; color: var(--muted); font-size: 10px; font-weight: 400; }
  .points-label { font-size: 9px; max-width: 60px; }
  .screen-heading .profile-identity img { width: 35px; height: 35px; }
  .profile-identity { gap: 10px; }
  .number-panel { flex-direction: column; gap: 20px; align-items: flex-start; }
  .number-ticket { width: 150px; min-height: 120px; padding: 10px; }
  .number-ticket strong { font-size: 60px; }
  .number-ticket span { font-size: 7px; }
  .number-copy h2, .settings-panel h2 { font-size: 22px; }
  .number-copy > p { font-size: 12px; margin: 12px 0; }
  .number-copy .data-note { font-size: 10px; }
  .number-copy .notice { font-size: 12px; padding: 12px; }
  .settings-panel { flex-direction: column; gap: 20px; justify-content: flex-start; }
  .settings-panel .button { margin-top: 14px; }
  .compact-reports article { gap: 12px; padding: 16px 0; }
  .compact-reports h3 { font-size: 14px; }
  .compact-reports .button { font-size: 11px; min-height: 40px; padding: 8px 12px; }
  .server-screen .server-row { grid-template-columns: minmax(0, 1fr) 45px 54px; padding: 12px 0; gap: 6px 12px; }
  .server-screen .server-name h2 { font-size: 15px; }
  .server-screen .server-name p { font-size: 9px; }
  .server-screen .server-state { font-size: 9px; }
  .server-screen .server-count strong { font-size: 24px; }
  .server-screen .server-count span, .server-screen .server-peak span { font-size: 8px; }
  .compact-news h2 { font-size: 20px; }
  .compact-news p { font-size: 12px; }
  .article-screen .screen-heading { flex-wrap: wrap; }
  .article-screen h1 { font-size: 23px; }
  .article-screen .article-lead { font-size: 14px; margin-bottom: 16px; }
  .text-page { font-size: 13px; }
  .event-placeholder { padding: 24px; }
  .event-placeholder h1 { font-size: clamp(30px, 6vh, 48px); }
  .event-placeholder > p:not(.kicker) { font-size: 12px; margin: 14px 0; }
  .grid-art { top: 60px; }
  .login-layout { display: flex; flex-direction: column; gap: 25px; justify-content: center; align-items: stretch; padding: 20px; }
  .login-layout h1 { font-size: 32px; }
  .login-layout > div > p:not(.kicker) { font-size: 12px; margin-top: 12px; }
  .login-box { padding: 20px; }
  .login-box h2 { font-size: 24px; }
  .login-box .data-note { font-size: 10px; }
  .notice { top: 8px; left: 16px; right: 16px; padding: 14px; font-size: 12px; }
  .replay-panel .replay-title { display: none; }
  .replay-panel .replay-camera-buttons { gap: 3px; }
  .replay-panel .replay-camera-buttons button { font-size: 9px; padding: 7px; }
  .replay-panel .replay-toolbar { padding: 5px; gap: 3px; }
  .replay-panel .replay-participants { padding: 6px; gap: 6px; }
  .replay-panel .replay-participants label { font-size: 9px; }
  .replay-panel .replay-participants select { font-size: 11px; min-height: 28px; }
  .replay-panel .replay-distance { display: none; }
  .replay-panel .replay-transport { flex-wrap: wrap; gap: 4px; }
  .replay-panel .replay-play { font-size: 10px; min-width: auto; }
  .replay-panel .replay-time, .replay-panel .replay-rate { font-size: 9px; }
  .replay-panel .replay-step { padding: 4px 8px; }
  .replay-panel .replay-rate select { min-height: 24px; font-size: 10px; }
  .replay-panel .replay-scene-hint { display: none; }
  .compact-appeal p { font-size: 12px; }
}
@media (max-height: 620px) {
  body { grid-template-rows: 62px 52px minmax(0, 1fr) 58px 28px; }
  .screen-page { padding-top: 10px; }
  .screen-heading { margin-bottom: 8px; }
  .screen-heading h1 { font-size: 24px; }
  .screen-heading .kicker { display: none; }
  .compact-stats { margin-bottom: 8px; }
  .driver-summary { display: flex; padding-bottom: 10px; }
  .driver-summary strong { font-size: 22px; }
  .driver-summary span { font-size: 9px; }
  .screen-tabs { margin-bottom: 6px; }
  .screen-tabs button { min-height: 34px; padding-bottom: 8px; }
  .hero-category { margin-bottom: 12px; }
  .hero h1 { font-size: 34px; }
  .hero-description { margin: 12px 0; font-size: 12px; }
  .hero-caption { display: none; }
  .number-panel { flex-direction: row; gap: 20px; }
  .number-ticket { min-height: 120px; width: 140px; }
  .number-ticket strong { font-size: 60px; }
  .login-layout { flex-direction: row; align-items: center; gap: 30px; }
  .login-layout > div { flex: 1; }
  .login-layout h1 { font-size: 28px; }
  .login-box { padding: 18px; }
  .login-box .data-note { font-size: 9px; }
  .event-placeholder { padding-top: 15px; padding-bottom: 15px; }
  .event-placeholder h1 { font-size: 32px; }
  .event-placeholder .kicker { display: none; }
}
@media (max-height: 500px) {
  .hero-category, .hero-description { display: none; }
  .hero-copy { padding: 14px 5%; gap: 16px; }
  .hero h1 { font-size: 30px; }
  .hero .button { min-height: 40px; padding: 9px 18px; }
  .login-layout > div:first-child { display: none; }
  .login-layout { display: flex; align-items: center; justify-content: center; padding: 12px 30px; }
  .login-box { flex: initial; width: min(100%, 650px); padding: 14px 20px; }
  .login-box h2 { font-size: 22px; }
  .login-layout .login-box > p { font-size: 12px; margin-top: 8px; }
  .login-box .button { margin-top: 10px; min-height: 40px; }
  .login-layout .login-box .data-note { margin-top: 10px; font-size: 9px; line-height: 1.4; }
  .event-placeholder h1 { font-size: 28px; }
  .event-placeholder > p:not(.kicker) { margin: 8px 0; font-size: 11px; }
  .event-placeholder .button { min-height: 40px; padding: 9px 18px; }
  .number-copy h2, .settings-panel h2 { font-size: 18px; }
  .number-copy > p { margin: 6px 0; font-size: 11px; }
  .number-copy > .data-note { display: none; }
  .number-copy label { font-size: 10px; }
  .number-copy .inline-input input, .number-copy .button { min-height: 34px; padding: 6px 10px; font-size: 11px; }
  .number-ticket { min-height: 105px; width: 125px; }
  .number-ticket strong { font-size: 52px; }
  .number-ticket span { font-size: 6px; }
  .settings-panel { flex-direction: row; gap: 24px; }
  .settings-panel > div { width: min(100%, 500px); }
  .settings-panel p { margin: 6px 0 10px; font-size: 10px; }
  .settings-panel form:not([action]) { display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; }
  .settings-panel form label { grid-column: 1 / -1; font-size: 11px; }
  .settings-panel input, .settings-panel .button { min-height: 36px; margin: 0; padding: 6px 10px; font-size: 11px; }
  .driver-summary { padding: 0 0 8px; gap: 16px; }
  .driver-summary strong { font-size: 20px; }
  .driver-summary span { font-size: 8px; }
  .page-controls { height: 34px; padding-top: 3px; }
  .page-controls button { width: 28px; min-width: 28px; height: 28px; }
  .screen-panel td, .screen-panel tbody th { padding: 8px 10px; }
  .compact-appeal { display: grid; grid-template-columns: 1fr auto; gap: 6px 15px; align-items: end; }
  .compact-appeal p { display: none; }
  .compact-appeal label { grid-column: 1 / -1; font-size: 11px; }
  .compact-appeal textarea { min-height: 65px; height: 100%; margin: 0; }
  .compact-appeal .button { min-height: 36px; padding: 8px 12px; margin: 0; font-size: 11px; }
}
.compact-footer { font-size: 12px; border-top: 1px solid var(--line); }
.donation-link { display: inline-flex; align-items: center; min-height: 40px; font-weight: 600; }
@media (max-width:600px) { .compact-footer { font-size: 10px; } }
@media (max-height:600px) { .donation-link { min-height: 28px; } .compact-footer { font-size: 10px; } }
/* Project support stays directly below the header on every page. */
.support-bar { display: flex; align-items: center; padding: 10px 4%; background: #29221e; border-top: 0; border-bottom: 1px solid #74503a; }
.support-bar .donation-summary { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 28px; width: 100%; margin: 0; }
.donation-copy { display: grid; gap: 4px; min-width: 0; }
.donation-copy > strong { font-size: 15px; color: var(--ink); }
.donation-copy > span { font-size: 12px; color: #cbb7a8; }
.donation-amount { font: 700 29px/1 var(--display); color: #fff0e5; font-variant-numeric: tabular-nums; white-space: nowrap; }
.support-bar .donation-link { min-height: 44px; padding: 10px 22px; font-size: 13px; color: #171b20; }
.compact-footer { border: 0; font-size: 9px; }
@media (max-width:600px) {
  .support-bar { padding: 9px 16px; }
  .support-bar .donation-summary { gap: 12px; }
  .donation-copy > strong { font-size: 12px; }
  .donation-copy > span { font-size: 10px; }
  .donation-amount { font-size: 23px; }
  .support-bar .donation-link { padding: 9px 11px; font-size: 11px; }
}
@media (max-height:600px) {
  .support-bar { padding-top: 5px; padding-bottom: 5px; }
  .support-bar .donation-link { min-height: 36px; padding-top: 6px; padding-bottom: 6px; }
  .donation-amount { font-size: 23px; }
}
