:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color-scheme:light}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink)}body[data-theme=precision]{--bg:#f2f5f7;--surface:#fff;--ink:#172531;--muted:#60727e;--line:#dce4e9;--accent:#166b83;--accent-ink:#fff;--sidebar:#172b38;--sidebar-ink:#ecf3f5;--stage:#e4ebee;--soft:#eaf4f5}body[data-theme=atelier]{--bg:#f5f1e9;--surface:#fffcf7;--ink:#352d28;--muted:#756c63;--line:#e5dacf;--accent:#9c4a31;--accent-ink:#fff;--sidebar:#463b35;--sidebar-ink:#fbf4eb;--stage:#ece1d5;--soft:#f6e9df}body[data-theme=night]{--bg:#101923;--surface:#1b2935;--ink:#eaf0f3;--muted:#a5b4c0;--line:#344651;--accent:#62c7cd;--accent-ink:#0c2028;--sidebar:#0b131b;--sidebar-ink:#eaf5f6;--stage:#273b49;--soft:#243c45}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.app{display:flex;min-height:100vh}.sidebar{width:234px;flex:none;background:var(--sidebar);color:var(--sidebar-ink);display:flex;flex-direction:column;padding:30px 15px}.brand{display:flex;align-items:center;gap:12px;margin:0 10px 67px;padding:0;width:calc(100% - 20px);border:0;background:transparent;color:inherit;text-align:left;font-size:13px;line-height:1.15;letter-spacing:.12em;font-weight:650}.brand:hover{opacity:.82}.brand strong{font-size:17px;letter-spacing:.16em}.brandmark{background:var(--accent);color:var(--accent-ink);font-size:27px;letter-spacing:-.2em;width:43px;height:43px;border-radius:9px;display:grid;place-items:center;padding-right:6px;font-weight:800}.brandmark span{color:var(--sidebar-ink)}.side-label{font-size:11px;letter-spacing:.16em;opacity:.54;margin:0 12px 13px}.nav{display:flex;align-items:center;gap:13px;color:inherit;background:none;border:0;width:100%;padding:13px 14px;text-align:left;border-radius:7px;font-size:15px}.nav.active,.nav:hover{background:#ffffff1d}.nav.active{box-shadow:inset 3px 0 var(--accent)}.sidebar-bottom{margin-top:auto;padding:20px 12px 0;color:#d2dfe4;font-size:13px;line-height:1.5}.sidebar-bottom small{font-size:10px;letter-spacing:.13em;opacity:.7}.sidebar-bottom p{opacity:.75}main{flex:1;min-width:0}.topbar{height:74px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 clamp(20px,4vw,55px);background:var(--surface)}.crumb{font-size:12px;letter-spacing:.12em;color:var(--muted)}.crumb span{padding:0 12px;color:#9ba9ad}.crumb strong{color:var(--ink)}.theme-switch{display:flex;align-items:center;gap:12px}.theme-switch label,.eyebrow,.tag,.panel label,.metric-grid label,th,.target-input label,.controls label,.saved-panel label{font-size:11px;font-weight:750;letter-spacing:.12em}.theme-switch label{color:var(--muted)}select,input{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:7px;padding:11px 12px}.theme-switch select{font-size:13px}.page{display:none;max-width:1440px;margin:auto;padding:40px clamp(20px,4vw,55px) 80px}.page.active{display:block}.heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:28px;gap:20px}.eyebrow{color:var(--accent);margin-bottom:10px}h1{font-size:clamp(29px,3vw,40px);line-height:1.13;letter-spacing:-.04em;margin:0 0 8px}h2{font-size:17px;letter-spacing:-.02em;margin:0}p{line-height:1.5}.heading p{margin:0;color:var(--muted)}.tag{white-space:nowrap;color:var(--accent);border:1px solid var(--line);border-radius:20px;padding:9px 12px}.workspace{display:grid;grid-template-columns:minmax(250px,.83fr) minmax(430px,1.4fr);gap:20px;align-items:start}.leftcol,.rightcol{display:grid;gap:18px}.panel{background:var(--surface);border:1px solid var(--line);border-radius:11px;padding:23px;box-shadow:0 3px 16px #102a3510}.upload{border:2px dashed #aabcc3;text-align:center;min-height:310px;display:flex;flex-direction:column;justify-content:center;align-items:center}.upload.dragover{border-color:var(--accent);background:var(--soft)}.upload-icon{font-size:38px;color:var(--accent);line-height:1;margin-bottom:15px}.upload p,.upload small,.caption,.subtle{color:var(--muted)}.upload p{font-size:14px;margin:8px 0 21px}.upload small{font-size:12px;margin-top:14px}.primary,.secondary{border:0;border-radius:7px;padding:11px 17px;background:var(--accent);color:var(--accent-ink);font-weight:700}.secondary{background:var(--soft);color:var(--accent);border:1px solid var(--line)}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:19px}.subtle{font-size:12px;max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-button{border:0;background:none;color:var(--accent);font-weight:700}.checker{background-color:#fafafa;background-image:linear-gradient(45deg,#e0e4e5 25%,transparent 25%),linear-gradient(-45deg,#e0e4e5 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e0e4e5 75%),linear-gradient(-45deg,transparent 75%,#e0e4e5 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0;display:grid;place-items:center;height:320px;overflow:hidden;border-radius:6px}.checker img{max-width:92%;max-height:92%;object-fit:contain}.caption{font-size:12px;margin-bottom:0;overflow-wrap:anywhere}.result-panel{min-height:310px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:35px 50px}.result-panel p{color:var(--muted);max-width:380px;font-size:14px}.empty-icon{font-size:53px;color:var(--accent);opacity:.55}.statusbar{background:var(--soft);border:1px solid var(--line);padding:14px 18px;border-radius:8px;display:flex;gap:10px;align-items:center;font-weight:750}.status-dot{width:9px;height:9px;border-radius:50%;background:var(--accent)}.status-note{margin-left:auto;font-size:12px;color:var(--muted);font-weight:500}.metric-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;padding:4px 0 18px}.metric-grid>div{display:grid;gap:7px}.metric-grid label{color:var(--muted)}.metric-grid strong{font-size:21px;letter-spacing:-.03em}.observation{border-top:1px solid var(--line);padding-top:15px;color:var(--muted);font-size:13px;line-height:1.5}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left}th{color:var(--muted);font-size:10px;padding:0 10px 11px}td{padding:13px 10px;border-top:1px solid var(--line);font-size:14px}td:first-child{font-weight:680}td:not(:first-child){font-variant-numeric:tabular-nums}.note{font-size:12px;color:var(--muted);line-height:1.55;margin:16px 0 0}.target-input{display:flex;justify-content:space-between;align-items:center;gap:16px}.target-input label{color:var(--muted)}.target-input label span{font-size:12px;letter-spacing:0;font-weight:400}.target-input input{width:115px}.target-summary{display:grid;grid-template-columns:1fr 1fr;margin:18px 0;padding:19px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);gap:20px}.target-summary div,.mock-info div{display:grid;gap:7px}.target-summary small,.mock-info small{color:var(--muted);font-size:11px;letter-spacing:.08em;font-weight:750}.target-summary strong,.mock-info strong{font-size:23px;letter-spacing:-.035em}.target-foot{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:var(--muted)}#targetStatus{font-weight:750;color:var(--accent)}.hidden{display:none!important}.calculator-panel{max-width:820px}.calc-upload{padding:13px 16px;background:var(--soft);color:var(--muted);border-radius:6px;margin-bottom:22px;font-size:14px}.calc-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.calc-grid>div{display:grid;gap:9px}.calc-grid input{font-size:20px}.calc-results{margin-top:25px}.calc-results .row{display:flex;justify-content:space-between;gap:20px;padding:14px 0;border-top:1px solid var(--line)}.calc-results .row span{color:var(--muted)}.mock-grid{display:grid;grid-template-areas:"config preview" "source preview";grid-template-columns:minmax(220px,300px) minmax(400px,1fr);grid-template-rows:auto 1fr;align-items:start;gap:20px}.mock-source{grid-area:source;margin:0;min-width:0}.mock-config{grid-area:config;min-width:0}.controls{display:flex;flex-direction:column;gap:10px}.controls label:not(:first-child){margin-top:11px}.controls .secondary{margin-top:10px}.presetbox{background:var(--soft);padding:13px;border-radius:7px;font-size:13px;line-height:1.5}.mock-preview{grid-area:preview;min-width:0}.shirt-stage{height:470px;background:var(--stage);display:grid;place-items:center;border-radius:7px;overflow:hidden}.shirt{width:270px;height:350px;background:#232934;clip-path:polygon(19% 0,33% 0,37% 5%,63% 5%,67% 0,81% 0,100% 12%,88% 32%,79% 27%,79% 100%,21% 100%,21% 27%,12% 32%,0 12%);position:relative;filter:drop-shadow(0 5px 5px #0004)}.zone{position:absolute;left:21%;width:58%;top:17%;height:65%;display:flex;justify-content:center;align-items:flex-start}.zone img{position:absolute;max-width:none;object-fit:contain;display:none}.mock-info{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:20px 0;border-bottom:1px solid var(--line)}.saved-panel{max-width:800px}.save-row{display:flex;gap:10px;margin:10px 0}.save-row input{flex:1;min-width:0}.saved-item{padding:15px 0;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:12px;align-items:center}.saved-item strong{display:block}.saved-item small{color:var(--muted)}.saved-item button{border:0;background:none;color:var(--accent);font-weight:700}.toast{position:fixed;bottom:20px;right:20px;background:var(--ink);color:var(--surface);padding:13px 18px;border-radius:8px;box-shadow:0 5px 20px #0003}footer{display:flex;justify-content:space-between;padding:25px clamp(20px,4vw,55px);color:var(--muted);font-size:10px;letter-spacing:.12em;border-top:1px solid var(--line)}@media(max-width:980px){.workspace{grid-template-columns:1fr}.mock-grid{grid-template-areas:"config" "source" "preview";grid-template-columns:minmax(0,1fr);grid-template-rows:auto;gap:16px}.leftcol{grid-template-columns:1fr 1fr}.upload{min-height:300px}}@media(max-width:700px){.app{display:block}.sidebar{width:auto;padding:12px 14px}.brand{margin:0 0 12px}.side-label,.sidebar-bottom{display:none}.sidebar nav{display:flex;overflow:auto;gap:5px}.nav{flex:none;width:auto;padding:9px 11px;font-size:12px}.nav span{white-space:nowrap}.topbar{height:62px}.crumb{display:none}.theme-switch{width:100%;justify-content:space-between}.heading{align-items:start}.tag{display:none}.leftcol{grid-template-columns:1fr}.metric-grid,.target-summary,.mock-info{gap:14px}.mock-grid{grid-template-columns:1fr}.shirt-stage{height:390px}.save-row{flex-direction:column}footer span{display:none}}

.production-label{font-size:11px;letter-spacing:.12em;font-weight:750;color:var(--accent)}.save-preset{align-self:flex-start;padding:6px 0}.order-block{padding-top:20px}.order-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:8px 0 20px}.order-grid>div{display:grid;gap:5px;min-width:0}.order-grid small{font-size:11px;letter-spacing:.08em;font-weight:750;color:var(--muted)}.order-grid strong{font-size:14px;overflow-wrap:anywhere}@media(max-width:700px){.production-label{font-size:10px}.order-grid{grid-template-columns:1fr 1fr}}

