/* Scope isolation to the explicit Scotch roster route; no other format styling. */
html body[data-pb-scotch-view] #eventadmin > :not(#workspacePanel):not(#pb363FormatNav){display:none!important}
html body[data-pb-scotch-view] #eventadmin #workspacePanel{display:block!important}
html body[data-pb-scotch-view] #workspacePanel > :not(#scotchWorkspace754){display:none!important}
html body[data-pb-scotch-view] #workspacePanel > #scotchWorkspace754{display:block!important}
#scotchWorkspace754[hidden]{display:none!important}
#scotchWorkspace754 .actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
#scotchWorkspace754 button{min-height:44px}
#scotchWorkspace754 table{width:100%;text-align:left}
#scotchWorkspace754 td,#scotchWorkspace754 th{padding:8px;vertical-align:top}
#scotchWorkspace754 .tablewrap{overflow-x:auto}
#scotchWorkspace754 dl{display:grid;grid-template-columns:minmax(150px,1fr) 1fr;gap:8px;max-width:600px}
#scotchWorkspace754 dd{margin:0;font-weight:bold}
#scotchWorkspace754 [role=status]:empty{display:none}
#scotchWorkspace754 button:disabled{opacity:.45;cursor:not-allowed;filter:saturate(.25)}
/* Format fields obey hidden flags even when .field gives them a flex layout. */
#scotchWorkspace754 [hidden]{display:none!important}
#scotchFormatSettings755,#scotchFormatFields755{min-width:0;grid-column:1/-1}

#scotchWorkspace754 .pbde-panel[hidden],#scotchWorkspace754 .tablewrap[hidden]{display:none!important}

