:root{color-scheme:light;--ink:#18231f;--muted:#66726d;--line:#dce4df;--paper:#f5f7f5;--surface:#fff;--green:#176a50;--green-dark:#0f4f3b;--green-soft:#e5f3ed;--amber:#c18422;--danger:#a83b3b;--shadow:0 14px 40px rgba(22,47,38,.08);font-family:Inter,"Segoe UI",Arial,sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-size:15px;line-height:1.5}a{color:inherit}.skip-link{position:fixed;left:1rem;top:-4rem;z-index:100;background:#fff;padding:.75rem 1rem;border-radius:.5rem}.skip-link:focus{top:1rem}.app-frame{min-height:100vh;display:grid;grid-template:72px 1fr/248px 1fr;grid-template-areas:"header header" "sidebar content"}.topbar{grid-area:header;background:#11281f;color:#fff;display:flex;align-items:center;padding:0 1.5rem;justify-content:space-between;position:sticky;top:0;z-index:20}.brand{display:flex;gap:.75rem;align-items:center;text-decoration:none}.brand span:last-child{display:grid}.brand small,.user-summary small{color:#a9c0b7;display:block}.brand-mark{display:grid;place-items:center;width:40px;height:40px;background:#d3a54b;color:#11281f;border-radius:11px;font-weight:900;letter-spacing:-.05em}.brand-mark.large{width:56px;height:56px;font-size:1.25rem;margin-bottom:1.5rem}.user-summary{display:flex;align-items:center;gap:1.25rem;text-align:right}.user-summary form{margin:0}.sidebar{grid-area:sidebar;background:#fff;border-right:1px solid var(--line);padding:1.25rem 1rem;display:flex;flex-direction:column;justify-content:space-between}.sidebar nav{display:grid;gap:.35rem}.sidebar nav a{padding:.72rem .85rem;border-radius:.65rem;text-decoration:none;color:#42504a;font-weight:650}.sidebar nav a:hover,.sidebar nav a:focus-visible{background:#f0f4f1}.sidebar nav a.active{background:var(--green-soft);color:var(--green-dark)}.environment-note{font-size:.75rem;color:var(--muted);border-top:1px solid var(--line);padding-top:1rem}.content{grid-area:content;padding:2.25rem;max-width:1500px;width:100%}.page-heading,.section-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.5rem}.page-heading h1,.section-heading h2{margin:0;letter-spacing:-.035em}.page-heading h1{font-size:clamp(1.8rem,3vw,2.45rem)}.eyebrow{margin:0 0 .35rem;text-transform:uppercase;letter-spacing:.13em;font-weight:800;font-size:.72rem;color:var(--green)}.status-pill{background:var(--green-soft);color:var(--green-dark);padding:.4rem .75rem;border-radius:99px;font-weight:750;font-size:.78rem}.status-pill.neutral{background:#ecefed;color:#59645f}.hero-panel{background:linear-gradient(135deg,#15392c,#1b644c);color:#fff;padding:2rem;border-radius:1.1rem;display:flex;align-items:center;justify-content:space-between;box-shadow:var(--shadow);margin-bottom:2rem}.hero-panel h2{font-size:1.7rem;margin:.2rem 0}.hero-panel p:not(.eyebrow){color:#cee0d9;max-width:680px}.hero-panel .eyebrow{color:#e7bc65}.hero-stat{border-left:1px solid rgba(255,255,255,.25);padding:1rem 2rem;display:grid;text-align:center}.hero-stat strong{font-size:2.5rem}.card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}.module-card{display:block;background:var(--surface);padding:1.3rem;border:1px solid var(--line);border-radius:.9rem;text-decoration:none;box-shadow:0 4px 16px rgba(22,47,38,.04);transition:.18s ease}.module-card:hover,.module-card:focus-visible{transform:translateY(-2px);border-color:#9ab8aa;box-shadow:var(--shadow)}.module-card h3{margin:.8rem 0 .3rem}.module-card p{color:var(--muted);min-height:3rem}.module-icon,.empty-icon{width:38px;height:38px;border-radius:10px;background:var(--green-soft);color:var(--green-dark);display:grid;place-items:center;font-weight:900}.card-link{color:var(--green);font-weight:750}.panel,.empty-state,.table-wrap{background:#fff;border:1px solid var(--line);border-radius:1rem;box-shadow:0 5px 20px rgba(22,47,38,.04)}.panel{padding:1.5rem}.narrow-panel{max-width:720px}.empty-state{text-align:center;padding:4rem 2rem}.empty-icon{margin:auto}.stacked-form{display:grid;gap:.65rem}.stacked-form label{font-weight:700;margin-top:.4rem}input,select{width:100%;border:1px solid #bfcac4;background:#fff;border-radius:.55rem;padding:.72rem .8rem;font:inherit;color:inherit}input:focus,select:focus,button:focus-visible,a:focus-visible{outline:3px solid rgba(23,106,80,.22);outline-offset:2px}.button{border:0;border-radius:.55rem;padding:.68rem 1rem;font:inherit;font-weight:750;cursor:pointer;text-decoration:none;display:inline-flex;justify-content:center}.button-primary{background:var(--green);color:#fff;margin-top:.8rem}.button-primary:hover{background:var(--green-dark)}.button-secondary{background:var(--green-soft);color:var(--green-dark)}.button-quiet{background:rgba(255,255,255,.1);color:#fff}.alert{padding:.9rem 1rem;border-radius:.65rem;margin-bottom:1rem}.alert.success{background:var(--green-soft);color:var(--green-dark)}.alert.error{background:#f9e8e8;color:#7d2929}.alert ul{margin:.4rem 0 0}.login-page{min-height:100vh;display:grid;place-items:center;padding:1.2rem;background:radial-gradient(circle at 20% 20%,#dbece4,transparent 36%),#edf2ef}.login-card{width:min(430px,100%);background:#fff;padding:2.5rem;border-radius:1rem;box-shadow:var(--shadow);border:1px solid var(--line)}.login-card h1{margin:.2rem 0}.muted,.login-footnote{color:var(--muted)}.login-footnote{font-size:.8rem;margin-top:1.5rem}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;min-width:680px}th,td{text-align:left;padding:.9rem 1rem;border-bottom:1px solid var(--line);vertical-align:middle}th{font-size:.75rem;text-transform:uppercase;letter-spacing:.07em;color:var(--muted)}td small{display:block;color:var(--muted)}.inline-user-form{display:grid;grid-template-columns:minmax(130px,1fr) auto auto;gap:.75rem;align-items:center}.checkbox{white-space:nowrap}.checkbox input{width:auto}.nav-toggle{display:none}.section-heading span{color:var(--muted)}code{font-family:"Cascadia Code",Consolas,monospace;font-size:.83rem}
@media (max-width:1050px){.card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.app-frame{grid-template-columns:210px 1fr}.hero-stat{display:none}}
@media (max-width:720px){.app-frame{display:block}.topbar{height:66px;padding:0 .85rem}.brand small,.user-summary>span,.user-summary>div>span{display:none}.user-summary{gap:.5rem}.nav-toggle{display:block;background:transparent;color:#fff;border:1px solid #547064;border-radius:.45rem;padding:.45rem .65rem}.sidebar{display:none;position:fixed;top:66px;left:0;right:0;bottom:0;z-index:15;overflow:auto}.sidebar.open{display:flex}.content{padding:1.25rem}.page-heading{align-items:flex-start}.hero-panel{padding:1.35rem}.card-grid{grid-template-columns:1fr}.module-card p{min-height:0}.inline-user-form{grid-template-columns:1fr}.login-card{padding:1.5rem}}
.master-tabs{display:flex;gap:.45rem;overflow-x:auto;padding-bottom:.75rem;margin-bottom:1rem}.master-tabs a{white-space:nowrap;text-decoration:none;padding:.55rem .8rem;border:1px solid var(--line);background:#fff;border-radius:.55rem;font-weight:700}.master-tabs a.active{background:var(--green);color:#fff;border-color:var(--green)}.filter-bar{display:grid;grid-template-columns:minmax(180px,2fr) minmax(130px,1fr) auto;gap:.75rem;align-items:end;margin-bottom:1rem}.filter-bar label,.master-form label{font-weight:700}.filter-bar .button,.master-form .button{background:var(--green);color:#fff}.create-panel{margin-bottom:1rem}.create-panel summary{font-weight:800;cursor:pointer}.master-form{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:.8rem;align-items:end;margin-top:1rem}.master-form label span{font-size:.75rem;color:var(--muted)}.master-form .wide{grid-column:1/-2}.master-form textarea{width:100%;min-height:68px;resize:vertical;border:1px solid #bfcac4;border-radius:.55rem;padding:.65rem;font:inherit}.master-list{display:grid;gap:.75rem}.master-row{padding:0}.master-details summary{display:flex;gap:.65rem;align-items:center;cursor:pointer;list-style:none;padding:1rem;font-weight:800}.master-details summary::-webkit-details-marker{display:none}.master-details summary:hover .master-summary-name{text-decoration:underline}.master-summary-name{font-size:1rem}.master-summary-code{color:var(--muted);font-weight:600;font-size:.8rem}.master-summary-badge{margin-left:auto}.master-details .master-form{margin:0 1rem;padding-top:.25rem}.master-footer{display:flex;gap:.5rem;align-items:center;margin:.6rem 1rem 1rem}.master-footer form{margin:0}.button.danger{background:#f9e8e8;color:#7d2929}.button.danger:hover{background:#f0d4d4}.button-soft{background:var(--green-soft);color:var(--green-dark)}.button-soft:hover{background:#d5e8e0}.master-summary-toggle{margin:0}.master-summary-toggle .button{padding:.3rem .7rem;font-size:.78rem}.archive-section{margin-top:1.25rem}.archive-section summary{display:flex;gap:.65rem;align-items:center;cursor:pointer;list-style:none;font-weight:800;padding:.9rem 1rem}.archive-section summary::-webkit-details-marker{display:none}.archived-list{display:grid;gap:.5rem;padding:0 1rem 1rem}.archived-row{display:flex;gap:.75rem;align-items:center;justify-content:space-between;border:1px solid var(--line);border-radius:.6rem;padding:.6rem .8rem}.archived-actions{display:flex;gap:.5rem;align-items:center}.master-row>.master-form{flex:1}.record-actions{display:flex;gap:.65rem;align-items:center;justify-content:flex-end}.master-save-status{min-width:0;font-size:.8rem;font-weight:800;color:var(--green-dark)}.master-save-status.error{color:var(--danger)}.status-badge{background:var(--green-soft);color:var(--green-dark);padding:.35rem .65rem;border-radius:99px;font-size:.78rem;font-weight:800;white-space:nowrap}.status-badge.archived{background:#ecefed;color:#59645f}.master-row p{color:var(--muted)}
@media (max-width:900px){.master-form{grid-template-columns:1fr 1fr}.master-form .wide{grid-column:1/-1}.filter-bar{grid-template-columns:1fr 1fr auto}}
@media (max-width:720px){.filter-bar,.master-form{grid-template-columns:1fr}.master-form .wide{grid-column:auto}.master-tabs{margin-inline:-1.25rem;padding-inline:1.25rem}.record-actions{justify-content:space-between}}
.product-filters{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:.8rem;align-items:end;margin-bottom:1rem}.product-grid{display:grid;gap:.75rem}.product-card{display:grid;grid-template-columns:110px minmax(180px,1fr) auto auto;align-items:center;gap:1rem}.product-thumb{width:110px;aspect-ratio:4/3;border-radius:.65rem;background:#edf1ee;overflow:hidden;display:grid;place-items:center;color:var(--muted);font-size:.75rem}.product-thumb img,.image-grid img,.image-preview img{width:100%;height:100%;object-fit:contain;background:#fff}.product-code{display:block;font-size:1.25rem}.product-card h2{font-size:1rem;margin:.2rem 0}.product-card div>span{color:var(--muted)}.product-form{display:grid;grid-template-columns:1fr 1fr;gap:1rem;align-items:end}.product-form label{font-weight:700}.product-form label span{color:var(--muted);font-size:.78rem}.product-form textarea{width:100%;min-height:100px;border:1px solid #bfcac4;border-radius:.55rem;padding:.7rem;font:inherit}.product-form .wide{grid-column:1/-1}.image-preview{height:180px;border:1px dashed #a9b8b0;border-radius:.7rem;display:grid;place-items:center;color:var(--muted);overflow:hidden}.image-manager,.archive-panel{margin-top:1rem}.image-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:1rem}.image-grid article{border:1px solid var(--line);border-radius:.7rem;padding:.65rem}.image-grid img{aspect-ratio:4/3;border-radius:.45rem;margin-bottom:.5rem}.image-actions{display:flex;gap:.4rem;margin-top:.5rem}.image-actions form{margin:0}.danger{background:#f9e8e8;color:#7d2929}.image-upload-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-top:1.2rem}.image-upload-grid form{display:grid;gap:.6rem}.archive-panel{display:flex;justify-content:space-between;align-items:center;gap:1rem}
@media (max-width:900px){.product-filters{grid-template-columns:1fr 1fr}.product-card{grid-template-columns:90px 1fr auto}.product-card>.button{grid-column:2/-1}.product-thumb{width:90px}}
@media (max-width:720px){.product-filters,.product-form,.image-upload-grid{grid-template-columns:1fr}.product-form .wide{grid-column:auto}.product-card{grid-template-columns:80px 1fr;padding:1rem}.product-card>.status-badge{grid-column:1}.product-card>.button{grid-column:2}.product-thumb{width:80px}.archive-panel{align-items:stretch;flex-direction:column}.image-grid{grid-template-columns:1fr 1fr}}
.order-filters{display:grid;grid-template-columns:2fr 1fr 1fr 1fr 1fr auto;gap:.75rem;align-items:end;margin-bottom:1rem}.order-list,.ordered-products,.picker-results{display:grid;gap:.75rem}.order-row{display:grid;grid-template-columns:1.1fr 1fr 1.25fr .55fr auto auto;gap:1rem;align-items:center}.order-row>div{display:grid;gap:.2rem}.order-row small{color:var(--muted)}.order-number{font-size:1.35rem}.order-form{display:grid;gap:1rem}.order-form h2,.order-products-panel h2,.product-picker h2{margin-top:0}.order-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.order-form-grid label{font-weight:700}.order-form-grid label span{font-size:.78rem;color:var(--muted)}.order-form-grid .wide{grid-column:1/-1}.order-form-grid textarea{width:100%;min-height:100px;resize:vertical;border:1px solid #bfcac4;border-radius:.55rem;padding:.7rem;font:inherit}.order-details{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin:0}.order-details div{padding:.75rem;border:1px solid var(--line);border-radius:.55rem}.order-details .wide{grid-column:1/-1}.order-details dt{font-size:.75rem;color:var(--muted);font-weight:800;text-transform:uppercase}.order-details dd{margin:.25rem 0 0}.order-products-panel,.product-picker,.future-phase{margin-top:1rem}.ordered-product{display:grid;grid-template-columns:42px 90px minmax(180px,1fr) auto;gap:1rem;align-items:center;padding:1rem;border:1px solid var(--line);border-radius:.75rem}.ordered-product .product-thumb{width:90px}.ordered-product h3,.ordered-product p{margin:.25rem 0}.order-position{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--green-soft);color:var(--green-dark)}.order-product-actions{display:flex;gap:.4rem}.order-product-actions form{margin:0}.empty-state.compact{padding:2rem}.picker-search{display:grid;grid-template-columns:1fr auto;gap:.75rem;align-items:end;margin-bottom:1rem}.picker-results article{display:grid;grid-template-columns:80px minmax(160px,1fr) minmax(220px,1fr);gap:1rem;align-items:center;border:1px solid var(--line);border-radius:.75rem;padding:.8rem}.picker-results .product-thumb{width:80px}.picker-results form{display:grid;grid-template-columns:1fr auto;gap:.5rem;align-items:center}.picker-results .button{margin:0}.future-phase{background:var(--green-soft)}
.snapshot-warning{margin-top:.55rem!important;padding:.55rem .7rem;border-left:3px solid var(--amber);background:#fff6e6;color:#684a19;font-size:.85rem}.snapshot-warning span{display:block;color:#7b6541}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.size-run-builder{grid-column:1/-1;border-top:1px solid var(--line);padding-top:1rem}.size-run-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem}.size-run-heading>div{display:flex;align-items:baseline;gap:.7rem}.size-run-heading h4{margin:0}.size-run-heading span,.size-run-footnote{color:var(--muted);font-size:.82rem}.pair-total{background:#15392c;color:#fff;border-radius:.6rem;padding:.65rem .9rem;white-space:nowrap}.size-run-entry{display:grid;grid-template-columns:1fr 1fr;gap:.75rem;margin-top:.8rem}.size-range-form,.single-size-form{display:grid;grid-template-columns:auto 1fr 1fr auto;gap:.55rem;align-items:end;background:#f9fbfa;border:1px solid var(--line);border-radius:.65rem;padding:.75rem}.size-range-form>strong,.single-size-form>strong{align-self:center}.size-range-form label,.single-size-form label{font-weight:700}.size-quantity-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:.55rem;margin-top:.8rem}.size-quantity-row{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:end;gap:.4rem;padding:.55rem;border:1px solid var(--line);border-radius:.55rem;background:#fff}.size-quantity-row>strong{font-size:1.15rem;align-self:center;text-align:center}.size-quantity-row form:first-of-type{display:grid;grid-template-columns:minmax(70px,1fr) auto;gap:.4rem;align-items:end}.size-quantity-row .button,.size-quantity-row .text-danger{padding:.58rem .65rem}.size-run-footnote{margin:.7rem 0 0}
.colorway-builder{grid-column:1/-1;border-top:1px solid var(--line);padding-top:1rem}.colorway-builder-heading,.colorway-card-heading,.component-heading,.subsection-heading{display:flex;align-items:center;justify-content:space-between;gap:.75rem}.colorway-builder-heading>div{display:flex;align-items:baseline;gap:.7rem}.colorway-builder h4,.colorway-builder h5,.colorway-builder h6{margin:0}.colorway-builder-heading span,.component-heading span,.subsection-heading span{color:var(--muted);font-size:.82rem}.colorway-list{display:grid;gap:1rem;margin-top:1rem}.colorway-card{background:#f9fbfa;border:1px solid #cfdad4;border-radius:.75rem;padding:1rem}.colorway-number{display:block;color:var(--green);font-size:.72rem;font-weight:850;text-transform:uppercase;letter-spacing:.08em}.colorway-card-heading h5.colorway-number{font-size:1.35rem;line-height:1.4}.colorway-actions{display:flex;flex-wrap:wrap;gap:.4rem;justify-content:flex-end}.colorway-actions form{margin:0}.colorway-core-form{display:grid;grid-template-columns:1fr 1fr auto;gap:.75rem;align-items:end;margin-top:1rem;padding:1rem;background:#fff;border:1px solid var(--line);border-radius:.65rem}.colorway-core-form label,.leather-part-form label,.component-form label{font-weight:700}.colorway-core-form label span{font-size:.75rem;color:var(--muted)}.colorway-core-form .wide{grid-column:1/-1}.colorway-core-form textarea,.component-form input,.leather-part-form input{width:100%;border:1px solid #bfcac4;border-radius:.55rem;padding:.68rem .75rem;font:inherit;resize:vertical}.colorway-core-form .button{margin:0}.colorway-summary{display:grid;grid-template-columns:1fr 1fr;gap:.65rem;margin:1rem 0}.colorway-summary>div{background:#fff;border:1px solid var(--line);padding:.65rem;border-radius:.55rem}.colorway-summary .wide{grid-column:1/-1}.colorway-summary dt{font-size:.72rem;text-transform:uppercase;color:var(--muted);font-weight:800}.colorway-summary dd{margin:.2rem 0 0}.leather-parts{margin-top:1rem;padding:1rem;background:#fff;border:1px solid var(--line);border-radius:.65rem}.leather-part-list{display:grid;gap:.65rem;margin:.75rem 0}.leather-part-row{display:grid;grid-template-columns:70px minmax(0,1fr) auto;gap:.65rem;align-items:end;padding:.7rem;border:1px solid var(--line);border-radius:.55rem}.leather-part-form{display:grid;grid-template-columns:1fr 1fr 1.2fr auto;gap:.55rem;align-items:end}.text-danger{border:0;background:transparent;color:var(--danger);font:inherit;font-weight:750;cursor:pointer;padding:.65rem}.component-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;margin-top:1rem}.component-panel{background:#fff;border:1px solid var(--line);border-radius:.65rem;padding:.85rem}.component-form{display:grid;gap:.55rem;margin-top:.65rem}.component-form .wide{grid-column:1/-1}.component-form .button{margin:0}.apply-main-color{display:flex;align-items:center;gap:.75rem;margin-top:1rem}.apply-main-color span{color:var(--muted);font-size:.8rem}
.size-exceptions{margin-top:1rem;padding:1rem;background:#fff;border:1px solid var(--line);border-radius:.65rem}.size-exception-list{display:grid;gap:.45rem;margin:.65rem 0}.size-exception-list article{display:grid;grid-template-columns:auto 1fr auto;gap:.65rem;align-items:center;padding:.55rem .7rem;border:1px solid var(--line);border-radius:.5rem}.size-exception-list span{color:var(--muted)}.size-exception-list form{margin:0}.size-exception-form{display:grid;grid-template-columns:minmax(130px,.5fr) 1fr auto;gap:.55rem;align-items:end}.size-exception-form label{font-weight:700}.size-exception-form input{width:100%}
@media (max-width:1100px){.order-filters{grid-template-columns:repeat(3,1fr)}.order-row{grid-template-columns:1fr 1fr 1fr}.order-row>.button{justify-self:stretch}.order-form-grid{grid-template-columns:1fr 1fr}.order-details{grid-template-columns:1fr 1fr}.picker-results article{grid-template-columns:70px 1fr}.picker-results form{grid-column:2}}
@media (max-width:1100px){.component-grid{grid-template-columns:1fr}.leather-part-form{grid-template-columns:1fr 1fr}.leather-part-form .button{grid-column:1/-1}}
@media (max-width:720px){.order-filters,.order-form-grid,.order-details,.picker-search{grid-template-columns:1fr}.order-form-grid .wide,.order-details .wide{grid-column:auto}.order-row{grid-template-columns:1fr 1fr;padding:1rem}.order-row>div:nth-child(3){grid-column:1/-1}.order-row>.button{grid-column:1/-1}.ordered-product{grid-template-columns:34px 72px 1fr;padding:.8rem}.ordered-product .product-thumb{width:72px}.order-product-actions{grid-column:2/-1;justify-content:flex-end}.picker-results article{grid-template-columns:68px 1fr}.picker-results .product-thumb{width:68px}.picker-results form{grid-column:1/-1;grid-template-columns:1fr}.section-heading{align-items:flex-start}}
@media (max-width:720px){.colorway-builder-heading,.colorway-card-heading{align-items:stretch;flex-direction:column}.colorway-builder-heading form .button{width:100%}.colorway-actions{justify-content:flex-start}.colorway-core-form,.colorway-summary,.leather-part-form{grid-template-columns:1fr}.colorway-core-form .wide,.colorway-summary .wide,.leather-part-form .button{grid-column:auto}.leather-part-row{grid-template-columns:1fr}.apply-main-color{align-items:stretch;flex-direction:column}.apply-main-color .button{width:100%}}
@media (max-width:900px){.size-run-entry{grid-template-columns:1fr}.size-range-form,.single-size-form{grid-template-columns:1fr 1fr}.size-range-form>strong,.single-size-form>strong,.size-range-form .button,.single-size-form .button{grid-column:1/-1}.size-exception-form{grid-template-columns:1fr}}
@media (max-width:720px){.size-run-heading{align-items:stretch;flex-direction:column}.pair-total{text-align:center}.size-quantity-list{grid-template-columns:1fr}.size-quantity-row{grid-template-columns:36px minmax(0,1fr) auto}.size-exception-list article{grid-template-columns:1fr}.size-exception-list .text-danger{text-align:left;padding-left:0}}
.pdf-actions-panel{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1rem;margin-bottom:1rem;align-items:start}.section-heading.compact{margin-bottom:.5rem}.pdf-actions-panel h2{margin:0}.pdf-action-buttons{display:flex;gap:.55rem}.pdf-action-buttons form{margin:0}.pdf-action-buttons .button-primary{margin:0}.pdf-action-buttons a[aria-disabled=true]{pointer-events:none;opacity:.45}.pdf-readiness{padding:.7rem .85rem;border-radius:.55rem;font-size:.88rem}.pdf-readiness ul{margin:.35rem 0 0;padding-left:1.2rem}.pdf-readiness.error{background:#f9e8e8;color:#7d2929}.pdf-readiness.warning{background:#fff5dd;color:#684a19}.generated-document-list{grid-column:1/-1;display:grid;gap:.45rem}.generated-document-list article{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.65rem .75rem;background:#f7faf8;border:1px solid var(--line);border-radius:.55rem}.generated-document-list article div{display:grid;gap:.15rem}.generated-document-list span{color:var(--muted);font-size:.8rem}
@media (max-width:720px){.pdf-actions-panel{grid-template-columns:1fr}.pdf-action-buttons{display:grid;grid-template-columns:1fr 1fr}.generated-document-list article{align-items:stretch;flex-direction:column}}
.operator-shortcuts{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;margin-bottom:1rem;padding:.7rem 1rem;background:#11281f;color:#fff;border-radius:.7rem;font-size:.82rem}.operator-shortcuts span{color:#cbdad4}.operator-shortcuts span:last-child{margin-left:auto;color:#e7bc65;font-weight:800}.operator-shortcuts .save-failed{color:#ffb5b5}kbd{background:#fff;color:#11281f;border-radius:.3rem;padding:.15rem .35rem;font:inherit;font-weight:800}.duplicate-order-panel{margin-bottom:1rem}.duplicate-order-panel summary{cursor:pointer}.duplicate-order-form{display:grid;grid-template-columns:1.4fr repeat(3,auto) auto;gap:.75rem;align-items:end;margin-top:1rem}.readiness-compact{margin-bottom:1rem}.readiness-compact ul{margin:0}.readiness-ok{color:var(--green)}.bulk-action-bar,.preset-apply-form,.size-preset-form{display:grid;grid-template-columns:auto minmax(120px,220px) auto;gap:.6rem;align-items:end;background:#f0f6f3;border:1px solid #cbdcd4;border-radius:.6rem;padding:.7rem;margin-top:.8rem}.preset-apply-form{grid-template-columns:1fr 1fr auto}.bulk-action-bar .button,.preset-apply-form .button,.size-preset-form .button{margin:0}.bulk-check{display:inline-flex;align-items:center;gap:.3rem;font-size:.75rem;color:var(--muted)}.bulk-check input{width:auto}.preset-panel{margin-bottom:1rem}.preset-form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem;padding:1rem;background:#f7faf8;border:1px solid var(--line);border-radius:.7rem}.preset-form .wide{grid-column:1/-1}.preset-grid{display:grid;gap:.5rem}.preset-row{display:grid;grid-template-columns:80px 1fr 1fr 1fr;gap:.5rem;align-items:center}.size-preset-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:.5rem}.preset-list{display:grid;gap:.55rem;margin-top:1rem}.preset-list article{display:grid;grid-template-columns:1fr auto auto;gap:.8rem;align-items:center;padding:.75rem;border:1px solid var(--line);border-radius:.6rem}.preset-list article div{display:grid}.preset-list span,.preset-list small{color:var(--muted)}
@media (max-width:900px){.duplicate-order-form,.preset-form{grid-template-columns:1fr 1fr}.duplicate-order-form .button,.preset-form .wide{grid-column:1/-1}.size-preset-grid{grid-template-columns:repeat(4,1fr)}}
.size-propagate-form{display:grid;grid-template-columns:auto auto;gap:.6rem;align-items:end;background:#f0f6f3;border:1px solid #cbdcd4;border-radius:.6rem;padding:.7rem;margin-top:.8rem}.size-propagate-form .button{margin:0}
@media (max-width:720px){.operator-shortcuts{align-items:flex-start;flex-direction:column}.operator-shortcuts span:last-child{margin-left:0}.duplicate-order-form,.preset-form,.preset-apply-form,.bulk-action-bar,.size-preset-form,.size-propagate-form{grid-template-columns:1fr}.preset-row{grid-template-columns:1fr}.size-preset-grid{grid-template-columns:repeat(2,1fr)}.preset-list article{grid-template-columns:1fr}}
.copy-configuration-panel{grid-column:1/-1;padding:.75rem;background:#f7faf8;border:1px solid var(--line);border-radius:.6rem}.copy-configuration-panel summary{cursor:pointer}.copy-configuration-form{display:grid;grid-template-columns:minmax(260px,1fr) repeat(3,auto) auto;gap:.65rem;align-items:end;margin-top:.75rem}.copy-configuration-form .button{margin:0}
@media (max-width:1050px){.copy-configuration-form{grid-template-columns:1fr 1fr}.copy-configuration-form>label:first-child,.copy-configuration-form .button{grid-column:1/-1}}
@media (max-width:720px){.copy-configuration-form{grid-template-columns:1fr}.copy-configuration-form>label:first-child,.copy-configuration-form .button{grid-column:auto}}
.button.icon-button{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:.6rem;flex-shrink:0}.icon-button svg{display:block;pointer-events:none}
.sidebar nav a{display:flex;align-items:center;gap:.7rem}.sidebar-nav-icon{width:20px;height:20px;flex:0 0 20px;color:#738079;transition:color .16s ease,transform .16s ease}.sidebar nav a:hover .sidebar-nav-icon,.sidebar nav a:focus-visible .sidebar-nav-icon{color:var(--green)}.sidebar nav a.active .sidebar-nav-icon{color:var(--green-dark);transform:scale(1.06)}

/* Quiet buttons are styled for the dark top bar; inside page content they must stay visible. */
.content .button-quiet{background:#fff;color:var(--green-dark);border:1px solid var(--line)}
.content .button-quiet:hover{background:var(--green-soft)}

/* Form controls — one consistent style for every page */
textarea{width:100%;min-height:88px;border:1px solid #bfcac4;background:#fff;border-radius:.55rem;padding:.72rem .8rem;font:inherit;color:inherit;resize:vertical}
textarea:focus{outline:3px solid rgba(23,106,80,.22);outline-offset:2px}
input::placeholder,textarea::placeholder{color:#8a958f}
input[type=checkbox],input[type=radio]{width:auto;padding:0;margin:0;accent-color:var(--green);flex:0 0 auto;min-width:1.05rem;min-height:1.05rem}
input:disabled,select:disabled,textarea:disabled{background:#f2f4f2;color:var(--muted);cursor:not-allowed}
.content .button:not(.button-primary):not(.button-secondary):not(.button-quiet):not(.button-soft):not(.danger):not(.icon-button){background:var(--green);color:#fff}
.content .button:not(.button-primary):not(.button-secondary):not(.button-quiet):not(.button-soft):not(.danger):not(.icon-button):hover{background:var(--green-dark)}
.content label.checkbox{display:inline-flex;align-items:center;gap:.5rem;font-weight:600}
.stack-form,.stacked-form{display:grid;gap:.8rem}
.stack-form label,.stacked-form label{display:grid;gap:.35rem;font-weight:700;margin:0}
.stack-form label.checkbox,.stacked-form label.checkbox{display:flex;align-items:center;gap:.5rem;font-weight:600}
.stack-form>.button,.stack-form>button,.stacked-form>.button,.stacked-form>button{justify-self:start;margin-top:.2rem}
.inline-form{display:flex;flex-wrap:wrap;gap:.75rem;align-items:end}
.inline-form>label{display:grid;gap:.35rem;font-weight:700;min-width:180px;flex:1 1 180px}
.inline-form>.button,.inline-form>button{margin-top:0}
.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:.8rem;align-items:end}
.form-grid>label{display:grid;gap:.35rem;font-weight:700}
.form-grid>.full{grid-column:1/-1}
.stack-form label.checkbox,.detail-form label.checkbox{min-height:44px}
.nav-toggle{min-height:44px}
.button:disabled{opacity:.5;cursor:not-allowed}
.inline-form>.button{padding-block:.8rem}
@media (max-width:480px){.inline-form>.button,.inline-form>button{flex:1 1 100%}}
/* Same height and ink color for every text field and select */
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]),select{height:2.75rem;color:var(--ink)}
textarea{color:var(--ink)}
.form-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:900px){.form-grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){.form-grid-4{grid-template-columns:1fr}}
input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea{font-size:.95rem}
/* One button height everywhere, whether filled or outlined */
.content .button{min-height:2.75rem;padding-top:0;padding-bottom:0;align-items:center}
.content summary.button,.content details>summary{min-height:2.75rem;display:inline-flex;align-items:center}

/* Sidebar: compact rows in collapsible groups */
.sidebar{padding:.85rem .7rem}
.sidebar nav{gap:.1rem;align-content:start}
.sidebar nav a{padding:.42rem .65rem;border-radius:.5rem;font-size:.9rem;gap:.6rem;line-height:1.3}
.sidebar nav a .sidebar-nav-icon{width:18px;height:18px;flex-basis:18px}
.nav-group{margin-top:.45rem}
.nav-group summary{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.35rem .65rem .25rem;border-radius:.4rem;font-size:.68rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#7a8680;cursor:pointer;list-style:none;user-select:none}
.nav-group summary::-webkit-details-marker{display:none}
.nav-group summary:hover,.nav-group summary:focus-visible{color:var(--green-dark);background:#f0f4f1}
.nav-group summary .nav-group-chevron{width:14px;height:14px;flex:0 0 14px;color:currentColor;transition:transform .16s ease}
.nav-group:not([open]) summary .nav-group-chevron{transform:rotate(-90deg)}
.nav-group-links{display:grid;gap:.1rem;margin-top:.1rem}
.environment-note{margin:.75rem 0 0;padding-top:.75rem}
@media (min-width:721px){.sidebar{position:sticky;top:72px;height:calc(100vh - 72px);overflow-y:auto}}
.quick-create-dialog{width:min(440px,calc(100vw - 32px));border:1px solid var(--line);border-radius:1rem;padding:1.5rem;background:var(--surface);color:var(--ink);box-shadow:0 24px 60px rgba(17,40,31,.25)}.quick-create-dialog::backdrop{background:rgba(17,40,31,.45)}.quick-create-dialog form{display:grid;gap:.85rem}.quick-create-dialog label{font-weight:700}.quick-create-dialog label span{font-size:.78rem;color:var(--muted)}.quick-create-dialog p{margin:0}.quick-create-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem}.quick-create-heading h2{margin:0;letter-spacing:-.02em}.quick-create-close{border:0;background:transparent;font-size:1.6rem;line-height:1;color:var(--muted);cursor:pointer;padding:.2rem .5rem;border-radius:.4rem}.quick-create-close:hover{background:#f0f4f1;color:var(--ink)}.quick-create-error{padding:.6rem .75rem;border-radius:.55rem;background:#f9e8e8;color:#7d2929;font-size:.88rem}.quick-create-actions{display:flex;justify-content:flex-end;gap:.6rem;margin-top:.3rem}.quick-create-actions .button{margin:0}
.buckle-form{display:flex;align-items:end;gap:.6rem;margin:.5rem 0 0;max-width:360px}.buckle-form label{flex:1;font-weight:700}.buckle-save-state{font-size:.8rem;font-weight:800;color:var(--green-dark);min-width:5.5rem;padding-bottom:.7rem}.buckle-save-state.error{color:var(--danger)}.buckle-readonly{margin:.35rem 0 0}
.buckle-builder{grid-column:1/-1;border-top:1px solid var(--line);padding-top:1rem}.buckle-builder .buckle-form{margin-top:.6rem}.buckle-builder .buckle-form select{max-width:320px}.buckle-builder .buckle-readonly{margin:.5rem 0 0;font-weight:700}
.task-status-card,.task-status-result{max-width:640px;margin-bottom:1rem}.task-status-card h2{margin:0 0 .3rem}.task-status-list{list-style:none;padding:0;margin:1rem 0;display:grid;gap:.45rem}.task-status-list li{padding:.6rem .75rem;border:1px solid var(--line);border-radius:.55rem}.task-status-list span{display:block;color:var(--muted);font-size:.82rem}.task-status-actions{display:grid;gap:.6rem}.task-status-actions .button{margin:0;padding:1rem;font-size:1.05rem}.task-status-result h2,.task-status-result h3{margin:.2rem 0 .4rem}.task-status-result ul{margin:0 0 .6rem;padding-left:1.2rem}.task-status-errors{color:var(--danger)}
.task-status-confirm{padding:.7rem .9rem;border:1px solid #e7c98a;background:#fff6e6;border-radius:.6rem;color:#684a19;font-weight:700}
.task-status-progress{display:grid;gap:.35rem;padding:.8rem .9rem;border:1px solid var(--line);border-radius:.65rem;margin-top:.6rem}.task-status-progress div{display:flex;justify-content:space-between;gap:.75rem;flex-wrap:wrap}.task-status-progress span{color:var(--muted);font-size:.85rem}.task-status-progress p{margin:0;font-weight:700}.task-status-progress .button{justify-self:start;margin:0}
.pagination{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-top:1.2rem}.pagination-summary{color:var(--muted);font-size:.82rem;font-weight:700}.pagination-links{display:flex;gap:.35rem;flex-wrap:wrap}.pagination-item{min-width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;padding:0 .6rem;border:1px solid var(--line);border-radius:.55rem;background:#fff;text-decoration:none;font-weight:750;color:inherit}.pagination-item:hover,.pagination-item:focus-visible{background:var(--green-soft);border-color:#9ab8aa}.pagination-item.is-active{background:var(--green);border-color:var(--green);color:#fff}.pagination-item.is-disabled{color:var(--muted);background:#f2f4f3;cursor:not-allowed}
.nav-primary{display:grid;gap:.3rem;margin-bottom:.7rem}.nav-notification-count{margin-left:auto;background:var(--green-soft);color:var(--green-dark);border-radius:99px;padding:0 .4rem;font-size:.75rem}.context-navigation{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;margin-bottom:1rem;font-size:.85rem}.context-return{margin-left:auto;font-weight:700}.sidebar summary:focus-visible{outline:3px solid #176a5080;outline-offset:2px}.nav-group summary{min-height:44px}.content{min-width:0}.sidebar nav a{min-height:44px}.flow-secondary-link{font-size:.85rem;color:var(--muted)}
@media(max-width:900px){.app-frame{display:block}.topbar{height:66px;padding:0 .85rem}.nav-toggle{display:block;background:transparent;color:#fff;border:1px solid #547064;border-radius:.45rem;padding:.45rem .65rem;min-height:44px}.sidebar{display:none;position:fixed;top:66px;left:0;right:0;bottom:0;height:auto;z-index:19;overflow:auto}.sidebar.open{display:flex}.navigation-open{overflow:hidden}.content{padding:1.25rem}.brand small{display:none}.context-return{flex-basis:100%;margin-left:0}}
.navigation-mode-label{font-size:.7rem;font-weight:800;letter-spacing:.07em;color:var(--muted);text-transform:uppercase;margin:0 0 .3rem}.dash-quick-section>summary{font-weight:750;cursor:pointer;min-height:44px;padding:.75rem 0}.dash-quick-section[open]>summary{margin-bottom:.5rem}
@media(max-width:720px){.brand strong{font-size:.82rem}.brand span:last-child{max-width:125px}.brand-mark{width:34px;height:34px}.user-summary{gap:.3rem}.topbar .button-quiet{padding:.55rem .65rem}.nav-toggle{padding:.45rem .55rem}}
.pdf-photo-picker{grid-column:1/-1}.pdf-photo-picker>summary{display:flex;align-items:center;gap:.75rem;list-style:none;cursor:pointer}.pdf-photo-picker>summary::-webkit-details-marker{display:none}.pdf-photo-picker>summary .button{margin:0}.pdf-photo-picker[open]>summary .button{background:#1d4d3a;color:#fff}.pdf-photo-options{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:.6rem}.pdf-photo-option{display:grid;gap:.3rem;justify-items:center;width:96px;padding:.35rem;border:2px solid var(--line);border-radius:.7rem;background:var(--surface);cursor:pointer;font:inherit;font-size:.78rem;font-weight:700;color:var(--muted)}.pdf-photo-option img{width:100%;height:72px;object-fit:contain;border-radius:.4rem;background:#f6f8f6}.pdf-photo-option:hover{border-color:#9db8a8}.pdf-photo-option.is-selected{border-color:#1d4d3a;color:#1d4d3a;background:#eef5f0}
.product-edit-dialog{width:min(760px,calc(100vw - 32px));max-height:calc(100vh - 48px);overflow:auto}.product-edit-dialog>*+*{margin-top:1rem}.product-edit-upload{display:flex;flex-wrap:wrap;align-items:end;gap:.75rem;padding:.9rem;border:1px dashed #9db8a8;border-radius:.8rem;background:#f6faf7}.product-edit-upload label{flex:1 1 260px;display:grid;gap:.35rem}.product-edit-images{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:.75rem}.product-edit-images article{display:grid;gap:.4rem;padding:.5rem;border:1px solid var(--line);border-radius:.7rem}.product-edit-images img{width:100%;height:120px;object-fit:contain;background:#f6f8f6;border-radius:.45rem}.product-edit-images .image-actions{display:flex;gap:.4rem;flex-wrap:wrap}.product-edit-images .image-actions .button{margin:0;padding:.35rem .6rem;font-size:.8rem}.product-edit-info{display:grid;gap:.7rem;padding:.9rem;border:1px solid var(--line);border-radius:.8rem}.product-edit-info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:.7rem}.product-edit-info-grid label{display:grid;gap:.3rem;font-weight:700}.product-edit-info-grid .wide{grid-column:1/-1}.product-edit-info-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.6rem}.product-edit-info-actions p{margin:0;font-size:.82rem}.product-edit-info-actions .button{margin:0}
.product-edit-images .image-actions .muted{font-size:.74rem;line-height:1.3}
.pdf-photo-state{margin:.4rem 0 0;font-size:.82rem;color:var(--muted);min-height:1em}.pdf-photo-state.error{color:#7d2929}
.image-zoom{padding:0;border:0;font:inherit;cursor:zoom-in}.product-thumb.image-zoom{display:grid}.product-edit-images .image-zoom{display:block;width:100%;background:none}
.pdf-photo-item{position:relative}.image-zoom-badge{position:absolute;top:.3rem;right:.3rem;width:1.7rem;height:1.7rem;display:grid;place-items:center;padding:0;border:1px solid var(--line);border-radius:50%;background:rgba(255,255,255,.92);color:#1d4d3a;font-size:.95rem;line-height:1;cursor:zoom-in;box-shadow:0 2px 6px rgba(17,40,31,.15)}.image-zoom-badge:hover{background:#fff;border-color:#1d4d3a}
.image-lightbox{max-width:min(1100px,calc(100vw - 32px));max-height:calc(100vh - 32px);padding:0;border:0;border-radius:.9rem;background:#fff;box-shadow:0 30px 80px rgba(0,0,0,.4);cursor:zoom-out;overflow:hidden}.image-lightbox::backdrop{background:rgba(10,20,15,.8)}.image-lightbox img{display:block;max-width:min(1100px,calc(100vw - 32px));max-height:calc(100vh - 32px);object-fit:contain}.image-lightbox-close{position:absolute;top:.5rem;right:.5rem;width:2.2rem;height:2.2rem;border:0;border-radius:50%;background:rgba(255,255,255,.9);font-size:1.5rem;line-height:1;cursor:pointer;color:#1d2a24}
.apply-main-color[hidden]{display:none}
.order-totals-summary{display:flex;flex-wrap:wrap;gap:.4rem .9rem;align-items:baseline}.order-totals-summary strong{color:var(--ink);font-size:1.05rem}

[data-leather-bulk][hidden]{display:none}
.leather-parts form[data-inline-add="leather"]{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem}
.apply-main-color{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem}.apply-main-color .button{white-space:nowrap}
.size-run-builder>summary{list-style:none;cursor:pointer}.size-run-builder>summary::-webkit-details-marker{display:none}.size-run-builder[open]>summary{margin-bottom:1rem}.size-chevron{display:inline-block;transition:transform .15s}.size-run-builder[open] .size-chevron{transform:rotate(90deg)}.size-summary{font-weight:700;color:var(--ink,inherit)}
.colorway-main-color-field{margin-top:1rem;padding:1rem;background:#fff;border:1px solid var(--line);border-radius:.65rem}.colorway-main-color-field label{display:block;font-weight:700}.colorway-main-color-field input[type="text"]{width:100%;margin-top:.4rem}
.combo-source{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none;overflow:hidden}.leather-part-form input[data-combo-input],.component-form input[data-combo-input]{width:100%}
.order-info-bar{position:sticky;top:66px;z-index:17;display:flex;flex-wrap:wrap;gap:.4rem 1.75rem;align-items:baseline;margin:0 0 1rem;padding:.55rem 1rem;background:#fff;border:1px solid var(--line);border-radius:.65rem;box-shadow:0 2px 8px rgba(17,40,31,.08)}.order-info-bar span{display:inline-flex;align-items:baseline;gap:.4rem;white-space:nowrap}.order-info-bar small{color:var(--muted);font-size:.75rem;text-transform:uppercase;letter-spacing:.04em}.order-info-bar strong{font-size:1rem}
.size-run-builder>summary{width:100%;box-sizing:border-box}
.design-tools{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:flex-start;gap:.6rem}.design-tools>.pdf-photo-picker,.design-tools>.copy-configuration-panel{grid-column:auto;flex:0 0 auto;width:auto}.design-tools>[open]{flex:1 1 100%}.design-tools>.copy-configuration-panel{padding:.35rem .7rem;font-size:.85rem}.design-tools>.copy-configuration-panel>summary{white-space:nowrap}
.order-info-totals{margin-left:auto}.order-info-totals~.order-info-totals{margin-left:0}
details.pdf-readiness>summary{cursor:pointer}
/* ===== Order page workspace (2026-10-29, v2 — matches the approved mockup) ===== */
.order-header{position:sticky;top:72px;z-index:18;display:flex;flex-wrap:wrap;align-items:center;gap:.6rem 1.4rem;margin:-2.25rem -2.25rem 1.5rem;padding:.9rem 2.25rem;background:#fff;border-bottom:1px solid var(--line);box-shadow:0 6px 18px rgba(17,40,31,.05)}
.order-header h1{margin:0;font-size:1.85rem;line-height:1.1;font-weight:800;letter-spacing:-.01em}
.order-header-back{font-weight:650;text-decoration:none;color:var(--green-dark)}
.order-header-revision{font-size:.74rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--green)}
.order-header-meta{display:flex;flex-wrap:wrap;gap:.35rem 1.1rem;color:var(--muted)}
.order-header-meta strong{color:var(--ink)}
.order-header-kpis{display:flex;flex-wrap:wrap;align-items:baseline;gap:.4rem 1.4rem;margin-left:auto;color:var(--muted);font-size:.92rem}
.order-header-kpis strong{font-size:1.3rem;color:var(--ink)}
.order-header-save{display:inline-flex;align-items:center;gap:.35rem;color:var(--green);font-weight:650;font-size:.92rem}
.order-header-save::before{content:"";width:.7rem;height:.38rem;border-left:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg) translateY(-2px)}
.order-header-save.save-failed{color:var(--danger)}.order-header-save.save-failed::before{display:none}
.order-header-actions{display:flex;gap:.6rem;align-items:center}
.order-header-actions form{margin:0}
.order-header .button{margin:0}
.order-workspace{display:grid;grid-template-columns:300px minmax(0,1fr);gap:1.6rem;align-items:start}
.order-workspace-main{min-width:0;display:grid;gap:1.25rem}
.order-workspace-main>*{margin:0}
.order-workspace .panel{border-radius:1rem}
/* navigator */
.design-rail{position:sticky;top:166px;max-height:calc(100vh - 182px);overflow-y:auto;background:#fff;border:1px solid var(--line);border-radius:1rem;padding:1.1rem;display:flex;flex-direction:column;gap:.9rem}
.design-rail-heading{display:flex;align-items:center;justify-content:space-between;gap:.5rem}
.design-rail-heading h2{margin:0;font-size:1.1rem;font-weight:800}
.design-rail-heading h2 span{color:var(--muted);font-weight:500}
.design-rail-tools{display:flex;gap:.25rem}
.design-rail-tool{border:0;background:transparent;font:inherit;font-size:.92rem;font-weight:650;color:var(--ink);padding:.35rem .6rem;border-radius:.5rem;cursor:pointer;min-height:36px}
.design-rail-tool:hover{background:#eef4f0}
.design-rail-list{list-style:none;margin:0;padding:0;display:grid;gap:.2rem}
.design-rail-item{display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:.75rem;align-items:center;padding:.6rem .75rem;border-radius:.75rem;text-decoration:none;color:var(--ink)}
.design-rail-item:hover{background:#eef4f0;color:var(--ink)}
.design-rail-item[aria-current="true"]{background:var(--green-soft)}
.design-rail-number{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#eef2ef;font-size:.85rem;font-weight:800}
.design-rail-item[aria-current="true"] .design-rail-number{background:var(--green);color:#fff}
.design-rail-text{display:grid;gap:.2rem;min-width:0}
.design-rail-title{display:flex;align-items:center;gap:.4rem;min-width:0;white-space:nowrap}
.design-rail-title strong{font-size:1rem}
.design-rail-title small{color:#3d4a44;font-size:.92rem}
.design-rail-issue{display:inline-grid;place-items:center;width:17px;height:15px;font-size:.62rem;font-weight:900;color:#a35a07;clip-path:polygon(50% 0,100% 100%,0 100%);background:#e9a23b;padding-top:3px}
.design-rail-issue.is-error{background:var(--danger);color:#fff}
.design-rail-meta{display:flex;align-items:center;gap:.3rem}
.design-rail-meta small{color:var(--muted);font-size:.82rem;margin-left:.15rem}
.design-rail-pairs{font-size:.9rem;font-weight:800}
.order-workspace .design-rail-add{width:100%;margin:0;min-height:48px;font-size:1rem}
.design-rail-links{display:grid;gap:.1rem;border-top:1px solid var(--line);padding-top:.7rem}
.design-rail-links a{display:flex;align-items:center;gap:.4rem;padding:.55rem .75rem;border-radius:.5rem;text-decoration:none;color:var(--ink)}
.design-rail-links a:hover{background:#eef4f0}
.design-rail-badge{margin-left:auto;padding:.08rem .5rem;border-radius:999px;background:#fdf0d8;color:#7a4105;font-size:.75rem;font-weight:800}
.design-rail-badge.is-error{background:#fbe5e5;color:var(--danger)}
.design-rail-keys{display:grid;grid-template-columns:auto 1fr;gap:.45rem .75rem;align-items:center;margin:0;padding:.8rem;background:#f3f6f4;border-radius:.75rem;font-size:.88rem}
.design-rail-keys dt{display:flex;gap:.3rem}.design-rail-keys dd{margin:0}
.design-rail-keys kbd{min-width:2.1rem;text-align:center;border:1px solid var(--line);font-size:.75rem}
.color-dot{display:inline-block;flex:none;width:12px;height:12px;border-radius:50%;background:#fff;border:1px solid rgba(0,0,0,.18)}
.color-dot-lg{width:22px;height:22px}
/* order info */
.order-form-details>summary{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem;cursor:pointer;list-style:none}
.order-form-details>summary::-webkit-details-marker{display:none}
.order-form-details>summary h2{margin:0 .5rem 0 0;font-size:1.3rem}
.order-info-chips{display:flex;flex-wrap:wrap;gap:.45rem}
.info-chip{padding:.35rem .8rem;border-radius:999px;background:#f1f4f2;font-size:.95rem}
.info-chip strong.is-missing{color:var(--danger)}
.order-workspace .order-form-details-button{margin:0 0 0 auto}
.order-form-details .when-open,.order-form-details[open] .when-closed{display:none}
.order-form-details[open] .when-open{display:inline}
.order-form-details[open]>summary{margin-bottom:1.1rem}
.order-workspace #order-info{padding:1.1rem 1.4rem}
/* designs toolbar */
.order-workspace .order-products-panel{background:transparent;border:0;padding:0;box-shadow:none}
.order-products-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem 1rem;margin-bottom:.4rem}
.order-products-toolbar h2{margin:0;font-size:1.6rem;font-weight:800}
.order-products-toolbar .order-totals-summary{display:flex;gap:.3rem;color:var(--muted)}
.order-products-toolbar .order-totals-summary strong{font-weight:500}
.order-products-toolbar .order-totals-summary>span+span::before{content:"· "}
.order-workspace .bulk-action-bar{display:flex;flex-wrap:wrap;align-items:center;gap:.45rem;margin:0 0 0 auto;padding:.35rem .4rem .35rem .9rem;background:#fff;border:1px solid var(--line);border-radius:.75rem}
.order-workspace .bulk-action-bar input{width:5.5rem;height:44px;border:1px solid #cdd7d2;border-radius:.55rem;padding:0 .7rem;font:inherit}
.order-workspace .bulk-action-bar .button{margin:0;min-height:44px}
.bulk-state{flex-basis:100%;font-size:.8rem;color:var(--muted)}.bulk-state:empty{display:none}
/* insert slots */
.order-workspace .ordered-products{display:grid;gap:0}
.design-insert-slot{display:flex;align-items:center;justify-content:center;position:relative;min-height:3.2rem}
.design-insert-slot::before{content:"";position:absolute;left:0;right:0;top:50%;border-top:1px solid var(--line)}
.design-insert-button{position:relative;display:inline-flex;align-items:center;gap:.35rem;min-height:36px;padding:.2rem 1rem;border-radius:999px;border:1px dashed #9fb8ab;background:#fff;color:var(--green-dark);font:inherit;font-size:.92rem;font-weight:750;cursor:pointer}
.design-insert-button:hover{background:var(--green);border-color:var(--green);border-style:solid;color:#fff}
.design-insert-end{display:flex;justify-content:center;margin-top:1rem}
/* product picker */
.product-picker[hidden]{display:none}
.order-workspace .product-picker{margin:1rem 0 0;border:2px solid var(--green);border-radius:1rem;box-shadow:0 10px 28px rgba(17,40,31,.12)}
.order-workspace .ordered-products>.product-picker{margin:0 0 .5rem}
.product-picker-heading{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem;margin-bottom:.75rem}
.product-picker-heading h2{margin:0}
.product-picker-position{padding:.2rem .7rem;border-radius:999px;background:var(--green-soft);color:var(--green-dark);font-size:.82rem;font-weight:750}
.order-workspace .product-picker-close{margin:0 0 0 auto;font-size:1.4rem;line-height:1;padding:.3rem .7rem}
.product-picker .picker-results{max-height:420px;overflow-y:auto}
/* design card */
.order-workspace .ordered-product{display:block;padding:0;background:#fff;border:1px solid var(--line);border-radius:1rem;scroll-margin-top:170px}
.order-workspace .ordered-product.is-active{border-color:var(--green);box-shadow:0 0 0 3px rgba(23,106,80,.12)}
.design-head{display:grid;grid-template-columns:44px 92px minmax(0,1fr) auto auto;gap:1rem;align-items:center;padding:1rem 1.25rem}
.order-workspace .order-position{width:42px;height:42px;font-size:1rem;font-weight:800}
.order-workspace .ordered-product.is-active .order-position{background:var(--green);color:#fff}
.order-workspace .design-head .product-thumb{width:92px;height:72px;aspect-ratio:auto;border-radius:.75rem;background:#eef3f0}
.design-identity{min-width:0;display:grid;gap:.35rem}
.design-identity h3,.design-identity p{margin:0}
.design-title{display:flex;align-items:baseline;gap:.6rem;flex-wrap:wrap}
.design-title .product-code{font-size:1.5rem;font-weight:800}
.design-type{font-size:1.05rem;color:#3d4a44}
.design-note{color:var(--muted);font-size:.9rem}
.design-summary{display:flex;flex-wrap:wrap;gap:.4rem}
.design-summary-colors{display:contents}
.design-chip{display:inline-flex;align-items:center;gap:.4rem;padding:.25rem .7rem .25rem .45rem;border-radius:999px;background:#f1f4f2;font-size:.92rem;font-weight:650}
.design-chip .color-dot{width:16px;height:16px}
.design-chip-empty{color:var(--muted);padding-left:.7rem}
.design-badges{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:.6rem}
.design-issue{display:inline-flex;align-items:center;gap:.35rem;padding:.4rem .8rem;border-radius:999px;background:#fdf0d8;color:#7a4105;font-size:.9rem;font-weight:750}
.design-issue.is-error{background:#fbe5e5;color:var(--danger)}
.design-total{display:inline-flex;align-items:baseline;gap:.25rem;padding:.45rem .9rem;border-radius:.65rem;background:#11281f;color:#fff;font-size:.95rem;white-space:nowrap}
.design-total strong{font-size:1.25rem}
.order-workspace .order-product-actions{display:flex;flex-wrap:wrap;gap:.45rem;align-items:center;justify-content:flex-end;grid-column:auto}
.order-workspace .order-product-actions .button{margin:0}
.order-workspace .order-product-actions .icon-button{width:48px;height:46px;min-width:0;min-height:0}
.order-workspace .design-toggle{background:transparent;border:0}
.design-toggle svg{transition:transform .15s}
.order-workspace .ordered-product.is-collapsed .design-toggle svg{transform:rotate(180deg)}
.design-body{border-top:1px solid var(--line);padding:1.25rem 1.4rem 1.4rem;display:grid;gap:1.4rem}
.order-workspace .ordered-product.is-collapsed .design-body{display:none}
.design-config-row{display:flex;flex-wrap:wrap;align-items:flex-end;gap:1rem 2rem}
/* sizes */
.order-workspace .size-run-builder{display:flex;flex-wrap:wrap;align-items:flex-end;gap:.45rem;border:0;padding:0;margin:0}
.order-workspace .size-run-heading{flex-basis:100%;display:block;margin:0}
.order-workspace .size-run-heading h4{margin:0;font-size:.95rem;font-weight:750}
.order-workspace .size-run-heading h4 span{font-weight:500;color:var(--muted)}
.order-workspace .size-quantity-list{display:flex;flex-wrap:wrap;gap:.45rem;margin:0}
.order-workspace .size-quantity-row{position:relative;display:flex;flex-direction:column;align-items:center;gap:.25rem;padding:0;border:0;background:transparent}
.order-workspace .size-quantity-row>strong{font-size:.8rem;color:#3d4a44}
.order-workspace .size-quantity-row form{margin:0;position:relative}
.order-workspace .size-quantity-row input[name="quantity"]{width:64px;height:48px;text-align:center;border:1px solid #cdd7d2;border-radius:.55rem;font:inherit;font-size:1.05rem;padding:0 .3rem}
.order-workspace .size-quantity-value{display:grid;place-items:center;width:64px;height:48px;border:1px solid var(--line);border-radius:.55rem;font-weight:700}
.order-workspace .size-quantity-row .size-remove{position:absolute;top:-6px;right:-6px;width:22px;height:22px;min-width:0;min-height:0;padding:0;border-radius:50%;opacity:0;transition:opacity .12s}
.order-workspace .size-quantity-row .size-remove svg{width:12px;height:12px}
.order-workspace .size-quantity-row:hover .size-remove,.order-workspace .size-quantity-row .size-remove:focus-visible{opacity:1}
.order-workspace .pair-total{display:inline-grid;place-items:center;min-width:56px;height:48px;padding:0 .7rem;border-radius:.55rem;background:var(--green-soft);color:var(--green-dark);font-size:0;font-weight:800}
.order-workspace .pair-total::before{content:"=";font-size:1rem}
.order-workspace .pair-total [data-pair-total]{font-size:1rem}
.order-workspace .pair-total{display:inline-flex;align-items:center;justify-content:center}
.size-run-tools{flex-basis:auto}
.size-run-tools>summary,.design-tools>details>summary,.preset-apply-details>summary{list-style:none;cursor:pointer}
.size-run-tools>summary::-webkit-details-marker,.design-tools>details>summary::-webkit-details-marker,.preset-apply-details>summary::-webkit-details-marker{display:none}
.size-run-tools>summary{display:inline-flex;align-items:center;height:48px;padding:0 .6rem;font-weight:700;color:var(--green-dark);border-radius:.55rem}
.size-run-tools>summary:hover{background:#eef4f0}
.size-run-tools[open]{flex-basis:100%;padding:.9rem;background:#f7faf8;border:1px solid var(--line);border-radius:.75rem}
.order-workspace .size-run-builder>.empty-state{flex-basis:100%;padding:1rem;text-align:left}
.order-workspace .size-run-builder>.empty-state h5,.order-workspace .size-run-builder>.empty-state p{margin:0}
/* toka */
.order-workspace .buckle-builder{border:0;padding:0;margin:0}
.order-workspace .buckle-builder h4,.order-workspace .buckle-form label{display:flex;flex-direction:column;gap:.45rem;margin:0;font-size:.95rem;font-weight:750}
.order-workspace .buckle-builder h4 span,.order-workspace .buckle-form label span{display:contents;font-weight:750}
.order-workspace .buckle-form{position:relative;margin:0}
.order-workspace .buckle-builder .buckle-form select{width:260px;max-width:100%;height:48px;border:1px solid #cdd7d2;border-radius:.55rem;padding:0 .8rem;font:inherit;font-weight:650;background:#fff}
/* design tools (PDF photo, copy settings, edit product) */
.order-workspace .design-tools{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem 1.75rem;margin-left:auto}
.order-workspace .design-tools:has(>details[open]){flex-basis:100%}
.order-workspace .design-tools>details{grid-column:auto;flex:0 0 auto;width:auto;padding:0;background:transparent;border:0;font-size:1rem}
.order-workspace .design-tools>details[open]{flex:1 1 100%;order:9;padding:.9rem;background:#f7faf8;border:1px solid var(--line);border-radius:.75rem}
.order-workspace .design-tools>details>summary,.design-tool-link{border:0;background:transparent;padding:.5rem .25rem;font:inherit;font-weight:700;color:var(--ink);cursor:pointer;white-space:nowrap}
.order-workspace .design-tools>details>summary:hover,.design-tool-link:hover{color:var(--green)}
/* colours */
.order-workspace .colorway-builder{display:grid;gap:1rem;margin:0;padding:0;border:0}
.order-workspace .colorway-builder-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem}
.order-workspace .colorway-builder-heading>div:first-child{display:flex;align-items:baseline;gap:.45rem}
.order-workspace .colorway-builder-heading h4{margin:0;font-size:1.15rem;font-weight:800}
.order-workspace .colorway-builder-heading>div:first-child span{color:var(--muted);font-size:1.05rem}
.colorway-builder-tools{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem 1.5rem}
.colorway-builder-tools form{margin:0}
.colorway-builder-tools .button{margin:0;min-height:44px}
.apply-all-state{font-style:normal;font-size:.82rem;color:var(--muted)}.apply-all-state:empty{display:none}
.order-workspace .colorway-list{display:grid;gap:1rem}
.order-workspace .colorway-card{padding:0;background:#f8faf9;border:1px solid #dfe7e2;border-radius:.85rem}
.order-workspace .colorway-card-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.6rem 1rem;padding:.8rem 1.1rem}
.colorway-heading-main{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem 1.1rem}
.order-workspace .colorway-card-heading .bulk-check{font-size:.92rem;gap:.45rem}
.order-workspace .colorway-card-heading .bulk-check input{width:18px;height:18px}
.order-workspace .colorway-card-heading h5.colorway-number{margin:0;font-size:1.05rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--green)}
.colorway-inline-field{display:inline-flex;align-items:center;gap:.6rem;font-size:.9rem;font-weight:700;color:#3d4a44}
.colorway-inline-field input[type="text"],.colorway-inline-field input[type="number"]{height:46px;border:1px solid #cdd7d2;border-radius:.55rem;padding:0 .8rem;font:inherit;font-weight:650;font-size:1rem;color:var(--ink);background:#fff}
.colorway-main-color-field input[type="text"]{width:235px}
.colorway-box-field input{width:78px;text-align:center}
.colorway-inline-value{font-weight:700}
.colorway-pairs{font-weight:750;font-size:.95rem}
.order-workspace .colorway-actions{display:flex;gap:.4rem;align-items:center}
.order-workspace .colorway-actions form{margin:0}
.order-workspace .colorway-actions .button{margin:0;min-height:40px}
.order-workspace .colorway-actions .icon-button{width:42px;height:40px;min-width:0;min-height:0}
.colorway-body{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(260px,1fr);gap:1.1rem;padding:0 1.1rem 1.1rem;align-items:start}
.order-workspace .colorway-summary{margin:0 1.1rem .8rem}
.order-workspace .leather-parts{margin:0;padding:.9rem;background:#fff;border:1px solid var(--line);border-radius:.75rem}
.order-workspace .leather-part-header,.order-workspace .leather-part-row{display:grid;grid-template-columns:64px minmax(0,1fr) minmax(0,1fr) minmax(0,1.3fr) 40px;gap:.5rem;align-items:center}
.order-workspace .leather-part-header{margin-bottom:.35rem;font-size:.8rem;font-weight:700;color:#3d4a44;justify-content:initial}
.order-workspace .leather-part-header>span::before{content:"Deri "}
.order-workspace .leather-part-header>span{color:#3d4a44}
.order-workspace .leather-part-list{display:grid;gap:.5rem;margin:0}
.order-workspace .leather-part-row{position:relative;padding:0;border:0;background:transparent}
.order-workspace .leather-part-row>strong{font-size:1rem}
.order-workspace .leather-part-row>p{grid-column:2/-1;margin:0}
.order-workspace .leather-part-form{display:contents}
.order-workspace .leather-part-form label{display:block;margin:0;font-weight:400}
.order-workspace .leather-part-form input:not([type="hidden"]){width:100%;height:46px;border:1px solid #cdd7d2;border-radius:.55rem;padding:0 .8rem;font:inherit;font-weight:650;box-sizing:border-box}
.order-workspace .leather-part-form input[name="notes"]{font-weight:400}
.order-workspace .leather-part-row>form:last-child{margin:0}
.order-workspace .leather-part-row .button.danger{width:40px;height:40px;min-width:0;min-height:0;padding:0}
.order-workspace .leather-parts form[data-inline-add="leather"]{display:flex;gap:1rem;margin-top:.55rem}
.order-workspace .leather-parts form[data-inline-add="leather"] .design-tool-link{color:var(--green-dark)}
.order-workspace .leather-parts form[data-inline-add="leather"] .design-tool-link[hidden]{display:none}
.colorway-side{display:grid;gap:.8rem}
.order-workspace .component-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.6rem;margin:0}
.order-workspace .component-panel{padding:0;background:transparent;border:0}
.order-workspace .component-form{position:relative;margin:0}
.order-workspace .component-form label,.order-workspace .colorway-core-form label{display:flex;flex-direction:column;gap:.4rem;font-size:.9rem;font-weight:700;color:#3d4a44}
.order-workspace .component-form input[data-combo-input],.order-workspace .component-form select:not(.combo-source){width:100%;height:46px;border:1px solid #cdd7d2;border-radius:.55rem;padding:0 .8rem;font:inherit;font-weight:650;font-size:1rem;color:var(--ink);background:#fff;box-sizing:border-box}
.order-workspace .colorway-core-form{position:relative;display:block;margin:0;padding:0;background:transparent;border:0}
.order-workspace .colorway-core-form textarea{min-height:46px;height:46px;padding:.65rem .8rem;border:1px solid #cdd7d2;border-radius:.55rem;font:inherit;resize:vertical}
.order-workspace .component-heading{display:grid;gap:.2rem}
.order-workspace .component-heading h6{margin:0;font-size:.85rem}
.preset-apply-details>summary{font-size:.85rem;font-weight:700;color:var(--green-dark)}
.preset-apply-details[open]{padding:.7rem;background:#fff;border:1px solid var(--line);border-radius:.6rem}
.order-workspace .colorway-card .apply-main-color{display:none}
.field-state{position:absolute;right:.2rem;bottom:-1.05rem;font-size:.7rem;color:var(--muted);white-space:nowrap;pointer-events:none}
.order-workspace .leather-part-row .field-state{bottom:auto;top:-1rem;right:3rem}
/* PDF + revisions */
.pdf-panel-heading{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem 1.2rem}
.pdf-panel-heading h2{margin:0;font-size:1.25rem}
.pdf-panel-heading .readiness-ok{color:var(--green);font-weight:650;font-size:.92rem}
.pdf-panel-limit{margin-left:auto;color:var(--muted);font-size:.85rem}
.order-workspace .pdf-action-buttons{display:flex;gap:.5rem}
.order-workspace .pdf-action-buttons form{margin:0}
.order-workspace .pdf-actions-panel,.order-workspace .revisions-panel{display:grid;gap:.9rem}
.order-workspace .pdf-actions-panel .button,.order-workspace .revisions-panel .button{margin:0}
.revisions-panel .duplicate-order-panel{margin-left:auto;padding:0;background:transparent;border:0}
.revisions-panel .duplicate-order-panel>summary{list-style:none;cursor:pointer}
.revisions-panel .duplicate-order-panel[open]{flex-basis:100%;margin-left:0}
.revision-form{display:flex;flex-wrap:wrap;gap:.6rem}
.revision-form label{flex:1 1 320px}
.revision-form input{width:100%;height:46px;border:1px solid #cdd7d2;border-radius:.55rem;padding:0 .8rem;font:inherit;box-sizing:border-box}
@media (max-width:1400px){
.colorway-body{grid-template-columns:1fr}
.design-head{grid-template-columns:44px 92px minmax(0,1fr) auto}
.design-badges{grid-column:3/-1;justify-content:flex-start;order:5}
}
@media (max-width:1180px){
.order-workspace{grid-template-columns:1fr}
.design-rail{position:static;max-height:none}
.design-rail-list{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}
.design-rail-keys{display:none}
}
@media (max-width:900px){
.order-header{top:66px;margin:-1.25rem -1.25rem 1.25rem;padding:.75rem 1.25rem}
.order-header-kpis{margin-left:0}
.design-head{grid-template-columns:40px 72px minmax(0,1fr)}
.design-badges,.order-workspace .order-product-actions{grid-column:1/-1;justify-content:flex-start}
.order-workspace .design-head .product-thumb{width:72px;height:56px}
.order-workspace .leather-part-header{display:none}
.order-workspace .leather-part-row{grid-template-columns:1fr 40px}
.order-workspace .leather-part-row>strong{grid-column:1/-1}
.order-workspace .leather-part-form label{grid-column:1/2}
.order-workspace .component-grid{grid-template-columns:1fr}
.colorway-main-color-field input[type="text"]{width:170px}
}
.order-workspace .design-tools>details>summary,.order-workspace .colorway-builder-tools .design-tool-link{display:inline-flex;align-items:center;justify-content:center;margin:0;padding:.68rem 1rem;border:0;border-radius:.55rem;background:var(--green);color:#fff;font:inherit;font-weight:750;white-space:nowrap;cursor:pointer;text-decoration:none}
.order-workspace .design-tools>details>summary:hover,.order-workspace .colorway-builder-tools .design-tool-link:hover{background:#125c44;color:#fff}
.order-workspace .design-tools>details[open]>summary{background:#125c44}
.order-workspace .design-tools .design-tool-link{display:inline-flex;align-items:center;justify-content:center;margin:0;padding:.68rem 1rem;border-radius:.55rem;background:var(--green);color:#fff;font-weight:750}
.order-workspace .design-tools .design-tool-link:hover{background:#125c44;color:#fff}
.order-workspace .design-tools{gap:.5rem}
.order-workspace .colorway-builder-tools{gap:.5rem}
.order-workspace .design-tools>details>summary,.order-workspace .design-tools .design-tool-link,.order-workspace .colorway-builder-tools .design-tool-link{min-height:44px;padding:0 1rem;font-size:15px;line-height:1.5}
/* Colour "Seç" checkbox: a clean custom checkbox; the colour card gets a soft green outline when selected */
.order-workspace .colorway-card-heading .bulk-check{display:inline-flex;align-items:center;gap:.55rem;min-height:44px;padding:0 .25rem;font-size:.95rem;font-weight:600;color:var(--muted);cursor:pointer;user-select:none}
.order-workspace .colorway-card-heading .bulk-check input{appearance:none;-webkit-appearance:none;position:relative;flex:none;width:22px;height:22px;margin:0;border:1.5px solid #b9c7c0;border-radius:6px;background:#fff;box-shadow:0 1px 2px rgba(17,40,31,.08);cursor:pointer;transition:border-color .15s,background-color .15s,box-shadow .15s}
.order-workspace .colorway-card-heading .bulk-check input::after{content:"";position:absolute;left:6.5px;top:2.5px;width:5px;height:10px;border:solid #fff;border-width:0 2.5px 2.5px 0;transform:rotate(45deg) scale(0);transition:transform .15s ease-out}
.order-workspace .colorway-card-heading .bulk-check:hover input{border-color:var(--green);box-shadow:0 0 0 4px rgba(23,106,80,.10)}
.order-workspace .colorway-card-heading .bulk-check input:checked{background:var(--green);border-color:var(--green)}
.order-workspace .colorway-card-heading .bulk-check input:checked::after{transform:rotate(45deg) scale(1)}
.order-workspace .colorway-card-heading .bulk-check input:focus-visible{outline:none;box-shadow:0 0 0 4px rgba(23,106,80,.25)}
.order-workspace .colorway-card-heading .bulk-check:has(input:checked){color:var(--green-dark)}
.order-workspace .colorway-card:has(.bulk-check input:checked){border-color:var(--green);box-shadow:0 0 0 3px rgba(23,106,80,.12)}
/* Colour rows: match the approved mockup (order-page-design.dc.html) — compact 36px fields, inline Ana renk, 32px row actions */
.order-workspace{font-family:'Fira Sans',system-ui,sans-serif}
.order-workspace .colorway-builder-heading h4{font-size:15px}
.order-workspace .colorway-builder-heading>div:first-child span{font-size:15px;font-weight:500;color:#4c5a53}
.order-workspace .colorway-list{gap:12px}
.order-workspace .colorway-card{border-color:#e1e8e4;border-radius:12px}
.order-workspace .colorway-card-heading{gap:10px 14px;padding:10px 12px}
.order-workspace .colorway-heading-main{gap:10px 14px}
.order-workspace .colorway-card-heading h5.colorway-number{font-size:14px;letter-spacing:.08em;color:#1a6a4f}
.order-workspace .colorway-card-heading .color-dot-lg{width:18px;height:18px}
.order-workspace .colorway-main-color-field{margin:0;padding:0;background:transparent;border:0;border-radius:0}
.order-workspace .colorway-inline-field{gap:8px;font-size:12px;font-weight:700;color:#4c5a53}
.order-workspace .colorway-card .colorway-inline-field input[type="text"],.order-workspace .colorway-card .colorway-inline-field input[type="number"],.order-workspace .colorway-card .leather-part-form input:not([type="hidden"]),.order-workspace .colorway-card .component-form input[data-combo-input],.order-workspace .colorway-card .component-form select:not(.combo-source),.order-workspace .colorway-card .colorway-core-form textarea{box-sizing:border-box;height:36px;min-height:36px;margin:0;padding:0 10px;border:1px solid #cdd7d2;border-radius:8px;background:#fff;font:inherit;font-size:13px;font-weight:600;color:#14231c}
.order-workspace .colorway-inline-field input::placeholder,.order-workspace .leather-part-form input::placeholder,.order-workspace .component-form input::placeholder,.order-workspace .colorway-core-form textarea::placeholder{color:#6b7972;font-weight:500}
.order-workspace .colorway-card .colorway-main-color-field input[type="text"]{width:180px;margin:0}
.order-workspace .colorway-box-field input{width:60px;padding:0 4px;text-align:center}
.order-workspace .colorway-pairs{font-size:12px;font-weight:700;color:#2c3b34}
.order-workspace .colorway-actions{gap:4px}
.order-workspace .colorway-actions .button{min-height:0;height:32px;padding:0 10px;font-size:13px;font-weight:600;border-radius:8px}
.order-workspace .colorway-actions .icon-button,.order-workspace .colorway-actions .button.danger{width:32px;height:32px;padding:0}
.order-workspace .colorway-actions svg{width:14px;height:14px}
.order-workspace .colorway-body{display:flex;flex-wrap:wrap;gap:14px;padding:0 12px 12px}
.order-workspace .leather-parts{flex:2 1 480px;min-width:0;padding:10px;border-color:#e6ebe8;border-radius:10px}
.order-workspace .colorway-side{flex:1 1 280px;min-width:0;gap:10px;align-content:start}
.order-workspace .leather-part-header,.order-workspace .leather-part-row{grid-template-columns:56px minmax(0,1fr) minmax(0,1fr) minmax(0,1.3fr) 32px;gap:6px}
.order-workspace .leather-part-header{margin:0;padding:0 0 4px;font-size:11px;color:#4c5a53}
.order-workspace .leather-part-header small{font-size:11px}
.order-workspace .leather-part-list{gap:6px}
.order-workspace .leather-part-row>strong{font-size:13px}
.order-workspace .leather-part-form input[name="notes"]{font-weight:600}
.order-workspace .leather-part-row .button.danger{width:32px;height:32px}
.order-workspace .leather-part-row .button.danger svg{width:13px;height:13px}
.order-workspace .leather-parts form[data-inline-add="leather"]{gap:4px;margin-top:6px}
.order-workspace .leather-parts form[data-inline-add="leather"] .design-tool-link{height:34px;padding:0 10px;border-radius:8px;font-size:13px;font-weight:600;color:#1a6a4f}
.order-workspace .leather-parts form[data-inline-add="leather"] .design-tool-link:hover{background:#e9efeb}
.order-workspace .component-grid{gap:8px}
.order-workspace .component-form label,.order-workspace .colorway-core-form label{gap:4px;font-size:12px;font-weight:600;color:#4c5a53}
.order-workspace .colorway-core-form textarea{display:block;width:100%;padding:9px 10px;line-height:16px;resize:none;overflow:hidden}
@media (max-width:720px){.order-workspace .leather-part-row{grid-template-columns:1fr 32px}.order-workspace .colorway-main-color-field input[type="text"]{width:170px}}
/* Fabrika PDF / Revizyon panels: one column like the mockup (the legacy 2-column grid squeezed the heading) */
.order-workspace .pdf-actions-panel{grid-template-columns:minmax(0,1fr);gap:12px}
.order-workspace .pdf-panel-heading h2{font-size:17px;font-weight:800}
.order-workspace .pdf-panel-heading .readiness-ok{font-size:13px;font-weight:600;color:#1a6a4f}
.order-workspace .pdf-panel-limit{font-size:12px;color:#4c5a53}
.order-workspace .pdf-readiness.warning summary{display:block;padding:10px 14px;font-size:13px;color:#6b3a05;cursor:pointer}
/* Design tools (PDF fotoğrafı, Başka tasarımdan kopyala) open as a floating panel under their button, so nothing on the page moves */
.order-workspace .design-tools:has(>details[open]){flex-basis:auto}
.order-workspace .design-tools>details,.order-workspace .design-tools>details[open]{position:relative;flex:0 0 auto;order:0;padding:0;background:transparent;border:0;border-radius:0}
.order-workspace .design-tools .tool-popover{position:absolute;top:calc(100% + .5rem);right:0;z-index:25;width:max-content;max-width:min(640px,calc(100vw - 3rem));padding:1rem;background:#fff;border:1px solid var(--line);border-radius:.85rem;box-shadow:0 18px 40px rgba(17,40,31,.16);animation:tool-popover-in .16s ease-out}
.order-workspace .design-tools .tool-popover::before{content:"";position:absolute;top:-7px;right:1.5rem;width:12px;height:12px;background:#fff;border-left:1px solid var(--line);border-top:1px solid var(--line);transform:rotate(45deg)}
.order-workspace .design-tools .tool-popover .pdf-photo-options{margin:0}
.order-workspace .design-tools .tool-popover p{margin:.5rem 0 0}.order-workspace .design-tools .tool-popover p:empty{display:none}
.order-workspace .design-tools .copy-configuration-panel .tool-popover{width:min(560px,calc(100vw - 3rem))}
@keyframes tool-popover-in{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
@media (max-width:900px){.order-workspace .design-tools .tool-popover{right:auto;left:0}.order-workspace .design-tools .tool-popover::before{right:auto;left:1.5rem}}
.factory-contact-fields{display:grid;grid-template-columns:repeat(2,minmax(140px,1fr));gap:.4rem;min-width:300px}
/* Order page: e-mail a generated PDF to a factory */
.generated-document-actions{display:flex;gap:.5rem;align-items:center}
.mail-factory{position:relative}
.mail-factory>summary{list-style:none;margin:0}.mail-factory>summary::-webkit-details-marker{display:none}
.mail-factory-list{position:absolute;right:0;top:calc(100% + 6px);z-index:20;display:grid;gap:4px;width:300px;max-height:320px;overflow-y:auto;padding:10px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow)}
.mail-factory-list>strong{font-size:13px;padding:2px 6px 6px}
.mail-factory-list form{margin:0}
.mail-factory-list button,.mail-factory-missing{display:flex;flex-direction:column;align-items:flex-start;width:100%;padding:8px 10px;border:0;border-radius:8px;background:transparent;font:inherit;text-align:left;cursor:pointer}
.mail-factory-list button:hover{background:var(--green-soft)}
.mail-factory-list button span,.mail-factory-missing span{font-weight:700;font-size:14px}
.mail-factory-list small{color:var(--muted);font-size:12px}
.mail-factory-missing{cursor:default;opacity:.55}
.mail-factory-list>a{font-size:13px;font-weight:600;color:var(--green);padding:6px 6px 2px}
