/* Phase 3 print workspace: separate design from production */
#openPrintStudio{margin:10px 0 12px;font-size:15px;min-height:46px}
#legacyPrint{border-top:1px solid #e5eaf0;padding-top:10px}
#legacyPrint summary{background:#f3f6fa;border-radius:8px;padding:11px;color:#3c5168}
#legacyPrint[open] summary{margin-bottom:14px}
#printWorkspace{border:0;border-radius:18px;padding:0;width:min(1100px,96vw);max-width:1100px;max-height:min(92vh,1000px);background:#fff;color:#182638;box-shadow:0 24px 70px #0004;overflow:auto}
#printWorkspace::backdrop{background:#101720bb}
#printWorkspace .ps-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 24px;background:#171717;color:#fff}
#printWorkspace .ps-heading h2{font-size:22px;margin:0}
#printWorkspace .ps-heading p{font-size:12px;margin:5px 0 0;color:#d0d9e7}
#psClose{border:1px solid #7e8792;background:#2e2e2e;color:#fff;border-radius:9px;width:40px;height:40px;font-size:20px;cursor:pointer}
.ps-tabs{display:flex;gap:8px;padding:14px 24px 0;border-bottom:1px solid #dbe2eb}
.ps-tabs button{background:#edf1f6;border:1px solid #d4dce7;padding:11px 16px;font-size:14px;font-weight:750;color:#465b71;border-radius:9px 9px 0 0;cursor:pointer}
.ps-tabs button[aria-selected=true]{background:#fff;color:#101d30;border-bottom-color:#fff;box-shadow:inset 0 3px 0 #f58220}
.ps-layout{display:grid;grid-template-columns:minmax(290px,390px) minmax(340px,1fr);gap:24px;padding:22px 24px 26px}
.ps-options,.ps-preview{min-width:0}
.ps-common{margin-bottom:18px}
.ps-common label,.ps-options label{font-size:12px;font-weight:750;display:block;margin:0 0 6px;color:#41516a}
.ps-options select,.ps-options input[type=number]{width:100%;background:#fff;border:1px solid #cbd7e7;border-radius:9px;padding:10px;min-height:43px;font-size:14px}
.ps-options button:focus-visible,.ps-tabs button:focus-visible,#psClose:focus-visible,.ps-queue button:focus-visible{outline:3px solid #317fc7;outline-offset:2px}
.ps-options h3,.ps-preview h3{font-size:15px;margin:18px 0 8px}
.ps-options #psSingle[hidden],.ps-options #psMixed[hidden],#psRecovery[hidden]{display:none}
.ps-muted{font-size:12px;line-height:1.5;color:#63758b;margin:6px 0 12px}
.ps-preview h3{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 12px}
#psPage{font-size:12px;color:#5b7086;font-weight:500}
#psCanvas{width:100%;height:auto;background:#fff;border:1px solid #d0d9e6;box-shadow:0 5px 20px #1e34521c;display:block}
.ps-pagination{display:flex;justify-content:center;gap:8px;margin-top:12px}
.ps-pagination button,.ps-queue button,#psRestore,#psDiscard{cursor:pointer;border:1px solid #d2dae3;background:#f3f6f9;color:#28415e;border-radius:8px;padding:8px 12px}
.ps-pagination button:disabled,.ps-queue button:disabled{opacity:.35;cursor:not-allowed}
.ps-warnings{display:grid;gap:6px;margin:8px 0 15px}
.ps-warnings p{font-size:12px;line-height:1.45;border-radius:8px;padding:10px;margin:0}
.ps-good{border:1px solid #cadfd1;background:#f4faf5;color:#28563a}
.ps-warning{border:1px solid #edd49b;background:#fff8e8;color:#684c18}
.ps-add,.ps-file-label{display:block;width:100%;text-align:center;border:1px solid #e8a05a;background:#fff4e6;color:#87490e;padding:10px;border-radius:9px;font-size:13px;font-weight:750;cursor:pointer;margin:8px 0}
#psUploadProjects{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}
#psUploadProjects:focus-visible+.ps-muted{outline:3px solid #317fc7}
.ps-queue-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.ps-queue-head span{background:#edf1f5;border-radius:20px;padding:4px 10px;font-size:12px;color:#445872}
.ps-queue{display:grid;gap:6px;max-height:275px;overflow:auto;margin:6px 0 12px}
.ps-queue-row{display:flex;align-items:center;gap:4px;padding:6px;border:1px solid #e0e6ee;border-radius:9px}
.ps-queue-info{flex:1;min-width:0}
.ps-queue-name{font-weight:750;font-size:12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.ps-queue-info small{font-size:10px;color:#7d8897}
.ps-queue-row input[type=number]{width:56px;min-height:32px;padding:5px;text-align:center}
.ps-queue-row button{min-width:30px;padding:7px}
#psStatus{font-size:12px;color:#37586e;line-height:1.4}
.ps-autosave{margin-top:22px;border:1px solid #ffd5a0;background:#fff8ef;border-radius:9px;padding:12px}
.ps-autosave p{font-size:12px}
.ps-recovery-banner{display:flex;align-items:center;flex-wrap:wrap;gap:7px;border-radius:9px;padding:10px;background:#fff3e3;border:1px solid #f7cf9e;margin-bottom:12px;font-size:12px}
.ps-recovery-banner button{background:#fff;border:1px solid #e9b782;border-radius:7px;padding:6px 9px;cursor:pointer}
#psDownloadSingle,#psDownloadMixed{min-height:44px;font-size:14px}
@media(max-width:760px){
 #printWorkspace{width:100vw;max-height:96vh;border-radius:12px}
 .ps-layout{display:flex;flex-direction:column;padding:15px;gap:14px}
 .ps-heading{padding:15px!important}
 .ps-tabs{padding:12px 15px 0}
 .ps-preview{order:0}.ps-options{order:1}
 .ps-queue{max-height:220px}
}
@media(prefers-reduced-motion:reduce){#printWorkspace{scroll-behavior:auto}}