@media(max-width:760px){body[data-pb-tournament-type="scotch"] #pb363FormatNav [data-pb363="promo"]{display:block!important}}

body.pb747-back-active[data-pb-scotch-view] #scotchWorkspace754 [data-scotch-action="back"]{display:none!important}

/* Compact read-only recorded results; names and scores stay paired on small screens. */
#scotchWorkspace754 .scotch-history-list{list-style:none;display:grid;gap:12px;margin:16px 0;padding:0;max-width:960px}
#scotchWorkspace754 .scotch-history-list article{border:1px solid #53606a;border-radius:10px;padding:14px;min-width:0}
#scotchWorkspace754 .scotch-history-list h3{font-size:1rem;margin:0 0 12px;overflow-wrap:anywhere}
#scotchWorkspace754 .scotch-history-list h3 small{font-weight:normal}
#scotchWorkspace754 .scotch-history-teams{display:grid;gap:8px}
#scotchWorkspace754 .scotch-history-teams>div{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:16px}
#scotchWorkspace754 .scotch-history-teams span{overflow-wrap:anywhere}
#scotchWorkspace754 .scotch-history-score{font-size:1.25rem;font-variant-numeric:tabular-nums}
#scotchWorkspace754 .scotch-history-winner{display:inline-block;margin-left:6px;font-size:.8rem;color:#85e1a0}
#scotchWorkspace754 .scotch-history-meta{margin:12px 0 0;font-size:.85rem;color:#b6c3cc;overflow-wrap:anywhere}

/* .784: saved Scotch results, compact rows; no scoring controls or shared-table overrides. */
#scotchWorkspace754 .scotch-history-784{min-width:0;max-width:100%}
#scotchWorkspace754 .scotch-history-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
#scotchWorkspace754 .scotch-history-toolbar h2{margin:0;font-size:1.2rem}
#scotchWorkspace754 .scotch-history-toolbar p{margin:4px 0;color:#b8c9dc;font-size:.85rem}
#scotchWorkspace754 .scotch-history-toolbar button{min-height:44px}
#scotchWorkspace754 .scotch-history-notice{font-size:.8rem;margin:8px 0}
#scotchWorkspace754 .scotch-history-list{gap:0;max-width:none;margin:10px 0;border:1px solid #30485f;border-radius:10px;overflow:visible}
#scotchWorkspace754 .scotch-history-list li{min-width:0;background:#102132}
#scotchWorkspace754 .scotch-history-list li:nth-child(even){background:#0c1a29}
#scotchWorkspace754 .scotch-history-list li:first-child{border-radius:10px 10px 0 0}
#scotchWorkspace754 .scotch-history-list li:last-child{border-radius:0 0 10px 10px}
#scotchWorkspace754 .scotch-history-list li+li{border-top:1px solid #294055}
#scotchWorkspace754 .scotch-history-list article{display:grid;grid-template-columns:minmax(130px,.8fr) minmax(0,2fr) minmax(145px,.8fr);align-items:center;gap:12px;border:0;border-radius:0;padding:10px 12px;min-width:0}
#scotchWorkspace754 .scotch-history-list h3{font-size:.8rem;line-height:1.4;margin:0;color:#bbd4eb}
#scotchWorkspace754 .scotch-history-teams{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;min-width:0}
#scotchWorkspace754 .scotch-history-teams>div{align-items:center;gap:8px;min-width:0;font-size:.9rem;line-height:1.3}
#scotchWorkspace754 .scotch-history-teams>div:nth-child(2){grid-template-columns:auto minmax(0,1fr)}
#scotchWorkspace754 .scotch-history-teams>div:nth-child(2) .scotch-history-score{grid-column:1;grid-row:1}
#scotchWorkspace754 .scotch-history-teams>div:nth-child(2)>span{grid-column:2;grid-row:1}
#scotchWorkspace754 .scotch-history-score{display:inline-grid;place-items:center;min-width:32px;min-height:32px;padding:2px 4px;border-radius:5px;background:#185b8f;color:#fff;font-size:1rem;font-weight:800;box-sizing:border-box}
#scotchWorkspace754 .scotch-history-winner{margin-left:4px;font-size:.7rem;color:#8de2ac}
#scotchWorkspace754 .scotch-history-meta{font-size:.75rem;line-height:1.45;margin:0;color:#b8c9dc}
@media(max-width:900px){
 #scotchWorkspace754 .scotch-history-list article{grid-template-columns:minmax(0,1fr);gap:5px;padding:9px 10px}
 #scotchWorkspace754 .scotch-history-teams{grid-template-columns:minmax(0,1fr);gap:3px}
 #scotchWorkspace754 .scotch-history-teams>div:nth-child(2){grid-template-columns:minmax(0,1fr) auto}
 #scotchWorkspace754 .scotch-history-teams>div:nth-child(2) .scotch-history-score{grid-column:2;grid-row:1}
 #scotchWorkspace754 .scotch-history-teams>div:nth-child(2)>span{grid-column:1;grid-row:1}
 #scotchWorkspace754 .scotch-history-score{min-width:28px;min-height:26px;font-size:.95rem}
 #scotchWorkspace754 .scotch-history-list h3{font-size:.75rem}
 #scotchWorkspace754 .scotch-history-meta{font-size:.72rem}
}
/* Prize results are separate from the existing schedule editor; original payment inputs remain. */
#scotchWorkspace754 .scotch-payout-results-784{min-width:0}
#scotchWorkspace754 .scotch-payout-results-784>h3{display:none}
#scotchWorkspace754 .scotch-payout-results-784>p{margin:6px 0;font-size:.85rem}
#scotchWorkspace754 .scotch-payout-results-784 .tablewrap{margin-top:10px;max-width:100%}
#scotchWorkspace754 .scotch-payout-results-784 table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:.85rem}
#scotchWorkspace754 .scotch-payout-results-784 th,#scotchWorkspace754 .scotch-payout-results-784 td{padding:5px 9px;border-bottom:1px solid #294055;overflow-wrap:anywhere}
#scotchWorkspace754 .scotch-payout-results-784 th{background:#163047;color:#c9def1;text-align:left}
#scotchWorkspace754 .scotch-payout-results-784 tr:nth-child(even){background:#102132}
#scotchWorkspace754 .scotch-payout-results-784 td label{display:flex;align-items:center;gap:5px;min-height:34px}
#scotchWorkspace754 .scotch-payout-results-784 th:nth-child(1){width:15%}
#scotchWorkspace754 .scotch-payout-results-784 th:nth-child(2){width:39%}
#scotchWorkspace754 .scotch-payout-results-784 th:nth-child(3){width:20%}
#scotchWorkspace754 .scotch-payout-results-784 th:nth-child(4){width:26%}
@media(max-width:900px){
 #scotchWorkspace754 .scotch-payout-results-784 th,#scotchWorkspace754 .scotch-payout-results-784 td{padding:4px;font-size:.78rem}
 #scotchWorkspace754 .scotch-payout-results-784 td label{min-height:44px}
}
/* Roster opens on saved teams; registration remains available in its own route/disclosure. */
#scotchWorkspace754 .scotch-roster-784>h2{margin:0;font-size:1.2rem}
#scotchWorkspace754 .scotch-roster-784>p{margin:5px 0;font-size:.85rem;color:#b8c9dc}
#scotchWorkspace754 .scotch-roster-entry-784{margin:8px 0;border:1px solid #30485f;border-radius:8px;background:#102132}
#scotchWorkspace754 .scotch-roster-entry-784>summary{padding:10px 12px;min-height:44px;box-sizing:border-box;cursor:pointer;font-weight:700}
#scotchWorkspace754 .scotch-roster-entry-784[open]{padding:0 12px 12px}
#scotchWorkspace754 .scotch-roster-784>.tablewrap table{width:100%;font-size:.85rem}
#scotchWorkspace754 .scotch-roster-784>.tablewrap th,#scotchWorkspace754 .scotch-roster-784>.tablewrap td{padding:5px 8px;border-bottom:1px solid #294055}
#scotchWorkspace754 .scotch-roster-784>.tablewrap button{min-height:32px;padding:5px 9px;font-size:.8rem}
#scotchWorkspace754 .scotch-roster-784>.tablewrap tr:nth-child(even){background:#102132}
@media(max-width:900px){
 #scotchWorkspace754 .scotch-roster-784>.tablewrap button{min-height:44px}
}
/* .786: denser desktop match ledger; phone two-line layout and full labels retained. */
@media screen and (min-width:901px){
 #scotchWorkspace754 .scotch-history-list article{padding:4px 10px;gap:10px}
 #scotchWorkspace754 .scotch-history-score{min-width:26px;min-height:25px;padding:1px 4px;font-size:.9rem}
 #scotchWorkspace754 .scotch-history-teams>div{font-size:.85rem;line-height:1.25}
 #scotchWorkspace754 .scotch-history-list h3{font-size:.76rem;line-height:1.3}
 #scotchWorkspace754 .scotch-history-meta{font-size:.72rem;line-height:1.3}
}

/* .903: event-detail labels stack above consistent full-width controls. */
#scotchWorkspace754 .scotch-event-details-903{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 20px;margin:16px 0 20px;align-items:start}
#scotchWorkspace754 .scotch-event-details-903>.field{display:flex;flex-direction:column;gap:7px;min-width:0;margin:0;line-height:1.35}
#scotchWorkspace754 .scotch-event-details-903 input,#scotchWorkspace754 .scotch-event-details-903 select{display:block;box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:44px;padding:10px 12px;border:1px solid #627b90;border-radius:8px;background:#0c1721;color:#fff;font:inherit;color-scheme:dark}
#scotchWorkspace754 .scotch-event-details-903 input:focus-visible,#scotchWorkspace754 .scotch-event-details-903 select:focus-visible{outline:2px solid #7bc5ff;outline-offset:2px}
#scotchWorkspace754 .scotch-event-details-903 :disabled{opacity:.6;cursor:not-allowed}
[data-scotch-venue-prefix] [data-scotch-venue-status]:empty{display:none}
@media(max-width:1000px){#scotchWorkspace754 .scotch-event-details-903{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){#scotchWorkspace754 .scotch-event-details-903{grid-template-columns:minmax(0,1fr);gap:14px}}
