/* Phone match controls, with a compact version available on desktop. */
.nav-mobile-label,.mobile-header-status,.mobile-only{display:none}
.match-view{max-width:840px;margin:0 auto}.match-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.match-heading h1{font-size:27px;line-height:1.3;overflow-wrap:anywhere;margin:5px 0}.match-heading p{font-size:11px;color:#68768a}.match-heading .eyebrow{font-size:9px;color:#95733a}.match-heading>div:first-child{min-width:0}.match-heading>div:last-child{flex-shrink:0}
.match-timer{background:#102a4b;border:1px solid #203e62;border-top:3px solid #c8a45c;border-radius:15px;padding:19px 24px 10px;color:#f8f5ed;text-align:center}.match-timer-meta{display:flex;justify-content:space-between;align-items:center;font-size:11px;letter-spacing:.8px}.match-timer-meta b>span{opacity:.5;font-weight:400}.match-clock-status{font-size:10px;letter-spacing:0;display:flex;align-items:center;gap:7px;color:#cbd6e5}.match-clock-status i{height:6px;width:6px;border-radius:50%;background:#8a99aa}.match-clock-status i.running{background:#c8a45c}.match-clock{font-size:86px;line-height:1.05;letter-spacing:-3px;font-weight:550;font-variant-numeric:tabular-nums;margin:13px 0 16px}.match-timer-controls{display:grid;grid-template-columns:1fr 2fr 1fr;gap:12px;max-width:500px;margin:auto}.match-timer-controls .btn{border-color:#51647f;background:#203b5c;color:#e3e9f1;min-height:52px;font-size:13px}.match-timer-controls .btn.lime{background:#c8a45c;color:#102a4b;border-color:#c8a45c;font-size:15px}.match-timer-controls .btn:hover{background:#35506e}.match-timer-controls .btn.lime:hover{background:#d7b878}.match-timer-settings{display:flex;justify-content:space-between;margin-top:8px}.match-timer-settings .btn{background:transparent;border:0;color:#b9c9de;font-size:11px;padding:8px 0;min-height:40px}.match-timer-settings .btn svg{height:14px;width:14px}
.match-scoreboard{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin-top:16px}.match-vs{position:absolute;top:110px;left:50%;transform:translateX(-50%);width:30px;height:30px;display:grid;place-items:center;border-radius:50%;font-size:9px;font-weight:750;background:#f7f6f2;color:#7c6a46;z-index:1}.match-team{padding:19px;background:#fff;border:1px solid #dddeda;border-top:4px solid var(--team);border-radius:12px;min-width:0;text-align:center}.match-team-select{display:block;text-align:left}.match-team-select>span{display:block;font-size:9px;letter-spacing:1px;font-weight:650;color:#6a7d95}.match-team-select select{width:100%;min-width:0;background:#fff;border:0;border-bottom:1px solid #e7e5df;border-radius:0;padding:11px 18px 11px 0;font-size:15px;font-weight:650;color:#102a4b;min-height:44px;text-overflow:ellipsis}.match-score-number{display:block;margin:8px auto 0;color:#102a4b;background:transparent;font-size:73px;line-height:1.15;letter-spacing:-3px;font-weight:550;min-width:60px;font-variant-numeric:tabular-nums}.match-score-caption{font-size:10px;color:#6b7b91}.match-score-controls{display:grid;grid-template-columns:48px 1fr;gap:9px;margin-top:18px}.match-score-controls .btn{min-height:54px;font-size:15px}.match-score-controls .match-minus{font-size:24px;font-weight:400;padding:8px}.match-bonus{width:100%;min-height:44px;border-color:#d8c8a4;background:#fcfaf4;color:#7e612b;margin-top:10px;font-size:12px}.match-team-note{font-size:10px;color:#708198;margin-top:10px}.match-round-actions{display:grid;grid-template-columns:1fr 1.4fr;gap:12px;margin-top:14px}.match-round-actions .btn{min-height:46px}.match-score-help{font-size:10px;color:#6b7c92;text-align:center;margin:12px 0 18px}.match-secondary{margin-top:20px}.match-disclosure{background:#fff;border:1px solid #dedfdb;border-radius:11px;margin-top:11px;overflow:hidden;scroll-margin-top:12px}.match-disclosure>summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;min-height:54px;padding:15px 17px;font-size:13px;font-weight:650;color:#193651}.match-disclosure>summary::-webkit-details-marker{display:none}.match-disclosure>summary>span{color:#9c7a36;font-size:17px;font-weight:400}.match-disclosure[open]>summary{border-bottom:1px solid #ebe8df}.match-detail-body{padding:16px}.match-detail-copy{font-size:12px;color:#61738c;line-height:1.8;margin:0 0 13px}.match-quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.match-quick-team{min-width:0;border:1px solid #e2e4e6;padding:13px;border-radius:8px;margin-bottom:12px}.match-quick-team h3{font-size:13px;line-height:1.5;overflow-wrap:anywhere}.match-quick-team p{font-size:11px;color:#687b94;margin:7px 0}.match-quick-team .btn{min-height:44px;font-size:11px;width:100%;margin-top:8px;white-space:normal;line-height:1.45;padding:9px 8px}.match-setup-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:20px}.match-setup-actions .btn{flex:1;font-size:11px}.match-empty{margin-top:16px}.match-empty p{margin:10px 0 16px}
@media(max-width:760px){
 html{scroll-padding-bottom:100px}.sidebar{position:static;width:100%;height:auto;min-height:58px;padding:10px 16px;border-bottom:1px solid #c8a45c;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:10px}.sidebar .brand{margin:0;gap:9px}.sidebar .brand-mark{width:29px;height:33px;font-size:25px}.sidebar .brand-name{font-size:21px}.sidebar .brand small{font-size:5.8px;letter-spacing:1.1px}.mobile-header-status{display:block;font-size:9px;color:#c9d4e4;max-width:95px;text-align:right;line-height:1.5}.sidebar .nav-label,.sidebar-bottom{display:none}.sidebar .nav{position:fixed;bottom:0;left:0;right:0;z-index:30;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;padding:6px 7px calc(6px + env(safe-area-inset-bottom));background:#102a4b;border-top:1px solid #34506f;overflow:visible}.sidebar .nav button{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;padding:8px 2px;min-height:56px;min-width:0;font-size:10px;border-radius:8px;line-height:1.2;text-align:center}.sidebar .nav button[data-view="scores"]{order:-1}.sidebar .nav button svg{width:20px;height:20px}.sidebar .nav button span{font-size:9px;white-space:nowrap}.sidebar .nav .nav-desktop-label{display:none}.sidebar .nav .nav-mobile-label{display:inline}.main{margin-left:0;padding-bottom:calc(85px + env(safe-area-inset-bottom))}.topbar{padding:0 16px;height:47px}.match-screen .topbar{display:none}.content{padding:18px 14px 20px}.bottom-note{padding-bottom:8px;font-size:8px}.match-screen .bottom-note{display:none}.page-heading{gap:10px}.page-heading h1{font-size:25px}.page-heading .heading-actions .btn{min-height:44px;font-size:11px}.page-heading .heading-actions{flex-shrink:1}.btn,.text-btn{min-height:44px}.btn.small-btn{min-height:44px}.btn.icon-btn{min-height:44px;width:44px}.btn{white-space:normal;line-height:1.45}.text-btn{font-size:12px;padding:8px 0}.btn svg{width:17px;height:17px}.panel{padding:17px}.section-heading>div{min-width:0;flex-shrink:1}.section-heading{flex-wrap:wrap}body input,body select,body textarea{font-size:16px!important}.field{font-size:12px}.field input,.field select{min-height:48px}.modal-head{padding:20px 18px 15px;gap:10px}.modal-head h2{font-size:21px}.modal-head p{font-size:12px}.modal-body{padding:18px}.modal-footer{padding:12px 18px calc(12px + env(safe-area-inset-bottom));gap:10px}.modal-footer .btn{min-height:46px}.form-error{margin-left:18px;margin-right:18px}dialog{max-height:calc(100dvh - 24px);width:calc(100% - 20px);border-radius:15px}#toast{bottom:calc(82px + env(safe-area-inset-bottom));font-size:12px;z-index:50}
 .match-heading{gap:10px;margin:0 0 12px}.match-heading h1{font-size:20px;letter-spacing:-.6px;margin:3px 0;line-height:1.3}.match-heading p{font-size:10px}.match-heading .eyebrow{font-size:8px;letter-spacing:1.1px}.match-heading .btn{min-height:44px;font-size:11px;padding:8px 10px;white-space:nowrap}.match-timer{border-radius:12px;padding:14px 16px 6px}.match-timer-meta{font-size:10px}.match-clock{font-size:68px;margin:10px 0 12px;letter-spacing:-2px}.match-clock-status{font-size:10px}.match-timer-controls{gap:8px;grid-template-columns:1fr 1.8fr 1fr}.match-timer-controls .btn{min-height:48px;font-size:12px;padding:9px 5px;white-space:nowrap}.match-timer-controls .btn.lime{font-size:14px}.match-timer-settings{margin-top:2px}.match-timer-settings .btn{min-height:40px;font-size:10px}.match-timer-settings .btn svg{width:13px;height:13px}.match-scoreboard{gap:12px;margin-top:12px}.match-team{padding:12px 11px 11px;border-radius:10px}.match-team-select>span{font-size:8px}.match-team-select select{padding:8px 15px 8px 0;min-height:44px;font-size:16px!important}.match-score-number{font-size:57px;line-height:1.05;letter-spacing:-2px;margin-top:8px}.match-score-caption{font-size:9px}.match-vs{top:100px;width:26px;height:26px;font-size:8px}.match-score-controls{grid-template-columns:40px minmax(0,1fr);gap:6px;margin-top:13px}.match-score-controls .btn{min-height:48px;font-size:13px;padding:8px 3px}.match-score-controls .match-minus{font-size:22px;min-width:0}.match-bonus{font-size:11px;margin-top:8px;padding:8px 4px;min-height:44px}.match-team-note{font-size:9px;margin-top:8px}.match-round-actions{margin-top:12px;gap:10px}.match-round-actions .btn{font-size:12px;min-height:44px}.match-score-help{font-size:9px;margin:10px 0 16px}.match-secondary{margin-top:16px}.match-disclosure>summary{min-height:52px;font-size:13px;padding:14px}.match-detail-body{padding:13px}.match-detail-copy{font-size:12px}.match-quick-grid{gap:9px}.match-quick-team{padding:10px}.match-quick-team h3{font-size:12px}.match-setup-actions{gap:8px}.match-setup-actions .btn{flex-basis:calc(50% - 8px);font-size:11px}.match-secondary .table-panel{padding:0}.match-secondary .panel-head{padding:13px 10px;flex-wrap:wrap}.match-secondary .scoreboard-table{font-size:10px}.match-secondary .table-wrap{overflow:auto}
 .game-console-page .page-heading{display:block}.game-console-page .page-heading .heading-actions{display:flex;flex-direction:row;flex-wrap:wrap;margin-top:15px;gap:8px}.game-console-page .page-heading .heading-actions>.btn{min-height:44px;font-size:11px;flex:1}.game-console-page .page-heading [data-action="project"]{display:none}.game-console-page .page-heading .heading-actions>.btn.primary{flex-basis:100%}.console-context-actions label{font-size:10px}.console-context-actions .btn{min-height:44px}.console-toolbox{display:none;max-height:65dvh;scroll-margin-top:12px}.console-toolbox.mobile-open{display:block}.console-toolbox .toolbox-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.console-toolbox .toolbox-heading>.row{flex:1}.console-toolbox .toolbox-heading>.eyebrow{display:none}.console-toolbox .toolbox-heading .row h2{font-size:17px}.console-toolbox .toolbox-scope button{min-height:44px;font-size:11px}.toolbox-item{min-height:65px;padding:12px}.toolbox-item strong{font-size:13px}.toolbox-item small{font-size:11px}.toolbox-controls{flex-wrap:wrap}.toolbox-controls .toolbox-search{flex-basis:100%;min-height:44px}.toolbox-controls select{width:100%;min-height:44px}.console-canvas{padding:10px}.console-empty{padding:28px 12px}.console-empty h3{font-size:21px}.console-workspace-head{flex-wrap:wrap;gap:10px;padding:13px}.console-workspace-head .row{gap:6px;flex-wrap:wrap}.console-workspace-head .btn{min-height:40px;font-size:11px}.mobile-only{display:inline-flex}.console-widget-head{padding:7px 8px;gap:5px}.console-widget-head>span{font-size:12px;line-height:1.5;overflow-wrap:anywhere}.widget-actions .icon-btn{width:40px;min-height:44px;padding:8px}.widget-actions .icon-btn svg{height:16px;width:16px}.console-widget-content{padding:14px}.console-widget .text-btn{font-size:12px;min-height:44px}.zone-score-teams .btn,.zone-skill-team .btn,.zone-heroes button{min-height:44px;font-size:12px}.zone-role-list p,.zone-claps p,.console-tool-detail,.tool-condition p{font-size:12px}.zone-fixtures>button{min-height:50px;font-size:11px}.zone-captain{min-width:0}.zone-captain>div{min-width:0;overflow-wrap:anywhere}.preset-library>summary{padding:16px}.preset-library>summary strong{font-size:17px}.preset-card p{font-size:13px;line-height:1.75}.preset-card .btn{min-height:46px;font-size:12px}.library-card .btn{font-size:12px}.preset-filters label{font-size:12px}.blank-board-downloads .btn{min-height:46px}.project-mode .main{padding-bottom:0}.project-mode .content{padding:16px}.project-mode .match-heading{justify-content:space-between}
}
@media(max-width:360px){.match-team{padding:10px 8px}.match-score-controls{grid-template-columns:34px minmax(0,1fr);gap:4px}.match-score-controls .btn{font-size:12px}.match-heading h1{font-size:18px}.match-clock{font-size:62px}.sidebar .nav button span{font-size:8px}.mobile-header-status{font-size:8px;max-width:80px}}
@media print{.mobile-only,.mobile-header-status{display:none!important}}

.match-score-number.is-long{font-size:44px}@media(max-width:760px){.match-score-number.is-long{font-size:31px}}
@media(max-width:760px) and (max-height:740px){.sidebar{min-height:50px;padding-top:7px;padding-bottom:7px}.content{padding-top:10px}.match-heading{margin-bottom:8px}.match-heading .eyebrow,.match-heading p{display:none}.match-heading h1{font-size:18px;margin:2px 0}.match-timer{padding:10px 12px 4px}.match-clock{font-size:54px;margin:5px 0 8px}.match-timer-controls .btn{min-height:44px}.match-timer-settings .btn{min-height:36px}.match-team{padding-top:10px;padding-bottom:10px}.match-team-select select{min-height:40px;padding-top:6px;padding-bottom:6px}.match-score-number{font-size:46px;margin-top:4px}.match-score-controls{margin-top:9px}.match-score-controls .btn{min-height:44px}.match-team-note{margin-top:6px}.match-round-actions{margin-top:9px}.match-score-help{margin-top:8px}}
.sidebar .nav .nav-mobile-label{display:none}
@media(max-width:760px){.sidebar .nav .nav-mobile-label{display:inline}.match-score-controls .match-minus{padding:0;line-height:1}}
@media(max-width:760px) and (max-height:740px){.match-team-select>span,.match-team-note{display:none}.match-score-caption{display:block;line-height:1.2}.match-score-number{padding:0}.match-score-controls .match-minus{min-height:44px}.content{padding-top:8px}}
