*{box-sizing:border-box}body{margin:0;background:#f4f3ee;color:#203b34;font:14px/1.6 PingFang SC,Microsoft YaHei,sans-serif}a{color:#17644c;text-decoration:none}button,input,select,textarea{font:inherit}button,.button{cursor:pointer;border:1px solid #cbd4cd;border-radius:7px;padding:9px 16px;background:#fff;color:#21483a;display:inline-block}button:disabled{opacity:.45;cursor:not-allowed}button.primary,.primary{background:#214e3e;color:#fff;border-color:#214e3e}input,select,textarea{width:100%;padding:10px 12px;border:1px solid #cbd4cd;background:#fff;border-radius:6px;color:#203b34}input[type=checkbox]{width:auto}textarea{min-height:80px}h1{font-size:28px;line-height:1.3;margin:8px 0 14px}h2{font-size:19px;margin:0 0 14px}h3{font-size:16px}p{margin:8px 0 16px}.shell{display:flex;min-height:100vh}.shell aside{width:224px;background:#183f32;color:#fff;padding:32px 22px;display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0}.brand{font-size:30px;letter-spacing:4px;color:#fff;font-weight:700}.brand span{display:block;font-size:11px;font-weight:400;letter-spacing:3px;color:#b9d1c4}nav{display:grid;gap:8px;margin-top:45px}nav a{padding:11px 14px;color:#c9d9cf;border-radius:7px}nav a.active{background:#355e4d;color:#fff}.account{margin-top:auto;display:grid;gap:12px}.content{margin-left:224px;width:calc(100% - 224px);max-width:1600px;padding:40px}.panel{padding:24px;background:#fffefb;border:1px solid #e0e3da;border-radius:12px;margin:18px 0;box-shadow:0 4px 18px #203b3404}.section-head{display:flex;align-items:center;justify-content:space-between;gap:20px}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:600;color:#658576}.muted,small{color:#738079}small{display:block;font-size:12px}.toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:20px 0}.toolbar input,.toolbar select{width:auto;max-width:100%}.selected{background:#e0eee5}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.field{display:grid;gap:6px;align-content:start}.field>span{font-size:13px;font-weight:600}.form-footer,.form-grid>.error-box{grid-column:1/-1}.form-footer{display:flex;align-items:center;gap:16px}.error-box{padding:14px;background:#fff0eb;border:1px solid #ebc1b1;border-radius:8px;color:#943c26;margin:10px 0;overflow-wrap:anywhere}.error-box small{color:inherit}.empty{padding:40px;text-align:center;color:#78877c}.badge{display:inline-block;padding:3px 9px;border-radius:20px;background:#edf1eb;color:#52674f;font-size:12px}.badge-stale,.badge-cancelled{background:#ffe6dd;color:#a34025}.badge-waiting,.badge-ready{background:#faf0d1;color:#8a641b}.badge-completed,.badge-received{background:#dcefe1;color:#286542}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;white-space:nowrap}th,td{text-align:left;padding:14px;border-bottom:1px solid #e8eae2}th{color:#6b7a70;font-weight:500;font-size:12px}.pager{display:flex;gap:12px;justify-content:flex-end;align-items:center;margin:20px 0}.cards,.bundle-grid,.stats{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:18px}.card,.bundle-card{display:block;padding:22px;background:#fffefb;border:1px solid #dfe4dc;border-radius:10px;color:inherit}.card-head{display:flex;justify-content:space-between;gap:10px}.timeline{padding-left:20px;border-left:2px solid #d3dfd5}.timeline-item{padding:12px 0 20px;border-bottom:1px solid #e3e7df}.steps{display:flex;gap:12px;flex-wrap:wrap}.step{padding:12px;border:1px solid #dbe1d7;border-radius:8px}.wide{width:100%;margin-top:20px}.camera{padding:12px}.camera video{width:100%;max-height:60vh}.login{min-height:100vh;display:grid;place-items:center;padding:20px;background:radial-gradient(at top left,#dce7dc,transparent 70%),#f4f3ee}.login>.panel{width:100%;max-width:440px;padding:36px}.login .form-grid{grid-template-columns:1fr}.login h1{font-size:24px}fieldset{border:1px solid #dce1d7;border-radius:8px;padding:14px}.checkbox-list{display:flex;flex-wrap:wrap;gap:12px}code{overflow-wrap:anywhere}.mobile aside{position:static;width:100%;padding:16px 20px;flex-direction:row;align-items:center;gap:20px;flex-wrap:wrap}.mobile .shell,.shell.mobile{display:block}.mobile .brand{font-size:23px}.mobile nav{display:flex;flex-wrap:wrap;margin:0;gap:4px}.mobile .account{margin:0 0 0 auto;display:flex;align-items:center}.mobile .content{width:100%;padding:24px;max-width:900px;margin:auto}@media(max-width:760px){.shell{display:block}.shell aside{position:static;width:100%;padding:16px;flex-direction:row;align-items:center;flex-wrap:wrap;gap:16px}.brand{font-size:22px}nav{display:flex;flex-wrap:wrap;gap:0;margin:0}nav a{padding:8px}.account{margin:0 0 0 auto;display:flex;align-items:center}.content,.mobile .content{margin:0;width:100%;padding:20px 14px}.section-head{align-items:flex-start;flex-direction:column}.form-grid{grid-template-columns:1fr}.panel{padding:18px}h1{font-size:24px}.pager{flex-wrap:wrap}.cards,.bundle-grid{grid-template-columns:1fr}}.list-row{display:flex;align-items:center;gap:20px;padding:14px 0;border-bottom:1px solid #e3e7df}.list-row strong{min-width:130px}.check{display:inline-flex;align-items:center;gap:7px;margin:7px 14px 7px 0}.full{grid-column:1/-1}.step-editor{display:flex;gap:9px;align-items:center;margin:10px 0}.steps>div{display:grid;grid-template-columns:26px auto auto;gap:8px;align-items:center;padding:14px;border:1px solid #dde4da;border-radius:8px}.steps small{grid-column:2/-1}.timeline li{padding:14px 0 18px 5px}.timeline time{font-size:12px;color:#768377}.timeline li.reversed{opacity:.55}.version{border-bottom:1px solid #e3e7df;padding:12px 0}dl{display:grid;grid-template-columns:100px auto;font-size:13px;gap:7px}dd{margin:0}dt{color:#778479}@media(max-width:760px){.step-editor,.list-row{flex-wrap:wrap}.step-editor input,.step-editor select{width:100%}}.back-link{margin-bottom:18px;min-height:44px;display:inline-flex;align-items:center;font-weight:600}.back-link:focus-visible{outline:2px solid #17644c;outline-offset:3px}.employee-app{min-height:100vh}.employee-header{background:#214e3e;color:#fff;padding:18px 20px}.employee-header>div{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:10px}.employee-header strong{font-size:20px}.employee-header button{padding:6px 12px}.employee-page{max-width:600px;margin:0 auto;padding:22px 16px 40px}.employee-page .form-grid{grid-template-columns:1fr}.employee-page .form-footer button{width:100%;min-height:48px}.employee-page input,.employee-page select,.employee-page textarea{font-size:16px;min-height:46px}.employee-page dd{overflow-wrap:anywhere}.employee-page summary{cursor:pointer;font-weight:600;min-height:44px}.employee-page .wide{min-height:48px}.employee-page .back-link{margin-bottom:12px}.employee-page .report-success{text-align:center}.employee-page li{padding:6px 0}.employee-page input[readonly]{background:#f2f4ef}.bi-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:24px}.bi-metrics .panel{margin:0}.bi-metrics strong{display:block;font-size:32px;margin-top:12px}.bi-metrics small{font-size:14px;font-weight:400}.bi-stages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 28px}.bi-stage{display:grid;grid-template-columns:100px 1fr 65px;align-items:center;gap:10px}.bi-stage meter{width:100%;height:18px;accent-color:#214f40}.bi-orders{min-width:950px}.bi-orders small{display:block;margin-top:6px}.bi-orders progress{display:block;width:100%;height:10px;margin-top:10px;accent-color:#214f40}.bi-warning{color:#a74620;font-size:13px}@media(max-width:900px){.bi-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.bi-stages{grid-template-columns:1fr}}.shell:not(.mobile) .content{max-width:none;padding:28px 32px 40px;min-width:0}.shell:not(.mobile) aside{width:208px;padding:28px 18px}.shell:not(.mobile) .content{margin-left:208px;width:calc(100% - 208px)}.shell .panel{padding:20px;border-radius:10px;box-shadow:none}.shell h1{font-size:26px}.shell .section-head{margin-bottom:20px}.shell .section-head p:last-child{margin-bottom:0}.shell .toolbar{align-items:flex-end;margin:16px 0;gap:10px}.shell .toolbar>input{min-width:260px}.shell .toolbar .field input{min-width:210px}.shell table{font-variant-numeric:tabular-nums}.shell th,.shell td{padding:12px 16px;vertical-align:middle}.shell th{position:sticky;top:0;z-index:1;background:#f1f5f2;color:#526b60;font-weight:600;box-shadow:0 1px #dce4dd}.shell tbody tr:hover{background:#f5f8f4}.shell td:first-child{font-weight:500}.shell td button,.shell td .button{padding:5px 10px;margin:3px;font-size:12px}.shell .table-scroll{max-height:540px;max-height:min(60vh,640px);overscroll-behavior:contain;scrollbar-gutter:stable}.shell .panel.table-scroll{max-height:none}.shell .panel.table-scroll>table{display:table}.shell .list-row{gap:16px;padding:13px 12px;min-height:64px}.shell .list-row:hover{background:#f5f8f4}.shell .list-row strong{flex:1;min-width:150px}.shell .list-row button{padding:6px 12px;white-space:nowrap}.paged-content{min-width:0}.list-window{max-height:540px;max-height:min(60vh,640px);overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;border:1px solid #e4e9e2;border-radius:8px}.list-window .table-scroll{overflow:visible!important;max-height:none!important}.list-window:focus-visible{outline:2px solid #3e8067;outline-offset:2px}.collection-search{display:flex;align-items:center;margin:0 0 14px}.collection-search input{max-width:380px}.pager{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:16px 0 0;justify-content:flex-end;border-top:1px solid #e5e9e3;background:inherit}.pager .page-count{margin-right:auto;color:#6c7d72;font-size:12px}.pager button{min-width:34px;height:34px;padding:4px 9px}.pager .page-size{display:flex;align-items:center;gap:6px;font-size:12px;margin:0 12px}.pager select{width:78px;padding:5px 7px}.page-number{display:inline-flex;align-items:center;gap:6px}.ellipsis{padding:0 3px;color:#7e8b81}.pager button[aria-current=page]{background:#214e3e;border-color:#214e3e;color:#fff}.create-launch{display:flex;justify-content:flex-end;margin:16px 0}.settings-tabs{display:flex;overflow-x:auto;gap:4px;padding:0 0 12px;margin:24px 0 8px;border-bottom:1px solid #dce4dd;scrollbar-width:thin}.settings-tabs button{flex:none;white-space:nowrap;border-color:transparent;background:transparent}.settings-tabs button.selected{background:#e1ece5;color:#194a36;font-weight:600}.detail-drawer{position:fixed;inset:0 0 0 auto;margin:0;width:min(760px,95vw);max-width:none;height:100dvh;max-height:100dvh;padding:0;border:0;border-left:1px solid #dbe4dc;background:#f8faf7;color:#203b34;box-shadow:-16px 0 60px #142e3926}.detail-drawer::backdrop{background:#122d2859;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.drawer-header{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 26px;background:#fff;border-bottom:1px solid #dfe5de}.drawer-header h2{margin:4px 0 0}.drawer-body{padding:24px 26px}.drawer-body .form-footer{position:sticky;bottom:0;padding:16px 0;background:#f8faf7;border-top:1px solid #dfe5de}.drawer-body .panel{background:#fff}.drawer-body dl>div{display:contents}.drawer-body .bundle-grid{grid-template-columns:1fr}.drawer-body .list-window{max-height:55vh}.detail-drawer:focus{outline:none}.shell .board-filters{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.shell .bi-metrics{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.shell .bi-metrics .panel{padding:16px}.shell .bi-metrics strong{font-size:28px;margin-top:6px}.shell .bi-metrics small{display:inline}.shell .stats{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.shell .stats .card{padding:16px}.shell .stats h1{margin-bottom:0}.shell .bi-orders p{margin:5px 0}.shell :focus-visible{outline:2px solid #3e8067;outline-offset:3px}@media(min-width:761px){body:has(.detail-drawer[open]){overflow:hidden}}@media(max-width:1200px){.shell .bi-metrics,.shell .stats{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:760px){.shell:not(.mobile) aside{width:100%;padding:16px}.shell:not(.mobile) .content{margin-left:0;width:100%;padding:20px 14px}.shell .panel{padding:14px}.shell .board-filters{grid-template-columns:1fr}.shell .bi-metrics,.shell .stats{grid-template-columns:repeat(2,minmax(0,1fr))}.list-window{max-height:65vh}.pager .page-count{width:100%}.pager .page-size{margin-left:0;margin-right:auto}.detail-drawer{width:100vw}.drawer-header,.drawer-body{padding:18px}.shell .toolbar>input{min-width:0;width:100%}.shell .list-row{gap:10px}.shell .toolbar .field,.shell .toolbar .field input{width:100%}.shell .list-row strong{flex-basis:100%}}.edit-modal{inset:0;margin:auto;width:min(600px,calc(100vw - 40px));height:fit-content;max-height:calc(100dvh - 64px);border:1px solid #dfe6e1;border-radius:16px;box-shadow:0 24px 80px #102e3433;background:#fff;overflow:auto}.edit-modal .drawer-header{padding:20px 24px}.edit-modal .drawer-body{padding:24px}.edit-modal .form-grid{grid-template-columns:1fr}.edit-modal .form-footer{background:#fff;justify-content:flex-end;padding:18px 0 0;margin-top:8px}.edit-modal .drawer-header small{font-size:11px;letter-spacing:1px}.edit-modal .drawer-body>p{color:#667b70;margin-top:0}.edit-modal fieldset{min-width:0}.discard-confirm{position:sticky;bottom:0;padding:16px 24px;background:#fff4e6;border-top:1px solid #e8cca3;z-index:6}.discard-confirm>div{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}.danger{color:#a33c2b;border-color:#e2b3aa}.success-notice{padding:12px 16px;border:1px solid #b7d9c8;background:#edf8f1;border-radius:8px;color:#236343}.employee-table{min-width:660px}.employee-table .employee-number{white-space:normal;overflow-wrap:anywhere;max-width:240px;font-variant-numeric:tabular-nums;color:#6b7a70}.employee-table td:last-child,.employee-table th:last-child{text-align:right}.employee-table small{margin-top:3px}button{transition:background-color .15s,border-color .15s,box-shadow .15s}button:not(:disabled):hover{border-color:#709780;background:#edf4ef}button.primary:not(:disabled):hover{background:#173e30;color:#fff}.detail-drawer :focus-visible{outline:2px solid #3e8067;outline-offset:3px}body:has(.detail-drawer[open]){overflow:hidden}@media(max-width:600px){.edit-modal{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border-radius:12px}.edit-modal .drawer-header,.edit-modal .drawer-body{padding:18px}.edit-modal .form-footer{position:static}.edit-modal input,.edit-modal select{font-size:16px}.edit-modal .form-footer button{min-height:44px;flex:1}}@media(prefers-reduced-motion:reduce){button{transition:none}}.size-fields{grid-column:1/-1;min-width:0}.size-fields table{margin:12px 0}.size-fields input,.size-fields select{width:100%}.workflow-editor{padding:24px;overflow:hidden}.workflow-editor .section-head h2{margin:0}.workflow-layout{display:grid;grid-template-columns:160px minmax(320px,1fr) 240px;gap:14px;align-items:start}.workflow-palette,.workflow-properties{background:#f7f8f5;border:1px solid #dce4dc;border-radius:12px;padding:14px;max-height:660px;overflow:auto}.workflow-palette h3,.workflow-properties h3{margin:0 0 12px}.workflow-palette>button{display:block;width:100%;text-align:left;margin-bottom:8px;cursor:grab}.workflow-palette small,.workflow-node small{display:block;font-size:11px;color:#65776d;margin-top:5px}.workflow-properties>fieldset{border:0;margin:0;padding:0;min-width:0}.workflow-properties .field{display:block;margin-bottom:14px}.workflow-properties input:not([type=checkbox]),.workflow-properties select,.workflow-properties textarea{width:100%;min-width:0}.workflow-properties fieldset fieldset{margin:0 0 14px;padding:10px;border:1px solid #dce4dc}.workflow-properties .check{display:flex;gap:6px;margin:6px 0}.workflow-canvas-wrap{min-width:0;border:1px solid #d7e2da;border-radius:12px;overflow:hidden;background:#f7faf7}.workflow-canvas-tools{display:flex;align-items:center;gap:6px;padding:10px;border-bottom:1px solid #d7e2da;flex-wrap:wrap;background:#fff}.workflow-canvas-tools>span:first-child{font-size:12px;flex:1;min-width:150px;color:#5d7267}.workflow-canvas-tools button{padding:4px 9px;min-height:30px}.workflow-viewport{overflow:auto;height:560px;overscroll-behavior:contain}.workflow-surface{position:relative;background-image:radial-gradient(#cbd9ce 1px,transparent 1px);background-size:20px 20px}.workflow-edges{position:absolute;left:0;top:0;pointer-events:none;overflow:visible}.workflow-edge-hit{pointer-events:stroke;cursor:pointer}.workflow-edge-hit:hover,.workflow-edge-hit:focus{stroke:#cb544b55}.workflow-node{position:absolute;width:240px;background:#fff;border:1px solid #b8cec0;border-radius:12px;box-shadow:0 4px 12px #214d3610;-webkit-user-select:none;user-select:none}.workflow-node.is-selected{outline:2px solid #398668;outline-offset:2px}.workflow-node.is-connecting{outline:2px dashed #d6973a}.workflow-node-title{padding:12px 16px 8px;font-weight:700;cursor:grab;touch-action:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:12px 12px 0 0;background:#e7f0e9}.workflow-node-title:active{cursor:grabbing}.workflow-node-meta{padding:9px 16px 12px;font-size:12px;color:#567363;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.workflow-node .workflow-port{position:absolute;top:40px;border:2px solid #fff;background:#398668;color:#398668;border-radius:50%;width:18px;height:18px;min-height:0;padding:0;line-height:10px;font-size:10px;z-index:2;touch-action:none}.workflow-port-in{left:-10px}.workflow-port-out{right:-10px}.workflow-node .workflow-port:hover{outline:3px solid #96c3a7}.workflow-empty{position:absolute;top:200px;left:100px;color:#6d8273}.workflow-snapshot .workflow-viewport{height:300px}.workflow-snapshot details{margin:12px 0}.workflow-snapshot .workflow-sop{white-space:pre-wrap;overflow-wrap:anywhere}.workflow-order-preview{padding:12px;background:#edf4ee;border-radius:8px}.workflow-order-preview p{margin:5px 0}@media(max-width:1200px){.workflow-layout{grid-template-columns:140px minmax(300px,1fr)}.workflow-properties{grid-column:1/-1;max-height:none}.workflow-properties>fieldset{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}}@media(max-width:700px){.workflow-layout{display:flex;flex-direction:column}.workflow-palette,.workflow-properties,.workflow-canvas-wrap{width:100%}.workflow-palette{max-height:160px}.workflow-palette>button{display:inline-block;width:auto;margin-right:8px}.workflow-properties>fieldset{display:block}.workflow-editor{padding:12px}}dialog.workflow-editor{width:calc(100vw - 32px);max-width:1600px;max-height:calc(100vh - 32px);margin:auto;color:#203b34;overflow:auto}dialog.workflow-editor::backdrop{background:#163e3266;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.workflow-editor .workflow-viewport{height:max(350px,calc(100vh - 300px))}.workflow-properties,.workflow-palette{max-height:max(400px,calc(100vh - 230px))}.workflow-properties .workflow-sop{white-space:pre-wrap;overflow-wrap:anywhere}
