/* CHIP-only responsive controls; leave all other tournament formats unchanged. */
.pb-scotch-chip-890{min-width:0;max-width:100%;color:#e9f1f8}
.pb-scotch-chip-890 .form{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:12px;min-width:0}
.pb-scotch-chip-890 .field.wide{grid-column:1/-1}
.pb-scotch-chip-890 label{display:flex;flex-direction:column;gap:6px;min-width:0;overflow-wrap:anywhere}
.pb-scotch-chip-890 fieldset{min-width:0;max-width:100%;padding:12px;border:1px solid #61768b;border-radius:10px}
.pb-scotch-chip-890 legend{padding:0 5px;overflow-wrap:anywhere;max-width:100%}
.pb-scotch-chip-890 input:not([type=checkbox]):not([type=radio]),
.pb-scotch-chip-890 select{box-sizing:border-box;width:100%!important;min-width:0!important;max-width:100%;min-height:44px!important;padding:10px 12px!important;border:1px solid #7892ab!important;border-radius:8px!important;background:#112538!important;color:#f0f6fc!important;font:inherit;font-size:16px!important;line-height:1.4}
.pb-scotch-chip-890 input:focus,.pb-scotch-chip-890 select:focus{outline:2px solid #8fc8ff;outline-offset:2px}
.pb-scotch-chip-890 input:disabled,.pb-scotch-chip-890 select:disabled{opacity:.65}
.pb-scotch-chip-890 .actions label{flex-direction:row;align-items:center;min-height:44px;gap:8px}
.pb-scotch-chip-890 button{min-height:44px}
.pb-scotch-chip-890 details{margin:14px 0;border:1px solid #526b83;border-radius:10px;padding:0 12px 12px}
.pb-scotch-chip-890 summary{min-height:44px;box-sizing:border-box;padding:12px 0;cursor:pointer;line-height:1.4;overflow-wrap:anywhere}
.pb-scotch-chip-890 .tablewrap{max-width:100%;overflow-x:auto}
.pb-scotch-chip-890 [data-chip-config-row] input{padding:8px 5px!important;min-width:0!important}
.pb-scotch-chip-890 fieldset table{table-layout:fixed;width:100%;min-width:0}
.pb-scotch-chip-890 fieldset th,.pb-scotch-chip-890 fieldset td{width:33.333%;padding:5px!important;white-space:normal;overflow-wrap:anywhere}
.pb-scotch-chip-890 [hidden]{display:none!important}
@media(max-width:600px){.pb-scotch-chip-890 .form{grid-template-columns:minmax(0,1fr)}.pb-scotch-chip-890 fieldset{padding:8px}.pb-scotch-chip-890 fieldset th,.pb-scotch-chip-890 fieldset td{padding:3px!important}.pb-scotch-chip-890 h2,.pb-scotch-chip-890 h3{overflow-wrap:anywhere}}

/* Seven roster columns stay legible inside their bounded horizontal scroller. */
.pb-scotch-chip-890 .chip-roster-table{min-width:900px;width:100%;table-layout:auto}
.pb-scotch-chip-890 .chip-roster-table th,.pb-scotch-chip-890 .chip-roster-table td{min-width:90px;padding:10px;vertical-align:top}
.pb-scotch-chip-890 .chip-roster-table th:first-child,.pb-scotch-chip-890 .chip-roster-table td:first-child{min-width:150px}
.pb-scotch-chip-890 .chip-roster-table th:nth-child(2),.pb-scotch-chip-890 .chip-roster-table td:nth-child(2){min-width:190px}
.pb-scotch-chip-890 .chip-roster-table th label{min-width:100px;overflow-wrap:normal}
/* Keep table numbers readable and the full label tappable on small screens. */
.pb-scotch-chip-890 [data-chip-table-container] .actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:8px}
.pb-scotch-chip-890 [data-chip-table-container] label{white-space:nowrap;overflow-wrap:normal;min-height:44px}
.pb-scotch-chip-890 [data-chip-table-container] input[type=checkbox]{width:20px;min-width:20px;height:20px;flex:0 0 20px;margin:0}
/* Creation venue sits beside the end-time field, not inside the lower format setup. */
#eventForm .scotch-create-venue-top{grid-column:span 2;min-width:0;max-width:100%}
#eventForm .scotch-create-venue-top fieldset{margin:0}
#eventForm .scotch-create-venue-top p{margin:8px 0;font-size:14px}
@media(max-width:760px),(pointer:coarse) and (max-height:600px){#eventForm .scotch-create-venue-top{grid-column:1/-1}}
/* Saved-player search is bounded and keyboard accessible; roster IDs never come from typed names. */
.pb-scotch-chip-890 .chip-player-picker{min-width:0;overflow:hidden}
.pb-scotch-chip-890 .chip-player-picker select[size]{height:240px;max-width:100%;font-size:16px!important}
.pb-scotch-chip-890 .chip-player-picker option{padding:10px 8px;min-height:44px;line-height:24px}
.pb-scotch-chip-890 .chip-search-selection{overflow-wrap:anywhere;line-height:1.5}
.pb-scotch-chip-890 .chip-player-picker .actions{display:flex;flex-wrap:wrap;gap:8px}
.pb-scotch-chip-890 .chip-player-picker .actions button{white-space:normal;max-width:100%}

/* Compact name-first team entry: selected players replace their search results. */
.pb-scotch-chip-890 .chip-player-results{display:grid;gap:6px;max-height:260px;overflow:auto;margin-top:8px}
.pb-scotch-chip-890 .chip-player-result{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:3px;width:100%;min-height:52px;white-space:normal;padding:10px 12px;overflow-wrap:anywhere}
.pb-scotch-chip-890 .chip-player-result span{font-size:14px;opacity:.85}
.pb-scotch-chip-890 .chip-selected-player{display:grid;gap:6px;padding:10px 0;overflow-wrap:anywhere}
.pb-scotch-chip-890 .chip-selected-player>strong{font-size:18px}
.pb-scotch-chip-890 .chip-selected-player>span{color:#a7e8bb}
.pb-scotch-chip-890 .chip-save-team{font-size:18px;min-width:160px;min-height:48px}
.pb-scotch-chip-890 .chip-entry-options{margin:8px 0}
/* Manual CHIP opening: exact table positions and ordered queue. */
.pb-scotch-chip-890 .chip-manual-layout{display:grid;grid-template-columns:minmax(190px,260px) minmax(0,1fr);gap:16px;align-items:start}
.pb-scotch-chip-890 .chip-manual-layout aside{position:sticky;top:10px;min-width:0}
.pb-scotch-chip-890 .chip-manual-pool{display:grid;gap:8px;max-height:520px;overflow:auto;padding:6px;border:1px dashed #7892ab;border-radius:8px}
.pb-scotch-chip-890 .chip-manual-tables{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;min-width:0}
.pb-scotch-chip-890 .chip-manual-slot{display:grid;gap:6px;min-height:110px;padding:8px;margin:6px 0;border:1px dashed #7892ab;border-radius:8px}
.pb-scotch-chip-890 .chip-manual-team{width:100%;min-height:44px;white-space:normal;overflow-wrap:anywhere;cursor:grab;padding:10px;text-align:left}
.pb-scotch-chip-890 .chip-manual-team.selected{outline:3px solid #7ceaff;background:#18485a}
.pb-scotch-chip-890 .chip-manual-place{min-height:44px;white-space:normal;width:100%;font-size:14px}
.pb-scotch-chip-890 .chip-manual-queue{list-style:none;padding:0;display:grid;gap:8px}
.pb-scotch-chip-890 .chip-manual-queue li,.pb-scotch-chip-890 .chip-manual-queue-end{border:1px dashed #7892ab;border-radius:8px;padding:10px;display:grid;gap:6px;min-width:0}
.pb-scotch-chip-890 .chip-manual-selection{position:sticky;top:0;z-index:1;background:#112538;padding:10px;border-radius:8px}
@media(max-width:760px){.pb-scotch-chip-890 .chip-manual-layout{grid-template-columns:minmax(0,1fr)}.pb-scotch-chip-890 .chip-manual-layout aside{position:static}.pb-scotch-chip-890 .chip-manual-pool{max-height:230px}.pb-scotch-chip-890 .chip-manual-tables{grid-template-columns:minmax(0,1fr)}}
/* Match the production DE .834 manual-draw cards: one selectable/drop spot per team. */
.pb-scotch-chip-890 .chip-manual-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.pb-scotch-chip-890 .chip-manual-layout{gap:20px}
.pb-scotch-chip-890 .chip-manual-layout aside.chip-manual-pool{display:block;max-height:70vh;overflow:auto;border:1px solid #8886;border-radius:8px;padding:12px}
.pb-scotch-chip-890 .chip-manual-layout h3{margin-top:0}
.pb-scotch-chip-890 .chip-manual-tables{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.pb-scotch-chip-890 .chip-manual-match{padding:12px;border:1px solid #9b9b9b66;border-radius:8px;min-width:0}
.pb-scotch-chip-890 .chip-manual-match label{display:grid;gap:5px;margin:8px 0}
.pb-scotch-chip-890 .chip-manual-team,.pb-scotch-chip-890 .chip-manual-slot{display:block;width:100%;box-sizing:border-box;text-align:left;min-height:48px;padding:10px;margin:8px 0;border:1px solid #8889;border-radius:6px;font:inherit;cursor:grab;overflow-wrap:anywhere;white-space:normal}
.pb-scotch-chip-890 .chip-manual-slot small,.pb-scotch-chip-890 .chip-manual-slot span{display:block}
.pb-scotch-chip-890 .chip-manual-slot small{opacity:.75;margin-bottom:4px}
.pb-scotch-chip-890 .chip-manual-team[aria-pressed=true],.pb-scotch-chip-890 .chip-manual-slot[aria-pressed=true]{outline:3px solid #2c9bda;background:transparent}
.pb-scotch-chip-890 .chip-manual-team:focus-visible,.pb-scotch-chip-890 .chip-manual-slot:focus-visible{outline:3px solid #e5a82c}
.pb-scotch-chip-890 .chip-manual-selection{position:static;background:transparent;padding:0;min-height:24px}
.pb-scotch-chip-890 .chip-manual-queue li{border:0;padding:0;gap:0}
@media(max-width:600px){.pb-scotch-chip-890 .chip-manual-layout{grid-template-columns:minmax(120px,36%) minmax(0,1fr);gap:8px}.pb-scotch-chip-890 .chip-manual-layout aside.chip-manual-pool{position:sticky;top:10px;padding:6px}.pb-scotch-chip-890 .chip-manual-tables{grid-template-columns:minmax(0,1fr)}.pb-scotch-chip-890 .chip-manual-match{padding:8px}.pb-scotch-chip-890 .chip-manual-team,.pb-scotch-chip-890 .chip-manual-slot{padding:8px;font-size:16px}}
/* Existing CHIP .434/.484/.486 pool-table presentation, scoped to paired-team matches. */
.pb-scotch-chip-890 .chip-team-live-map{display:grid;grid-template-columns:repeat(var(--pb-live-columns,3),minmax(0,1fr));gap:14px;align-items:stretch}
.pb-scotch-chip-890 .chip-team-live-map .pb434-pool{position:relative;box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:180px;padding:12px 9px;border:5px solid #245d7a;border-radius:8px;background:#4399d7;color:#fff;text-align:center;box-shadow:inset 0 0 0 2px #0b202b;overflow-wrap:anywhere;display:flex;flex-direction:column;justify-content:center}
.pb-scotch-chip-890 .chip-team-live-map .pb434-pool::before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 0 0,#020506 0 5px,transparent 6px),radial-gradient(circle at 50% 0,#020506 0 5px,transparent 6px),radial-gradient(circle at 100% 0,#020506 0 5px,transparent 6px),radial-gradient(circle at 0 100%,#020506 0 5px,transparent 6px),radial-gradient(circle at 50% 100%,#020506 0 5px,transparent 6px),radial-gradient(circle at 100% 100%,#020506 0 5px,transparent 6px)}
.pb-scotch-chip-890 .chip-team-live-map .pb434-pool>strong{display:block;font-size:16px;line-height:1.3}
.pb-scotch-chip-890 .chip-team-live-map .pb434-pool small{display:block;margin:2px 0;font-size:12px;line-height:1.3}
.pb-scotch-chip-890 .chip-team-live-map .pb436-player{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px 0;margin:2px 0;border-bottom:1px solid #ffffff40;text-align:left}
.pb-scotch-chip-890 .chip-team-live-map .pb436-player>b{display:block;white-space:normal;min-width:0;font-size:14px;line-height:1.3;overflow-wrap:anywhere}
.pb-scotch-chip-890 .chip-team-live-map .pb436-player>input{flex:0 0 58px;width:58px!important;min-width:58px!important;max-width:58px;min-height:44px!important;padding:4px!important;text-align:center;font-size:18px!important}
.pb-scotch-chip-890 .chip-team-live-map .chip-team-score{font-size:22px;font-weight:700;min-width:44px;text-align:center}
.pb-scotch-chip-890 .chip-team-live-map .chip-team-race{margin-top:7px}
.pb-scotch-chip-890 .chip-team-live-map .chip-table-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:5px;margin:5px 0 0}
.pb-scotch-chip-890 .chip-team-live-map .chip-table-actions button{min-height:44px;padding:7px 10px;font-size:14px;white-space:normal}
@media(max-width:899px){.pb-scotch-chip-890 .chip-team-live-map{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.pb-scotch-chip-890 .chip-team-live-map{grid-template-columns:minmax(0,1fr)}}

/* .898: the six-pocket table is always 2:1; controls never stretch its felt. */
.pb-scotch-chip-890 .chip-team-live-map{align-items:start;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr))}
.pb-scotch-chip-890 .chip-team-table-card{min-width:0;text-align:center}
.pb-scotch-chip-890 .chip-table-heading{display:block;margin:0 0 8px;font-size:16px}
.pb-scotch-chip-890 .chip-team-live-map .pb434-pool{aspect-ratio:2 / 1;min-height:0;height:auto;padding:0;display:block;overflow:hidden}
.pb-scotch-chip-890 .chip-team-live-map .chip-table-felt{position:absolute;inset:8px 12px;display:flex;flex-direction:column;justify-content:center;gap:4px;overflow:auto}
.pb-scotch-chip-890 .chip-team-live-map .pb436-player{margin:0;padding:3px 0;flex:0 0 auto;min-width:0}
.pb-scotch-chip-890 .chip-team-live-map .pb436-player>b{font-size:14px}
.pb-scotch-chip-890 .chip-team-table-card>small{display:block;font-size:12px;margin:3px 0}
.pb-scotch-chip-890 .chip-team-live-map .chip-team-race{display:block;margin-top:8px}
@media(max-width:420px){.pb-scotch-chip-890 .chip-team-live-map .chip-table-felt{inset:5px 9px;gap:0}.pb-scotch-chip-890 .chip-team-live-map .pb436-player>b{font-size:12px}}

/* .905: replace directly on the felt; score inputs remain independent controls. */
.pb-scotch-chip-890 .chip-team-live-map .chip-team-name{display:block;flex:1;min-width:0;min-height:44px;margin:0;padding:3px 0;border:0!important;border-radius:3px;background:transparent!important;box-shadow:none!important;color:inherit;font:inherit;font-size:14px;font-weight:700;line-height:1.3;text-align:left;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
.pb-scotch-chip-890 .chip-team-live-map .chip-team-name:focus-visible{outline:3px solid #fff;outline-offset:2px}
.pb-scotch-chip-890 .chip-team-live-map .chip-wait-ready{outline:1px dashed #e4f6ff;outline-offset:2px;border-radius:3px}
.pb-scotch-chip-890 .chip-team-live-map .chip-wait-over{background:#14486966;outline:3px solid #fff;outline-offset:2px;border-radius:3px}
.pb-scotch-chip-890 [data-chip-wait-select][aria-pressed=true]{outline:3px solid #7ceaff;outline-offset:2px}
@media(max-width:420px){.pb-scotch-chip-890 .chip-team-live-map .chip-team-name{font-size:12px}}
