/* Live score ledger: paper surface, club-green headers, unmodified scoring markup. */
#scoreSheetPanel:not(.hidden) { display: grid !important; grid-template-columns: minmax(0,960px) 44px; grid-template-rows: minmax(0,auto); gap: 12px; align-items: start; align-content: center; justify-content: center; padding: 12px !important; }
#scoreSheetPanel .score-sheet-card { width: min(960px,calc(100vw - 78px)) !important; height: auto !important; max-height: min(92dvh,840px) !important; border: 1px solid #b89c60 !important; border-radius: 14px !important; padding: 12px !important; background: #f5efdf !important; box-shadow: inset 0 0 0 3px #e2d2aa,0 22px 70px #0009; }
#scoreSheetPanel .score-sheet-table { font-family: "Segoe UI",system-ui,sans-serif; color: #203a30; }
#scoreSheetPanel .score-ledger { border-collapse: separate; border-spacing: 0; min-width: 560px; }
#scoreSheetPanel .score-ledger caption { padding: 14px 86px 18px 12px; background: #10251c url('/assets/ui/brand-login-transparent-v4.png') right 12px center / 70px 52px no-repeat; border: 1px solid #7f6939; border-radius: 8px 8px 0 0; color: #f1dba2; font: 600 22px/1.3 "Segoe UI",system-ui,sans-serif; letter-spacing: .015em; }
#scoreSheetPanel .score-ledger :is(th,td) { height: 32px; padding: 5px 4px; font: 500 14px/1.3 "Segoe UI",system-ui,sans-serif; font-variant-numeric: tabular-nums; border: 0; border-right: 1px solid #b8b19d; border-bottom: 1px solid #c5c1b1; color: #203a30; background: #faf6eb; }
#scoreSheetPanel .score-ledger thead tr:first-child th { height: 48px; background: #d7ddcf; color: #152d23; border-top: 1px solid #a8ae9f; }
#scoreSheetPanel .score-ledger thead tr:nth-child(2) th { top: 48px; height: 30px; background: #e5e8dc; color: #354c3e; font-size: 13px; }
#scoreSheetPanel .score-ledger tbody th { background: #e5e5d6; font-weight: 600; }
#scoreSheetPanel .score-ledger tbody tr:nth-child(even) td { background: #f1eee3; }
#scoreSheetPanel .score-player { gap: 8px; }
#scoreSheetPanel .score-player i { border-color: #8e7947; border-radius: 50%; width: 30px; height: 30px; background: #193b2b; }
#scoreSheetPanel .score-player b { max-width: 135px; font: 600 14px/1.3 "Segoe UI",system-ui,sans-serif; }
#scoreSheetPanel .score-ledger .score-order { font-size: 14px !important; font-weight: 500; color: #75552c; }
#scoreSheetPanel .score-ledger .score-points { font-weight: 650; }
#scoreSheetPanel .score-ledger td.score-exact { background: #e0eddd; color: #184c30; }
#scoreSheetPanel .score-ledger td.score-hist { background: #f0dcd8; color: #842b38; }
#scoreSheetPanel .score-ledger .score-current > * { box-shadow: inset 0 2px #b08b39,inset 0 -2px #b08b39; }
#scoreSheetPanel .score-ledger :is(.score-ledger-total,.score-ledger-prize) > * { border-top: 2px solid #8a7544; height: 34px; font-weight: 700; background: #dce2d0; }
#scoreSheetPanel .score-ledger .score-ledger-prize > * { border-top: 0; border-bottom: 3px double #8a7544; background: #e9dcb9; }
#scoreSheetPanel .score-ledger .score-ledger-total .score-summary-sum { background: #dce2d0 !important; }
#scoreSheetPanel .score-ledger .score-ledger-prize .score-cumulative-sum { background: #e9dcb9 !important; }
#scoreSheetPanel .score-ledger sup { font: 600 12px/1.2 "Segoe UI",system-ui,sans-serif; color: #842b38; }
#closeScoreSheet { left: min(calc(50% + 480px),calc(100% - 52px)); top: 18px; border-radius: 12px; background: #153525; border-color: #c8ab65; color: #f1dba2; font-family: "Segoe UI",system-ui,sans-serif !important; }
#closeScoreSheet:focus-visible { outline: 3px solid #f2d890; outline-offset: 3px; }
#scoreSheetPanel .score-sheet-card { width: 100% !important; min-width: 0; grid-column: 1; grid-row: 1; }
#scoreSheetPanel #closeScoreSheet { position: static; grid-column: 2; grid-row: 1; margin: 0; }
@media(max-height:600px) {
  #scoreSheetPanel .score-sheet-card { max-height: calc(100dvh - 14px) !important; padding: 7px !important; }
  #scoreSheetPanel .score-ledger caption { font-size: 18px; padding: 10px 70px 10px 10px; background-size: 52px 38px; }
  #scoreSheetPanel .score-ledger :is(th,td) { height: 28px; font-size: 13px; padding: 3px; }
  #scoreSheetPanel .score-ledger thead tr:first-child th { height: 42px; }
  #scoreSheetPanel .score-ledger thead tr:nth-child(2) th { top: 42px; }
}
