:root { color-scheme: light; font-family: Arial, Helvetica, sans-serif; color: #203d31; background: #edf2ee; }
* { box-sizing: border-box; }
body { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: #215b43; text-underline-offset: 3px; }
button:focus-visible, a:focus-visible { outline: 3px solid #ca9f42; outline-offset: 4px; }
[hidden] { display: none !important; }
.export-controls { max-width: 1136px; margin: auto; padding: 26px 28px 20px; }
.export-heading, .export-toolbar, .export-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.export-heading, .export-toolbar { justify-content: space-between; }
.export-heading { margin-bottom: 26px; }
.export-brand { display: inline-flex; align-items: center; gap: 9px; font-size: 19px; font-weight: 750; text-decoration: none; }
.export-back, .export-csv { font-size: 13px; }
.export-toolbar h1 { margin: 0 0 8px; font-size: clamp(24px, 4vw, 32px); letter-spacing: -.6px; }
.export-toolbar p, .export-help p { margin: 0; color: #52675d; font-size: 13px; line-height: 1.55; }
.export-actions { gap: 9px; }
.export-button, .export-page-button { border: 1px solid #bdcec2; background: #fff; color: #244837; border-radius: 8px; padding: 11px 15px; font-weight: 650; font-size: 14px; min-height: 42px; }
.export-button-primary { background: #215b43; border-color: #215b43; color: #fff; }
.export-button:hover, .export-page-button:hover { box-shadow: 0 2px 8px #204c3326; }
button:disabled { cursor: wait; opacity: .58; }
.export-help { margin-top: 18px; }
.export-status { font-size: 13px; margin: 10px 0 0; min-height: 20px; color: #326247; }
.export-status.is-error { color: #9c302b; }
.export-result { max-width: 1040px; margin: 0 auto 24px; padding: 14px 20px; background: #fff; border: 1px solid #bed3c5; border-radius: 8px; }
.export-result a { display: flex; align-items: center; gap: 16px; font-size: 14px; font-weight: 600; }
.export-result img { width: 85px; height: 110px; object-fit: contain; object-position: top; border: 1px solid #e1e9e3; }
.export-pages { max-width: 1096px; margin: 0 auto; padding: 0 28px 30px; }
.export-page-shell { position: relative; margin: 0 auto 58px; }
.export-page-button { position: absolute; left: 0; bottom: -43px; font-size: 12px; padding: 7px 12px; min-height: 33px; }
.export-sheet { width: 1040px; height: 716px; padding: 24px; display: flex; flex-direction: column; background: #fff; color: #243c31; box-shadow: 0 5px 24px #1d3c241c; transform-origin: top left; font-size: 11px; }
.export-sheet-header { flex: none; display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding-bottom: 13px; border-bottom: 3px solid #2e674b; margin-bottom: 12px; }
.export-event-title { min-width: 0; }
.export-eyebrow { font-size: 9px; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; color: #607769; }
.export-sheet h2 { margin: 5px 0 6px; font-size: 22px; line-height: 1.15; letter-spacing: -.45px; overflow-wrap: anywhere; }
.export-sheet-header p { margin: 0; color: #617266; font-size: 11px; }
.export-sheet-header p span { padding: 0 6px; }
.export-paper-brand { display: flex; align-items: center; gap: 7px; flex: none; margin-top: 4px; font-size: 14px; white-space: nowrap; }
.export-sheet-body { flex: 1; min-height: 0; }
.export-sheet-footer { flex: none; padding-top: 10px; margin-top: 10px; border-top: 1px solid #cbd8ce; font-size: 9px; color: #52665a; line-height: 1.4; }
.export-sheet-footer p { margin: 0 0 2px; }
.export-footer-meta { display: flex; justify-content: space-between; gap: 15px; margin-top: 8px; color: #315641; }
.export-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 10px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.export-table caption { text-align: left; font-size: 11px; font-weight: 700; margin: 0 0 7px; color: #305942; }
.export-table th, .export-table td { padding: 6px 3px; text-align: right; border-bottom: 1px solid #dfe7e1; vertical-align: middle; }
.export-table thead th { text-align: center; font-size: 9px; font-weight: 700; overflow-wrap: anywhere; }
.export-group-headings th { background: #e4eee7; color: #294d37; }
.export-metric-headings th { background: #f0f5f1; color: #4e6858; }
.export-table .export-name { text-align: left; white-space: normal; overflow-wrap: anywhere; padding-left: 8px; padding-right: 8px; }
.export-table tbody .export-name { font-size: 11px; font-weight: 600; }
.export-table .export-rank { text-align: center; color: #5b7061; }
.export-table .export-podium { color: #75531c; font-weight: 800; background: #fff7e5; }
.export-group-start { border-left: 1px solid #cbd9ce; }
.export-table tbody tr:nth-child(even) { background: #f8faf8; }
.export-table .export-total { background: #f0f6f1; }
.export-table-total { color: #587263; }
.export-three-player { display: inline-block; font-size: 8px; color: #896219; font-weight: 700; white-space: nowrap; }
.export-round-marker { font-size: 7px; margin-left: 2px; }
.export-table sup { color: #986e21; font-weight: 700; font-size: 9px; line-height: 0; }
.export-table .export-empty { text-align: center; padding: 30px; color: #607468; }
.export-source { max-width: 1040px; margin: auto; padding: 24px; overflow: auto; background: white; }
.export-source table { min-width: 992px; margin-bottom: 25px; }
@media (max-width: 600px) {
  .export-controls { padding: 18px 16px; }
  .export-pages { padding: 0 12px 30px; }
  .export-heading { margin-bottom: 22px; gap: 13px; }
  .export-back { font-size: 12px; }
  .export-actions { width: 100%; }
  .export-button { flex: 1; padding: 11px 10px; }
}
@page { size: A4 landscape; margin: 8mm; }
@media print {
  html, body { background: #fff; padding: 0; margin: 0; }
  .export-controls, .export-page-button, .export-result { display: none !important; }
  .export-pages { padding: 0; margin: 0; max-width: none; }
  .export-page-shell { width: auto !important; height: auto !important; margin: 0 !important; break-after: page; page-break-after: always; }
  .export-page-shell:last-child { break-after: auto; page-break-after: auto; }
  .export-sheet { transform: none !important; margin: 0; box-shadow: none; break-inside: avoid; page-break-inside: avoid; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .export-source { max-width: none; overflow: visible; padding: 0; }
  .export-source table { min-width: 0; break-after: page; }
  .export-source > p { display: none; }
  thead { display: table-header-group; }
  tr { break-inside: avoid; page-break-inside: avoid; }
  #toolbarContainer, .debugbar { display: none !important; }
}
