:root{--ink:#191919;--paper:#fff;--back:#f4f4f4;--line:#e2e2e2;--muted:#656565;--accent:#c46a3a;--accent-text:#8e4424;--rail:204px;--bar:56px;--rad:3px;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);font-size:14px;background:var(--back);color-scheme:light}
*{box-sizing:border-box}
[hidden]{display:none!important}
[aria-busy=true]{cursor:progress}
body{margin:0}
button,select,input,textarea{font:inherit}
a{color:inherit;text-decoration:none}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
:focus-visible{outline:2px solid var(--accent-text);outline-offset:3px}
button{cursor:pointer}
button:disabled{cursor:default;opacity:.5}
img{max-width:100%;display:block}
h1,h2,h3,p{margin:0}
h1{font-size:30px;line-height:1.15;letter-spacing:-.65px;font-weight:710}
h2{font-size:16px;letter-spacing:-.18px}
h3{font-size:14px}
small,.small{font-size:12px}
.muted{color:var(--muted)}
.strong{font-weight:650}
.num{font-variant-numeric:tabular-nums}
.nowrap{white-space:nowrap}
.warning{color:var(--accent-text)}
.icon{width:17px;height:17px;flex:0 0 17px;display:inline-block;vertical-align:middle}
.skip{position:fixed;top:-100px;left:10px;z-index:20;background:#fff;padding:10px}
.skip:focus{top:8px}
.topbar{height:var(--bar);position:sticky;top:0;z-index:8;display:flex;align-items:center;justify-content:space-between;padding:0 24px 0 18px;background:var(--ink);color:white;border-bottom:2px solid var(--accent);gap:12px}
.brand{display:flex;align-items:center;gap:13px;white-space:nowrap}
.brand img{width:34px;height:28px;object-fit:contain;object-position:left center}
.brand b{font-size:11px;font-weight:620;letter-spacing:.11em;padding-left:12px;border-left:1px solid #555;color:#eee}
.top-right,.line,.actions{display:flex;align-items:center;gap:8px}
.top-right{gap:18px;font-size:12px;color:#e4e4e4}
.sim-dot{width:7px;height:7px;background:#e09064;display:inline-block;margin-right:6px;border-radius:50%}
.topbar button{color:#fff;background:transparent;border:0;min-height:40px}
.menu-toggle{display:none;align-items:center;justify-content:center;min-width:40px}
.frame{display:grid;grid-template-columns:var(--rail) minmax(0,1fr);min-height:calc(100dvh - var(--bar))}
.sidebar{background:var(--paper);border-right:1px solid var(--line);position:sticky;top:var(--bar);height:calc(100dvh - var(--bar));display:flex;flex-direction:column;padding:20px 0 14px}
.side-title{margin:0 16px 9px;color:var(--muted);font-size:11px;font-weight:670;text-transform:uppercase;letter-spacing:.085em}
.navlink{display:flex;align-items:center;gap:10px;padding:0 12px 0 15px;border-left:3px solid transparent;min-height:44px;font-size:13px}
.navlink:hover{background:#f7f7f7}
.navlink.active{background:#f2ece8;border-left-color:var(--accent);font-weight:690}
.navlink.active .icon{color:var(--accent-text)}
.side-rule{height:1px;background:var(--line);margin:14px 16px}
.sidebar nav{min-height:0;overflow-y:auto}
.side-bottom{margin-top:auto;padding:18px 17px 0}
.side-bottom span{display:block;color:var(--muted);font-size:11px;padding-top:4px}
.main{min-width:0;max-width:1660px;width:100%;padding:28px 32px 48px}
.heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:19px}
.heading p{font-size:13px;color:var(--muted);margin-top:6px}
.breadcrumb{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:12px;margin-bottom:9px}
.eyebrow{font-size:11px;letter-spacing:.085em;font-weight:720;text-transform:uppercase;color:var(--muted)}
.grid-stats{display:grid;grid-template-columns:repeat(var(--cols,3),minmax(0,1fr));gap:10px;margin-bottom:20px}
.stat{border-radius:var(--rad);background:var(--ink);color:#fff;display:block;min-width:0;padding:12px 15px 11px;text-align:left;border:1px solid var(--ink);min-height:90px}
a.stat:hover{background:#2d2b29}
.stat .stat-label{display:flex;align-items:center;justify-content:space-between;gap:5px;color:#e2e2e2;font-size:12px}
.stat .icon{width:15px;height:15px;color:#d4b09f}
.stat strong{display:block;font-size:29px;line-height:1.08;letter-spacing:-.7px;margin:5px 0 2px}
.stat small{color:#c7c7c7;font-size:11px}
.section-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 10px}
.section-head .line{flex-wrap:wrap}
.section-head h2{font-size:15px}
.card{background:var(--paper);border:1px solid var(--line);border-radius:var(--rad);min-width:0}
.pad{padding:20px}
.stack{display:grid;gap:13px;align-content:start}
.split{display:grid;grid-template-columns:minmax(0,1fr) minmax(238px,285px);gap:14px;align-items:start}
.split.wide{grid-template-columns:minmax(0,1.55fr) minmax(295px,1fr)}
.sticky{position:sticky;top:calc(var(--bar) + 16px)}
.filterbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 12px}
.search{position:relative;min-width:170px;flex:1;max-width:300px}
.search .icon{position:absolute;left:10px;top:50%;transform:translateY(-50%);color:var(--muted)}
.search input[type=search]{padding-left:34px;width:100%}
.field,input[type=search],input[type=password],input[type=text],input[type=number],select,textarea{border:1px solid #d7d7d7;border-radius:var(--rad);background:#fff;color:var(--ink);min-height:40px;padding:7px 10px}
textarea{resize:vertical}
input[type=checkbox]{accent-color:var(--ink);width:16px;height:16px;margin:0}
.checkbox{display:inline-flex;align-items:center;gap:7px;min-height:40px;font-size:13px}
.btn{font-weight:620;border:1px solid var(--line);background:#fff;color:var(--ink);min-height:44px;padding:0 12px;border-radius:var(--rad);display:inline-flex;align-items:center;justify-content:center;gap:7px;line-height:1.2;text-align:center}
.btn:hover:not(:disabled){background:#eee}
.btn.primary{background:var(--ink);color:#fff;border-color:var(--ink)}
.btn.primary:hover:not(:disabled){background:#353330}
.btn.slim{min-height:36px;padding:0 9px;font-size:12px}
.btn.block{width:100%}
.btn.subtle{background:transparent}
.link{color:var(--ink);background:none;border:0;text-decoration:underline;text-underline-offset:3px;padding:6px 0;font-size:13px;font-weight:620;text-align:left}
.link.warn{color:var(--accent-text)}
.key-value{display:grid;gap:0;margin:3px 0 10px}
.key-value div{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid #ececec;font-size:12px}
.key-value div:last-child{border-bottom:0}
.key-value span:first-child{color:var(--muted)}
.key-value strong{text-align:right;font-weight:650;overflow-wrap:anywhere}
.legend{margin-top:12px;padding-top:11px;border-top:1px solid var(--line);color:var(--muted);font-size:12px;line-height:1.55}
.callout{padding:11px 13px;border:1px solid #e2c6b8;background:#fbf3ed;border-radius:var(--rad);font-size:13px;line-height:1.5}
.callout.plain{background:#fafafa;border-color:var(--line)}
.callout p+p{margin-top:5px}
.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:var(--rad);background:#fff}
table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}
thead th{white-space:nowrap;font-size:12px;color:#505050;font-weight:630;background:#f8f8f8}
th,td{padding:9px 12px;border-bottom:1px solid var(--line);vertical-align:middle}
table tr:last-child td{border-bottom:0}
tbody tr:hover{background:#fcfaf9}
th.check,td.check{padding-right:1px;width:37px;text-align:center}
td.check label,th.check label{width:24px;height:28px;display:inline-flex;align-items:center;justify-content:center}
td.sub .muted,td .sub{display:block;margin-top:3px;font-size:11px}
td .reason{display:block;color:var(--muted);font-size:11px;margin:4px 0 1px}
.motif-row{display:flex;align-items:center;gap:9px;min-width:145px}
.thumb{width:68px;height:46px;background:#f5f3f1;border:1px solid #e6e3df;border-radius:2px;padding:4px;object-fit:contain;flex:none}
.thumb.large{width:100%;height:150px;background:#efede9;object-fit:contain;padding:14px}
.tag{display:inline-flex;align-items:center;gap:5px;min-height:20px;padding:2px 6px;border:1px solid #dadada;background:#f7f7f7;border-radius:3px;font-size:11px;font-weight:650;white-space:nowrap}
.tag::before{content:"";width:5px;height:5px;border-radius:50%;background:#6c6c6c}
.tag.pass{color:#284e39;background:#eef4ef;border-color:#d6e5da}
.tag.pass::before{background:#467b5a}
.tag.wait{color:#884224;background:#fbefe8;border-color:#ead4c8}
.tag.wait::before{background:#bb6b45}
.tag.blocked{color:#7d322e;background:#f8eeed;border-color:#ebd8d6}
.tag.blocked::before{background:#a44940}
.tag.work{color:#345161;background:#eef3f5;border-color:#d9e3e8}
.tag.work::before{background:#577687}
.cards-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.job-tile{display:block;width:100%;text-align:left;padding:0;color:inherit}
.job-tile img{width:100%;height:155px;object-fit:contain;background:#efedeb;padding:24px}
.job-tile:hover{border-color:#b7a496}
.tile-body{padding:16px}
.tile-body .line{justify-content:space-between}
.tile-body h3{font-size:16px;margin:8px 0}
.tile-body p{font-size:11px;color:var(--muted);padding:5px 0 0}
.meter{height:3px;background:#eee;margin:9px 0 4px}
.meter i{height:100%;display:block;background:var(--accent)}
.board-section{margin-top:23px}
.tabs{display:flex;align-items:center;gap:2px;border:1px solid var(--line);background:#fff;border-radius:3px;padding:2px}
.tabs button{border:0;background:#fff;padding:7px 10px;border-radius:2px;font-size:12px;color:var(--muted)}
.tabs button[aria-pressed=true]{background:#eee;color:#191919;font-weight:650}
.sheet-stage{padding:14px;background:#ecebea;border:1px solid var(--line);min-height:330px;max-height:620px;overflow:auto;text-align:center}
.sheet-stage .paper{position:relative;background:#fff;border:1px solid #c6c4c0;width:min(100%,560px);margin:auto;box-shadow:0 1px 2px #0002}
.sheet-stage .paper::before{content:"";position:absolute;inset:var(--marginY) var(--marginX);border:1px dashed #ded6d1;pointer-events:none}


.sheet-stage .segment-image{width:auto;max-width:min(100%,560px);max-height:560px;object-fit:contain;margin:0 auto;border:1px solid #c6c4c0;background:#fff}
.placed{position:absolute;display:grid;place-items:center;overflow:hidden}
.placed img{position:absolute;left:50%;top:50%;width:100%;height:100%;object-fit:contain;transform:translate(-50%,-50%)}
.placed.rotated img{max-width:none;width:var(--rw);height:var(--rh);transform:translate(-50%,-50%) rotate(90deg)}
.segment-nav{display:flex;gap:5px;flex-wrap:wrap;max-height:156px;overflow:auto;padding:1px}
.segment-nav button{min-width:38px}
.segment-nav .active{background:#eee5e0;border-color:#bba28f}
.top-gap{margin-top:13px}
.empty{text-align:center;color:var(--muted);line-height:1.55;padding:36px 14px;background:#fff;border:1px solid var(--line)}
.notice{position:fixed;right:20px;bottom:20px;max-width:min(440px,calc(100vw - 40px));z-index:20;background:#191919;color:#fff;padding:13px 18px;border:1px solid #333;border-left:4px solid var(--accent);border-radius:3px;box-shadow:0 2px 8px #0002}
.notice.error{background:#672a22}
dialog{width:min(570px,calc(100% - 28px));max-height:min(85vh,800px);border:1px solid #cacaca;border-radius:4px;padding:0;color:var(--ink)}
dialog::backdrop{background:#18161472}
.dialog-head,.dialog-foot{padding:14px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff}
.dialog-head{position:sticky;top:0;border-bottom:1px solid var(--line);z-index:1}
.dialog-foot{position:sticky;bottom:0;border-top:1px solid var(--line);justify-content:flex-end}
.dialog-body{padding:16px;display:grid;gap:12px}
.dialog-body label.field-label{display:grid;gap:5px;font-size:13px;font-weight:600}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.form-grid>*{min-width:0}
.field-label select,.field-label input,.field-label textarea{width:100%}
.close{display:grid;place-items:center;background:#fff;border:0;width:38px;height:38px}
.upload-zone{padding:13px;border:1px dashed #a8a5a2;border-radius:3px;background:#fafafa}
.error-text{color:#8e211b;font-size:13px}
.loading,.startup{padding:28px;color:var(--muted)}
.login-wrap{min-height:calc(100vh - 48px);display:grid;place-items:center;padding:18px}
.login{width:min(100%,410px);padding:24px}
.login form{display:grid;gap:12px;margin-top:17px}
code{font-size:11px;overflow-wrap:anywhere}
.time-number{font-size:26px;font-weight:730;letter-spacing:-.55px}
.card-description{font-size:13px;color:var(--muted);margin-top:6px;line-height:1.5}
#content:focus{outline:0}
@media(max-width:1140px){:root{--rail:190px}.main{padding:22px 20px 30px}.cards-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.split{grid-template-columns:minmax(0,1fr) minmax(205px,244px)}td,th{padding-left:8px;padding-right:8px}}
@media(max-width:900px){.navlink{min-height:44px}.frame{grid-template-columns:minmax(0,1fr)}.sidebar{position:fixed;z-index:9;left:0;top:var(--bar);width:204px;transform:translateX(-105%);transition:transform .16s ease}.sidebar.open{transform:translateX(0);box-shadow:6px 0 18px #0002}.topbar{padding-left:9px}.menu-toggle{display:inline-flex}.brand{margin-right:auto}.main{padding:20px}.split.wide{grid-template-columns:minmax(0,1.25fr) minmax(236px,1fr)}}
@media(max-width:680px){.main{padding:15px 12px 28px}.brand img{width:29px}.brand b{padding-left:7px;font-size:10px}.brand{gap:7px}.top-right{gap:9px}.topbar{padding-right:10px}.top-right .profile-word{display:none}.heading{flex-wrap:wrap;gap:10px}.grid-stats{gap:6px;margin-bottom:15px}.grid-stats.four{grid-template-columns:repeat(2,minmax(0,1fr))}.stat{padding:9px;min-height:75px}.stat strong{font-size:24px}.stat .icon{display:none}.split,.split.wide{display:flex;flex-direction:column}.split>*{width:100%}.sticky{position:static}.split.queue .queue-side{order:-1}.queue-side .legend{display:none}.cards-grid>.job-tile:nth-child(4){display:block}.search{max-width:none}.btn.slim{min-height:44px}.form-grid{grid-template-columns:1fr}.tabs button{min-height:40px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
@media print{.sidebar,.topbar,.heading .actions,.filterbar,.segment-nav,.no-print{display:none!important}.frame{display:block}.main{padding:0}.card{border:0}.split{display:block}}

.cut-line{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}



.preview-unavailable{display:grid;place-items:center;min-height:40px;padding:5px;font-size:11px;color:#884224;background:#fbefe8;border:1px solid #ead4c8;text-align:center}

/* Visual hierarchy for existing production workflows. */
.queue-selection{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px;color:var(--muted);font-size:12px}
.queue-cards{display:grid;gap:10px}
.queue-card{display:grid;grid-template-columns:26px 126px minmax(0,1fr) 92px;gap:14px;align-items:center;padding:16px;background:var(--paper);border:1px solid var(--line);border-radius:var(--rad)}
.queue-card.selected{border-color:#c7b6ab;box-shadow:inset 3px 0 0 var(--accent)}
.queue-check{display:grid;place-items:center;min-height:44px;cursor:pointer}
.queue-check input{width:20px;height:20px}
.motif-preview{border:1px solid var(--line);border-radius:3px;background:repeating-conic-gradient(#f4f3f1 0% 25%,#fff 0% 50%) 50%/16px 16px;padding:12px;width:126px;height:100px;display:grid;place-items:center}
.motif-preview img{width:100%;height:74px;object-fit:contain}
.queue-copy{min-width:0}.queue-copy .actions{flex-wrap:wrap}.queue-copy .actions .btn{max-width:100%;min-width:0;white-space:normal}.queue-kicker{font-size:11px;font-weight:700;letter-spacing:.035em}.queue-kicker span{font-weight:400;color:var(--muted)}
.queue-copy>.link{font-size:14px;text-decoration:none;padding:5px 0;line-height:1.4;overflow-wrap:anywhere}.queue-copy>p{font-size:12px;color:var(--muted)}
.queue-facts{display:flex;gap:5px 12px;flex-wrap:wrap;font-size:11px;margin-top:10px;color:var(--muted)}
.queue-result{display:grid;justify-items:end;gap:10px}.queue-quantity{display:flex;align-items:baseline;gap:5px}.queue-quantity strong{font-size:28px;font-weight:650;letter-spacing:-1px}.queue-quantity span,.queue-deadline{font-size:11px;color:var(--muted)}
.queue-copy .queue-reason{display:flex;align-items:start;gap:5px;margin-top:10px;color:var(--accent-text);line-height:1.45}
.prepare-card{border-top:3px solid var(--accent)}.prepare-total{display:flex;gap:10px;align-items:baseline;margin:14px 0 20px}.prepare-total strong{font-size:46px;letter-spacing:-2px;font-weight:650}.prepare-total span{color:var(--muted);font-size:13px}.prepare-card h2{margin-bottom:10px}.prepare-card .btn.primary{min-height:50px;margin-top:10px}
.tile-count{display:flex;gap:8px;align-items:baseline;margin-top:14px}.tile-count strong{font-size:26px;font-weight:650}.tile-count span{color:var(--muted);font-size:12px}
.archive-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.archive-tile{overflow:hidden}.archive-tile:hover{border-color:#b7a496}.archive-preview{height:180px;background:#edebe8;display:grid;place-items:center;padding:18px}.archive-preview img{max-height:144px;max-width:100%;object-fit:contain}.archive-preview>span{display:grid;justify-items:center;gap:12px;font-size:12px;color:var(--muted)}.archive-copy{padding:18px}.archive-copy .line{justify-content:space-between;font-size:12px}.archive-copy h3{margin:14px 0 7px;overflow-wrap:anywhere}.archive-copy p,.archive-footer{font-size:12px;color:var(--muted)}.archive-footer{display:flex;justify-content:space-between;border-top:1px solid var(--line);margin-top:16px;padding-top:12px}
.production-steps{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:0;margin:0 0 22px;border:1px solid var(--line);background:#fff}.production-steps li{display:flex;gap:9px;align-items:center;padding:14px;font-size:12px;color:var(--muted);border-right:1px solid var(--line)}.production-steps li:last-child{border:0}.production-steps li>span{display:grid;place-items:center;border:1px solid var(--line);width:26px;height:26px;border-radius:50%;flex:none}.production-steps .current{color:var(--ink);font-weight:650;background:#f6f0ec}.production-steps .current>span{background:var(--ink);color:white;border-color:var(--ink)}
.layout-summary{display:flex;gap:16px;flex-wrap:wrap;padding-top:16px;font-size:12px;color:var(--muted)}.layout-summary b{color:var(--ink);font-weight:650}
.job-actions{margin-top:18px}.job-actions .btn.primary{min-height:52px}.production-details{margin-top:18px;border-top:1px solid var(--line);padding-top:14px;font-size:12px}.production-details summary{cursor:pointer;min-height:32px;font-weight:600}
@media(min-width:901px) and (max-width:1250px){.split.queue{grid-template-columns:minmax(0,1fr)}.queue-side{position:static}.prepare-card{display:grid;grid-template-columns:1fr 1.5fr;gap:0 24px}.prepare-card .eyebrow,.prepare-total,.prepare-card h2{grid-column:1}.prepare-card .key-value{grid-column:2;grid-row:1/5}.prepare-card .legend{grid-column:1/-1}.queue-card{grid-template-columns:26px 126px minmax(0,1fr) 92px}}
@media(max-width:1100px){.cards-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.archive-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.split.queue,.split.wide{grid-template-columns:minmax(0,1fr)}.queue-side{position:static}.queue-side .prepare-card{padding:18px}.queue-card{grid-template-columns:24px 112px minmax(0,1fr) 80px;gap:12px}.motif-preview{width:112px}.production-steps li{padding:10px;font-size:11px}}
@media(max-width:600px){.brand b{display:none}.top-right{min-width:0}.top-right>span{font-size:10px}h1{font-size:25px}.queue-card{grid-template-columns:22px 88px minmax(0,1fr);padding:12px;gap:10px}.motif-preview{width:88px;height:84px;padding:7px}.motif-preview img{height:66px}.queue-result{grid-column:2/-1;display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between;border-top:1px solid var(--line);padding-top:9px}.queue-quantity strong{font-size:22px}.queue-copy>.link{font-size:13px}.queue-facts{font-size:11px;margin-top:6px}.prepare-total{margin:6px 0 10px}.prepare-total strong{font-size:34px}.archive-grid{grid-template-columns:minmax(0,1fr)}.production-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.production-steps li{border-bottom:1px solid var(--line)}.sheet-stage{min-height:240px}.cards-grid{gap:10px}.job-tile img{height:120px;padding:16px}.tile-body{padding:12px}.tile-body h3{font-size:14px}.tile-count strong{font-size:22px}.tile-body .line{flex-wrap:wrap}}

.queue-card.readonly{grid-template-columns:126px minmax(0,1fr) 92px}
@media(max-width:600px){.queue-card.readonly{grid-template-columns:88px minmax(0,1fr)}.queue-card.readonly .queue-result{grid-column:1/-1}}
/* Complete production surfaces: shared data, touch-first actions. */
.production-counter{background:#191919;color:#fff;border:1px solid #191919;text-align:left;padding:16px;display:grid;gap:5px;min-height:115px}.production-counter strong{font-size:30px;line-height:1.1}.production-counter span{font-size:12px}.production-counter small{color:#aaa;font-size:10px}.production-counter.active{box-shadow:inset 0 -3px var(--accent)}
.machine-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.machine-card{overflow:hidden;display:grid;grid-template-columns:minmax(140px,.9fr) minmax(0,1fr);align-items:stretch}.machine-art{display:grid;place-items:center;background:#f0eeeb;padding:12px;color:#252525}.machine-illustration{width:100%;height:auto;max-height:180px}.machine-accent{stroke:var(--accent,#b9532a)}.machine-art img{width:100%;height:110px;object-fit:contain}.machine-art>.icon{width:36px;height:36px;color:#5a5652}.machine-copy{padding:17px}.machine-copy h3{font-size:15px;margin:7px 0 16px}.machine-count{font-size:12px}.machine-count b{font-size:23px;margin-right:4px}.machine-count span{display:block;color:var(--muted);margin-top:5px}.machine-copy p{font-size:11px;color:var(--muted);margin:12px 0}.work-next{border-top:1px solid var(--line);padding-top:12px;margin-top:12px;display:flex;justify-content:space-between;align-items:center;font-size:12px;font-weight:600}.work-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.work-tile{display:grid;grid-template-columns:150px minmax(0,1fr);overflow:hidden}.work-art{background:#eae7e3;display:grid;place-items:center;padding:16px}.work-art img{max-width:100%;max-height:190px;object-fit:contain}.work-copy{padding:18px}.work-copy>.line{justify-content:space-between;font-size:11px}.work-copy h3{font-size:15px;margin:15px 0 8px}.work-copy p{color:var(--muted);font-size:12px}.rest-clock{font-size:15px!important;color:#9c542f!important}.layout-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:14px;font-size:12px}.sheet-stage{overflow:auto;justify-items:start}.sheet-stage .paper{width:calc(var(--sheet-width,560px) * var(--zoom,1));min-width:calc(var(--sheet-width,560px) * var(--zoom,1));max-width:none;margin:0 auto}.sheet-stage:has(.vinyl-preview){min-height:200px;display:grid;place-items:center}
.sheet-stage svg.vinyl-preview{width:100%;max-height:420px}
.sheet-stage .segment-image{max-width:calc(560px * var(--zoom,1));max-height:calc(560px * var(--zoom,1));width:auto}.export-facts{display:grid;gap:7px;border-top:1px solid var(--line);margin-top:16px;padding-top:16px;font-size:12px}.export-facts span{color:var(--muted)}.job-actions .line{flex-wrap:wrap;gap:8px;padding:12px 0;border-bottom:1px solid var(--line)}.job-actions .line>span{flex:1;min-width:140px}.segment-nav{flex-wrap:wrap}.segment-nav .btn{font-size:11px;min-height:42px}.archive-filter{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}.archive-filter input{flex:1;min-width:180px}.pager{display:flex;justify-content:space-between;align-items:center;margin-top:18px}.selected-motif{border:2px solid var(--accent)!important}.layout-list{max-height:420px;overflow:auto}.layout-row{border-top:1px solid var(--line);padding:12px 0}.layout-row img{width:75px;height:50px;object-fit:contain}
@media(max-width:1200px){.machine-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.work-grid{grid-template-columns:1fr}}
@media(max-width:900px){.production-counter{padding:11px;min-height:110px}.production-counter strong{font-size:26px}.machine-card{grid-template-columns:95px minmax(0,1fr)}}
@media(max-width:600px){.machine-grid{grid-template-columns:1fr}.work-tile{grid-template-columns:100px minmax(0,1fr)}.work-copy{padding:13px}.sheet-stage{max-height:65vh}.layout-tools .muted{width:100%}.layout-tools{position:static}.production-counter{min-height:95px}}

/* Standalone upload workspace: original art remains prominent. */
.upload-preview {min-height:140px;max-height:240px;display:flex;align-items:center;justify-content:center;background:repeating-conic-gradient(#eee 0% 25%,#fff 0% 50%) 0 0/20px 20px;border:1px solid var(--line,#ddd);margin:14px 0}
.upload-preview img {max-width:100%;max-height:230px;object-fit:contain}
.upload-preview[hidden] {display:none}
@media (pointer:coarse) {.btn,input,select{min-height:44px}.slim{min-width:44px}}

/* Individual production assets and actionable overview. */
.upload-file-card{display:grid;grid-template-columns:180px 1fr;gap:20px;padding:20px 0;border-bottom:1px solid #ddd}.file-art{background:repeating-conic-gradient(#eee 0% 25%,white 0% 50%) 0/20px 20px;display:flex;align-items:center;justify-content:center;min-height:150px}.file-art img{max-width:100%;max-height:240px;object-fit:contain}.production-counter.priority-counter{order:0}.production-counter.secondary-counter{order:1;background:white;color:#444;border:1px solid #ddd;min-height:65px;padding:12px}.production-counter.secondary-counter strong{font-size:20px}.production-counter.secondary-counter small{display:none}.production-counter.secondary-counter.active{border-bottom:3px solid #bd7044}@media(max-width:700px){.upload-file-card{grid-template-columns:1fr}.file-art{max-height:180px}}
#dialog:has(.upload-file-card){width:min(1280px,96vw);max-width:1280px}.file-options .form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.file-options input,.file-options select{min-height:44px}

.production-counters{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:8px;margin-bottom:28px}.production-counter.priority-counter{grid-column:span 3}.production-counter.secondary-counter{grid-column:span 4}@media(max-width:700px){.production-counter.priority-counter,.production-counter.secondary-counter{grid-column:span 6}}

.has-files label:has(>input[name="width"]),.has-files label:has(>input[name="height"]),.has-files label:has(>input[name="quantity"]),.has-files label:has(>input[name="proportions"]){display:none}.file-art{align-self:start}.upload-file-card .file-options{min-width:0}.upload-file-actions{flex-wrap:wrap;margin-top:12px}

@media(max-width:700px){.file-options .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.file-options .form-grid{grid-template-columns:1fr}}

/* Empty startup and secondary production statuses share the existing surfaces. */
.first-production{display:grid;grid-template-columns:3fr 2fr;gap:32px;padding:32px;margin-bottom:28px}.first-production h2{font-size:26px;margin:12px 0}.first-production p{max-width:580px;line-height:1.6}.first-production .btn{margin:10px 0}.first-production ol{list-style:none;margin:0;padding:0;display:grid;align-content:center;gap:20px}.first-production li{display:flex;align-items:center;gap:16px}.first-production li b{display:grid;place-items:center;background:var(--black,#191919);color:white;width:40px;height:40px}.production-statuses{margin:-14px 0 24px;border-bottom:1px solid var(--line)}.production-statuses summary{cursor:pointer;padding:14px 0;font-weight:600;min-height:44px}.production-statuses summary span{font-size:12px;font-weight:400;color:var(--muted);margin-left:16px}.production-statuses .production-counters{margin:0 0 16px}.production-statuses[open] summary{margin-bottom:8px}@media(max-width:700px){.first-production{grid-template-columns:1fr;padding:22px;gap:18px}.first-production h2{font-size:23px}.production-statuses summary span{display:block;margin:6px 0 0}}

.press-item{padding:16px 0;border-bottom:1px solid var(--line)}.press-motif{display:flex;justify-content:center;align-items:center;background:repeating-conic-gradient(#eee 0% 25%,#fff 0% 50%) 0/20px 20px;min-height:140px;padding:16px}.press-motif img{max-width:100%;height:140px;object-fit:contain}.press-info h3{margin:14px 0 6px;font-size:15px}.press-info p{font-size:12px;line-height:1.6;color:var(--muted)}.press-count{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-top:12px}.press-count strong{font-size:28px}.press-count span{font-size:13px}.press-plus{min-height:52px;min-width:80px;font-size:22px}.job-actions .press-info .line{border:0;padding-bottom:0}.press-info .line .btn{flex:1}@media(min-width:700px) and (max-width:1000px){.press-item{display:grid;grid-template-columns:3fr 2fr;gap:20px}.press-motif img{height:220px}.press-info h3{margin-top:0}}

.preflight-art{display:grid;grid-template-columns:3fr 2fr;gap:24px;padding:24px;margin-bottom:20px;align-items:center}.preflight-art>img{width:100%;height:260px;object-fit:contain;background:repeating-conic-gradient(#eee 0% 25%,#fff 0% 50%) 0/20px 20px;padding:20px}@media(max-width:700px){.preflight-art{grid-template-columns:1fr}.preflight-art>img{height:200px}}

.lamination-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:20px}.lamination-card{overflow:hidden}.lamination-art{background:#ecebea;display:flex;justify-content:center;align-items:center;height:180px;padding:20px}.lamination-art img{max-width:100%;max-height:140px;object-fit:contain}.lamination-copy{padding:20px}.lamination-copy>.line{justify-content:space-between}.lamination-copy h2{font-size:17px;margin-top:18px;overflow-wrap:anywhere}.lamination-copy>p{color:var(--muted);font-size:12px}.lamination-copy>.btn{margin-top:14px}.lamination-copy .work-next{justify-content:flex-start;gap:8px}@media(max-width:900px){.lamination-grid{grid-template-columns:1fr}.lamination-card{display:grid;grid-template-columns:2fr 3fr}.lamination-art{height:auto;min-height:200px}.lamination-art img{max-height:260px}}@media(max-width:600px){.lamination-card{grid-template-columns:1fr}.lamination-art{min-height:140px}.lamination-copy{padding:16px}}

.upload-extra{border-top:1px solid var(--line);margin-top:16px;padding-top:8px}.upload-extra summary{cursor:pointer;font-weight:600;padding:12px 0;min-height:44px}.upload-extra[open] summary{margin-bottom:12px}

/* Completion: one focused working surface for pressing and clear empty queues. */
.empty-start{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:32px}
.empty-start h2{font-size:23px;line-height:1.25}.empty-start p{line-height:1.6;max-width:640px}
.backup-card{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:20px}
.backup-card p{line-height:1.6;margin-top:8px}.backup-card>.btn{flex-shrink:0}
.job-layout.press-mode{display:flex;flex-direction:column}.press-mode>aside{order:-1;position:static;width:100%}
.press-mode .press-info h3{font-size:19px}.press-mode .press-motif img{height:280px}
@media(min-width:700px){.press-mode .press-item{display:grid;grid-template-columns:3fr 2fr;gap:24px}.press-mode .press-info h3{margin-top:0}}
@media(max-width:700px){.backup-card{align-items:flex-start;flex-direction:column;gap:16px}.empty-start{padding:24px}.press-mode .press-motif img{height:200px}}

.press-proof-set{background:#fff;width:100%;display:grid;gap:14px}.press-proof{margin:0;padding:12px;background:#fff;border:1px solid var(--line)}.press-proof.current-proof{border-color:var(--accent)}.press-proof figcaption{font-size:12px;margin-top:10px;line-height:1.5}.press-proof img{width:100%;max-height:320px;object-fit:contain}.press-mode .press-proof:not(.current-proof) img{height:100px}

/* Read-only material colour comparison, sharing the existing dialog. */
.film-match{display:flex;gap:14px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line,#ddd)}
.film-comparison{display:flex;flex-shrink:0}.film-swatch{display:block;width:48px;height:54px;border:1px solid #aaa}
.film-match p{margin:4px 0}.film-nearest{border-left:3px solid #bd5032;padding-left:10px}
@media(max-width:600px){.film-swatch{width:30px;height:48px}.film-match{gap:10px}}

/* Smart Cut uses the existing upload surface and tokens. */
.smart-cut {grid-column:1/-1;border-top:1px solid #ddd;margin-top:16px;padding-top:12px;}
.smart-cut summary {font-weight:650;cursor:pointer;padding:8px 0;}
.smart-cut-viewport {overflow:auto;max-height:65vh;min-height:360px;background:repeating-conic-gradient(#eee 0% 25%,white 0% 50%) 0/20px 20px;border:1px solid #ddd;}
.smart-cut-workspace {display:grid;grid-template-columns:minmax(260px,340px) minmax(0,1fr);gap:20px;align-items:start;}
.smart-cut-controls,.smart-cut-stage {min-width:0;}
.smart-cut-stage {position:sticky;top:0;}
.smart-cut .form-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
.smart-cut input,.smart-cut select,.smart-cut textarea {max-width:100%;min-height:44px;}
.smart-cut button:focus-visible,.smart-cut input:focus-visible,.smart-cut select:focus-visible {outline:2px solid #b94b17;outline-offset:3px;}
@media(max-width:800px){.smart-cut-workspace{grid-template-columns:1fr}.smart-cut-stage{position:static;order:-1}.smart-cut-viewport{max-height:55vh}}
.smart-cut-canvas {position:relative;width:100%;min-height:1px;}
.smart-cut-canvas img,.smart-cut-canvas svg {position:absolute;inset:0;width:100%;height:100%;object-fit:contain;}
.smart-cut button {min-height:44px;}
.smart-cut .actions {flex-wrap:wrap;}

/* One live layout preview alongside the existing validated placement form. */
#dialog:has(.layout-editor){width:min(1200px,96vw);max-width:1200px}
.layout-editor{display:grid;grid-template-columns:minmax(0,3fr) minmax(260px,2fr);gap:20px;align-items:start}
.layout-editor-preview{position:sticky;top:0;max-height:65vh;overflow:auto;background:#f5f5f5;padding:12px}
.layout-editor-preview .paper{width:100%;max-width:100%;margin:auto}
.layout-editor-fields{min-width:0}
@media(max-width:800px){.layout-editor{grid-template-columns:1fr}.layout-editor-preview{position:static;max-height:40vh}}

/* Internal Bildekor work surface: one PDF with separate, revision-bound layers. */
.installation-dialog{width:calc(100vw - 32px);max-width:1800px;height:calc(100dvh - 32px);max-height:none;padding:0;border:1px solid var(--line);background:var(--bg,#f6f5f3);color:var(--ink,#171717)}
.installation-dialog:fullscreen{width:100vw;height:100dvh;max-width:none;border:0}.installation-dialog::backdrop{background:#0009}
.installation-head{display:flex;justify-content:space-between;gap:16px;padding:16px 22px;background:#111;color:white}.installation-head h2{margin:4px 0;font-size:22px}.installation-head p{margin:0;font-size:12px}.installation-head .btn{background:#292929;color:white;border-color:#555}
.installation-body{display:grid;grid-template-columns:290px minmax(0,1fr);height:calc(100% - 105px)}.installation-tools{overflow:auto;padding:16px;border-right:1px solid var(--line);background:white}.installation-tools label{display:block;font-size:12px;font-weight:600;margin:9px 0}.installation-tools input:not([type=checkbox]),.installation-tools select{display:block;width:100%;min-height:40px;margin-top:4px;border:1px solid #bdb9b4;border-radius:3px;padding:8px;background:white;color:#111}.installation-tools .checkbox{display:flex;align-items:center;gap:8px}.installation-tools details{border-top:1px solid var(--line);padding:12px 0}.installation-tools summary{font-weight:600;cursor:pointer}.installation-tools .btn{min-height:44px}.installation-tool-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:12px 0}.installation-tool-grid [aria-pressed=true]{background:#111;color:white}.installation-work{min-width:0;min-height:0;display:flex;flex-direction:column;padding:16px;overflow:hidden}.installation-toolbar{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px}.installation-toolbar .btn{min-width:44px;min-height:44px}.installation-stage{overflow:auto;flex:1;min-height:220px;background:#e6e3df;display:grid;place-items:start center;padding:14px}.installation-stage svg{display:block;width:100%;height:auto;background:white;touch-action:none;user-select:none;box-shadow:0 2px 10px #0002}.installation-stage svg:focus-visible{outline:3px solid #a64118;outline-offset:3px}.installation-work [data-status]{min-height:24px;margin:10px 0;font-size:13px}.installation-mark{display:block;text-align:left;width:100%;min-height:44px;border:1px solid var(--line);background:white;padding:10px;margin:5px 0;color:#222}.installation-mark.selected{border-color:#a64118;background:#fff5ed}
@media(max-width:1000px){.installation-dialog{width:100vw;height:100dvh}.installation-body{grid-template-columns:245px minmax(0,1fr)}.installation-work{padding:10px}.installation-head{padding:12px}.machine-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.machine-card{grid-template-columns:1fr}.machine-art{min-height:130px}}
@media(max-width:650px){.installation-body{display:flex;flex-direction:column;height:calc(100% - 115px)}.installation-tools{max-height:35%;border-right:0;border-bottom:1px solid var(--line)}.installation-work{flex:1;min-height:300px}.installation-head h2{font-size:18px}.installation-stage{padding:4px}.machine-grid{grid-template-columns:1fr}}

.maintenance-dialog{width:min(1120px,96vw);max-height:94vh;overflow:auto;border:1px solid #bbb;padding:24px;background:#fff}.maintenance-content{display:grid;grid-template-columns:1.2fr 1fr;gap:24px}.maintenance-content article{margin-bottom:12px}.maintenance-content dd{margin:0 0 12px;overflow-wrap:anywhere}.maintenance-dialog label{display:grid;gap:6px}.maintenance-dialog input,.maintenance-dialog textarea,.maintenance-dialog select{min-height:44px;max-width:100%;padding:8px;border:1px solid #bbb}.maintenance-dialog [data-editor]{border-top:1px solid #ccc;margin-top:20px;padding-top:20px}.maintenance-dialog .btn{min-height:44px}@media(max-width:760px){.maintenance-content{grid-template-columns:1fr}.maintenance-dialog{padding:12px}}

/* Internal documentation uses the existing light card surface. */
.evidence-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:16px}.evidence-grid img{display:block;width:100%;height:240px;object-fit:contain;background:var(--paper,#f7f7f7)}.evidence-grid .btn{margin-top:12px}

.planning-days{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:12px}.planning-slot{border-top:1px solid var(--line,#ddd);padding:12px 0}.planning-slot p{margin:6px 0}

.history-data{white-space:pre-wrap;overflow-wrap:anywhere;max-height:28rem;overflow:auto}

[data-color-canvas]{display:block;max-width:100%;height:auto;touch-action:none;background:repeating-conic-gradient(#eee 0 25%,#fff 0 50%) 0/16px 16px;cursor:crosshair}[data-color-canvas][hidden]{display:none}.color-source-swatch{width:20px;height:20px;display:inline-block;border:1px solid #777;vertical-align:middle;margin-right:8px}

#dialog:has(.profile-editor){width:min(1000px,96vw);max-width:1000px}#dialog:has(.profile-editor) input,#dialog:has(.profile-editor) select,#dialog:has(.profile-editor) textarea{width:100%;min-width:0;max-width:100%;box-sizing:border-box}#dialog:has(.profile-editor) label{overflow-wrap:anywhere}#dialog:has(.profile-editor) .line{flex-wrap:wrap}

.board-filters label{display:grid;gap:5px;min-width:150px}.board-filters input,.board-filters select{max-width:260px;width:100%}
@media(min-width:801px){.smart-cut-controls{max-height:65vh;overflow:auto;padding-right:8px}.smart-cut-stage{max-height:70vh;overflow:auto}.smart-cut-stage .smart-cut-viewport{margin:10px 0}}
@media(max-width:800px){.smart-cut-viewport{min-height:280px}.board-filters label{flex:1;min-width:140px}}

/* Shared Viken NEXT navigation */
.viken-switcher{position:relative;flex:none;color:#f5f2ed;font:inherit;line-height:1.2;text-align:left}
.viken-switcher>summary{display:flex;align-items:center;justify-content:center;gap:.46rem;min-height:36px;padding:.4rem .6rem;background:#242323;color:#f5f2ed;border:1px solid #77716b;border-radius:.4rem;cursor:pointer;list-style:none;white-space:nowrap;font-size:.74rem;font-weight:750;letter-spacing:.025em}
.viken-switcher>summary::-webkit-details-marker{display:none}
.viken-switcher>summary::after{content:'';width:.4rem;height:.4rem;border:solid currentColor;border-width:0 1px 1px 0;transform:rotate(45deg);margin-top:-.2rem}
.viken-switcher>summary:hover,.viken-switcher[open]>summary{background:#353231}
.viken-switcher-panel{position:absolute;right:0;top:calc(100% + .45rem);min-width:10.5rem;padding:.3rem;z-index:80;background:#1d1c1b;border:1px solid #716961;border-radius:.5rem;box-shadow:0 8px 24px #0005}
.viken-switcher-panel a{display:flex;align-items:center;min-height:40px;padding:.5rem .7rem;border-radius:.26rem;color:#f5f2ed;text-decoration:none;font-size:.85rem;white-space:nowrap}
.viken-switcher-panel a:hover,.viken-switcher-panel a:focus-visible{background:#3b342d;color:#fff}
.viken-switcher-panel a[aria-current=page]{font-weight:850;color:#ffc48b}
.viken-switcher-panel a:first-child{border-bottom:1px solid #56514b;border-radius:0;margin-bottom:.25rem}
.viken-switcher :focus-visible{outline:2px solid #ffb86b;outline-offset:2px}
@media(max-width:540px){.viken-switcher>summary{min-height:38px;font-size:.66rem;padding-inline:.44rem}}
