.factory-public{margin:0;background:#f5f7f5;color:#233e33;font:14px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}.factory-public *,.factory-board *{box-sizing:border-box}.factory-public button,.factory-public input,.factory-public select{font:inherit}.factory-top{height:76px;display:flex;align-items:center;gap:24px;padding:0 40px;background:#fff;border-bottom:1px solid #e1e8e2;color:#809086}.factory-logo{font-size:23px;font-weight:800;letter-spacing:-1px;text-decoration:none;color:#234f3e}.factory-logo span{font-weight:400}.factory-readonly{margin-left:auto;border:1px solid #d9e5dc;border-radius:30px;padding:5px 14px;font-size:12px;color:#426a54}.factory-main{max-width:1800px;margin:0 auto;padding:38px 40px 60px}.factory-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 28px}.factory-eyebrow{font-size:11px;letter-spacing:2px;font-weight:650;color:#688975}.factory-intro h1{font-size:30px;line-height:1.3;margin:9px 0 10px;letter-spacing:-.6px}.factory-intro p{margin:0;color:#718479;font-size:14px}.factory-mode{font-size:12px;background:#eaf0eb;color:#50705e;padding:8px 13px;border-radius:6px;white-space:nowrap}.factory-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:28px}.factory-stats>div{background:#fff;border:1px solid #e0e7e1;border-radius:12px;padding:20px 24px}.factory-stats>div>span{display:block;color:#728578;font-size:12px}.factory-stats strong{display:block;font-size:30px;line-height:1.4;margin-top:4px;font-weight:550;letter-spacing:-1px}.factory-stats small{font-size:12px;font-weight:400;margin-left:9px;color:#86988c;letter-spacing:0}.factory-panel{border:1px solid #dde5de;border-radius:14px;background:#fff;overflow:hidden}.factory-toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:24px}.factory-toolbar h2{display:inline;font-size:16px;margin:0 14px 0 0}.factory-toolbar #factory-count{font-size:12px;color:#86988c}.factory-controls{display:flex;gap:10px;align-items:center}.factory-search{display:flex;gap:10px;align-items:center;border:1px solid #dce5dc;border-radius:7px;padding:0 12px;background:#f9faf8}.factory-search>span{color:#7a8c7e;font-size:12px}.factory-search input{background:transparent;border:0!important;outline:0;padding:10px 0!important;width:215px!important;color:#263f33;font-size:13px}.factory-controls select{border:1px solid #dce5dc;border-radius:7px;background:#fff;color:#47604e;font-size:12px;padding:10px;max-width:200px;width:auto}.factory-button{padding:10px 16px;border-radius:7px;border:1px solid #d8e2d9;background:white;color:#2b5941;cursor:pointer;white-space:nowrap;font-size:13px}.factory-button:hover,.factory-serial button:hover{background:#edf3ee}.factory-table-wrap{overflow:auto;max-height:74vh}.factory-table{width:100%;border-collapse:collapse;min-width:1190px;text-align:left;font-size:13px;color:#304638}.factory-table th{padding:13px 16px;color:#718575;font-size:11px;font-weight:600;background:#f8faf7;white-space:nowrap;position:sticky;top:0;z-index:1;border-bottom:1px solid #e1e7df}.factory-table td{padding:19px 16px;border-top:1px solid #edf0e9;vertical-align:middle;line-height:1.7;white-space:normal}.factory-table tr:hover{background:#fcfdfb}.factory-table th:first-child{width:90px}.factory-table th:nth-child(2){width:250px}.factory-table th:nth-child(3){width:80px}.factory-table th:nth-child(4){width:94px}.factory-table th:nth-child(5){width:290px}.factory-table th:nth-child(6),.factory-table th:nth-child(7){width:116px}.factory-table th:last-child{width:175px}.factory-serial strong{display:block;font-size:19px;font-weight:600;color:#315c42;overflow-wrap:anywhere;max-width:115px}.factory-serial button{margin-top:4px;font-size:11px;border:1px solid #dfebe0;background:#f8fbf7;color:#55785b;padding:3px 9px;border-radius:5px;cursor:pointer}.factory-images{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}.factory-image{position:relative;display:flex;align-items:center;justify-content:center;width:68px;height:68px;flex-shrink:0;padding:0;border-radius:8px;border:1px solid #e7eae3;background:#fafbf8;overflow:hidden;cursor:zoom-in}.factory-image img{width:100%;height:100%;object-fit:contain;display:none}.factory-image.loaded img{display:block}.factory-image span{font-size:10px;color:#91a092;position:absolute}.factory-image.loaded span{display:none}.factory-product-name{font-weight:550!important;font-size:13px!important;color:#314b38;display:block;line-height:1.6}.factory-muted{color:#8b9a8c;font-size:12px}.factory-requirements,.factory-notes{white-space:pre-wrap!important;overflow-wrap:anywhere}.factory-table time{font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap;color:#647966}.factory-date-warning{color:#a47b39;font-size:12px}.factory-date-warning small{display:block;font-size:10px;color:#aa8b57}.factory-bottom{padding:14px 24px;border-top:1px solid #e8eee6;display:flex;justify-content:space-between;gap:15px;font-size:11px;color:#8b9a88}.factory-source{font-size:11px;color:#909f8c;margin:15px 0 0}.factory-empty{padding:55px;text-align:center;color:#809080}.factory-error{max-width:600px;margin:70px auto;padding:35px;background:white;border:1px solid #e2e8df;border-radius:14px}.factory-error h1{font-size:22px}.factory-error p{color:#748772}.factory-sharing{display:flex;align-items:center;justify-content:space-between;gap:20px;background:#edf3eb;border:1px solid #d9e3d3;border-radius:10px;padding:18px 22px;margin-bottom:24px}.factory-sharing strong{font-size:14px;color:#3c6446}.factory-sharing p{font-size:12px;color:#799073;margin:5px 0 0}.factory-board{color:#233e33}.factory-board .factory-intro h1{font-size:26px}.factory-lightbox{max-width:90vw;max-height:90vh;border:0;border-radius:14px;padding:40px 20px 20px;background:#fff}.factory-lightbox::backdrop{background:#1a332ba6;backdrop-filter:blur(4px)}.factory-lightbox img{display:block;max-width:80vw;max-height:75vh;object-fit:contain;margin:auto}.factory-lightbox>button{position:absolute;right:10px;top:2px;border:0;background:white;font-size:30px;color:#587459;cursor:pointer}.factory-public button:focus-visible,.factory-board button:focus-visible,.factory-search:focus-within,.factory-controls select:focus-visible{outline:2px solid #338465;outline-offset:2px}#factory-toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%)}
@media(max-width:1000px){.factory-toolbar{align-items:flex-start;flex-direction:column}.factory-controls{width:100%;flex-wrap:wrap}.factory-search{flex:1;min-width:200px}.factory-search input{width:100%!important}.factory-sharing{align-items:flex-start;flex-direction:column}.factory-main{padding:28px 22px}.factory-top{padding:0 22px}.factory-stats>div{padding:16px}.factory-intro{align-items:flex-start}.factory-bottom{flex-direction:column;gap:4px}}
@media(max-width:600px){.factory-main{padding:24px 14px}.factory-top{height:64px;padding:0 16px;gap:12px;font-size:11px}.factory-logo{font-size:21px}.factory-intro{flex-direction:column;gap:12px;margin-bottom:20px}.factory-intro h1{font-size:27px}.factory-mode{font-size:11px}.factory-stats{grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:20px}.factory-stats>div{padding:13px 17px}.factory-stats strong{font-size:26px}.factory-toolbar{padding:18px}.factory-controls select{flex:1;max-width:none}.factory-search{flex-basis:100%}.factory-table-wrap{max-height:none;overflow:visible}.factory-table{min-width:0;display:block}.factory-table thead{display:none}.factory-table tbody{display:block}.factory-table tr{display:grid;grid-template-columns:1fr 1fr;padding:18px;border-top:1px solid #e3e9de;gap:13px 18px}.factory-table td{display:block;border:0;padding:0;font-size:12px}.factory-table td::before{content:attr(data-label);display:block;color:#8a9a82;font-size:10px;margin-bottom:4px}.factory-table td:nth-child(2),.factory-table td:nth-child(5),.factory-table td:nth-child(8){grid-column:1/-1}.factory-table td:nth-child(2){grid-row:2}.factory-table td:first-child{grid-column:1}.factory-table td:nth-child(4){grid-column:2;grid-row:1;text-align:right}.factory-table td:nth-child(3){grid-row:3;grid-column:1/-1}.factory-serial{display:flex;align-items:center;gap:12px}.factory-serial strong{font-size:21px}.factory-serial button{margin:0}.factory-images{gap:8px}.factory-image{width:78px;height:78px}.factory-product-name{font-size:14px!important}.factory-bottom{padding:14px 18px}.factory-source{font-size:10px}.factory-readonly{padding:4px 8px}.factory-error{margin:35px 0;padding:25px}}
/* Production states and separate reference / CAD image lists. */
.factory-tabs{display:flex;gap:25px;padding:0 24px;border-bottom:1px solid #e2e9e2}.factory-tabs button{border:0;border-bottom:3px solid transparent;background:transparent;color:#809180;padding:13px 0;cursor:pointer;font:inherit;white-space:nowrap}.factory-tabs button[aria-pressed=true]{color:#23664d;border-bottom-color:#23664d;font-weight:600}.factory-tabs button span{display:inline-block;margin-left:8px;padding:0 6px;background:#f0f4ed;border-radius:4px;font-size:11px}.factory-status{display:inline-block;margin:7px 0 4px;padding:2px 9px;border-radius:5px;font-size:11px;white-space:nowrap}.factory-status.producing{background:#edf3fa;color:#587d9c}.factory-status.complete{background:#edf5ee;color:#547f58}.factory-serial button{display:block;white-space:nowrap}.factory-table{min-width:1290px}.factory-table th:first-child{width:115px}.factory-table th:nth-child(2){width:240px}.factory-table th:nth-child(3){width:185px}.factory-table th:nth-child(4){width:90px}.factory-table th:nth-child(5){width:225px}.factory-table th:nth-child(6),.factory-table th:nth-child(7){width:115px}.factory-table th:last-child{width:170px}.factory-image{width:88px;height:88px;background:#fff}.factory-product-name{margin-bottom:12px;max-width:230px}.factory-cad-cell .factory-image{width:130px;height:115px}.factory-ident,.factory-product-cell,.factory-cad-cell{vertical-align:top!important}.factory-table td{padding-top:23px;padding-bottom:23px}.factory-images{margin-bottom:0}.factory-edit-modal{max-width:900px!important;width:min(900px,96vw)!important}.factory-edit-modal .field{margin-bottom:16px}.factory-edit-modal textarea{width:100%;resize:vertical;min-height:76px}.factory-edit-modal .field p{margin:0;padding:11px 0}.factory-editor-images{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:22px 0 12px}.factory-editor-images>section{border:1px solid #dee7dc;border-radius:10px;padding:16px;background:#fbfcf9;min-width:0}.factory-editor-images h3{font-size:14px;margin:0 0 15px}.factory-edit-list{display:flex;flex-wrap:wrap;gap:14px;min-height:100px;margin-bottom:12px}.factory-edit-image{display:flex;flex-direction:column;align-items:center;width:100px;gap:8px}.factory-edit-image>img{width:88px;height:88px;border:1px solid #e4e9df;border-radius:8px;object-fit:contain;background:#fff}.factory-edit-image>div:last-child{display:flex;flex-direction:column;gap:3px;align-items:center}.factory-edit-image button:not(.factory-image){border:0;color:#557a60;background:transparent;font-size:10px;padding:2px;cursor:pointer}.factory-edit-image button[data-factory-remove]{color:#968b7e}.factory-upload{display:block;border:1px dashed #a5baa5;padding:10px 12px;border-radius:7px;color:#537659;font-size:12px;cursor:pointer}.factory-upload input{display:block;width:100%;font-size:10px;margin-top:7px}.factory-edit-modal .modal-body{overscroll-behavior:contain}.factory-edit-modal .form-grid{gap:18px}
@media(max-width:600px){.factory-table{min-width:0}.factory-table tr{gap:16px;grid-template-columns:1fr 1fr}.factory-table td:nth-child(n){grid-row:auto;grid-column:auto;padding:0;text-align:left}.factory-table td.factory-ident{grid-column:1/-1}.factory-table td.factory-product-cell,.factory-table td.factory-cad-cell,.factory-table td.factory-requirements,.factory-table td.factory-notes{grid-column:1/-1}.factory-table td.factory-quantity{grid-column:1/-1}.factory-table td.factory-empty{grid-column:1/-1;padding:28px 0}.factory-serial{flex-wrap:wrap}.factory-serial button{margin-left:auto}.factory-status{margin:0}.factory-product-name{max-width:none;margin-bottom:10px}.factory-cad-cell .factory-image{width:112px;height:100px}.factory-tabs{gap:22px;padding:0 18px}.factory-editor-images{grid-template-columns:1fr}.factory-edit-modal{width:100%!important}.factory-edit-modal .form-grid{gap:0}}
.factory-search>span{white-space:nowrap}.factory-search input{min-width:0}

/* Order number and the matching Shopify line item's main photo. */
.factory-order-number{display:block;margin:5px 0;color:#6d8473;font-size:11px;white-space:nowrap}.factory-order-number b{font-weight:600;color:#315f49;font-size:13px}.factory-order-image{width:104px;height:104px}.factory-image:disabled{cursor:default}.factory-image.failed{background:#f8faf6}.factory-linked-order{padding:16px;border:1px solid #dee7dc;border-radius:10px;background:#fbfcf9}.factory-linked-order h3{margin:0 0 12px;font-size:14px}.factory-lightbox .factory-zoom-error{color:#748772;padding:40px 20px}.factory-lightbox img[hidden]{display:none}
@media(max-width:600px){.factory-order-number{margin:0}.factory-order-image{width:104px;height:104px}}
.factory-order-image img{display:block;opacity:0}.factory-order-image.loaded img{opacity:1}

.factory-rework-label{display:block;color:#9a7338;font-size:11px;margin:4px 0}.factory-serial button[data-action="factory-rework"]{color:#8a6734;background:#fffaf0;border-color:#eadfc8}

/* Reversible production states and website-order import. */
.factory-status.deleted{background:#edf0ef;color:#68746e}
.factory-import-item{border:1px solid var(--line,#dfe5df);border-radius:12px;padding:18px;margin:18px 0}
.factory-import-item legend{font-weight:650;padding:0 8px}.factory-import-item .field{margin:10px 0}
.factory-import-item .factory-import-summary{display:flex;gap:14px;align-items:center;margin:8px 0 16px}
.factory-import-summary img{width:90px;height:90px;object-fit:contain;border:1px solid #e2e8e1;border-radius:10px}
.factory-import-existing{background:#f5f7f4;padding:12px;border-radius:8px}.factory-import-item input[type=checkbox]{width:18px;height:18px;vertical-align:middle;margin-right:8px}
.factory-tabs{flex-wrap:wrap}.factory-sharing .actions{flex-wrap:wrap}
