:root{--dark:#10243a;--blue:#1769ad;--gold:#f2bd4d;--muted:#63778a;--line:#d5e2eb;--ink:#21384a}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;font:14px system-ui,Segoe UI,Arial,sans-serif;color:var(--ink)}button{cursor:pointer;font:inherit;border:1px solid #beced9;border-radius:8px;padding:9px 13px;background:#fff;color:#25425c}button:hover:not(:disabled){background:#eff6fa}button:disabled{cursor:not-allowed;opacity:.48}button.primary{background:#176eac;color:white;border-color:#176eac;font-weight:700}button.primary:hover{background:#125e96}button.large{padding:15px 25px;font-size:16px}#renderCanvas{position:fixed;inset:0;width:100vw;height:100vh;display:block;outline:none;touch-action:none;background:#89a3b3}#top{position:fixed;top:0;left:0;right:0;display:flex;align-items:center;gap:18px;background:#152c43ed;color:#eef6ff;min-height:60px;padding:9px 18px;border-bottom:1px solid #6a8eaa;z-index:10;backdrop-filter:blur(9px)}.brand{display:flex;align-items:center;gap:9px;font-size:19px;white-space:nowrap}.brand span{font-size:11px;color:#aec9de;font-weight:600;letter-spacing:.7px}.stats{display:flex;gap:9px;flex:1;justify-content:center;flex-wrap:wrap}.stats>span{background:#28465c;padding:7px 10px;border-radius:7px;white-space:nowrap;font-weight:650}#top button{background:#2a4c66;color:#e8f5ff;border-color:#55758d}.header-actions{display:flex;gap:6px}#task{position:fixed;left:15px;top:75px;z-index:5;background:#fffffff2;border:1px solid #d3e2ea;box-shadow:0 7px 25px #071c3630;border-radius:11px;padding:13px 17px;display:flex;gap:13px;max-width:min(640px,calc(100vw - 30px));align-items:center}#taskIndex{background:#1c75b0;color:white;border-radius:9px;min-width:36px;height:36px;display:grid;place-items:center;font-weight:900;font-size:18px}#task b{font-size:15px;display:block}#task small{display:block;color:#698196;margin-top:3px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(20px);z-index:25;background:#152e43f0;border-radius:9px;max-width:calc(100vw - 30px);min-width:220px;padding:11px 18px;color:white;font-weight:650;box-shadow:0 6px 23px #15233455;opacity:0;transition:.22s;pointer-events:none;text-align:center}#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}#overlay{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:#07152499;z-index:22;padding:18px}#overlay.hidden{display:none}.dialog{max-width:650px;width:100%;max-height:88vh;overflow:auto;background:#f5f9fc;border-radius:15px;box-shadow:0 22px 90px #0007}.dialog-head{position:sticky;top:0;background:#f5f9fc;display:flex;justify-content:space-between;align-items:center;padding:19px 23px 12px;border-bottom:1px solid var(--line);z-index:1}.dialog-head small{color:#1973af;letter-spacing:1px;font-weight:900}.dialog-head h2{font-size:22px;margin:4px 0 0}.x{font-size:27px;line-height:20px;padding:6px 11px}#modalBody{padding:19px 23px 23px}.cards{display:grid;gap:10px}.card{padding:13px 15px;background:white;border:1px solid #d7e3eb;border-radius:10px}.card h3{margin:0 0 6px;font-size:16px}.card small,.muted{color:#708596}.card p{margin:7px 0 12px}.card footer{display:flex;gap:7px;flex-wrap:wrap;margin-top:9px}.btnrow{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.notice{padding:11px 13px;background:#e8f1f6;border-radius:8px;border-left:3px solid #2b7aa9;margin:10px 0}.notice.warn{background:#fff3df;border-color:#d69732}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:9px}.chip{display:inline-block;font-weight:700;background:#edf2f6;padding:4px 8px;border-radius:5px;margin:3px}.data{width:100%;border-collapse:collapse}.data th,.data td{padding:8px 7px;border-bottom:1px solid #d8e2eb;text-align:left}.data td:last-child{text-align:right}.data th{color:#617c8e;font-size:12px}.opening{position:fixed;inset:0;z-index:30;background:linear-gradient(110deg,#102a42f7,#193e5dbd),#1a3c56;display:flex;align-items:center;justify-content:center;padding:24px;color:white}.opening.hidden{display:none}.opening-content{max-width:570px}.opening .eyebrow{letter-spacing:2px;color:#f4c76d;font-weight:900}.opening h1{font-size:clamp(38px,6vw,69px);line-height:1.04;margin:15px 0 20px}.opening p{font-size:16px;line-height:1.6;color:#e1eaf2}.startnote{padding:15px 0 22px;color:#c9d8e5}.footnote{font-size:12px!important;color:#b4cbdb!important}#loading{position:fixed;inset:0;z-index:35;background:#14324bf5;color:white;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px}#loading strong{font-size:27px}#loading p{font-size:14px;color:#c9dceb}.loadingbar{height:8px;width:250px;border-radius:10px;background:#305874;overflow:hidden}.loadingbar i{height:100%;background:#f5c358;width:0%;display:block;transition:width .2s}@media(max-width:850px){#top{flex-wrap:wrap;justify-content:space-between}.stats{order:3;width:100%}.brand span{display:none}#task{top:120px}.grid2{grid-template-columns:1fr}}

.vanPhase{position:fixed;bottom:14px;left:14px;z-index:4;background:#17364edc;color:#fff;border-radius:8px;padding:7px 12px;font-size:12px;pointer-events:none}.soundToggle{position:fixed;right:14px;bottom:14px;z-index:5;background:#17364edc;color:#fff;border-radius:8px;padding:7px 12px;font-size:12px}.integrationHidden{display:none}

.buffer-slots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}.buffer-slot{display:flex;flex-direction:column;gap:8px;text-align:left;padding:16px;border:2px solid #bacddb;background:#fff;color:#233c50;border-radius:10px;min-height:120px}.buffer-slot.selected{border-color:#1778b5;background:#e7f3fb;box-shadow:0 0 0 2px #1778b522}.buffer-slot strong{font-size:20px}.buffer-slot small{font-size:14px;line-height:1.5}.slot-state{font-weight:700}.buffer-slot:focus-visible{outline:3px solid #f1a844;outline-offset:2px}
.rack-levels{display:flex;flex-direction:column;gap:10px;margin:12px 0}.rack-level{border:2px solid #bacddb;border-radius:10px;padding:10px 12px;background:#fff}.rack-level header{display:flex;gap:10px;align-items:baseline;margin-bottom:6px}.rack-level.blocked{background:#fde8ef;border-color:#e58fab}.rack-level.blocked .card{opacity:.85}.reason{color:#b0305a;font-weight:600;font-size:12px}
.rack-slots{display:grid;grid-template-columns:1fr 1fr;gap:8px}.rack-slot{border:1px dashed #9fb6c6;border-radius:8px;padding:8px;background:#f8fbfd}.rack-level.blocked .rack-slot{background:#fff3f7;border-color:#e58fab}

.dialog.wide{max-width:860px}
.dlv-sum{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:0;background:#e8f1f6;border-left:3px solid #2b7aa9;border-radius:10px;margin:6px 0 10px}
.dlv-sum>div{display:flex;align-items:center;gap:9px;padding:12px 14px;border-right:1px solid #cddde8}.dlv-sum>div:last-child{border-right:0}
.dlv-ic{font-size:20px}.dlv-h{margin:14px 0 8px;font-size:19px}
.dlv-card{display:flex;gap:14px;align-items:flex-start;margin-bottom:10px}
.dlv-ico{flex:0 0 54px;height:54px;border-radius:12px;background:#dcebf5;display:grid;place-items:center;font-size:28px}
.dlv-main{flex:1;min-width:0}.dlv-top{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.dlv-badge{white-space:nowrap;background:#d9ebf7;color:#175f94;font-weight:700;font-size:13px;padding:6px 12px;border-radius:999px}
.dlv-hint{margin:8px 0 0;color:#617789;font-size:13px}
.dlv-cartons{margin:8px 0;padding:8px 10px;background:#f0f6fa;border-radius:8px;display:grid;gap:3px;font-size:14px}
.dlv-take{display:flex;flex-wrap:wrap;gap:7px;align-items:center;margin-top:6px}.dlv-take>span:first-child{font-weight:700}
.dlv-foot{position:sticky;bottom:-23px;margin:14px -23px -23px;padding:14px 23px;background:#f5f9fc;border-top:1px solid #d5e2eb;display:flex;justify-content:space-between;align-items:center;gap:16px}
.dlv-note{display:grid;gap:3px}.dlv-note small{color:#617789}
.dlv-end{font-size:17px;padding:13px 22px;white-space:nowrap}
.dlv-end:disabled{background:#c3ccd4;border-color:#c3ccd4;color:#fff}

/* PATCH 23: pasek udźwigu */
.loadbar{margin:8px 0 10px}
.loadbar-top{display:flex;justify-content:space-between;font-size:12px;color:#587084;margin-bottom:4px}
.loadbar-top b{color:#1f3447}
.loadbar-track{height:10px;border-radius:6px;background:#dbe6ee;overflow:hidden}
.loadbar-fill{height:100%;border-radius:6px;transition:width .25s,background .25s}

/* PATCH 23: stół rozpakowywania — 10 slotów, 2 kolumny × 5 wierszy */
.tgrid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ts-h{margin:10px 0 8px;font-size:15px}
.tslot{display:flex;align-items:center;gap:8px;min-height:62px;padding:7px 9px;background:#fff;border:1px solid #d7e3eb;border-radius:9px}
.tslot.empty{background:#eef4f8;border-style:dashed}
.ts-n{flex:none;width:22px;height:22px;border-radius:50%;background:#dbe6ee;color:#40586b;font-size:12px;font-weight:800;display:grid;place-items:center}
.ts-body{flex:1;min-width:0;display:flex;flex-direction:column}
.ts-body b{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ts-body small{color:#708596;font-size:12px}
.ts-act{display:flex;gap:5px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.ts-act button{padding:5px 9px;font-size:12px}
.ts-act input{width:46px;padding:4px;border:1px solid #b9cedd;border-radius:6px;font-size:12px}

/* PATCH 29: zbiorcze pobieranie */
.pickbar{position:sticky;top:74px;z-index:2;display:flex;justify-content:space-between;align-items:center;gap:10px;margin:8px 0;padding:9px 12px;background:#e9f3fa;border:1px solid #bcd4e5;border-radius:9px}
.pickbar .reason{margin-left:6px}

/* PATCH 32: półki regałów jak stół */
.rack-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}
.tslot.blocked{background:#f1ece4;border-style:dashed;opacity:.8}

.stats>button{background:#8a3b2e!important;border-color:#c9715f!important;color:#fff!important;padding:7px 12px;border-radius:7px;font-weight:700}.stats>button:hover{background:#a64636!important}

/* PATCH 44: pasek postępu czynności + ostrzeżenie licznika oczekiwania */
#progress{position:fixed;left:50%;bottom:90px;transform:translateX(-50%);z-index:60;min-width:280px;padding:10px 14px;border-radius:10px;background:rgba(14,20,30,.92);color:#fff;font:600 14px system-ui,sans-serif;box-shadow:0 6px 24px rgba(0,0,0,.45);text-align:center}
#progress.hidden{display:none}
#progress .pbar{margin-top:8px;height:12px;border-radius:6px;background:rgba(255,255,255,.18);overflow:hidden}
#progress .pbar i{display:block;height:100%;width:0;background:linear-gradient(90deg,#f7b733,#fc4a1a);border-radius:6px}
.stats .warn{color:#ff5a5a!important;font-weight:700;animation:wpulse 1s infinite}
@keyframes wpulse{50%{opacity:.55}}

/* PATCH 46: tryb dotykowy (klasa body.touch dodawana przez JS/mobile.js tylko na urządzeniach z palcem jako głównym wskaźnikiem) */
html,body{overscroll-behavior:none;-webkit-tap-highlight-color:transparent}
#tapMode,#dpad,#equipActs,#fsBtn{display:none}
body.touch{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
body.touch #renderCanvas{touch-action:none}
body.touch button{min-height:40px}
body.touch #top{min-height:0;padding:max(4px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) 4px max(8px,env(safe-area-inset-left));gap:8px;flex-wrap:nowrap}
body.touch .brand{display:none}
body.touch .stats{order:0;width:auto;gap:5px;flex-wrap:nowrap;justify-content:flex-start;overflow:hidden}
body.touch .stats>span,body.touch .stats>button{padding:5px 7px;font-size:12px}
body.touch .header-actions{margin-left:auto}
body.touch .header-actions button,body.touch #top button{padding:6px 9px;font-size:13px}
body.touch #fsBtn{display:inline-block}
body.touch #task{top:52px;left:8px;padding:7px 10px;gap:8px;max-width:min(420px,60vw)}
body.touch #task b{font-size:13px}body.touch #task small{font-size:11px}
body.touch #taskIndex{min-width:26px;height:26px;font-size:14px}
body.touch .vanPhase{display:none}
body.touch #toast{bottom:auto;top:56px;max-width:min(520px,calc(100vw - 30px))}
body.touch #overlay{padding:6px}
body.touch .dialog{max-width:min(720px,100%);max-height:calc(100dvh - 12px)}
body.touch .dialog-head{padding:10px 14px 8px}body.touch .dialog-head h2{font-size:18px}
body.touch #modalBody{padding:10px 14px 14px}
body.touch .card footer button,body.touch .btnrow button{min-height:44px}
body.touch .soundToggle{bottom:auto;top:52px;right:8px}
body.touch #progress{bottom:120px}
body.touch #tapMode{display:flex;position:fixed;left:max(10px,env(safe-area-inset-left));bottom:12px;z-index:9;gap:0;border-radius:12px;overflow:hidden;box-shadow:0 4px 16px #0006;opacity:0;pointer-events:none;transition:opacity .2s}
body.touch #tapMode button{border-radius:0;border:0;background:#17364ee0;color:#cfe3f3;min-height:48px;padding:0 14px;font-weight:700}
body.touch #tapMode button.on{background:#f2bd4d;color:#10243a}
body.touch #dpad{display:grid;grid-template-columns:repeat(3,54px);grid-template-rows:repeat(3,54px);gap:4px;position:fixed;right:max(14px,env(safe-area-inset-right));bottom:14px;z-index:9;opacity:0;pointer-events:none;transition:opacity .2s;touch-action:none}
body.touch #equipActs{display:flex;flex-direction:column;gap:8px;position:fixed;right:calc(max(14px,env(safe-area-inset-right)) + 190px);bottom:14px;z-index:9;opacity:0;pointer-events:none;transition:opacity .2s;touch-action:none}
body.touch #dpad i,body.touch #equipActs i{display:grid;place-items:center;border-radius:14px;background:#17364ecc;color:#fff;font:700 20px system-ui;font-style:normal;border:1px solid #6a8eaa;touch-action:none;user-select:none}
body.touch #equipActs i{width:64px;height:50px;font-size:18px}body.touch #equipActs small{display:block;font-size:10px;font-weight:600;margin-top:-4px}
body.touch #dpad i.down,body.touch #equipActs i.down{background:#f2bd4d;color:#10243a}
body.touch #tapMode.show,body.touch #dpad.show,body.touch #equipActs.show{opacity:1;pointer-events:auto}
@media (pointer:coarse) and (orientation:portrait){body.touch #task{top:92px}body.touch #top{flex-wrap:wrap}}
body.touch .opening{align-items:flex-start;overflow:auto;padding:14px 18px}
body.touch .opening h1{font-size:clamp(26px,7vh,42px);margin:8px 0 10px}
body.touch .opening p{font-size:14px;line-height:1.45;margin:6px 0}
body.touch .startnote{padding:8px 0 12px;font-size:13px}
body.touch .opening button.large{padding:12px 22px}
body.touch #toast{top:auto;bottom:14px;max-width:max(240px,calc(100vw - 460px));font-size:13px;padding:8px 12px}

/* PATCH 47: lista etapów */
#stageList{display:grid;gap:12px;margin:18px 0 10px}
.stageCard{display:flex;gap:16px;align-items:center;padding:16px 18px;border-radius:14px;background:#ffffff1c;border:1px solid #8fb2cc66;color:#fff;text-decoration:none;transition:.15s}
a.stageCard:hover{background:#ffffff30;border-color:#f2bd4d;transform:translateY(-1px)}
.stageCard.locked{opacity:.42;filter:grayscale(.8);cursor:not-allowed;pointer-events:none}
.stageNo{display:grid;place-items:center;min-width:46px;height:46px;border-radius:12px;background:#f2bd4d;color:#10243a;font-weight:900;font-size:22px}
.stageBody{display:flex;flex-direction:column;gap:4px}.stageBody b{font-size:18px}.stageBody small{color:#d3e2ee;font-size:13px;line-height:1.4}.stageBody em{font-style:normal;font-size:12px;color:#f4c76d}.stageBody em.ok{color:#8be0a8}
#stageMenu{padding:9px 13px}
@media(max-width:1300px){body:not(.touch) .brand span{display:none}}

/* ───── PATCH 54: HUD nakładany na scenę (zamiast pełnego paska) ───── */
#hud{position:fixed;top:0;left:0;right:0;display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding:max(10px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) 0 max(12px,env(safe-area-inset-left));z-index:10;pointer-events:none}
#hudL{display:flex;align-items:center;gap:12px;min-width:0;max-width:calc(100vw - 24px);background:#10243acf;color:#eef6ff;border:1px solid #ffffff26;border-radius:12px;padding:6px 12px 6px 11px;backdrop-filter:blur(6px);box-shadow:0 5px 18px #0006;pointer-events:none}
#hudL #clock{font-size:34px;font-weight:800;letter-spacing:1px;font-variant-numeric:tabular-nums;line-height:1;padding-right:12px;border-right:1px solid #ffffff2e}
.hud-grid{display:grid;grid-template-columns:auto auto;gap:4px 7px;min-width:0}
.hud-grid>span,.hud-grid>.vanPhase{background:#ffffff14;border-radius:7px;padding:3px 9px;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.35}
#hud .vanPhase{position:static;bottom:auto;left:auto;z-index:auto;color:#cfe3f3;pointer-events:none}
#hud .warn{color:#ff7b7b!important;font-weight:700;animation:wpulse 1s infinite}
#hudR{position:relative;display:flex;gap:7px;align-items:flex-start;pointer-events:none}
.hud-btn{pointer-events:auto;background:#10243acf;color:#eef6ff;border:1px solid #ffffff33;border-radius:10px;padding:10px 14px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;font-size:13px;backdrop-filter:blur(6px);box-shadow:0 5px 18px #0006;white-space:nowrap}
.hud-btn:hover:not(:disabled){background:#1d3d5a}
.hud-prints{background:#f2bd4d;color:#1a2b3c;border-color:#ffd983;position:relative}
.hud-prints:hover:not(:disabled){background:#ffd067}
.hud-prints b{display:inline-grid;place-items:center;min-width:19px;height:19px;border-radius:10px;background:#1a2b3c;color:#ffd983;font-size:11px;margin-left:6px;padding:0 5px}
#menuBtn{padding:10px 13px;font-size:17px;line-height:1}
#hudMenu{position:absolute;right:0;top:calc(100% + 7px);display:flex;flex-direction:column;gap:2px;min-width:240px;background:#10243af5;border:1px solid #ffffff2e;border-radius:12px;padding:6px;box-shadow:0 14px 40px #000a;pointer-events:auto;z-index:12}
#hudMenu.hidden{display:none}
#hudMenu button{background:transparent;color:#eef6ff;border:0;text-align:left;padding:10px 12px;border-radius:8px;font-weight:600;white-space:nowrap}
#hudMenu button:hover{background:#ffffff1c}
.hud-ver{padding:8px 12px 6px;margin-top:4px;border-top:1px solid #ffffff22;color:#9db6c9;font-size:11px;line-height:1.5;letter-spacing:.4px}
#task{top:84px!important}
#audioPanel{top:74px!important}
body.touch #hud{padding-top:max(6px,env(safe-area-inset-top));gap:6px}
body.touch #hudL{padding:4px 8px;gap:8px}
body.touch #hudL #clock{font-size:24px;padding-right:8px}
body.touch .hud-grid>span,body.touch .hud-grid>.vanPhase,body.touch #hud .vanPhase{font-size:11px;padding:2px 6px;display:block}
body.touch .hud-btn{padding:8px 10px;font-size:12px}
body.touch .hud-lbl{display:none}
body.touch #task{top:60px!important}
@media (max-width:760px){
 #hudL #clock{font-size:26px;padding-right:8px}.hud-grid>span,.hud-grid>.vanPhase{font-size:11px;padding:2px 6px}
 .hud-lbl{display:none}.hud-btn{padding:9px 11px}
 #task{top:70px!important}
}
@media (max-width:560px){
 #hud{flex-wrap:wrap;row-gap:6px}
 #hudL{display:contents}
 #hudL #clock{order:0;background:#10243acf;border:1px solid #ffffff26;border-radius:12px;padding:6px 12px;font-size:24px;backdrop-filter:blur(6px);box-shadow:0 5px 18px #0006}
 #hudR{order:1}
 .hud-grid{order:2;width:100%;grid-template-columns:1fr 1fr;background:#10243acf;border:1px solid #ffffff26;border-radius:12px;padding:5px;backdrop-filter:blur(6px);box-shadow:0 5px 18px #0006}
 .hud-grid>span,.hud-grid>.vanPhase{font-size:12px}
 #task{top:124px!important}
}
@media (pointer:coarse) and (max-width:560px) and (orientation:portrait){body.touch #task{top:124px!important}}
/* PATCH 54: okno WYDRUKI */
.pr-note{color:#5b7285;margin:0 0 12px;font-size:13px}
.pr-list{display:grid;gap:9px}
.pr-item{display:flex;align-items:center;gap:13px;width:100%;text-align:left;padding:12px 14px;background:#fff;border:1px solid #cddbe5;border-radius:11px}
.pr-item:hover{background:#f0f7fc;border-color:#8fb5d0}
.pr-ico{flex:none;width:44px;height:52px;background:#fff;border:1px solid #b9c9d5;border-radius:4px;display:grid;place-items:center;font-size:11px;font-weight:900;color:#1a5c8d;box-shadow:2px 3px 0 #dbe6ee;letter-spacing:.5px}
.pr-ico.mm{color:#9a5a12}
.pr-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.pr-main b{font-size:15px}.pr-main small{color:#6a8091}
.pr-go{color:#1b73ad;font-weight:700;font-size:13px}
.pr-empty{padding:30px 14px;text-align:center;color:#5b7285;background:#fff;border:1px dashed #b9cad6;border-radius:12px;font-size:15px}
.paper{background:#fffef9;border:1px solid #cfcab8;box-shadow:0 3px 14px #0002;padding:22px 24px;font-family:"Courier New",ui-monospace,monospace;color:#22262b;border-radius:3px}
.paper h3{margin:0 0 2px;font-size:19px;letter-spacing:.5px}
.paper .p-meta{display:grid;grid-template-columns:auto 1fr;gap:2px 14px;margin:10px 0 14px;font-size:13px}
.paper .p-meta span:nth-child(odd){color:#7a7766}
.paper table{width:100%;border-collapse:collapse;font-size:14px}
.paper th{text-align:left;border-bottom:2px solid #22262b;padding:5px 4px;font-size:12px;letter-spacing:.6px}
.paper td{border-bottom:1px dashed #c9c4b0;padding:6px 4px}.paper td:last-child,.paper th:last-child{text-align:right}
.paper .p-foot{margin-top:14px;font-size:12px;color:#7a7766;display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}
.pr-back{margin-bottom:12px}
.hud-prints b.hidden{display:none}
body.touch .soundToggle{top:62px!important}
@media (max-width:560px){body.touch .soundToggle{top:128px!important}}

/* ───── PATCH 55: konta i tablica wyników ───── */
.acct-bar{position:fixed;top:14px;right:14px;display:flex;gap:8px;z-index:5}
.acct-bar button{background:#10243acf;color:#eef6ff;border:1px solid #ffffff33;border-radius:10px;padding:9px 14px;font-weight:700;font-size:13px}
.acct-bar button:hover{background:#1d3d5a}
.acct-ov{position:fixed;inset:0;z-index:90;background:#0b1620b3;display:grid;place-items:center;padding:14px;overflow-y:auto}
.acct-ov.hidden{display:none}
.acct-card{position:relative;width:min(520px,100%);max-height:calc(100vh - 28px);overflow-y:auto;background:#f4f9fd;color:#1a2b3c;border-radius:16px;padding:22px 24px 24px;box-shadow:0 20px 60px #000a}
.acct-card h2{margin:0 0 12px;font-size:22px}
.acct-x{position:absolute;top:10px;right:12px;width:36px;height:36px;border-radius:9px;border:1px solid #c6d6e2;background:#fff;font-size:22px;line-height:1;color:#1a2b3c}
.acct-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 14px}
.acct-tabs button{padding:8px 14px;border-radius:9px;border:1px solid #c6d6e2;background:#fff;font-weight:700;color:#35546b}
.acct-tabs button.on{background:#1b73ad;border-color:#1b73ad;color:#fff}
.acct-card form{display:grid;gap:12px}
.acct-card label{display:grid;gap:5px;font-weight:700;font-size:13px;color:#35546b}
.acct-card input{padding:11px 12px;border-radius:9px;border:1px solid #b9cad6;background:#fff;font-size:16px;color:#1a2b3c}
.acct-card input:focus{outline:2px solid #1b73ad;border-color:#1b73ad}
.acct-primary{padding:11px 16px;border-radius:10px;border:0;background:#f2bd4d;color:#1a2b3c;font-weight:800;font-size:15px}
.acct-primary:hover:not(:disabled){background:#ffd067}.acct-primary:disabled{opacity:.6}
.acct-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.acct-row button:not(.acct-primary){padding:11px 16px;border-radius:10px;border:1px solid #b9cad6;background:#fff;font-weight:700;color:#35546b}
.acct-link{background:none;border:0;color:#1b73ad;font-weight:700;text-decoration:underline;padding:2px 4px}
.acct-hint{color:#5b7285;font-size:13px;line-height:1.45}
.acct-err{background:#fde8e8;border:1px solid #f0b4b4;color:#8a1f1f;border-radius:9px;padding:9px 12px;font-size:14px}
.acct-err[hidden],.acct-captcha[hidden]{display:none}
.acct-note{background:#fff7e0;border:1px solid #f0d58a;border-radius:9px;padding:9px 12px;font-size:14px;margin:0 0 12px}
.acct-sum{background:#e6f1f9;border:1px solid #bcd6e8;border-radius:10px;padding:10px 12px;margin:0 0 12px;line-height:1.5}
.acct-who{margin:0 0 10px}
.acct-table{width:100%;border-collapse:collapse;background:#fff;border-radius:10px;overflow:hidden;font-size:14px}
.acct-table th{text-align:left;background:#e6eef4;padding:8px 10px;font-size:12px;letter-spacing:.4px}
.acct-table td{padding:8px 10px;border-top:1px solid #e3ebf1}
.acct-table tr.me td{background:#fff3cf;font-weight:700}
.acct-captcha{min-height:65px;display:flex;justify-content:center}
.acct-slot:empty{display:none}
.acct-slotbox{background:#eef6fb;border:1px solid #bcd6e8;border-radius:11px;padding:12px 14px;margin:12px 0;line-height:1.55;font-size:14px;color:#1a2b3c}
.acct-slottitle{font-weight:800;margin-bottom:4px}
body.touch .acct-bar{top:8px;right:8px}
@media (max-width:560px){.acct-card{padding:18px 16px}}

/* PATCH 56 — logowanie Google, status konta, panel administratora */
.acct-google{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;margin:12px 0 6px;padding:11px 16px;border-radius:10px;border:1px solid #b9cad6;background:#fff;color:#1f2d3a;font-weight:700;font-size:16px;cursor:pointer}
.acct-google:hover:not(:disabled){background:#f1f6fa;border-color:#8fb0c6}
.acct-google:disabled{opacity:.55;cursor:not-allowed}
.acct-gicon{width:20px;height:20px;flex:none}
.acct-ok{background:#e6f6ec;border:1px solid #9fd5b3;color:#1b5a34;border-radius:9px;padding:9px 12px;font-size:14px;margin:8px 0}
.acct-ok .acct-primary{margin:6px 0 0}
.acct-nickform{display:flex;gap:8px;align-items:flex-end;margin:10px 0 4px}
.acct-nickform label{flex:1}
.acct-nickform button{padding:11px 14px;border-radius:10px;border:1px solid #b9cad6;background:#fff;font-weight:700;color:#1f2d3a}
.acct-search input{width:100%;box-sizing:border-box;margin:0 0 10px}
.acct-users{display:grid;gap:8px}
.acct-user{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;background:#fff;border:1px solid #d3e0ea;border-radius:10px;padding:9px 11px}
.acct-uinfo{display:grid;gap:2px;min-width:0;flex:1 1 200px}
.acct-uinfo b{overflow-wrap:anywhere;font-size:14px}
.acct-uinfo small{color:#5b7285;font-size:12px;line-height:1.4}
.acct-uact{display:flex;gap:6px;flex-wrap:wrap}
.acct-uact button{padding:7px 11px;border-radius:9px;border:1px solid #b9cad6;background:#fff;font-weight:700;font-size:13px;color:#1f2d3a}
.acct-uact button.acct-primary{background:#f2bd4d;border:0}
.acct-uact button:disabled{opacity:.5}
.acct-bar .hidden,#hudMenu .hidden{display:none!important}

/* PATCH 59 — logo na szerokość kafelków, przycisk konta w rogu, ikona użytkownika w kolorze menu */
.stage-logo{display:block;width:100%;max-width:100%;height:auto;max-height:40vh;object-fit:contain;object-position:left top;margin-bottom:14px}
@media (max-width:760px){.stage-logo{margin-top:36px}}
.acct-bar button,#hudMenu #acctBtn{display:inline-flex;align-items:center;gap:7px}
.acct-ico{flex:none;opacity:.9}
#stages{overflow:auto;align-items:safe center}
@media (max-height:600px){.stage-logo{max-height:34vh;margin-top:44px}}

/* PATCH 60 — grupy: administracja, zaproszenia */
.acct-h3{margin:16px 0 8px;font-size:15px;color:#1f3a50}
.acct-sel{padding:8px 10px;border-radius:9px;border:1px solid #b9cad6;background:#fff;font-size:14px;color:#1f2d3a;max-width:100%}
.acct-search{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 10px}.acct-search input{flex:1 1 180px;margin:0}
.acct-gname{width:100%;padding:7px 9px;border-radius:8px;border:1px solid #b9cad6;font-size:15px;font-weight:700;color:#1f2d3a;background:#fff}
.acct-code{font-family:ui-monospace,Consolas,monospace;font-size:17px;letter-spacing:1.5px}
.acct-linkin{width:100%;margin-top:4px;padding:6px 8px;border-radius:8px;border:1px solid #d3e0ea;background:#f4f9fd;font-size:12px;color:#35546b}
.acct-invform{display:grid;gap:10px}.acct-invform label{display:grid;gap:4px}
.acct-chk{display:flex!important;align-items:center;gap:8px;grid-auto-flow:column;justify-content:start;font-weight:600}.acct-chk input{width:auto}

/* scenariusze (patch 64) */
.acct-stg{display:flex;flex-wrap:wrap;gap:4px 14px;margin:8px 0 2px}
.acct-scn .acct-gname{display:block;width:100%;margin:0 0 6px}
.scnGroup{text-align:center;color:#9fb4c8;font-size:13px;margin:0 0 10px}
.scnTitle{display:flex;align-items:center;gap:12px;margin:6px 0 12px;color:#e8f1f8}
.scnTitle small{display:block;color:#9fb4c8;font-weight:400;margin-top:2px}
.scnIco{display:inline-flex;align-items:center;justify-content:center;font-size:28px;overflow:hidden}
.scnIco img{width:100%;height:100%;object-fit:contain}
.scnTitle .scnIco{width:48px;height:48px;flex:none}
.scnBack{display:inline-block;margin:0 0 8px;color:#8ec5ff;text-decoration:none;font-size:14px}
.stageCard.scn{cursor:pointer}
.scnEmpty{text-align:center;color:#9fb4c8;padding:18px 8px}

/* wydruki (patch 66) */
.dialog-btns{display:flex;align-items:center;gap:8px}
.pr-modal-btn{display:inline-flex;align-items:center;gap:6px;padding:7px 11px;border-radius:9px;border:1px solid #ffd983;background:#f2bd4d;color:#1a2b3c;font-weight:800;font-size:13px}
.pr-modal-btn:hover{background:#ffd067}
.pr-modal-btn b{display:inline-grid;place-items:center;min-width:18px;height:18px;border-radius:9px;background:#1a2b3c;color:#ffd983;font-size:11px;padding:0 5px}
.pr-modal-btn b:empty{display:none}
body.touch .pr-modal-btn span{display:none}
.pr-overlay{position:fixed;inset:0;z-index:120;background:rgba(7,16,27,.62);display:flex;align-items:center;justify-content:center;padding:14px}
.pr-overlay.hidden{display:none}
.pr-dialog{width:min(560px,100%);max-height:calc(100dvh - 28px);overflow:auto;background:#f4f8fb;border-radius:16px;box-shadow:0 18px 60px #0008;padding-bottom:14px}
.pr-dialog .dialog-head{padding:16px 20px 10px}
#prBody{padding:4px 20px 6px}
.pr-nav{display:flex;align-items:center;gap:8px;margin-top:14px}
.pr-nav button{min-width:46px;height:42px;border-radius:10px;border:1px solid #b9cad6;background:#fff;font-size:18px;color:#1a5c8d}
.pr-nav button:disabled{opacity:.35;cursor:not-allowed}
.pr-count{min-width:64px;text-align:center;color:#5b7285;font-weight:700}
.pr-spacer{flex:1}
.pr-nav .pr-trash{color:#b0305a;border-color:#e0a8bb}
.pr-nav .pr-yes{background:#b0305a;color:#fff;border-color:#b0305a;font-size:14px;padding:0 14px;font-weight:700}
.pr-nav .pr-ask{color:#b0305a;font-weight:700;font-size:13px}
.paper .p-type{display:inline-block;font-weight:900;font-size:12px;letter-spacing:1px;border:2px solid currentColor;border-radius:4px;padding:2px 8px;margin-bottom:8px}
.paper .p-type em{font-style:normal;font-weight:700}
.paper .p-type.wz{color:#1a5c8d}.paper .p-type.pz{color:#2a7a4b}.paper .p-type.mmo{color:#9a5a12}.paper .p-type.mmp{color:#6a3d9a}
.paper .p-title{font-size:12px;letter-spacing:.6px;color:#555}
.pr-tray{display:grid;gap:8px;margin:12px 0}
.pr-tray-item{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid #cddbe5;border-radius:10px;padding:8px 12px}
.pr-tray-item small{display:block;color:#6a8091}
.pr-ico.wz{color:#1a5c8d}.pr-ico.pz{color:#2a7a4b}.pr-ico.mmo{color:#9a5a12}.pr-ico.mmp{color:#6a3d9a}
.paper .p-type.zz{color:#b0305a}.pr-ico.zz{color:#b0305a}
.paper th:nth-child(n+3),.paper td:nth-child(n+3){text-align:right}

.pr-weight{font-size:12px;color:#5d7a92;text-align:center;margin:0 0 6px}
