.tcl-app{--ink:#17273a;--teal:#008f86;--orange:#ff9500;--line:#e0e7ef;--light:#f4f7fb;max-width:980px;margin:16px auto 36px;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-size:14px;line-height:1.4;color:var(--ink)}
.tcl-app *{box-sizing:border-box}.tcl-app h3{font-size:19px;line-height:1.3;margin:7px 0 16px}.tcl-app h4{margin:15px 0 7px}.tcl-app p{margin:8px 0}.tcl-app button{appearance:none;border:0;border-radius:7px;background:#1d6896;color:#fff;padding:11px 15px;font-family:inherit;font-size:14px;font-weight:700;cursor:pointer;line-height:1.3;transition:filter .12s}.tcl-app button:hover{filter:brightness(.95)}.tcl-app button:focus-visible{outline:3px solid #0b8fbe;outline-offset:3px}.tcl-app button:disabled{opacity:.6;cursor:wait}
.tcl-app .tcl-blue{background:#136b9d}.tcl-app .tcl-soft{background:#e7eef5;color:#22384e}.tcl-app .tcl-outline-danger{background:#fff3f4;color:#a5233c;border:1px solid #efb8c0}.tcl-app .tcl-add{background:#078565;font-size:12px;padding:8px 11px;white-space:nowrap;justify-self:start}.tcl-app input,.tcl-app select,.tcl-app textarea{display:block;width:100%;max-width:100%;margin:5px 0 12px;border-radius:9px;border:1px solid #b8c8d6;background:#fff;color:#1d3045;min-height:43px;font:inherit;font-size:15px;padding:9px 11px}.tcl-app label{display:block;font-weight:650}.tcl-app textarea{min-height:95px;resize:vertical}.tcl-app small{font-size:12px}.tcl-app .tcl-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:12px}
.tcl-main-nav{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:14px}.tcl-main-nav button{flex:1 1 110px;white-space:nowrap;background:#206c9c}.tcl-main-nav button.is-active{background:#10283e}.tcl-save-indicator{font-size:13px;font-weight:800;color:#07845b;margin:10px 0}.tcl-alert{padding:11px 14px;border-radius:9px;background:#fff4e2;border:1px solid #f1c16d;color:#7e3d12;margin:10px 0}.tcl-app button.tcl-alert-close{background:transparent;color:#744623;text-decoration:underline;padding:3px 8px}
.tcl-card{border:1px solid var(--line);border-radius:16px;background:#fff;padding:21px;margin:12px 0;box-shadow:0 2px 12px #14233408}.tcl-muted{color:#68798a}.tcl-match-item{display:flex;align-items:center;justify-content:space-between;gap:18px}.tcl-match-item b{font-size:17px}.tcl-match-buttons{display:flex;gap:7px;flex-wrap:wrap}.tcl-match-score{font-size:23px;color:#008c83;font-weight:850;margin:8px 0}.tcl-match-score small{font-weight:400;font-size:14px;color:#586f7b}.tcl-status{font-size:11px;text-transform:uppercase;font-weight:800;border-radius:20px;background:#e3eaf1;color:#385372;padding:4px 9px;margin-left:9px}.tcl-status.live{background:#e6f8e9;color:#168348}.tcl-result{font-weight:650;color:#087865}
.tcl-team-card{border-left:6px solid var(--team-color);background:linear-gradient(112deg,color-mix(in srgb,var(--team-color) 8%,white),white 65%)}.tcl-team-title{display:flex;align-items:center;gap:11px}.tcl-team-title h3{margin:0;flex:1}.tcl-team-title small{color:#67778a}.tcl-team-icon{background:var(--team-color);color:#fff;border-radius:10px;display:grid;place-items:center;width:37px;height:37px;flex:0 0 37px;font-weight:900}.tcl-team-players{display:flex;gap:7px;flex-wrap:wrap;margin:18px 0}.tcl-team-players span{background:#f3f6f9;border:1px solid #e1e8ef;border-radius:16px;padding:6px 12px;font-size:13px}.tcl-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.tcl-player-select{margin:8px 0 16px}
.tcl-detail-nav{display:flex;overflow-x:auto;gap:0;white-space:nowrap;border-bottom:1px solid #e6ecf0;scrollbar-width:thin;background:#fff;position:relative;margin-bottom:9px}.tcl-detail-nav button{background:#fff;color:#4b5662;flex:1 0 auto;padding:13px 14px;font-size:12px;border-radius:0;border-bottom:3px solid transparent}.tcl-detail-nav button.selected{border-bottom-color:#008f87;color:#0b2735}
.tcl-score-header{text-align:center;background:#fff;padding:14px 12px 10px;position:relative;border-bottom:1px solid #d9e0e7}.tcl-match-title{font-size:16px;font-weight:800}.tcl-inning-label{font-size:12px;color:#72808c}.tcl-hero-score{font-size:clamp(45px,10vw,74px);line-height:1.1;font-weight:900;letter-spacing:-1px;color:var(--teal);margin:9px 0 12px;font-variant-numeric:tabular-nums}.tcl-score-actions{position:absolute;top:30px;right:12px}.tcl-score-actions button{background:#1c2731;padding:6px 9px}.tcl-score-meta,.tcl-target{display:flex;align-items:center;justify-content:center;gap:11px;flex-wrap:wrap;border-top:1px solid #e4e9ed;padding:9px 0;font-size:13px;font-weight:550}.tcl-score-meta strong,.tcl-target strong{font-weight:850}.tcl-target{color:#24384a;border-bottom:1px solid #e4e9ed}.tcl-win-banner{font-weight:800;color:#168050;background:#eafff2;border-radius:9px;padding:10px;margin-top:5px}.tcl-last-balls{display:flex;gap:8px;justify-content:center;overflow-x:auto;align-items:center;padding:12px 2px}.tcl-last-balls span{display:grid;place-items:center;min-width:33px;height:33px;border-radius:50%;background:#a7a7a7;color:#fff;font-weight:850;font-size:13px}.tcl-last-balls span.wicket{background:#e52e2e}
.tcl-stats-inline{background:#fff;border-bottom:1px solid #e0e6eb;padding:10px 10px 13px}.tcl-stats-inline h4{display:flex;align-items:center;gap:9px;font-size:14px;margin:12px 0 4px;border-bottom:1px solid #edf1f4;padding-bottom:8px}.tcl-stats-inline h4 small{margin-left:auto;font-size:10px;font-weight:650;color:#56697a;text-align:right}.tcl-player-row{display:grid;grid-template-columns:minmax(95px,1fr) repeat(5,minmax(25px,46px));gap:3px;text-align:center;font-size:12px;align-items:center;min-height:34px}.tcl-player-row .tcl-player-name{text-align:left;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tcl-player-row .tcl-player-name.striker{color:#dc8700}.tcl-over-summary{margin:10px auto;padding:12px 14px;background:#f5f8fb;border-radius:9px}.tcl-over-summary>b{display:block;font-size:13px;margin-bottom:6px}.tcl-over-summary>div{display:flex;gap:6px;overflow-x:auto;white-space:nowrap}.tcl-over-group{display:inline-flex;align-items:center;gap:6px;font-weight:750;background:white;border:1px solid #dce5eb;padding:6px 9px;border-radius:7px;flex:0 0 auto}.tcl-over-group small{background:#e6edf3;padding:3px 5px;border-radius:5px;font-weight:600}
.tcl-orange-keypad{background:#ff9500;color:#fff;margin:7px 0 0;border-radius:0;padding:3px 2px 4px}.tcl-key-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));}.tcl-app .tcl-key-row button{background:transparent;border-right:1px solid #db8200;border-bottom:1px solid #db8200;border-radius:0;min-height:66px;margin:0;font-weight:850;font-size:15px;padding:8px 3px;color:#fff;text-shadow:0 1px 1px #d28300}.tcl-app .tcl-key-row button:nth-child(5){border-right:0}.tcl-app .tcl-key-row button.tcl-wicket-key{background:#ed6a00}.tcl-scorer-foot{display:flex;gap:12px;justify-content:space-between;align-items:center;padding:8px 10px;margin:0!important;background:#fff}.tcl-save-text{color:#00835d;font-weight:800}
.tcl-table-card .tcl-section-score{font-size:20px;font-weight:800;color:var(--teal);margin-bottom:10px}.tcl-table-scroll{overflow-x:auto}.tcl-app table{border-collapse:collapse;width:100%;min-width:400px}.tcl-app th,.tcl-app td{text-align:left;border-bottom:1px solid #e8edf2;padding:9px 7px}.tcl-app th{font-weight:700;background:#f2f6fa;white-space:nowrap}.tcl-metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.tcl-metric-grid>div{display:flex;flex-direction:column;padding:12px;border-radius:10px;background:#f2f7f9}.tcl-metric-grid small{color:#617688}.tcl-metric-grid b{font-size:22px;color:var(--teal)}.tcl-star-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.tcl-star-row{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid #e5ecf1}.tcl-star-row span{font-size:12px;color:#65778a}.tcl-ball-list>div{display:grid;grid-template-columns:45px 35px minmax(0,1fr) auto;gap:10px;align-items:center;border-bottom:1px solid #ebf0f3;padding:9px 5px}.tcl-ball-list b{display:grid;place-items:center;background:#e6eef5;border-radius:50%;height:32px;width:32px}.tcl-ball-list em{color:#bb2e40}.tcl-info{display:grid;grid-template-columns:130px 1fr;gap:10px;padding:7px}.tcl-info dt{font-weight:750}.tcl-info dd{margin:0}
.tcl-modal-backdrop{position:fixed;inset:0;background:#0008;z-index:99999;display:flex;align-items:center;justify-content:center;padding:14px}.tcl-modal{background:#fff;color:#1b2d40;max-width:450px;width:100%;max-height:91vh;overflow-y:auto;padding:22px;border-radius:17px;box-shadow:0 20px 75px #0004}.tcl-modal h3{margin:0 0 18px}.tcl-modal-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:15px}.tcl-more-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:14px 0}.tcl-more-grid button{margin:0}
@media(max-width:640px){.tcl-app{margin:5px auto 25px}.tcl-card{padding:15px}.tcl-match-item{align-items:flex-start;flex-direction:column}.tcl-match-buttons{width:100%}.tcl-main-nav button{padding:10px 7px;font-size:12px;flex:1 1 40%}.tcl-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tcl-star-grid{grid-template-columns:1fr}.tcl-player-row{grid-template-columns:minmax(87px,1fr) repeat(5,minmax(20px,38px));font-size:11px}.tcl-stats-inline h4 small{font-size:9px}.tcl-detail-nav button{padding:10px 10px;font-size:11px}.tcl-score-meta,.tcl-target{gap:7px;font-size:11px}.tcl-app .tcl-key-row button{min-height:62px;font-size:13px}}

/* One-tap striker/non-striker exchange, dashboard only. */
.tcl-switch-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;background:#fff7e9;border:1px solid #ffdc9e;border-radius:10px 10px 0 0;margin:9px 0 0;padding:9px 12px}
.tcl-app .tcl-switch-button{background:#146b9b;color:#fff;font-size:14px;padding:11px 14px;min-height:44px}
.tcl-switch-names{font-size:12px;line-height:1.4;color:#5c4829;overflow-wrap:anywhere;flex:1 1 130px;text-align:right}
@media(max-width:640px){.tcl-switch-bar{gap:7px;padding:8px}.tcl-app .tcl-switch-button{flex:1 1 100%;font-size:14px}.tcl-switch-names{text-align:center}}


/* Season group builder, touch-friendly team and fixture rearrangement. */
.tcl-app .tcl-season-builder{border:2px solid #cadde9;background:#f9fcff}
.tcl-app .tcl-heading-row{display:flex;align-items:center;justify-content:space-between;gap:9px;flex-wrap:wrap}
.tcl-app .tcl-heading-row h3{margin:4px 0 10px}
.tcl-app .tcl-season-hint{padding:12px;border-radius:10px;background:#eaf4fb;margin:10px 0 14px}
.tcl-app .tcl-group-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;margin-top:16px}
.tcl-app .tcl-group-card{background:#fff;border:1px solid #cee0eb;border-radius:13px;padding:12px;min-width:0}
.tcl-app .tcl-group-card .tcl-heading-row{align-items:flex-start}
.tcl-app .tcl-group-card .tcl-heading-row>label{flex:1;min-width:135px}
.tcl-app .tcl-group-card .tcl-heading-row button{font-size:11px;padding:9px 10px;margin-top:22px}
.tcl-app .tcl-group-zone{min-height:94px;display:flex;flex-wrap:wrap;align-content:flex-start;align-items:start;gap:7px;padding:11px;border:2px dashed #adbece;background:#f7faff;border-radius:12px;transition:background .15s}
.tcl-app .tcl-group-zone.tcl-drag-over,.tcl-app .tcl-fixture-row.tcl-drag-over{border-color:#008a7d;background:#e6fff5}
.tcl-app .tcl-empty{color:#697c8d;font-style:italic;margin:9px}
.tcl-app .tcl-drag-chip{border-left:5px solid var(--chip-color);background:#fff;border-radius:7px;box-shadow:0 1px 4px #0001;padding:8px;display:flex;align-items:center;gap:6px;max-width:100%;touch-action:pan-y}
.tcl-app .tcl-drag-chip strong{font-size:13px;overflow-wrap:anywhere}
.tcl-app .tcl-chip-grip{font-size:19px;color:#7f91a1;cursor:grab}
.tcl-app .tcl-move-label{margin-left:auto;min-width:100px;flex:0 1 135px}
.tcl-app .tcl-move-label select{font-size:12px;min-height:34px;margin:0;padding:5px;border-radius:6px;max-width:145px}
.tcl-app .tcl-quick-team{margin-top:12px;padding:12px;border-radius:10px;background:#eef8f6;display:flex;flex-wrap:wrap;gap:10px;align-items:end}
.tcl-app .tcl-quick-team label{flex:1 1 150px}
.tcl-app .tcl-quick-team input,.tcl-app .tcl-quick-team select{margin-bottom:0}
.tcl-app .tcl-season-actions{display:flex;gap:9px;flex-wrap:wrap;margin:14px 0}
.tcl-app .tcl-fixture-list{display:flex;flex-direction:column;gap:7px;margin-bottom:11px}
.tcl-app .tcl-fixture-row{display:flex;align-items:center;gap:9px;min-width:0;background:#f7fafe;border:2px solid #dfe9ef;border-radius:10px;padding:9px 10px;touch-action:pan-y}
.tcl-app .tcl-fixture-grip{font-size:21px;color:#8495a3;cursor:grab}
.tcl-app .tcl-fixture-number{display:grid;place-items:center;background:#14769e;color:white;border-radius:6px;min-width:27px;height:27px}
.tcl-app .tcl-fixture-title{flex:1 1 170px;min-width:0;overflow-wrap:anywhere}
.tcl-app .tcl-fixture-title strong{display:block;font-size:14px}
.tcl-app .tcl-fixture-title small{display:block;color:#687786}
.tcl-app .tcl-fixture-actions{display:flex;gap:4px;flex-wrap:wrap;justify-content:end}
.tcl-app .tcl-fixture-actions button{padding:7px 11px;min-height:38px}
.tcl-app .tcl-fixture-actions button:disabled{opacity:.35}
.tcl-app .tcl-season-groups{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}
.tcl-app .tcl-season-groups>div{background:#f1f6fa;padding:10px;border-radius:9px}
.tcl-app .tcl-season-team{display:inline-block;margin:3px;border-left:4px solid var(--chip-color);background:#fff;padding:5px 8px;border-radius:5px;font-size:12px;font-weight:700}
.tcl-app .tcl-touch-dragging{outline:3px solid #fba419;opacity:.72}
.tcl-app .tcl-player-name{font-size:15px!important;line-height:1.35;font-weight:800!important}
.tcl-app .tcl-table-card td:first-child{font-weight:750;font-size:15px}
@media(max-width:640px){
 .tcl-app .tcl-group-grid{grid-template-columns:1fr}
 .tcl-app .tcl-fixture-row{gap:6px;flex-wrap:wrap}
 .tcl-app .tcl-fixture-actions{flex:1 0 100%;justify-content:flex-start;padding-left:33px}
 .tcl-app .tcl-player-name{font-size:14px!important}
 .tcl-app .tcl-group-card .tcl-heading-row{flex-wrap:nowrap}
}

/* Independent mobile-first login and full scorer page; no theme or booking CSS touched. */
.tcl-portal-shell{width:100%;max-width:1190px;margin:20px auto 50px;color:#17273a;font-family:system-ui,-apple-system,'Segoe UI',sans-serif}
.tcl-portal-header{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#102c43;color:white;padding:18px 22px;border-radius:14px;margin-bottom:12px}
.tcl-portal-header strong{display:block;letter-spacing:.055em;font-size:18px}
.tcl-portal-header small{display:block;color:#b6d5e8;margin-top:5px}
.tcl-portal-logout{color:#fff!important;background:#235e82;border:1px solid #6ca1c6;padding:9px 15px;border-radius:9px;text-decoration:none!important;font-weight:700}
.tcl-portal-shell .tcl-app{max-width:1100px;margin:10px auto 30px}
.tcl-portal-login{box-sizing:border-box;max-width:430px;margin:clamp(30px,5vw,80px) auto;padding:30px;background:#fff;border:1px solid #d5e1ed;border-radius:18px;box-shadow:0 12px 40px rgba(16,44,67,.12);font-family:system-ui,-apple-system,'Segoe UI',sans-serif;color:#17273a}
.tcl-login-icon{font-size:38px;text-align:center}.tcl-portal-login h2{text-align:center;font-size:26px;line-height:1.2;margin:8px 0}.tcl-portal-login>p{text-align:center;color:#6c7f91}
.tcl-portal-login label{display:block;font-weight:750;margin:16px 0 6px;font-size:14px}
.tcl-portal-login input{box-sizing:border-box;display:block;width:100%;min-height:48px;background:#fff;border:1px solid #aebfce;color:#17273a;border-radius:9px;font-size:16px;padding:10px 12px}
.tcl-portal-login input:focus{outline:2px solid #09719c;outline-offset:1px}
.tcl-portal-login button{margin-top:20px;background:#00755e;color:white;border:0;border-radius:9px;width:100%;min-height:49px;font-size:16px;font-weight:800;cursor:pointer}
.tcl-portal-login .tcl-login-error{padding:12px;background:#fff0f0;border:1px solid #e9abab;border-radius:8px;color:#a11f30;text-align:left}
.tcl-portal-login .tcl-login-help{margin-top:20px;font-size:12px;line-height:1.5}
@media(max-width:640px){.tcl-portal-shell{margin:8px auto}.tcl-portal-header{border-radius:10px;padding:13px}.tcl-portal-header strong{font-size:14px}.tcl-portal-login{margin:30px 12px;padding:24px 20px}.tcl-portal-shell .tcl-app{margin:8px 0}}

/* Management actions v1.3.1 */
.tcl-app .tcl-season-header-actions{display:flex;flex-wrap:wrap;gap:7px;align-items:center}
.tcl-app .tcl-team-players .tcl-player-pill{display:inline-flex;align-items:center;gap:7px;max-width:100%}
.tcl-app .tcl-team-players .tcl-player-pill strong{overflow-wrap:anywhere}
.tcl-app .tcl-team-players button.tcl-pill-delete{background:#fff0f0!important;border:1px solid #d98a96!important;color:#a81d33!important;border-radius:7px;min-width:27px;height:27px;padding:0!important;font-size:19px!important;line-height:1!important}
.tcl-delete-dialog form>label{display:block;margin:14px 0;font-weight:400}
.tcl-delete-dialog input[type=radio]{width:auto;min-height:unset;margin:0 6px 0 0}
.tcl-delete-dialog .tcl-disabled-choice{opacity:.58}
.tcl-delete-dialog input[name=confirm_name]{width:100%;margin-top:8px}
.tcl-delete-submit{background:#b7283b!important;color:white!important;font-weight:750!important}
@media(max-width:640px){.tcl-app .tcl-season-header-actions{width:100%}}

/* v1.3.2: destructive match confirmation, visible on all match states */
.tcl-app .tcl-delete-dialog p{line-height:1.5}
.tcl-app .tcl-match-buttons{flex-wrap:wrap}
.tcl-app .tcl-delete-dialog input[name=confirm_text]{width:100%;margin-top:8px;font-weight:700}

/* V1.4.0: Match-start rules, quick friendly teams, and durable offline scoring. */
.tcl-start-rules{background:#eaf4fc;border:1px solid #c3ddf4;border-radius:12px;padding:14px;margin:10px 0 20px}
.tcl-start-rules h4{margin:0 0 12px}
.tcl-quick-friendly:not([hidden]){display:grid;gap:10px;grid-column:1/-1;background:#fff8e8;padding:12px;border-radius:10px;border:1px solid #edc16d;margin-top:8px}
.tcl-quick-friendly[hidden]{display:none!important}
.tcl-quick-friendly label{display:block}
.tcl-quick-friendly textarea{min-height:110px}
.tcl-offline-notice{border:1px solid #efbd55;background:#fff4d9;color:#563608;padding:12px;border-radius:10px;margin:10px 0;font-size:13px}
.tcl-offline-notice button{margin:0 8px}
.tcl-offline-notice small{display:block;margin-top:7px}
.tcl-save-indicator{overflow-wrap:anywhere}

/* v1.4.1: seasonal leaderboard, trophy history and durable player forms */
.tcl-app .tcl-season-standings{display:grid;gap:13px;margin-top:15px}
.tcl-app .tcl-group-standings{background:#f7fafc;border:1px solid #dae4ee;border-radius:12px;padding:13px;min-width:0}
.tcl-app .tcl-group-standings h4,.tcl-app .tcl-season-honours h4{margin:2px 0 9px;font-size:16px}
.tcl-app .tcl-group-standings .tcl-leader{background:#e6f7ec;border-left:4px solid #2a9e66;padding:8px 10px;border-radius:5px;font-size:13px}
.tcl-app .tcl-group-standings table{font-size:13px;white-space:nowrap;width:100%;min-width:400px;border-collapse:collapse}
.tcl-app .tcl-group-standings th,.tcl-app .tcl-group-standings td{padding:8px 7px;border-bottom:1px solid #dee5ec;text-align:center}
.tcl-app .tcl-group-standings td:first-child,.tcl-app .tcl-group-standings th:first-child{text-align:left;font-weight:700}
.tcl-app .tcl-season-honours{border:1px solid #eacb75;background:#fff9e5;padding:14px;border-radius:12px}
.tcl-app .tcl-season-honours p{margin:7px 0}
.tcl-app .tcl-awards-form{background:#eef4ff;border-radius:12px;padding:14px;border:1px solid #ceddef}
.tcl-app .tcl-awards-form .tcl-grid{margin:12px 0}
.tcl-app .tcl-roster-note{background:#ebf9ef;padding:10px 12px;border-radius:8px;font-size:13px;line-height:1.5}
.tcl-app .tcl-inline-success{background:#e5f9ef;color:#126440;border-radius:7px;padding:8px 10px;font-weight:700;font-size:13px}
.tcl-app .tcl-inline-error{background:#fff0ee;color:#a52929;border-radius:7px;padding:8px 10px;font-weight:700;font-size:13px}

/* V1.4.2 — Season-specific leaderboard editor, also available to scorekeeper portal */
.tcl-app .tcl-leaderboard-editor{border:1px solid #bcd7e9;background:#f6fbff;border-radius:12px;min-width:0}
.tcl-app .tcl-leaderboard-editor>summary{cursor:pointer;font-size:15px;font-weight:800;padding:14px;color:#11537c;list-style-position:inside}
.tcl-app .tcl-leaderboard-editor[open]>summary{border-bottom:1px solid #d4e3ef}
.tcl-app .tcl-leaderboard-editor form{padding:14px}
.tcl-app .tcl-leaderboard-editor .tcl-points-fields{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.tcl-app .tcl-column-fields{margin:12px 0;border:1px solid #d4e3ef;padding:10px;border-radius:9px}
.tcl-app .tcl-column-fields legend{font-weight:750;padding:0 5px}
.tcl-app .tcl-column-options{display:flex;flex-wrap:wrap;gap:12px}
.tcl-app .tcl-column-options label{display:inline-flex;align-items:center;gap:5px;margin:0}
.tcl-app .tcl-column-options input{width:auto;min-height:auto;margin:0}
.tcl-app .tcl-group-adjust{margin:14px 0}
.tcl-app .tcl-group-adjust table{min-width:440px;width:100%;border-collapse:collapse}
.tcl-app .tcl-group-adjust th,.tcl-app .tcl-group-adjust td{padding:7px 5px;border-bottom:1px solid #dce5ec;text-align:left}
.tcl-app .tcl-group-adjust input{min-width:75px;width:100%;max-width:140px;padding:6px;margin:0;min-height:36px}
@media(max-width:640px){.tcl-app .tcl-leaderboard-editor .tcl-points-fields{grid-template-columns:repeat(3,minmax(0,1fr))}.tcl-app .tcl-leaderboard-editor form{padding:10px}}


/* V1.4.3 — Branded website dialogs. Never invoke browser prompt/confirm. */
.tcl-web-overlay.tcl-app{position:fixed;z-index:2147483000;inset:0;width:100%;max-width:none;min-height:100dvh;margin:0;display:flex;justify-content:center;align-items:center;padding:15px;font-size:15px;isolation:isolate}
.tcl-web-overlay .tcl-web-scrim{position:absolute;inset:0;background:rgba(11,25,39,.70);backdrop-filter:blur(2px)}
.tcl-web-overlay .tcl-web-dialog{position:relative;width:min(100%,480px);max-height:calc(100dvh - 30px);overflow:auto;background:#fff;color:#142b40;border:1px solid #d5e0e9;border-radius:17px;box-shadow:0 24px 70px rgba(0,0,0,.35);padding:23px}
.tcl-web-overlay .tcl-web-dialog h3{margin:0 0 9px;font-size:21px;color:#10283e}
.tcl-web-overlay .tcl-web-dialog-message{color:#50657b;font-size:14px;line-height:1.55;margin:0 0 19px;white-space:pre-wrap}
.tcl-web-overlay .tcl-web-dialog label{display:block;font-weight:700;color:#1b3348}
.tcl-web-overlay .tcl-web-dialog input{min-height:48px;background:#fff;color:#172b3f;border:2px solid #c3d5e2;font-size:16px;margin-top:7px}
.tcl-web-overlay .tcl-web-dialog input:focus{border-color:#136b9d;outline:3px solid #94c9e96b}
.tcl-web-overlay .tcl-web-dialog-error{color:#a01d32;background:#fff0f2;border:1px solid #efc3cc;padding:11px;border-radius:8px;font-weight:600;margin:7px 0 12px}
.tcl-web-overlay .tcl-web-dialog-error[hidden]{display:none}
.tcl-web-overlay .tcl-web-dialog-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}
.tcl-web-overlay .tcl-web-dialog-actions button{flex:1 1 130px;min-height:47px;font-size:14px}
.tcl-web-overlay .tcl-web-dialog-actions .tcl-web-danger{background:#b4233e}
@media(max-width:540px){.tcl-web-overlay.tcl-app{padding:10px;align-items:center}.tcl-web-overlay .tcl-web-dialog{padding:18px;max-height:92dvh}}

/* Public scoreboard status filters — separate Live / Scheduled / Results */
.tcl-main-nav .tcl-tab-count{display:inline-flex;min-width:1.55em;height:1.55em;align-items:center;justify-content:center;border-radius:1em;margin-left:6px;padding:0 4px;background:rgba(255,255,255,.22);font-size:.83em;font-weight:800;}
.tcl-main-nav button.is-active .tcl-tab-count{background:rgba(255,255,255,.28)}
.tcl-empty-category{padding:15px 10px;color:#536c7a;border:1px dashed #c9d9e3;border-radius:10px;text-align:center;background:#f8fbfd}
@media(max-width:640px){.tcl-main-nav button{flex:1 1 calc(50% - 8px)}}

/* V1.4.7 - season wins and all-season cups appear directly on public scoreboard */
.tcl-app .tcl-alltime-trophies{border:1px solid #efd8a0;background:linear-gradient(125deg,#fffbea,#f4fbff);padding:18px;margin:14px 0 24px}
.tcl-app .tcl-alltime-trophies h3{margin:0 0 10px}
.tcl-app .tcl-alltime-trophies table,.tcl-app .tcl-power-panel table{border-collapse:collapse;width:100%;min-width:360px}
.tcl-app .tcl-alltime-trophies th,.tcl-app .tcl-alltime-trophies td,.tcl-app .tcl-power-panel th,.tcl-app .tcl-power-panel td{padding:9px 7px;text-align:center;border-bottom:1px solid #dae5ea;font-size:13px}
.tcl-app .tcl-alltime-trophies td:nth-child(2),.tcl-app .tcl-alltime-trophies th:nth-child(2),.tcl-app .tcl-power-panel td:nth-child(2),.tcl-app .tcl-power-panel th:nth-child(2){text-align:left;font-weight:650}
.tcl-app .tcl-power-panel{border:1px solid #c9e2f4;background:#f5fbff;border-radius:12px;padding:14px}
.tcl-app .tcl-power-panel h4{margin:0 0 7px}
.tcl-app .tcl-season-top{background:#eaf9ef}
.tcl-app .tcl-power-panel .tcl-leader{padding:9px 10px;background:#e5f7eb;border-left:4px solid #14966c}
.tcl-app .tcl-power-form{margin-top:15px;display:flex;gap:9px;flex-wrap:wrap;align-items:end}
.tcl-app .tcl-power-form label{flex:1 1 200px;margin:0}
.tcl-app .tcl-power-form button{margin:0}
.tcl-app .tcl-knockout{background:#fff9ed;border:1px solid #f1d4a0;margin:15px 0}
.tcl-app .tcl-knockout form{margin:12px 0;padding:12px;border-radius:10px;background:#fff;border:1px solid #e6e2d6}
.tcl-app .tcl-knockout h4{margin:0 0 10px}
.tcl-app .tcl-knockout button:disabled{opacity:.55;cursor:not-allowed}
.tcl-app .tcl-undo-win{background:#1d608e;color:#fff;margin-top:7px;border-radius:7px;padding:12px}
.tcl-app .tcl-legacy-mapping{margin:16px 0}
.tcl-app .tcl-legacy-mapping>summary{cursor:pointer;font-weight:750;font-size:15px}
.tcl-app .tcl-legacy-mapping form{display:grid;gap:10px;margin-top:15px}
.tcl-confetti-layer{position:fixed;inset:0;z-index:2147482000;pointer-events:none;overflow:hidden}
.tcl-confetti-piece{display:block;position:absolute;top:-15px;left:var(--x);width:9px;height:14px;border-radius:2px;opacity:0;animation:tcl-celebrate-fall var(--duration) ease-in var(--delay) forwards}
@keyframes tcl-celebrate-fall{0%{transform:translateY(-18px) rotate(0);opacity:1}85%{opacity:1}100%{transform:translateY(110vh) rotate(var(--turn));opacity:0}}
@media(prefers-reduced-motion:reduce){.tcl-confetti-layer{display:none}}

/* 1.4.8: visually distinguish the irreversible full-season deletion choice. */
.tcl-delete-dialog .tcl-delete-all-choice{padding:12px;border:1px solid #d9777c;border-radius:8px;background:#fff3f3;cursor:pointer}
.tcl-delete-dialog .tcl-delete-warning{background:#fff6e5;border-left:4px solid #d97706;padding:10px 12px;border-radius:4px}
.tcl-delete-dialog input[type=radio]{cursor:pointer;accent-color:#be123c}

/* V1.4.9: clear tie-break labels for staff and public viewers. */
.tcl-app .tcl-super-panel{border:1px solid #d5b0ff;background:linear-gradient(120deg,#f6f1ff,#f5fbff);margin:16px 0}
.tcl-app .tcl-super-panel h3{margin:0 0 9px;color:#513182}
.tcl-app .tcl-super-panel p{line-height:1.5}
.tcl-app .tcl-super-action{border:1px solid #c3a2f8;background:#f1e7ff;color:#58338a;font-weight:750}
.tcl-app .tcl-super-action:hover{background:#e8d8fe}
.tcl-app .tcl-knockout .tcl-grid{margin:9px 0}
.tcl-app .tcl-knockout .tcl-grid label{min-width:180px}

/* Advanced delivery, wicket and run-out scoring dialog */
.tcl-rules-modal{max-width:530px}.tcl-rules-modal [hidden]{display:none!important}.tcl-rules-modal .tcl-check-row{display:flex;align-items:flex-start;gap:10px;margin:10px 0;font-weight:500;line-height:1.45}.tcl-rules-modal input[type=checkbox]{width:19px;height:19px;flex:0 0 19px;margin:3px 0 0}.tcl-rules-modal .tcl-rule-tip{font-size:12px;line-height:1.5;background:#eaf4fc;padding:10px 12px;border-radius:8px;color:#23465d}.tcl-rules-modal [data-wicket-runout],.tcl-rules-modal [data-wicket-dismissed]{padding:8px 0;border-top:1px solid #e1e9ef} .tcl-rules-modal label select,.tcl-rules-modal label input[type=number]{min-height:43px}

.tcl-fow{padding:8px 0 14px;border-bottom:1px solid #e7eaf1}.tcl-fow h4{font-size:14px;margin:8px 0}.tcl-fow>div{display:flex;flex-wrap:wrap;gap:6px}.tcl-fow-item{font-size:12px;padding:6px 10px;background:#edf4f9;color:#16354a;border-radius:5px}

/* V1.5.2: wicket-specific form and separate end-of-over bowler dialog */
.tcl-dismissal-help{padding:9px 12px;border-radius:8px;background:#edf5ff;color:#193d58;font-size:13px;line-height:1.5;margin:8px 0 12px}
.tcl-rules-modal [hidden]{display:none !important}
.tcl-rules-modal .tcl-rule-tip{margin-top:8px}

/* V1.5.8 — season-wide best batter and bowler rankings */
.tcl-app .tcl-season-player-rankings{background:linear-gradient(120deg,#f1fbf7,#f2f8ff);border:1px solid #bbdfd2;border-radius:14px;padding:14px;min-width:0}
.tcl-app .tcl-season-player-rankings>h4{font-size:18px;margin:0 0 6px;color:#0b3d49}
.tcl-app .tcl-player-rank-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}
.tcl-app .tcl-player-rank-card{background:#fff;border:1px solid #d3e4ea;border-radius:11px;padding:11px;min-width:0}
.tcl-app .tcl-player-rank-card h5{margin:2px 0 9px;font-size:15px;color:#14465a}
.tcl-app .tcl-player-ranking-leader{background:#e8f8ed;border-left:4px solid #12a579;border-radius:5px;padding:9px;font-size:13px;font-weight:700}
.tcl-app .tcl-player-ranking-leader small{font-size:11px;color:#526c7c}
.tcl-app .tcl-player-rank-card table{width:100%;border-collapse:collapse;min-width:370px;font-size:12px}
.tcl-app .tcl-player-rank-card th,.tcl-app .tcl-player-rank-card td{padding:8px 6px;border-bottom:1px solid #e1ecf1;text-align:center;white-space:nowrap}
.tcl-app .tcl-player-rank-card th:nth-child(2),.tcl-app .tcl-player-rank-card td:nth-child(2){text-align:left;white-space:normal;min-width:105px}
.tcl-app .tcl-player-rank-card td:nth-child(2) small{display:block;color:#617587;font-size:11px;line-height:1.3}
@media(max-width:780px){.tcl-app .tcl-player-rank-grid{grid-template-columns:1fr}}


/* V1.5.9 — Card-first tournament navigation, compact semifinal/final results */
.tcl-app .tcl-season-picker{margin:10px 0 18px}
.tcl-app .tcl-season-picker-heading h3{margin:0 0 3px;color:#122b43}
.tcl-app .tcl-season-picker-heading p{margin:0 0 13px}
.tcl-app .tcl-season-picker-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:13px;align-items:stretch}
.tcl-app .tcl-season-pick-card{border:1px solid #cddde9;background:#fff;border-radius:16px;box-shadow:0 4px 17px rgba(14,40,66,.06);min-width:0;overflow:hidden;transition:border-color .15s,box-shadow .15s}
.tcl-app .tcl-season-pick-card:hover{border-color:#129184;box-shadow:0 6px 23px rgba(8,65,92,.12)}
.tcl-app button.tcl-season-pick-button{display:flex;flex-direction:column;align-items:stretch;gap:10px;text-align:left;background:transparent;color:#19354b;border:0;border-radius:0;width:100%;height:100%;padding:17px;white-space:normal;font-weight:500}
.tcl-app button.tcl-season-pick-button:hover{background:#f7fcff;filter:none}
.tcl-app .tcl-season-pick-top{display:flex;align-items:center;gap:10px;min-width:0}
.tcl-app .tcl-season-pick-icon{background:linear-gradient(140deg,#0f3150,#146c71);border-radius:9px;display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;color:white}
.tcl-app .tcl-season-pick-name{font-weight:850;font-size:18px;line-height:1.3;flex:1;overflow-wrap:anywhere}
.tcl-app .tcl-season-pick-arrow{font-weight:700;font-size:28px;color:#0a8a87}
.tcl-app .tcl-season-pick-stat{font-size:13px;color:#38556d;font-weight:750}
.tcl-app .tcl-season-pick-progress{font-size:12px;color:#496f7b;background:#edf8f4;display:block;border-radius:7px;padding:8px 10px}
.tcl-app .tcl-season-pick-more{display:block;color:#0a6b92;border-top:1px solid #e5eff4;padding-top:11px;font-weight:750;font-size:12px;margin-top:auto}
.tcl-app .tcl-season-detail-head{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:11px 0}
.tcl-app button.tcl-season-back{font-weight:800}
.tcl-app .tcl-ko-summary{border:1px solid #d5dfe9;border-radius:11px;background:linear-gradient(110deg,#f8fbff,#f1faf5);padding:12px 14px;margin:12px 0}
.tcl-app .tcl-ko-summary h4{margin:0 0 9px;font-size:15px}
.tcl-app .tcl-ko-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:8px}
.tcl-app .tcl-ko-line{display:flex;gap:6px;justify-content:space-between;align-items:center;flex-wrap:wrap;padding:7px 9px;border:1px solid #dce6ea;border-radius:7px;background:#fff;font-size:12px;line-height:1.35}
.tcl-app .tcl-ko-line strong{font-size:12px;color:#153849;overflow-wrap:anywhere}
.tcl-app .tcl-ko-champion{background:#f1fbed;border-color:#bfe5cb}
.tcl-app .tcl-ko-champion strong{color:#08754d}
.tcl-app .tcl-ko-mini{display:flex;flex-direction:column;gap:5px}
.tcl-app .tcl-ko-mini .tcl-ko-line{font-size:11px;padding:6px 8px}
.tcl-app .tcl-ko-mini .tcl-ko-line strong{font-size:11px}
.tcl-app .tcl-ko-none{font-size:12px;color:#6a7e89}
@media(max-width:480px){.tcl-app .tcl-season-pick-card{border-radius:12px}.tcl-app button.tcl-season-pick-button{padding:14px}.tcl-app .tcl-season-expanded{padding:14px}}

/* V1.6.0: manually controlled Topaz Power Rankings. */
.tcl-app .tcl-power-editor{border:1px solid #dce6ef;max-width:100%}
.tcl-app .tcl-power-form{display:grid;gap:11px}
.tcl-app .tcl-power-edit-row{padding:14px;border:1px solid #d8e3ed;border-radius:13px;background:#f8fbfe}
.tcl-app .tcl-power-edit-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:9px}
.tcl-app .tcl-power-visible{display:flex;align-items:center;gap:6px;font-size:12px;white-space:nowrap}
.tcl-app .tcl-power-fields{display:grid;grid-template-columns:minmax(130px,2fr) repeat(3,minmax(75px,1fr));gap:10px}
.tcl-app .tcl-power-fields label{font-size:12px;font-weight:650}
.tcl-app .tcl-power-fields input{width:100%;min-width:0;box-sizing:border-box}
.tcl-app .tcl-power-edit-row details{margin-top:8px}
.tcl-app .tcl-power-edit-row summary{font-size:12px;color:#315674;cursor:pointer}
.tcl-app .tcl-power-edit-row details label{display:block;margin-top:9px}
.tcl-app .tcl-power-edit-row details select{width:100%;max-width:560px}
.tcl-app .tcl-power-bottom{display:flex;flex-wrap:wrap;gap:9px;margin-top:12px}
.tcl-power-standalone{max-width:1100px;margin:22px auto;padding:20px;border:1px solid #d8e4ed;border-radius:16px;background:#fff;color:#102d45}
.tcl-power-standalone h2{margin:0 0 6px;color:#102d45}
.tcl-power-standalone p{font-size:13px;color:#4b6579}
.tcl-power-standalone .tcl-table-scroll{overflow-x:auto}
.tcl-power-standalone table{width:100%;border-collapse:collapse;min-width:310px}
.tcl-power-standalone th,.tcl-power-standalone td{padding:12px;text-align:left;border-bottom:1px solid #e4ebf1}
.tcl-power-standalone th{background:#eaf3fa}
.tcl-power-standalone tr:nth-child(even){background:#f7fafc}
@media(max-width:650px){.tcl-app .tcl-power-fields{grid-template-columns:repeat(3,minmax(0,1fr))}.tcl-app .tcl-power-fields label:first-child{grid-column:1/-1}.tcl-power-standalone{padding:12px}}
.tcl-app .tcl-power-visible input[type="checkbox"]{appearance:auto;display:inline-block;width:18px!important;height:18px!important;min-height:18px!important;max-width:18px!important;flex:none;margin:0 5px 0 0;padding:0;vertical-align:middle}

/* V1.6.1: show the SAME manual rankings beneath the booking homepage. */
.tcl-power-booking-home{width:min(100% - 28px,1150px);max-width:1150px;clear:both;margin:32px auto 40px;box-sizing:border-box;}
.tcl-power-booking-home .tcl-power-standalone{margin:0;padding:22px;border-radius:18px;background:#fff;box-shadow:0 10px 30px rgba(10,45,75,.08);}
.tcl-power-booking-home .tcl-power-standalone h2{font-size:clamp(21px,2.7vw,30px);line-height:1.25;}
.tcl-power-booking-home .tcl-power-standalone table th,.tcl-power-booking-home .tcl-power-standalone table td{font-size:14px;}
@media(max-width:600px){.tcl-power-booking-home{width:calc(100% - 18px);margin:22px auto 28px}.tcl-power-booking-home .tcl-power-standalone{padding:14px}.tcl-power-booking-home .tcl-power-standalone table th,.tcl-power-booking-home .tcl-power-standalone table td{font-size:12px;padding:9px 6px}}
