/* Interface New : les coordonnées SVG et les dimensions du terrain restent dans core.js. */
:root{--bg:#f2f6f7;--paper:#fff;--surface:#f0f5f6;--ink:#102a31;--muted:#60777e;--line:#d7e3e6;--accent:#00aaa6;--accent-strong:#007e7b;--lime:var(--accent);--green:var(--accent-strong);--radius:8px;--brand-height:52px;--nav-width:14px;color-scheme:light;font-family:ObserverSans,Arial,sans-serif;color:var(--ink);background:var(--bg)}
:root[data-theme=dark]{--bg:#081c24;--paper:#102a33;--surface:#183640;--ink:#eef8fa;--muted:#a1b9c0;--line:#2b4953;--accent:#00d2c7;--accent-strong:#19d8ce;color-scheme:dark}
body,body.pitch-mode,.observer-capture{background:var(--bg);color:var(--ink);font-family:ObserverSans,Arial,sans-serif}button,input,select,textarea{font:inherit}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible,svg:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-offset:3px}input,select,textarea{background:var(--paper);color:var(--ink);border-color:var(--line)!important;min-height:40px;border-radius:6px}h1,h2,h3{font-family:ObserverScore,Arial,sans-serif;letter-spacing:.15px;font-weight:700}h1{font-size:32px}h2{font-size:25px}h3{font-size:23px}.eyebrow{color:var(--muted);font-size:10px;letter-spacing:1.2px}small,.muted,.field-help{color:var(--muted)}.button{border-radius:6px;min-height:44px;font-size:12px}.button.light,.icon-button{background:var(--paper);border:1px solid var(--line);color:var(--ink)}.button.light:hover,.icon-button:hover{background:var(--surface);border-color:var(--accent)}.button.dark{background:var(--accent);border-color:var(--accent);color:#062d34}.button.dark:hover{background:var(--accent-strong);color:#fff}.button.danger{background:var(--paper);border:1px solid #d98778;color:#c34238}.count,kbd,.button-shortcut{background:var(--surface);border-color:var(--line);color:var(--muted)}
#app{padding-left:var(--nav-width)}.rail{display:none}.shell{margin-left:0;max-width:none;padding:22px 24px 12px}.design-brandbar{height:var(--brand-height);position:sticky;top:0;z-index:80;background:#009fa5;color:white;display:flex;align-items:center;gap:20px;padding:0 20px 0 26px;box-shadow:0 1px 0 #007c82}.design-wordmark{display:flex;align-items:center;width:200px;height:48px;flex-shrink:0;text-decoration:none;color:white;font-style:italic;font-family:ObserverScore,sans-serif;font-size:26px;letter-spacing:1px}.design-wordmark img{width:200px;height:58px;object-fit:contain}.design-page-name{border-left:1px solid #ffffff80;padding-left:23px;font-family:ObserverScore,sans-serif;font-size:27px;line-height:1.1}.design-new-badge{border:1px solid #ffffff70;border-radius:4px;color:white;letter-spacing:1px;padding:3px 5px;font-size:9px}.theme-controls{margin-left:auto;display:flex;align-items:center;border:1px solid #ffffff80;border-radius:6px;overflow:hidden;flex-shrink:0}.theme-controls button{min-height:34px;padding:6px 9px;display:flex;align-items:center;gap:6px;color:inherit;font-size:11px}.theme-controls .icon{width:16px;height:16px}.theme-controls button[aria-pressed=true]{background:#fff;color:#007b80}.theme-controls button:hover{background:#ffffff30}.theme-controls button[aria-pressed=true]:hover{background:#e4ffff}.design-nav-handle{position:fixed;left:0;top:var(--brand-height);bottom:0;width:var(--nav-width);z-index:90;background:var(--paper);border-right:1px solid var(--line);display:flex;align-items:center;justify-content:center;color:var(--accent-strong);padding:0}.design-nav-handle .icon{width:14px;height:25px;transform:rotate(-90deg)}.design-nav-handle:hover{background:var(--surface)}.design-drawer{position:fixed;inset:var(--brand-height) auto 0 0;width:250px;z-index:100;background:var(--paper);border-right:1px solid var(--line);box-shadow:8px 0 32px #0002;transform:translateX(-105%);transition:transform .18s ease;display:flex;flex-direction:column;padding:22px 16px}.design-nav-backdrop{display:none;position:fixed;inset:var(--brand-height) 0 0;z-index:95;background:#05181e55}.nav-open .design-drawer{transform:translateX(0)}.nav-open .design-nav-backdrop{display:block}.design-drawer-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px}.design-drawer-header strong{font-family:ObserverScore,sans-serif;font-size:24px;color:var(--accent-strong)}.design-drawer-header button{height:38px;width:38px}.design-drawer nav{display:grid;gap:7px}.design-drawer nav button{display:flex;align-items:center;gap:13px;min-height:48px;text-align:left;padding:10px 14px;border-radius:6px;font-size:13px}.design-drawer nav button:hover{background:var(--surface)}.design-drawer nav button.active{background:var(--accent);color:#062d34;font-weight:700}.design-drawer>p{font-size:11px;line-height:1.8;color:var(--muted);margin-top:auto;padding:20px 9px 0}
/* Suivi : même grille et même rapport de dimensions que l'application d'origine. */
.observer-capture{height:auto;min-height:calc(100dvh - var(--brand-height))}.observer-capture>.match-hud{top:var(--brand-height);height:100px;grid-template-columns:minmax(0,1fr) 205px minmax(0,1fr) 95px;background:var(--paper);border-bottom:1px solid var(--line);z-index:60}.match-hud .team-score{padding:12px 36px 12px 24px;gap:15px;background:var(--paper);border-bottom:3px solid transparent}.match-hud .team-score.selected{background:color-mix(in srgb,var(--team) 5%,var(--paper));border-bottom-color:var(--team)}.team-score:hover,.team-score.selected{background:color-mix(in srgb,var(--team) 5%,var(--paper))}.team-badge,.match-hud .team-badge{display:flex;width:42px;height:30px;background:transparent;border:0;border-radius:0;overflow:hidden}.team-badge img{width:100%;height:100%;object-fit:contain}.team-copy strong,.match-hud .team-copy strong{font-family:ObserverScore,sans-serif;font-size:27px;letter-spacing:.25px;color:var(--team);text-transform:uppercase}.team-copy>span,.match-hud .team-copy>span{font-size:9px;letter-spacing:.4px;color:var(--muted)}.score,.match-hud .score{font-family:ObserverScore,sans-serif;font-size:54px;line-height:1;letter-spacing:0}.team-score .team-shortcut{background:var(--surface);color:var(--muted);border-color:var(--line)}.clock-block,.match-hud .clock-block{background:var(--paper);border-color:var(--line);padding:8px 16px}.clock-value,.match-hud .clock-value{font-family:ObserverScore,sans-serif;font-size:44px;letter-spacing:1px}.clock-toggle,.match-hud .clock-toggle{background:var(--accent);color:#063438;border-radius:6px;width:38px;height:36px}.clock-toggle.running{background:var(--ink);color:var(--paper)}.period-chip{background:var(--surface);color:var(--ink);font-size:11px;border:1px solid var(--line);border-radius:4px}.match-state{font-size:8px;color:var(--muted)}.match-state.live{color:var(--accent-strong)}.match-menu{color:var(--ink)}.match-menu>summary{font-size:12px}.match-menu-content,.extra-actions>div{background:var(--paper);color:var(--ink);border-color:var(--line);box-shadow:0 9px 30px #0003}.match-menu-content button{font-size:12px;min-height:42px}.match-menu-content button:hover,.extra-actions>div>button:hover{background:var(--surface)}.match-menu-content small{color:var(--muted)}.menu-map-filters{border-color:var(--line)}
.capture-dashboard{gap:14px;padding-top:14px}.capture-field-column,.live-stats,.capture-history,.capture-player-stats{background:var(--paper);border-color:var(--line);border-radius:6px}.capture-field-column{border-left:0;border-radius:0 6px 6px 0}.full-pitch{background:#5c8e39;border-radius:0;overflow:hidden}.capture-field-column .full-pitch .pitch{border-radius:0}.capture-field-column .field-identifiers span{background:#173c20b0;color:#fff;border:1px solid #ffffff80;border-radius:4px;font-size:10px}.capture-legend{background:var(--paper);border-color:var(--line);padding:12px 15px;font-size:11px}.legend-teams{font-size:11px;margin-bottom:10px}.legend-actions{color:var(--muted);gap:9px 15px}.legend-actions svg{color:var(--ink)}.legend-actions svg [fill='#345146']{fill:var(--ink)}.legend-actions svg [stroke='#345146']{stroke:var(--ink)}.capture-field-column>.capture-toolbar{background:var(--paper);border-color:var(--line);padding:10px 12px;min-height:56px}.capture-guidance{color:var(--muted);font-size:11px}.capture-guidance b{color:var(--ink)}.capture-buttons>button{font-size:11px;min-height:40px;padding:8px 10px;border-radius:5px}.capture-buttons>button:hover,.capture-buttons>button.selected{background:var(--surface)}.capture-buttons b{background:var(--surface);color:var(--ink)}.capture-inline-sample,.capture-inline-notice{color:var(--muted)}
.live-stats{padding:16px}.live-stats>header{margin-bottom:13px}.live-stats h2{font-size:26px;margin:0}.live-stats>header small{font-size:10px;color:var(--muted)}.live-stats-teams{padding-bottom:12px}.live-stats-teams strong{font-size:12px}.live-stat-row{padding:9px 0;border-color:var(--line)}.live-stat-row>span{font-size:10px;letter-spacing:.7px;color:var(--muted);margin-bottom:5px}.live-stat-row b{font-family:ObserverScore,sans-serif;font-size:27px;line-height:1.1;min-width:44px}.live-stat-bars{height:4px}.live-stat-bars i{height:4px}.capture-history,.capture-player-stats{padding:20px 24px;scroll-margin-top:165px}.capture-history h2,.capture-player-stats h2{font-size:27px}.capture-history>p{color:var(--muted);font-size:12px}.capture-history .event{min-height:64px;padding:12px 8px;border-color:var(--line)}.event:hover{background:var(--surface)}.event-time b{font-size:13px}.event-time small,.event-body small{font-size:10px;color:var(--muted)}.event-body strong{font-size:13px}.event-body>span{font-size:12px;color:var(--muted)}.goal-event{background:color-mix(in srgb,var(--accent) 9%,var(--paper))}.goal-tag{color:var(--accent-strong);background:var(--surface);font-size:8px}.timeline-empty,.timeline-empty strong,.timeline-empty p,.timeline-empty>span{color:var(--muted)}
/* Seuls les choix du clic sur le terrain deviennent compacts. */
.observer-capture .action-palette{width:318px;max-width:calc(100% - 20px);padding:10px;background:var(--paper);border:1px solid var(--line);border-radius:7px;box-shadow:0 8px 28px #00182045;transform:none}.palette-title{padding-bottom:8px;gap:7px}.palette-title>span{font-size:11px;line-height:1.4}.palette-title button{color:var(--muted);width:28px;height:28px}.action-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.action-grid .action-choice{position:relative;min-height:54px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;padding:7px 13px 6px 5px;background:var(--surface);border:1px solid var(--line);border-radius:5px;font-size:10px;font-weight:600;text-align:center}.action-grid .action-choice .icon{width:18px;height:18px}.action-grid .action-choice:hover{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 13%,var(--paper))}.action-grid .goal-action{background:color-mix(in srgb,var(--accent) 18%,var(--paper));border-color:var(--accent)}.action-grid .action-choice:last-child{grid-column:1/-1;min-height:38px;flex-direction:row;gap:7px}.action-palette .action-choice .action-shortcut{width:15px;min-width:15px;height:15px;top:3px;right:3px;background:var(--accent);color:#003d42;border:0;font-size:9px;padding:0;border-radius:3px}.palette-keyboard-hint{font-size:9px;color:var(--muted);border-color:var(--line);padding-top:6px;margin-top:7px}
/* Formulaires, saisie et accueil. */
dialog{background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:9px;box-shadow:0 25px 100px #00131d66}dialog::backdrop{background:#061b2466}.dialog-header,.dialog-footer{background:var(--paper);border-color:var(--line)}.dialog-header h2{font-size:29px}.dialog-body p,.dialog-body label{color:var(--muted)}.dialog-body input,.dialog-body select,.dialog-body textarea{background:var(--surface);color:var(--ink)}.dialog-body .form-grid label{font-size:12px}.flow-progress span,.flow-player,.flow-choice,.jersey-entry{background:var(--surface);border-color:var(--line);color:var(--ink)}.flow-progress .current,.flow-player:hover,.flow-player.typed,.flow-choice:hover{background:color-mix(in srgb,var(--accent) 12%,var(--paper));border-color:var(--accent);color:var(--accent-strong)}.flow-player>span,.flow-choice>span,.flow-hint,.jersey-entry small,.jersey-entry>span,.flow-footer-hint{color:var(--muted)}.jersey-entry output{color:var(--ink);font-family:ObserverScore,sans-serif;font-size:40px}.flow-player>b{font-family:ObserverScore,sans-serif;font-size:27px}.flow-choice>.icon{color:var(--accent-strong)}.flow-choice strong{font-family:ObserverScore,sans-serif;font-size:25px}.flow-unknown{color:var(--muted)}.home-shell{max-width:1320px;padding-top:28px}.home-header{margin-bottom:26px}.home-brand strong{font-family:ObserverScore,sans-serif;letter-spacing:.5px;font-size:24px}.home-intro h1{font-size:40px}.home-intro>p{color:var(--muted);font-size:14px}.roster-source,.home-start,.home-team-panel{background:var(--paper);border-color:var(--line);border-radius:7px}.roster-source{background:var(--surface)}.roster-source small,.roster-source a,.home-roster span,.home-goalie-label,.home-match-fields label,.roster-heading span,.home-team-heading label,.home-bottom-note,.home-saved-link{color:var(--muted)}.home-team-heading select{background:var(--surface);color:var(--ink)}.home-roster>div,.roster-heading{border-color:var(--line)}.home-roster small,.home-side,.home-versus{background:var(--surface);border-color:var(--line)}.home-team-panel{border-top:3px solid var(--team)}.home-header .home-brand small{color:var(--muted)}.home-start-button{font-size:13px}.scoreboard,.clock-block,.team-score{background:var(--paper);border-color:var(--line)}.topbar{margin-bottom:20px}.workspace-nav{border-color:var(--line)}.tabs button.active{border-color:var(--accent-strong)}.tabs button,.undo-link{color:var(--muted)}.player-table-card,.stats-card,.stats-panel,.match-list-item,.match-trash{background:var(--paper);border-color:var(--line)}.player-table-card th,table th{background:var(--surface);color:var(--muted)}.player-table-card td,.player-table-card th,table td,table th{border-color:var(--line)}.player-table-card td{color:var(--ink)}.match-list-item:hover{background:var(--surface)}.page-footer{border-color:var(--line);color:var(--muted)}
/* Analyse : six menus déroulants en haut, toujours combinables. */
.embedded-analysis{background:var(--paper);border-color:var(--line);border-radius:7px;overflow:visible}.embedded-analysis>.dialog-header{border-radius:7px 7px 0 0}.embedded-analysis .dialog-header h2{font-size:30px}.manager-explanation{background:var(--surface);color:var(--muted)!important;font-size:12px;padding:12px;border-radius:5px}.dialog-body>.manager-explanation+p{font-size:11px;color:var(--muted)}.report-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;position:relative;z-index:35}.report-group{position:relative;border:1px solid var(--line);border-radius:5px;background:var(--paper);padding:0;margin:0;min-width:0}.report-group summary{display:flex;align-items:center;gap:5px;list-style:none;cursor:pointer;padding:12px 10px;min-height:46px;font-size:12px;color:var(--ink);font-weight:600}.report-group summary::-webkit-details-marker{display:none}.report-group summary .icon{margin-left:auto;width:16px;height:16px;transition:transform .15s}.report-group[open]>summary{background:color-mix(in srgb,var(--accent) 12%,var(--paper));border-radius:5px;color:var(--accent-strong)}.report-group[open]>summary .icon{transform:rotate(180deg)}.report-filter-count{font-size:9px;color:var(--muted);font-weight:400;margin-left:auto}.report-filter-popover{position:absolute;top:calc(100% + 7px);left:0;width:310px;z-index:40;background:var(--paper);border:1px solid var(--line);border-radius:6px;box-shadow:0 8px 30px #00131d33;padding:13px}.report-group:nth-child(n+4)>.report-filter-popover{left:auto;right:0}.report-checks{height:auto;max-height:245px;overflow-y:auto}.report-option{font-size:12px;min-height:35px;align-items:center;padding:6px;border-radius:4px;color:var(--ink)!important}.report-option:hover{background:var(--surface)}.report-option:has(input:checked){background:color-mix(in srgb,var(--accent) 13%,var(--paper))}.report-option input{min-height:16px;width:16px!important;height:16px;accent-color:var(--accent-strong)}.report-find{background:var(--surface)!important;min-height:38px;font-size:12px}.report-filter-popover>button{min-height:35px;font-size:11px;text-decoration:underline;color:var(--accent-strong)}.report-advanced>.report-filter-popover{width:min(670px,calc(100vw - 100px));max-height:60vh;overflow:auto}.report-secondary-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.report-secondary-groups .report-filter-popover{position:static;width:100%;padding:8px;box-shadow:none;border:0}.report-secondary-groups .report-group summary{font-size:11px;padding:8px;min-height:38px}.report-advanced .form-grid{margin-top:15px;gap:12px}.report-advanced label{font-size:11px}.report-advanced .checkbox-row{margin-top:15px}.report-controls{justify-content:flex-end;margin-bottom:10px;gap:8px}.report-controls .button{font-size:11px;min-height:38px}.report-applied{display:flex;gap:7px;align-items:center;flex-wrap:wrap;padding:16px 0 4px;color:var(--muted);font-size:11px;min-height:44px}.report-applied strong{color:var(--ink);margin-right:3px}.report-applied button{background:color-mix(in srgb,var(--accent) 9%,var(--paper));color:var(--accent-strong);border:1px solid var(--accent);border-radius:14px;padding:5px 9px;font-size:10px;display:flex;gap:8px;align-items:center}.report-applied button:hover{background:var(--surface)}.report-applied button span{font-size:15px}.field-help{font-size:11px;line-height:1.7}.report-result{border-color:var(--line);padding-top:15px}.report-result>p{color:var(--muted)}#report-count{font-family:ObserverScore,sans-serif;font-size:27px}.report-map-section,.report-statistics-section{border-color:var(--line);margin:20px 0;padding-top:12px}.report-map-header h3{margin:5px 0}.report-map-header label{color:var(--muted);font-size:11px}.report-map-layout{display:grid;grid-template-columns:minmax(0,1fr) 130px;gap:17px;align-items:center}.report-field-svg{border-color:var(--line);background:var(--paper);border-radius:5px}.report-map-totals{min-width:0}#report-map-totals{border-left:2px solid var(--accent);padding-left:20px}#report-map-totals div{border-bottom:1px solid var(--line);padding:16px 0}#report-map-totals div:last-child{border:0}#report-map-totals b{display:block;font-family:ObserverScore,sans-serif;font-size:55px;line-height:1}#report-map-totals span{display:block;font-size:12px;text-transform:uppercase;color:var(--muted);margin-top:8px}#report-map-selection{background:var(--surface);color:var(--muted);font-size:11px;border-radius:4px}.report-result table{font-size:12px}.report-result th,.report-result td{padding:11px 9px;border-color:var(--line)}.report-result th{color:var(--muted);font-size:11px;white-space:nowrap;background:var(--surface)}.report-result td{color:var(--ink)}.report-result tbody tr:hover{background:var(--surface)}.embedded-analysis .report-downloads{background:var(--paper);border-color:var(--line);z-index:30;border-radius:0 0 6px 6px;padding:14px 20px}.report-downloads .button{font-size:11px;min-height:42px}.report-downloads .button.dark{flex-grow:1}.manager-document{padding:20px;background:var(--bg)}.manager-document #manager-root{max-width:1600px}.manager-document .theme-controls{color:var(--ink);border-color:var(--line)}.manager-document .theme-controls button[aria-pressed=true]{background:var(--accent);color:#05363d}#report-image-preview img{max-width:100%;border:1px solid var(--line);border-radius:6px}#toast{background:var(--ink);color:var(--paper);border-radius:6px}
@media(min-width:1600px){.live-stat-row{padding:11px 0}.live-stats{padding:20px}.live-stat-row b{font-size:30px}}
@media(max-width:1100px){.design-brandbar{gap:14px}.design-wordmark{width:175px}.design-wordmark img{width:175px}.design-page-name{font-size:24px;padding-left:16px}.observer-capture>.match-hud{grid-template-columns:minmax(0,1fr) 170px minmax(0,1fr) 80px;height:90px}.match-hud .team-score{padding-left:18px;gap:10px}.match-hud .team-copy strong{font-size:23px}.match-hud .score{font-size:47px}.match-hud .clock-value{font-size:38px}.live-stats h2{font-size:25px}.live-stat-row b{font-size:25px}.live-stats{padding:13px}.capture-field-column .capture-guidance{width:100%;font-size:11px}.report-group summary{padding:10px 7px;font-size:11px}.report-filter-count{font-size:8px}.report-grid{gap:6px}.shell{padding:18px}.report-map-layout{grid-template-columns:minmax(0,1fr) 100px}#report-map-totals{padding-left:13px}#report-map-totals b{font-size:45px}}
@media(max-width:800px){.design-new-badge{display:none}.design-wordmark{width:150px}.design-wordmark img{width:150px}.design-page-name{font-size:21px}.theme-controls button span{display:none}.observer-capture>.match-hud{grid-template-columns:minmax(0,1fr) 142px minmax(0,1fr) 55px;height:84px}.match-hud .team-score{padding:10px 25px 10px 10px;gap:8px}.match-hud .team-badge{display:none}.match-hud .team-copy strong{font-size:21px}.match-hud .team-copy>span{font-size:7px}.match-hud .score{font-size:40px}.match-hud .clock-value{font-size:33px}.match-hud .clock-block{padding:7px}.match-menu>summary .icon{display:block}.match-menu>summary span{display:none}.shell{margin-left:0;padding:14px}.report-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.report-group:nth-child(3)>.report-filter-popover{left:auto;right:0}.report-group:nth-child(4)>.report-filter-popover{left:0;right:auto}.report-map-layout{gap:10px}.report-result table{font-size:11px}}
@media(max-width:600px){.design-page-name{font-size:20px;border:0;padding-left:0}.design-brandbar{padding-left:20px;padding-right:10px;gap:8px}.design-wordmark{display:none}.home-shell{padding:18px}.home-teams{grid-template-columns:1fr}.report-map-layout{grid-template-columns:1fr}.report-map-totals,#report-map-totals{display:flex;gap:20px;border-left:0;border-top:1px solid var(--accent);padding:10px 0}#report-map-totals div{border:0;padding:0}#report-map-totals b{font-size:32px}.report-filter-popover{width:275px}.report-group:nth-child(2)>.report-filter-popover{left:50%;transform:translateX(-50%)}.report-advanced>.report-filter-popover{width:calc(100vw - 65px)}.report-secondary-groups{grid-template-columns:1fr}.manager-document{padding:8px}.capture-player-stats,.capture-history{padding:16px}.report-downloads .button.dark{white-space:normal}.observer-capture>.match-hud{grid-template-columns:minmax(0,1fr) 130px minmax(0,1fr) 40px}.match-hud .team-copy strong{font-size:17px}.match-hud .score{font-size:34px}.match-hud .team-copy>span{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media print{#new-chrome,.design-brandbar,.design-nav-handle,.design-drawer,.theme-controls{display:none!important}#app{padding-left:0}.embedded-analysis .report-downloads{display:none}.report-group[open]>.report-filter-popover{position:static;box-shadow:none}.report-map-layout{grid-template-columns:minmax(0,1fr) 100px}}

#new-chrome{position:sticky;top:0;z-index:80}.design-brandbar{position:static}.capture-buttons>button{background:var(--paper);border:1px solid var(--line);color:var(--ink)}.match-hud .clock-hint{display:none}.active-penalty{background:var(--surface);color:var(--ink);border-color:var(--line)}

.design-drawer{visibility:hidden}.nav-open .design-drawer{visibility:visible}

.observer-capture .action-palette{width:280px}.action-grid .action-choice{min-height:48px;font-size:10px}.palette-title>span{font-size:10px}.palette-keyboard-hint{font-size:8px}.live-stats-teams img{width:26px;height:18px;object-fit:contain}.live-stats-teams strong{font-family:ObserverScore,sans-serif;font-size:22px;gap:8px}.live-stats-more{border-top:1px solid var(--line)}.live-stats-more>summary{display:flex;align-items:center;justify-content:space-between;cursor:pointer;min-height:38px;color:var(--muted);font-size:11px;list-style:none}.live-stats-more>summary .icon{width:15px;height:15px}.live-stats-more[open]>summary .icon{transform:rotate(180deg)}.live-stats-more>summary::-webkit-details-marker{display:none}
body[data-view=stats] .shell>.scoreboard,body[data-view=stats] .workspace-nav,body[data-view=stats] .embedded-analysis>.dialog-header{display:none}body[data-view=stats] .topbar{margin-bottom:16px}body[data-view=stats] .topbar h1{font-size:26px;margin:4px 0}body[data-view=stats] .embedded-analysis>.dialog-body{padding-top:13px}.manager-explanation{margin:0 0 12px}.report-instructions{font-size:11px;color:var(--muted);margin:10px 0}.report-instructions summary{cursor:pointer;min-height:28px}.report-instructions p{font-size:11px}.report-result{margin-top:10px;padding-top:10px}.report-result>p{font-size:11px;margin:7px 0}.report-map-section{margin-top:10px}.report-group[data-filter-group=periods] .report-find{display:none}.report-group[data-filter-group=periods] .report-checks{display:grid;grid-template-columns:1fr 1fr;gap:5px}.report-group[data-filter-group=periods] .report-option{border:1px solid var(--line)}

#report-form{position:relative}.report-controls{float:right;gap:6px;margin:10px 0 6px 10px}.report-applied{padding-top:10px;min-height:48px}.report-instructions{margin:2px 0 5px}.report-instructions summary{min-height:24px;font-size:10px}.report-result{clear:both;margin-top:5px;padding-top:10px}.report-result>p{display:none}#report-count{font-size:23px}.report-map-section{margin:0 0 20px;padding-top:6px;border-top:0}.report-map-header{justify-content:flex-end;margin:-32px 0 8px;min-height:34px}.report-map-header h3{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.report-map-header label{font-size:10px}.report-map-header select{min-height:33px;padding:5px 8px}.report-downloads .button{font-size:11px}.report-downloads{position:static!important}
@media(max-width:600px){.report-map-header{margin:4px 0 8px}.report-controls{float:none;justify-content:flex-end}.report-result #report-count{font-size:21px}}

.report-downloads{position:sticky!important;bottom:0;display:flex;flex-wrap:nowrap!important}.report-downloads .button{min-height:44px}.report-downloads .button.dark{flex-grow:1}.report-other-downloads{position:relative}.report-other-downloads summary{cursor:pointer;list-style:none}.report-other-downloads summary::-webkit-details-marker{display:none}.report-other-downloads>div{position:absolute;right:0;bottom:calc(100% + 7px);width:235px;padding:9px;background:var(--paper);border:1px solid var(--line);box-shadow:0 6px 24px #0003;border-radius:6px;display:grid;gap:5px}.report-other-downloads>div .button{justify-content:flex-start;font-size:11px}.report-downloads .icon{width:17px;height:17px}
@media(max-width:800px){.report-downloads{gap:7px;padding:10px!important}.report-downloads .button{padding:8px 10px;font-size:10px}.report-downloads .button .icon{width:15px;height:15px}}
@media(max-width:600px){.report-downloads{position:static!important;flex-wrap:wrap!important}.report-downloads>.button.dark{flex-basis:100%}}

.report-option[hidden]{display:none!important}.event-symbol{width:25px;display:flex;justify-content:center;align-items:flex-start;color:var(--team);padding-top:2px;flex-shrink:0}.event-symbol .icon{width:20px;height:20px}.action-grid .action-choice:last-child{min-height:44px}

input:not([type="checkbox"]),select,textarea{background:var(--surface);color:var(--ink)}tbody th,tbody th b{color:var(--ink)}tbody tr:hover{background:var(--surface)}.player-chip,.source-card{background:var(--surface);border-color:var(--line);color:var(--ink)}.player-chip.selected,.player-chip:hover{background:color-mix(in srgb,var(--accent) 15%,var(--paper));border-color:var(--accent)}.player-chip small,.source-card p{color:var(--muted)}.design-brandbar .theme-controls{background:#006e76}.design-brandbar .design-new-badge{background:#006e76}
:root[data-theme=dark] .home-roster b,:root[data-theme=dark] .home-side{color:var(--ink)}

/* Révision 2 : score central et historique proches de la maquette validée. */
.capture-context{padding:10px 23px 8px;background:var(--paper);border-bottom:1px solid var(--line);min-height:48px;display:flex;justify-content:space-between;align-items:center;gap:16px}.capture-context>div{display:flex;align-items:baseline;gap:9px;min-width:0}.capture-context strong{font-family:ObserverScore,sans-serif;font-size:21px;letter-spacing:.2px}.capture-context span,.capture-context small{font-size:11px;color:var(--muted)}
.observer-capture>.match-hud.hud-compact{height:84px;min-height:84px;display:grid;grid-template-columns:minmax(0,1fr) 332px 44px;gap:14px;align-items:center;padding:0 16px;background:var(--paper);box-shadow:none;border-bottom:1px solid var(--line)}
.hud-teams{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:16px;align-items:center;min-width:0;height:100%}.hud-team{position:relative;min-width:0;display:flex;align-items:center;gap:12px;text-align:left;min-height:65px;padding:7px 20px 7px 6px;border-bottom:3px solid transparent}.hud-team:last-child{flex-direction:row-reverse;text-align:right;padding:7px 6px 7px 20px}.hud-team.selected{border-bottom-color:var(--team)}.hud-team:hover{background:var(--surface)}.hud-team img{width:36px;height:26px;object-fit:contain;flex-shrink:0}.hud-team strong{font-family:ObserverScore,sans-serif;font-size:29px;color:var(--team);text-transform:uppercase;letter-spacing:.25px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.2}.hud-team kbd{position:absolute;right:3px;top:3px;font-size:8px;padding:1px 3px;opacity:.9}.hud-team:last-child kbd{right:auto;left:3px}.hud-scores{display:flex;align-items:center;justify-content:center;gap:14px;font-family:ObserverScore,sans-serif;font-variant-numeric:tabular-nums;line-height:1;min-width:100px}.hud-scores b{font-size:53px;font-weight:700}.hud-scores>span{font-size:34px;color:var(--ink)}
.hud-timing{border-left:1px solid var(--line);display:flex;align-items:center;gap:16px;padding-left:16px;min-width:0}.hud-game-clock{min-width:190px}.hud-game-clock .period-row{gap:8px;margin-bottom:2px}.hud-game-clock .period-chip{font-family:ObserverScore,sans-serif;font-size:17px;padding:1px 8px;min-height:24px;background:transparent;border:0}.hud-game-clock .match-state{font-size:7px;letter-spacing:.7px}.hud-compact .hud-game-clock .clock-row{gap:10px}.hud-compact .hud-game-clock .clock-value{font-family:ObserverScore,sans-serif;font-size:42px;letter-spacing:.8px;line-height:1.1;white-space:nowrap}.hud-compact .hud-game-clock .clock-toggle{display:flex;align-items:center;justify-content:center;gap:7px;min-width:80px;width:auto;height:41px;padding:7px 10px;border-radius:5px;margin:0;background:var(--accent);color:#063438}.hud-game-clock .clock-toggle span{font-size:11px;font-weight:600}.hud-compact .match-menu{align-self:stretch;display:flex;align-items:center;justify-content:center}.hud-compact .match-menu>summary{width:40px;height:44px;padding:9px;display:flex;align-items:center;justify-content:center}.hud-compact .match-menu>summary>span{display:none}.hud-compact .match-menu>summary .icon{display:block;width:21px;height:21px}.hud-compact .match-menu-content{top:76px}
.shot-clock-block{border-left:1px solid var(--line);padding-left:13px;min-width:95px;color:var(--ink)}.shot-label{font-size:8px;letter-spacing:1px;font-weight:600;display:flex;align-items:center;gap:4px;white-space:nowrap;color:var(--muted)}.shot-label>button{display:inline-grid;place-items:center;width:24px;height:20px;padding:0}.shot-label .icon{width:13px;height:13px}.shot-clock-row{display:flex;align-items:center;gap:8px}.shot-clock-row>#shot-clock{font-family:ObserverScore,sans-serif;font-size:40px;line-height:1;min-width:43px;min-height:40px;padding:0 3px;font-variant-numeric:tabular-nums}.shot-clock-row>#shot-clock[aria-pressed=true]{color:var(--muted)}.shot-reset{display:flex;flex-direction:column;gap:2px;align-items:center;justify-content:center;min-width:32px;min-height:40px;border:1px solid var(--line);border-radius:4px}.shot-reset:hover{background:var(--surface);border-color:var(--accent)}.shot-reset .icon{width:16px;height:16px}.shot-reset kbd{font-size:8px;line-height:1;padding:0;border:0;background:transparent}.shot-clock-block>small{font-size:7px;letter-spacing:.6px;display:block;color:var(--muted)}.shot-clock-block.shot-warning #shot-clock{color:#b56a08}.shot-clock-block.shot-expired #shot-clock,.shot-clock-block.shot-expired>small{color:#d64d41}:root[data-theme=dark] .shot-clock-block.shot-warning #shot-clock{color:#ffd063}:root[data-theme=dark] .hud-team strong{color:color-mix(in srgb,var(--team) 78%,var(--ink))}
.capture-history{padding:10px 18px 12px;border:0;border-top:1px solid var(--accent);border-bottom:1px solid var(--line);border-radius:0;margin-top:18px}.capture-history .section-heading{min-height:40px;margin:0 0 8px;gap:14px;align-items:center}.capture-history h2{font-size:24px;margin:0;line-height:1.15}.capture-history h2 .count{display:none}.history-caption{margin-left:auto;font-size:10px;color:var(--muted)}.capture-history .section-heading>.button{min-height:34px;font-size:10px;padding:6px 10px}.capture-history .event{display:grid;grid-template-columns:25px 72px minmax(100px,.7fr) minmax(0,2fr) minmax(90px,.6fr);align-items:center;gap:12px;min-height:42px;padding:6px 10px;border:0;border-bottom:1px solid var(--line);border-radius:0;text-align:left;width:100%}.capture-history .event:hover{background:var(--surface)}.capture-history .goal-event{background:color-mix(in srgb,var(--accent) 13%,var(--paper));border-radius:4px}.capture-history .event-symbol{padding:0;width:24px;align-items:center;justify-content:center}.capture-history .event-symbol svg{width:21px;height:21px;display:block}.capture-history .event-time{display:flex;align-items:baseline;gap:6px;width:auto;padding:0;min-width:0;white-space:nowrap}.capture-history .event-time b{font-family:ObserverScore,sans-serif;font-size:20px}.capture-history .event-time small{font-size:8px;margin:0;display:inline}.capture-history .event-action{font-size:12px;line-height:1.3;font-weight:600}.capture-history .event-details{font-size:12px;line-height:1.5;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.capture-history .event-team{font-family:ObserverScore,sans-serif;font-size:21px;text-align:right;color:var(--team);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-empty{font-size:12px;color:var(--muted);padding:15px 10px;margin:0}:root[data-theme=dark] .capture-history .event-team{color:color-mix(in srgb,var(--team) 70%,var(--ink))}
.report-multi-match{display:flex;gap:8px;align-items:center;min-height:38px;font-size:11px;color:var(--ink)!important;border-bottom:1px solid var(--line);padding-bottom:9px;margin-bottom:9px}.report-multi-match input{width:16px;height:16px;min-height:16px;accent-color:var(--accent-strong)}
@media(max-width:1100px){.observer-capture>.match-hud.hud-compact{grid-template-columns:minmax(0,1fr) 300px 38px;gap:8px;padding:0 10px}.hud-teams{gap:10px}.hud-team{gap:8px;padding-right:13px}.hud-team:last-child{padding-left:13px}.hud-team strong{font-size:25px}.hud-team img{width:29px;height:23px}.hud-scores{gap:9px;min-width:84px}.hud-scores b{font-size:45px}.hud-scores>span{font-size:28px}.hud-timing{gap:10px;padding-left:10px}.hud-game-clock{min-width:172px}.hud-compact .hud-game-clock .clock-value{font-size:38px}.hud-compact .hud-game-clock .clock-toggle{min-width:71px;padding:6px 8px;gap:5px}.hud-game-clock .clock-toggle span{font-size:10px}.shot-clock-block{padding-left:9px;min-width:87px}.shot-clock-row{gap:4px}.capture-context{padding-inline:18px}.capture-context strong{font-size:19px}.capture-context span,.capture-context small{font-size:10px}}
@media(max-width:850px){.observer-capture>.match-hud.hud-compact{grid-template-columns:minmax(0,1fr) 264px 33px;gap:5px;padding-inline:7px}.hud-team strong{font-size:21px}.hud-team img{width:25px;height:20px}.hud-team{gap:6px;padding-right:10px}.hud-team:last-child{padding-left:10px}.hud-scores{gap:6px;min-width:65px}.hud-scores b{font-size:39px}.hud-timing{padding-left:8px;gap:7px}.hud-game-clock{min-width:150px}.hud-compact .hud-game-clock .clock-value{font-size:34px}.hud-compact .hud-game-clock .clock-toggle{min-width:58px;gap:3px;padding-inline:5px}.hud-game-clock .clock-toggle span{font-size:9px}.hud-game-clock .clock-toggle .icon{width:13px;height:13px}.shot-clock-block{min-width:78px;padding-left:7px}.shot-clock-row>#shot-clock{font-size:35px;min-width:35px}.shot-label{font-size:7px;letter-spacing:.4px}.capture-history .event{grid-template-columns:22px 65px 105px minmax(0,1fr) 95px;gap:8px}.capture-context{display:block;padding:8px 14px}.capture-context>div{gap:7px}.capture-context small{display:block;margin-top:2px}.capture-context strong{font-size:18px}.capture-context span{font-size:9px}}
@media(max-width:620px){.observer-capture>.match-hud.hud-compact{height:auto;grid-template-columns:minmax(0,1fr) 35px;gap:0;padding:0 8px}.hud-teams{grid-column:1;min-height:64px}.hud-compact .match-menu{grid-column:2;grid-row:1}.hud-timing{grid-column:1/-1;justify-content:center;border-left:0;border-top:1px solid var(--line);padding:6px;gap:20px}.hud-game-clock{display:flex;align-items:center;gap:10px}.hud-game-clock .period-row{display:block}.hud-game-clock .match-state{display:none}.shot-label{font-size:8px}.shot-clock-block>small{display:none}.capture-history .event{grid-template-columns:21px 56px 80px minmax(0,1fr);gap:6px}.capture-history .event-team{display:none}.capture-history .event-details{font-size:11px}.capture-history .event-action{font-size:11px}.capture-history .event-time small{display:none}.history-caption{display:none}.hud-team strong{font-size:23px}}
.capture-history .section-heading{padding:0}

body[data-view=matches] .shell>.scoreboard,body[data-view=matches] .workspace-nav{display:none}

/* Mode terrain : proportions SVG préservées et page masquée, dialogues dans le même plein écran. */
body.field-focus{--brand-height:0px;overflow:hidden!important;background:#173322}body.field-focus #new-chrome{display:none}body.field-focus #app{padding:0}body.field-focus .observer-capture{height:100dvh;min-height:0;overflow:hidden;background:#173322}body.field-focus .capture-context,body.field-focus .match-hud,body.field-focus .live-stats,body.field-focus .capture-legend,body.field-focus .capture-toolbar,body.field-focus .hud-penalties,body.field-focus .capture-history,body.field-focus .capture-player-stats,body.field-focus .capture-inline-notice,body.field-focus .capture-inline-sample,body.field-focus .field-identifiers{display:none!important}body.field-focus .capture-dashboard{position:fixed;inset:62px 0 0;display:block;margin:0;padding:0;gap:0}body.field-focus .capture-field-column{width:100%;height:100%;border:0;border-radius:0;background:#173322}body.field-focus .capture-field-column .full-pitch{position:relative;width:100%;height:100%;aspect-ratio:auto;border-radius:0;background:#173322}body.field-focus .capture-field-column .full-pitch .pitch{display:block;width:100%;height:100%;aspect-ratio:auto;max-height:none;object-fit:contain;border-radius:0}.field-focus-controls{position:fixed;left:10px;right:10px;top:7px;z-index:80;display:flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:4px 8px;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:7px;box-shadow:0 2px 12px #00191c35}.field-focus-controls button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:38px;border:1px solid transparent;border-radius:5px;padding:5px 9px;font-size:12px;white-space:nowrap}.field-focus-controls button:hover{background:var(--surface)}.field-focus-controls kbd{font-size:8px;padding:1px 3px}.field-focus-controls .icon{width:18px;height:18px}.focus-teams{display:flex;align-items:center;gap:5px}.field-focus-controls .focus-team{border-color:var(--line);max-width:190px}.focus-team strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.field-focus-controls .focus-team.selected{border-color:var(--team);background:color-mix(in srgb,var(--team) 12%,var(--paper));box-shadow:inset 0 -2px var(--team)}.focus-score{font-family:ObserverScore,sans-serif;font-size:26px;line-height:1;padding:0 6px;white-space:nowrap}.focus-game{background:var(--surface)}#focus-game-clock{font-family:ObserverScore,sans-serif;font-size:26px;line-height:1}.field-focus-controls .focus-game.running{border-color:var(--accent)}.focus-shot{display:flex;align-items:center;border-left:1px solid var(--line);padding-left:5px}.focus-shot small{font-size:8px;color:var(--muted);letter-spacing:.5px}.focus-shot b{font-family:ObserverScore,sans-serif;font-size:26px;line-height:1}.focus-shot [aria-pressed=true]{opacity:.65}.focus-shot .shot-warning{color:#d15034}.focus-undo{border-color:var(--line)!important}.field-focus-controls .focus-exit{border-color:var(--line);margin-left:4px}.field-focus-controls .focus-exit span{font-size:11px}body.field-focus #toast{z-index:150}
@media(max-width:850px){.field-focus-controls{gap:5px;padding-inline:5px}.field-focus-controls .focus-team{max-width:150px;padding-inline:6px}.focus-team strong{font-size:11px}.field-focus-controls button{padding-inline:6px}.focus-score{font-size:24px;padding-inline:2px}.field-focus-controls .focus-exit span{display:none}}
@media(max-width:600px){.field-focus-controls{gap:3px;left:5px;right:5px}.field-focus-controls .focus-team{max-width:104px;gap:3px}.field-focus-controls kbd{display:none}.field-focus-controls .focus-team kbd{display:block}.focus-shot small{display:none}.field-focus-controls button{padding-inline:4px}.field-focus-controls .focus-undo{display:none}.focus-teams{gap:3px}}

.focus-sync-status{font-size:9px;letter-spacing:.4px;color:var(--muted);white-space:nowrap;padding:0 4px}.focus-sync-status:empty{display:none}#sixes-playit-dialog .dialog-body label{display:grid;gap:6px;margin:16px 0 8px;color:var(--ink)}#sixes-playit-dialog select{width:100%;min-height:40px;background:var(--surface);border:1px solid var(--line);border-radius:5px;padding:8px;color:var(--ink)}#sixes-playit-dialog [data-playit-close]{min-width:36px;min-height:36px;border:1px solid var(--line);border-radius:5px;font-size:20px}#clock-toggle:disabled,.shot-clock-row button:disabled,.field-focus-controls button:disabled{opacity:.6;cursor:not-allowed}