:root{--green:#123b32;--green2:#1d6654;--mint:#e8f4ef;--ink:#182622;--muted:#687872;--line:#dce6e1;--bg:#e5f0e7;--white:#fff;--gold:#f4c96b;--shadow:0 10px 28px rgba(18,59,50,.07)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.5 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.topbar{height:76px;background:#ffffff;color:#202832;display:flex;align-items:center;justify-content:space-between;padding:0 max(20px,calc((100% - 1080px)/2));gap:16px}.brand{display:flex;align-items:center;gap:12px}.brand-mark{width:40px;height:40px;border-radius:12px;background:#ffffff;color:var(--green);display:grid;place-items:center;font-weight:900;font-size:22px}.brand strong{display:block;font-size:16px}.brand small{display:block;color:#c5d9d1;font-size:12px}.offline-pill{font-size:11px;border:1px solid #6c9285;border-radius:30px;padding:5px 10px;color:#e0f0e9}.container{max-width:900px;margin:28px auto;padding:0 18px}.tabs{display:flex;gap:6px;overflow:auto;background:#ffffff;padding:5px;border-radius:13px;margin-bottom:26px}.tab{border:0;background:transparent;color:#50635b;padding:10px 15px;border-radius:9px;font-weight:650;white-space:nowrap;cursor:pointer}.tab.active{background:white;color:var(--green);box-shadow:0 2px 8px #183b3212}.view{display:none}.view.active{display:block}.section-heading{display:flex;justify-content:space-between;margin-bottom:18px}.eyebrow{font-size:10px;letter-spacing:1.6px;font-weight:800;color:var(--green2);margin:0 0 5px}.section-heading h1{font-size:29px;letter-spacing:-.7px;margin:0 0 4px}.muted{color:var(--muted);margin:0}.small{font-size:12px}.panel{background:var(--white);border:1px solid var(--line);border-radius:17px;padding:20px;margin-bottom:15px;box-shadow:var(--shadow)}.panel h2{font-size:18px;margin:0 0 5px}.field-label{display:block;font-weight:700;font-size:13px;margin:17px 0 7px}.optional{font-weight:400;color:var(--muted);font-size:11px;margin-left:5px}input,select{width:100%;border:1px solid #cfdcd5;border-radius:10px;padding:12px 13px;font:inherit;background:white;color:var(--ink);outline:none}input:focus,select:focus{border-color:var(--green2);box-shadow:0 0 0 3px #1d66541a}.player-inputs{display:grid;grid-template-columns:1fr 1fr;gap:9px}.button{border:0;border-radius:10px;padding:12px 16px;font:700 14px inherit;cursor:pointer;margin-top:12px}.button.primary{background:var(--green);color:white}.button.primary:hover{background:var(--green2)}.button.secondary{background:var(--mint);color:var(--green)}.button.full{width:100%}.hidden{display:none!important}.match-meta,.panel-title{display:flex;align-items:center;justify-content:space-between;gap:15px}.match-meta h2{font-size:21px}.round-chip{background:var(--mint);color:var(--green);padding:6px 10px;border-radius:30px;font-size:12px;font-weight:800;white-space:nowrap}.table-wrap{overflow:auto;margin-top:14px}table{width:100%;border-collapse:collapse;min-width:380px}th,td{text-align:right;padding:11px 9px;border-bottom:1px solid #edf1ee;font-size:13px}th:first-child,td:first-child{text-align:left}th{color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.5px}tr.leader td{background:#f0f8f3;font-weight:750}.leader-label{color:var(--green2);font-size:10px;margin-left:5px}.round-inputs{display:grid;grid-template-columns:1fr 110px;gap:8px;align-items:center}.round-inputs label{font-size:13px;font-weight:650}.round-inputs input{padding:9px 10px}.hint{font-size:11px;color:var(--muted);margin:10px 0 0}.stack{display:grid;gap:12px}.history-card{background:white;border:1px solid var(--line);border-radius:15px;padding:16px;display:flex;align-items:center;justify-content:space-between;gap:12px}.history-card h3{margin:0 0 4px;font-size:16px}.history-card p{margin:0;color:var(--muted);font-size:12px}.history-actions{display:flex;gap:6px;flex-wrap:wrap}.mini-btn{border:0;border-radius:8px;padding:8px 10px;background:var(--mint);color:var(--green);font-weight:700;cursor:pointer}.notice{background:#fff8e8;border:1px solid #f1dfb7;border-radius:13px;padding:14px;font-size:12px;color:#6c5424;margin-top:15px}.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:15px}.stat{background:white;border:1px solid var(--line);border-radius:14px;padding:16px}.stat strong{display:block;font-size:25px;color:var(--green)}.stat span{font-size:11px;color:var(--muted)}.empty{background:white;border:1px dashed #cbd8d1;border-radius:15px;padding:25px;text-align:center;color:var(--muted)}footer{text-align:center;color:#82918a;font-size:11px;padding:28px 15px 38px}#toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:#183d33;color:white;padding:11px 17px;border-radius:30px;box-shadow:var(--shadow);opacity:0;pointer-events:none;transition:.2s;max-width:90%;font-size:13px}#toast.show{opacity:1}@media(max-width:600px){.topbar{height:68px;padding:0 16px}.container{margin:18px auto;padding:0 12px}.section-heading h1{font-size:25px}.panel{padding:16px}.player-inputs{grid-template-columns:1fr}.match-meta{align-items:flex-start;flex-direction:column}.stat-grid{grid-template-columns:1fr 1fr}.history-card{align-items:flex-start;flex-direction:column}.history-actions{width:100%}.history-actions button{flex:1}}@media print{.topbar,.tabs,.button,.mini-btn,footer,#toast{display:none!important}body{background:white}.container{max-width:none;margin:0}.view{display:none!important}#view-history{display:block!important}.history-card,.panel{box-shadow:none;break-inside:avoid}}
.button:disabled,.mini-btn:disabled{opacity:.45;cursor:not-allowed}

#view-players .panel{margin-bottom:12px}#playerSearch{max-width:100%}

.re-entry-example{margin-top:16px;padding:16px;border:1px dashed #9bb9ab;border-radius:14px;background:#f7fbf8}.example-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.example-kicker{font-size:10px;letter-spacing:1.2px;font-weight:850;color:var(--green2)}.re-entry-example h3{font-size:15px;margin:10px 0 12px}.example-steps{display:grid;gap:9px}.example-step{display:grid;grid-template-columns:28px 1fr auto;align-items:center;gap:10px;padding:10px;background:white;border:1px solid var(--line);border-radius:10px}.example-number{width:25px;height:25px;border-radius:50%;display:grid;place-items:center;background:var(--green);color:white;font-size:12px;font-weight:800}.example-step strong{font-size:13px}.example-step p{font-size:11px;color:var(--muted);margin:2px 0 0}.example-value{font-size:12px;font-weight:850;color:var(--green);white-space:nowrap}.example-footnote{font-size:11px;color:var(--muted);margin:11px 0 0}@media(max-width:480px){.example-step{grid-template-columns:26px 1fr}.example-value{grid-column:2;white-space:normal}}

/* Round scoring rules: a single 0 is visually emphasized. */
.zero-score{display:inline-block;min-width:25px;text-align:center;padding:2px 7px;border-radius:7px;background:#fff0b8;color:#8a4b00;font-weight:900;border:1px solid #e8b84d}
.zero-score-input{background:#fff6d8!important;border:2px solid #d99a19!important;color:#874600!important;font-weight:850}
#roundScoreNotice.zero-warning{color:#a32626;font-weight:800}

.re-entry-benchmark-table{min-width:0;margin:4px 0 12px}.re-entry-benchmark-table th,.re-entry-benchmark-table td{padding:9px 10px}.benchmark-tag{display:inline-block;margin-left:6px;padding:2px 7px;border-radius:20px;background:#e8f4ef;color:#1d6654;font-size:10px;font-weight:800}.eliminated-example{color:#a33b35;font-weight:850}.re-entry-example .example-step:last-child .example-value{color:#a33b35}

.active-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.save-state{font-size:10px;color:var(--muted);font-weight:650}.active-actions .button{margin-top:0;padding:9px 12px;font-size:12px}.active-actions .mini-btn{font-size:11px;padding:8px 10px}@media(max-width:600px){.active-actions{justify-content:flex-start}.save-state{flex-basis:100%}}

.split-option{display:flex;align-items:flex-start;gap:10px;margin:14px 0;padding:13px;border:1px solid var(--line);border-radius:12px;background:#f8fbf9;cursor:pointer}.split-option input{width:18px;height:18px;margin:2px 0 0;flex:0 0 auto;accent-color:var(--green)}.split-option span{display:grid;gap:3px}.split-option strong{font-size:13px}.split-option small{font-size:11px;color:var(--muted);line-height:1.45}.prize-info h2{font-size:16px;margin:0 0 7px}.prize-info p{margin:4px 0}.prize-info .hint{margin-top:8px}

.entry-preview{margin:10px 0 16px;padding:13px 14px;border:1px solid #cfe0d6;border-radius:12px;background:#f0f8f3;color:var(--green);font-size:13px;line-height:1.5}.entry-preview small{display:block;margin-top:5px;color:var(--muted);font-size:11px}

.split-allocation-panel{margin:18px 0;padding:15px;border:1px solid var(--line);border-radius:14px;background:#f8fbf9}.split-allocation-panel h3{margin:0 0 7px}.split-allocation-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.split-allocation-grid .field-label{margin:0}.split-allocation-grid input{width:100%;margin-top:6px}@media(max-width:520px){.split-allocation-grid{grid-template-columns:1fr}}


/* v2.3 responsive application shell */
:root{--content-max:1320px;--nav-width:224px;--focus:#2a8068}
html{min-width:320px;scroll-behavior:smooth}
body{min-height:100vh;overflow-x:hidden}
button,input,select{touch-action:manipulation}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #e3ad35;outline-offset:2px}
.topbar{position:sticky;top:0;z-index:30;height:72px;padding:0 max(20px,calc((100% - var(--content-max))/2));box-shadow:0 2px 14px rgba(18,59,50,.12)}
.container{width:min(100% - 40px,var(--content-max));max-width:var(--content-max);margin:24px auto 40px;padding:0;display:grid;grid-template-columns:var(--nav-width) minmax(0,1fr);align-items:start;column-gap:24px}
.tabs{grid-column:1;grid-row:1 / span 20;position:sticky;top:92px;display:flex;flex-direction:column;gap:5px;overflow:visible;padding:8px;background:#ffffff;border:1px solid var(--line);border-radius:16px;margin:0}
.tab{text-align:left;width:100%;padding:12px 14px;min-height:44px}
.view{grid-column:2;min-width:0}
.view.active{display:block}
.section-heading{align-items:flex-start;gap:16px}
.section-heading h1{font-size:clamp(25px,2.3vw,34px)}
#view-new #activePanel{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:14px}
#view-new #activePanel>.panel{min-width:0;margin:0}
#view-new #activePanel>.match-meta,#view-new #activePanel>#prizeInfo{grid-column:1/-1}
#view-new #activePanel>.panel:nth-of-type(3){grid-column:span 5}
#view-new #activePanel>.panel:nth-of-type(4){grid-column:span 7}
#view-new #activePanel>.panel:nth-of-type(5){grid-column:span 5}
#view-new #activePanel>.panel:nth-of-type(6){grid-column:span 7}
#setupPanel{max-width:860px}
.panel{min-width:0}
.stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.stack{min-width:0}
.table-wrap{max-width:100%;overscroll-behavior-inline:contain}
table{min-width:0}
footer{padding-bottom:28px}
#toast{z-index:60;bottom:max(20px,env(safe-area-inset-bottom))}
@media(max-width:1100px){
  :root{--nav-width:190px}
  .container{width:min(100% - 32px,var(--content-max));column-gap:16px}
  #view-new #activePanel>.panel:nth-of-type(3),#view-new #activePanel>.panel:nth-of-type(5){grid-column:span 6}
  #view-new #activePanel>.panel:nth-of-type(4),#view-new #activePanel>.panel:nth-of-type(6){grid-column:span 6}
}
@media(max-width:820px){
  .topbar{height:66px;padding:0 18px}
  .container{display:block;width:min(100% - 28px,760px);margin:18px auto 32px}
  .tabs{position:sticky;top:66px;z-index:20;flex-direction:row;overflow-x:auto;scrollbar-width:thin;margin:0 0 20px;padding:5px;white-space:nowrap}
  .tab{width:auto;flex:1 0 auto;text-align:center;padding:10px 13px}
  .view{width:100%}
  #view-new #activePanel{grid-template-columns:repeat(2,minmax(0,1fr))}
  #view-new #activePanel>.panel:nth-of-type(n){grid-column:span 1}
  #view-new #activePanel>.match-meta,#view-new #activePanel>#prizeInfo{grid-column:1/-1}
}
@media(max-width:560px){
  body{font-size:14px}
  .topbar{height:62px;padding:0 13px}
  .brand{gap:9px}.brand-mark{width:36px;height:36px;font-size:20px}
  .brand strong{font-size:14px}.brand small{font-size:10px}
  .offline-pill{font-size:10px;padding:4px 8px}
  .container{width:calc(100% - 24px);margin:13px auto 28px}
  .tabs{top:62px;margin:0 -2px 16px;border-radius:12px}
  .tab{font-size:11px;padding:9px 10px;min-height:40px}
  .section-heading{margin-bottom:13px}
  .section-heading h1{font-size:24px}
  .section-heading .muted{font-size:12px}
  .panel{padding:14px;border-radius:14px;margin-bottom:12px}
  #view-new #activePanel{display:flex;flex-direction:column;gap:11px}
  #view-new #activePanel>.panel{width:100%}
  .panel h2{font-size:16px}
  .match-meta{gap:10px}
  .match-meta h2{font-size:19px}
  .active-actions{width:100%;justify-content:flex-start}
  .active-actions .button,.active-actions .mini-btn{flex:1}
  .round-inputs{grid-template-columns:minmax(0,1fr) 92px;gap:7px}
  .round-inputs label{font-size:12px}
  .round-inputs input{min-width:0;padding:10px 8px}
  .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .stat{padding:12px}.stat strong{font-size:21px}
  .history-card{padding:13px}
  .split-allocation-grid{grid-template-columns:1fr}
  .button{min-height:44px}
  input,select{min-height:44px;font-size:16px}
  .table-wrap{overflow:visible}
  table{width:100%;min-width:0}
  table.responsive-table thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
  table.responsive-table,table.responsive-table tbody{display:block;width:100%}
  table.responsive-table tbody{display:grid;gap:9px}
  table.responsive-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;background:#fff;border:1px solid var(--line);border-radius:11px;overflow:hidden}
  table.responsive-table td{display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:right;padding:9px 10px;border-bottom:1px solid #edf1ee;font-size:12px;min-width:0}
  table.responsive-table td:first-child{grid-column:1/-1;text-align:left;background:#f4f8f5;font-weight:800}
  table.responsive-table td::before{content:attr(data-label);font-size:10px;color:var(--muted);font-weight:700;text-align:left}
  table.responsive-table td:first-child::before{content:""}
  .re-entry-benchmark-table.responsive-table tr{grid-template-columns:1fr 1fr}
  footer{padding:20px 12px 28px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important;animation:none!important}}
@media(orientation:landscape) and (max-height:520px) and (max-width:900px){
  .topbar{height:54px}.tabs{top:54px}
  .container{margin-top:10px}
}
@media print{
  .container{display:block;width:100%;margin:0}
  .tabs{display:none!important}
  .view{grid-column:auto}
}


.about-app{margin-top:8px;font-size:12px}.about-app summary{cursor:pointer;font-weight:700}.about-app p{max-width:760px;margin:8px auto 0;line-height:1.5}

/* v4.2 Northstar: simple two-step match setup */
.setup-flow{display:block}.setup-step{max-width:900px}.step-intro{margin:8px 0 24px}.step-number{display:inline-flex;align-items:center;padding:5px 10px;border-radius:30px;background:#e5efea;color:#245b4a;font-size:10px;font-weight:850;letter-spacing:1.3px}.step-intro h2{font-size:clamp(25px,4vw,34px);letter-spacing:-.7px;margin:13px 0 5px;color:var(--ink)}.step-intro p{margin:0;color:var(--muted);font-size:15px}.format-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:26px 0 20px}.format-card{position:relative;isolation:isolate;min-height:218px;padding:0;border:0;border-radius:20px;background:transparent;text-align:left;cursor:pointer;color:var(--ink);transition:transform .18s ease,filter .18s ease}.format-card-layer{position:absolute;inset:9px 0 0;border-radius:20px;background:#dce8e1;z-index:-2;box-shadow:0 7px 0 #c8d8cf,0 13px 22px rgba(18,59,50,.08);transition:transform .18s ease,background .18s ease}.format-card-content{position:absolute;inset:0 0 13px;border:1px solid #dce7e0;border-radius:20px;background:linear-gradient(150deg,#fff 0%,#f9fcfa 100%);padding:22px 20px;display:flex;flex-direction:column;align-items:flex-start;box-shadow:0 5px 14px rgba(18,59,50,.055);transition:transform .18s ease,border-color .18s ease,background .18s ease}.format-card-kicker{font-size:10px;letter-spacing:1.4px;font-weight:850;color:#648076}.format-card-content strong{font-size:clamp(39px,5vw,55px);line-height:1.05;letter-spacing:-2px;color:#174b3c;margin-top:16px}.format-card-unit{font-size:12px;font-weight:850;letter-spacing:2px;color:#668076;margin-top:2px}.format-card-description{font-size:13px;color:#718079;margin-top:auto;padding-top:13px}.format-card:hover .format-card-content{transform:translateY(-5px)}.format-card:active .format-card-content{transform:translateY(2px)}.format-card[aria-pressed=true] .format-card-content{border:2px solid #2d735d;background:linear-gradient(150deg,#f1f8f4,#fff);box-shadow:0 7px 18px rgba(18,59,50,.12)}.format-card[aria-pressed=true] .format-card-layer{background:#c9dfd2;box-shadow:0 7px 0 #a9c7b7,0 13px 22px rgba(18,59,50,.1)}.format-card:focus-visible{outline:3px solid #8bbca5;outline-offset:5px}.custom-format-card .format-card-content strong{font-size:clamp(29px,4vw,39px);letter-spacing:-1.2px;margin-top:22px}.custom-limit-panel{max-width:460px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px 20px;margin:0 0 20px;box-shadow:var(--shadow)}.custom-limit-entry{display:flex;align-items:center;gap:12px}.custom-limit-entry input{max-width:220px}.custom-limit-entry span{color:var(--muted);font-size:14px}.setup-footnote{font-size:12px;color:var(--muted);margin-top:26px}.player-setup-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:clamp(18px,3vw,30px);box-shadow:var(--shadow)}.selected-format-summary{display:flex;align-items:center;justify-content:space-between;padding:0 0 14px;border-bottom:1px solid #e8efeb;color:#285e4c;font-size:12px;font-weight:850;letter-spacing:1px}.text-button{border:0;background:transparent;color:#28634f;font:700 13px inherit;padding:8px;cursor:pointer}.text-button:hover{text-decoration:underline}.player-setup-card .field-label{margin-top:21px}.player-setup-card .player-inputs{grid-template-columns:1fr 1fr}.entry-preview{margin-top:15px;background:#f0f7f2;border:1px solid #d5e7dc;border-radius:12px;padding:13px 15px;color:#315c49;font-size:13px}.advanced-settings{margin-top:20px;border-top:1px solid #e8efeb;padding-top:15px}.advanced-settings summary{color:#52675d;font-weight:700;font-size:13px;cursor:pointer}.advanced-settings .field-label{margin-top:15px}.compact-notice{font-size:12px}.start-match-button{min-height:52px;margin-top:22px;font-size:16px}.start-match-button span{margin-left:8px;font-size:20px}.back-button{display:block;margin:12px auto 0}.hidden{display:none!important}
@media(max-width:700px){.format-cards{grid-template-columns:1fr;gap:14px;margin-top:20px}.format-card{min-height:145px}.format-card-content{padding:18px 20px;inset:0 0 10px}.format-card-content strong{font-size:42px;margin-top:8px}.format-card-description{padding-top:5px}.custom-format-card .format-card-content strong{font-size:32px;margin-top:10px}.player-setup-card .player-inputs{grid-template-columns:1fr}.step-intro{margin-bottom:18px}.format-card-layer{inset:7px 0 0}.custom-limit-panel{max-width:none}}
@media(min-width:701px) and (max-width:980px){.format-cards{gap:12px}.format-card{min-height:200px}.format-card-content{padding:18px}}
@media(prefers-reduced-motion:reduce){.format-card,.format-card-content,.format-card-layer{transition:none}}

/* v4.3 Northstar score sheet: rounds down, players across */
#scoreTable{min-width:620px;border-collapse:separate;border-spacing:0}
#scoreTable thead th{background:#f3f8f5;padding:15px 13px;text-align:center;vertical-align:bottom;border-bottom:1px solid #dfeae3;min-width:116px}
#scoreTable thead th:first-child{text-align:left;min-width:112px;border-top-left-radius:12px}
#scoreTable thead th:last-child{border-top-right-radius:12px}
#scoreTable .score-player-name{display:block;color:#244d3f;font-size:13px;font-weight:800;text-transform:none;letter-spacing:0;overflow-wrap:anywhere}
#scoreTable .score-player-total{display:block;color:#174b3c;font-size:20px;line-height:1.25;margin-top:7px;letter-spacing:-.4px}
#scoreTable .score-player-status{display:block;color:#7a8982;font-size:10px;font-weight:650;text-transform:none;letter-spacing:0;margin-top:4px}
#scoreTable tbody td{padding:14px 12px;text-align:center;vertical-align:middle;background:#fff}
#scoreTable tbody td:first-child{text-align:left}
#scoreTable .round-label-cell{min-width:112px;background:#f7faf8;color:#294d40;font-weight:800}
#scoreTable .round-label-cell small{display:block;color:#7b8982;font-weight:500;font-size:10px;margin-top:3px}
#scoreTable .round-score-value{font-size:17px;font-weight:800;color:#263c33}
#scoreTable .running-total{display:block;color:#718178;font-size:10px;margin-top:5px}
#scoreTable .score-leader-column{background:#eaf4ee}
#scoreTable .score-leader-cell{background:#f5faf6}
#scoreTable .score-current-total-row td{background:#edf5f0;border-top:2px solid #d6e5dc;font-weight:800}
#scoreTable .score-current-total-row td strong{display:block;color:#174b3c}
#scoreTable .score-current-total-row td:first-child{border-bottom-left-radius:10px}
#scoreTable .score-current-total-row td:last-child{border-bottom-right-radius:10px}
#scoreTable .score-current-total-row .score-player-status{font-weight:600}
@media(max-width:700px){
 #scoreTable{min-width:0}
 table.responsive-table#scoreTable tbody{gap:11px}
 table.responsive-table#scoreTable tr{grid-template-columns:repeat(2,minmax(0,1fr));border-radius:13px}
 table.responsive-table#scoreTable td{min-width:0;text-align:right}
 table.responsive-table#scoreTable td:first-child{grid-column:1/-1;text-align:left;padding:12px 14px}
 table.responsive-table#scoreTable td:first-child::before{content:""}
 table.responsive-table#scoreTable td::before{content:attr(data-label);font-size:10px;color:#718178;font-weight:750}
 table.responsive-table#scoreTable .round-label-cell{font-size:14px}
 table.responsive-table#scoreTable .round-score-value{font-size:15px}
 table.responsive-table#scoreTable .running-total{font-size:10px}
}


/* v4.4 Northstar: mobile-first navigation, uncluttered pages and a consistent matrix score sheet */
.menu-bar{display:flex;justify-content:flex-end;margin:0 0 12px}
.menu-toggle{display:inline-flex;align-items:center;gap:9px;border:1px solid var(--line);background:#fff;color:var(--green);border-radius:12px;padding:10px 14px;font:700 13px inherit;cursor:pointer;box-shadow:0 2px 7px rgba(18,59,50,.045)}
.menu-icon{font-size:17px;line-height:1}
.menu-current{margin-left:5px;padding-left:12px;border-left:1px solid var(--line);color:var(--muted);font-weight:600}
.tabs{display:flex;flex-wrap:wrap;gap:6px;overflow:visible;background:#ffffff;padding:7px;border-radius:13px;margin-bottom:20px;transition:opacity .16s ease,transform .16s ease}
.tabs.collapsed{display:none}
.tab{padding:10px 14px}
.save-icon-button{width:40px;height:40px;display:inline-grid;place-items:center;border:1px solid var(--line);border-radius:11px;background:#fff;color:var(--green);cursor:pointer;box-shadow:0 2px 6px rgba(18,59,50,.05)}
.save-icon-button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.save-icon-button:active{transform:scale(.96)}
.save-icon-button:focus-visible,.menu-toggle:focus-visible{outline:3px solid #8bbca5;outline-offset:2px}
.prize-info{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.prize-summary{display:flex;align-items:baseline;gap:7px;flex-wrap:wrap;color:var(--muted);font-size:12px}
.prize-summary strong{color:var(--ink);font-size:13px}
.prize-info .button{margin:0;white-space:nowrap}
#scoreTable{min-width:0;width:max-content;min-width:100%;border-collapse:separate;border-spacing:0;table-layout:auto}
#scoreTable th,#scoreTable td{min-width:118px;max-width:220px}
#scoreTable th:first-child,#scoreTable td:first-child{position:sticky;left:0;z-index:2;min-width:105px;background:#f7faf8;box-shadow:2px 0 5px rgba(18,59,50,.04)}
#scoreTable thead th:first-child{z-index:4}
#scoreTable thead th{vertical-align:top;background:#f7faf8}
#scoreTable .score-player-name{overflow-wrap:anywhere}
#scoreTable .score-player-total{font-size:19px}
#scoreTable tbody td{height:76px}
#scoreTable .round-label-cell{font-size:13px}
.score-sheet-wrap{max-width:100%;overflow:auto;overscroll-behavior-x:contain;border-radius:12px}
.score-scroll-hint{display:none;color:var(--muted);font-size:11px;margin:0 0 7px}
.round-validation-message{font-size:12px;color:#a32626;margin:8px 0 0}
.help-search-panel{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px;margin-bottom:12px}
.help-search-panel .field-label{margin:0 0 7px}
.faq-list{display:grid;gap:8px}
.faq-item{background:#fff;border:1px solid var(--line);border-radius:13px;padding:0 15px}
.faq-item summary{position:relative;list-style:none;cursor:pointer;padding:15px 28px 15px 0;font-size:14px;font-weight:700;color:var(--ink)}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:"＋";position:absolute;right:0;top:13px;color:var(--green2);font-size:18px;font-weight:500}
.faq-item[open] summary::after{content:"−"}
.faq-item p{margin:0 0 15px;color:var(--muted);font-size:13px;line-height:1.65}
.faq-item[hidden]{display:none}
footer{font-size:11px;color:var(--muted);text-align:center;padding:24px 10px}
@media(max-width:700px){
 .container{margin:14px auto;padding:0 12px}
 .menu-bar{justify-content:stretch;margin-bottom:10px}
 .menu-toggle{width:100%;justify-content:flex-start;min-height:44px}
 .menu-current{margin-left:auto}
 .tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:14px}
 .tab{text-align:left;padding:12px 10px}
 .panel{padding:14px;border-radius:14px}
 .match-meta{gap:10px}
 .active-actions{justify-content:flex-end;align-items:center}
 .active-actions .save-icon-button{margin-left:auto}
 .active-actions .button{font-size:12px}
 .score-scroll-hint{display:block}
 .score-sheet-wrap{margin-top:6px;border:1px solid var(--line)}
 #scoreTable{min-width:max-content}
 #scoreTable th,#scoreTable td{min-width:112px;max-width:150px;padding:10px 8px}
 #scoreTable th:first-child,#scoreTable td:first-child{min-width:84px;max-width:84px}
 #scoreTable .score-player-name{font-size:12px}
 #scoreTable .score-player-total{font-size:16px}
 #scoreTable .score-player-status{font-size:9px}
 #scoreTable .round-label-cell{font-size:12px}
 #scoreTable tbody td{height:66px}
 .prize-info{align-items:flex-start}
 .prize-summary{gap:5px;font-size:11px}
 .faq-item summary{font-size:13px}
}
@media(min-width:701px){
 .menu-bar{margin-top:2px}
}


/* v4.5 score bands — soft tints with readable text, applied to round and cumulative values */
.score-band-green{color:#26734d!important;background:#edf6ef}
.score-band-red{color:#a64b4b!important;background:#fbefef}
.score-value{display:inline-block;min-width:24px;padding:3px 7px;border-radius:7px;font-weight:750;text-align:center}
.zero-score{color:#26734d!important;background:#edf6ef}
#scoreTable .score-player-total{display:inline-block;padding:3px 7px;border-radius:8px}
#scoreTable .running-total span{display:inline-block;padding:1px 4px;border-radius:4px;font-weight:700}
#scoreTable .cumulative-value{display:inline-block;padding:4px 8px;border-radius:8px;font-size:14px;font-weight:800}
#scoreTable .limit-hint{display:block;margin-top:5px;color:#a64b4b;font-size:9px;font-weight:700}
.score-input-green{border-color:#a9cbb4!important;background:#f5faf6!important}
.score-input-red{border-color:#dfb8b8!important;background:#fdf7f7!important}
@media(max-width:700px){
 #scoreTable .cumulative-value{font-size:12px;padding:4px 6px}
 #scoreTable .limit-hint{font-size:8px}
}

.score-band-legend{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:10px;margin:0 0 8px}
.score-band-legend span{font-size:13px;margin-left:5px}
.score-band-legend .legend-green{color:#5c9a73}
.score-band-legend .legend-red{color:#c77c7c}


/* v4.6: compact score presets and searchable match history */
.quick-score-bar{margin:4px 0 13px;padding:10px 11px;border:1px solid var(--line);border-radius:12px;background:#fbfdfb}
.quick-score-label{display:block;color:var(--muted);font-size:11px;font-weight:800;margin-bottom:7px}
.quick-score-options{display:flex;gap:6px;overflow-x:auto;padding:1px 1px 4px}
.score-preset{flex:0 0 auto;min-width:42px;border:1px solid #d7e3dc;border-radius:9px;background:#fff;color:#315b4a;padding:8px 11px;font:700 12px inherit;cursor:pointer}
.score-preset:active{background:#eaf4ee;border-color:#8fb5a0}
.score-preset-zero{background:#fff8e8;border-color:#ead6a6;color:#805b16}
.quick-score-hint{margin:4px 0 0;color:var(--muted);font-size:10px}
.history-search-panel{padding:12px 16px}
.history-search-panel .field-label{margin:0 0 6px}
@media(max-width:600px){.quick-score-options{gap:5px}.score-preset{padding:9px 12px;min-width:44px}.history-search-panel{padding:12px}}

/* v4.9 inline scoreboard draft row */
.score-sheet-actions{display:flex;align-items:center;gap:8px}
.score-draft-row td{background:#f1f8f3!important;border-top:2px solid #b9d8c4}
.score-draft-row .round-label-cell{background:#eaf4ee!important}
.draft-round-note{display:block;width:100%;min-width:0;margin-top:7px;padding:6px 5px;border:1px solid #d5e4da;border-radius:7px;background:#fff;font:inherit;font-size:10px}
.draft-score-cell{padding:8px 5px!important}
.draft-score-cell input{display:block;width:100%;min-width:0;height:42px;padding:5px 3px;border:1px solid #c9dacf;border-radius:8px;background:#fff;text-align:center;font-size:16px;font-weight:800;color:#244d3f}
.draft-score-cell input:focus{outline:2px solid #75ad8b;outline-offset:1px}
.draft-score-cell input.score-input-green{background:#e7f4e9;color:#27613b}
.draft-score-cell input.score-input-red{background:#faeaea;color:#9c4141}
.draft-inactive{color:#a0aaa4;background:#f7f9f7!important}
.round-history-details{margin-top:12px;border-top:1px solid var(--line);padding-top:10px}
.round-history-details>summary{cursor:pointer;color:#52675c;font-size:12px;font-weight:750}
.header-reentry{display:block;margin:5px auto 0;padding:4px 6px;font-size:10px}
@media(max-width:600px){
  #scoreTable{min-width:0!important;width:100%;table-layout:fixed}
  #scoreTable th,#scoreTable td{min-width:64px;max-width:90px;padding:8px 4px}
  #scoreTable th:first-child,#scoreTable td:first-child{min-width:54px;max-width:54px}
  #scoreTable .score-player-name{font-size:10px;line-height:1.2}
  #scoreTable .score-player-total{font-size:13px}
  #scoreTable .score-player-status{font-size:8px}
  #scoreTable .round-label-cell{font-size:10px}
  .draft-score-cell input{height:38px;font-size:14px}
  .draft-round-note{font-size:9px}
  .score-sheet-actions{gap:5px}
}

/* v4.10 navigation reconciliation: distinct dashboard and active-match destinations */
.dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}
.dashboard-card{display:flex;flex-direction:column;align-items:flex-start;gap:7px;min-height:118px;padding:16px;border:1px solid #dce9df;border-radius:16px;background:#fff;text-align:left;color:#29483a;box-shadow:0 3px 12px rgba(44,83,59,.045);cursor:pointer}
.dashboard-card strong{font-size:15px}
.dashboard-card>span:last-child{font-size:12px;color:#718177}
.dashboard-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:#eaf5ed;color:#39724f;font-size:20px;font-weight:800}
#view-active #activePanel{display:block}
#view-active #activePanel.hidden{display:none}
@media(min-width:700px){.dashboard-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-card{min-height:130px;padding:20px}}


/* v4.14: clean white canvas and high-clarity score matrix. */
/* Removed stale white/blue theme override: approved pale-green VisualAura theme remains active. */
.topbar{background:#fff!important;color:#202832!important;border-bottom:1px solid #dce1e6;box-shadow:none!important}
.brand small,.offline-pill{color:#5f6b77!important}
.offline-pill{border-color:#cbd3db!important}
.tabs{background:#fff!important;border:1px solid #e0e4e9;box-shadow:none}
.tab{color:#4c5966}.tab.active{background:#eef2f6;color:#203b50;box-shadow:none}
.menu-toggle,.save-icon-button{background:#fff;color:#203b50;box-shadow:none;border-color:#cfd6de}
.panel,.player-setup-card,.history-card,.stat,.dashboard-card,.help-search-panel,.faq-item{background:#fff!important;box-shadow:none!important}
.dashboard-card{border-color:#dce1e6;color:#273746}.dashboard-icon{background:#f0f3f6;color:#405a72}
.button.primary{background:#263f55}.button.primary:hover{background:#345d7b}.button.secondary,.mini-btn{background:#eef2f5;color:#2d465c}
.round-chip{background:#eef2f5;color:#304c64}
.entry-preview,.score-draft-row td,.score-draft-row .round-label-cell{background:#fff!important}
#scoreTable{border-collapse:separate;border-spacing:0;table-layout:fixed;min-width:max-content;border:1px solid #cbd2da;border-radius:8px;overflow:hidden}
#scoreTable th,#scoreTable td{border-right:1px solid #d8dde3;border-bottom:1px solid #d8dde3}
#scoreTable th:last-child,#scoreTable td:last-child{border-right:0}
#scoreTable tbody tr:last-child td{border-bottom:0}
#scoreTable th:first-child,#scoreTable td:first-child{background:#f5f6f8;box-shadow:2px 0 0 rgba(31,48,65,.04);min-width:112px}
#scoreTable thead th{background:#fff;min-width:138px;padding:15px 10px;border-top:0;border-bottom:2px solid #bfc8d2;text-align:center}
#scoreTable thead th:first-child{text-align:left;background:#f5f6f8}
#scoreTable .score-player-name{font-size:13px;color:#263544}
#scoreTable .score-player-status{color:#6b7784}
#scoreTable th.player-column{border-top:5px solid var(--player-accent);background:var(--player-tint)}
#scoreTable td.player-column{background:#fff!important;border-left:0;border-right:1px solid #d8dde3}
#scoreTable td.player-column .round-score-value{color:var(--player-ink);font-size:18px;font-weight:750}
#scoreTable .player-column-0{--player-accent:#557da5;--player-tint:#edf3f9;--player-ink:#315a82}
#scoreTable .player-column-1{--player-accent:#4d8970;--player-tint:#edf5f0;--player-ink:#32684e}
#scoreTable .player-column-2{--player-accent:#b18448;--player-tint:#f8f2e9;--player-ink:#89632e}
#scoreTable .player-column-3{--player-accent:#7d8744;--player-tint:#edf0df;--player-ink:#5b642e}
#scoreTable .player-column-4{--player-accent:#548c95;--player-tint:#edf5f6;--player-ink:#356d76}
#scoreTable .player-column-5{--player-accent:#a46d79;--player-tint:#f7eff1;--player-ink:#89515f}
#scoreTable .score-leader-column .score-player-name:after{content:" · LEADING";font-size:9px;letter-spacing:.3px;color:var(--player-ink)}
#scoreTable .leader-label{display:none}
#scoreTable tbody td{height:62px;padding:12px 10px;background:#fff;text-align:center}
#scoreTable .round-label-cell{background:#f5f6f8!important;color:#354353;font-weight:750}
#scoreTable .round-label-cell small{font-size:10px;color:#74808c}
#scoreTable .score-current-total-row td{background:#f1f3f6!important;border-top:2px solid #9eabb8;font-weight:800}
#scoreTable .score-current-total-row td.player-column{color:var(--player-ink)}
#scoreTable .score-current-total-row td strong{color:#273746}
#scoreTable .score-current-total-row .score-player-status{margin-top:5px}
#scoreTable .score-draft-row td{background:#fff!important;border-top:2px solid #aab6c2}
#scoreTable .score-draft-row .round-label-cell{background:#f5f6f8!important}
#scoreTable .draft-score-cell input{height:44px;border:1px solid #c4ccd5;border-radius:6px;background:#fff!important;color:#273746!important;box-shadow:none;font-size:17px}
#scoreTable .draft-score-cell input:focus{outline:2px solid #6689a8;outline-offset:1px}
#scoreTable .zero-score{display:inline;padding:0;border:0;border-radius:0;background:transparent!important;color:#a46d18!important;font-weight:900}
#scoreTable .limit-hint{color:#a46d18;font-size:9px}
#scoreTable .score-leader-cell{background:#fff!important}
.quick-score-bar{background:#fff;border:1px solid #d8dee5;border-radius:8px}
.score-preset{border-color:#cbd3dc;color:#344e65;border-radius:6px}
.score-preset-zero{background:#fff!important;border-color:#c49a53;color:#8a611e}
.score-sheet-wrap{border:0;border-radius:8px}
.score-scroll-hint{color:#687481}
.match-config-warning{margin-top:8px;padding:8px 10px;border-left:3px solid #b27b2d;background:#fff;color:#74521d;font-size:12px}
@media(max-width:700px){
 #scoreTable{min-width:max-content!important;width:max-content;table-layout:fixed}
 #scoreTable th,#scoreTable td{min-width:60px;max-width:72px;padding:8px 4px}
 #scoreTable th:first-child,#scoreTable td:first-child{min-width:66px;max-width:66px}
 #scoreTable .score-player-name{font-size:10px}
 #scoreTable .score-player-total{font-size:14px}
 #scoreTable tbody td{height:54px}
 #scoreTable .round-score-value{font-size:15px}
 #scoreTable .cumulative-value{font-size:15px}
 #scoreTable .draft-score-cell input{height:40px;font-size:15px}
}


/* v4.14.1 legal/footer pages: quiet, readable, white-canvas presentation. */
.site-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;max-width:1320px;margin:0 auto;padding:22px 20px 30px;border-top:1px solid #d8dee4;color:#66727d;font-size:11px}
.footer-brand{display:flex;flex-wrap:wrap;gap:5px;align-items:center}.footer-brand strong{color:#344452}.footer-links{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px 18px}.footer-links button{border:0;background:transparent;padding:5px 0;color:#435b70;font:600 11px inherit;cursor:pointer}.footer-links button:hover{text-decoration:underline;color:#263f55}.legal-view .legal-copy{max-width:920px;line-height:1.7}.legal-copy h2{margin:18px 0 7px;font-size:16px;color:#2e3d4b}.legal-copy h2:first-child{margin-top:0}.legal-copy p{margin:0 0 13px;color:#52606c;font-size:14px}.legal-copy p:last-child{margin-bottom:0}
@media(max-width:820px){.site-footer{display:block;padding:20px 14px 28px}.footer-links{justify-content:flex-start;margin-top:12px;gap:8px 16px}}

/* v4.14.4 Scorekeeper display preference */
.scorekeeper-settings{margin-top:14px}.settings-toggle{display:flex;align-items:center;gap:11px;margin-top:14px;padding:13px;border:1px solid #dce2e7;border-radius:10px;color:#273746;font-weight:650}.settings-toggle input{width:20px;height:20px;flex:0 0 20px;accent-color:#526b61}.scorekeeper-settings .hint{line-height:1.5}



/* v4.15.2 NORTHSTAR correction: restore operational score bands and cumulative visibility. */
.score-band-legend{display:flex!important;flex-wrap:wrap;gap:8px 14px;align-items:center;margin:10px 0 12px;padding:8px 10px;border:1px solid #e0e5e9;border-radius:8px;background:#fff;color:#4c5966;font-size:11px}
.score-band-legend span{display:inline-flex;align-items:center;gap:5px}
.score-band-legend i{display:inline-block;width:11px;height:11px;border-radius:3px;border:1px solid rgba(0,0,0,.08)}
.score-band-legend .legend-green{background:#e7f4e9}
.score-band-legend .legend-red{background:#faeaea}
#scoreTable .score-player-total.score-band-green,#scoreTable .cumulative-value.score-band-green,#scoreTable .score-value.score-band-green{background:#e7f4e9!important;color:#27613b!important}
#scoreTable .score-player-total.score-band-red,#scoreTable .cumulative-value.score-band-red,#scoreTable .score-value.score-band-red{background:#faeaea!important;color:#9c4141!important}
#scoreTable .score-player-total{display:inline-block!important;padding:3px 7px!important;border-radius:7px!important;font-weight:850}
#scoreTable .score-value{display:inline-block!important;min-width:26px;padding:3px 6px!important;border-radius:6px!important}
#scoreTable .cumulative-value{display:inline-block!important;padding:4px 8px!important;border-radius:7px!important;font-size:16px;font-weight:850}
#scoreTable .score-current-total-row td{background:#f7f8fa!important;border-top:2px solid #9eabb8;font-weight:800}
#scoreTable .score-current-total-row td.player-column{background:var(--player-tint)!important}
#scoreTable td.player-column{background:color-mix(in srgb,var(--player-tint) 82%,white)!important;border-right:2px solid color-mix(in srgb,var(--player-accent) 28%,white)!important}
#scoreTable tbody tr:nth-child(even) td.player-column{background:color-mix(in srgb,var(--player-tint) 68%,white)!important}
#scoreTable .score-current-total-row td.player-column{background:var(--player-tint)!important;border-top:3px solid var(--player-accent)!important}
#scoreTable th.player-column{background:var(--player-tint)!important;border-top:6px solid var(--player-accent)!important}
#scoreTable .score-player-name{color:var(--player-ink)!important;font-weight:800}
#scoreTable .zero-score{background:#fff5dc!important;color:#8a611e!important;border:1px solid #e4c98c!important;padding:2px 7px!important;border-radius:6px!important}
@media(max-width:700px){.score-band-legend{font-size:10px;gap:6px 10px}#scoreTable .cumulative-value{font-size:13px;padding:3px 5px!important}}

/* v4.16.0 global search */
.menu-bar{position:relative;display:flex;align-items:center;gap:8px}.global-search-toggle{width:44px;height:44px;flex:0 0 44px;display:grid;place-items:center;border:1px solid #cfd6de;border-radius:11px;background:#fff;color:#203b50;cursor:pointer}.global-search-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round}.global-search-toggle:focus-visible,.global-search-close:focus-visible,.global-search-result:focus-visible{outline:3px solid #8bbca5;outline-offset:2px}.global-search-panel{position:absolute;z-index:30;right:0;top:calc(100% + 8px);width:min(520px,100%);padding:10px;background:#fff;border:1px solid #cfd8d0;border-radius:14px;box-shadow:0 12px 32px rgba(20,40,30,.16)}.global-search-panel input{padding-right:42px}.global-search-close{position:absolute;right:17px;top:16px;border:0;background:transparent;color:#56665d;font-size:24px;line-height:1;cursor:pointer}.global-search-results{max-height:min(55vh,420px);overflow:auto;margin-top:7px}.global-search-empty{padding:12px 8px;margin:0;color:#68766e;font-size:12px}.global-search-result{display:flex;width:100%;align-items:center;justify-content:space-between;gap:12px;padding:10px 8px;border:0;border-top:1px solid #edf1ee;background:#fff;text-align:left;color:#293b32;cursor:pointer}.global-search-result span{display:grid;gap:2px;min-width:0}.global-search-result small{color:#557a64;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.5px}.global-search-result strong{font-size:13px}.global-search-result em{font-size:11px;color:#758078;font-style:normal;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.global-search-result>b{font-size:22px;color:#71917d}

/* Canonical visible player-column palette correction.
   Use explicit solid fills (not color-mix) so the column identity remains obvious
   across browser engines and is not washed out by earlier white-cell rules. */
#scoreTable th.player-column.player-column-0,#scoreTable td.player-column.player-column-0{--player-tint:#dceaf7;--player-row-alt:#e8f1fa;--player-accent:#416f9c;--player-ink:#244e75}
#scoreTable th.player-column.player-column-1,#scoreTable td.player-column.player-column-1{--player-tint:#dcefe4;--player-row-alt:#e8f4ed;--player-accent:#39795d;--player-ink:#24583f}
#scoreTable th.player-column.player-column-2,#scoreTable td.player-column.player-column-2{--player-tint:#f4e7d2;--player-row-alt:#f8efdf;--player-accent:#a87532;--player-ink:#79501f}
#scoreTable th.player-column.player-column-3,#scoreTable td.player-column.player-column-3{--player-tint:#edf0df;--player-row-alt:#f3f5e9;--player-accent:#7d8744;--player-ink:#5b642e}
#scoreTable th.player-column.player-column-4,#scoreTable td.player-column.player-column-4{--player-tint:#dceef0;--player-row-alt:#e8f4f5;--player-accent:#3d7e88;--player-ink:#285e66}
#scoreTable th.player-column.player-column-5,#scoreTable td.player-column.player-column-5{--player-tint:#f1e0e5;--player-row-alt:#f7eaee;--player-accent:#965d6b;--player-ink:#744451}
#scoreTable thead th.player-column{background:var(--player-tint)!important;border-top:6px solid var(--player-accent)!important;color:var(--player-ink)!important}
#scoreTable tbody td.player-column{background:var(--player-tint)!important;border-left:1px solid rgba(45,65,85,.08)!important;border-right:2px solid var(--player-accent)!important}
#scoreTable tbody tr:nth-child(even) td.player-column{background:var(--player-row-alt)!important}
#scoreTable tbody tr.score-current-total-row td.player-column{background:var(--player-tint)!important;border-top:3px solid var(--player-accent)!important}
#scoreTable tbody tr.score-draft-row td.player-column{background:var(--player-row-alt)!important}
#scoreTable td.player-column.score-leader-cell{box-shadow:inset 0 0 0 2px var(--player-accent)!important}
#scoreTable td.player-column .round-score-value{color:var(--player-ink)!important}

/* RCTC-0015 mobile matrix contract: the wrapper follows the rendered player count.
   2–5 columns fit the viewport without a horizontal scroll affordance; 6–10
   retain the full-width matrix and scroll horizontally. The Round column stays sticky. */
@media(max-width:700px){
 .score-sheet-wrap[data-player-count="2"],.score-sheet-wrap[data-player-count="3"],.score-sheet-wrap[data-player-count="4"],.score-sheet-wrap[data-player-count="5"]{overflow-x:hidden;overscroll-behavior-x:auto}
 .score-sheet-wrap[data-player-count="6"],.score-sheet-wrap[data-player-count="7"],.score-sheet-wrap[data-player-count="8"],.score-sheet-wrap[data-player-count="9"],.score-sheet-wrap[data-player-count="10"]{overflow-x:auto;overscroll-behavior-x:contain}
}
/* Approved responsive matrix: 2–5 players fit; 6–10 may scroll. */
@media(max-width:700px){#scoreTable[data-player-count="2"],#scoreTable[data-player-count="3"],#scoreTable[data-player-count="4"],#scoreTable[data-player-count="5"]{width:100%!important;min-width:0!important;max-width:100%;table-layout:fixed}#scoreTable[data-player-count="2"] th:first-child,#scoreTable[data-player-count="2"] td:first-child,#scoreTable[data-player-count="3"] th:first-child,#scoreTable[data-player-count="3"] td:first-child,#scoreTable[data-player-count="4"] th:first-child,#scoreTable[data-player-count="4"] td:first-child,#scoreTable[data-player-count="5"] th:first-child,#scoreTable[data-player-count="5"] td:first-child{width:52px;min-width:52px!important;max-width:52px!important;padding-left:3px;padding-right:3px}#scoreTable[data-player-count="2"] th:not(:first-child),#scoreTable[data-player-count="2"] td:not(:first-child),#scoreTable[data-player-count="3"] th:not(:first-child),#scoreTable[data-player-count="3"] td:not(:first-child),#scoreTable[data-player-count="4"] th:not(:first-child),#scoreTable[data-player-count="4"] td:not(:first-child),#scoreTable[data-player-count="5"] th:not(:first-child),#scoreTable[data-player-count="5"] td:not(:first-child){width:calc((100% - 52px)/var(--player-count));min-width:0!important;max-width:none;padding:6px 2px;overflow-wrap:anywhere}#scoreTable[data-player-count="2"] .score-player-name,#scoreTable[data-player-count="3"] .score-player-name,#scoreTable[data-player-count="4"] .score-player-name,#scoreTable[data-player-count="5"] .score-player-name{font-size:clamp(8px,2.3vw,11px);overflow-wrap:anywhere}#scoreTable[data-player-count="2"] .draft-score-cell input,#scoreTable[data-player-count="3"] .draft-score-cell input,#scoreTable[data-player-count="4"] .draft-score-cell input,#scoreTable[data-player-count="5"] .draft-score-cell input{min-width:0;width:100%;padding:4px 1px;font-size:clamp(11px,3vw,15px)}}

.brand-logo{width:58px;height:58px;flex:0 0 58px;object-fit:contain;border-radius:0;background:transparent;box-shadow:none;padding:0}
@media(max-width:520px){.brand-logo{width:50px;height:50px;flex-basis:50px}}

/* Player profile management */
.profile-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.profile-archive-heading{font-size:16px;margin:20px 0 10px}.archived-profile{background:#f8faf8}

.profile-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.profile-archive-heading{font-size:16px;margin:20px 0 10px}.archived-profile{background:#f8faf8}

/* NORTHSTAR visual reconciliation: restore the approved mint canvas and green footer. */
:root{--app-canvas:#e5f0e7;--surface:#fff;--surface-soft:#f4faf5}
html,body{background-color:#e5f0e7!important}
body{background-image:linear-gradient(180deg,#e5f0e7 0%,#edf5ee 100%)!important;color:#20332a}
.container,.view{background:transparent!important}
.panel,.history-card,.stat,.empty,.legal-copy{background-color:#fff}
.site-footer{background:#e3f0e7!important;border-top:4px solid #39845f!important;box-shadow:0 -2px 10px rgba(38,94,60,.035)}
.site-footer .footer-links button{color:#285f48}
.brand-logo{display:block;width:58px;height:58px;object-fit:contain;border-radius:0;background:transparent;padding:0;flex:0 0 auto;box-shadow:none}
@media(max-width:600px){.brand-logo{width:50px;height:50px}}
.button.primary,.button.success,#startMatch,#saveRound,#continueCustomFormat{background:#176b4b!important;color:#fff!important;border:1px solid #10563b!important;box-shadow:0 3px 0 #0b432e,0 5px 12px rgba(23,107,75,.16)!important}
.button.secondary{background:#285f91!important;color:#fff!important;border:1px solid #204e78!important;box-shadow:0 2px 0 #183e62!important}
#undoLastRound{background:#fff4df!important;color:#805313!important;border:1px solid #dfbd76!important}
.button.danger,[data-delete],.delete-action{background:#a93636!important;color:#fff!important;border:1px solid #8c2929!important}
#scoreTable .header-reentry,[data-player-re-entry]{background:linear-gradient(180deg,#218457 0%,#176b4b 100%)!important;color:#fff!important;border:2px solid #0f5b3c!important;border-radius:11px!important;min-height:44px;font-weight:800!important}
.topbar{background:#fff!important;color:#202832!important;border-bottom:1px solid #cfe1d4;box-shadow:0 2px 10px rgba(18,59,50,.06)!important}
.brand strong{color:#202832!important}
.brand small{color:#66717d!important}


/* Owner-approved dynamic pool-sensitive scoreboard treatment (18-Nov decisions).
   The selected match elimination limit is the denominator: green <40%, amber
   40–<70%, red 70%–limit, and eliminated only above the limit. */
.score-band-green{--score-bg:#e7f4e9;--score-fg:#27613b}
.score-band-amber{--score-bg:#fff1d6;--score-fg:#805313}
.score-band-red{--score-bg:#faeaea;--score-fg:#9c4141}
.score-band-eliminated{--score-bg:#f4dddd;--score-fg:#8f2424}
#scoreTable .score-player-total.score-band-green,#scoreTable .score-player-total.score-band-amber,#scoreTable .score-player-total.score-band-red,#scoreTable .score-player-total.score-band-eliminated,
#scoreTable .score-value.score-band-green,#scoreTable .score-value.score-band-amber,#scoreTable .score-value.score-band-red,#scoreTable .score-value.score-band-eliminated{background:var(--score-bg)!important;color:var(--score-fg)!important;border-radius:7px;padding:3px 7px}
#scoreTable .score-current-total-row .cumulative-value{display:inline-block;background:#dff1ec!important;color:#176b5b!important;border:2px solid #70b9a8;border-radius:8px;padding:5px 8px;font-weight:850}
#scoreTable .round-label-cell{white-space:nowrap;background:#f0f5f1!important;min-width:76px;width:clamp(76px,10vw,112px);border-right:3px solid #8a9b90!important}
#scoreTable th,#scoreTable td{border-bottom:2px solid #c5d2ca!important}
#scoreTable th.player-column,#scoreTable td.player-column{border-right:3px solid var(--player-accent)!important}
#scoreTable tbody tr:not(.score-current-total-row) td.player-column{background:#fff!important}
#scoreTable tbody tr.score-current-total-row td.player-column{background:#e5f2ef!important;border-top:3px solid #70b9a8!important}
#scoreTable .cell-reentry{display:block;margin:6px auto 0;padding:5px 8px;min-height:36px;font-size:11px;white-space:nowrap}
#scoreTable .score-entry-cell{border-left:1px solid #d2ddd6!important}
#scoreTable .score-final-total{background:#dff1ec!important;color:#176b5b!important;border:2px solid #70b9a8!important}
.score-input-amber{border-color:#dfbd76!important;background:#fff7e8!important;color:#805313!important}
.draft-score-cell input.score-input-amber{background:#fff1d6!important;color:#805313!important}
.score-input-red{border-color:#dfb8b8!important;background:#fdf0f0!important;color:#9c4141!important}
@media(max-width:700px){#scoreTable .round-label-cell{min-width:56px;width:56px;padding-left:3px;padding-right:3px;font-size:11px}#scoreTable .cell-reentry{font-size:9px;padding:4px 3px;min-height:32px}}

#scoreTable .score-final-total{background:#dff1ec!important;color:#176b5b!important;border:2px solid #70b9a8!important}
.score-band-amber{background:#fff1d6!important;color:#805313!important}
.score-input-amber{background:#fff7e8!important;color:#805313!important}
.score-band-eliminated{background:#f4dddd!important;color:#8f2424!important}
.score-band-amber,.score-band-red,.score-band-green{border-radius:7px}
#scoreTable tbody tr:not(.score-current-total-row) td.player-column{background:#fff!important}
#scoreTable .round-label-cell strong{white-space:nowrap}

.score-band-legend .legend-amber{background:#fff1d6}.score-band-legend .legend-teal{background:#dff1ec}

/* Replace the former violet fourth-player tint with an earthy olive identity. */
#scoreTable th.player-column.player-column-3,#scoreTable td.player-column.player-column-3{--player-tint:#edf0df;--player-row-alt:#f3f5e9;--player-accent:#7d8744;--player-ink:#5b642e}

/* RTM-43 owner-approved curved shell, anchored footer and message-style alerts. */
html,body{min-height:100%;}
body{min-height:100vh;display:flex;flex-direction:column;}
.topbar{width:100%;flex:0 0 auto;}
.container{width:100%;flex:1 0 auto;}
.site-footer{position:relative;isolation:isolate;width:100%;max-width:none;margin:auto 0 0;padding:34px max(20px,calc((100% - 1280px)/2)) 24px;background:linear-gradient(160deg,#0d6944 0%,#075532 58%,#06472f 100%)!important;color:#fff!important;border:0!important;border-radius:48% 48% 0 0 / 34px 34px 0 0;box-shadow:0 -10px 28px rgba(18,59,50,.10);}
.site-footer:before{content:"";position:absolute;z-index:-1;left:0;right:0;top:-18px;height:36px;background:linear-gradient(90deg,#c8f1df,#e4f6eb,#b9e9d2);border-radius:50% 50% 0 0 / 100% 100% 0 0;opacity:.95;}
.site-footer .footer-brand strong,.site-footer .footer-brand span{color:#fff!important;}
.site-footer .footer-links button{color:#fff!important;padding:7px 9px;border-radius:18px;}
.site-footer .footer-links button:hover,.site-footer .footer-links button:focus-visible{background:rgba(255,255,255,.16);text-decoration:none;outline:2px solid rgba(255,255,255,.65);outline-offset:1px;}
#toast{z-index:100;position:fixed;left:50%;bottom:max(24px,calc(env(safe-area-inset-bottom) + 18px));width:max-content;max-width:min(560px,calc(100vw - 28px));padding:15px 22px 15px 52px;border-radius:18px 18px 18px 5px;background:#c92535;color:#fff;font-size:14px;font-weight:750;line-height:1.4;box-shadow:0 12px 32px rgba(91,15,25,.28);opacity:0;visibility:hidden;pointer-events:none;transform:translate(-50%,14px);transition:opacity .18s ease,transform .18s ease,visibility .18s;}
#toast:before{content:"!";position:absolute;left:16px;top:50%;transform:translateY(-50%);width:25px;height:25px;border:2px solid rgba(255,255,255,.95);border-radius:50%;display:grid;place-items:center;font-size:17px;font-weight:900;line-height:1;}
#toast:after{content:"";position:absolute;left:22px;bottom:-9px;border-width:10px 10px 0 0;border-style:solid;border-color:#c92535 transparent transparent transparent;}
#toast.show{opacity:1;visibility:visible;pointer-events:auto;transform:translate(-50%,0);}
#toast.toast-success{background:#167347;box-shadow:0 12px 32px rgba(15,75,46,.24)}
#toast.toast-success:after{border-top-color:#167347}
.view.active{border-radius:28px;}
.panel,.history-card,.stat,.empty{border-radius:22px;}
@media(max-width:820px){.site-footer{padding:30px 18px 24px;border-radius:34% 34% 0 0 / 26px 26px 0 0}.footer-links{gap:7px 10px}.site-footer .footer-links button{font-size:11px;padding:7px 8px}}
@media(max-width:520px){.site-footer{padding:28px 14px calc(22px + env(safe-area-inset-bottom));}.footer-brand{justify-content:center;text-align:center}.footer-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));justify-content:stretch;text-align:center;margin-top:12px}.site-footer .footer-links button{width:100%;font-size:11px}#toast{bottom:max(18px,calc(env(safe-area-inset-bottom) + 14px));max-width:calc(100vw - 24px);font-size:13px;padding:13px 16px 13px 46px}}
@media(prefers-reduced-motion:reduce){#toast{transition:none}}

.site-footer .footer-brand{display:flex;align-items:center;gap:12px}.footer-logo{width:72px;height:72px;max-height:72px;object-fit:contain;background:transparent;border-radius:0;padding:0}.site-footer .footer-brand>div{display:grid;gap:2px}
@media(max-width:520px){.footer-logo{width:64px;height:64px;max-height:64px}.site-footer .footer-brand{flex-direction:column;gap:7px}}

/* User-selectable themes: presentation-only tokens; brand logo remains unchanged. */
body{background:var(--bg);color:var(--ink)}.topbar{background:var(--white);color:var(--ink)}.panel,.stat,.history-card,.empty{background:var(--white);color:var(--ink);border-color:var(--line)}.topbar-actions{display:flex;align-items:center;gap:10px}.theme-open{border:1px solid var(--line);background:var(--white);color:var(--green);border-radius:12px;padding:8px 13px;font-weight:750;cursor:pointer}.theme-panel{position:sticky;top:72px;z-index:28;width:min(100% - 32px,520px);margin:10px auto;padding:16px;background:var(--white);color:var(--ink);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);display:grid;gap:11px}.theme-panel-head{display:flex;align-items:center;justify-content:space-between}.theme-panel-head button{border:0;background:transparent;color:var(--ink);font-size:24px}.theme-panel label{display:grid;gap:6px;font-size:13px;font-weight:700}.theme-panel input[type=color]{height:46px;padding:4px}.custom-theme-controls{display:grid;grid-template-columns:1fr 1fr;gap:10px}.custom-theme-controls label:last-of-type,.custom-theme-controls button{grid-column:1/-1}.theme-panel .hint{line-height:1.5}.theme-panel.hidden{display:none!important}body[data-theme="dark-mode"] .tab,body[data-theme="dark-mode"] .mini-btn,body[data-theme="dark-mode"] .theme-open{background:var(--white);color:var(--ink)}body[data-theme="dark-mode"] input,body[data-theme="dark-mode"] select{background:var(--white);color:var(--ink);border-color:var(--line)}@media(max-width:600px){.topbar-actions{gap:6px}.theme-open{padding:7px 9px;font-size:11px}.theme-panel{top:66px}}
body[data-theme="custom"]{background:var(--theme-gradient,linear-gradient(135deg,var(--bg),var(--mint)))}body[data-theme="curved-green"] .panel,body[data-theme="curved-green"] .history-card,body[data-theme="curved-green"] .stat{border-radius:22px}body[data-theme="curved-green"] .topbar{border-radius:0 0 22px 22px}


/* RTM-48 Wavy Green theme: decorative background waves only; app surfaces and data remain unchanged. */
body[data-theme="wavy-green"]{
  background-color:#eaf7f1;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 1000' preserveAspectRatio='none'%3E%3Cpath fill='%23d7f0e4' d='M0 0H1440V180C1190 270 1040 115 820 190S420 300 220 205 0 210 0 210Z'/%3E%3Cpath fill='%23c5e8d6' fill-opacity='.72' d='M0 0H1440V95C1200 185 1030 50 810 120S410 220 210 140 0 140 0 140Z'/%3E%3Cpath fill='%23e1f3e9' fill-opacity='.92' d='M0 1000H1440V830C1190 760 1030 930 810 850S420 760 220 845 0 840 0 840Z'/%3E%3Cpath fill='%23cdebdc' fill-opacity='.55' d='M0 1000H1440V920C1190 850 1030 990 810 925S420 850 220 930 0 930 0 930Z'/%3E%3C/svg%3E");
  background-size:100% 100%;
  background-attachment:fixed;
}
body[data-theme="wavy-green"] .panel,
body[data-theme="wavy-green"] .history-card,
body[data-theme="wavy-green"] .stat{
  border-radius:20px;
}
body[data-theme="wavy-green"] .topbar{
  border-bottom:1px solid rgba(29,102,84,.12);
}


/* RTM-49 Emerald Wave: screenshot-inspired light canvas and deep emerald footer. */
body[data-theme="emerald-wave"]{
  --bg:#effbf7;
  --white:#ffffff;
  --ink:#142b24;
  --muted:#5d766b;
  --green:#075b37;
  --green2:#0c8a53;
  --mint:#d8f4e8;
  --line:#c5e9d8;
  background-color:#effbf7;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 1000' preserveAspectRatio='none'%3E%3Cpath fill='%23d2f4e5' d='M0 0H1440V125C1220 190 1090 80 870 135S480 220 260 155 0 190 0 190Z'/%3E%3Cpath fill='%23b9ecd6' fill-opacity='.8' d='M0 0H1440V72C1210 140 1060 45 850 95S450 170 240 112 0 135 0 135Z'/%3E%3Cpath fill='%23dff7ec' d='M0 1000H1440V865C1210 790 1050 935 830 875S450 790 240 870 0 850 0 850Z'/%3E%3Cpath fill='%23bdebd5' fill-opacity='.75' d='M0 1000H1440V925C1210 860 1050 980 830 930S450 860 240 930 0 920 0 920Z'/%3E%3C/svg%3E");
  background-size:100% 100%;
  background-attachment:fixed;
}
body[data-theme="emerald-wave"] .topbar{
  background:rgba(255,255,255,.94);
  color:#142b24;
  border-bottom:1px solid rgba(12,138,83,.16);
  box-shadow:0 5px 20px rgba(10,91,55,.06);
}
body[data-theme="emerald-wave"] .topbar .brand small{color:#5d766b}
body[data-theme="emerald-wave"] .container{max-width:1280px}
body[data-theme="emerald-wave"] .menu-bar,
body[data-theme="emerald-wave"] .tabs,
body[data-theme="emerald-wave"] .panel,
body[data-theme="emerald-wave"] .history-card,
body[data-theme="emerald-wave"] .stat{
  background:rgba(255,255,255,.94);
  border-color:#ccebdc;
  box-shadow:0 10px 28px rgba(12,91,57,.07);
}
body[data-theme="emerald-wave"] .panel{border-radius:22px}
body[data-theme="emerald-wave"] .button.primary,
body[data-theme="emerald-wave"] .tab.active{
  background:linear-gradient(135deg,#0b9b59,#056337);
  color:#fff;
}
body[data-theme="emerald-wave"] .site-footer{
  background:linear-gradient(155deg,#087444 0%,#056238 55%,#034a2c 100%)!important;
  border-radius:46% 46% 0 0 / 34px 34px 0 0;
  box-shadow:0 -12px 32px rgba(4,78,46,.14);
}
body[data-theme="emerald-wave"] .site-footer:before{
  top:-22px;height:42px;
  background:linear-gradient(90deg,#b9efd7 0%,#e4faf0 48%,#b5e9d0 100%);
  opacity:1;
}
body[data-theme="emerald-wave"] .site-footer .footer-brand strong,
body[data-theme="emerald-wave"] .site-footer .footer-brand span,
body[data-theme="emerald-wave"] .site-footer .footer-links button{color:#fff!important}
@media(max-width:820px){
  body[data-theme="emerald-wave"] .container{max-width:100%}
  body[data-theme="emerald-wave"] .site-footer{
    border-radius:28% 28% 0 0 / 24px 24px 0 0;
    padding-top:28px;
  }
  body[data-theme="emerald-wave"] .site-footer:before{top:-14px;height:28px}
}

/* RTM-49 correction: persistent, discoverable global search field. */
.menu-bar{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;position:relative}
.global-search-panel{position:static;display:block;flex:1 1 420px;width:auto;max-width:620px;min-width:0;padding:0;border:0;border-radius:0;box-shadow:none;background:transparent}
.global-search-panel input{width:100%;min-height:44px;padding:11px 14px;border:1px solid #cfd8d0;border-radius:12px;background:#fff;color:#203b32}
.global-search-results{max-height:0;overflow:auto;margin:0}
.global-search-panel:focus-within .global-search-results:not(:empty){max-height:min(42vh,320px);margin-top:7px;padding:0 8px;background:#fff;border:1px solid #dce6df;border-radius:10px}
@media(max-width:640px){.menu-bar{align-items:stretch;flex-direction:column}.menu-toggle{align-self:flex-start}.global-search-panel{flex:1 1 auto;max-width:none}.global-search-panel input{font-size:16px}}

/* RTM-52 integrated owner-acceptance corrections: navigation, themes, feedback and score matrix. */
@media (min-width:701px){
  .container{grid-template-columns:var(--nav-width) minmax(0,1fr);}
  .menu-bar{grid-column:1 / -1;grid-row:1;min-width:0;align-items:center;justify-content:flex-start;margin-bottom:14px;}
  .menu-toggle{flex:0 0 auto;min-width:168px;white-space:nowrap;}
  .menu-current{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .global-search-panel{flex:1 1 auto;width:auto;max-width:none;min-width:180px;}
  #mainNavigation{grid-column:1;grid-row:2;}
  .container>.view{grid-column:2;grid-row:2;}
}
@media (max-width:700px){
  .container{display:block;width:100%;padding:0 12px;margin:14px auto 30px;}
  .menu-bar{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin-bottom:10px;}
  .menu-toggle{width:100%;min-width:0;align-self:stretch;}
  .global-search-panel{width:100%;max-width:none;min-width:0;flex:1 1 auto;}
  .global-search-panel input{width:100%;font-size:16px;}
  #mainNavigation{position:static;margin-bottom:14px;}
  .container>.view{width:100%;}
}
/* Theme tokens must remain authoritative; remove legacy fixed mint overrides. */
html,body{background-color:var(--bg)!important;}
body{background-image:var(--theme-gradient,linear-gradient(180deg,var(--bg) 0%,var(--mint) 100%))!important;color:var(--ink)!important;}
.topbar{background:var(--white)!important;color:var(--ink)!important;border-color:var(--line)!important;}
.brand strong{color:var(--ink)!important;}
.brand small{color:var(--muted)!important;}
.panel,.history-card,.stat,.empty,.legal-copy{background-color:var(--white)!important;color:var(--ink)!important;border-color:var(--line)!important;}
.theme-panel,.theme-open{background:var(--white)!important;color:var(--ink)!important;border-color:var(--line)!important;}
.site-footer{background:linear-gradient(160deg,var(--green2),var(--green))!important;border:0!important;color:#fff!important;}
.site-footer .footer-links button,.site-footer .footer-brand strong,.site-footer .footer-brand span{color:#fff!important;}
body[data-theme="dark-mode"] .site-footer{background:linear-gradient(160deg,#244b3d,#142a23)!important;}
body[data-theme="pure-minimal"] .site-footer{background:linear-gradient(160deg,#59636b,#343a40)!important;}
body[data-theme="classic-blue"] .site-footer{background:linear-gradient(160deg,#2876b8,#183b62)!important;}
body[data-theme="warm-classic"] .site-footer{background:linear-gradient(160deg,#ad7547,#795438)!important;}
/* Message colours: positive confirmations are green, failures are red, neutral notices are slate. */
#toast.toast-success{background:#167347!important;color:#fff!important;}
#toast.toast-success:before{content:"✓";}
#toast.toast-success:after{border-top-color:#167347!important;}
#toast.toast-error{background:#b42332!important;color:#fff!important;}
#toast.toast-error:before{content:"!";}
#toast.toast-error:after{border-top-color:#b42332!important;}
#toast.toast-info{background:#334b5c!important;color:#fff!important;}
#toast.toast-info:before{content:"i";}
#toast.toast-info:after{border-top-color:#334b5c!important;}
/* Quiet cells; strong row hierarchy. Player identity remains in the header, not heavy vertical rules. */
#scoreTable{width:100%;min-width:0;table-layout:fixed;}
#scoreTable th,#scoreTable td{border-bottom:1px solid #d9e2dc!important;border-right:0!important;}
#scoreTable th.player-column,#scoreTable td.player-column{border-right:1px solid #e1e8e3!important;}
#scoreTable thead th.player-column{border-top:4px solid var(--player-accent)!important;background:var(--player-tint)!important;}
#scoreTable tbody tr:not(.score-current-total-row) td.player-column,
#scoreTable tbody tr.score-draft-row td.player-column{background:#fff!important;}
#scoreTable tbody tr>td:first-child{border-right:2px solid #aebdb3!important;}
#scoreTable tbody tr{border-top:1px solid #d4ded7!important;border-bottom:1px solid #d4ded7!important;}
#scoreTable .round-label-cell{font-weight:850!important;color:#263c33!important;border-top:1px solid #c4d2c8!important;border-bottom:1px solid #c4d2c8!important;}
#scoreTable .round-label-cell strong{font-weight:900!important;}
#scoreTable .score-current-total-row td{font-weight:900!important;border-top:3px solid #328b70!important;border-bottom:3px solid #328b70!important;background:#e7f3ee!important;}
#scoreTable .score-current-total-row td strong,
#scoreTable .score-current-total-row .cumulative-value,
#scoreTable .score-current-total-row .score-player-status{font-weight:900!important;}
#scoreTable .score-draft-row td{border-top:2px solid #93aa9b!important;}
#scoreTable .score-inactive-history{background:#edf0ed!important;color:#89928c!important;opacity:.72;pointer-events:none;}
#scoreTable .score-inactive-history .round-score-value{color:#929b95!important;background:#e7ebe8!important;border-radius:7px;padding:4px 7px;}
#scoreTable .draft-inactive{background:#ecefec!important;color:#7e8982!important;}
#scoreTable .cell-reentry{white-space:normal;max-width:100%;line-height:1.2;}
@media(max-width:700px){
  #scoreTable{width:100%!important;min-width:0!important;table-layout:fixed;}
  #scoreTable th,#scoreTable td{min-width:0!important;max-width:none!important;padding:7px 3px!important;overflow-wrap:anywhere;}
  #scoreTable th:first-child,#scoreTable td:first-child{width:clamp(54px,17%,76px)!important;min-width:clamp(54px,17%,76px)!important;max-width:clamp(54px,17%,76px)!important;padding-left:4px!important;padding-right:4px!important;}
  #scoreTable th:not(:first-child),#scoreTable td:not(:first-child){width:calc((100% - clamp(54px,17%,76px))/var(--player-count))!important;}
  #scoreTable .score-player-name{font-size:clamp(9px,2.7vw,12px)!important;}
  #scoreTable .score-player-total{font-size:clamp(12px,3.5vw,16px)!important;}
  #scoreTable .round-score-value{font-size:clamp(12px,3.4vw,15px)!important;}
  #scoreTable .cell-reentry{font-size:9px!important;padding:4px 3px!important;min-height:30px!important;}
}

/* RTM-53: authoritative responsive shell. Keep navigation/search in one full-width row. */
.container{display:block!important;width:min(100% - 40px,var(--content-max))!important;max-width:var(--content-max)!important;margin:20px auto 36px!important;padding:0!important}
.menu-bar{display:grid!important;grid-template-columns:auto minmax(240px,1fr)!important;align-items:center!important;gap:16px!important;width:100%!important;margin:0 0 12px!important}
.menu-toggle{flex:0 0 auto!important;min-width:168px!important;white-space:nowrap!important}
.menu-current{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.global-search-panel{display:block!important;position:relative!important;flex:1 1 auto!important;width:100%!important;max-width:none!important;min-width:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
.global-search-panel .sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.global-search-panel input{display:block!important;width:100%!important;min-width:0!important;min-height:44px!important;font-size:15px!important}
#mainNavigation{position:static!important;display:flex;flex-wrap:wrap;gap:6px!important;width:100%!important;margin:0 0 18px!important;padding:7px!important;border:1px solid var(--line)!important;border-radius:14px!important;background:var(--white)!important}
#mainNavigation.collapsed{display:none!important}
#mainNavigation .tab{width:auto!important;flex:0 0 auto!important;white-space:nowrap!important}
.container>.view{display:none;min-width:0!important;width:100%!important}
.container>.view.active{display:block!important}
.history-actions .mini-btn,.history-actions button,.history-card .mini-btn{background:var(--green)!important;color:#fff!important;border:1px solid var(--green)!important;border-radius:10px!important;padding:10px 14px!important;font-weight:800!important;box-shadow:0 2px 0 color-mix(in srgb,var(--green) 72%,#000)!important}
.history-actions button[data-share],.history-card button[data-share]{background:var(--green2)!important;border-color:var(--green2)!important}
.history-actions button:hover,.history-card .mini-btn:hover{filter:brightness(1.08)}
.history-actions button:active,.history-card .mini-btn:active{transform:translateY(1px)}
.history-actions button:focus-visible,.history-card .mini-btn:focus-visible{outline:3px solid #e3ad35!important;outline-offset:2px!important}
#undoLastRound,#redoLastRound{background:var(--white)!important;color:var(--green)!important;border:1px solid var(--line)!important;border-radius:9px!important;padding:8px 12px!important;font-weight:800!important}
#redoLastRound:not(:disabled){background:var(--green)!important;color:#fff!important;border-color:var(--green)!important}
#undoLastRound:disabled,#redoLastRound:disabled{opacity:.42!important;cursor:not-allowed!important}
#scoreTable{width:100%!important;min-width:0!important;table-layout:fixed!important}
#scoreTable th,#scoreTable td{border-right:0!important;border-bottom:1px solid var(--line)!important}
#scoreTable tbody tr{border-top:1px solid var(--line)!important;border-bottom:1px solid var(--line)!important}
#scoreTable tbody tr>td:first-child{border-right:2px solid var(--line)!important}
#scoreTable .score-current-total-row td{font-weight:900!important;border-top:3px solid var(--green2)!important;border-bottom:3px solid var(--green2)!important}
#scoreTable .score-draft-row td,#scoreTable .round-label-cell{font-weight:850!important}
@media(max-width:760px){.container{width:calc(100% - 24px)!important;margin:14px auto 28px!important}.menu-bar{grid-template-columns:minmax(0,1fr)!important;gap:8px!important}.menu-toggle{width:100%!important;justify-content:flex-start!important}.global-search-panel{width:100%!important}#mainNavigation .tab{flex:1 1 auto!important;text-align:center!important}.history-actions{display:flex;flex-wrap:wrap;gap:8px}.history-actions button{flex:1 1 auto!important}}


/* RTM-66 — RTM-62 dashboard and supporting-page alignment reconstruction.
   Reconstructed from the saved RTM-62/63 acceptance description; not recovered source bytes. */
.dashboard-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:10px;
  margin:16px 0 22px;
}
.dashboard-card{
  display:grid;
  grid-template-columns:38px minmax(0,1fr);
  grid-template-rows:auto auto;
  align-items:center;
  column-gap:12px;
  row-gap:2px;
  width:100%;
  min-width:0;
  min-height:72px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--white);
  color:var(--ink);
  text-align:left;
  box-shadow:0 2px 8px rgba(28,65,48,.035);
  font:inherit;
  cursor:pointer;
  transition:border-color .16s ease,transform .16s ease,box-shadow .16s ease;
}
.dashboard-card .dashboard-icon{
  grid-column:1;
  grid-row:1 / 3;
  width:36px;
  height:36px;
  border-radius:11px;
  background:color-mix(in srgb,var(--green) 9%,var(--white));
  color:var(--green);
  font-size:19px;
}
.dashboard-card strong{grid-column:2;align-self:end;font-size:14px;line-height:1.3;color:var(--ink)}
.dashboard-card>span:last-child{grid-column:2;align-self:start;font-size:12px;line-height:1.35;color:var(--muted)}
.dashboard-card:hover{border-color:var(--green2);transform:translateY(-1px);box-shadow:0 5px 14px rgba(28,65,48,.08)}
.dashboard-card:focus-visible{outline:3px solid color-mix(in srgb,var(--green2) 55%,white);outline-offset:2px}
@media(min-width:761px){
  .dashboard-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
  .dashboard-card{display:flex;flex-direction:column;align-items:flex-start;gap:7px;min-height:124px;padding:16px}
  .dashboard-card .dashboard-icon{width:34px;height:34px;flex:0 0 auto}
  .dashboard-card strong{font-size:14px}
  .dashboard-card>span:last-child{margin-top:auto}
}
@media(min-width:1100px){
  .dashboard-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
  .dashboard-card{min-height:132px;padding:17px 15px}
}

/* Keep supporting pages compact without changing active scoreboard geometry. */
.view:not(#view-active)>.section-heading{margin-bottom:14px}
#view-dashboard>.section-heading{margin-bottom:12px}
#view-new>.section-heading{margin-bottom:13px}
#view-new .format-cards{gap:14px;margin:18px 0 16px}
#view-new .step-intro{margin-bottom:18px}
#view-history .history-search-panel{padding:12px 14px;margin-bottom:12px}
#view-history #historyList{gap:10px}
#view-players>.panel{padding:15px 17px;margin-bottom:12px}
#view-players #playersContent{gap:10px}
#view-stats #statsContent>.stat-grid{gap:10px;margin-bottom:13px}
#view-stats #statsContent>.panel{padding:17px 18px;margin-bottom:12px}
#view-help .help-search-panel{padding:12px 14px;margin-bottom:10px}
#view-help .faq-list{gap:7px}
#view-help .faq-item summary{padding-top:13px;padding-bottom:13px}
#view-backup>.panel{padding:17px 18px;margin-bottom:12px}
.legal-view>.section-heading{margin-bottom:12px}
.legal-view .legal-copy{padding:19px 21px;line-height:1.65}
.legal-view .legal-copy h2{margin-top:16px;margin-bottom:6px}
.legal-view .legal-copy p{margin-bottom:11px}
@media(max-width:760px){
  .dashboard-grid{gap:9px;margin:14px 0 18px}
  .dashboard-card{min-height:68px;padding:11px 12px}
  #view-new .format-cards{margin:16px 0 14px}
  .legal-view .legal-copy{padding:16px 15px}
}


/* RTM-69 browser-smoke correction: the inherited absolute-search top offset
   must be cleared after the RTM-53 responsive shell makes search part of normal flow. */
.global-search-panel{
  top:auto!important;
  right:auto!important;
  bottom:auto!important;
  left:auto!important;
}
