:root{font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:#eaf2fc;background:#0d1726;font-synthesis:none}*{box-sizing:border-box}body{margin:0}header{position:sticky;top:0;z-index:10;background:#14243b;border-bottom:1px solid #30445e;display:flex;justify-content:space-between;align-items:center;padding:12px max(16px,calc((100vw - 1180px)/2));gap:12px}.brand{display:flex;flex-direction:column}.brand strong{font-size:29px;letter-spacing:-1.3px}.brand strong span{color:#58b3ff}.brand small{font-size:9px;letter-spacing:1.4px;color:#a8bdd4}.actions{display:flex;align-items:center;gap:12px}.actions span{font-size:12px;color:#a8bdd4}main{max-width:1180px;margin:0 auto;padding:22px 16px 70px}footer{color:#8da1b9;text-align:center;font-size:12px;padding:20px}button,input,select,textarea{font:inherit}button{border:1px solid #4c6482;border-radius:9px;background:#243953;color:#fff;padding:10px 14px;cursor:pointer;min-height:42px}button:hover{background:#365577}button.primary{background:#1375ca;border-color:#2585d8}button.danger{background:#612b3a;border-color:#9b4557}button:disabled{opacity:.4;cursor:not-allowed}input,select,textarea{background:#101f32;color:#f5faff;border:1px solid #4b6280;border-radius:8px;padding:11px;min-width:0;width:100%}label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:#bfd0e4}h1{font-size:clamp(23px,3vw,34px);margin:0 0 8px}h2{font-size:20px;margin:0 0 12px}h3{font-size:16px;margin:0 0 10px}.muted{color:#a4b8ce}.card{border:1px solid #334b67;background:#16263d;border-radius:13px;padding:17px;margin:12px 0}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px}.fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin:14px 0}.buttons,.tabs{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:12px 0}.tabs{position:sticky;top:73px;background:#0d1726;padding:10px 0;z-index:9}.tabs button.active{background:#1476c8;border-color:#278bdf}.row{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.pill{font-size:12px;padding:5px 8px;border-radius:20px;background:#2d435d}.live{color:#79e4a3}.error{color:#ff9da7}.notice{border-left:3px solid #5cb5ff;padding:10px 12px;background:#1c314b;color:#cfe5fa;margin:12px 0}table{border-collapse:collapse;width:100%;font-size:14px}td,th{padding:11px 8px;border-bottom:1px solid #344963;text-align:left}th{color:#aac0d8;font-size:12px}td input{max-width:105px}dialog{background:#172941;color:white;border:1px solid #4a6686;border-radius:14px;min-width:min(92vw,390px)}dialog::backdrop{background:#000b}dialog form{display:grid;gap:12px}.match{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px}.match strong{font-size:18px}.match .score{font-size:23px;font-weight:750;white-space:nowrap}.match strong:last-child{text-align:right}.bracket{display:flex;flex-wrap:wrap;gap:15px}.bracket .card{flex:1;min-width:210px}.small{font-size:12px}.toolbar{margin-bottom:15px}.hidden{display:none!important}@media(max-width:600px){.actions span{display:none}.tabs{top:65px}.match strong{font-size:14px}.match .score{font-size:19px}main{padding-top:14px}}
/* meczOS-002 */
body{min-height:100vh}main{padding-bottom:44px}header{min-height:72px}.actions{flex-wrap:wrap;justify-content:flex-end}.actions #connection,.actions #syncStatus{font-size:12px;white-space:nowrap}.actions #publishSwitch{border-color:#607d9b;font-weight:700}.actions #publishSwitch[aria-pressed="true"]{background:#147c58;border-color:#48bc89;box-shadow:0 0 0 2px #3b9b782e}.actions #publishSwitch[aria-pressed="false"]{background:#322d3a}.actions #publishSwitch:disabled{opacity:.6}.login-panel{max-width:460px;margin:8vh auto 0}.login-panel h1{margin-bottom:18px}.login-panel form{display:grid;gap:14px}.card-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:14px}.pill.draft{background:#3f4153}.pill.ongoing{background:#214f44}.pill.completed{background:#39445a}.topbar{display:flex;justify-content:space-between;flex-wrap:wrap;gap:9px;margin-bottom:18px}.muted.banners{margin:12px 0}.compact{padding:9px 12px}.notice.warn{border-left-color:#f0bd58;background:#453823}.notice.errorbox{border-left-color:#e56b75;background:#49262d}.actions .tag{font-size:12px}.backLink{font-size:15px}.seg{display:inline-flex;gap:6px}.spacer{flex:1}.publish-text{font-size:12px}.card .sub{font-size:13px;margin-top:0}summary{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #69b8ff;outline-offset:2px}@media(max-width:740px){.actions{gap:6px}.actions #connection,.actions #syncStatus{font-size:10px}.brand small{font-size:8px}.brand strong{font-size:24px}header{padding:9px 12px}.actions #publishSwitch{padding:7px 10px;min-height:38px}.tabs{top:68px}}

/* meczOS-005: przywrócona nawigacja kreatora — wyłącznie układ, bez zmian API */
.home-title{margin-bottom:18px}.home-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:12px 0 26px}.home-tile{min-height:185px;padding:24px;background:#1b324e;border:1px solid #3c5b7d;border-radius:17px;text-align:left;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:10px}.home-tile-primary{background:#18578a;border-color:#3987c6}.home-tile strong{font-size:clamp(20px,2.5vw,30px)}.home-tile small{color:#d0dff2;font-size:14px}.home-tile-icon{font-size:29px;line-height:1}.home-tile-history{grid-column:span 2;min-height:90px;flex-direction:row;align-items:center;justify-content:flex-start;gap:20px}.home-tile-history small{margin-left:auto}.wizard-steps{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:7px;margin:16px 0;padding-bottom:6px;scrollbar-width:thin}.wizard-steps button{flex:1 0 auto;display:flex;align-items:center;gap:7px;background:#192b43;border-color:#426081;white-space:nowrap}.wizard-steps button.active{border-color:#81c6ff;background:#1b6096;box-shadow:inset 0 -3px #93d3ff}.wizard-steps span{display:grid;place-items:center;border:1px solid #96abc5;border-radius:50%;width:24px;height:24px;font-weight:700}.wizard-controls{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;margin:18px 0}.wizard-controls button:last-child{margin-left:auto}.scheme-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:12px}.scheme-option{padding:17px;text-align:left;display:flex;flex-direction:column;align-items:stretch;gap:16px;min-height:200px;background:#142a42}.scheme-option.selected{border:2px solid #6fb6ff;background:#214b71}.scheme-option strong{font-size:17px}.scheme-option small{color:#c1d4e9}.bracket-flow{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.bracket-flow span{padding:8px 10px;border-radius:7px;background:#335171;border:1px solid #54789d}.bracket-flow span+span:before{content:'→ ';color:#acd7ff}.card-inner{background:#112137;border-radius:10px;padding:14px;margin-top:15px;border:1px solid #395672}.checkbox-label{margin:16px 0}.checkbox-label input{width:auto}#wteams{min-height:160px}@media(max-width:650px){.home-actions{gap:9px}.home-tile{padding:16px;min-height:146px}.home-tile-history{min-height:76px}.home-tile-history small{font-size:12px}.wizard-steps button{font-size:13px;padding:9px}.wizard-controls button{flex:1}.wizard-controls button:last-child{margin-left:0}}

/* Graficzny schemat meczów — przeniesiony z wcześniejszego ST-003 */
.bracket-panel{padding:17px;border-radius:12px;border:1px solid #365a75;background:#102b42;margin:20px 0}
.bracket-scroll{width:100%;overflow-x:auto;padding-bottom:6px}
.bracket-svg{display:block;max-width:none;font-family:inherit}
.bracket-svg .bracket-column-heading{fill:#ddc18e;font-size:12px;font-weight:900;letter-spacing:.05em}
.bracket-source rect{fill:#21475d;stroke:#547e91;stroke-width:1.5}
.bracket-seed{fill:#eff9ff;font-size:11px;font-weight:750}
.bracket-hint{fill:#b2d2dc;font-size:11px}
.bracket-match>rect:first-child{fill:#18374f;stroke:#57819c;stroke-width:1.5}
.bracket-match-head{fill:#345b73}
.bracket-caption{fill:#ffe0ac;font-weight:800;font-size:12px}
.bracket-entry{fill:#eef8fb;font-size:12px;font-weight:700}
.bracket-score{fill:#ffe3a5;font-size:14px;font-weight:800}
.bracket-divider{stroke:#557488;stroke-width:1}
.bracket-edge{fill:none;stroke:#87abc0;stroke-width:2.5;opacity:.9}
.bracket-edge.bracket-winner{stroke:#85d6b4}
.bracket-edge.bracket-loser{stroke:#ecb6a0;stroke-dasharray:6 4}
.bracket-legend{display:flex;flex-wrap:wrap;gap:15px;margin-top:8px;color:#acc2d4;font-size:.73rem}
.bracket-legend i{display:inline-block;width:23px;height:2px;vertical-align:middle;background:#87abc0;margin-right:5px}
.bracket-legend .line-winner{background:#85d6b4}
.bracket-legend .line-loser{background:#ecb6a0}
.bracket-empty{padding:16px;color:#abc2d0;background:#18374d;border-radius:8px}

