/* ZK24182: MatchLab only. No global CSS changes. */
html.zk82-matchlab{--ml82-bg:#f6f9f6;--ml82-paper:#fff;--ml82-ink:#193727;--ml82-muted:#60766a;--ml82-border:#d7e6da;--ml82-soft:#edf5ef;--ml82-green:#176b4a}
html.zk82-matchlab body{background:var(--ml82-bg)!important;color:var(--ml82-ink)!important;overflow-x:clip}
html.zk82-matchlab body .sitebar,html.zk82-matchlab body #view-home,html.zk82-matchlab body #view-tools{display:none!important}
html.zk82-matchlab body main.app.wrap{width:100%;max-width:900px!important;padding:0 22px 105px!important;box-sizing:border-box!important}
html.zk82-matchlab body #view-lab{display:block!important;max-width:100%;min-width:0!important}
html.zk82-matchlab body #view-lab>.backlink,html.zk82-matchlab body #view-lab>.labheading,html.zk82-matchlab body #view-lab>.stepper,html.zk82-matchlab body #view-lab>.layout>.side{display:none!important}
html.zk82-matchlab body #view-lab .layout{display:block!important;width:100%;min-width:0!important}
html.zk82-matchlab body #view-lab[data-ml90-mode=scout] .layout,html.zk82-matchlab body #view-lab[data-ml90-mode=duel] .layout{display:none!important}
html.zk82-matchlab body #view-lab .maincol{display:block!important;min-width:0;max-width:100%}
html.zk82-matchlab body #view-lab .maincol>#v48-analyse{display:block!important;width:100%;min-width:0;max-width:100%;padding:0!important;margin:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
html.zk82-matchlab body #view-lab .maincol>section:not(#v48-analyse):not(:has(#ml-final-root)){display:none!important}
html.zk82-matchlab body #view-lab .zk82-top{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:18px 0 10px;max-width:860px;margin:auto}
html.zk82-matchlab body #view-lab .zk82-back{font:750 13px/1.4 Inter,system-ui,sans-serif;color:var(--ml82-ink)!important;text-decoration:none}
html.zk82-matchlab body #view-lab .zk82-overline{font:800 11px/1.4 Inter,system-ui,sans-serif;letter-spacing:.11em;color:var(--ml82-green)!important}
html.zk82-matchlab body #ml-final-root{max-width:860px!important;width:100%!important;min-width:0;color:var(--ml82-ink)!important;margin:auto}
html.zk82-matchlab body #ml-final-root :is(.ml-eyebrow,.ml-version-label){display:none!important}
html.zk82-matchlab body #ml-final-root .ml-final-intro{margin:4px 0 14px!important;gap:3px!important}
html.zk82-matchlab body #ml-final-root .ml-final-intro h2{font:820 clamp(23px,4.4vw,29px)/1.18 Inter,system-ui,sans-serif!important;letter-spacing:-.03em!important;color:var(--ml82-ink)!important;margin:0!important}
html.zk82-matchlab body #ml-final-root .ml-final-intro .ml-sub{font:450 13px/1.45 Inter,system-ui,sans-serif!important;color:var(--ml82-muted)!important;margin:3px 0 0!important}
html.zk82-matchlab body #ml-final-root .zk82-modes{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px!important;margin:0 0 14px!important;padding:0!important}
html.zk82-matchlab body #ml-final-root .zk82-mode{box-sizing:border-box!important;min-width:0!important;min-height:47px!important;padding:9px 5px!important;border-radius:10px!important;border:1px solid var(--ml82-border)!important;background:var(--ml82-paper)!important;color:var(--ml82-ink)!important;font:780 12px/1.28 Inter,system-ui,sans-serif!important;white-space:normal!important;text-align:center!important;box-shadow:none!important}
html.zk82-matchlab body #ml-final-root .zk82-mode.active{background:var(--ml82-green)!important;border-color:var(--ml82-green)!important;color:#fff!important}
html.zk82-matchlab body #ml-final-root .zk82-original-modes{display:none!important}
html.zk82-matchlab body #ml-final-root :is(.ml-final-panel,.ml-natural,.ml-image-panel)[hidden]{display:none!important}
html.zk82-matchlab body #ml-final-root :is(.ml-final-panel,.ml-natural,.ml-image-panel){background:var(--ml82-paper)!important;border:1px solid var(--ml82-border)!important;color:var(--ml82-ink)!important;border-radius:13px!important;box-shadow:none!important;padding:15px!important;margin:0 0 12px!important;min-width:0!important;max-width:100%!important}
html.zk82-matchlab body #ml-final-root .ml-natural h3{font:800 16px/1.3 Inter,system-ui,sans-serif!important;color:var(--ml82-ink)!important}
html.zk82-matchlab body #ml-final-root :is(.ml-natural-desc,.ml-natural-small){font-size:11px!important;line-height:1.5!important;color:var(--ml82-muted)!important}
html.zk82-matchlab body #ml-final-root .ml-natural-prompt{width:100%!important;max-width:100%!important;min-height:94px!important;border-radius:10px!important;padding:12px!important}
html.zk82-matchlab body #ml-final-root .ml-natural-actions{display:flex!important;flex-wrap:wrap!important;gap:7px!important}
html.zk82-matchlab body #ml-final-root .ml-natural-actions button{flex:1 1 110px!important;min-height:44px!important;min-width:0!important;max-width:100%!important;border-radius:9px!important;padding:9px!important;font-size:12px!important}
html.zk82-matchlab body #ml-final-root .ml-image-details{border:0!important;background:transparent!important;box-shadow:none!important;margin:0!important;padding:0!important}
html.zk82-matchlab body #ml-final-root .ml-image-details>summary{display:none!important}
html.zk82-matchlab body #ml-final-root .ml-image-file{height:auto!important;min-height:47px!important;padding:11px!important;max-width:100%!important}
html.zk82-matchlab body #ml-final-root .ml-fields{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
html.zk82-matchlab body #ml-final-root .ml-fields>.ml-input-group{grid-column:auto!important;min-width:0!important}
html.zk82-matchlab body #ml-final-root .ml-fields>.ml-window{grid-column:1/-1!important}
html.zk82-matchlab body #ml-final-root .ml-field-label{font-size:12px!important;font-weight:730!important;color:var(--ml82-ink)!important;margin:0 0 5px!important;letter-spacing:0!important}
html.zk82-matchlab body #ml-final-root :is(input,select,textarea,.ml-league-details>summary){background:var(--ml82-paper)!important;border-color:var(--ml82-border)!important;color:var(--ml82-ink)!important;font-size:14px!important;min-width:0!important;max-width:100%;box-shadow:none!important}
html.zk82-matchlab body #ml-final-root :is(.ml-input-group input,.ml-input-group select,.ml-league-details>summary){height:45px!important;min-height:45px!important;border-radius:9px!important;padding:9px 11px!important}
html.zk82-matchlab body #ml-final-root .ml-window-row{display:flex!important;gap:7px!important;align-items:center!important;min-width:0!important;flex-wrap:wrap!important}
html.zk82-matchlab body #ml-final-root .ml-window-row input{flex:1 1 110px!important;width:auto!important;max-width:none!important;min-width:100px!important;padding:8px!important}
html.zk82-matchlab body #ml-final-root .ml-window-row span{flex:none!important}
html.zk82-matchlab body #ml-final-root .ml-time-preset{background:var(--ml82-soft)!important;border-color:var(--ml82-border)!important;color:var(--ml82-green)!important;min-height:43px!important;font-size:12px!important;box-shadow:none!important}
html.zk82-matchlab body #ml-final-root .zk82-advanced{border:1px solid var(--ml82-border)!important;border-radius:10px!important;margin:14px 0 0!important;background:var(--ml82-paper)!important;color:var(--ml82-ink)!important}
html.zk82-matchlab body #ml-final-root .zk82-advanced>summary{cursor:pointer!important;list-style:none!important;padding:12px 13px!important;font:770 12px/1.4 Inter,system-ui,sans-serif!important;color:var(--ml82-ink)!important}
html.zk82-matchlab body #ml-final-root .zk82-advanced>summary::-webkit-details-marker{display:none}
html.zk82-matchlab body #ml-final-root .zk82-advanced>summary:after{content:'⌄';float:right;color:var(--ml82-muted)}
html.zk82-matchlab body #ml-final-root .zk82-advanced-body{border-top:1px solid var(--ml82-border);padding:5px 13px 14px}
html.zk82-matchlab body #ml-final-root :is(.ml-market-section,.ml-combo){margin:0!important;padding:10px 0!important;max-width:100%!important;border:0!important}
html.zk82-matchlab body #ml-final-root .ml-controls{margin:14px 0 0!important;padding:0!important;border:0!important;display:flex!important}
html.zk82-matchlab body #ml-final-root .ml-generate{width:100%!important;border:0!important;border-radius:10px!important;background:#176b4a!important;color:#fff!important;min-height:46px!important;box-shadow:none!important}
html.zk82-matchlab body #ml-final-root .ml-notice{font-size:11px!important;color:var(--ml82-muted)!important}
html.zk82-matchlab body #ml-final-root .ml-manual-box{background:var(--ml82-soft)!important;border:1px solid var(--ml82-border)!important;border-radius:10px!important;padding:12px!important}
html.zk82-matchlab body #ml-final-root .ml-fixture-list{grid-template-columns:minmax(0,1fr)!important}
html.zk82-matchlab body #ml-final-root :is(.ml-progress,.ml-ticket,.ml-empty){background:var(--ml82-paper)!important;border-color:var(--ml82-border)!important;box-shadow:none!important}
html.zk82-matchlab body #view-lab .zk82-footer{max-width:860px;margin:24px auto 0;display:grid;gap:8px}
html.zk82-matchlab body #view-lab :is(.zk82-extra,.zk82-legacy,.zk82-legal){background:var(--ml82-paper)!important;border:1px solid var(--ml82-border)!important;border-radius:11px!important;color:var(--ml82-ink)!important;box-shadow:none!important}
html.zk82-matchlab body #view-lab :is(.zk82-extra,.zk82-legacy,.zk82-legal)>summary{list-style:none!important;display:block!important;cursor:pointer!important;padding:13px 15px!important;font:750 13px/1.4 Inter,system-ui,sans-serif!important;color:var(--ml82-ink)!important}
html.zk82-matchlab body #view-lab :is(.zk82-extra,.zk82-legacy,.zk82-legal)>summary::-webkit-details-marker{display:none}
html.zk82-matchlab body #view-lab :is(.zk82-extra,.zk82-legacy,.zk82-legal)>summary:after{content:'⌄';float:right;color:var(--ml82-muted)}
html.zk82-matchlab body #view-lab .zk82-extra-caption{margin:0 15px 9px!important;font:450 11px/1.45 Inter,system-ui,sans-serif!important;color:var(--ml82-muted)!important}
html.zk82-matchlab body #view-lab .zk82-extra #ml90-tabs{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;margin:0 12px 12px!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;overflow:visible!important}
html.zk82-matchlab body #view-lab .zk82-extra .ml90-tab{display:flex!important;min-width:0!important;max-width:none!important;min-height:44px!important;border:1px solid var(--ml82-border)!important;border-radius:9px!important;background:var(--ml82-soft)!important;color:var(--ml82-ink)!important;padding:8px!important;font:730 11px/1.3 Inter,system-ui,sans-serif!important;white-space:normal!important;flex-direction:row!important;box-shadow:none!important;overflow-wrap:anywhere!important}
html.zk82-matchlab body #view-lab .zk82-extra .ml90-tab.active{background:#176b4a!important;color:#fff!important;border-color:#176b4a!important}
html.zk82-matchlab body #view-lab .zk82-extra #ml90-panel{min-width:0!important;max-width:100%!important;padding:12px!important;margin:0!important}
html.zk82-matchlab body #view-lab .zk82-legacy-body{padding:0 13px 13px}
html.zk82-matchlab body #view-lab .zk82-legacy-body>.panel{padding:13px!important;margin:8px 0;background:var(--ml82-paper)!important;border-color:var(--ml82-border)!important}
html.zk82-matchlab body #view-lab .zk82-legal .ml-disclaimer{display:block!important;padding:0 13px 12px!important;margin:0!important;font-size:11px!important;color:var(--ml82-muted)!important}
html.zk82-matchlab body #view-lab .zk82-history[hidden]{display:none!important}
html.zk82-matchlab body #ml-final-root :is(.ml-final-panel,.ml-natural,.ml-image-panel)[hidden]{display:none!important}
html[data-zk-theme=dark].zk82-matchlab{color-scheme:dark;--ml82-bg:#102219;--ml82-paper:#1a3224;--ml82-ink:#eaf8ed;--ml82-muted:#bcd4c2;--ml82-border:#466650;--ml82-soft:#24402d;--ml82-green:#66ba87}
html[data-zk-theme=dark].zk82-matchlab body #view-lab :is(.ml-final-intro h2,.ml-natural h3,.ml-field-label,.ml-ticket-match strong,.ml-ticket-total strong,.ml90-panel h2,.ml90-panel h3){color:#eaf8ed!important}
html[data-zk-theme=dark].zk82-matchlab body #view-lab :is(.ml-final-panel,.ml-natural,.ml-image-panel,.ml-progress,.ml-ticket,.ml-fixture,.ml-leagues,.ml90-panel,.ml90-card,.ml90-team-tile,.ml90-duel-form){color:var(--ml82-ink)!important;background:var(--ml82-paper)!important;border-color:var(--ml82-border)!important}
html[data-zk-theme=dark].zk82-matchlab body #view-lab :is(input,select,textarea,.ml-league-details>summary,.ml-time-preset){background:#243d2d!important;color:#eaf8ed!important;border-color:#557561!important}
html[data-zk-theme=dark].zk82-matchlab body #view-lab :is(.ml-hint,.ml-natural-desc,.ml-natural-small,.ml-notice,.ml-market-help,.ml-sub,.ml90-muted,.ml90-caveat){color:var(--ml82-muted)!important}
html.zk82-matchlab body #view-lab :is(button,summary,a,input,select,textarea):focus-visible{outline:3px solid #7cd9a0!important;outline-offset:2px!important}
@media(max-width:650px){
 html.zk82-matchlab body main.app.wrap{padding:0 15px calc(88px + env(safe-area-inset-bottom,0px))!important}
 html.zk82-matchlab body #view-lab .zk82-top{padding:14px 0 10px}
 html.zk82-matchlab body #ml-final-root .zk82-modes{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
 html.zk82-matchlab body #ml-final-root .zk82-mode{min-height:44px!important;padding:8px 5px!important}
 html.zk82-matchlab body #ml-final-root :is(.ml-final-panel,.ml-natural,.ml-image-panel){padding:12px!important}
 html.zk82-matchlab body #ml-final-root .ml-window-row input{min-width:100px!important}
}
@media(max-width:360px){
 html.zk82-matchlab body #ml-final-root .ml-fields{grid-template-columns:minmax(0,1fr)!important}
 html.zk82-matchlab body #ml-final-root .ml-fields>.ml-input-group{grid-column:1/-1!important}
 html.zk82-matchlab body #ml-final-root .ml-window-row .ml-time-preset{flex:1 1 100%!important}
}
@media(prefers-reduced-motion:reduce){html.zk82-matchlab body #view-lab *{transition:none!important;animation-duration:.001ms!important}}

/* ZK24183 actual fix: CP23402 wraps natural input, image upload and game form
   in <details>. These ORIGINAL outer wrappers must be opened by the new buttons. */
html.zk82-matchlab body #ml-final-root>.zk402-instruction[hidden]{display:none!important}
html.zk82-matchlab body #ml-final-root #zk402-methods{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:0!important;margin:0 0 12px!important;padding:0!important}
html.zk82-matchlab body #ml-final-root .zk402-method{border:0!important;background:transparent!important;box-shadow:none!important;min-width:0!important;max-width:100%!important;overflow:visible!important;margin:0!important;padding:0!important}
html.zk82-matchlab body #ml-final-root .zk402-method:not([open]){display:none!important}
html.zk82-matchlab body #ml-final-root .zk402-method>.zk402-method-bar{display:none!important}
html.zk82-matchlab body #ml-final-root .zk402-method>.zk402-method-body{padding:0!important;margin:0!important;min-width:0!important;max-width:100%!important}
html.zk82-matchlab body #ml-final-root .zk402-method[open]>.zk402-method-body{display:block!important}
html.zk82-matchlab body #ml-final-root .zk402-photo-body{min-width:0!important;max-width:100%!important}
html.zk82-matchlab body #ml-final-root .zk402-help{margin:5px 0 10px!important;border:1px solid var(--ml82-border)!important;border-radius:9px!important;background:var(--ml82-paper)!important;box-shadow:none!important}
html.zk82-matchlab body #ml-final-root .zk402-help>summary{font:650 11px/1.4 Inter,system-ui,sans-serif!important;color:var(--ml82-muted)!important;padding:10px!important}
html.zk82-matchlab body #ml-final-root .zk402-help .ml-disclaimer{color:var(--ml82-muted)!important;background:var(--ml82-paper)!important;border:0!important;font:450 11px/1.5 Inter,system-ui,sans-serif!important}
html.zk82-matchlab body #ml-final-root .ml-natural[hidden],html.zk82-matchlab body #ml-final-root .ml-image-panel[hidden],html.zk82-matchlab body #ml-final-root .ml-final-panel[hidden]{display:none!important}
