@font-face{font-family:Atelier;src:url('/assets/Montserrat-Regular.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:Atelier;src:url('/assets/Montserrat-SemiBold.ttf') format('truetype');font-weight:600 800;font-display:swap}
.wq-body,.a-dispatch{--wq-ink:#302529;--wq-muted:#63585c;--wq-line:#d9ceca;--wq-card:#fffdfb;--wq-bg:#f8f4f1;--wq-accent:#70132b;--wq-badge:#f2e6e6;color:var(--wq-ink)}
[data-theme=dark] .wq-body,[data-theme=dark] .a-dispatch{--wq-ink:#f8efec;--wq-muted:#d9cbc6;--wq-line:#625755;--wq-card:#30282a;--wq-bg:#221e20;--wq-accent:#ffc0cd;--wq-badge:#483239}
.wq-body{margin:0;background:var(--wq-bg);font:1rem/1.55 Atelier,Arial,sans-serif}
.wq-body *,.a-dispatch *{box-sizing:border-box}
.wq-mast{min-height:74px;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.8rem max(5vw,calc((100vw - 1080px)/2));border-bottom:1px solid var(--wq-line);background:var(--wq-card)}
.wq-mast a{display:flex;align-items:center}.wq-mast img{width:clamp(145px,20vw,210px);height:auto}.wq-mast>div,.wq-pages,.wq-row,.wd-row{display:flex;gap:.85rem;align-items:center;flex-wrap:wrap}
.wq-main{max-width:1144px;padding:clamp(1.25rem,4vw,3rem) clamp(1rem,4vw,2rem) 4rem;margin:auto}.wq-main h1{font-size:clamp(2rem,5.8vw,3.65rem);line-height:1.1;letter-spacing:-.045em;margin:.4rem 0 .65rem;overflow-wrap:anywhere}.wq-main h2{font-size:1.3rem;line-height:1.35;margin:0}.wq-kicker,.wq-code,.wd-code{color:var(--wq-accent);font-size:.8rem;font-weight:700;letter-spacing:.09em}.wq-kicker{text-transform:uppercase;margin:0}.wq-space{margin-top:1.5rem}.wq-lead{color:var(--wq-muted);margin:.6rem 0 1.65rem}
.wq-filter,.wd-filter{display:flex;align-items:end;flex-wrap:wrap;gap:.65rem;margin:1rem 0 1.5rem}
.wq-body label,.a-dispatch label{display:grid;gap:.25rem;font-size:.875rem;font-weight:600;min-width:0}
.wq-body input,.wq-body select,.a-dispatch input,.a-dispatch select{font:inherit;color:var(--wq-ink);background:var(--wq-card);border:1px solid var(--wq-line);border-radius:8px;min-height:45px;padding:.5rem .75rem;min-width:0;max-width:100%}
.wq-btn,.wq-action,.wq-link{appearance:none;display:inline-flex;justify-content:center;align-items:center;min-height:44px;border-radius:8px;font:600 .9rem/1.35 Atelier,Arial,sans-serif;padding:.6rem 1rem;cursor:pointer;text-decoration:none}
.wq-btn{border:1px solid #70132b;color:white;background:#70132b}.wq-action,.wq-link{color:var(--wq-accent);background:var(--wq-card);border:1px solid var(--wq-line)}.wq-link{border:0;background:none}.wq-body [hidden],.a-dispatch [hidden]{display:none!important}.wq-body button:disabled,.a-dispatch button:disabled{opacity:.55;cursor:default}
.wq-body :focus-visible,.a-dispatch :focus-visible{outline:3px solid var(--wq-accent);outline-offset:3px}.wq-cards,.wq-detail,.wd-list{display:grid;gap:1rem}.wq-cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr))}.wq-detail{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:1rem}
.wq-card,.wd-card{background:var(--wq-card);border:1px solid var(--wq-line);border-radius:16px;padding:clamp(1rem,2.3vw,1.6rem);min-width:0;overflow-wrap:anywhere}.wq-card p,.wd-card p{margin:.5rem 0;color:var(--wq-muted)}.wq-card h2{margin:.45rem 0 .85rem}.wq-card h3,.wd-card h2{margin:.3rem 0}.wq-row,.wd-row{justify-content:space-between}.wq-pill{display:inline-block;padding:.3rem .7rem;border-radius:99px;font-size:.86rem;font-weight:600;background:var(--wq-badge);color:var(--wq-accent)}
.wq-pages{margin:1.5rem 0}.wq-item+.wq-item,.wq-measures>div+div{border-top:1px solid var(--wq-line)}.wq-item+.wq-item{padding-top:.6rem}.wq-measures{margin:0}.wq-measures>div{display:flex;gap:.7rem;justify-content:space-between;padding:.4rem 0}.wq-measures dd{margin:0;font-weight:600;text-align:right}.wq-stages{list-style:none;display:flex;flex-wrap:wrap;gap:.6rem;margin:1rem 0;padding:0}.wq-stages li{color:var(--wq-muted);border-bottom:2px solid var(--wq-line);padding:.35rem 0}.wq-stages li.is-done{border-color:var(--wq-accent)}.wq-stages [aria-current]{font-weight:700;color:var(--wq-accent)}
.wq-auth{max-width:480px;margin:1rem auto;background:var(--wq-card);border:1px solid var(--wq-line);border-radius:18px;padding:clamp(1rem,3vw,2.4rem)}.wq-auth h1{font-size:2rem}.wq-auth form{display:grid;gap:.8rem}.wq-error:empty{display:none}.wq-error{color:var(--wq-accent)}
.wq-toast{position:fixed;left:50%;bottom:20px;transform:translateX(-50%);width:max-content;max-width:90vw;background:#302529;color:#fff;padding:.75rem 1rem;border-radius:10px;z-index:20}.wq-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.a-dispatch .wd-card h2{font-size:1.2rem}.wd-form{display:flex;gap:.7rem;flex-wrap:wrap;align-items:end;border-top:1px solid var(--wq-line);margin-top:1rem;padding-top:.8rem}.wd-form label{flex:1 1 220px}.wd-card .wd-assign{margin-top:.6rem}.wd-marker{margin:0 0 .5rem;font-weight:600}.wd-filter label:first-child{flex:0 1 260px}.a-dispatch .a-note{color:var(--wq-muted)}
@media(max-width:650px){.wq-detail{grid-template-columns:1fr}.wq-mast{padding:.7rem 1rem;gap:.5rem}.wq-mast>div{gap:.2rem}.wq-mast img{max-width:38vw}.wq-btn,.wq-action,.wq-link{padding:.55rem .75rem}.wq-filter label,.wd-filter label{flex:1 1 175px}.wd-form button{flex:0 1 auto}.wq-row>span:first-child{min-width:0}.wq-auth{margin:0}.wq-toast{bottom:max(16px,env(safe-area-inset-bottom))}}

.wq-flag{display:inline-block;font-weight:600;font-size:.91rem;margin:0 .5rem .8rem 0;padding:.25rem .65rem;border:1px solid currentColor;border-radius:1rem}

.wq-deadline{font-size:.9rem;margin:.2rem .15rem}.wq-deadline[hidden]{display:none}.wq-deadline[data-label="Po terminie"]{border:1px solid currentColor}

.wq-notes-link{gap:.5rem;margin-top:.7rem;background:var(--wq-badge)}
.wq-notes-link b{min-width:1.65rem;padding:.1rem .3rem;border:1px solid currentColor;border-radius:1rem;text-align:center}
.wq-item-note{margin:.7rem 0;padding:.65rem .8rem;border-inline-start:3px solid var(--wq-accent);border-radius:.45rem;background:var(--wq-badge)}
.wq-item-note p{margin:.25rem 0 0;white-space:pre-wrap}
:is([data-workshop-notes],#workshop-garments-title):focus{outline:2px solid var(--wq-accent);outline-offset:3px;scroll-margin-top:6rem}

.wq-filter .wq-notes-filter{display:flex;align-items:center;gap:.55rem;min-height:45px;padding:.45rem .65rem;color:var(--wq-ink);background:var(--wq-card);border:1px solid var(--wq-line);border-radius:8px;cursor:pointer}
.wq-notes-filter input{width:1.2rem;height:1.2rem;min-height:0;margin:0;flex:none;accent-color:var(--wq-accent)}
.wq-filter-hint{flex-basis:100%;margin:0;color:var(--wq-muted);font-size:.875rem}

.wq-production-actions{display:flex;flex-wrap:wrap;gap:.65rem;margin-bottom:1rem}
.wq-production{max-width:780px;padding:clamp(1rem,4vw,2.5rem);background:var(--wq-card);border:1px solid var(--wq-line);border-radius:16px;overflow-wrap:anywhere}
.wq-production-meta{display:flex;flex-wrap:wrap;gap:.25rem 1.5rem;color:var(--wq-muted)}
.wq-production section{margin-top:1.35rem}
.wq-production h2{padding-bottom:.45rem;border-bottom:1px solid var(--wq-line)}
.wq-production .wq-item{padding:.6rem 0}
.wq-production-warning{padding:.7rem .85rem;border-inline-start:3px solid var(--wq-accent);background:var(--wq-badge);font-weight:600}
.wq-production-measures{width:100%;border-collapse:collapse;text-align:start}
.wq-production-measures th,.wq-production-measures td{text-align:start;vertical-align:top;border-bottom:1px solid var(--wq-line);padding:.55rem .4rem;font-size:.9rem}
.wq-production-measures td:nth-child(2){white-space:nowrap}
@media print{
 @page atelier-workshop{size:A4;margin:14mm}
 .wq-body:has(.wq-production){background:white;color:black}
 .wq-body:has(.wq-production) :is(.wq-mast,.wq-production-actions,.wq-toast){display:none!important}
 .wq-body:has(.wq-production) .wq-main{padding:0}
 .wq-body .wq-production{page:atelier-workshop;max-width:none;margin:0;padding:0;border:0;border-radius:0;background:white;color:black;--wq-ink:#111;--wq-muted:#333;--wq-line:#aaa;--wq-card:#fff;--wq-accent:#333;--wq-badge:#fff;font-size:11pt}
 .wq-production h1{font-size:24pt}
 .wq-production h2,.wq-production h3{break-after:avoid}
 .wq-production tr,.wq-production .wq-item{break-inside:avoid}
 .wq-production-measures thead{display:table-header-group}
}

.wq-production-code{display:inline-block;white-space:nowrap;font-family:ui-monospace,monospace;letter-spacing:.03em;color:var(--wq-ink)}