.shirt .neck,.shirt .hood,.shirt .pocket{display:none;pointer-events:none}.shirt.tee .neck,.shirt.sweatshirt .neck{display:block;position:absolute;top:-1px;left:40%;width:20%;height:26px;border-radius:0 0 50% 50%;background:var(--stage);z-index:2}.shirt.vneck .neck{display:block;position:absolute;top:0;left:40%;width:20%;height:27px;background:var(--stage);clip-path:polygon(0 0,100% 0,50% 100%);z-index:2}.shirt.hoodie .hood{display:block;position:absolute;top:-2px;left:33%;width:34%;height:76px;border-radius:36% 36% 50% 50%;border:14px solid #0003;z-index:2}.shirt.hoodie .pocket{display:block;position:absolute;bottom:18%;left:35%;width:30%;height:14%;border:2px solid #0003;border-radius:4px 4px 15px 15px}.shirt.hoodie .zone{top:22%;height:42%}.shirt.vneck .zone{top:19%}.shirt.sweatshirt .zone{top:17%}.shirt.bodysuit{height:370px;width:235px;clip-path:polygon(16% 0,37% 0,40% 4%,60% 4%,63% 0,84% 0,100% 10%,87% 27%,78% 23%,78% 76%,68% 95%,57% 100%,43% 100%,32% 95%,22% 76%,22% 23%,13% 27%,0 10%)}.shirt.bodysuit .neck{display:block;position:absolute;top:-1px;left:35%;width:30%;height:35px;background:var(--stage);border-radius:0 0 50% 50%;z-index:2}.shirt.bodysuit .zone{left:22%;width:56%;top:16%;height:55%}
.product-source{font-size:13px;color:var(--accent);font-weight:700;text-decoration:underline;text-underline-offset:3px;margin-top:4px}

.guidance-list{margin:0;padding-left:21px;color:var(--ink);font-size:14px;line-height:1.55}.guidance-list li{padding:5px 0}.usecase-heading{margin:22px 0 16px}.editor-grid{display:grid;grid-template-columns:minmax(270px,.85fr) minmax(380px,1.15fr);gap:20px}.editor-controls p{font-size:14px;color:var(--muted)}.editor-controls{display:flex;flex-direction:column;gap:12px;align-items:stretch}.editor-controls label{color:var(--muted)}.editor-controls input[type=range]{padding:0;accent-color:var(--accent)}.editor-controls hr{width:100%;border:0;border-top:1px solid var(--line);margin:15px 0}.editor-controls .calc-grid input{width:100%}.editor-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.editor-actions button:disabled{opacity:.45;cursor:not-allowed}.view-tabs{display:flex;gap:8px;margin-bottom:16px}.view-tabs button{border:1px solid var(--line);color:var(--ink);background:var(--surface);border-radius:7px;padding:9px 15px;font-weight:650}.view-tabs .view-active{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}.shirt.back-side .neck{display:none}.shirt.back-side .pocket{display:none}.shirt.back-side.hoodie .hood{top:-12px;height:92px;border-radius:25% 25% 50% 50%}.shirt.back-side .zone{top:22%}@media(max-width:980px){.editor-grid{grid-template-columns:1fr}}

/* Photorealistic blank garment layer with a separate physical-scale artwork overlay. */
.shirt-stage{height:520px;background:#f2f4f6;overflow:hidden}.garment-visual{--tint:#ffffff;--asset:url(assets/tee-pair.png);width:min(94%,450px);aspect-ratio:1;position:relative;isolation:isolate;flex:none}.garment-visual.bodysuit{width:min(80%,360px);aspect-ratio:3/4}.garment-tint,.garment-photo{position:absolute;inset:0;pointer-events:none}.garment-tint{background:var(--tint);-webkit-mask-image:var(--asset);mask-image:var(--asset);-webkit-mask-size:200% 100%;mask-size:200% 100%;-webkit-mask-position:0 50%;mask-position:0 50%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.garment-photo{background-image:var(--asset);background-repeat:no-repeat;background-size:200% 100%;background-position:0 50%;mix-blend-mode:multiply}.garment-visual.back-side .garment-tint{-webkit-mask-position:100% 50%;mask-position:100% 50%}.garment-visual.back-side .garment-photo{background-position:100% 50%}.garment-visual .zone{position:absolute;left:20%;top:27%;width:60%;height:46%;display:block;z-index:3;outline:none!important}.garment-visual.vneck .zone{top:30%}.garment-visual.polo .zone{top:30%;height:42%}.garment-visual.polo.back-side:not(.hoodie) .zone{top:30%}.garment-visual.sweatshirt .zone{left:21%;top:27%;width:58%}.garment-visual.hoodie .zone{left:20%;top:26%;width:60%;height:34%}.garment-visual.hoodie.back-side .zone{top:34%;height:40%}.garment-visual.back-side:not(.hoodie) .zone{top:29%}.garment-visual.bodysuit .zone{left:24%;top:26%;width:52%;height:42%}.garment-visual.bodysuit.back-side .zone{top:27%}.garment-visual .zone img{filter:drop-shadow(0 1px 1px #0002)}.garment-visual.white-garment .garment-photo{filter:brightness(1.07)}
.target-foot{align-items:center;gap:14px;flex-wrap:wrap}#targetStatus{font-size:clamp(23px,2.3vw,31px);line-height:1.1;letter-spacing:-.035em;font-weight:800;padding:7px 0;color:#187247}#targetStatus[data-quality=good]{color:#166b83}#targetStatus[data-quality=acceptable]{color:#946200}#targetStatus[data-quality=low]{color:#b34036}#required{font-size:13px;max-width:240px;line-height:1.4;text-align:right}
@media(max-width:700px){.shirt-stage{height:430px}.garment-visual{width:min(96%,390px)}.garment-visual.bodysuit{width:min(80%,310px)}#required{text-align:left}}

.editor-upload{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px;border-style:dashed}.editor-upload.dragover{border-color:var(--accent);background:var(--soft)}.editor-upload strong{font-size:16px}.editor-upload p{margin:6px 0 0;color:var(--muted);font-size:14px;overflow-wrap:anywhere}.editor-upload button{flex:none}@media(max-width:700px){.editor-upload{align-items:stretch;flex-direction:column}.editor-upload button{width:100%}}

.target-verdict{margin-top:20px;padding:18px 20px;border-radius:9px;background:var(--soft);color:var(--accent);font-size:clamp(20px,2.5vw,29px);line-height:1.2;font-weight:800;letter-spacing:-.03em}.target-verdict[data-quality=low]{background:#fff0ec;color:#9a3f2e}.target-verdict[data-quality=acceptable]{background:#fff7e3;color:#886000}.target-details{display:grid;grid-template-columns:1fr 1fr;gap:16px}.target-details>div{display:grid;gap:6px}.target-details span{font-size:13px;color:var(--muted)}.target-details strong{font-size:16px;font-variant-numeric:tabular-nums}.target-panel .note{margin-top:16px}@media(max-width:700px){.target-details{grid-template-columns:1fr}}

.file-input{display:block;width:min(100%,340px);padding:9px;color:var(--ink);background:var(--surface);font-size:14px;cursor:pointer}.file-input::file-selector-button{margin-right:12px;border:0;border-radius:6px;padding:10px 13px;background:var(--accent);color:var(--accent-ink);font:inherit;font-weight:700;cursor:pointer}.editor-file{min-width:220px;max-width:100%}.editor-file .file-input{width:100%}.upload-error{color:#a33525;font-size:14px;line-height:1.4;margin:8px 0 0}.text-button{cursor:pointer}@media(max-width:700px){.editor-file{width:100%}}

.editor-size-row{display:flex;align-items:center;justify-content:space-between;gap:15px}.editor-size-row input{width:110px}.editor-size-picks{display:flex;flex-wrap:wrap;gap:8px}.editor-size-picks button{padding:8px 10px;font-size:13px}.editor-size-report{white-space:pre-line;background:var(--soft);padding:15px;border-radius:7px;font-size:14px;line-height:1.55;font-variant-numeric:tabular-nums}.editor-controls .note{margin:0}

.preview-backgrounds{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:18px}.preview-backgrounds button{border:1px solid var(--line);border-radius:6px;padding:8px 10px;background:var(--surface);color:var(--ink);font-size:13px}.preview-backgrounds button[aria-pressed=true]{border-color:var(--accent);background:var(--soft);color:var(--accent);font-weight:750}.comparison-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.comparison-grid h3{margin:0 0 8px;font-size:14px}.editor-checker{height:260px}.editor-checker[data-bg=white]{background:#fff;background-image:none}.editor-checker[data-bg=black]{background:#111;background-image:none}.editor-checker[data-bg=shirt]{background:var(--shirt-preview,#ffffff);background-image:none}.editor-actions button:disabled{opacity:.45;cursor:not-allowed}@media(max-width:680px){.comparison-grid{grid-template-columns:1fr}.editor-checker{height:230px}}
.visible-panel .metric-grid{border-bottom:1px solid var(--line);margin-bottom:13px}.visible-panel .metric-grid strong{font-size:19px}.visible-panel .secondary{margin-top:15px}.visible-panel .secondary:disabled{opacity:.5;cursor:not-allowed}.proof-summary{margin:18px 0 12px;padding:17px 18px;border:1px solid var(--line);background:var(--soft);border-radius:8px;white-space:pre-line;font-size:13px;line-height:1.6;color:var(--ink)}#downloadProof:disabled{opacity:.5;cursor:not-allowed}

/* Quick-reference tables remain readable on small production screens. */
#reference{max-width:1150px}.ref-callout{display:grid;gap:7px;padding:21px 24px;margin-bottom:19px;background:var(--soft);border:1px solid var(--line);border-radius:10px;line-height:1.55}.ref-callout strong{color:var(--accent);font-size:19px}.ref-callout span{font-size:15px}.ref-panel{margin-bottom:19px}.ref-panel>p{color:var(--muted);font-size:15px;margin:0 0 21px}.ref-panel .table-scroll{overflow-x:auto}.ref-table th{font-size:12px;white-space:nowrap}.ref-table td{font-size:15px}.ref-table td:first-child{min-width:180px}.ref-table td:last-child{white-space:nowrap}.ref-tip{padding:15px 17px;background:var(--soft);border-radius:8px;font-size:14px;line-height:1.6;margin-top:20px}.ref-check{border:1px solid var(--line);background:var(--soft);color:var(--accent);border-radius:6px;padding:7px 11px;font-weight:700;white-space:nowrap}.ref-list{font-size:15px;line-height:1.6;padding-left:23px;margin:14px 0}.ref-list li{padding:4px 0}.ref-panel a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}.ref-panel .note{font-size:13px;line-height:1.6}
@media(max-width:700px){.ref-table thead{display:none}.ref-table tbody{display:grid;gap:13px}.ref-table tr{display:grid;padding:10px 15px;border:1px solid var(--line);border-radius:8px}.ref-table td{display:flex;align-items:baseline;justify-content:space-between;gap:15px;border:0;padding:5px 0;white-space:normal!important;font-size:14px}.ref-table td:first-child{min-width:0;font-size:16px;font-weight:750;padding-bottom:10px}.ref-table td::before{content:attr(data-label);color:var(--muted);font-size:12px;flex:none;font-weight:600}.ref-table td:first-child::before{display:none}.ref-panel .subtle{display:none}}
/* Searchable reference library */
#reference{max-width:1150px}.ref-search-panel{margin-bottom:18px}.ref-search-panel label{display:block;color:var(--muted);font-size:13px;margin-bottom:9px}.ref-search-panel input{width:100%;font-size:16px;min-height:48px}.ref-search-panel .note{font-size:14px;margin:14px 0 0}.ref-chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.ref-chip{border:1px solid var(--line);background:var(--soft);color:var(--accent);border-radius:999px;padding:8px 13px;min-height:38px;font-size:14px;font-weight:700}.ref-chip:hover,.ref-chip:focus-visible{border-color:var(--accent)}.ref-accordion{display:grid;gap:12px}.ref-accordion-card{background:var(--surface);border:1px solid var(--line);border-radius:11px;box-shadow:0 3px 16px #102a3510;overflow:hidden;scroll-margin-top:20px}.ref-accordion-card[hidden]{display:none}.ref-accordion-card.is-open{border-color:var(--accent)}.ref-accordion-trigger{display:flex;gap:20px;justify-content:space-between;align-items:center;text-align:left;width:100%;min-height:82px;padding:17px 22px;background:transparent;color:var(--ink);border:0}.ref-accordion-trigger:hover{background:var(--soft)}.ref-accordion-label{display:grid;gap:5px}.ref-accordion-label strong{font-size:17px;line-height:1.25}.ref-accordion-label>span{font-size:14px;line-height:1.45;color:var(--muted)}.ref-chevron{color:var(--accent);font-size:24px;line-height:1;transition:transform .25s ease;flex:none}.is-open .ref-chevron{transform:rotate(180deg)}.ref-accordion-wrap{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows .26s ease,opacity .26s ease}.is-open .ref-accordion-wrap{grid-template-rows:1fr;opacity:1}.ref-accordion-body{min-height:0;overflow:hidden;padding:0 22px;font-size:15px;line-height:1.6}.ref-accordion-body> :first-child{margin-top:18px}.ref-accordion-body> :last-child{margin-bottom:22px}.ref-accordion-body h3{margin:24px 0 12px;font-size:17px}.ref-accordion-body p,.ref-accordion-body li{font-size:15px;line-height:1.6}.ref-accordion-body a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}.ref-accordion-body .ref-table-scroll{max-width:100%;overflow-x:auto;border:1px solid var(--line);border-radius:7px}.ref-accordion-body .ref-table{min-width:560px}.ref-accordion-body .ref-table th{font-size:12px;padding:12px;background:var(--soft);white-space:normal}.ref-accordion-body .ref-table td{font-size:14px;vertical-align:top;padding:10px 12px;white-space:normal}.ref-accordion-body .ref-table td::before{display:none}.ref-accordion-body .ref-table td:first-child{min-width:0;font-weight:700}.ref-accordion-body .ref-table td:last-child{white-space:normal}.ref-accordion-body .ref-table:has(th:nth-child(7)){min-width:880px}.ref-note{color:var(--muted);font-size:14px!important}.ref-callout,.ref-warning,.ref-example-status{padding:17px 19px;border-radius:8px;background:var(--soft);border:1px solid var(--line);margin:17px 0;display:grid;gap:5px}.ref-callout strong{font-size:20px}.ref-warning{background:#fff8e9;border-color:#e9d9b3;color:#43381f}.ref-formulas,.ref-definition-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}.ref-formulas>div,.ref-definition-grid>div{display:grid;gap:6px;background:var(--soft);padding:15px 17px;border-radius:8px}.ref-formulas small{color:var(--muted);font-size:12px;font-weight:750;letter-spacing:.08em}.ref-formulas strong{font-size:16px;line-height:1.4}.ref-definition-grid p{margin:0}.ref-quality{display:inline-block;font-size:16px;color:var(--accent);font-weight:900;letter-spacing:.01em}.ref-quality.excellent{font-size:26px;color:#187247}.ref-quality.verygood,.ref-quality.good{color:#166b83}.ref-quality.usable{color:#946200}.ref-quality.risky,.ref-quality.poor{color:#b34036}.ref-mini{border:1px solid var(--line);border-radius:8px;margin:8px 0;background:var(--surface)}.ref-mini summary{cursor:pointer;padding:11px 14px;font-size:15px;font-weight:700;min-height:44px}.ref-mini[open] summary{border-bottom:1px solid var(--line);color:var(--accent)}.ref-mini>div{padding:8px 15px 16px}.ref-specs{display:grid;gap:9px;margin:4px 0}.ref-specs>div{display:grid;grid-template-columns:minmax(115px,160px) 1fr;gap:9px}.ref-specs dt{font-weight:750;color:var(--muted)}.ref-specs dd{margin:0}.ref-check{font-size:14px;min-height:38px}.ref-checklist{display:grid;gap:12px}.ref-checklist fieldset{border:1px solid var(--line);border-radius:9px;padding:13px 16px 17px;margin:0}.ref-checklist legend{font-weight:750;padding:0 7px}.ref-checkitem{display:flex;align-items:flex-start;gap:10px;font-size:15px;line-height:1.4;margin:10px 0;cursor:pointer}.ref-checkitem input{accent-color:var(--accent);width:19px;height:19px;flex:none;margin:1px 0}.ref-check-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;padding:14px 16px;background:var(--soft);border-radius:8px}.ref-check-status{font-size:16px;color:#9a3f2e}.ref-check-status[data-status=pass]{color:#187247;font-size:20px}.ref-steps{padding-left:23px}.ref-steps li{padding:4px 0}.ref-care{padding-left:23px}
@media(max-width:700px){#reference{padding-left:15px;padding-right:15px}.ref-accordion-trigger{padding:17px;min-height:80px}.ref-accordion-body{padding:0 16px}.ref-accordion-body .ref-table{min-width:600px;border-collapse:collapse}.ref-accordion-body .ref-table thead{display:table-header-group}.ref-accordion-body .ref-table tbody{display:table-row-group}.ref-accordion-body .ref-table tr{display:table-row;border:0;padding:0}.ref-accordion-body .ref-table th,.ref-accordion-body .ref-table td{display:table-cell;min-width:0;font-size:14px}.ref-accordion-body .ref-table td:first-child{font-size:14px}.ref-formulas,.ref-definition-grid{grid-template-columns:1fr}.ref-specs>div{grid-template-columns:1fr;gap:0}.ref-check-footer .secondary{width:100%}}
@media(prefers-reduced-motion:reduce){.ref-accordion-wrap,.ref-chevron{transition:none!important}}
.editor-export{margin-top:20px;padding:18px;border:1px solid var(--line);border-radius:9px;background:var(--soft)}.editor-export h3{margin:0 0 7px;font-size:18px}.editor-export>p{font-size:14px;line-height:1.5;margin:8px 0 14px}.editor-export-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:14px 0}.editor-export-fields>div[hidden]{display:none}.editor-export-fields label{display:block;font-size:13px;font-weight:750;color:var(--muted);margin-bottom:7px}.editor-export-fields select{width:100%;min-height:45px;font-size:15px}.editor-export #downloadFormat{width:100%;min-height:46px}@media(max-width:700px){.editor-export-fields{grid-template-columns:1fr}}
.editor-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:13px 17px;margin:16px 0;background:var(--surface);border:1px solid var(--line);border-radius:10px}.editor-toolbar>span{color:var(--muted);font-size:12px;font-weight:800;letter-spacing:.07em;margin-right:6px}.editor-toolbar button{border:1px solid var(--line);border-radius:7px;background:var(--soft);color:var(--accent);font-size:14px;font-weight:750;min-height:42px;padding:8px 11px}.editor-toolbar button:hover,.editor-toolbar button:focus-visible{border-color:var(--accent)}.editor-group{width:100%;border:1px solid var(--line);border-radius:9px;background:var(--surface);overflow:hidden;scroll-margin-top:18px}.editor-group+ .editor-group{margin-top:0}.editor-group summary{cursor:pointer;list-style:none;display:grid;gap:3px;min-height:66px;padding:14px 16px;position:relative;padding-right:42px}.editor-group summary::-webkit-details-marker{display:none}.editor-group summary::after{content:'⌄';position:absolute;right:17px;top:14px;font-size:24px;line-height:1;color:var(--accent);transition:transform .2s}.editor-group[open] summary::after{transform:rotate(180deg)}.editor-group summary strong{font-size:17px;color:var(--ink)}.editor-group summary span{font-size:14px;color:var(--muted);line-height:1.35}.editor-group[open] summary{border-bottom:1px solid var(--line);background:var(--soft)}.editor-group-body{display:flex;flex-direction:column;align-items:stretch;gap:12px;padding:15px 17px 20px;min-width:0}.editor-group-body h3{font-size:16px;margin:12px 0 0}.editor-group-body h3:first-child{margin-top:0}.editor-group-body p{font-size:14px;line-height:1.55;margin:0}.editor-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.editor-field-grid label{display:block;font-size:12px;font-weight:750;color:var(--muted);margin-bottom:5px}.editor-field-grid input{width:100%;min-width:0}.editor-inline-actions{display:flex;flex-wrap:wrap;gap:8px}.editor-inline-actions button{flex:1 1 110px}.editor-color-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.editor-color-row input{width:65px;height:42px;padding:2px}.editor-preview .editor-export{padding:0;background:var(--surface)}.editor-preview .editor-export .editor-group-body{padding:17px}.editor-group-body .editor-export-fields{margin:2px 0}.editor-group-body #downloadFormat{width:100%}@media(max-width:700px){.editor-toolbar{gap:7px;padding:11px}.editor-toolbar>span{width:100%}.editor-toolbar button{flex:1 1 auto}.editor-field-grid{gap:8px}}
.editor-group-body button:disabled{opacity:.45;cursor:not-allowed}.brush-stage{position:relative;width:92%;height:92%;display:grid;place-items:center;min-width:0;min-height:0}.brush-stage>img{display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:contain}.brush-stage.is-brushing{cursor:crosshair}.brush-stage.is-brushing canvas{touch-action:none;cursor:crosshair}.editor-preview:has(.brush-stage.is-brushing) .editor-checker{height:360px}.editor-field-grid select{width:100%;min-height:44px}.editor-field-grid input[type=color]{height:44px;padding:3px}.editor-group-body #brushMessage,.editor-group-body #fineDetailReport{padding:10px 12px;border:1px solid var(--line);background:var(--soft);border-radius:7px}
.editor-import-settings{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:11px}.editor-import-settings label{font-size:12px;font-weight:750;color:var(--muted)}.editor-import-settings select{min-height:38px;font-size:14px}.editor-import-settings small{font-size:13px;line-height:1.4;color:var(--muted)}
/* Production preflight and portable project backups */
.preflight{margin-top:25px;box-shadow:none;background:var(--surface)}.preflight .panel-head{align-items:center;margin-bottom:8px}.preflight .panel-head h2{font-size:21px}.preflight-intro{font-size:15px;color:var(--muted);margin:0 0 17px}.preflight-badge{display:inline-block;border-radius:999px;padding:9px 13px;background:var(--soft);color:var(--accent);font-weight:800;font-size:15px;white-space:nowrap}.preflight-badge[data-state=pass]{background:#e7f7eb;color:#146a3c}.preflight-badge[data-state=review]{background:#fff2d9;color:#835900}.preflight-badge[data-state=stop]{background:#ffebe7;color:#9b352e}.preflight-checks{display:grid;gap:9px}.preflight-check{display:flex;gap:12px;align-items:start;border:1px solid var(--line);border-radius:8px;padding:11px 13px;font-size:14px}.preflight-symbol{width:26px;height:26px;display:grid;place-items:center;flex:none;border-radius:50%;font-weight:800;background:#e7f7eb;color:#146a3c}.preflight-check[data-level=review] .preflight-symbol{background:#fff2d9;color:#835900}.preflight-check[data-level=stop] .preflight-symbol{background:#ffebe7;color:#9b352e}.preflight-check strong,.preflight-check span:not(.preflight-symbol){display:block;line-height:1.4}.preflight-check span:not(.preflight-symbol){color:var(--muted);margin-top:3px}.preflight-fields{display:grid;grid-template-columns:1fr 110px 1fr;gap:12px;margin:19px 0}.preflight-fields label{display:grid;gap:7px;color:var(--muted);font-size:12px;letter-spacing:.06em;font-weight:800}.preflight-fields input{width:100%;min-width:0;font-size:15px}.preflight-confirm{display:grid;gap:9px;padding:16px;background:var(--soft);border-radius:8px}.preflight-confirm label{display:flex;align-items:start;gap:10px;font-size:15px;line-height:1.45;cursor:pointer}.preflight-confirm input{flex:none;width:19px;height:19px;margin:1px 0;accent-color:var(--accent)}.preflight-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:17px}.preflight-actions button{min-height:45px}.preflight-actions button:disabled{opacity:.5;cursor:not-allowed}.backup-tools{display:grid;gap:12px;padding:18px;border-radius:8px;background:var(--soft);margin:22px 0}.backup-tools strong{font-size:17px}.backup-tools .note{font-size:14px;margin:5px 0 0}.backup-import{display:grid;gap:8px;font-size:14px!important;color:var(--accent);letter-spacing:0!important}.backup-import input{max-width:100%;width:100%;font-size:14px}.saved-item>div:last-child{display:flex;flex-wrap:wrap;gap:11px;align-items:center}.saved-item small{display:block;margin-top:5px;line-height:1.4}.saved-item button{min-height:40px}@media(max-width:700px){.preflight .panel-head{align-items:start;flex-wrap:wrap}.preflight-fields{grid-template-columns:1fr 1fr}.preflight-fields label:first-child{grid-column:1/-1}.preflight-actions button{width:100%}.saved-item{display:block}.saved-item>div:last-child{margin-top:10px}}
.backup-actions{display:flex;flex-wrap:wrap;align-items:end;gap:14px}.backup-actions>button{min-height:46px}.backup-actions .backup-import{flex:1 1 230px}.backup-import input{min-height:46px}.backup-tools>p.note{margin:0}.backup-tools button:disabled{opacity:.5;cursor:not-allowed}@media(max-width:700px){.backup-actions{display:grid;grid-template-columns:1fr}.backup-actions>button{width:100%}}
/* Gang sheet workspace */
.gang-grid{display:grid;grid-template-columns:minmax(275px,360px) minmax(430px,1fr);gap:20px;align-items:start}.gang-controls,.gang-output{min-width:0}.gang-controls h2{font-size:19px;margin-bottom:15px}.gang-controls hr{width:100%;border:0;border-top:1px solid var(--line);margin:22px 0}.gang-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.gang-fields label,.gang-file-label,.gang-item-controls label{display:grid;gap:6px;color:var(--muted);font-size:12px;font-weight:750;letter-spacing:.05em}.gang-fields select,.gang-fields input,.gang-item-controls input{width:100%;min-width:0;min-height:44px;font-size:16px;letter-spacing:0}.gang-file-label{margin:15px 0}.gang-file-label input{width:100%;min-width:0}.gang-controls #gangUseInspected{width:100%;min-height:44px}.gang-drop{border:2px dashed var(--line);border-radius:8px;margin-top:12px;min-height:80px;display:grid;place-items:center;text-align:center;padding:15px;color:var(--muted);font-size:14px}.gang-drop.dragover{border-color:var(--accent);background:var(--soft)}.gang-canvas-wrap{width:100%;max-height:690px;overflow:auto;background-color:#fff;background-image:linear-gradient(45deg,#dfe6e9 25%,transparent 25%),linear-gradient(-45deg,#dfe6e9 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#dfe6e9 75%),linear-gradient(-45deg,transparent 75%,#dfe6e9 75%);background-size:24px 24px;background-position:0 0,0 12px,12px -12px,-12px 0;border:1px solid var(--line);border-radius:8px;padding:14px;text-align:center}.gang-canvas-wrap canvas{display:block;width:100%;height:auto;max-width:850px;margin:0 auto;box-shadow:0 3px 16px #102a3520}.gang-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 18px;margin:17px 0}.gang-metrics>div{display:grid;gap:4px;min-width:0}.gang-metrics small{color:var(--muted);font-size:12px;font-weight:750;letter-spacing:.05em}.gang-metrics strong{font-size:16px;overflow-wrap:anywhere}.gang-output .note{font-size:14px}.gang-export-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}.gang-export-actions button{flex:1 1 210px;min-height:46px}.gang-export-actions button:disabled{opacity:.5;cursor:not-allowed}.gang-quality-confirm{display:flex;align-items:flex-start;gap:9px;margin-top:16px;padding:13px;border-radius:8px;background:#fff2d9;font-size:14px;line-height:1.4}.gang-quality-confirm input{width:18px;height:18px;flex:none;margin:1px 0;accent-color:var(--accent)}.gang-list-panel{margin-top:20px}.gang-items{display:grid;gap:12px}.gang-item{display:flex;gap:18px;align-items:start;padding:15px;border:1px solid var(--line);border-radius:9px;min-width:0}.gang-item>img{width:95px;height:95px;object-fit:contain;background:var(--soft);border-radius:6px;flex:none}.gang-item-body{min-width:0;flex:1}.gang-item-body strong,.gang-item-body small{display:block;overflow-wrap:anywhere}.gang-item-body strong{font-size:16px}.gang-item-body small{color:var(--muted);font-size:13px;margin-top:4px}.gang-item-controls{display:grid;grid-template-columns:repeat(2,minmax(0,150px));gap:12px;margin:13px 0}.gang-item-status{font-size:14px;font-weight:650;color:var(--accent)}.gang-item-status[data-state=review]{color:#946200}.gang-item-actions{display:flex;flex-wrap:wrap;gap:5px;margin-top:9px}.gang-item-actions button{border:0;background:var(--soft);color:var(--accent);padding:8px 10px;border-radius:6px;font-size:13px;font-weight:700}.gang-item-actions button:disabled{opacity:.4;cursor:not-allowed}@media(max-width:990px){.gang-grid{grid-template-columns:1fr}.gang-canvas-wrap{max-height:620px}}@media(max-width:600px){.gang-item{display:block}.gang-item>img{width:76px;height:76px;float:left;margin-right:12px}.gang-item-controls{clear:both;grid-template-columns:repeat(2,minmax(0,1fr))}.gang-metrics strong{font-size:14px}.gang-export-actions button{width:100%}}
/* Local pricing and invoice workspace */
.price-layout{display:grid;grid-template-columns:minmax(300px,400px) minmax(500px,1fr);gap:20px;align-items:start}.price-catalog,.invoice-panel{min-width:0}.price-cards{display:grid;gap:12px}.price-card{border:1px solid var(--line);border-radius:10px;padding:15px;background:var(--surface)}.price-card h3{font-size:19px;margin:0 0 3px}.price-card>small{display:block;color:var(--muted);font-size:14px;margin-bottom:12px}.price-choice{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:52px;margin-top:7px;padding:10px 13px;text-align:left;border:1px solid var(--line);border-radius:8px;background:var(--soft);color:var(--ink);font-size:15px}.price-choice:hover,.price-choice:focus-visible{border-color:var(--accent)}.price-choice strong{font-size:23px;line-height:1;color:var(--accent)}.price-settings{border-top:1px solid var(--line);margin-top:19px;padding-top:16px}.price-settings summary{cursor:pointer;font-size:16px;font-weight:750;color:var(--accent);min-height:40px}.price-editor{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:15px 0}.price-editor label,.invoice-panel label{display:grid;gap:6px;color:var(--muted);font-size:12px;font-weight:750;letter-spacing:.06em}.price-editor input,.invoice-panel input,.invoice-panel textarea{width:100%;min-width:0;font-size:16px;color:var(--ink);letter-spacing:0}.invoice-panel textarea{resize:vertical;line-height:1.4}.price-settings-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:end}.price-settings-actions button{min-height:44px}.price-import{display:grid;gap:5px;font-size:13px;color:var(--accent);font-weight:700}.price-import input{font-size:13px;max-width:240px}.invoice-meta{display:grid;grid-template-columns:1.15fr 1fr 1fr;gap:12px}.invoice-parties{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0 24px}.invoice-items-head{margin-bottom:10px}.invoice-items-head h2{font-size:18px}.invoice-line{display:grid;grid-template-columns:minmax(180px,1fr) 72px 110px 110px auto;gap:9px;align-items:end;border-top:1px solid var(--line);padding:13px 0}.invoice-line label{min-width:0}.invoice-line-total{align-self:center;text-align:right;font-size:16px;white-space:nowrap}.invoice-remove{padding:10px 2px}.field-error{border-color:#b34036!important}.invoice-adjustments{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:18px 0}.invoice-totals{max-width:410px;margin:15px 0 23px auto}.invoice-total-row,.invoice-total-major{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:9px 0;border-top:1px solid var(--line);font-size:15px}.invoice-total-major{background:var(--soft);border-radius:7px;padding:15px;font-size:20px;font-weight:800}.invoice-total-major strong{color:var(--accent);font-size:25px}.invoice-notes-label textarea{margin-top:5px}.invoice-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:21px}.invoice-actions button{min-height:45px}.invoice-actions button:disabled{opacity:.5;cursor:not-allowed}.invoice-saved{margin-top:20px}.saved-invoice{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:14px 0;border-top:1px solid var(--line)}.saved-invoice strong,.saved-invoice small{display:block}.saved-invoice small{color:var(--muted);margin-top:5px;font-size:13px}.saved-invoice>div:last-child{display:flex;gap:8px}.saved-invoice button{border:1px solid var(--line);background:var(--soft);color:var(--accent);border-radius:7px;padding:9px 12px;min-height:42px;font-weight:700}@media(max-width:1100px){.price-layout{grid-template-columns:1fr}.price-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:760px){.price-cards{grid-template-columns:1fr}.invoice-meta,.invoice-parties{grid-template-columns:1fr 1fr}.invoice-meta label:first-child{grid-column:1/-1}.invoice-line{grid-template-columns:minmax(0,1fr) 95px}.invoice-line label:first-child{grid-column:1/-1}.invoice-line-total{justify-self:end}.invoice-remove{justify-self:end}.invoice-actions button{flex:1 1 180px}.price-editor{grid-template-columns:1fr}}@media(max-width:460px){.invoice-meta,.invoice-parties,.invoice-adjustments{grid-template-columns:1fr}.invoice-meta label:first-child{grid-column:auto}.saved-invoice{display:block}.saved-invoice>div:last-child{margin-top:8px}}
/* Direct mockup placement and four-corner scaling */
.garment-visual .zone #mockArt{pointer-events:none;user-select:none}.mock-selection{position:absolute;z-index:5;border:2px dashed #126e86;background:#126e860e;cursor:grab;touch-action:none;outline-offset:4px}.mock-selection[hidden]{display:none!important}.mock-selection.is-dragging{cursor:grabbing;border-style:solid}.mock-selection:focus-visible{outline:3px solid var(--accent)}.mock-handle{position:absolute;width:32px;height:32px;padding:0;border:2px solid #fff;border-radius:7px;background:#166b83;box-shadow:0 2px 6px #0005;touch-action:none;z-index:6}.mock-handle-tl{left:-17px;top:-17px;cursor:nwse-resize}.mock-handle-tr{right:-17px;top:-17px;cursor:nesw-resize}.mock-handle-bl{left:-17px;bottom:-17px;cursor:nesw-resize}.mock-handle-br{right:-17px;bottom:-17px;cursor:nwse-resize}.mock-edit-guide{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:16px;font-size:14px;color:var(--muted);line-height:1.4}.mock-edit-guide button{flex:none;padding:8px;min-height:40px}.mock-placement-status{font-size:13px;color:var(--muted);line-height:1.5;margin:4px 0 0}.mock-placement-status[data-warning=true]{color:#946200;font-weight:700}@media(max-width:700px){.mock-edit-guide{align-items:flex-start;flex-wrap:wrap}.mock-handle{width:36px;height:36px}.mock-handle-tl{left:-19px;top:-19px}.mock-handle-tr{right:-19px;top:-19px}.mock-handle-bl{left:-19px;bottom:-19px}.mock-handle-br{right:-19px;bottom:-19px}}
/* Invoice mockups and order library */
.invoice-mockups{border-top:1px solid var(--line,#d9e3e8);margin-top:22px;padding-top:22px}.invoice-mockups .panel-head{margin-bottom:8px}.invoice-attachment-actions{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin:18px 0}.invoice-attachment-actions label:not(.backup-import){min-width:155px;display:grid;gap:6px;font-size:13px;font-weight:700;color:var(--muted,#576b76)}.invoice-attachment-actions select{min-height:44px}.invoice-mock-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.invoice-mock-card{min-width:0;min-height:108px;border:1px solid var(--line,#d9e3e8);border-radius:12px;background:#f2f6f7;overflow:hidden;padding:10px;display:flex;flex-direction:column;gap:8px}.invoice-mock-card img{width:100%;max-height:230px;object-fit:contain;display:block;background:#e8edef;border-radius:8px}.invoice-mock-card small{overflow-wrap:anywhere;line-height:1.45}.invoice-mock-card .text-button{align-self:flex-start;min-height:40px}.invoice-search-label{display:grid;gap:7px;margin:10px 0 18px;font-size:13px;font-weight:700;color:var(--muted,#576b76)}.invoice-search-label input{min-height:46px;width:100%}.saved-invoice{gap:12px}.saved-invoice>div:first-child{min-width:0;overflow-wrap:anywhere}.saved-invoice small{display:block;margin-top:4px}@media(max-width:520px){.invoice-mock-gallery{grid-template-columns:1fr}.invoice-attachment-actions{align-items:stretch}.invoice-attachment-actions>*{width:100%}}
.invoice-library-thumb{width:92px;height:92px;flex:none;object-fit:contain;border-radius:9px;background:#eef2f4;border:1px solid #d8e1e6}@media(max-width:520px){.invoice-library-thumb{width:76px;height:76px}}
.mock-source{margin:0}.mock-source h2{font-size:1.1rem;margin:0 0 6px}.mock-source-actions{display:flex;flex-direction:column;gap:8px;margin:14px 0}.mock-source-actions .backup-import,.mock-source-actions button{width:100%;justify-content:center;min-height:44px}.mock-source-actions button:disabled{opacity:.5;cursor:not-allowed}.mock-source-status{overflow-wrap:anywhere}
.art-library-inline{margin:0 0 16px}.art-library-inline button{min-height:44px}.art-library-dialog{position:fixed;inset:4vh 2vw;margin:auto;width:min(900px,96vw);max-height:90vh;overflow-y:auto;padding:22px;border:1px solid #d4e0e5;border-radius:16px;box-shadow:0 20px 70px #101d2d55;background:#fff;color:#192b36}.art-library-dialog::backdrop{background:#1026349c}.art-library-head{display:flex;align-items:start;justify-content:space-between;gap:16px}.art-library-head h2{margin:0 0 4px}.art-library-search{display:grid;gap:7px;margin:16px 0;font-size:14px;font-weight:700;color:#58707b}.art-library-search input{min-height:48px}.art-library-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px}.art-library-card{min-width:0;border:1px solid #d8e3e8;border-radius:12px;background:#f6f9fa;overflow:hidden;display:flex;flex-direction:column}.art-library-card img{width:100%;height:145px;object-fit:contain;background:#e9eef0}.art-library-card .art-library-details{display:grid;gap:4px;padding:10px;overflow-wrap:anywhere}.art-library-card strong{font-size:15px;line-height:1.3}.art-library-card small{font-size:13px;color:#576b76}.art-library-card .art-library-actions{display:flex;gap:6px;flex-wrap:wrap;padding:0 10px 10px}.art-library-card button{min-height:40px;padding:7px 10px}.art-library-empty{grid-column:1/-1;padding:20px;border:1px dashed #a7bdc7;border-radius:12px;color:#526b77}@media(max-width:600px){.art-library-dialog{inset:1vh 1vw;width:98vw;max-height:96vh;padding:16px}.art-library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.art-library-card img{height:115px}.art-library-head{align-items:center}}
.guidance-list li{padding:8px 0}.guidance-action{display:flex;align-items:flex-start;gap:10px;cursor:pointer;line-height:1.5}.guidance-action input[type=checkbox]{flex:none;width:21px;height:21px;margin:2px 0 0;accent-color:var(--accent)}.guidance-action span{min-width:0}.guidance-action strong{display:block;font-size:13px;color:var(--accent);margin-top:5px}.editor-rec{margin:0 0 16px;padding:17px 20px;border-color:var(--accent);background:var(--soft)}.editor-rec h2{margin:5px 0 8px;font-size:21px}.editor-rec p{margin:0 0 13px;line-height:1.55;white-space:pre-line}.editor-rec-actions{display:flex;flex-wrap:wrap;gap:9px}.editor-rec-actions button{min-height:42px}.editor-rec-actions .hidden{display:none}@media(max-width:550px){.editor-rec-actions{display:grid}.editor-rec-actions button{width:100%}}
.invoice-default-settings{margin:0 0 20px;padding:0 0 16px;border-top:0;border-bottom:1px solid var(--line)}.invoice-default-fields{display:grid;gap:12px;margin:14px 0}.invoice-default-fields label{display:grid;gap:6px}.invoice-default-fields textarea{resize:vertical;line-height:1.4}.invoice-default-settings button{min-height:44px}
.mock-color-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.mock-color-actions button{margin-top:0!important;min-height:44px}.mock-color-current{display:inline-flex;align-items:center;gap:8px;color:var(--ink);font-size:14px}.mock-color-dot{width:22px;height:22px;border-radius:50%;border:1px solid #66778066;flex:none}.mock-color-dialog{width:min(680px,calc(100vw - 24px));max-height:min(90vh,850px);overflow:auto;border:1px solid var(--line);border-radius:14px;padding:22px;background:var(--surface);color:var(--ink);box-shadow:0 22px 65px #0005}.mock-color-dialog::backdrop{background:#1019239c}.mock-color-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.mock-color-head h2{font-size:23px}.mock-color-palette{display:grid;gap:17px;margin-top:21px}.mock-color-palette h3,.mock-color-custom h3,.mock-recent-colors h3{font-size:15px;margin:0 0 8px;color:var(--ink)}.mock-swatch-row{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}.mock-swatch{height:43px;min-width:0;border-radius:7px;border:1px solid #5c6a7266;box-shadow:inset 0 0 0 1px #fff5}.mock-swatch[aria-pressed=true]{outline:3px solid var(--accent);outline-offset:2px}.mock-swatch:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.mock-color-custom{border-top:1px solid var(--line);margin-top:22px;padding-top:20px}.mock-color-custom-row{display:flex;gap:10px;align-items:end;flex-wrap:wrap}.mock-color-custom-row input[type=color]{height:49px;width:68px;padding:4px;flex:none}.mock-color-custom-row label{display:grid;gap:5px;color:var(--muted);font-size:12px;font-weight:750;letter-spacing:.08em}.mock-color-custom-row input[type=text]{width:145px;height:49px;font-size:16px;letter-spacing:0}.mock-color-custom-row button{min-height:49px}.mock-recent-colors{margin-top:18px}.mock-recent-colors .mock-swatch-row{grid-template-columns:repeat(8,minmax(0,1fr))}@media(max-width:600px){.mock-color-dialog{margin:auto 0 0;width:100vw;max-height:88vh;border-radius:18px 18px 0 0;padding:20px}.mock-swatch-row{gap:6px}.mock-swatch{height:42px}.mock-recent-colors .mock-swatch-row{grid-template-columns:repeat(6,minmax(0,1fr))}.mock-color-custom-row button{width:100%}}
.mock-pair{display:flex;gap:12px;align-items:start}.mock-side-card{flex:1 1 0;min-width:0;border:1px solid var(--line);border-radius:9px;overflow:hidden;background:var(--surface)}.mock-side-card.is-editing{border-color:var(--accent)}.mock-side-card[data-side=front]{order:1}.mock-side-card[data-side=back]{order:2}.mock-side-head{min-height:48px;padding:8px 12px;display:flex;align-items:center;justify-content:space-between;gap:7px}.mock-side-head strong{font-size:16px}.mock-side-head span{font-size:12px;color:var(--accent);font-weight:750}.mock-side-head button{min-height:36px}.mock-pair .shirt-stage{width:100%;height:auto;aspect-ratio:1;min-height:280px}.mock-pair .garment-visual{width:min(94%,440px)}.mock-side-empty{margin:0;padding:8px 12px 12px;color:var(--muted);font-size:13px;text-align:center;min-height:38px}.mock-pair-note{font-size:14px;margin:4px 0 13px}@media(max-width:620px){.mock-pair{flex-direction:column}.mock-side-card{width:100%;flex:0 0 auto}.mock-pair .shirt-stage{aspect-ratio:1;min-height:300px}.mock-pair .garment-visual{width:min(94%,390px)}}

.mock-handle{width:20px;height:20px;border-width:1.5px;border-radius:5px}.mock-handle-tl{left:-11px;top:-11px}.mock-handle-tr{right:-11px;top:-11px}.mock-handle-bl{left:-11px;bottom:-11px}.mock-handle-br{right:-11px;bottom:-11px}.mock-remove-art{position:absolute;left:50%;top:-39px;transform:translateX(-50%);width:28px;height:28px;min-height:0;padding:0;border:1px solid #b8c9d0;border-radius:50%;background:#fff;color:#a33535;font-size:23px;line-height:23px;font-weight:700;box-shadow:0 2px 6px #0003;z-index:7;touch-action:manipulation}.mock-remove-art:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.mock-side-card:not(.is-editing) .mock-side-head span{color:var(--muted)}.mock-side-card{cursor:pointer}.mock-selection{cursor:grab}

.invoice-appearance-settings{margin:0 0 20px;padding:0 0 16px;border-top:0;border-bottom:1px solid var(--line)}.invoice-appearance-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:15px 0}.invoice-appearance-grid>div{min-width:0}.invoice-appearance-grid label{display:grid;gap:8px}.invoice-appearance-grid input[type=file]{font-size:14px}.invoice-logo-preview{display:flex;align-items:center;gap:12px;min-height:72px;margin:10px 0;color:var(--muted);font-size:14px;overflow-wrap:anywhere}.invoice-logo-preview img{max-width:130px;max-height:80px;object-fit:contain;background:#fff;border:1px solid var(--line);border-radius:6px;padding:4px}.invoice-color-controls{display:flex;align-items:center;gap:9px}.invoice-color-controls input[type=color]{width:66px;min-width:66px;height:50px;padding:4px}.invoice-color-controls input[type=text]{max-width:155px}.invoice-appearance-settings button{min-height:44px}@media(max-width:620px){.invoice-appearance-grid{grid-template-columns:1fr}}

.invoice-appearance-block{border-top:1px solid var(--line);margin-top:18px;padding-top:18px}.invoice-appearance-block h3{font-size:17px;margin:0 0 7px;color:var(--ink)}

.top-status{display:flex;align-items:center;justify-content:flex-end;gap:14px;flex-wrap:wrap}.offline-status{font-size:12px;font-weight:700;color:var(--muted);white-space:nowrap}.offline-status[data-ready=true]{color:var(--accent)}@media(max-width:700px){.top-status{margin-left:auto}.offline-status{font-size:12px}}

.editor-upscale{margin-top:22px;padding:20px;border:1px solid var(--line);border-radius:12px;background:#f4f9fa}.editor-upscale h3{margin:0 0 8px}.editor-upscale p{max-width:65ch}.upscale-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0}.upscale-metrics>div{min-width:0;padding:13px;border:1px solid var(--line);border-radius:9px;background:#fff}.upscale-metrics small{display:block;color:var(--muted);font-size:11px;letter-spacing:.08em;font-weight:800}.upscale-metrics strong{display:block;margin-top:6px;font-size:18px;color:var(--ink);overflow-wrap:anywhere}.editor-upscale .editor-inline-actions{display:flex;flex-wrap:wrap;gap:9px}.editor-upscale button{min-height:44px}@media(max-width:560px){.editor-upscale{padding:15px}.upscale-metrics{grid-template-columns:1fr 1fr}.upscale-metrics strong{font-size:16px}.editor-upscale .editor-inline-actions button{width:100%}}

/* Keep the library exit reachable while a long list scrolls on a phone. */
.art-library-dialog[open]{display:flex;flex-direction:column;overflow:hidden;padding:0}
.art-library-head{flex:none;padding:20px 22px 12px;background:#fff;border-bottom:1px solid #d4e0e5;z-index:1}
.art-library-head #artLibraryClose{flex:none;min-width:56px;min-height:44px;padding:8px 10px}
.art-library-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:0 22px 22px}
@media(max-width:600px){.art-library-dialog{inset:0;width:100vw;height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;margin:0;border-radius:0}.art-library-head{padding:calc(12px + env(safe-area-inset-top)) 16px 12px}.art-library-body{padding:0 16px calc(20px + env(safe-area-inset-bottom))}}
/* Six-up shirt color comparison, separate from calibrated mockup editing. */
.color-test-controls{margin-bottom:20px}.color-test-controls h2{margin:0 0 5px}.color-test-controls p{margin:5px 0 12px}.color-test-source{display:flex;justify-content:space-between;gap:22px;align-items:flex-start}.color-test-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.color-test-actions button,.color-test-upload{min-height:44px}.color-test-upload{display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.color-test-upload input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.color-test-upload:focus-within{outline:3px solid var(--accent);outline-offset:2px}.color-test-settings{display:flex;align-items:end;flex-wrap:wrap;gap:14px;margin-top:20px}.color-test-settings label{display:grid;gap:7px;color:var(--ink);font-size:14px;font-weight:700;letter-spacing:.06em}.color-test-settings select{min-width:160px;padding:11px 12px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--ink);min-height:44px}.color-test-settings button{min-height:44px}.color-test-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.color-test-card{min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:10px;overflow:hidden;box-shadow:0 2px 7px #1725310a}.color-test-stage{aspect-ratio:1;background:var(--stage);display:grid;place-items:center;overflow:hidden}.color-test-stage .garment-visual{width:min(96%,370px);aspect-ratio:1}.color-test-stage .garment-visual.bodysuit{width:min(78%,290px);aspect-ratio:3/4}.color-test-art{position:absolute;z-index:4;left:25%;top:29%;width:50%;height:32%;object-fit:contain;filter:drop-shadow(0 1px 1px #0002);pointer-events:none}.color-test-art[hidden]{display:none}.color-test-stage .garment-visual.vneck .color-test-art{top:31%}.color-test-stage .garment-visual.hoodie .color-test-art{top:29%}.color-test-stage .garment-visual.bodysuit .color-test-art{top:28%}.color-test-stage .garment-visual[data-placement=chest] .color-test-art{left:51%;top:31%;width:22%;height:20%}.color-test-card-bottom{display:flex;align-items:center;gap:9px;padding:13px 15px;min-height:63px}.color-test-card-bottom strong{font-size:16px;line-height:1.25;flex:1;min-width:0}.color-test-card-bottom span{font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums}.color-test-card-bottom input[type=color]{height:36px;width:42px;padding:2px;background:var(--surface);border:1px solid var(--line);border-radius:6px;flex:none;cursor:pointer}@media(max-width:1000px){.color-test-source{display:block}.color-test-actions{justify-content:flex-start;margin-top:14px}}@media(max-width:700px){.color-test-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.color-test-card-bottom{padding:10px;gap:5px;flex-wrap:wrap}.color-test-card-bottom strong{width:100%;flex-basis:100%;font-size:15px}.color-test-card-bottom input[type=color]{width:38px}.color-test-actions button,.color-test-upload{flex:1 1 46%}.color-test-settings label{flex:1 1 40%}.color-test-settings select{width:100%;min-width:0}.color-test-settings button{width:100%}}@media(max-width:360px){.color-test-card-bottom span{font-size:12px}}
.color-test-card-bottom{flex-wrap:wrap}.color-test-shades-button,.color-test-apply{flex-basis:100%;width:100%;min-height:38px;text-align:left;padding:4px 0;font-size:14px}.color-test-shades-button{border-top:1px solid var(--line);margin-top:2px}.color-test-shades{margin-top:22px;scroll-margin-top:20px}.color-test-shades[hidden]{display:none!important}.color-test-shades-head{display:flex;justify-content:space-between;align-items:start;gap:18px}.color-test-shades-head h2{margin:0 0 5px}.color-test-shades-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:18px 0}.color-test-shades-grid .color-test-card-bottom{padding:10px}.color-test-shades-grid .color-test-card-bottom strong{flex-basis:100%;font-size:15px}.color-test-shades-grid .color-test-card-bottom span{font-size:12px}@media(max-width:1050px){.color-test-shades-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:700px){.color-test-shades-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.color-test-shades-head h2{font-size:22px}.color-test-shades-head .text-button{min-height:40px}}
/* Shirt photography remains the base; guides are a temporary on-screen overlay. */
.color-test-stage .color-test-art{left:27%;top:22%;width:46%;height:32%;object-position:center top}
.color-test-stage .garment-visual.vneck .color-test-art{top:25%}
.color-test-stage .garment-visual.bodysuit .color-test-art{top:27%}
.color-test-stage .garment-visual[data-placement=front][data-align=left] .color-test-art{left:16%}
.color-test-stage .garment-visual[data-placement=front][data-align=right] .color-test-art{left:38%}
.color-test-stage .garment-visual[data-placement=chest] .color-test-art{left:51%;top:23%;width:22%;height:20%}
.color-test-stage .garment-visual[data-placement=chest][data-align=center] .color-test-art{left:39%}
.color-test-stage .garment-visual[data-placement=chest][data-align=right] .color-test-art{left:27%}
.color-test-grid-toggle{display:flex!important;align-items:center;gap:9px;min-height:44px;letter-spacing:0!important;font-weight:600!important;cursor:pointer}
.color-test-grid-toggle input,.mock-alignment input{width:19px;height:19px;accent-color:var(--accent)}
.garment-visual.show-alignment-grid::after{content:"";position:absolute;inset:0;z-index:7;pointer-events:none;background:linear-gradient(90deg,transparent calc(25% - 1px),#166b83aa 25%,transparent calc(25% + 1px),transparent calc(50% - 1px),#166b83aa 50%,transparent calc(50% + 1px),transparent calc(75% - 1px),#166b83aa 75%,transparent calc(75% + 1px)),linear-gradient(0deg,transparent calc(25% - 1px),#166b83aa 25%,transparent calc(25% + 1px),transparent calc(50% - 1px),#166b83aa 50%,transparent calc(50% + 1px),transparent calc(75% - 1px),#166b83aa 75%,transparent calc(75% + 1px));-webkit-mask-image:var(--asset);mask-image:var(--asset);-webkit-mask-size:200% 100%;mask-size:200% 100%;-webkit-mask-position:0 50%;mask-position:0 50%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}
.garment-visual.show-alignment-grid.back-side::after{-webkit-mask-position:100% 50%;mask-position:100% 50%}
.garment-visual.tee:not(.back-side) .zone{top:23%}
.garment-visual.vneck:not(.back-side) .zone{top:25%}
.garment-visual.polo:not(.back-side) .zone{top:22%}
.mock-alignment{display:flex;gap:12px;align-items:center;flex-wrap:wrap;border-top:1px solid var(--line);margin-top:17px;padding-top:15px;font-size:14px;color:var(--ink)}
.mock-alignment>span{font-weight:700}.mock-alignment>div{display:flex;gap:6px}.mock-alignment button{padding:8px 12px;min-height:40px}.mock-alignment label{display:flex;gap:8px;align-items:center;cursor:pointer;min-height:40px;font-weight:600}
@media(max-width:700px){.mock-alignment{align-items:flex-start}.mock-alignment>span{flex-basis:100%}.mock-alignment>div{flex:1}.mock-alignment button{flex:1}}
/* Left/right in Color Test refer to the person wearing the shirt. */
.color-test-stage .garment-visual[data-placement=front][data-align=left] .color-test-art{left:39%}
.color-test-stage .garment-visual[data-placement=front][data-align=right] .color-test-art{left:15%}
.color-test-subtabs{display:flex;gap:8px;margin:0 0 18px;border-bottom:1px solid var(--line);padding-bottom:9px}
.color-test-subtabs button{appearance:none;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);padding:12px 18px;font:inherit;font-weight:700;min-height:46px;cursor:pointer}
.color-test-subtabs button.active{background:var(--accent);border-color:var(--accent);color:#fff}
.mock-labeled-swatch{min-width:0;text-align:center}.mock-labeled-swatch .mock-swatch{width:100%}.mock-labeled-swatch small{display:block;margin-top:4px;color:var(--muted);font-size:12px;line-height:1.25;overflow-wrap:anywhere}
.color-test-schools[hidden],#colorTestGeneral[hidden]{display:none!important}
#colorTestDownload[hidden]{display:none!important}
.color-test-schools>.panel{margin-bottom:18px}
.color-test-schools .panel-head{margin-bottom:16px}
.color-test-schools label{display:block;font-size:14px;font-weight:700;letter-spacing:.05em}
.color-test-schools label input,.color-test-schools label select{display:block;width:100%;margin-top:8px;min-height:44px}
.school-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:16px 0}
.school-color-fields{display:grid;gap:9px;margin:18px 0}
.school-color-row{display:grid;grid-template-columns:minmax(100px,1fr) minmax(150px,2fr) 52px minmax(92px,1fr);gap:10px;align-items:center}
.school-color-row span{font-size:13px;font-weight:700;letter-spacing:.06em}
.school-color-row input{min-width:0;min-height:44px;width:100%}
.school-color-row input[type=color]{padding:3px;cursor:pointer}
.school-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.school-identity h2{margin:0 0 4px}.school-identity p{margin:0 0 16px;color:var(--muted)}
.school-swatches{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.school-swatch{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:10px;padding:10px;min-width:0}
.school-swatch>span{height:44px;width:44px;flex:none;border:1px solid #bdc6cb;border-radius:8px}
.school-swatch div{min-width:0}.school-swatch strong,.school-swatch small{display:block;overflow-wrap:anywhere}.school-swatch small{color:var(--muted)}
.school-shirt-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:700px){.school-fields{grid-template-columns:1fr}.school-color-row{grid-template-columns:minmax(0,1fr) 46px 94px}.school-color-row span{grid-column:1/-1}.school-swatches{grid-template-columns:1fr}.school-shirt-grid{grid-template-columns:1fr 1fr}.color-test-subtabs button{flex:1;padding:10px}}
@media(max-width:430px){.school-shirt-grid{grid-template-columns:1fr}}
/* Design Presets home: layout only, without preset data. */
.dp-home{display:grid;gap:24px}.dp-search label{display:block;color:var(--muted);font-size:13px;font-weight:750;letter-spacing:.1em}.dp-search input{display:block;width:100%;font-size:17px;min-height:54px;margin:10px 0 8px}.dp-search .note{margin:0}.dp-search-feedback{margin:12px 0 0;color:var(--accent);font-size:14px;font-weight:650;overflow-wrap:anywhere}.dp-search-feedback[hidden],.dp-browse-preview[hidden]{display:none!important}.dp-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:13px}.dp-section-head h2{font-size:20px}.dp-section-head span{font-size:14px;color:var(--muted)}.dp-browse-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.dp-browse-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:8px;min-height:122px;width:100%;border:1px solid var(--line);border-radius:11px;background:var(--surface);box-shadow:0 3px 16px #102a3510;color:var(--ink);padding:21px 34px 18px 19px}.dp-browse-card strong{font-size:17px;line-height:1.2}.dp-browse-card span{color:var(--muted);font-size:14px;line-height:1.35}.dp-browse-card b{position:absolute;right:17px;top:18px;color:var(--accent);font-size:24px;line-height:1}.dp-browse-card[aria-pressed=true]{border-color:var(--accent);background:var(--soft)}.dp-browse-preview{padding:16px 20px;margin-top:12px}.dp-browse-preview strong{font-size:16px}.dp-browse-preview p{color:var(--muted);font-size:14px;margin:5px 0 0}.dp-home-bottom{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(250px,.85fr);gap:18px;align-items:stretch}.dp-home-bottom .panel{min-width:0}.dp-popular .panel-head,.dp-favorites .panel-head{margin-bottom:16px}.dp-popular-list{display:flex;flex-wrap:wrap;gap:9px}.dp-popular-list span{border:1px solid var(--line);background:var(--soft);color:var(--ink);padding:10px 13px;border-radius:8px;font-size:14px;font-weight:650}.dp-popular .note{margin:17px 0 0}.dp-favorites-empty{display:flex;flex-direction:column;align-items:flex-start;gap:7px;min-height:132px;justify-content:center;border:1px dashed var(--line);border-radius:9px;background:var(--bg);padding:18px}.dp-favorites-empty>span{font-size:28px;color:var(--accent);line-height:1}.dp-favorites-empty strong{font-size:16px}.dp-favorites-empty p{color:var(--muted);font-size:14px;margin:0}
@media(max-width:1050px){.dp-browse-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.dp-home{gap:20px}.dp-section-head{display:block}.dp-section-head span{display:block;margin-top:4px}.dp-home-bottom{grid-template-columns:1fr}.dp-browse-card{min-height:112px;padding:17px 27px 15px 15px}}@media(max-width:440px){.dp-browse-grid{gap:9px}.dp-browse-card{min-height:116px}.dp-browse-card strong{font-size:16px}.dp-browse-card span{font-size:13px}.dp-browse-card b{right:10px;top:10px}}
.dp-results[hidden],.dp-detail[hidden]{display:none!important}.dp-results,.dp-detail{margin-top:14px;min-width:0}.dp-results h2{margin:0}.dp-results>.note{margin:5px 0 15px}.dp-result-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px}.dp-result-card{display:flex;flex-direction:column;align-items:flex-start;gap:7px;min-width:0;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:16px;color:var(--ink)}.dp-result-card:hover,.dp-preset-link:hover{border-color:var(--accent)}.dp-result-card strong{font-size:17px}.dp-result-card>span{font-size:14px;color:var(--muted)}.dp-empty-results{margin:0;color:var(--muted)}.dp-detail-head{display:flex;align-items:start;justify-content:space-between;gap:12px}.dp-detail-head h2{margin:4px 0 0}.dp-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.dp-detail-grid h3{font-size:16px;margin:18px 0 9px}.dp-swatches{display:flex;flex-wrap:wrap;gap:8px;min-width:0}.dp-swatch{display:inline-flex;align-items:center;gap:7px;padding:7px 9px;border:1px solid var(--line);border-radius:8px;font-size:14px;line-height:1.3;background:var(--surface)}.dp-swatch i{display:inline-block;width:20px;height:20px;flex:none;border:1px solid #8c959b;border-radius:50%}.dp-detail .note{margin:17px 0 0;max-width:70ch}.dp-detail-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:16px}.dp-preset-link{border:1px solid var(--line);background:var(--soft);color:var(--ink);padding:10px 13px;border-radius:8px;font-size:14px;font-weight:650;text-align:left}.dp-favorites #dpFavoritesList{display:flex;flex-wrap:wrap;gap:9px}.dp-favorites-empty{width:100%}@media(max-width:700px){.dp-detail-grid{grid-template-columns:1fr;gap:0}}@media(max-width:440px){.dp-result-grid{grid-template-columns:1fr}.dp-detail-head{flex-wrap:wrap}}
.dp-home[hidden]{display:none!important}.dp-detail{scroll-margin-top:18px}.dp-back{min-height:44px;padding:0;margin-bottom:8px}.dp-detail h2{font-size:clamp(24px,3vw,32px)}.dp-detail-meta{font-size:14px;color:var(--muted);margin:7px 0;line-height:1.45}.dp-color-list{display:flex;flex-wrap:wrap;gap:9px;min-width:0}.dp-color-item{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0;border:1px solid var(--line);border-radius:8px;background:var(--surface);padding:8px 10px;font-size:14px}.dp-color-item i{display:block;flex:none;width:22px;height:22px;border-radius:50%;border:1px solid #929aa0}.dp-color-item small{font-size:12px;color:var(--muted);text-transform:capitalize}.dp-detail-sources{margin-top:17px;display:flex;flex-wrap:wrap;gap:12px}.dp-detail-sources a{font-size:14px;color:var(--accent)}.dp-result-card .dp-color-list{margin-top:5px}.dp-result-card .dp-color-item{border:0;padding:0;background:transparent}.dp-result-card .dp-color-item span,.dp-result-card .dp-color-item small{display:none}

/* Design Presets detail card. Swatch values come from the shared color data. */
#dpDetail{max-width:1020px;margin-left:auto;margin-right:auto;padding:0;background:transparent;border:0;box-shadow:none}
.dp-preset-card{min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:14px;background:var(--surface);box-shadow:0 8px 30px #102a3512}
.dp-preset-hero{padding:clamp(24px,4vw,42px);background:#172b38;color:#fff}
.dp-preset-eyebrow{font-size:12px;font-weight:750;letter-spacing:.15em;text-transform:uppercase;color:#9fd3e1;line-height:1.5}
.dp-preset-hero h2{margin:11px 0 9px;font-size:clamp(27px,4vw,43px);line-height:1.15;color:#fff;overflow-wrap:anywhere}
.dp-preset-identity{font-size:clamp(18px,2vw,22px);font-weight:650;margin:0;color:#f1f6f8}
.dp-preset-mascot{font-size:14px;margin:10px 0 0;color:#c7d6dd}
.dp-preset-content{padding:clamp(20px,3vw,36px)}
.dp-preset-section{min-width:0}.dp-preset-section+.dp-preset-section{border-top:1px solid var(--line);margin-top:27px;padding-top:27px}
.dp-preset-section h3{font-size:15px;letter-spacing:.09em;text-transform:uppercase;margin:0;color:var(--ink)}
.dp-palette-heading{display:flex;align-items:center;flex-wrap:wrap;gap:9px 13px}.dp-palette-type{font-size:12px;font-weight:700;line-height:1.3;color:var(--accent);background:var(--soft);border:1px solid var(--line);border-radius:999px;padding:5px 9px}
.dp-section-explain{font-size:14px;color:var(--muted);margin:7px 0 17px;line-height:1.5}
.dp-palette-list,.dp-garment-list{display:flex;flex-wrap:wrap;gap:11px;min-width:0}
.dp-palette-color{min-width:145px;max-width:100%;border:1px solid var(--line);border-radius:10px;background:var(--bg);padding:12px 15px}
.dp-color-role{display:block;color:var(--accent);font-size:11px;font-weight:800;letter-spacing:.13em;margin-bottom:8px}
.dp-color-line{display:inline-flex;align-items:center;gap:9px;min-width:0;line-height:1.35}.dp-color-line strong{font-size:15px;overflow-wrap:anywhere}
.dp-swatch-mark{display:inline-block;flex:none;width:25px;height:25px;border-radius:50%;border:1px solid #81909a;box-shadow:inset 0 0 0 1px #ffffff55}
.dp-garment-color{max-width:100%;border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:9px 13px}
.dp-preset-actions{display:flex;flex-wrap:wrap;gap:10px;border-top:1px solid var(--line);margin-top:28px;padding-top:27px}.dp-preset-actions button{min-height:48px;white-space:normal;text-align:center}.dp-preset-actions button:disabled{opacity:.62;cursor:not-allowed}
.dp-future-note{font-size:13px;color:var(--muted);margin:9px 0 12px;line-height:1.5}
.dp-preset-small-actions{display:flex;flex-wrap:wrap;gap:10px}.dp-preset-small-actions button{min-height:44px}.dp-preset-small-actions [aria-pressed=true]{color:var(--accent);font-weight:750}
.dp-technical{border:1px solid var(--line);border-radius:10px;margin-top:18px;overflow:hidden}.dp-technical summary{min-height:52px;display:flex;align-items:center;padding:13px 17px;cursor:pointer;color:var(--accent);font-weight:750;list-style:none}.dp-technical summary::-webkit-details-marker{display:none}.dp-technical summary:after{content:'⌄';margin-left:auto;font-size:23px;line-height:1}.dp-technical[open] summary:after{transform:rotate(180deg)}.dp-technical[open] summary{background:var(--soft);border-bottom:1px solid var(--line)}
.dp-technical-body{padding:18px}.dp-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 22px;margin:0}.dp-fact{min-width:0}.dp-fact dt{font-size:11px;color:var(--muted);font-weight:750;letter-spacing:.08em;text-transform:uppercase}.dp-fact dd{font-size:15px;font-weight:650;margin:4px 0 0;overflow-wrap:anywhere}.dp-technical-body h4{font-size:15px;margin:22px 0 10px}.dp-technical-colors{display:grid;gap:8px}.dp-technical-colors>div{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.dp-technical-colors code{margin-left:auto;color:var(--muted);font-size:13px}.dp-technical-body .note{margin:14px 0 0}
.dp-result-card .dp-garment-list{margin-top:5px;gap:5px}.dp-result-card .dp-garment-color{padding:0;border:0;background:transparent}.dp-result-card .dp-garment-color strong{display:none}.dp-result-card .dp-swatch-mark{width:19px;height:19px}
@media(max-width:700px){.dp-facts{grid-template-columns:1fr}.dp-preset-hero{padding:24px}.dp-preset-content{padding:20px}}
@media(max-width:440px){.dp-preset-actions{display:grid}.dp-preset-actions button{width:100%}.dp-palette-color{min-width:calc(50% - 6px);flex:1}.dp-color-line strong{font-size:14px}.dp-garment-color{padding:8px 10px}.dp-technical-body{padding:16px}}
.dp-create-open{margin-top:13px;min-height:44px}.dp-mine .panel-head{margin-bottom:14px}.dp-create-dialog{position:fixed;width:min(760px,calc(100% - 24px));height:min(85dvh,800px);max-height:min(90dvh,900px);padding:0;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--ink);box-shadow:0 22px 90px #102a3555}.dp-create-dialog::backdrop{background:#102a35aa}.dp-create-dialog[open]{display:flex;flex-direction:column}.dp-create-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 22px;background:var(--surface);border-bottom:1px solid var(--line);flex:none}.dp-create-head h2{margin:0}.dp-create-head button{min-height:44px}.dp-create-form{display:flex;flex-direction:column;min-height:0;flex:1}.dp-create-body{overflow:auto;min-height:0;padding:20px 22px;overscroll-behavior:contain}.dp-create-body h3{margin:25px 0 8px}.dp-create-body>.note{margin:0 0 14px}.dp-create-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.dp-create-fields label{display:block;min-width:0;color:var(--muted);font-size:12px;font-weight:750;letter-spacing:.08em}.dp-create-fields input,.dp-create-fields select{width:100%;margin-top:7px;font-size:16px;min-height:44px}.dp-create-fields .dp-wide{grid-column:1/-1}.dp-palette-rows{display:grid;gap:9px}.dp-palette-row{display:grid;grid-template-columns:150px minmax(0,1fr) 54px auto;gap:8px;align-items:center}.dp-palette-row select,.dp-palette-row input[type=text]{min-width:0;width:100%;min-height:44px;font-size:16px}.dp-palette-row input[type=color]{width:54px;height:44px;padding:3px}.dp-palette-row button{min-height:44px}.dp-garment-add{display:flex;gap:9px}.dp-garment-add select{min-width:0;flex:1;font-size:16px}.dp-selected-colors{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.dp-selected-color{display:inline-flex;align-items:center;gap:6px;padding:5px 6px 5px 9px;border:1px solid var(--line);border-radius:999px}.dp-selected-color .dp-swatch-mark{width:19px;height:19px}.dp-selected-color button{min-width:34px;min-height:34px;padding:0;font-size:22px}.dp-create-error{color:#a53832!important}.dp-create-footer{display:flex;justify-content:flex-end;gap:10px;padding:14px 22px;border-top:1px solid var(--line);background:var(--surface);flex:none}.dp-create-footer button{min-height:44px}@media(max-width:600px){.dp-create-dialog{width:100%;max-width:100%;max-height:100dvh;height:100dvh;margin:0;border-radius:0}.dp-create-fields{grid-template-columns:1fr}.dp-create-head,.dp-create-body,.dp-create-footer{padding-left:16px;padding-right:16px}.dp-palette-row{grid-template-columns:1fr 54px auto}.dp-palette-row select{grid-column:1/-1}.dp-garment-add{flex-wrap:wrap}.dp-garment-add select{flex-basis:100%;min-height:44px}}
.dp-combined-pair{display:flex;align-items:stretch;gap:14px}.dp-pair-block{flex:1;min-width:0;display:flex;flex-direction:column;gap:7px;border:1px solid #ffffff44;border-radius:10px;padding:17px}.dp-pair-block small{color:#9fd3e1;font-weight:800;letter-spacing:.12em}.dp-pair-block strong{font-size:clamp(18px,2.5vw,26px);line-height:1.2;overflow-wrap:anywhere}.dp-pair-block span{color:#d3e2e8;font-size:14px;line-height:1.4}.dp-pair-plus{align-self:center;font-size:28px;font-weight:800;color:#9fd3e1}.dp-base-info .dp-technical{margin:15px 0 0}.dp-base-info .dp-palette-list{margin-top:15px}.dp-theme-dialog{max-width:650px}.dp-theme-dialog .dp-create-body{display:block}.dp-theme-dialog label{display:block;color:var(--muted);font-size:12px;font-weight:750;letter-spacing:.08em;margin-top:20px}.dp-theme-dialog input{width:100%;margin:8px 0 18px;min-height:48px;font-size:16px}.dp-theme-results{display:grid;gap:10px}.dp-theme-choice{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:6px;min-height:80px;width:100%;padding:16px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink)}.dp-theme-choice:hover,.dp-theme-choice:focus-visible{border-color:var(--accent)}.dp-theme-choice strong{font-size:17px}.dp-theme-choice>span{color:var(--muted);font-size:14px}.dp-theme-choice .dp-garment-list{gap:6px;margin-top:3px}.dp-theme-choice .dp-garment-color{padding:4px 7px}.dp-theme-choice .dp-swatch-mark{width:17px;height:17px}.dp-theme-choice .dp-color-line strong{font-size:12px}@media(max-width:600px){.dp-combined-pair{flex-direction:column;gap:8px}.dp-pair-plus{line-height:1}.dp-theme-dialog{max-width:100%}}

.color-test-preset-context{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 18px;padding:12px 16px;margin:-8px 0 16px;border:1px solid var(--line);border-radius:9px;background:var(--soft);color:var(--ink);font-size:14px;font-weight:650}
.color-test-preset-context[hidden],.color-test-preset-controls[hidden],.color-test-card[hidden]{display:none!important}
.color-test-preset-context button{min-height:42px;text-align:left}
.color-test-preset-controls{display:flex;align-items:end;flex-wrap:wrap;gap:10px 14px;margin-bottom:17px}
.color-test-preset-controls label{display:grid;gap:6px;flex:1 1 230px;font-size:11px;font-weight:750;letter-spacing:.1em;color:var(--muted)}
.color-test-preset-controls select{min-height:44px;width:100%;letter-spacing:0;font-size:15px;color:var(--ink)}
.color-test-preset-controls button{min-height:44px}.color-test-preset-controls .note{flex-basis:100%;margin:0}.color-test-preset-controls .note:empty{display:none}
.color-test-remove{border-top:1px solid var(--line);flex-basis:100%;width:100%;min-height:38px;text-align:left;padding:5px 0;font-size:14px}
@media(max-width:520px){.color-test-preset-context{align-items:flex-start}.color-test-preset-context button{padding:0}.color-test-preset-controls button{width:100%}}
.dp-create-dialog .dp-create-head{padding-top:calc(17px + env(safe-area-inset-top))}.dp-create-dialog .dp-create-footer{padding-bottom:calc(14px + env(safe-area-inset-bottom))}.dp-create-dialog .dp-create-body{flex:1}.dp-create-dialog .dp-create-form{overflow:hidden}.dp-palette-rows{gap:12px}.dp-palette-row{display:grid;grid-template-columns:minmax(110px,.8fr) minmax(110px,1fr) minmax(130px,1.2fr) 44px auto;gap:9px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--bg);min-width:0}.dp-palette-row .dp-row-role,.dp-palette-row .dp-row-family,.dp-palette-row .dp-row-shade{grid-column:auto;min-width:0;width:100%;min-height:44px;font-size:16px}.dp-row-swatch{width:40px;height:40px;display:block;border-radius:8px;border:1px solid #8a969c}.dp-row-custom-toggle{grid-column:1/-1;display:flex;align-items:center;gap:9px;font-size:14px;font-weight:650;color:var(--ink)}.dp-row-custom-toggle input{width:20px;height:20px}.dp-row-custom-fields{grid-column:1/-2;display:grid;grid-template-columns:minmax(0,1fr) 54px 110px;gap:8px;align-items:center}.dp-row-custom-fields[hidden]{display:none!important}.dp-row-custom-fields input[type=text]{min-width:0;min-height:44px;width:100%;font-size:16px}.dp-row-custom-fields input[type=color]{height:44px;width:54px;padding:3px}.dp-row-remove{grid-column:-2/-1;min-height:44px}.dp-create-footer button:disabled{opacity:.6;cursor:wait}@media(max-width:700px){.dp-palette-row{grid-template-columns:repeat(2,minmax(0,1fr)) 44px}.dp-palette-row .dp-row-role{grid-column:1/-1}.dp-palette-row .dp-row-family,.dp-palette-row .dp-row-shade{grid-column:auto}.dp-row-swatch{grid-column:3}.dp-row-custom-fields{grid-column:1/-1;grid-template-columns:minmax(0,1fr) 54px 90px}.dp-row-remove{grid-column:1/-1;justify-self:start}}@media(max-width:400px){.dp-row-custom-fields{grid-template-columns:minmax(0,1fr) 54px}.dp-row-custom-fields input:last-child{grid-column:1/-1}}
.dp-create-dialog{inset:0;margin:auto;overflow:hidden}@media(max-width:600px){.dp-create-dialog{inset:0;margin:0;width:100vw;height:100dvh;max-height:100dvh}.dp-create-dialog .dp-create-head{padding-top:calc(14px + env(safe-area-inset-top))}}
.dp-theme-dialog{height:min(70dvh,560px)}@media(max-width:600px){.dp-theme-dialog{height:100dvh;max-height:100dvh}}

/* Phase 10: read-only garment contrast assessments below artwork, never over it. */
.color-test-contrast{flex:1 0 100%;display:flex;flex-direction:column;gap:3px;font-size:13px;line-height:1.35;color:var(--muted);border-top:1px solid var(--line);padding-top:8px;margin-top:3px}
.color-test-contrast strong{font-size:13px;letter-spacing:.035em;color:var(--muted)}
.color-test-contrast.excellent strong{color:#17633d}.color-test-contrast.good strong{color:#76600c}.color-test-contrast.low strong{color:#a43b32}
.color-test-contrast span{font-size:13px;line-height:1.35;color:var(--ink)}
.color-test-contrast-note{margin:6px 0 16px}
/* Phase 11: shared active design context, compact and independent of artwork. */
.active-design-bar{display:flex;align-items:center;gap:9px 14px;flex-wrap:wrap;min-width:0;padding:10px 14px;margin:-4px 0 16px;background:#eaf2f4;border:1px solid #ccdee3;border-radius:9px}
.active-design-bar[hidden],.active-preset-colors[hidden],.active-test-colors[hidden]{display:none!important}
.active-design-label,.active-shortcut-title{font-size:11px;letter-spacing:.11em;font-weight:800;color:#326f84}
.active-design-name{font-size:14px;line-height:1.35;min-width:0;overflow-wrap:anywhere;color:var(--ink)}
.active-design-actions{display:flex;gap:10px;margin-left:auto}.active-design-actions .text-button{min-height:34px;padding:2px 6px}
.active-preset-colors{margin:13px 0;padding:12px;background:#f1f6f7;border:1px solid var(--line);border-radius:9px;min-width:0}
.active-shortcut-title{display:block;margin-bottom:8px}.active-shortcut-row{display:flex;flex-wrap:wrap;gap:7px}
.active-color-chip{display:inline-flex;align-items:center;gap:7px;max-width:100%;border:1px solid var(--line);border-radius:7px;padding:7px 9px;background:var(--surface);color:var(--ink);font:inherit;font-size:13px;cursor:pointer}
.active-color-chip i{width:18px;height:18px;flex:none;border:1px solid #0002;border-radius:50%}.active-color-chip span{overflow-wrap:anywhere}
.active-test-colors{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:7px 12px;margin:-6px 0 15px;padding:0 4px;color:var(--muted);font-size:13px}
.active-test-colors span{min-width:0;overflow-wrap:anywhere}.active-test-colors .text-button{min-height:36px}
@media(max-width:600px){.active-design-actions{margin-left:0;width:100%}.active-design-bar{padding:10px 12px}.active-test-colors{align-items:flex-start}}

/* Production job board. Records are stored on this device, independently of artwork. */
#production{min-width:0}
#production .job-intro{margin-bottom:18px;padding:18px 22px}
#production .job-intro .note{margin:5px 0 0}
#production .job-editor{margin-bottom:20px;padding:0;overflow:hidden}
#production .job-editor summary{list-style:none;cursor:pointer;padding:20px 23px;font-size:18px;font-weight:750;min-height:64px;display:flex;align-items:center;justify-content:space-between;gap:12px}
#production .job-editor summary::-webkit-details-marker{display:none}
#production .job-editor summary:after{content:'＋';color:var(--accent);font-size:24px;font-weight:400}
#production .job-editor[open] summary:after{content:'−'}
#production .job-editor summary:focus-visible{outline:3px solid var(--accent);outline-offset:-4px}
#production #jobForm{padding:0 23px 23px;border-top:1px solid var(--line)}
#production .job-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px;margin-top:20px}
#production .job-form-grid label,#production .job-garment-row label,#production .job-toolbar label,#production .job-notes-label{display:grid;gap:7px;min-width:0;color:var(--muted)}
#production input,#production select,#production textarea{width:100%;min-width:0;font-size:16px;letter-spacing:normal;font-weight:400}
#production textarea{font:inherit;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:7px;padding:11px 12px;resize:vertical}
#production #jobForm h3{margin:24px 0 2px}
#production #jobForm h3+.note{margin:0 0 13px}
#production .job-garments{display:grid;gap:11px}
#production .job-garment-row{display:grid;grid-template-columns:1.15fr .8fr 1fr .7fr auto;align-items:end;gap:9px;padding:12px;border:1px solid var(--line);border-radius:9px;background:var(--soft)}
#production .job-remove-line{min-height:42px}
#production #jobAddGarment{margin-top:12px;min-height:42px}
#production .job-placement{display:flex;gap:7px 18px;flex-wrap:wrap;border:1px solid var(--line);border-radius:9px;margin:22px 0;padding:12px 16px}
#production .job-placement legend{color:var(--muted);font-size:11px;letter-spacing:.12em;font-weight:750;padding:0 6px}
#production .job-placement label{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:500;letter-spacing:normal;min-height:38px}
#production .job-placement input{width:18px;height:18px;margin:0;accent-color:var(--accent)}
#production .job-form-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
#production .job-form-actions button,#production .job-backup button{min-height:44px}
#production .job-board{padding:22px;min-width:0}
#production .job-board-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;flex-wrap:wrap}
#production .job-board-heading .note{margin:5px 0}
#production .job-backup{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
#production .job-import{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 13px;border:1px solid var(--line);border-radius:7px;color:var(--accent);cursor:pointer}
#production .job-import input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}
#production .job-import:focus-within{outline:3px solid var(--accent);outline-offset:2px}
#production .job-message{margin:10px 0;min-height:1.4em;color:var(--accent);font-size:14px}
#production .job-message.job-error{color:#a43531}
#production .job-toolbar{display:grid;grid-template-columns:minmax(0,2fr) minmax(160px,1fr);gap:12px;margin:16px 0}
#production .job-list{display:grid;gap:13px;min-width:0}
#production .job-empty{padding:20px;border:1px dashed var(--line);border-radius:9px}
#production .job-card{padding:18px;min-width:0}
#production .job-card-head,#production .job-card-foot{display:flex;justify-content:space-between;align-items:flex-start;gap:10px 20px;flex-wrap:wrap}
#production .job-card h3{margin:0;font-size:18px;overflow-wrap:anywhere}
#production .job-card-head p{margin:3px 0 0;color:var(--muted);overflow-wrap:anywhere}
#production .job-due{font-size:13px;font-weight:700;white-space:nowrap;color:var(--accent)}
#production .job-due.overdue{color:#a43531}
#production .job-lines{margin:13px 0 8px;padding-left:20px;line-height:1.6;overflow-wrap:anywhere}
#production .job-card>.note{margin:7px 0}
#production .job-notes{white-space:pre-wrap;overflow-wrap:anywhere;margin:12px 0;color:var(--ink)}
#production .job-notes[hidden]{display:none}
#production .job-card-foot{border-top:1px solid var(--line);padding-top:13px;margin-top:15px;align-items:end}
#production .job-card-foot label{display:grid;gap:5px;color:var(--muted)}
#production .job-card-foot select{min-width:140px}
#production .job-card-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
#production .job-card-actions button{min-height:42px}
@media(max-width:800px){#production .job-garment-row{grid-template-columns:repeat(2,minmax(0,1fr))}#production .job-remove-line{justify-self:start}}
@media(max-width:600px){#production .job-form-grid,#production .job-toolbar{grid-template-columns:1fr}#production .job-editor summary{padding:17px}#production #jobForm{padding:0 17px 18px}#production .job-board{padding:17px}#production .job-backup{width:100%}#production .job-import{font-size:13px}#production .job-card-head,#production .job-card-foot{display:grid}#production .job-due{white-space:normal}}
#production .job-links{margin:20px 0 0}
#production .job-link-hint{margin:8px 0 0;font-size:13px}
#production .job-checklist{margin:20px 0}
#production .job-progress{font-size:13px;color:var(--muted);margin:10px 0}
#production .job-card-links{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;color:var(--muted);font-size:13px;overflow-wrap:anywhere}
#production .job-card-links:empty{display:none}
#production .job-card-links button{min-height:40px}

/* Phase 1 Orders: customer records only. */
#orders,#orders .panel{min-width:0}
#orders [hidden]{display:none!important}
#orders .orders-heading{align-items:center}
#orders .orders-heading button{min-height:44px;flex:none}
#orders .orders-board,#orders .orders-detail,#orders .orders-editor{padding:21px;margin-bottom:18px}
#orders .orders-toolbar{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(150px,1fr) minmax(170px,1fr);gap:13px;margin-bottom:18px}
#orders .orders-toolbar label,#orders .orders-fields label{display:grid;gap:7px;min-width:0;color:var(--muted)}
#orders input,#orders select,#orders textarea{width:100%;min-width:0;font-size:16px;font-weight:400;letter-spacing:normal;background:var(--surface);color:var(--ink)}
#orders textarea{font:inherit;border:1px solid var(--line);border-radius:7px;padding:11px 12px;resize:vertical}
#orders .orders-count-row,#orders .orders-section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
#orders .orders-count-row{border-bottom:1px solid var(--line);padding-bottom:11px}
#orders .orders-count-row .note{margin:0}
#orders .orders-message{min-height:1.5em;margin:9px 0;color:var(--accent);font-size:14px}
#orders .orders-message.orders-error{color:#a43531}
#orders .orders-list{display:grid;gap:8px}
#orders .orders-empty{margin:0;padding:20px;border:1px dashed var(--line);border-radius:9px}
#orders .orders-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr) auto;align-items:center;gap:12px;width:100%;min-height:68px;text-align:left;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:9px;padding:12px 15px}
#orders .orders-row:hover,#orders .orders-row:focus-visible{border-color:var(--accent);background:var(--soft)}
#orders .orders-row-main{display:grid;gap:4px;min-width:0}
#orders .orders-row-main strong{color:var(--accent);font-size:14px}
#orders .orders-row-main span,#orders .orders-row-meta{overflow-wrap:anywhere}
#orders .orders-row-meta{font-size:13px;color:var(--muted)}
#orders .orders-status{display:inline-block;border-radius:20px;background:var(--soft);color:var(--accent);padding:6px 10px;font-weight:700;font-size:12px;white-space:nowrap}
#orders .orders-storage-note{margin:17px 0 0;font-size:13px}
#orders .orders-section-head{margin-bottom:18px}
#orders .orders-section-head .eyebrow{display:block;margin-bottom:6px}
#orders .orders-section-head h2{font-size:23px;overflow-wrap:anywhere}
#orders .orders-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}
#orders .orders-fields .orders-notes{grid-column:1/-1}
#orders .orders-form-state{margin:10px 0}#orders .orders-form-state.is-dirty{color:var(--accent);font-weight:700}#orders .orders-form-state.is-error{color:#a43531}#orders .orders-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:17px}
#orders .orders-actions button{min-height:44px}
#orders .orders-detail-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 22px;margin:0}
#orders .orders-detail-fields>div{min-width:0}
#orders .orders-detail-fields dt{font-size:11px;letter-spacing:.1em;font-weight:750;color:var(--muted);text-transform:uppercase}
#orders .orders-detail-fields dd{margin:5px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:650px){#orders .orders-heading{align-items:flex-start}#orders .orders-board,#orders .orders-detail,#orders .orders-editor{padding:16px}#orders .orders-toolbar,#orders .orders-fields,#orders .orders-detail-fields{grid-template-columns:1fr}#orders .orders-row{grid-template-columns:minmax(0,1fr) auto}#orders .orders-row-meta{grid-column:1/-1;grid-row:2}#orders .orders-fields .orders-notes{grid-column:auto}}

/* Gang sheet packing additions. */
#gang .gang-rotate-option{display:flex;align-items:center;gap:9px;min-height:44px;margin-top:10px;font-size:15px;font-weight:600;letter-spacing:normal}
#gang .gang-rotate-option input{width:19px;height:19px;flex:none;accent-color:var(--accent)}
#gang .gang-recommendation{margin:14px 0;padding:13px 16px;border:1px solid var(--line);border-radius:9px;background:var(--soft);overflow-wrap:anywhere}
#gang .gang-recommendation:empty,#gang #gangRotationNotice:empty{display:none}
#gang .gang-recommendation strong{display:block;color:var(--accent);font-size:12px;letter-spacing:.1em}
#gang .gang-recommendation p{margin:8px 0;font-size:13px;line-height:1.5;color:var(--muted)}
#gang .gang-recommendation b{font-size:17px}

/* Artwork source controls: upload first, compact reuse actions below. */
.art-source-secondary{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:10px}
.art-source-secondary button,.art-library-inline button{min-height:44px;padding:8px 12px;font-size:14px;line-height:1.35}
#inspector .leftcol>.art-library-inline{grid-column:1/-1;margin:0}
#inspector #drop{min-height:220px;padding:20px}
#editor .editor-upload{flex-direction:column;align-items:flex-start;gap:12px;margin-bottom:10px}
#editor .editor-file{order:-1;width:min(100%,380px)}
#editor .art-library-inline{margin-bottom:18px}
#calculator .calculator-panel>.backup-import{margin-bottom:10px}
#mockup .mock-source-actions,#colorTest .color-test-actions{display:flex;flex-direction:column;align-items:stretch;gap:0}
#mockup .mock-source-actions .art-source-upload,#colorTest .art-source-upload{width:100%}
#mockup .mock-source-actions .art-source-secondary button{width:auto;min-height:44px;padding:8px 12px;font-size:14px}
#mockup .mock-source-actions .backup-import{align-items:start;justify-content:start;margin:0;font-size:15px!important}
#mockup .mock-source-actions .backup-import input{max-width:380px;font-size:14px}
#colorTest .art-source-upload .color-test-upload{min-height:44px;padding:9px 14px;font-size:15px;flex:none}
#colorTest .art-source-secondary button{flex:0 1 auto;min-height:44px;padding:8px 12px;font-size:14px}
#gang .gang-file-label{display:block;margin:12px 0 0}
#gang .gang-controls .art-source-secondary #gangUseInspected{width:auto}
#gang .art-source-secondary button{min-height:44px;padding:8px 12px;font-size:14px}
@media(max-width:980px){#inspector .leftcol{grid-template-columns:1fr}}
@media(max-width:600px){.art-source-secondary button{max-width:100%;white-space:normal}#colorTest .color-test-actions{width:100%}#editor .editor-file{width:100%}}

/* Garment quantities belong to Orders, without changing the Production Jobs editor. */
#orders .orders-garment-editor,#orders .orders-garment-heading{margin-top:22px}
#orders .orders-garment-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:10px 18px;flex-wrap:wrap;margin-bottom:14px}
#orders .orders-garment-heading h3{margin:0;font-size:18px}
#orders .orders-garment-heading .note{margin:5px 0 0}
#orders .orders-garment-heading>strong{color:var(--accent);font-size:16px}
#orders .orders-garment-lines,#orders .orders-detail-garments{display:grid;gap:12px;margin-bottom:14px}
#orders .orders-line,#orders .orders-detail-line{min-width:0;border:1px solid var(--line);border-radius:10px;padding:17px;background:var(--soft)}
#orders .orders-line-head,#orders .orders-detail-line-head{display:flex;align-items:center;gap:8px 16px;flex-wrap:wrap;justify-content:space-between}
#orders .orders-line-title{margin:0;font-size:18px}
#orders .orders-line-total{color:var(--accent)}
#orders .orders-line-actions{display:flex;gap:8px;flex-wrap:wrap}
#orders .orders-line-actions button,#orders #orderAddGarment{min-height:44px}
#orders .orders-line-basics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:17px 0}
#orders .orders-line-field{display:grid;gap:7px;min-width:0;color:var(--muted);font-size:13px;font-weight:700;letter-spacing:.07em}
#orders .orders-size-fieldset,#orders .orders-location-fieldset{border:1px solid var(--line);border-radius:8px;margin:14px 0 0;padding:13px;min-width:0}
#orders .orders-size-fieldset legend,#orders .orders-location-fieldset legend{padding:0 5px;font-weight:700;color:var(--ink)}
#orders .orders-size-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
#orders .orders-size-cell{display:grid;gap:5px;min-width:0;font-weight:700;color:var(--ink)}
#orders .orders-size-cell input{padding:9px 5px;text-align:center}
#orders .orders-location-grid{display:flex;gap:7px 18px;flex-wrap:wrap}
#orders .orders-location-cell{display:inline-flex;gap:7px;align-items:center;min-height:38px;font-weight:500;color:var(--ink)}
#orders .orders-location-cell input{width:19px;height:19px;margin:0;accent-color:var(--accent)}
#orders .orders-detail-line p{margin:7px 0 0;overflow-wrap:anywhere}
#orders .orders-detail-line-head strong{overflow-wrap:anywhere}
@media(max-width:800px){#orders .orders-size-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:650px){#orders .orders-line-basics{grid-template-columns:1fr}#orders .orders-size-grid{grid-template-columns:repeat(3,minmax(0,1fr))}#orders .orders-line,#orders .orders-detail-line{padding:13px}#orders .orders-garment-heading{align-items:flex-start}}
/* Production garment groups keep the existing form surfaces and typography. */
#production .job-garment-row{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;align-items:stretch}
#production .job-garment-basics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
#production .job-size-rows{display:grid;gap:10px}
#production .job-size-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(80px,.6fr) auto;gap:10px;align-items:end}
#production .job-garment-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;justify-content:space-between}
#production .job-garment-notes{width:100%;box-sizing:border-box;font:inherit;padding:10px;border:1px solid var(--line);border-radius:8px;resize:vertical}
#production .job-garment-summary{overflow-wrap:anywhere;margin-bottom:12px}
#production .job-garment-row input{min-width:0;max-width:100%;box-sizing:border-box}
@media(max-width:600px){#production .job-garment-basics{grid-template-columns:1fr}#production .job-size-row{grid-template-columns:minmax(0,1fr) minmax(80px,.6fr)}#production .job-size-row button{grid-column:1/-1;justify-self:start}}
/* Compact status and priority information on existing Production cards. */
#production .job-priority-badge{display:inline-block;border:1px solid var(--line);border-radius:6px;padding:5px 9px;margin-top:8px;font-size:14px;font-weight:700;background:var(--soft)}
#production .job-priority-high{background:#fff2d9;color:#704100;border-color:#e3b86a}
#production .job-priority-rush{background:#ffe8e8;color:#922424;border-color:#e4a3a3}
#production .job-workflow{margin-top:14px}
#production .job-workflow-stages{list-style:none;padding:0;margin:8px 0;display:flex;flex-wrap:wrap;gap:8px}
#production .job-workflow-stages li{font-size:14px;padding:6px 9px;border:1px solid var(--line);border-radius:6px;color:var(--muted)}
#production .job-workflow-stages li.current{background:var(--soft);color:var(--ink);border-color:var(--accent);font-weight:700}
#production .job-workflow-paused{color:#704100;font-weight:700}
#production .job-production-checklist{border:1px solid var(--line);border-radius:9px;margin:14px 0}
#production .job-production-checklist>summary{padding:12px;cursor:pointer;font-weight:700;min-height:44px;box-sizing:border-box}
#production .job-checklist-controls{padding:12px;min-width:0}
#production .job-checklist-bar{display:block;width:100%;height:12px;accent-color:var(--accent);margin-bottom:16px}
#production .job-checklist-group{border:1px solid var(--line);border-radius:8px;margin:12px 0;padding:12px;min-width:0}
#production .job-checklist-group legend{font-weight:700;padding:0 6px}
#production .job-checklist-item{margin:10px 0}
#production .job-checklist-item-label{display:flex;align-items:center;gap:10px;min-height:44px;cursor:pointer}
#production .job-checklist-item-label input{width:20px;height:20px;flex:none;accent-color:var(--accent)}
#production .job-checklist-stamp{display:block;color:var(--muted);font-size:13px;margin-left:30px}
#production .job-checklist-note{margin:6px 0 12px 30px}
#production .job-checklist-note summary{cursor:pointer;font-size:14px;min-height:32px}
#production .job-checklist-note textarea{width:100%;box-sizing:border-box;font:inherit;padding:10px;border:1px solid var(--line);border-radius:8px;resize:vertical}
.job-completion-warning{width:min(460px,calc(100vw - 48px));box-sizing:border-box;border:1px solid #d8e1e6;border-radius:14px;padding:24px;font:inherit;color:#172b38;background:white;max-height:calc(100dvh - 48px);overflow:auto}
.job-completion-warning::backdrop{background:#172b3880}
.job-warning-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}
#production .job-view-actions{display:flex;flex-wrap:wrap;gap:9px;margin:14px 0}
#production .job-view-actions button{min-height:44px}
#production .job-view-actions [aria-pressed=true]{background:var(--accent);color:white;border-color:var(--accent)}
#production .job-card{cursor:pointer}
#production .job-card:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
#production .job-card-overdue{border-left:4px solid #a73535}
#production .job-board-facts{font-size:15px;font-weight:700;line-height:1.6;overflow-wrap:anywhere;margin:14px 0}
#production .job-board-thumbnail{width:90px;height:90px;object-fit:contain;border:1px solid var(--line);border-radius:8px;background:var(--soft);flex:none}

#production .job-toolbar #jobClearFilters{align-self:end;min-height:44px}
#production .job-toolbar input,#production .job-toolbar select{width:100%;min-width:0}

#production .job-production-views,#production .job-calendar-controls{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}
#production .job-production-views button,#production .job-calendar-controls button{min-height:44px}
#production .job-production-views button[aria-pressed=true],#production .job-calendar-controls button[aria-pressed=true]{background:var(--accent);color:var(--accent-ink)}
#production .job-calendar-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
#production .job-calendar-viewport{overflow-x:auto;max-width:100%}
#production .job-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));min-width:840px;gap:6px}
#production .job-calendar-weekday{padding:8px;font-weight:700;text-align:center}
#production .job-calendar-day{border:1px solid var(--line);border-radius:10px;min-height:120px;padding:8px;min-width:0}
#production .job-calendar-date{font-size:14px;line-height:1.4;margin:0 0 8px}
#production .job-calendar-outside{background:var(--soft)}
#production .job-calendar-today{border:2px solid var(--accent)}
#production .job-calendar-item{display:flex;flex-direction:column;gap:4px;text-align:left;width:100%;min-height:44px;padding:9px;margin:6px 0;border:1px solid var(--line);border-left:4px solid var(--accent);border-radius:8px;background:var(--surface);color:var(--ink);font-size:14px;line-height:1.4;overflow-wrap:anywhere}
#production .job-calendar-rush{border-left-color:#b42332}
#production .job-calendar-high{border-left-color:#a55b12}
#production .job-calendar-completed{background:var(--soft);border-left-style:double}
#production .job-calendar-overdue{color:#b42332;font-weight:700}
#production .job-calendar-meta{font-size:14px}
@media(max-width:700px){#production .job-calendar-week{grid-template-columns:1fr;min-width:0}#production .job-calendar-week .job-calendar-day{min-height:80px}#production .job-calendar{padding:17px}}

#production .job-readiness{padding:14px;border:1px solid var(--line);border-radius:10px;background:var(--soft);margin-bottom:16px}#production .job-readiness ul{margin:8px 0 0;padding-left:22px}#production .job-readiness-badge{font-weight:700;color:var(--accent);margin:10px 0}

#production .job-history-list{padding-left:22px;max-height:380px;overflow:auto;overflow-wrap:anywhere}#production .job-history-list li{padding:8px 0;border-bottom:1px solid var(--line)}#production .job-history-list p{margin:4px 0;white-space:pre-wrap}#production .job-history-list time{font-size:14px;color:var(--muted)}#production #jobAddNote{margin:12px 0;min-height:44px}

#production .job-issues-section{margin:16px 0;padding:14px;border:1px solid var(--line);border-radius:10px}#production .job-issues-section label{display:grid;gap:8px;margin:12px 0}#production #jobHoldIssueField[hidden]{display:none}#production .job-issue{padding:12px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}#production .job-issue textarea{display:block;width:100%;margin:8px 0}#production .job-issue button{min-height:44px}#production .job-issue-badge{font-weight:700;color:var(--accent)}

/* Orders garment selectors retain the existing field layout. */
.orders-custom-field[hidden]{display:none}
.orders-line-field select{width:100%;min-width:0}
.orders-custom-field{margin-top:.65rem}

#orders .orders-size-rows{display:grid;gap:12px}
#orders .orders-size-row{display:grid;grid-template-columns:minmax(0,2fr) minmax(80px,1fr) auto;align-items:end;gap:10px}
#orders .orders-size-row label{display:grid;gap:6px;min-width:0;font-size:14px}
#orders .orders-size-row select{width:100%;min-width:0}
#orders .orders-add-size{margin-top:12px;white-space:normal}
#orders .orders-group-summary{margin-top:16px;font-size:14px;overflow-wrap:anywhere}
#orders .orders-group-summary ul{padding-left:20px;margin-bottom:0}
@media(max-width:650px){#orders .orders-size-row{grid-template-columns:minmax(0,2fr) minmax(80px,1fr)}#orders .orders-size-row button{grid-column:1/-1;justify-self:start}}

.job-attachments{margin:20px 0;border-top:1px solid var(--line);padding-top:16px}.job-attachment{display:flex;gap:14px;padding:14px;border:1px solid var(--line);margin:12px 0;border-radius:8px;overflow-wrap:anywhere}.job-attachment>div{min-width:0;flex:1}.job-attachment-preview{width:96px;height:96px;object-fit:contain;background:var(--soft)}.job-attachment-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.job-attachment-fields{display:grid;gap:12px;margin:16px 0}.job-attachment time{font-size:14px;color:var(--muted)}@media(max-width:650px){.job-attachment{flex-wrap:wrap}.job-attachment-preview{width:80px;height:80px}}

.job-advanced-details,.job-optional-checklist,.job-card-advanced{border-top:1px solid var(--line);padding-top:14px;margin-top:18px}.job-advanced-details>summary,.job-optional-checklist>summary,.job-card-advanced>summary{cursor:pointer;font-weight:700;min-height:44px;display:list-item}.job-advanced-body{padding-top:12px}.job-issues-section[hidden],#jobIssueList[hidden],#jobReadiness[hidden],.job-readiness-badge[hidden]{display:none!important}.job-artwork-summary{margin:14px 0}.job-artwork-summary p{overflow-wrap:anywhere}.job-artwork-summary img{width:72px;height:72px;object-fit:contain}.job-card-advanced .job-workflow{margin-top:12px}
/* Private requests, scoped to avoid changing existing local tools. */
#incomingRequests label{display:block;margin:12px 0;font-weight:600}#incomingRequests input,#incomingRequests select{display:block;width:100%;max-width:440px;margin-top:8px}#incomingRequests .request-signin{max-width:540px}#incomingRequests p{white-space:pre-wrap;overflow-wrap:anywhere}.request-cloud-toolbar{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}.request-cloud-card{display:grid;grid-template-columns:1fr auto;gap:8px;text-align:left;width:100%;margin:12px 0;padding:16px;border:1px solid #dce4e8;border-radius:10px;background:white;color:inherit}.request-cloud-card span:not(.tag){grid-column:1/-1}.request-file{margin:16px 0;padding:14px;border:1px solid #dce4e8;border-radius:10px;overflow-wrap:anywhere}.request-file-view img{display:block;max-width:100%;max-height:320px;margin:12px 0;object-fit:contain}.request-file-view a{display:inline-block;margin:12px 16px 0 0}@media(max-width:600px){.request-cloud-toolbar button{min-height:44px}.request-cloud-card{grid-template-columns:1fr}.request-cloud-card .tag{justify-self:start}}

/* Private ordering configuration; existing page styles remain unchanged. */
.form-manager-actions{display:flex;gap:12px;flex-wrap:wrap;margin:16px 0}.form-manager-card{padding:18px 0;border-top:1px solid var(--line,#d8e1e5);overflow-wrap:anywhere}.form-manager-card h3{margin:0 0 10px}.form-manager-card label{max-width:260px;display:block;margin-top:12px}.form-manager-form{max-width:720px;display:grid;gap:16px}.form-manager-form label{display:grid;gap:8px}.form-manager-form textarea{width:100%;box-sizing:border-box}.form-manager-actions button{min-height:44px}#orderFormManager .panel-head{flex-wrap:wrap;gap:12px}#formManagerMessage{overflow-wrap:anywhere}

.form-manager-form input,.form-manager-form select,.form-manager-form textarea,.form-manager-card select{font:inherit;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:7px;padding:12px;width:100%;min-width:0;min-height:44px}.form-manager-form label{font-size:12px;letter-spacing:.06em;font-weight:650;color:var(--muted)}.form-manager-form textarea{resize:vertical}.form-manager-form textarea:focus-visible{outline:3px solid var(--accent);outline-offset:2px}

#orderFormManager .request-signin{max-width:540px}#orderFormManager .request-signin label{display:grid;gap:8px;margin:16px 0}#orderFormManager .request-signin input{width:100%;min-height:44px}

/* Reusable product options inside the private manager. */
#orderFormManager fieldset{min-width:0;border:1px solid var(--line);border-radius:8px;padding:16px;margin:12px 0}#orderFormManager legend{font-weight:650}.product-choice-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin:10px 0;align-items:center}.product-size-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto}.product-template-row{display:flex;gap:8px;flex-wrap:wrap}.product-template-row select{flex:1;min-width:120px}.event-product-card{border-top:1px solid var(--line);padding:18px 0}.event-product-card .product-check{display:flex;align-items:center;gap:10px;margin:10px 0;font-size:14px;letter-spacing:0}.event-product-card .product-check input{width:20px;height:20px;flex:0 0 20px}.event-product-card fieldset{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.event-product-card fieldset .product-check:first-of-type{grid-column:1/-1}.event-product-card span{overflow-wrap:anywhere}@media(max-width:600px){.product-size-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.product-size-row button{grid-column:1/-1;justify-self:start}.event-product-card fieldset{grid-template-columns:1fr}.product-choice-row button{font-size:13px}}

/* Event form design previews and customer-choice settings. */
.event-design-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.event-design-settings label{display:grid;gap:8px}.event-design-settings select,.event-design-settings input{width:100%;min-height:44px}.event-design-settings p{grid-column:1/-1}.event-design-card{padding:18px 0;border-top:1px solid var(--line);overflow-wrap:anywhere}.event-design-panel img{display:block;max-width:100%;width:220px;max-height:200px;object-fit:contain;background:var(--soft);border-radius:8px;margin:14px 0}.event-design-editor{padding:18px;border:1px solid var(--line);border-radius:8px}.event-design-settings button{justify-self:start;min-height:44px}@media(max-width:600px){.event-design-settings{grid-template-columns:1fr}.event-design-editor{padding:12px}}

.order-production-review{padding:16px;border:1px solid #cadde3;border-radius:10px;margin:16px 0}.order-production-print{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;border-bottom:1px solid #d6e3e7;padding:12px 0}.order-production-print strong,.order-production-print label:last-child{grid-column:1/-1}@media(max-width:600px){.order-production-print{grid-template-columns:1fr}}

/* Gang sheet fit is independent of source image quality. */
#gangSheetStatus{font-size:clamp(1.35rem,3vw,2rem);font-weight:800;line-height:1.15;padding:.65rem 1rem;white-space:normal;text-align:center}#gang .panel-head{flex-wrap:wrap;gap:.7rem}#gangReady a{display:inline-flex;align-items:center;min-height:44px;text-decoration:none}#gangReady:empty{display:none}
/* Owner request review only; keep location controls compact and touch-friendly. */
#incomingRequests .request-order-review fieldset{min-width:0;max-width:100%;border:1px solid var(--line);border-radius:8px;padding:14px;margin:14px 0}
#incomingRequests .request-order-review .review-locations{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px}
#incomingRequests .request-order-review .review-locations label{display:flex;align-items:center;gap:10px;min-height:44px;margin:0;letter-spacing:0}
#incomingRequests .request-order-review .review-locations input[type=checkbox]{display:inline-block;flex:0 0 24px;width:24px;max-width:24px;height:24px;min-height:24px;margin:0;padding:0}

/* Two-level workspace navigation. Existing page buttons remain available to shortcuts. */
.app{display:block}.sidebar{width:100%;padding:16px clamp(16px,4vw,55px) 0;gap:0}.brand{margin:0 0 16px;font-size:12px}.brand strong{font-size:16px}.brandmark{width:38px;height:38px}.workspace-main-nav{display:flex;gap:6px;flex-wrap:wrap;padding-bottom:12px}.workspace-tab{border:0;background:transparent;color:var(--sidebar-ink);font:inherit;font-size:15px;font-weight:650;min-height:44px;padding:10px 16px;border-radius:8px}.workspace-tab:hover{background:#ffffff15}.workspace-tab.active{background:var(--accent);color:var(--accent-ink)}.sidebar .workspace-subnav{display:flex;gap:6px;flex-wrap:wrap;padding:12px 0;border-top:1px solid #ffffff25}.sidebar .workspace-subnav[hidden],.workspace-subnav .nav[hidden]{display:none!important}.workspace-subnav .nav{width:auto;flex:none;font-size:14px;min-height:44px;padding:10px 13px}.workspace-subnav .nav.active{box-shadow:none;background:#ffffff25}.workspace-subnav .nav span{white-space:nowrap}.manager-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:24px 0}.manager-card{text-align:left;border:1px solid var(--line);border-radius:11px;background:var(--surface);color:var(--ink);padding:20px;display:grid;gap:12px}.manager-card span{font-size:15px}.manager-card strong{font-size:32px}.manager-card small{font-size:14px;color:var(--accent)}.manager-quick-actions{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:24px}.manager-row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 0;border-top:1px solid var(--line);font-size:16px}.manager-row p{font-size:14px;color:var(--muted);margin:6px 0;overflow-wrap:anywhere}.manager-row>div{min-width:0}.manager-customer-orders{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.manager-row button{min-height:44px;flex-shrink:0}#invoiceSettings .invoice-panel{max-width:950px}#invoiceSettings details{margin-top:0;border-top:0;padding-top:0}.page#invoiceLibrary .invoice-saved{margin-top:0}@media(max-width:850px){.manager-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.sidebar{padding:12px 14px 0}.sidebar .workspace-main-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}.workspace-tab{font-size:14px;text-align:left;padding:10px 12px}.sidebar .workspace-subnav{flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding:10px 0}.topbar{height:auto;min-height:52px;padding:12px 20px}.manager-row{align-items:flex-start;flex-direction:column}.manager-customer-orders{justify-content:flex-start}.manager-card{padding:16px}.manager-card span{font-size:14px}.manager-quick-actions button{flex:1 1 160px}}

.brandmark span{display:none}

/* Distinguish the tool row from the main workspace navigation. */
.sidebar .workspace-subnav{background:#eaf3f6;border-top:1px solid #b8cfd9;border-radius:10px 10px 0 0;padding-left:8px;padding-right:8px}
.workspace-subnav .nav{background:#ffffff;color:#203c4a;box-shadow:inset 0 0 0 1px #c3d7df;font-weight:600}
.workspace-subnav .nav:hover{background:#d5e8ef;color:#173444}
.workspace-subnav .nav.active{background:#166b83;color:#ffffff;box-shadow:inset 0 -3px #75deec;font-weight:750}
.workspace-subnav .nav:focus-visible{outline:3px solid #173444;outline-offset:2px}

/* Private Request Quote foundation: shares the existing form controls. */
.request-quote{margin-block:20px;min-width:0}.quote-form{display:grid;gap:14px}.quote-form label{display:grid;gap:6px;min-width:0}.quote-form input,.quote-form select{width:100%;min-width:0;min-height:44px}.quote-item{display:grid;grid-template-columns:minmax(0,2fr) minmax(90px,1fr) minmax(110px,1fr);gap:12px;min-width:0;margin-block:12px}.quote-item legend{font-weight:700}.quote-item p{grid-column:1/-1;overflow-wrap:anywhere}.quote-fee{display:grid;grid-template-columns:minmax(0,2fr) minmax(100px,1fr) auto;gap:12px;align-items:end;margin-block:12px}.quote-actions{display:flex;gap:10px;flex-wrap:wrap}.quote-totals{max-width:520px;display:grid;gap:10px;padding-block:16px}.quote-total-row{display:flex;justify-content:space-between;gap:20px}.quote-summary{padding-block:12px;border-bottom:1px solid var(--line,#d5e1e5);overflow-wrap:anywhere}.quote-state{font-weight:700}.request-quote button{min-height:44px}.request-quote details{margin-top:16px}@media(max-width:600px){.quote-item,.quote-fee{grid-template-columns:minmax(0,1fr)}.quote-actions button{flex:1 1 150px}}

/* Catalog pricing uses the existing production palette. */
#garmentPricingHost {display:grid;gap:1rem} #garmentPricingHost summary {cursor:pointer;font-size:1rem;font-weight:700;padding:.5rem} .garment-price-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1rem;margin:1rem 0;padding:1rem;border:1px solid #b4c7d2;border-radius:8px;min-width:0}.garment-price-grid label {font-size:.875rem;display:flex;flex-direction:column;gap:.4rem}.garment-price-grid input,.garment-price-grid select {width:100%;min-width:0;font-size:1rem}.garment-checks {grid-column:1/-1;display:flex;flex-wrap:wrap;gap:1rem}.garment-checks label {display:flex;flex-direction:row;align-items:center}.garment-checks input {width:auto}.quote-pricing-helper {grid-column:1/-1;padding:1rem;background:#edf4f8;border:1px solid #92b1c3;border-radius:8px}.quote-pricing-helper label {display:block;margin:.5rem 0}.quote-pricing-helper select {width:100%;max-width:100%}

.quote-accepted{padding:16px;border:2px solid #19714b;border-radius:10px;background:#ecf9f1;overflow-wrap:anywhere}.quote-accepted>strong{color:#145536;font-size:1.1rem}.quote-accepted p{margin-block:8px}

.order-fulfillment{margin-top:20px;min-width:0}.fulfillment-form{display:grid;gap:12px;margin-block:16px}.fulfillment-form label{display:grid;gap:6px}.fulfillment-form textarea,.fulfillment-form select{width:100%;min-height:44px}.fulfillment-payment{padding:12px;border:1px solid var(--line,#d5e1e5);margin-block:16px;overflow-wrap:anywhere}.order-fulfillment button{min-height:44px}.order-fulfillment p{overflow-wrap:anywhere}

#requirementsHost{display:grid;gap:16px;min-width:0}.req-card{border:1px solid var(--line,#d5e1e5);border-radius:12px;padding:16px;background:#fff;display:grid;gap:10px;min-width:0}.req-card h3,.req-card p{margin:0;overflow-wrap:anywhere}.req-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:12px;align-items:end}.req-form label{display:grid;gap:6px;min-width:0}.req-form input,.req-form textarea,.req-form select{width:100%;min-height:44px}.req-form fieldset{min-width:0;display:grid;gap:10px}.req-card button{min-height:44px}.purchase-line{border-top:1px solid #d5e1e5;padding-top:12px;display:grid;gap:10px}.req-warning{padding:12px;background:#fff3d3;color:#6d4500;border-left:4px solid #b17d1b}.purchase-cart{border:2px solid #1684a1}#orderRequirements .section-head{flex-wrap:wrap}

.order-detail-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,360px);gap:24px;align-items:start}.order-detail-main,.order-workflow-sidebar{min-width:0}.orders-detail-line{font-size:1.05rem;padding:20px}.orders-detail-line-head{font-size:1.2rem}.order-workflow-sidebar .panel{padding:16px}.order-workflow-sidebar fieldset{margin:12px 0;padding:12px}.order-workflow-sidebar textarea{width:100%}#orderAdditionalDetails{display:grid;gap:16px;margin-top:16px}.order-design-details input,.order-design-details select,.order-design-details button,#orderWorkQueues input,#orderWorkQueues select,#orderWorkQueues button{min-height:44px}.order-workflow button,.order-workflow-sidebar select,.order-workflow-sidebar textarea{max-width:100%;white-space:normal}.order-workflow fieldset{min-width:0}.order-design-details details,.order-workflow details{margin-top:12px}.order-design-details button,.order-design-details select,.order-design-details input,.order-queue-summary button{display:block;max-width:100%;margin:8px 0}.queue-state{display:inline-block;padding:8px 12px;border:1px solid;border-radius:8px;margin:5px}.queue-state.todo{color:#8c2020;background:#fff2f2}.queue-state.complete{color:#176034;background:#edf8ef}.queue-state.not-needed{color:#555;background:#f1f1f1}.queue-navigation{display:flex;flex-wrap:wrap;gap:8px}.order-queue-summary button{width:100%;text-align:left}.order-design-details img{object-fit:contain;border:1px solid #ddd}#orderWorkQueues fieldset{min-width:0;padding:14px;margin:12px 0}#orderWorkQueues button{white-space:normal}#orderWorkQueues select{max-width:100%}@media(max-width:850px){.order-detail-layout{grid-template-columns:minmax(0,1fr)}.orders-detail-line{padding:14px}.orders-detail-line-head{flex-wrap:wrap}.order-design-details input[type=file]{width:100%}}
.queue-artwork-preview{display:block;max-width:160px;max-height:150px;object-fit:contain;margin:12px 0;background:#f2f4f6}.queue-material{padding:12px 0;border-bottom:1px solid #dce4e9}.queue-material form,#orderWorkQueuesHost form{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin:12px 0}#invoiceQueueWorkspace[hidden]{display:none}#invoiceQueueWorkspace{margin-top:24px}#orderWorkQueuesHost fieldset{min-width:0;overflow-wrap:anywhere}#orderWorkQueuesHost input[type=number]{max-width:220px}#orderWorkQueuesHost button{white-space:normal}#orderWorkQueuesHost label{display:block}#orderWorkQueuesHost fieldset>button{margin:8px 8px 8px 0}
.final-file-preview{display:block;max-width:260px;max-height:220px;object-fit:contain;background:#edf1f3;margin:16px 0}.final-file-card{overflow-wrap:anywhere}.final-file-card>button,.final-file-history>button{margin:6px 8px 6px 0}.final-file-history{padding:12px 0;border-top:1px solid #dbe3e7}.order-completion-dialog{max-width:560px;width:calc(100% - 32px);max-height:85vh;overflow:auto;border:1px solid #bccdd5;border-radius:12px;padding:24px}.order-completion-dialog::backdrop{background:rgba(10,25,35,.55)}.order-completion-dialog button{margin:8px 8px 0 0}
.final-file-preview{max-width:min(260px,100%)}#finalArtworkHost select,#finalArtworkHost input{max-width:100%;min-width:0}#finalArtworkHost label{display:block}#finalArtworkHost .panel{min-width:0}
/* Orders and Production: readable summaries, optional editing, scoped mobile layout. */
:is(#orders,#production,#orderWorkQueues,#orderRequirements,#finalArtwork) {overflow-wrap:anywhere;}
:is(#orders,#production,#orderWorkQueues,#orderRequirements,#finalArtwork) :is(input,select,textarea,button,fieldset,section,article,details,div,label,dl,dd){min-width:0;max-width:100%;box-sizing:border-box;}
:is(#orders,#production,#orderWorkQueues,#orderRequirements,#finalArtwork) :is(button,summary){white-space:normal;line-height:1.4;}
:is(#orders,#production,#orderWorkQueues,#orderRequirements,#finalArtwork) :is(p,h2,h3,h4){line-height:1.45;}
#orders .orders-detail-line{border:0;border-top:1px solid var(--line,#d9e2e7);border-radius:0;background:transparent;padding:20px 0;}
#orders .orders-detail-line-head{gap:12px;align-items:flex-start;}
#orders .orders-detail-line h3{font-size:14px;margin:16px 0 6px;}
#orders .order-item-facts{font-size:16px;margin:8px 0;}
#orders .order-final-preview{display:inline-flex;flex-direction:column;gap:6px;padding:8px 12px 8px 0;vertical-align:top;max-width:100%;}
#orders .order-final-preview img{width:auto;max-width:min(200px,100%);max-height:170px;object-fit:contain;}
#orders :is(.order-workflow,.order-queue-summary,.order-fulfillment,#orderAdditionalDetails>.panel){border:0;border-top:1px solid var(--line,#d9e2e7);border-radius:0;box-shadow:none;background:transparent;padding:16px 0;}
#orders .workflow-item-controls fieldset{border:0;border-top:1px solid var(--line,#d9e2e7);border-radius:0;padding:12px 0;margin:10px 0;}
#orders :is(.order-inline-edit,.workflow-item-controls){margin:12px 0;}
#orders .order-queue-summary{display:flex;flex-direction:column;gap:8px;}
#orders .order-queue-summary button{width:100%;text-align:left;padding:10px 12px;}
#orderWorkQueues #orderWorkQueuesHost>div>.panel{border:0;border-top:1px solid var(--line,#d9e2e7);border-radius:0;box-shadow:none;padding:18px 0;background:transparent;}
#orderWorkQueues fieldset{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 16px;border:0;border-top:1px solid var(--line,#d9e2e7);border-radius:0;padding:14px 0;margin:14px 0;}
#orderWorkQueues fieldset>legend{font-size:16px;font-weight:700;padding:0;}
#orderWorkQueues fieldset>:is(details,.queue-artwork-preview){grid-column:1/-1;}
#orderWorkQueues fieldset .queue-material{border:0;border-radius:0;box-shadow:none;padding:10px 0;background:transparent;}
#orderWorkQueues .queue-artwork-preview{max-width:110px;max-height:110px;object-fit:contain;}
#orderWorkQueues :is(.queue-more-actions,.queue-filter-options){margin:8px 0;}
#orderWorkQueues .queue-navigation{display:flex;gap:8px;flex-wrap:wrap;}
#orderWorkQueues .queue-navigation button{flex:1 1 85px;padding:10px;}
#orderRequirements .req-card{border:0;border-top:1px solid var(--line,#d9e2e7);border-radius:0;box-shadow:none;background:transparent;padding:18px 0;}
#orderRequirements .req-card>details{margin:12px 0;}
#production .job-card{border:0;border-top:1px solid var(--line,#d9e2e7);border-radius:0;box-shadow:none;padding:18px 0;background:transparent;}
#production .job-card-head{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-start;}
#production .job-card-head>div:first-child{flex:1 1 180px;}
#production .job-card-foot{display:flex;flex-wrap:wrap;align-items:flex-start;gap:12px;}
#production .job-card-foot>.primary{flex:1;}
#production .job-status-actions{flex:1;}
#production .production-view-heading{display:flex;align-items:flex-start;gap:12px;flex-wrap:wrap;}
#production .production-view-heading h2{flex:1 1 220px;margin:0;}
#production .production-garment-row{border-top:1px solid var(--line,#d9e2e7);padding:12px 0;}
#production .production-garment-row li{list-style:none;}
@media(max-width:700px){
 #orders .order-detail-layout{display:block;}
 #orders .order-workflow-sidebar{position:static;}
 #orders .orders-detail-fields{display:grid;grid-template-columns:1fr;gap:8px;}
 #orders .orders-detail-fields>div{display:grid;grid-template-columns:90px minmax(0,1fr);gap:10px;}
 #orders .orders-detail-fields dd{margin:0;}
 #orders .orders-detail-line-head{display:flex;flex-direction:column;}
 #orders :is(.orders-row,.orders-section-head,.orders-garment-heading,.orders-actions){display:flex;flex-wrap:wrap;gap:10px;}
 #orders .orders-row>span{width:100%;}
 #orders .orders-status{width:auto!important;}
 #orderWorkQueues fieldset{grid-template-columns:minmax(0,1fr);}
 #production :is(.job-toolbar,.job-form-grid,.job-form-grid.job-links){display:grid;grid-template-columns:minmax(0,1fr);gap:12px;}
 #production :is(.job-card-head,.job-card-foot,.job-board-heading){display:flex;flex-direction:column;align-items:stretch;}
 #production .job-card-head>div:first-child{flex-basis:auto;}
 #production .job-due{text-align:left;}
 #production .job-card-foot>*{width:100%;}
 #orderRequirements .req-form{grid-template-columns:minmax(0,1fr);}
}
#orders.reading-order>.orders-board,#orders.reading-order .orders-heading,#orders.reading-order>button{display:none;}
#orders .order-back{margin-bottom:12px;}
#orderWorkQueuesHost fieldset>p{margin:4px 0;}
#orderWorkQueuesHost fieldset>.queue-state{width:fit-content;margin:0;}
#orderWorkQueuesHost fieldset>label{display:flex;align-items:center;gap:10px;min-height:44px;margin:0;}
#orderWorkQueuesHost input[type=checkbox]{min-height:0;width:20px;height:20px;flex:0 0 20px;}
#production .job-intro{margin:12px 0;}
#orders .order-workflow-sidebar{align-self:start;}
@media(min-width:851px){
 #orders .order-workflow-sidebar{position:sticky;top:16px;max-height:calc(100vh - 32px);overflow-y:auto;overscroll-behavior:contain;}
}
#orders .order-workflow-sidebar>.panel{border:0;border-top:1px solid var(--line,#d9e2e7);border-radius:0;background:transparent;box-shadow:none;padding:16px 0;}
#orders .fulfillment-payment{border:0;background:transparent;padding:4px 0;}
#production .production-filter-options{margin:12px 0;}
#production .production-filter-options[open]{display:grid;gap:12px;}
#production .production-filter-options label{display:grid;gap:6px;}
#production .production-filter-options :is(input,select){width:100%;min-height:44px;}
@media(max-width:700px){#orders .orders-detail-fields>div{grid-template-columns:100px minmax(0,1fr);}#orders .orders-detail-fields dt{letter-spacing:.02em;overflow-wrap:normal;}}
/* Compact original request reading view. */
#incomingRequests .request-read-view h2{margin:0 0 6px;font-size:1.3rem;line-height:1.4;}
#incomingRequests .request-customer-name{font-size:1.1rem;margin:0 0 14px;line-height:1.4;}
#incomingRequests .request-summary-facts{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:1rem;}
#incomingRequests .request-summary-status{font-weight:700;color:var(--accent);margin:12px 0;}
#incomingRequests .request-item-summary{border-top:1px solid var(--line);padding:16px 0;min-width:0;}
#incomingRequests .request-item-summary h4{font-size:1.05rem;line-height:1.4;margin:0 0 8px;}
#incomingRequests .request-item-summary p{margin:5px 0;line-height:1.5;overflow-wrap:anywhere;}
#incomingRequests .request-garment-facts{font-weight:650;}
#incomingRequests .request-design-badge{display:inline-block;font-size:.9rem;margin:8px 0;color:var(--muted);}
#incomingRequests :is(.request-disclosure,.request-corrections,.request-secondary-actions){padding:10px 0;min-width:0;}
#incomingRequests :is(.request-disclosure,.request-corrections,.request-secondary-actions)>summary{cursor:pointer;font-size:1rem;line-height:1.5;min-height:44px;display:flex;align-items:center;gap:8px;}
#incomingRequests details>summary::before{content:'+';font-weight:700;}
#incomingRequests details[open]>summary::before{content:'−';}
#incomingRequests .request-corrections[open]{display:grid;gap:12px;}
#incomingRequests .request-corrections :is(input,select,textarea){width:100%;max-width:100%;min-width:0;box-sizing:border-box;}
#incomingRequests .request-corrections label{display:grid;gap:6px;}
#incomingRequests .request-order-review .form-manager-form{display:flex;flex-direction:column;gap:12px;}
#incomingRequests .request-order-review .order-workflow{border:0;border-top:1px solid var(--line);border-radius:0;padding:12px 0;background:transparent;box-shadow:none;}
#incomingRequests .request-read-view :is(p,h2,h3,h4,button,summary){overflow-wrap:anywhere;white-space:normal;}
#incomingRequests .request-read-view .request-file{border:0;border-top:1px solid var(--line);border-radius:0;padding:12px 0;}
@media(max-width:650px){#incomingRequests .request-read-view{padding:16px;}#incomingRequests .request-summary-facts{flex-direction:column;gap:5px;}#incomingRequests .request-corrections .orders-size-row{grid-template-columns:minmax(0,1fr) 90px;}#incomingRequests .request-read-view img{max-width:100%;}}

/* Order and To Do working surface: shared records, compact checklists. */
.simple-checklist{padding:20px;background:var(--panel,#fff);border:1px solid var(--border,#dae3e7);border-radius:12px;min-width:0}
.simple-checklist h3{margin:0 0 14px}.simple-item-tasks{border-top:1px solid #dae3e7;padding-top:10px;margin-top:10px}.simple-item-tasks h4{margin:0 0 8px;font-size:1rem}
.simple-task{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:9px 0;min-width:0}.simple-task>label{display:flex;align-items:center;gap:10px;margin:0;font-size:1rem;line-height:1.45;text-transform:none;letter-spacing:normal}.simple-task input[type=checkbox]{width:22px;height:22px;min-width:22px;margin:0;accent-color:#087d75}.simple-task small{flex-basis:100%;font-size:.875rem;line-height:1.5;overflow-wrap:anywhere}.simple-task button{padding:8px 12px;font-size:.875rem;min-height:40px}.simple-task-options{margin-left:auto;font-size:.875rem}.simple-task-options summary{cursor:pointer}.simple-payment{border-top:1px solid #dae3e7;margin-top:16px;padding-top:16px}.simple-payment p{margin:6px 0}.simple-payment details{margin-top:12px}.simple-payment details button{margin:8px 8px 0 0}
.simple-todo-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(200px,280px);gap:18px;border-bottom:1px solid #dae3e7;padding:18px 0}.simple-todo-row strong{display:block;font-size:1rem}.simple-todo-row p{margin:6px 0}.simple-todo-row .text-button{display:block;text-align:left;white-space:normal;overflow-wrap:anywhere;margin-bottom:8px}.simple-todo-row small{display:block;font-size:.875rem;line-height:1.5}.simple-todo-row .simple-task>label{font-weight:600}.simple-transfer{display:flex;align-items:center;gap:10px;margin:8px 0}.simple-transfer img{width:64px;height:64px;object-fit:contain;background:#e9edf0;border-radius:6px}.simple-transfer span{font-size:.875rem;overflow-wrap:anywhere}.order-contact,.order-requested-art{margin:10px 0}.order-requested-art summary{cursor:pointer;font-size:.875rem}.orders-detail-line>h3{font-size:1rem;margin:14px 0 8px}.orders-detail-line p{line-height:1.5;overflow-wrap:anywhere}.order-advanced>.panel{border:0;box-shadow:none;padding:12px 0}.simple-checklist *{overflow-wrap:anywhere}.simple-checklist button{white-space:normal}
@media(max-width:700px){.simple-todo-row{grid-template-columns:minmax(0,1fr);gap:6px}.simple-checklist{padding:16px}.simple-task{gap:8px}.simple-todo-controls .simple-task{padding-top:4px}.simple-task-options{margin-left:0}.simple-checklist .simple-task>label{flex:1 1 160px}.simple-checklist .simple-task>button{flex:0 1 auto}.order-queue-summary{display:none}}
#orders .simple-task>label,#orderWorkQueues .simple-task>label{display:flex!important;flex-direction:row!important;align-items:center;gap:10px;grid-template-columns:none;letter-spacing:normal;font-size:1rem;text-transform:none;flex:1 1 180px;width:auto;min-width:0}
#orders .simple-task input[type=checkbox],#orderWorkQueues .simple-task input[type=checkbox]{width:22px!important;height:22px!important;min-height:22px!important;flex:0 0 22px!important;margin:0!important}
#orders .simple-task>label span,#orderWorkQueues .simple-task>label span{flex:1;min-width:0}
#orders .order-final-preview{display:flex;flex-direction:row;align-items:center;gap:12px;padding:8px 0}
#orders .order-final-preview p{flex:1;margin:0;font-size:.875rem}
#orders .order-final-preview img{width:72px;height:72px;max-width:72px!important;max-height:72px!important;object-fit:contain;order:-1}
#orders .simple-checklist{border:0;border-top:1px solid #dae3e7;border-radius:0;padding:18px 0;background:transparent}
#orders .simple-task{display:flex!important;grid-template-columns:none;min-height:44px}
#orders .simple-task-options{margin-left:0}
#orderWorkQueues .queue-navigation{align-items:center;margin:14px 0}
#orderWorkQueues .queue-navigation>details{order:2;flex-basis:100%;font-size:.875rem}

/* Invoice pricing stays focused on customer prices and the linked Order. */
.invoice-price-target{display:grid;gap:8px;margin:12px 0 18px;font-size:1rem;letter-spacing:normal;text-transform:none}.invoice-price-target select{min-height:44px;width:100%;max-width:100%}.invoice-email{margin-top:18px;border-top:1px solid #dae3e7;padding-top:14px}.invoice-email label{display:grid;gap:8px;margin:12px 0;font-size:1rem;letter-spacing:normal;text-transform:none}.invoice-email input{width:100%;min-height:44px}.invoice-email .note{font-size:.875rem;line-height:1.5}.invoice-send-actions{display:flex;gap:10px;flex-wrap:wrap}.invoice-send-actions button{min-height:46px}.simple-payment>.primary{margin-top:14px;min-height:44px}#invoiceOrderContext>.panel{border:0;box-shadow:none}#invoiceOrderContext>details{margin:12px 0}#invoiceQueueWorkspace .price-choice{min-height:48px}#invoiceQueueWorkspace .invoice-line-total{white-space:nowrap}
@media(max-width:700px){#invoiceQueueWorkspace .invoice-price-target select{font-size:1rem}#invoiceQueueWorkspace label{letter-spacing:normal;overflow-wrap:anywhere}.invoice-send-actions{display:grid;grid-template-columns:1fr}.invoice-email button{width:100%;max-width:100%;white-space:normal}}

/* Queue navigation stays visible and queue rows read as focused work cards. */
#orderWorkQueues .queue-navigation{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:16px 0 22px}
#orderWorkQueues .queue-navigation button{min-height:48px;padding:10px 12px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--ink);font-weight:650;line-height:1.25}
#orderWorkQueues .queue-navigation button[aria-pressed=true]{border-color:var(--accent);background:var(--soft);color:var(--ink);box-shadow:inset 0 0 0 1px var(--accent)}
#orderWorkQueues .queue-navigation button:hover{border-color:var(--accent)}
#orderWorkQueuesHost .queue-due{display:inline-flex;width:fit-content;max-width:100%;align-items:center;margin:5px 0 8px;padding:5px 9px;border-radius:999px;background:var(--soft);color:var(--ink);font-size:13px;font-weight:750;line-height:1.3;overflow-wrap:anywhere}
#orderWorkQueuesHost .queue-due[data-urgency=overdue]{background:#f7eaea;color:#742e2e}
#orderWorkQueuesHost .queue-due[data-urgency=today],#orderWorkQueuesHost .queue-due[data-urgency=soon]{background:#fff3df;color:#704500}
#orderWorkQueuesHost .simple-todo-row{grid-template-columns:minmax(0,1fr) minmax(230px,290px);gap:18px;align-items:start;margin:0 0 12px;padding:18px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
#orderWorkQueuesHost .simple-todo-row .queue-order-link{font-weight:700;color:var(--accent);min-height:44px;display:flex;align-items:center;margin:0 0 4px}
#orderWorkQueuesHost .simple-todo-row>div>small{color:var(--muted)}
#orderWorkQueuesHost .simple-todo-row .simple-todo-controls{padding:12px;border-radius:9px;background:var(--bg)}
#orderWorkQueuesHost .simple-todo-row .simple-task{padding:0;min-height:44px}
#orderWorkQueuesHost .simple-todo-row .simple-task>label{font-weight:700}
#orderWorkQueuesHost .simple-todo-row .simple-task-options{margin:8px 0 0}
#orderWorkQueuesHost .simple-todo-row .simple-task-options summary{min-height:44px;display:flex;align-items:center}
@media(max-width:900px){#orderWorkQueues .queue-navigation{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){#orderWorkQueues .queue-navigation{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#orderWorkQueuesHost .simple-todo-row{grid-template-columns:minmax(0,1fr);gap:8px;padding:14px}#orderWorkQueuesHost .simple-todo-row .simple-todo-controls{padding:10px 12px}#orderWorkQueuesHost .simple-todo-row .simple-task-options{margin-left:0}}
@media(max-width:360px){#orderWorkQueues .queue-navigation button{padding:9px 7px;font-size:.9rem}}

.invoice-adjustments .invoice-fee-option{display:flex;align-items:center;gap:10px;min-height:48px;padding:12px;border:1px solid var(--line,#d5e0e5);border-radius:10px;cursor:pointer;text-transform:none;letter-spacing:normal}.invoice-adjustments .invoice-fee-option input[type=checkbox]{width:22px;height:22px;min-width:22px;margin:0;flex:0 0 auto}.invoice-fee-option span{flex:1;min-width:0}.invoice-fee-option strong{white-space:nowrap}.invoice-fee-option:has(:checked){background:#eaf3f5}#invoiceFeeEditor h3{grid-column:1/-1;margin:12px 0 0}

.orders-sync{margin-bottom:12px}.orders-sync form{display:grid;gap:12px;max-width:420px}.order-issue-note textarea{width:100%;min-height:80px}.order-issue-note form{display:grid;gap:10px}.order-issue-note p{overflow-wrap:anywhere}.order-issue-note summary{font-weight:600;cursor:pointer}

.inventory-toolbar,.inventory-filters{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:16px}.inventory-filters label{flex:1 1 140px;min-width:0}.inventory-card{padding:18px 0;border-bottom:1px solid #d5e0e5}.inventory-counts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0}.inventory-counts strong{display:block;font-size:1.5rem}.inventory-card .text-button{white-space:normal;text-align:left;overflow-wrap:anywhere}.inventory-dialog{width:min(780px,calc(100vw - 24px));max-height:90vh;overflow:auto;border:1px solid #d5e0e5;border-radius:14px;padding:20px}.inventory-form,.inventory-purchase-rows{display:grid;gap:14px}.inventory-variation-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.inventory-form label,.inventory-order-row label{display:grid;gap:6px;min-width:0}.inventory-form input,.inventory-form select,.inventory-form textarea,.inventory-order-row input,.inventory-order-row select{width:100%;min-width:0}.inventory-purchase-row,.inventory-purchase-record,.inventory-order-row,.inventory-need-row{padding:12px 0;border-bottom:1px solid #d5e0e5}.inventory-allocation,.inventory-history-row{padding:12px 0}.inventory-purchase-total{font-size:1.25rem}.order-stock{margin:12px 0}.order-stock summary{cursor:pointer;font-weight:600}.inventory-need-row p{margin:8px 0}.inventory-order-row button{margin:8px 8px 0 0}@media(max-width:480px){.inventory-variation-fields{grid-template-columns:1fr}.inventory-dialog{padding:14px}.inventory-counts{gap:6px}.inventory-counts small{font-size:12px}.inventory-counts strong{font-size:1.2rem}}
.inventory-toolbar{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:14px}.inventory-toolbar button{flex:0 1 auto}.inventory-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 12px;margin-bottom:16px}.inventory-filters label{display:grid;gap:6px;min-width:0}.inventory-filters label:first-child{grid-column:1/-1}.inventory-filters input,.inventory-filters select{width:100%;min-width:0}.inventory-card{padding:18px 0;border-bottom:1px solid #d5e0e5;min-width:0}.inventory-counts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0}.inventory-counts strong{display:block;font-size:1.5rem}.inventory-card .text-button{white-space:normal;text-align:left;overflow-wrap:anywhere}.inventory-dialog{width:min(780px,calc(100vw - 24px));max-height:90vh;overflow:auto;border:1px solid #d5e0e5;border-radius:14px;padding:20px}.inventory-form,.inventory-purchase-rows{display:grid;gap:14px}.inventory-variation-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.inventory-form label,.inventory-order-row label{display:grid;gap:6px;min-width:0}.inventory-form input,.inventory-form select,.inventory-form textarea,.inventory-order-row input,.inventory-order-row select{width:100%;min-width:0}.inventory-purchase-row,.inventory-purchase-record,.inventory-order-row,.inventory-need-row{padding:12px 0;border-bottom:1px solid #d5e0e5}.inventory-allocation,.inventory-history-row{padding:12px 0}.inventory-purchase-total{font-size:1.25rem}.order-stock{margin:12px 0}.order-stock summary{cursor:pointer;font-weight:600}.inventory-need-row p{margin:8px 0}.inventory-order-row button{margin:8px 8px 0 0}#inventoryHost{min-width:0;max-width:100%}.page#inventory{padding-top:24px}@media(max-width:700px){.page#inventory{padding-top:16px}.inventory-toolbar button{flex:1 1 160px}.inventory-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.inventory-variation-fields{grid-template-columns:1fr}.inventory-dialog{padding:14px}.inventory-counts{gap:6px}.inventory-counts small{font-size:12px}.inventory-counts strong{font-size:1.2rem}}@media(max-width:360px){.inventory-filters{grid-template-columns:1fr}.inventory-toolbar button{flex-basis:100%}}

/* Compact, shared financial working surfaces. */
.financial-actions,.financial-tabs{display:flex;gap:.6rem;flex-wrap:wrap;margin:.7rem 0}.financial-tabs .active{background:#176b80;color:white}.financial-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.7rem;margin:1rem 0}.financial-cards button{display:flex;flex-direction:column;align-items:flex-start;gap:.4rem;padding:1rem;text-align:left;white-space:normal}.financial-cards strong{font-size:1.5rem;line-height:1.2;overflow-wrap:anywhere}.financial-cards small{font-weight:400}.financial-row{display:flex;width:100%;justify-content:space-between;gap:1rem;text-align:left;white-space:normal;border:0;border-bottom:1px solid #cddde3;border-radius:0;padding:.9rem .3rem;background:transparent;color:#173444}.financial-row>div{display:flex;flex-direction:column;gap:.25rem;min-width:0}.financial-row strong,.financial-row small{overflow-wrap:anywhere}.financial-row small{font-weight:400;font-size:.875rem}.financial-dialog{width:min(680px,calc(100% - 1.5rem));max-height:90dvh;overflow:auto;border:1px solid #cddde3;border-radius:14px;padding:1.2rem;color:#172b38}.financial-dialog::backdrop{background:#172b3880}.financial-dialog .panel-head{display:flex;align-items:start;justify-content:space-between;gap:.6rem}.financial-dialog h2{font-size:1.25rem;overflow-wrap:anywhere}.financial-form{display:flex;flex-direction:column;gap:.75rem}.financial-form label{display:flex;flex-direction:column;gap:.35rem;font-size:1rem;font-weight:500;letter-spacing:normal}.financial-form input,.financial-form select,.financial-form textarea{width:100%;min-width:0;font-size:1rem;box-sizing:border-box}.financial-form input[type=checkbox]{width:auto}.financial-form details{padding:.35rem 0}.financial-form button{white-space:normal}.financial-record{border-bottom:1px solid #cddde3;padding:.7rem 0;display:flex;flex-direction:column;gap:.5rem}.financial-filters{display:flex;flex-wrap:wrap;gap:.6rem}.financial-filters label{display:flex;flex-direction:column;gap:.3rem;min-width:0;flex:1}.financial-filters input,.financial-filters select{min-width:0;width:100%}#financialsHost>details{margin-top:1rem}#financialsHost>label{display:flex;flex-direction:column;gap:.3rem}#financialsHost details label{display:flex;flex-direction:column;gap:.3rem;margin:.6rem 0}#financialsHost details input,#financialsHost details select{max-width:100%;width:100%}#financialDashboard{margin-top:1.5rem}.simple-payment button{margin:.3rem 0}
@media(max-width:700px){.financial-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.financial-cards button{padding:.7rem}.financial-cards strong{font-size:1.25rem}.financial-row{align-items:start}.financial-row>div:last-child{flex-shrink:0}.financial-dialog{padding:1rem}.financial-actions button{flex:1}.financial-filters{flex-direction:column}}

.new-order-count{display:inline-grid;place-items:center;min-width:1.45rem;height:1.45rem;padding:0 .35rem;margin-left:.4rem;border-radius:999px;background:#d94343;color:#fff;font-size:.8rem;font-weight:800;line-height:1}.new-order-label{display:inline-flex;width:max-content;padding:.18rem .48rem;border-radius:999px;background:#d94343;color:#fff;font-size:.78rem;font-weight:800;line-height:1}.orders-row.is-new-order{border-left:5px solid #d94343;background:#fff}.workspace-tab .new-order-count,.nav .new-order-count{vertical-align:middle}@media(max-width:700px){.new-order-count{min-width:1.35rem;height:1.35rem;font-size:.75rem}.orders-row.is-new-order{border-left-width:4px}}
.new-order-count[hidden]{display:none}

/* Shared Studio accounts and notifications */
.studio-account-button,.studio-notification-button{min-height:40px;padding:8px 12px;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:9px}.studio-account-button{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.studio-notification-button{position:relative}.studio-notification-button svg{width:22px;height:22px;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.studio-notification-count{position:absolute;right:-7px;top:-8px;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#c83b3b;color:#fff;font-size:12px;font-weight:800;display:grid;place-items:center}.studio-notification-count[hidden]{display:none}.shared-workspace-status{margin:0;font-size:12px;color:var(--muted)}.studio-notification-panel{position:fixed;z-index:1000;top:76px;right:18px;width:min(390px,calc(100vw - 24px));max-height:min(680px,calc(100vh - 96px));overflow:auto;padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:0 18px 48px #10233035}.studio-notification-panel[hidden]{display:none}.studio-notification-head{display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--line);padding-bottom:10px}.studio-notification-head h2{margin:0 auto 0 0}.studio-notification-item{width:100%;display:grid;gap:3px;text-align:left;background:transparent;color:var(--ink);border:0;border-bottom:1px solid var(--line);border-radius:0;padding:14px 8px}.studio-notification-item.unread{background:#eaf6f9}.studio-notification-item small{color:var(--accent);font-weight:800}.studio-notification-item span{font-size:14px;color:var(--muted)}.team-member-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid var(--line)}.team-member-row p{margin:4px 0}.team-member-form,.studio-signin{display:grid;gap:12px;margin-top:16px}.team-member-form label,.studio-signin label{display:grid;gap:6px}.team-member-form input:not([type=checkbox]),.studio-signin input,.team-member-form select{width:100%;min-width:0}.team-member-form label:has(input[type=checkbox]){display:flex;align-items:center;gap:9px}.team-member-form label:has(input[type=checkbox]) input{order:-1}.team-member-form button{margin-right:8px}
@media(max-width:700px){.topbar{display:flex;flex-wrap:wrap;gap:8px}.topbar .crumb{flex:1 1 100%}.studio-account-button{max-width:170px}.shared-workspace-status{display:none}.studio-notification-panel{top:10px;right:10px;width:calc(100vw - 20px);max-height:calc(100vh - 20px);padding:14px}.studio-notification-head{position:sticky;top:-14px;background:var(--surface);z-index:1;padding-top:10px}.team-member-row{align-items:flex-start}.team-member-row button{flex-shrink:0}}
@media(max-width:380px){.studio-account-button{max-width:135px}.studio-notification-head{flex-wrap:wrap}.studio-notification-head h2{flex-basis:100%}}
.email-setup-status{padding:10px 12px;border-radius:8px;background:#fff3d8;color:#6f4a00}.email-setup-status.ready{background:#e4f4e8;color:#215b31}
.studio-password-fallback{margin-top:1rem}.studio-password-fallback>summary{cursor:pointer;color:var(--accent);font-weight:700;padding:.45rem 0}.studio-password-fallback[open] .studio-signin{margin-top:.8rem}body.studio-locked .workspace-main-nav,body.studio-locked .workspace-subnav,body.studio-locked main>.page:not(#teamSettings),body.studio-locked main>footer{display:none!important}body.studio-locked #teamSettings{display:block}body.studio-locked .topbar .crumb,body.studio-locked .topbar .top-status,body.studio-locked #studioNotificationButton{display:none!important}body.studio-locked main{min-height:70vh}
.storage-summary{display:grid;gap:.35rem;margin:.75rem 0 1rem}.storage-summary .status-pill{justify-self:start}.storage-actions{display:flex;gap:.6rem;flex-wrap:wrap;margin-top:.75rem}.storage-details{margin-top:1rem}.import-preview{margin-top:1rem;padding:1rem;border:1px solid var(--line);border-radius:14px;background:var(--surface-soft)}.import-preview p{margin:.35rem 0}.connection-error{color:#8f2f28;font-weight:700}.save-success{color:#24633f;font-weight:700}@media(max-width:560px){.storage-actions>*{flex:1 1 100%;width:100%}.storage-summary{margin-top:.45rem}.import-preview{padding:.75rem}}
.order-pricing-review{display:grid;gap:.75rem}.pricing-submitted p{margin:.35rem 0}.pricing-review-form,.pricing-review-items,.pricing-fees{display:grid;gap:.65rem}.pricing-review-row{display:grid;grid-template-columns:minmax(0,1fr) 5rem 7rem;gap:.5rem}.pricing-review-row label,.pricing-fees label,.pricing-review-form>label{font-size:.72rem}.pricing-review-actions{display:flex;flex-wrap:wrap;gap:.5rem}.pricing-review-total{font-size:1.25rem;font-weight:800;padding:.75rem;background:#edf6f7;border-radius:.6rem}@media(max-width:600px){.pricing-review-row{grid-template-columns:1fr 1fr}.pricing-review-row>input{grid-column:1/-1}.pricing-review-actions button{width:100%}}
.prep-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1rem}.prep-head h1{margin:.15rem 0}.prep-badge{display:inline-flex;align-items:center;width:max-content;padding:.38rem .65rem;border-radius:999px;background:#e7f3ee;color:#245a45;font-size:.76rem;font-weight:900}.prep-badge[data-status*="needs"],.prep-badge[data-status*="poor"],.prep-badge[data-status*="do-not"]{background:#f9dfdc;color:#8a2f27}.prep-badge[data-status*="warning"],.prep-badge[data-status*="usable"]{background:#fff0c9;color:#70520b}.prep-steps{display:flex;gap:.4rem;overflow:auto;padding:.2rem 0 1rem}.prep-step{flex:0 0 auto;padding:.6rem .72rem;background:var(--surface);color:var(--muted);border:1px solid var(--line)}.prep-step[data-current="true"]{background:var(--ink);color:white}.prep-step[data-done="true"]:not([data-current="true"]){background:#e7f3ee;color:#245a45}.prep-card,.prep-source{max-width:900px;margin-inline:auto}.prep-actions,.prep-quick{display:flex;flex-wrap:wrap;gap:.55rem;margin-top:1rem}.prep-picker{display:grid;gap:.35rem;margin-top:1rem;padding:1rem;border:1px solid var(--line);border-radius:12px;max-height:360px;overflow:auto}.prep-picker button{text-align:left}.prep-preview,.prep-color-stage{display:grid;place-items:center;min-height:260px;border-radius:12px;overflow:hidden;margin-bottom:1rem;background-size:20px 20px}.prep-preview img,.prep-color-stage img{max-width:100%;max-height:420px;object-fit:contain}.prep-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem;margin:1rem 0}.prep-metrics>div,.prep-size-result{display:grid;gap:.2rem;padding:.8rem;background:var(--surface-soft);border-radius:10px}.prep-metrics small,.prep-size-result small{color:var(--muted);font-size:.72rem;font-weight:800;text-transform:uppercase}.prep-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}.prep-fields label,.prep-card>label{display:grid;gap:.4rem}.prep-size-result{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem;margin-top:1rem}.prep-alert,.prep-warning{padding:.8rem 1rem;border-radius:10px;font-weight:700}.prep-alert{background:#f9dfdc;color:#782a24}.prep-warning{background:#fff0c9;color:#654a08}.prep-checks{display:grid;gap:.45rem;margin:1rem 0}.prep-check-row{display:grid;grid-template-columns:minmax(150px,.45fr) 1fr;gap:.7rem;padding:.7rem;border-radius:9px;background:var(--surface-soft)}.prep-check-row[data-level="fail"]{background:#f9dfdc}.prep-check-row[data-level="warn"]{background:#fff0c9}.prep-check{display:flex!important;align-items:center;gap:.5rem;margin:.55rem 0}.prep-check input{width:auto}.prep-prompt-list{display:flex;flex-wrap:wrap;gap:.5rem}.prep-color-stage{background-image:none!important;padding:1rem}.prep-color-stage img{max-width:100%;max-height:380px;filter:drop-shadow(0 2px 3px #0004)}
@media(max-width:650px){.prep-head{display:grid}.prep-steps{margin-inline:-.4rem}.prep-card,.prep-source{padding:1rem}.prep-actions>*{width:100%}.prep-quick{display:grid;grid-template-columns:1fr 1fr}.prep-metrics{grid-template-columns:1fr 1fr}.prep-fields{grid-template-columns:1fr}.prep-check-row{grid-template-columns:1fr;gap:.2rem}.prep-preview,.prep-color-stage{min-height:220px}.prep-size-result{grid-template-columns:1fr 1fr}}
.reference-category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem}.reference-category-card{min-height:88px;text-align:left;font-size:1rem}.prompt-chips{display:flex;gap:.45rem;overflow:auto;padding:.8rem 0}.prompt-chip{flex:0 0 auto;padding:.55rem .75rem;background:var(--surface);color:var(--muted);border:1px solid var(--line)}.prompt-chip[data-active="true"]{background:var(--ink);color:#fff}.prompt-home-actions{display:flex;gap:.5rem;flex-wrap:wrap;margin:.2rem 0 1rem}.prompt-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}.prompt-card{display:grid;gap:.6rem;padding:1rem;border:1px solid var(--line);border-radius:14px;background:var(--surface)}.prompt-card h2,.prompt-card p{margin:0}.prompt-card-head,.prompt-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:.6rem}.prompt-source{font-size:.68rem;font-weight:900;color:var(--accent)}.prompt-guidance{padding:.6rem .75rem;border-radius:8px;background:#edf6f7;color:#24586b;font-weight:700}.prompt-tags{display:flex;flex-wrap:wrap;gap:.3rem}.prompt-tags span{padding:.22rem .45rem;border-radius:999px;background:var(--surface-soft);font-size:.72rem}.prompt-card-actions,.prompt-detail-actions{display:flex;flex-wrap:wrap;gap:.45rem}.prompt-detail{max-width:900px;margin:auto}.prompt-when{display:grid;grid-template-columns:1fr 1fr;gap:.7rem;margin:1rem 0}.prompt-when>div{padding:.8rem;background:var(--surface-soft);border-radius:10px}.prompt-when p{margin:.35rem 0 0}.prompt-variable-grid{display:grid;grid-template-columns:1fr 1fr;gap:.7rem}.prompt-variable-grid label,.prompt-editor label,.prompt-builder label{display:grid;gap:.35rem}.prompt-preview{margin:1rem 0}.prompt-preview pre,.prompt-builder-preview{white-space:pre-wrap;overflow-wrap:anywhere;max-height:420px;overflow:auto;padding:1rem;border-radius:10px;background:#f5f7f8;font:inherit}.prompt-editor,.prompt-builder{max-width:850px;margin:auto;display:grid;gap:.75rem}.prompt-editor textarea,.prompt-builder textarea{width:100%}.prompt-editor textarea[name="promptText"]{min-height:240px}
@media(max-width:650px){.reference-category-grid,.prompt-grid,.prompt-variable-grid,.prompt-when{grid-template-columns:1fr}.reference-category-card{min-height:64px}.prompt-card-actions>*{flex:1 1 calc(50% - .5rem)}.prompt-detail-actions>*{width:100%}.prompt-card,.prompt-detail{padding:1rem}.prompt-chips{margin-inline:-.4rem}}
.prep-repair-callout{display:grid;gap:.45rem;padding:1rem;margin:1rem 0;border:1px solid #e7b9b3;border-radius:12px;background:#fff1ef;color:#702b25}.prep-repair-callout .primary{margin-top:.35rem;width:max-content}
.prep-advanced-drawer{max-width:1100px;margin:1rem auto}.prep-advanced-drawer[hidden]{display:none}.prep-advanced-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding-bottom:1rem;border-bottom:1px solid var(--line)}.prep-advanced-head h2{margin:.2rem 0}.prep-advanced-drawer .editor-controls{margin-top:1rem}.prep-advanced-drawer .editor-group:not([open]){background:var(--surface-soft)}
@media(max-width:650px){.prep-repair-callout .primary{width:100%}}
@media(max-width:650px){.prep-advanced-drawer{padding:1rem}.prep-advanced-head{display:grid}.prep-advanced-head button{width:100%}.prep-advanced-drawer .editor-group-body{padding-inline:.25rem}}
.invoice-link-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;margin:0 0 20px;padding:18px;border:1px solid #d8e2e8;border-radius:16px;background:#f7fafb}.invoice-link-panel h3,.invoice-link-panel .note{grid-column:1/-1;margin:0}.invoice-link-panel label{min-width:0}.invoice-link-panel select{width:100%}.invoice-return-mockup{margin-top:12px}@media(max-width:640px){.invoice-link-panel{grid-template-columns:1fr;padding:14px}.invoice-link-panel h3,.invoice-link-panel .note{grid-column:auto}.invoice-return-mockup{width:100%}}
/* Guided order workflow */
.order-guidance{background:var(--surface);border:2px solid var(--accent);border-radius:12px;padding:20px;margin:16px 0 24px}.order-guidance h3{margin:0 0 8px}.order-guidance>p{font-size:18px;margin:8px 0}.order-guidance>button{min-height:48px;white-space:normal;text-align:left}.order-progress{list-style:none;padding:0;margin:20px 0 0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.order-progress li{display:flex;flex-direction:column;gap:6px;padding:10px;background:var(--soft);border-radius:8px;font-size:14px}.order-progress li[data-state="Completed"] span{color:#176643}.order-progress li[data-state="Not needed"] span{color:var(--muted)}.order-progress-details{margin-top:12px;border-top:1px solid var(--line)}.order-progress-details>summary{display:flex;align-items:center;min-height:44px;padding:8px 0;cursor:pointer;font-weight:700}.order-progress-details[open]>summary{border-bottom:1px solid var(--line)}.order-placement-workflow{margin:16px 0;padding:16px;border:1px solid var(--line);border-radius:10px}.order-placement-workflow h4{font-size:18px;margin:0 0 10px}.order-placement-workflow button{min-height:48px;margin:6px 8px 6px 0;white-space:normal}.customer-artwork-preview{display:flex;flex-direction:column;gap:8px;margin-bottom:12px}.customer-artwork-preview img{width:100%;max-width:260px;max-height:240px;object-fit:contain;background:var(--soft);border-radius:8px}.customer-artwork-preview small,.order-design-details .order-final-preview p{overflow-wrap:anywhere}.customer-artwork-preview a{min-height:44px;display:flex;align-items:center}.order-design-details>details{margin:12px 0}.order-save-feedback{padding:12px;background:var(--soft);font-size:16px}.simple-checklist>summary,.order-workflow-sidebar>details>summary{font-weight:700;padding:12px 0;cursor:pointer}.pricing-review-actions details{padding:8px}.pricing-review-actions details summary{cursor:pointer;min-height:44px}.order-progress strong{letter-spacing:normal}.order-design-details>p{overflow-wrap:anywhere}
@media(max-width:650px){.order-progress{grid-template-columns:repeat(2,minmax(0,1fr))}.order-guidance{padding:16px}.order-guidance>button{width:100%}.order-placement-workflow>button{width:100%;margin:6px 0}.order-placement-workflow{padding:14px}.order-design-details>details button{max-width:100%;overflow-wrap:anywhere}}
.simple-event-setup{max-width:960px}.simple-event-setup label{display:flex;flex-direction:column;gap:.4rem;margin:.6rem 0;font-size:1rem;letter-spacing:0;text-transform:none}.simple-event-setup input,.simple-event-setup select,.simple-event-setup textarea{min-height:46px;width:100%;min-width:0}.event-option-list{display:grid;gap:1.2rem}.event-option-card{border:1px solid #b7ccd4;border-radius:14px;padding:1rem;min-width:0}.event-option-card .panel-head{flex-wrap:wrap;gap:.5rem}.event-option-pictures,.event-option-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.event-option-pictures img{width:100%;max-height:260px;object-fit:contain;border-radius:10px}.simple-event-setup .event-check{flex-direction:row;align-items:center;gap:.75rem}.simple-event-setup .event-check input{width:26px;min-height:26px}.event-size-row{display:grid;grid-template-columns:1fr 110px auto;align-items:center;gap:.6rem}.simple-event-setup .form-manager-actions{display:flex;flex-wrap:wrap;gap:.6rem}.simple-event-setup button{min-height:46px}.simple-event-setup details{margin:1rem 0}.simple-event-setup [role=status]{white-space:normal;overflow-wrap:anywhere}@media(max-width:600px){.event-option-pictures,.event-option-fields{grid-template-columns:1fr}.event-size-row{grid-template-columns:1fr 110px}.event-size-row button{grid-column:1/-1}.simple-event-setup{padding:1rem}.simple-event-setup .form-manager-actions>*{flex:1 1 160px}}

/* Inspector report extends the existing artwork analysis panel. */
#inspector .metric-grid small{display:block;font-size:.875rem;line-height:1.5;overflow-wrap:anywhere;color:var(--muted,#5a6b75)}
.inspector-dtf-summary{margin-top:20px;padding:18px;border:2px solid #326c80;border-radius:12px;background:#edf5f7}
.inspector-dtf-summary>label{display:block;font-size:.875rem;letter-spacing:.04em;line-height:1.5}
.inspector-dtf-summary>strong{display:block;font-size:1.35rem;line-height:1.5;overflow-wrap:anywhere}
.inspector-preferred{background:#edf5f7;font-weight:700}
#inspector .metric-grid>div{min-width:0}#inspector .metric-grid strong{overflow-wrap:anywhere}
@media(max-width:600px){#inspector .metric-grid{grid-template-columns:1fr 1fr}.inspector-dtf-summary{padding:14px}#inspector .statusbar{flex-wrap:wrap}#inspector .status-note{max-width:100%;overflow-wrap:anywhere}}

.editor-size-linked{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:12px;align-items:center}.editor-size-linked input{width:100%;min-width:0}.editor-size-linked label{min-width:0}@media(max-width:480px){.editor-size-linked{grid-template-columns:1fr}.editor-size-linked>span{text-align:center}}

.editor-frame-options{margin-top:16px}.editor-frame-options summary{padding:14px 0;cursor:pointer}.editor-stretch-confirm{display:flex;align-items:center;gap:12px;line-height:1.5}.editor-stretch-confirm input{width:24px;min-width:24px;height:24px}#editorStretchWarning{padding:16px;border:2px solid #b66b13;border-radius:12px;margin:12px 0}#editorStretchWarning[hidden]{display:none}

#editor>.editor-grid{grid-template-columns:minmax(0,1fr)}#editor>.editor-preview{margin-top:16px}#editor>.editor-export-bottom{margin-top:20px}.editor-export-bottom .editor-export{margin:0}

.gang-item-status{white-space:pre-line;line-height:1.65}.gang-item-body>strong{overflow-wrap:anywhere}.gang-item-controls input{min-height:44px}.gang-item-actions button{min-height:44px}

.gang-readiness{background:var(--soft);border:1px solid var(--line);padding:16px;border-radius:12px;margin-bottom:16px}.gang-readiness h3{margin:0 0 8px}.gang-readiness p{margin:8px 0;line-height:1.5}.gang-readiness strong{overflow-wrap:anywhere}

.ref-ratio-demo{display:flex;flex-wrap:wrap;gap:20px;align-items:end}.ref-ratio-demo figure{margin:0;text-align:center;max-width:150px}.ref-ratio-demo figure>div{display:grid;place-items:center;background:#e5f2f4;border:2px solid #326d82;border-radius:8px;font-weight:700;margin:0 auto 10px}.ref-ratio-demo .distorted{background:#fff3dc;border-style:dashed}.ref-ratio-demo figcaption{font-size:.9rem;line-height:1.5}

/* Artwork safeguards: readable, tappable controls on narrow screens. */
@media(max-width:600px){
 #editor input:not([type=checkbox]):not([type=range]),#editor select,#gang input:not([type=checkbox]),#gang select{font-size:16px;min-width:0;max-width:100%}
 #editor button,#gang button,#reference .ref-chip,#reference .ref-check{min-height:44px}
 #gang .gang-quality-confirm{min-height:44px;align-items:center}
 #gang .gang-quality-confirm input{width:24px;height:24px}
 #gang .gang-item-status,#editor [role=status]{overflow-wrap:anywhere}
 #reference .ref-formulas,#reference .ref-definition-grid{grid-template-columns:1fr}
 #promptLibrary .heading{flex-wrap:wrap;gap:12px}
 #promptLibrary .heading .prompt-home-actions{width:100%;display:flex;flex-wrap:wrap;gap:10px}
 #promptLibrary .heading .prompt-home-actions>*{flex:1 1 150px;min-height:44px;text-align:center}
}

.gang-drafts{margin-bottom:20px}.gang-drafts summary{cursor:pointer;min-height:44px;font-weight:700}.gang-drafts label{display:block;margin:12px 0}.gang-drafts input,.gang-drafts select{width:100%;min-height:44px;font-size:16px}.gang-drafts button{min-height:44px;margin:4px}.gang-drafts [role=status]{overflow-wrap:anywhere}

.gang-export-review[hidden]{display:none}.gang-export-review p{overflow-wrap:anywhere}.gang-export-review button{min-height:44px;margin:8px 8px 0 0}.gang-export-review{scroll-margin-top:16px}

.gang-recovery [hidden]{display:none}.gang-recovery p{overflow-wrap:anywhere}.gang-recovery button,.gang-recovery summary{min-height:44px}.gang-recovery button{margin:8px 8px 0 0}

.gang-preview-toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.gang-preview-toolbar button{min-width:44px;min-height:44px}.gang-preview-toolbar button[aria-pressed="true"]{background:var(--accent);color:#fff}#gangPreviewViewport{height:clamp(320px,60vh,620px);max-height:none;touch-action:none;overscroll-behavior:contain;text-align:left;cursor:grab;box-sizing:border-box}#gangPreviewStage{position:relative;min-width:100%;min-height:100%}#gangCanvas{max-width:none;margin:0;touch-action:none}#gangZoomStatus{min-width:48px;text-align:center}

/* Small-shop event and collection editor */
.shop-editor{max-width:1000px;margin:auto}.shop-editor input,.shop-editor select,.shop-editor textarea{width:100%;max-width:100%;min-height:44px;font-size:16px}.shop-editor label{display:block;margin:12px 0}.shop-editor label input[type=checkbox]{width:20px;min-height:20px;margin:0;flex:0 0 20px}.shop-editor .shop-check{display:flex;align-items:center;gap:10px;text-transform:none;font-size:15px;line-height:1.4}.shop-steps{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.shop-steps button{flex:1;min-height:48px}.shop-step{margin:16px 0}.shop-more{border:1px solid var(--border,#ccd6df);padding:16px;margin:16px 0;border-radius:12px}.shop-more>summary{cursor:pointer;font-size:16px;font-weight:650;min-height:32px}.shop-choices{display:flex;flex-wrap:wrap;gap:8px 20px;border:0;padding:0}.shop-choices legend{width:100%;font-weight:650}.shop-choices .shop-check{min-width:100px}.shop-choices>label:not(.shop-check){flex-basis:100%}.shop-size-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;border-bottom:1px solid var(--border,#ccd6df);padding:8px 0}.shop-size-row>.shop-check{min-width:110px}.shop-size-row>label:not(.shop-check){max-width:140px}.shop-size-row span{font-size:14px}.shop-product-list{display:grid;gap:16px;margin-top:20px}.shop-product-card{display:grid;grid-template-columns:160px minmax(0,1fr);gap:20px;padding:18px;border:1px solid var(--border,#ccd6df);border-radius:12px}.shop-photo{height:180px;max-width:100%;display:flex;align-items:center;justify-content:center;background:#f3f5f7;border-radius:10px;overflow:hidden;color:#334655;text-align:center}.shop-photo img{width:100%;height:100%;object-fit:contain}.shop-photo .shop-photo{width:100%;height:100%}.shop-product-edit{grid-column:1/-1;padding-top:16px;border-top:1px solid var(--border,#ccd6df)}.shop-product-edit>.shop-photo{max-width:350px}.shop-cover>.shop-photo{max-width:350px;height:220px}.shop-picker{border:1px solid var(--border,#ccd6df);padding:16px;border-radius:12px;margin:16px 0}.shop-picker-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}.shop-picker-grid article{min-width:0;border:1px solid var(--border,#ccd6df);border-radius:10px;padding:12px}.shop-picker-grid .shop-photo{height:140px}.shop-filters{display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px}.shop-review-card{margin:20px 0;border:1px solid var(--border,#ccd6df);border-radius:12px;padding:16px}.shop-review-card .shop-photo{max-width:320px}.shop-review-card table{width:100%;border-collapse:collapse;font-size:15px}.shop-review-card td,.shop-review-card th{text-align:left;padding:10px 6px;border-bottom:1px solid var(--border,#ccd6df)}.shop-bottom{padding-top:16px}.shop-editor h3,.shop-editor p,.shop-editor button{overflow-wrap:anywhere}.shop-editor button{min-height:44px}.shop-editor .form-manager-actions{display:flex;gap:8px;flex-wrap:wrap}.shop-editor [hidden]{display:none!important}@media(max-width:600px){.shop-product-card{grid-template-columns:100px minmax(0,1fr);gap:12px;padding:12px}.shop-product-card>.shop-photo{height:130px}.shop-product-edit{grid-column:1/-1}.shop-picker-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.shop-filters{grid-template-columns:1fr}.shop-steps button{font-size:14px;padding:10px;min-width:90px}.shop-more{padding:12px}.shop-review-card{padding:12px}.shop-review-card td,.shop-review-card th{font-size:13px;padding:8px 3px}.shop-editor .form-manager-actions button{flex:1 1 110px}}

.editor-placement-sizing{margin:12px 0}.editor-placement-sizing label{display:block}.editor-placement-sizing select{display:block;width:100%;min-height:44px;font-size:16px;margin-top:6px}.editor-placement-sizing .note{margin:6px 0;overflow-wrap:anywhere}

.product-mockup-dialog{width:min(1280px,96vw);max-width:96vw;max-height:95dvh;overflow:auto;border:1px solid var(--line);border-radius:12px;padding:18px;background:var(--surface);color:var(--ink)}.product-mockup-dialog::backdrop{background:#172531b3}.product-mockup-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;background:var(--surface);padding-bottom:16px}.product-mockup-actions h2,.product-mockup-actions p{flex-basis:100%;margin:0}.product-mockup-dialog .heading,.product-mockup-dialog .order-block,.product-mockup-dialog .preflight,.product-mockup-dialog .mock-info,.product-mockup-dialog #savePreset,.product-mockup-dialog #presetText,.product-mockup-dialog #mockUseInspector,.product-mockup-dialog #mockUseEditor{display:none}.product-mockup-dialog .mock-grid{margin-top:0}@media(max-width:700px){.product-mockup-dialog{padding:12px;width:98vw;max-width:98vw}.product-mockup-actions button{flex:1 1 44%}}

.customer-preview-dialog{width:min(1000px,96vw);max-width:96vw;height:92dvh;max-height:92dvh;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);overflow:hidden}.customer-preview-dialog::backdrop{background:#172531b3}.customer-preview-dialog iframe{display:block;width:100%;height:calc(100% - 58px);border:0;margin-top:10px;background:white}.customer-preview-dialog button{min-height:44px}

.dashboard-featured-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0}.dashboard-shortcut{display:flex;align-items:center;gap:10px;text-align:left;padding:12px;border:2px solid transparent;border-radius:12px;font-size:16px;font-weight:700;min-height:64px;line-height:1.3;overflow-wrap:anywhere}.shortcut-forms{background:#e6f1fb;color:#16476d;border-color:#bbd6ed}.shortcut-mockups{background:#f0eafa;color:#593580;border-color:#d6c4ed}.shortcut-purchasing{background:#e7f4ec;color:#235d3a;border-color:#a6d4b7}.dashboard-shortcut-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;flex:none;font-size:20px;background:#fff}.dashboard-shortcut:hover{filter:brightness(.97)}.dashboard-shortcut:focus-visible{outline:3px solid var(--accent);outline-offset:3px}@media(max-width:600px){.dashboard-featured-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.dashboard-shortcut{display:grid;justify-items:center;text-align:center;min-height:84px;padding:10px;gap:6px;font-size:16px}}
/* Compact print-size management; isolated from artwork resize controls. */
.print-size-manager{width:min(560px,calc(100vw - 24px));max-height:85dvh;overflow:auto;border:1px solid #c6d7df;border-radius:18px;padding:20px;background:#fff;color:#192d39;box-sizing:border-box}
.print-size-manager::backdrop{background:rgba(10,25,35,.55)}
.size-manager-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.size-manager-head h2{font-size:1.4rem;margin:0}
.print-size-manager button,.print-size-manager input,.print-size-manager select{min-height:44px;font-size:16px;box-sizing:border-box}.print-size-manager input:not([type=checkbox]),.print-size-manager select{width:100%}.print-size-manager form label{display:block;margin:12px 0}.print-size-manager .size-check{display:flex;align-items:center;gap:12px;min-height:48px}.size-check input{width:24px;min-width:24px;height:24px;min-height:24px}
.size-preset-card{border:1px solid #d2dfe6;border-radius:12px;padding:14px;margin:12px 0;overflow-wrap:anywhere}.size-preset-card p{margin:6px 0 12px}.size-manager-actions{display:flex;flex-wrap:wrap;gap:10px}.size-manager-actions button{flex:1;min-width:130px}.size-preset-card details{margin-top:10px}.size-preset-card summary,.size-shop-defaults>summary{min-height:44px;cursor:pointer;padding:10px 0}.size-shop-defaults{margin-top:20px}.print-size-manager [hidden]{display:none!important}#sizeManagerStatus:empty{display:none}#sizeManagerStatus{font-size:1rem;overflow-wrap:anywhere}
@media(max-width:600px){.print-size-manager{width:calc(100vw - 16px);margin:auto auto 8px;max-height:90dvh;padding:16px}.size-manager-head h2{font-size:1.2rem}.size-manager-head button{padding:10px 14px}}

.shortcut-color-test{background:#fff0da;color:#784507;border-color:#edc891}.shortcut-color-test .dashboard-shortcut-icon{color:#a45800}

/* Dashboard: operational priorities first, with secondary tools kept close by. */
#dashboard .dashboard-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:22px 0 8px}
#dashboard .dashboard-section-head h2{font-size:1.15rem;margin:0}
#dashboard .manager-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:10px 0}
#dashboard .manager-card{min-width:0;min-height:118px;padding:16px;gap:7px;transition:border-color .15s,box-shadow .15s}
#dashboard .manager-card:hover{border-color:var(--accent);box-shadow:0 3px 12px #17344412}
#dashboard .manager-card:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
#dashboard .manager-card span{font-weight:650;line-height:1.3}
#dashboard .manager-card strong{font-size:30px;line-height:1}
#dashboard .manager-card small{font-size:13px;line-height:1.35;color:var(--muted)}
#dashboard .dashboard-attention{display:grid;gap:0;margin:4px 0 22px}
#dashboard .dashboard-order-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-top:1px solid var(--line)}
#dashboard .dashboard-order-row>div{min-width:0}
#dashboard .dashboard-order-row strong{display:block;overflow-wrap:anywhere}
#dashboard .dashboard-order-row p{margin:4px 0 0;color:var(--muted);font-size:14px;line-height:1.4;overflow-wrap:anywhere}
#dashboard .dashboard-order-row button{min-height:44px;flex:0 0 auto}
#dashboard .dashboard-empty{margin:8px 0 16px;color:var(--muted)}
#dashboard .dashboard-view-all{justify-self:start;margin-top:8px;min-height:44px}
#dashboard .dashboard-columns{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:16px}
#dashboard .dashboard-panel{min-width:0;margin:0;padding:18px}
#dashboard .dashboard-panel .panel-head{gap:10px;flex-wrap:wrap}
#dashboard .dashboard-panel .panel-head h2{margin:0;font-size:1.05rem}
#dashboard .dashboard-tools{margin-top:16px;border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:0 16px}
#dashboard .dashboard-tools{margin:12px 0 20px}
#dashboard .dashboard-tools>.panel-head{margin:0;padding:12px 0 4px;border:0}
#dashboard .dashboard-tools>.panel-head h2{margin:0;font-size:1.05rem}
#dashboard .dashboard-tools>summary{min-height:48px;display:flex;align-items:center;cursor:pointer;font-weight:650}
#dashboard .dashboard-tools[open]>summary{border-bottom:1px solid var(--line)}
#dashboard .dashboard-tools .dashboard-featured-shortcuts{grid-template-columns:repeat(3,minmax(0,1fr));margin:8px 0 14px}
#dashboard .shortcut-artwork{background:#f9deea;color:#782849;border-color:#e3a1bd}
#dashboard .shortcut-invoice{background:#e8f0f2;color:#254d5e;border-color:#bfd1d8}
@media(max-width:850px){#dashboard .manager-summary{grid-template-columns:repeat(2,minmax(0,1fr))}#dashboard .dashboard-columns{grid-template-columns:1fr}}
@media(max-width:600px){#dashboard .dashboard-section-head{align-items:flex-start;flex-direction:column;gap:3px;margin-top:18px}#dashboard .manager-summary{gap:8px;margin:8px 0}#dashboard .manager-card{min-height:106px;padding:12px}#dashboard .manager-card strong{font-size:27px}#dashboard .manager-card small{font-size:12px}#dashboard .dashboard-order-row{align-items:flex-start;gap:10px}#dashboard .dashboard-order-row button{padding:10px;min-width:76px}#dashboard .dashboard-panel{padding:14px}#dashboard .dashboard-tools{padding:0 12px}#dashboard .dashboard-tools .dashboard-featured-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#dashboard .dashboard-shortcut{min-height:72px;font-size:14px}}

.dashboard-prepare-artwork{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:72px;padding:18px;margin:14px 0 18px;border:2px solid #e3a1bd;border-radius:14px;background:#f9deea;color:#782849;font-size:22px;font-weight:800;line-height:1.3;box-sizing:border-box}.dashboard-prepare-artwork:hover{background:#f5cfdf}.dashboard-prepare-artwork:focus-visible{outline:3px solid #782849;outline-offset:3px}

.editor-size-quick{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.editor-size-quick button{min-height:44px;overflow-wrap:anywhere}.editor-placement-sizing select{width:100%;min-height:44px;font-size:16px}
.gang-size-presets{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}.gang-size-presets label{display:flex;flex-direction:column;gap:6px}.gang-size-presets select{min-height:44px;width:100%;max-width:100%}.gang-size-presets small{grid-column:1/-1}@media(max-width:600px){.gang-size-presets{grid-template-columns:1fr}}
.invoice-school-pricing{grid-column:1/-1;padding:14px;border:1px solid #cad9e0;border-radius:12px;margin:12px 0}.invoice-school-pricing label{display:flex;flex-direction:column;gap:6px;margin:10px 0}.invoice-school-pricing .school-toggle,.school-line-toggle{display:flex;flex-direction:row;align-items:center;gap:10px;min-height:44px}.school-toggle input,.school-line-toggle input{width:24px!important;height:24px;flex:none}.school-line-detail,.school-line-toggle{grid-column:1/-1}.school-line-detail{white-space:normal;overflow-wrap:anywhere}

.drive-artwork-dialog{width:min(92vw,640px);max-height:85vh;border:1px solid #cbd5df;border-radius:18px;padding:24px;overflow:auto}.drive-artwork-dialog::backdrop{background:#16232ac9}.drive-artwork-dialog input{width:100%;min-height:44px;margin:12px 0}.drive-artwork-list{display:grid;gap:12px}.drive-artwork-card{display:grid;gap:10px;border:1px solid #dce4e9;border-radius:12px;padding:14px}.drive-artwork-card strong,.drive-artwork-card small{overflow-wrap:anywhere}.drive-artwork-card button{min-height:44px}

/* DTF color-test sizing extends the existing settings, without source edits. */
.color-test-print-size{flex:1 1 260px;min-width:0}.color-test-print-size select{max-width:100%;width:100%}.color-test-print-size input{width:100%;min-height:44px}.color-test-print-size p{letter-spacing:normal;overflow-wrap:anywhere;font-size:14px}.color-test-print-size [hidden]{display:none}.size-invalid{color:#b42318!important}.color-test-settings>label{min-width:0}
@media(max-width:700px){.color-test-settings{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch}.color-test-print-size{width:100%}.color-test-settings select{max-width:100%}}

#mockPrintSizePreset{width:100%;min-width:0;max-width:100%}#mockPrintSizeSummary,#mockPrintSizeError{overflow-wrap:anywhere;font-size:14px}#mockPrintSizeError{color:#b42318}

#businessFilesHost{display:grid;gap:14px}#businessFilesHost label{display:grid;gap:8px}#businessFilesHost select,#businessFilesHost input{width:100%;min-width:0;min-height:44px;font:inherit}#businessFilesHost .drive-artwork-card{min-width:0}

/* Prepare Artwork: SVG workflow shares existing panels and export tools. */
#prepArtworkTabs{margin:0 0 18px;display:flex;flex-wrap:wrap}#prepArtworkTabs [aria-selected="true"]{background:#173444;color:#fff}#vectorArtworkHost h2{margin-top:24px}#vectorArtworkHost .prep-preview{max-height:340px;min-height:140px}#vectorArtworkHost .prep-preview img{max-height:320px;object-fit:contain}#vectorArtworkHost input,#vectorExportHost input{font-size:16px;max-width:100%;min-width:0}#vectorExportHost{border-bottom:2px solid #bdcbd2;padding-bottom:24px;margin-bottom:24px}#vectorArtworkHost .prep-fields{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}#vectorArtworkHost .prep-metrics strong{overflow-wrap:anywhere}#vectorArtworkHost[hidden],#vectorExportHost[hidden],#artworkPrepHost[hidden]{display:none!important}@media(max-width:520px){#prepArtworkTabs button{flex:1 1 140px;white-space:normal}#vectorArtworkHost .prep-actions button,#vectorExportHost .prep-actions button{white-space:normal;max-width:100%}.vector-export .prep-actions{flex-wrap:wrap}}

#group-export.svg-export-active .editor-group-body > :not(#vectorExportHost){display:none!important}

#editor.svg-prepared-export .editor-upload,#editor.svg-prepared-export .art-source-secondary,#editor.svg-prepared-export .editor-preview,#editor.svg-prepared-export .editor-toolbar,#editor.svg-prepared-export .editor-rec,#editor.svg-prepared-export .editor-controls > :not(#group-export),#editor.svg-prepared-export .editor-grid > :not(.editor-controls){display:none!important}#vectorExportPreview{max-height:220px;object-fit:contain;width:100%}#editor.svg-prepared-export .editor-grid{grid-template-columns:1fr}

/* Navigation hierarchy: one primary area, one compact page list. */
.sidebar{position:sticky;top:0;align-self:flex-start;max-height:100vh;overflow-y:auto;overscroll-behavior:contain}
.sidebar .brand{margin-bottom:20px}
.sidebar .workspace-main-nav{display:flex;flex-direction:column;flex-wrap:nowrap;gap:4px;padding-bottom:12px}
.sidebar .workspace-tab{width:100%;min-height:44px;padding:10px 13px;text-align:left;white-space:normal}
.sidebar .workspace-subnav{display:flex;flex-direction:column;align-items:stretch;gap:4px;padding:12px 0;margin-left:8px;border-top:0;border-left:1px solid #b8cfd9;border-radius:0;background:transparent}
.sidebar .workspace-subnav .nav{width:100%;min-height:42px;padding:9px 12px;background:transparent;box-shadow:none}
.sidebar .workspace-subnav .nav.active{background:#166b83;color:#fff;box-shadow:inset 3px 0 #75deec}
.sidebar .workspace-tab:focus-visible,.sidebar .workspace-subnav .nav:focus-visible{outline:3px solid #75deec;outline-offset:2px}
@media(min-width:851px){
  .app{display:flex}
  .sidebar{width:234px;flex:0 0 234px;padding:24px 12px}
  .sidebar .brand{margin:0 10px 20px}
}
@media(max-width:850px){
  .app{display:block}
  .sidebar{position:sticky;top:0;z-index:30;width:auto;max-height:none;overflow:visible;padding:10px 16px 8px;box-shadow:0 3px 12px #17344418}
  .sidebar .brand{margin:0 0 8px}
  .sidebar .workspace-main-nav,.sidebar .workspace-subnav{display:flex;flex-direction:row;flex-wrap:nowrap;gap:6px;overflow-x:auto;overflow-y:hidden;max-width:100%;scrollbar-width:thin;overscroll-behavior-x:contain}
  .sidebar .workspace-main-nav{padding:0 0 8px;margin:0}
  .sidebar .workspace-tab{flex:0 0 auto;width:auto;min-height:44px;padding:10px 13px;white-space:nowrap}
  .sidebar .workspace-subnav{padding:7px 0 2px;margin:0;border:0;border-top:1px solid #b8cfd9;border-radius:0;background:transparent}
  .sidebar .workspace-subnav .nav{flex:0 0 auto;width:auto;min-height:44px;padding:9px 12px;white-space:nowrap;background:#fff;box-shadow:inset 0 0 0 1px #c3d7df}
  .sidebar .workspace-subnav .nav.active{background:#166b83;color:#fff;box-shadow:inset 0 -3px #75deec}
}
@media(max-width:420px){
  .sidebar{padding-left:12px;padding-right:12px}
  .sidebar .workspace-tab{padding-left:11px;padding-right:11px;font-size:14px}
}

/* Orders list: show the decision context before a user opens a record. */
#orders .orders-row{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"main badges" "meta meta" "next next";align-items:start;gap:10px 16px;min-height:0;padding:15px 16px;border-radius:12px;}
#orders .orders-row-main{grid-area:main;grid-template-columns:auto minmax(0,1fr) auto;align-items:baseline;gap:5px 10px;}
#orders .orders-row-main strong{font-size:15px;white-space:nowrap;}
#orders .orders-row-customer{font-size:16px;font-weight:700;line-height:1.35;}
#orders .orders-row-main .new-order-label{grid-column:3;grid-row:1;}
#orders .orders-row-badges{grid-area:badges;display:flex;justify-content:flex-end;gap:6px;flex-wrap:wrap;min-width:0;}
#orders .orders-status{white-space:normal;line-height:1.25;text-align:center;}
#orders .orders-stage[data-status="Pending My Approval"],#orders .orders-stage[data-status="Pending Customer Approval"]{background:#fff3df;color:#704500;}
#orders .orders-stage[data-status="Pending Design"]{background:#eaf2fa;color:#244e72;}
#orders .orders-stage[data-status="Pending Mockup"]{background:#f0eafa;color:#57377b;}
#orders .orders-stage[data-status="Ready to Work"]{background:#e8f4eb;color:#235e3a;}
#orders .orders-stage[data-status="Completed"]{background:#edf1f3;color:#45545c;}
#orders .orders-stage[data-status="Cancelled"]{background:#f7eaea;color:#742e2e;}
#orders .orders-payment{background:#f1f4f5;color:#344b56;}
#orders .orders-row-meta{grid-area:meta;display:flex;gap:6px 16px;flex-wrap:wrap;font-size:13px;}
#orders .orders-item-summary{font-weight:650;color:var(--ink);}
#orders .orders-row-item{flex:1 1 100%;font-size:13px;line-height:1.4;color:var(--ink);}
#orders .orders-row-more{flex:1 1 100%;font-size:12px;font-weight:700;color:var(--muted);}
#orders .orders-due-summary{width:max-content;max-width:100%;padding:4px 9px;border-radius:999px;background:#edf3f5;color:#344b56;font-weight:750;line-height:1.35;}
#orders .orders-due-summary[data-urgency="overdue"]{background:#fbe9e7;color:#8a2924;}
#orders .orders-due-summary[data-urgency="today"],#orders .orders-due-summary[data-urgency="soon"]{background:#fff3df;color:#704500;}
#orders .orders-due-summary[data-urgency="closed"],#orders .orders-due-summary[data-urgency="none"]{background:#f1f4f5;color:#53636b;}
#orders .orders-row-next{grid-area:next;display:flex;gap:7px;align-items:baseline;padding-top:8px;border-top:1px solid var(--line);line-height:1.35;}
#orders .orders-row-next-label{color:var(--muted);font-size:12px;flex:none;}
#orders .orders-row-next-value{font-size:14px;overflow-wrap:anywhere;}
#orders .orders-detail-line{border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:16px;margin:0;}
#orders .orders-detail-line-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:8px 12px;}
#orders .orders-detail-heading-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;min-width:0;}
#orders .orders-detail-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
#orders .orders-detail-actions button{min-height:44px;}
#orders .orders-section-head{align-items:flex-start;}
#orders .orders-item-number{font-size:11px;font-weight:800;letter-spacing:.08em;color:var(--muted);white-space:nowrap;}
#orders .orders-detail-item-title{font-size:17px!important;font-weight:750;margin:0!important;overflow-wrap:anywhere;}
#orders .orders-detail-item-quantity{color:var(--accent);font-size:14px;white-space:nowrap;}
#orders .orders-item-stage{justify-self:end;max-width:100%;}
#orders .orders-item-brand{margin:4px 0 0!important;color:var(--muted);font-size:14px;}
#orders .orders-section-head h2{font-size:20px;line-height:1.35;}
#orders #orderDetailStatus{max-width:100%;}
#orders .order-back{min-height:44px;}
@media(max-width:700px){
 #orders .orders-row{grid-template-columns:minmax(0,1fr);grid-template-areas:"main" "badges" "meta" "next";gap:9px;padding:13px;}
 #orders .orders-row-main{grid-template-columns:auto minmax(0,1fr) auto;}
 #orders .orders-row-badges{justify-content:flex-start;}
 #orders .orders-row-meta{display:grid;grid-template-columns:1fr;gap:4px;}
 #orders .orders-row-next{align-items:flex-start;flex-direction:column;gap:3px;}
 #orders .orders-detail-line-head{grid-template-columns:minmax(0,1fr) auto;gap:5px 10px;}
 #orders .orders-item-number{grid-column:1/-1;}
 #orders .orders-detail-item-title{grid-column:1;}
 #orders .orders-detail-item-quantity{grid-column:2;grid-row:2;}
 #orders .orders-item-stage{grid-column:1/-1;grid-row:3;justify-self:start;}
 #orders .orders-detail-heading-actions{width:100%;justify-content:flex-start;}
 #orders .orders-detail-actions{width:100%;}
 #orders .orders-detail-actions button{flex:1 1 130px;}
 #orders .orders-section-head{align-items:flex-start;}
 #orders .orders-section-head h2{font-size:18px;}
}

/* Put the print-readiness answer before technical Inspector detail. */
#inspector .target-panel{border:2px solid var(--accent);box-shadow:0 5px 18px #102a3512}
#inspector .target-panel .panel-head{margin-bottom:12px}
#inspector .target-panel .panel-head h2{font-size:20px}
.target-verdict[data-quality=poor],.target-verdict[data-quality=risky]{background:#fff0ec;color:#8f3028}
.target-verdict[data-quality=usable]{background:#fff7e3;color:#765600}

/* Keep the live Before / After comparison beside long editing sessions. */
#editor .editor-preview{position:sticky;top:0;z-index:8;padding:14px;background:var(--surface);box-shadow:0 8px 18px #102a3514}
#editor .editor-preview .panel-head{margin-bottom:8px}
#editor .editor-preview .preview-backgrounds{margin-bottom:8px;gap:6px}
#editor .editor-preview .comparison-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#editor .editor-preview .editor-checker{height:clamp(155px,24vh,220px)}
#editor .editor-preview .editor-actions{gap:6px;margin-top:10px}
@media(max-width:680px){#editor .editor-preview{padding:10px}#editor .editor-preview .editor-checker{height:clamp(125px,18vh,155px)}#editor .editor-preview .editor-actions{margin-top:6px}#editor .editor-preview .editor-actions button{flex:1 1 120px;padding:8px 10px}#editor .editor-preview .note{margin:6px 0 0;font-size:.82rem;line-height:1.35}}

/* Keep the editor comparison visible without taking over short phone viewports. */
@media(max-width:680px) and (max-height:760px){#editor .editor-preview .editor-checker{height:clamp(92px,14vh,112px)}#editor .editor-preview .editor-actions button{min-height:40px}}

/* Keep front/back switching within reach while browsing the tall mobile mockup. */
@media(max-width:700px){#mockup .mock-preview>.view-tabs{position:sticky;top:0;z-index:18;padding:8px 0;background:var(--surface);border-bottom:1px solid var(--line)}#mockup .mock-preview>.view-tabs button{flex:1;min-height:44px}}

/* Show a concise count before the order rows so the active queue is immediately scannable. */
#orderWorkQueues .queue-count{margin:0 0 12px;color:var(--muted);font-size:14px;font-weight:650;line-height:1.4}

/* Make the editor's destructive reset distinct from routine preview actions. */
#editor .editor-danger-action{background:#fff0ed;color:#922f27;border:1px solid #e4b4ad}
#editor .editor-danger-action:hover:not(:disabled),#editor .editor-danger-action:focus-visible{background:#ffe2dc;border-color:#bd6b5f}
body[data-theme=night] #editor .editor-danger-action{background:#4a2d31;color:#ffd5ce;border-color:#86565b}
body[data-theme=night] #editor .editor-danger-action:hover:not(:disabled),body[data-theme=night] #editor .editor-danger-action:focus-visible{background:#5b353a;border-color:#ba787d}
/* Keep event deletion visible as a destructive action while retaining the shared button sizing. */
.form-manager-actions .delete-event{color:#a32121;border-color:#d89a9a;background:#fff7f7}
.form-manager-actions .delete-event:hover{color:#741818;border-color:#b85b5b;background:#ffeded}

/* Order form manager: keep every event shortcut visible while making each card scannable. */
#orderFormManager .form-manager-section{margin-block:20px}
#orderFormManager .form-manager-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
#orderFormManager .form-manager-card-heading h3{font-size:1.15rem;line-height:1.3;margin:0}
#orderFormManager .general-order-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(170px,240px) auto;align-items:center;gap:14px}
#orderFormManager .general-order-card .form-manager-card-heading{align-items:center}
#orderFormManager .general-order-card label{max-width:none;margin:0;display:grid;gap:6px}
#orderFormManager .general-order-card select{font:inherit;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:7px;padding:10px 12px;min-height:44px;width:100%}
#orderFormManager .event-manager-card{padding:20px 0;border-top:1px solid var(--line,#d8e1e5)}
#orderFormManager .event-manager-badges{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
#orderFormManager .event-manager-badges .tag{white-space:nowrap}
#orderFormManager .event-manager-badges .status-tag.is-active{color:#185a3b;background:#eaf6ef;border-color:#b9ddc7}
#orderFormManager .event-manager-badges .status-tag.is-inactive{color:#5d6870;background:#f0f2f3;border-color:#d7dde0}
#orderFormManager .event-manager-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0}
#orderFormManager .event-manager-fact{min-width:0;padding:10px 12px;border-radius:9px;background:var(--surface-soft,#f5f7f8)}
#orderFormManager .event-manager-fact dt{font-size:.72rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);margin-bottom:4px}
#orderFormManager .event-manager-fact dd{margin:0;overflow-wrap:anywhere;font-weight:600}
#orderFormManager .event-manager-customer-link{padding:12px 14px;border:1px solid var(--line,#d8e1e5);border-radius:10px;background:var(--surface-soft,#f8fafb);margin:12px 0}
#orderFormManager .event-manager-customer-link>a{display:inline-flex;align-items:center;min-height:44px;font-weight:700}
#orderFormManager .event-manager-customer-link p{margin:4px 0;overflow-wrap:anywhere}
#orderFormManager .event-manager-actions{margin-top:14px;gap:8px}
#orderFormManager .event-manager-actions button{min-height:44px}
#orderFormManager .form-manager-empty{padding:18px;border:1px dashed var(--line,#c8d4da);border-radius:10px;background:var(--surface-soft,#f8fafb)}
#orderFormManager .form-manager-empty p{margin:4px 0}
#orderFormManager .form-manager-master{margin:18px 0;padding:14px;border:1px solid var(--line,#d8e1e5);border-radius:10px}
#orderFormManager .form-manager-master>summary{cursor:pointer;font-weight:700;min-height:30px}
@media(max-width:760px){
 #orderFormManager .general-order-card{grid-template-columns:minmax(0,1fr) minmax(130px,180px)}
 #orderFormManager .general-order-card>button{grid-column:1/-1;width:100%}
 #orderFormManager .event-manager-meta{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:520px){
 #orderFormManager .general-order-card{grid-template-columns:1fr;align-items:stretch}
 #orderFormManager .general-order-card .form-manager-card-heading{justify-content:space-between}
 #orderFormManager .general-order-card>button{grid-column:auto}
 #orderFormManager .event-manager-card{padding:16px 0}
 #orderFormManager .event-manager-meta{gap:8px}
 #orderFormManager .event-manager-fact{padding:9px}
 #orderFormManager .event-manager-actions button{flex:1 1 145px}
 #orderFormManager .event-manager-customer-link{padding:10px}
}

/* Keep event setup actions and save feedback in reach on long product/review screens. */
.shop-bottom>[role="status"]{flex:1 0 100%;min-height:1.25em;margin:0;overflow-wrap:anywhere}
@media(max-width:600px){
 .simple-event-setup{padding-bottom:calc(12px + env(safe-area-inset-bottom))}
 .shop-editor .shop-bottom{position:sticky;bottom:0;z-index:25;display:flex;gap:8px;margin:12px -1rem -1rem;padding:12px 1rem calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--border,#ccd6df);background:rgba(255,255,255,.96);box-shadow:0 -8px 24px rgba(25,43,53,.12);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
 .shop-editor .shop-bottom>[role="status"]{flex-basis:100%;font-size:.88rem}
 .shop-editor .shop-bottom button{flex:1 1 calc(50% - 8px);min-width:0;min-height:48px}
 .shop-editor .shop-bottom[data-step="0"] button{flex-basis:calc(50% - 8px)}
}

/* Review screen: identify the offering first, then verify each product and its prices. */
.shop-review-summary{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,320px);align-items:center;gap:20px;padding:18px;border:1px solid var(--border,#ccd6df);border-radius:14px;background:var(--surface-soft,#f8fafb)}
.shop-review-intro h3{margin:0 0 8px;font-size:1.35rem;line-height:1.25;overflow-wrap:anywhere}
.shop-review-intro>.tag{display:inline-flex;margin-bottom:8px}
.shop-review-intro p{margin:5px 0}
.shop-review-preview{margin-top:10px;min-height:46px;font-weight:650}
.shop-review-cover .shop-photo{height:190px}
.shop-review-card{display:grid;grid-template-columns:minmax(150px,220px) minmax(0,1fr);gap:18px;align-items:start}
.shop-review-card>.shop-review-visual .shop-photo{height:190px}
.shop-review-item-heading{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.shop-review-item-heading h4{font-size:1.1rem;line-height:1.3;margin:0;overflow-wrap:anywhere}
.shop-review-index{font-size:.75rem;font-weight:750;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.shop-review-garment{margin:6px 0 12px;font-weight:650}
.shop-review-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0 18px}
.shop-review-choices>div{min-width:0;padding:9px 10px;border-radius:9px;background:var(--surface-soft,#f5f7f8)}
.shop-review-choices dt,.shop-review-size dt{font-size:.72rem;font-weight:700;letter-spacing:.035em;text-transform:uppercase;color:var(--muted)}
.shop-review-choices dd,.shop-review-size dd{margin:4px 0 0;overflow-wrap:anywhere}
.shop-review-pricing h5{font-size:.95rem;margin:0 0 10px}
.shop-review-size-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:8px}
.shop-review-size{min-width:0;padding:10px 12px;border:1px solid var(--border,#d4dde2);border-radius:10px}
.shop-review-size h6{font-size:.95rem;margin:0 0 8px}
.shop-review-size dl{display:grid;gap:5px;margin:0}
.shop-review-size dl>div{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.shop-review-size .shop-review-total{padding-top:6px;margin-top:2px;border-top:1px solid var(--border,#d4dde2);font-weight:750}
.shop-review-size .shop-review-total dd{font-size:1.05rem}
.shop-open-published{display:inline-flex;align-items:center;min-height:44px;margin:8px 0}
@media(max-width:700px){
 .shop-review-summary{grid-template-columns:minmax(0,1fr) minmax(130px,38%);gap:12px;padding:14px}
 .shop-review-cover .shop-photo{height:150px}
 .shop-review-card{grid-template-columns:120px minmax(0,1fr);gap:12px;padding:12px}
 .shop-review-card>.shop-review-visual .shop-photo{height:145px}
 .shop-review-choices{grid-template-columns:1fr}
 .shop-review-size-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:420px){
 .shop-review-summary{grid-template-columns:1fr}
 .shop-review-cover .shop-photo{height:180px;max-width:100%}
 .shop-review-card{grid-template-columns:1fr}
 .shop-review-card>.shop-review-visual .shop-photo{height:190px;max-width:100%}
 .shop-review-choices{grid-template-columns:repeat(2,minmax(0,1fr))}
 .shop-review-size-list{grid-template-columns:1fr}
}

/* Products step: separate product facts from the editing, copying, and ordering shortcuts. */
.shop-product-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:12px 0}
.shop-product-toolbar>p{margin:0;font-weight:650}
.shop-product-toolbar .form-manager-actions{margin:0}
.shop-product-card{align-items:start}
.shop-product-heading{display:flex;align-items:baseline;gap:9px;flex-wrap:wrap;margin-bottom:10px}
.shop-product-heading h3{margin:0;font-size:1.08rem;overflow-wrap:anywhere}
.shop-product-index{font-size:.72rem;font-weight:750;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.shop-product-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 14px}
.shop-product-facts>div{min-width:0;padding:9px 10px;border-radius:9px;background:var(--surface-soft,#f5f7f8)}
.shop-product-facts dt{font-size:.7rem;font-weight:750;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.shop-product-facts dd{margin:4px 0 0;overflow-wrap:anywhere}
.shop-product-facts .shop-product-price{background:#edf5f7;border:1px solid #d5e7eb}
.shop-product-facts .shop-product-price dd{font-size:1.02rem;font-weight:750}
.shop-editor .shop-product-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.shop-product-actions>.primary{grid-column:1/-1}
.shop-product-manage-actions,.shop-product-order-actions{display:flex;gap:8px;flex-wrap:wrap}
.shop-product-manage-actions button,.shop-product-order-actions button{flex:1 1 96px}
.shop-editor .shop-product-actions button{min-height:44px}
.shop-editor .shop-product-actions .delete-product{color:#a32121;border-color:#d89a9a;background:#fff7f7}
.shop-editor .shop-product-actions .delete-product:hover{color:#741818;border-color:#b85b5b;background:#ffeded}
.shop-product-empty{padding:16px;border:1px dashed var(--border,#ccd6df);border-radius:10px;background:var(--surface-soft,#f8fafb)}
.shop-product-empty p{margin:4px 0}
@media(max-width:600px){
 .shop-product-toolbar{align-items:stretch}
 .shop-product-toolbar>.form-manager-actions{width:100%}
 .shop-product-toolbar>.form-manager-actions button{flex:1 1 140px}
 .shop-product-info{min-width:0}
 .shop-product-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 .shop-product-facts>div{padding:8px}
 .shop-product-manage-actions,.shop-product-order-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
 .shop-product-manage-actions button,.shop-product-order-actions button{min-width:0;padding:8px}
}
@media(max-width:420px){
 .shop-editor .shop-product-card{grid-template-columns:1fr}
 .shop-product-card>.shop-product-visual .shop-photo{height:190px;max-width:100%}
}

/* Event photo options: keep the preview, customer choices, status, and controls together. */
.event-design-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:14px;margin-top:14px}
.event-design-list-summary{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-radius:9px;background:var(--surface-soft,#f5f7f8)}
.event-design-list-summary span{font-size:.9rem;color:var(--muted)}
.event-design-empty{grid-column:1/-1;padding:18px;border:1px dashed var(--line,#c8d4da);border-radius:10px;background:var(--surface-soft,#f8fafb)}
.event-design-empty h3{margin:0 0 6px}
.event-design-empty p{margin:0}
.event-design-card{display:grid;grid-template-columns:minmax(130px,.72fr) minmax(0,1.28fr);gap:14px;align-content:start;padding:14px;border:1px solid var(--line,#d8e1e5);border-radius:12px;background:var(--surface,#fff)}
.event-design-card-preview{min-width:0;min-height:150px;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:9px;background:var(--soft,#f3f5f7)}
.event-design-card-preview img{width:100%;height:100%;min-height:150px;max-height:220px;object-fit:contain;margin:0;border-radius:0}
.event-design-card-content{min-width:0}
.event-design-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;flex-wrap:wrap}
.event-design-card-heading h3{min-width:0;margin:0;font-size:1.05rem;overflow-wrap:anywhere}
.event-design-card-heading .tag{flex:0 0 auto}
.event-design-description{margin:7px 0;overflow-wrap:anywhere}
.event-design-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:10px 0}
.event-design-facts>div{min-width:0;padding:7px 8px;border-radius:8px;background:var(--surface-soft,#f5f7f8)}
.event-design-facts dt{font-size:.68rem;font-weight:750;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.event-design-facts dd{margin:3px 0 0;overflow-wrap:anywhere;font-size:.9rem}
.event-design-panel .event-design-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:10px}
.event-design-panel .event-design-actions>.primary{grid-column:1/-1}
.event-design-order-actions{display:flex;gap:7px;flex-wrap:wrap}
.event-design-order-actions button{flex:1 1 90px}
.event-design-panel .event-design-actions button{min-height:44px}
@media(max-width:700px){
 .event-design-list{grid-template-columns:1fr}
 .event-design-card{grid-template-columns:115px minmax(0,1fr);gap:11px;padding:12px}
 .event-design-card-preview,.event-design-card-preview img{min-height:135px}
 .event-design-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:420px){
 .event-design-card{grid-template-columns:1fr}
 .event-design-card-preview{min-height:190px}
 .event-design-card-preview img{min-height:190px;max-height:240px}
 .event-design-card-content{width:100%}
}

/* Keep both mobile navigation rows easy to browse and center the active destination. */
@media(max-width:700px){.sidebar .workspace-main-nav,.sidebar .workspace-subnav{scroll-snap-type:x proximity;scroll-padding-inline:12px;-webkit-overflow-scrolling:touch}.sidebar .workspace-main-nav .workspace-tab,.sidebar .workspace-subnav .nav{scroll-snap-align:center}.sidebar .workspace-main-nav::-webkit-scrollbar,.sidebar .workspace-subnav::-webkit-scrollbar{height:4px}.sidebar .workspace-main-nav::-webkit-scrollbar-thumb,.sidebar .workspace-subnav::-webkit-scrollbar-thumb{background:var(--accent);border-radius:999px}}

/* Dashboard: show active order garments before operational counts and tools. */
#dashboard .dashboard-wip-section{margin:10px 0 18px}
#dashboard .dashboard-wip-section .dashboard-section-head{margin:8px 0 12px}
#dashboard .dashboard-wip-section .dashboard-section-head>div{display:grid;gap:3px}
#dashboard .dashboard-wip-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#dashboard .dashboard-wip-card{min-width:0;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
#dashboard .dashboard-wip-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
#dashboard .dashboard-wip-order{min-width:0;min-height:44px;padding:4px 0;border:0;background:transparent;color:var(--accent);font:inherit;font-weight:750;text-align:left;overflow-wrap:anywhere}
#dashboard .dashboard-wip-status{flex:none;max-width:48%;padding:5px 8px;border:1px solid var(--line);border-radius:999px;background:var(--soft);font-size:12px;font-weight:700;line-height:1.3;overflow-wrap:anywhere}
#dashboard .dashboard-wip-due{display:inline-flex;margin:3px 0 8px;padding:4px 8px;border-radius:999px;background:var(--bg);font-size:12px;font-weight:700}
#dashboard .dashboard-wip-due[data-urgency=overdue]{background:#f7eaea;color:#742e2e}
#dashboard .dashboard-wip-due[data-urgency=today],#dashboard .dashboard-wip-due[data-urgency=soon]{background:#fff3df;color:#704500}
#dashboard .dashboard-wip-items{display:grid;gap:0;padding:0;margin:4px 0 0;list-style:none}
#dashboard .dashboard-wip-items li{display:grid;gap:3px;padding:9px 0;border-top:1px solid var(--line);overflow-wrap:anywhere}
#dashboard .dashboard-wip-items strong{font-size:14px}
#dashboard .dashboard-wip-items span,#dashboard .dashboard-wip-more{color:var(--muted);font-size:13px;line-height:1.4}
#dashboard .dashboard-primary-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:10px 0 4px}
#dashboard .dashboard-primary-action{display:flex;align-items:center;gap:12px;min-width:0;min-height:72px;padding:12px;border:1px solid var(--line);border-radius:12px;text-align:left;color:var(--ink);background:var(--surface)}
#dashboard .dashboard-primary-action>span:last-child{display:grid;gap:3px;min-width:0}
#dashboard .dashboard-primary-action strong{font-size:16px;line-height:1.2}
#dashboard .dashboard-primary-action small{font-size:13px;color:var(--muted);line-height:1.3}
#dashboard .dashboard-quick-capture{border:2px solid var(--accent);background:var(--soft)}
#dashboard .dashboard-quick-capture:hover,#dashboard .dashboard-create-invoice:hover{box-shadow:0 2px 9px #17344418}
#dashboard .dashboard-primary-action:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
#dashboard .dashboard-capture-support{display:flex;flex-wrap:wrap;gap:8px 16px;padding:4px 0 12px}
#dashboard .dashboard-capture-support button{min-height:44px;text-align:left}
#dashboard .dashboard-studio-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding-top:12px;border-top:1px solid var(--line)}
#dashboard .dashboard-studio-heading h3{margin:0;font-size:15px}
#dashboard .dashboard-studio-shortcuts{grid-template-columns:repeat(4,minmax(0,1fr));margin:8px 0 14px}
#dashboard .dashboard-studio-shortcuts .dashboard-shortcut{font-size:14px;min-height:60px}
@media(max-width:850px){#dashboard .dashboard-wip-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){#dashboard .dashboard-wip-list{grid-template-columns:1fr;gap:8px}#dashboard .dashboard-wip-card{padding:12px}#dashboard .dashboard-primary-actions{gap:8px}#dashboard .dashboard-primary-action{min-height:68px;padding:10px}#dashboard .dashboard-primary-action strong{font-size:15px}#dashboard .dashboard-capture-support{display:grid;grid-template-columns:1fr 1fr;gap:6px}#dashboard .dashboard-capture-support button{font-size:13px}#dashboard .dashboard-studio-heading{align-items:flex-start;flex-direction:column;gap:2px}#dashboard .dashboard-studio-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}}
@media(max-width:380px){#dashboard .dashboard-primary-actions{grid-template-columns:1fr}}

/* Full, live invoice preview styled like the exported document */
.invoice-action-dock{margin:22px 0 0;padding:0;border:0;background:transparent;box-shadow:none;display:grid;gap:14px;min-width:0}.invoice-preview-panel{min-width:0;border:1px solid var(--line);border-radius:16px;background:var(--surface);padding:clamp(14px,3vw,26px)}.invoice-preview-heading{display:grid;gap:5px;margin-bottom:14px}.invoice-preview-heading h3{font-size:20px;margin:0}.invoice-preview-heading span{font-size:14px;color:var(--muted)}.invoice-preview-paper{position:relative;isolation:isolate;display:flex;flex-direction:column;gap:0;min-height:500px;aspect-ratio:8.5/11;overflow:visible;border:1px solid #dce4e9;border-radius:12px;background:#fff;color:#172531;padding:clamp(15px,4vw,34px);box-shadow:0 5px 18px #102a3512;font-family:Georgia,'Times New Roman',serif;font-size:clamp(9px,1.2vw,13px);line-height:1.4}.invoice-preview-paper:before{content:'';position:absolute;z-index:0;inset:30% 18% 12%;background-image:var(--invoice-preview-watermark,none);background-repeat:no-repeat;background-position:center;background-size:contain;opacity:.05;pointer-events:none}.invoice-preview-paper>*{position:relative;z-index:1}.invoice-preview-brand{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;min-height:70px;padding-bottom:14px}.invoice-preview-brand-copy{max-width:72%;white-space:pre-line;overflow-wrap:anywhere}.invoice-preview-brand-copy strong{font-family:system-ui,sans-serif;font-size:1.15em}.invoice-preview-brand-copy p{margin:6px 0 0;white-space:pre-line;overflow-wrap:anywhere}.invoice-preview-logo{width:clamp(44px,13vw,88px);height:clamp(40px,11vw,72px);object-fit:contain;flex:none}.invoice-preview-number-strip{display:flex;justify-content:space-between;gap:8px;padding:8px 10px;background:var(--invoice-preview-accent,#173444);color:var(--invoice-preview-accent-ink,#fff);font-family:system-ui,sans-serif;font-size:clamp(9px,1.2vw,13px);font-weight:750;overflow-wrap:anywhere}.invoice-preview-number-strip span{text-align:right}.invoice-preview-meta{display:grid;grid-template-columns:1fr 1fr;gap:18px;padding:14px 0 18px;min-height:88px}.invoice-preview-billto,.invoice-preview-dates{display:grid;align-content:start;gap:3px;min-width:0;white-space:pre-line;overflow-wrap:anywhere}.invoice-preview-billto small,.invoice-preview-notes small{font-family:system-ui,sans-serif;font-size:.78em;font-weight:800;letter-spacing:.08em;color:var(--invoice-preview-accent,#173444)}.invoice-preview-billto strong{font-size:1.05em}.invoice-preview-dates{justify-self:end}.invoice-preview-school{font-family:system-ui,sans-serif;font-weight:700;color:var(--invoice-preview-accent,#173444);margin:0 0 10px}.invoice-preview-table{width:100%;border-collapse:collapse}.invoice-preview-table-head,.invoice-preview-table-row{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(26px,.42fr) minmax(42px,.72fr) minmax(50px,.85fr);gap:6px;align-items:center}.invoice-preview-table-head{padding:7px 6px;background:var(--invoice-preview-accent,#173444);color:#fff;font-family:system-ui,sans-serif;font-size:.7em;font-weight:750;letter-spacing:.04em}.invoice-preview-table-head span:not(:first-child),.invoice-preview-table-row>span:not(:first-child),.invoice-preview-table-row>strong{text-align:right}.invoice-preview-table-row{padding:8px 6px;border-bottom:1px solid #dce4e9}.invoice-preview-item-name{min-width:0;overflow-wrap:anywhere}.invoice-preview-school-note{grid-column:1/-1;color:#60727e;padding:0 6px 6px}.invoice-preview-empty{padding:8px 6px;margin:0;color:#60727e}.invoice-preview-summary{display:grid;grid-template-columns:minmax(0,1fr) minmax(145px,.9fr);gap:14px;align-items:end;margin-top:auto;padding-top:18px}.invoice-preview-totals{grid-column:2;display:grid;gap:4px}.invoice-preview-totals>div{display:flex;justify-content:space-between;gap:10px;padding:3px 0}.invoice-preview-totals .invoice-preview-total-row{border-top:2px solid var(--invoice-preview-accent,#173444);color:var(--invoice-preview-accent,#173444);font-size:1.1em;font-weight:800}.invoice-preview-totals .invoice-preview-balance-row{padding:6px;background:color-mix(in srgb,var(--invoice-preview-accent,#173444) 12%,white);font-weight:800}.invoice-preview-notes{grid-column:1/-1;border-top:1px solid #dce4e9;padding-top:10px;white-space:pre-line;overflow-wrap:anywhere}.invoice-preview-notes p{margin:5px 0 0}.invoice-preview-footer{margin-top:12px;padding-top:8px;border-top:1px solid #dce4e9;text-align:center;color:#60727e;font-size:.8em}.invoice-preview-mockups{display:grid;gap:10px;margin-top:14px}.invoice-preview-mockup{display:grid;gap:6px;margin:0;padding:8px;border:1px solid #dce4e9;border-radius:8px;background:#f2f5f7}.invoice-preview-mockup img{width:100%;max-height:220px;object-fit:contain}.invoice-preview-mockup figcaption{font-family:system-ui,sans-serif;font-size:.85em;color:#60727e}.invoice-preview-thanks{margin-top:10px;font-size:1.05em;font-weight:700}.invoice-preview-action-summary{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-family:system-ui,sans-serif}.invoice-preview-action-summary strong{font-size:20px}.invoice-preview-action-summary span{color:var(--muted);font-size:14px}.invoice-actions{display:grid;grid-template-columns:1fr;gap:10px;margin:0}.invoice-actions button{width:100%;min-height:54px}.invoice-email{border-top:1px solid var(--line);padding-top:10px}.invoice-email summary{font-weight:750;color:var(--accent);cursor:pointer;padding:8px 0}.invoice-email label{display:grid;gap:6px;margin:8px 0}.invoice-send-actions{display:grid;grid-template-columns:1fr;gap:8px}.invoice-send-actions button{min-height:50px}
@media(max-width:700px){.invoice-action-dock{margin:18px 0 0;gap:12px}.invoice-preview-panel{padding:14px}.invoice-preview-heading h3{font-size:19px}.invoice-preview-heading span{font-size:13px}.invoice-preview-paper{min-height:450px;padding:14px 12px;font-size:10px}.invoice-preview-brand{min-height:55px;padding-bottom:10px}.invoice-preview-meta{min-height:72px;gap:8px;padding:12px 0}.invoice-preview-table-head,.invoice-preview-table-row{grid-template-columns:minmax(0,1.7fr) minmax(25px,.38fr) minmax(38px,.68fr) minmax(48px,.78fr);gap:4px}.invoice-preview-table-head{font-size:8px}.invoice-preview-summary{grid-template-columns:minmax(0,1fr) minmax(128px,.9fr);gap:8px}.invoice-preview-totals{font-size:10px}.invoice-preview-action-summary strong{font-size:18px}.invoice-actions button,.invoice-send-actions button{font-size:16px}}
@media(max-width:360px){.invoice-preview-paper{min-height:420px;padding:12px 9px}.invoice-preview-table-head,.invoice-preview-table-row{grid-template-columns:minmax(0,1.5fr) minmax(22px,.35fr) minmax(35px,.65fr) minmax(43px,.72fr);font-size:9px}.invoice-preview-summary{grid-template-columns:1fr}.invoice-preview-totals{grid-column:1}}
.invoice-calculator-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}.invoice-calculator-controls .invoice-price-target{margin:6px 0 12px}.invoice-calculator-controls .invoice-price-target:last-child{grid-column:1/-1}.invoice-calculator-controls select{min-height:46px}@media(max-width:600px){.invoice-calculator-controls{gap:0 10px}.invoice-calculator-controls .invoice-price-target{font-size:11px}.invoice-calculator-controls select{padding:10px 8px;font-size:15px}.price-card{padding:12px}.invoice-action-dock{margin-left:-4px;margin-right:-4px}}

.upload-status{color:#315f78;font-size:14px;line-height:1.4;margin:8px 0 0}.upload-status[hidden]{display:none}
