:root{font-family:"Segoe UI",Arial,sans-serif;color:#26392e;background:#f3f5f1;font-synthesis:none;--green:#174b3b;--ink:#26392e;--muted:#647264;--line:#dce3d8;--white:#fff;--amber:#8f671c}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,select,input[type=checkbox],.file-button,summary{cursor:pointer}button{color:inherit}button:disabled{cursor:default;opacity:.45}
button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,a:focus-visible,.file-button:focus-within,.table-scroll:focus-visible{outline:3px solid #759d7d;outline-offset:3px}
[hidden]{display:none!important}.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}
.skip-link{position:fixed;left:15px;top:-80px;background:#fff;padding:12px;z-index:30}.skip-link:focus{top:15px}
.site-header{background:white;border-bottom:1px solid var(--line);padding:18px 34px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.brand{font-size:23px;font-weight:700;letter-spacing:-.8px;display:flex;align-items:center;gap:10px;white-space:nowrap}.brand-light{font-weight:400;color:#71816d}
.brand-mark{display:grid;grid-template-columns:9px 9px;gap:3px;transform:rotate(-4deg)}.brand-mark i{display:block;width:9px;height:9px;background:var(--green);border-radius:2px}.brand-mark i:last-child{background:#aac0a4}
.edition{font-size:12px;font-weight:600;letter-spacing:1.2px;color:#63775a;border-left:1px solid #dbe3d5;margin-left:9px;padding-left:19px}
.header-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}.save-state{font-size:12px;color:#59704f;display:inline-flex;align-items:center;gap:6px;margin-right:7px;line-height:1.5}
.save-state::before{content:"";height:6px;width:6px;flex-shrink:0;border-radius:50%;background:#81a06e}.save-state[data-state=error]{color:#a94d31}.save-state[data-state=error]::before{background:#c56c45}.save-state[data-state=demo]{color:#966e24}.save-state[data-state=demo]::before{background:#bd9651}
.page{max-width:none;margin:0 auto;padding:31px 34px 0}.intro{display:flex;align-items:center;justify-content:space-between;gap:25px;margin-bottom:24px}.eyebrow{font-size:12px;font-weight:700;letter-spacing:1.5px;color:#5f7357;margin:0 0 7px;line-height:1.5}
h1{font-size:31px;letter-spacing:-1px;font-weight:600;line-height:1.2;margin:0 0 10px}.intro p:not(.eyebrow){font-size:14px;line-height:1.7;color:var(--muted);margin:0}
.button{display:inline-flex;gap:7px;justify-content:center;align-items:center;font-size:13px;font-weight:600;line-height:1.4;padding:10px 15px;border:1px solid transparent;background:transparent;border-radius:7px;min-height:38px;text-decoration:none;white-space:nowrap;transition:background .15s}
.button-primary{background:var(--green);color:white;border-color:var(--green)}.button-primary:hover{background:#103e30}.button-secondary{background:#fff;border-color:var(--line);color:#4f6749}.button-secondary:hover{background:#f1f5ed}
.button-quiet{border-color:#e0e7da;background:#fafcf8;color:#5b7051;font-size:12px}.button-quiet:hover{background:#edf2e7}
.file-button{position:relative;overflow:hidden}.file-input{position:absolute;left:0;top:0;opacity:0;width:100%;height:100%;font-size:0;cursor:pointer}
.plain-button{border:0;background:none;color:#607a4f;text-decoration:underline;text-underline-offset:3px;font-size:12px;padding:5px 0;text-align:left}
.notice{display:flex;align-items:center;justify-content:space-between;gap:20px;background:#fff5dd;border:1px solid #e4d3ab;border-radius:10px;padding:16px 20px;margin-bottom:18px;font-size:13px;line-height:1.6;color:#7e6129}
.notice p{margin:4px 0 0;font-size:12px;color:#886e3e}.notice strong{font-weight:600}.notice-error{background:#fff0e9;border-color:#e6c1b0;color:#934b30}.notice-error p{color:#935b45}
.rollback-banner{background:#edf4e7;border-color:#cedec0;color:#4e6d3c}.rollback-banner p{color:#607953}
.import-panel{background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden;transition:background .15s,border-color .15s;margin-bottom:24px}
.import-panel.drag-over{background:#edf6e8;border-color:#6c9569;box-shadow:0 0 0 2px #b4ceb0}
.import-lead{display:flex;align-items:center;gap:15px;padding:20px 23px}.upload-icon{width:35px;height:39px;flex-shrink:0;display:flex;align-items:center;justify-content:center;border-radius:7px;background:#eef4e8;color:#6c8b54;font-size:28px;font-weight:300}
.import-lead>div{flex:1;min-width:0}.import-lead h2{font-size:16px;font-weight:600;letter-spacing:-.2px;margin:0 0 4px}.import-lead p{font-size:12px;line-height:1.6;color:#627456;margin:0}
.import-settings{display:flex;gap:19px 24px;align-items:center;flex-wrap:wrap;padding:14px 23px;border-top:1px solid #edf1e8;background:#fafcf7}
.field-inline{display:flex;align-items:center;gap:9px;min-width:0;font-size:12px;color:#59714e}.field-inline select{max-width:100%}
select{border:1px solid #d7e0d0;border-radius:5px;background:white;padding:7px 28px 7px 9px;font-size:12px;min-height:34px;color:#4b6341}
.checkbox-field{display:flex;align-items:center;gap:8px;font-size:12px;line-height:1.6;color:#5d7351}.checkbox-field input{height:15px;width:15px;accent-color:var(--green);margin:0;flex-shrink:0}.edge-confirm{margin-left:auto;font-size:12px}
.import-help{font-size:12px;line-height:1.8;color:#647855;border-top:1px solid #edf1e8;background:#fafcf7;padding:10px 23px;margin:0}
.loading-line{display:flex;align-items:center;gap:10px;font-size:12px;padding:11px 23px;color:#54723e;background:#eff5e9;border-top:1px solid #e3ecdb}
.spinner{height:13px;width:13px;border:2px solid #c1d3b4;border-top-color:#557a3c;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
.messages{background:white;border:1px solid #dbe3d3;border-radius:10px;padding:15px 20px;margin-bottom:20px;font-size:12px;line-height:1.7}.messages-heading{display:flex;gap:15px;justify-content:space-between;align-items:center}
.messages-heading strong{font-size:13px;color:#587146}.messages-heading .plain-button{font-size:12px}.messages ul{list-style:none;margin:9px 0 0;padding:0;max-height:220px;overflow:auto}
.messages li{margin:6px 0;padding-left:13px;border-left:3px solid #a9c197;color:#587148;overflow-wrap:anywhere}.messages li.error{border-color:#cf976b;color:#995633}.messages li.warning{border-color:#d3b45e;color:#8c6d25}
.workspace{background:white;border:1px solid var(--line);border-radius:12px;overflow:clip;box-shadow:0 4px 18px #29452204}
.workspace-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 23px}.workspace-toolbar h2{font-size:20px;font-weight:600;letter-spacing:-.45px;margin:0 0 5px}.workspace-toolbar p{font-size:12px;line-height:1.6;color:#647856;margin:0}
.board-filters{display:flex;gap:10px;align-items:center;min-width:0}.search-field{border:1px solid #dce5d4;background:#fafcf7;border-radius:6px;padding:0 11px;display:flex;align-items:center;gap:8px;min-width:0}
.search-field>span{font-size:25px;line-height:1;color:#6f8660;flex-shrink:0}.search-field input{border:0;background:transparent;outline:none;width:260px;min-width:0;padding:9px 0;font-size:13px;color:var(--ink);min-height:37px}.search-field input::placeholder{color:#6a7d5d}
.search-field:focus-within{outline:2px solid #789d6c;outline-offset:2px}.search-field input:focus-visible{outline:0}.board-filters select{min-height:38px;background:#fafcf7}
.board-legend{display:flex;align-items:center;gap:10px 20px;flex-wrap:wrap;font-size:12px;color:#617655;border-top:1px solid #eef2e8;border-bottom:1px solid #dfe7d7;padding:11px 23px;background:#fcfdfb;line-height:1.6}
.board-legend>span{display:flex;align-items:center;gap:6px}.legend-dot{display:inline-block;width:9px;height:9px;border-radius:2px;border:1px solid #c4d0b8;flex-shrink:0}
.legend-none{background:#d6ebc7}.legend-review{background:#fff0af;border-color:#d8c66f}.legend-manual{background:#d8e7ef;border-color:#b0c9d7}.board-legend .scroll-hint{margin-left:auto;color:#637958}
.table-scroll{width:100%;height:auto;max-height:none;min-height:0;overflow:visible}
.board-table{width:100%;min-width:0;table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:12px}
.col-product{width:8.2%}.col-date{width:3%}.col-days{width:2%}.col-material{width:21%}.col-quantity{width:3%}.col-metric{width:4%}.col-sheets{width:2.5%}.col-operation{width:auto}.col-sketch{width:4.4%}.col-readiness{width:4.4%}
.board-table th{position:sticky;top:0;z-index:4;background:#e9eee3;color:#4c6540;text-align:center;font-weight:600;font-size:12px;padding:13px 7px;border-right:1px solid #d6dfcc;border-bottom:1px solid #c9d7bd;vertical-align:middle;line-height:1.5}
.board-table th:first-child{position:sticky;left:0;z-index:7;text-align:left;padding-left:17px;box-shadow:2px 0 4px #38552508}
.board-table td{padding:12px 9px;border-right:1px solid #e0e7d8;border-bottom:1px solid #dbe4d1;vertical-align:middle;line-height:1.6;background:#fff;overflow-wrap:anywhere}
.board-table td.product-cell{position:sticky;left:0;z-index:3;vertical-align:top;background:#fafcf7;padding:17px 15px;border-right:1px solid #c9d6bc;box-shadow:2px 0 4px #38552508}
.board-table tr.product-start td{border-top:1px solid #becfb0}.board-table tr:first-child td{border-top:none}
.product-button{display:block;width:100%;padding:0;border:0;background:none;text-align:left;line-height:1.6;white-space:normal;font-size:14px;font-weight:600;color:#3c5a2e}.product-button:hover{text-decoration:underline;text-underline-offset:3px}
.product-order{font-size:12px;line-height:1.7;color:#617951;margin:8px 0 0}.product-article{font-size:12px;color:#607750;margin:5px 0 0}.product-summary{font-size:12px;color:#687d59;margin:12px 0 0}
.archive-badge,.closed-badge{display:inline-block;font-size:12px;line-height:1.4;color:#5d734f;background:#edf0e8;padding:3px 6px;border-radius:4px;margin-top:9px}.closed-badge{color:#4b7034;background:#e4f0d8}
.board-table td.date-cell{padding:9px 5px;text-align:center;vertical-align:top;padding-top:17px;background:#fcfdfb}
.date-button{border:0;background:none;padding:2px 0;color:#567444;font-size:12px;line-height:1.6;white-space:normal}.date-button:hover{text-decoration:underline;text-underline-offset:3px}.date-button.unknown{color:#657a56}
.board-table td.days-cell{text-align:center;vertical-align:top;padding-top:19px;font-variant-numeric:tabular-nums;background:#fcfdfb;color:#617951;font-size:13px}.board-table td.overdue-cell.late{background:#fff3e6;color:#a0612c;font-weight:600}
.material-name{font-size:13px;font-weight:600;color:#4b673a;line-height:1.6;margin:0 0 8px}.material-meta{display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:12px;color:#637b55}
.kind-badge{display:inline-block;padding:2px 5px;border-radius:3px;background:#eef3e6;color:#577344;font-size:12px}.kind-badge.semi{background:#faf0df;color:#85672b}.kind-badge.finish{background:#f0ecf5;color:#756180}.kind-badge.unknown{background:#f1f2eb;color:#637653}
.group-button{display:block;border:0;background:none;padding:6px 0 0;text-align:left;text-decoration:underline;text-underline-offset:3px;font-size:12px;color:#587544;line-height:1.5}
.metric-cell{text-align:right;font-variant-numeric:tabular-nums}.metric-button{display:block;width:100%;border:0;background:none;padding:0;text-align:right;color:#557440;line-height:1.6;font-size:13px}.metric-button:hover{text-decoration:underline;text-underline-offset:3px}
.metric-partial,.metric-source{display:block;font-size:12px;line-height:1.6;color:#8b6d30}.metric-source{color:#647d54}.metric-button.unknown{color:#6b7e5b}
.board-table td.status-cell{padding:5px;background:#f8faf5}.status-control{position:relative}.status-select{display:block;width:100%;min-width:0;min-height:38px;border:1px solid #d2deca;background:transparent;font-size:12px;padding:8px 17px 8px 5px;border-radius:3px;color:#4a623d;line-height:1.5;white-space:normal}
.manual-marker{position:absolute;left:6px;bottom:3px;height:3px;width:3px;border-radius:50%;background:#718e5f;pointer-events:none}
.board-table td.status-cell.state-none{background:#d9eccd}.board-table td.status-cell.state-review{background:#fff0b3}.board-table td.status-cell.state-prepared{background:#f5e5cd}
.board-table td.status-cell.state-waiting{background:#f8edcc}.board-table td.status-cell.state-queued{background:#ede6d3}.board-table td.status-cell.state-working{background:#dbeaf5}
.board-table td.status-cell.state-ready{background:#c6e0b3}.board-table td.status-cell.state-milling{background:#e7e0f0}.board-table td.status-cell.state-no-material{background:#f4d6c3}
.board-table td.status-cell.state-launch{background:#d1e9d9}.board-table td.status-cell.state-reclamation{background:#efd5d3}.board-table td.status-cell.state-ordered{background:#d5e9e8}.board-table td.status-cell.state-stopped{background:#e0e4dc}
.state-review .status-select{border-color:#d8c675;color:#80681f}.state-reclamation .status-select{color:#8f4f48}.state-no-material .status-select{color:#8e5a38}.state-ready .status-select{color:#375e25;font-weight:600}.state-none .status-select{color:#49683a}
.status-readonly{font-size:13px;display:block;text-align:center;color:#5e7850;padding:8px 4px}
.board-table td.sketch-cell{background:#fcfdf9;text-align:center;vertical-align:top;padding-top:17px}
.sketch-button{display:block;padding:9px 5px;border:1px dashed #ccd9c0;border-radius:5px;background:#f4f8ee;color:#637d51;font-size:12px;line-height:1.5;width:100%;min-height:76px;white-space:normal}
.sketch-button img{display:block;max-width:100%;max-height:130px;object-fit:contain;margin:0 auto 4px}.sketch-button>span:first-child{font-size:24px;display:block;color:#74935e}
.board-bottom{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px 20px;border-top:1px solid #dce5d2;background:#fafcf7}.board-bottom p{font-size:12px;color:#607a50;line-height:1.6;margin:0}
.pagination{display:flex;align-items:center;gap:12px;font-size:12px;color:#607a50;white-space:nowrap}.pagination .button{min-height:32px;min-width:34px;padding:5px 9px;font-size:15px}
.table-footnote{font-size:12px;line-height:1.9;color:#637b53;background:#fcfdfb;border-top:1px solid #e5ecdd;padding:12px 23px;margin:0}
.empty-state{text-align:center;padding:55px 25px 57px}.empty-state h3{font-size:23px;letter-spacing:-.6px;font-weight:600;margin:22px 0 12px}.empty-state p{font-size:13px;color:#637a53;line-height:1.9;max-width:540px;margin:0 auto 20px}
.empty-board{width:105px;display:grid;grid-template-columns:24px 24px 24px;gap:4px;padding:12px;border:1px solid #cfdcc6;border-radius:6px;background:#fcfdf9;margin:auto;transform:rotate(-5deg)}
.empty-board i{height:17px;border-radius:2px;background:#e1edda}.empty-board i:nth-child(2){background:#f4e8c2}.empty-board i:nth-child(5){background:#d1e4c5}
.page-footer{font-size:12px;line-height:1.8;color:#687d59;display:flex;gap:20px;justify-content:space-between;padding:20px 0 25px}.page-footer>span:last-child{text-align:right}
.dialog{border:1px solid #cfdcc5;border-radius:12px;padding:0;box-shadow:0 20px 90px #1d351f35;width:min(600px,calc(100vw - 36px));max-height:90vh;overflow:auto;color:var(--ink);background:white}
.dialog::backdrop{background:#18321d66;backdrop-filter:blur(2px)}.dialog-header{display:flex;gap:20px;align-items:flex-start;justify-content:space-between;padding:23px 25px 18px;border-bottom:1px solid #e5ecdd;position:sticky;top:0;background:#fff;z-index:2}
.dialog-header h2{font-size:22px;letter-spacing:-.5px;line-height:1.35;font-weight:600;margin:0;overflow-wrap:anywhere}
.close-button{width:30px;height:30px;flex-shrink:0;border:1px solid #e1e8d9;background:#fafcf6;border-radius:5px;color:#617d4d;font-size:22px;line-height:1;padding:0}
.dialog-content{padding:21px 25px 24px;font-size:13px;line-height:1.8}.dialog-content>p{margin:0 0 14px}.dialog-subtitle{font-size:13px;color:#59764a;overflow-wrap:anywhere;line-height:1.8}
.dialog-footer{display:flex;gap:10px;justify-content:flex-end;padding:15px 25px;background:#fafcf7;border-top:1px solid #e1e9d9;position:sticky;bottom:0;z-index:2}
.form-field{display:flex;flex-direction:column;gap:7px;font-size:13px;color:#587344;margin:0 0 17px;min-width:0}.form-field>span{font-weight:600}
.form-field input{border:1px solid #d4e0ca;background:#fcfdf9;border-radius:5px;padding:10px 11px;font-size:14px;color:#3b5a2b;min-height:42px;width:100%;min-width:0}
.form-field input::placeholder{font-size:12px;color:#6a8058}.form-field small{font-size:12px;line-height:1.7;font-weight:400;color:#667e55}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:19px}.read-only{margin:0;padding:9px 0;font-size:13px;color:#667e55;overflow-wrap:anywhere}
.field-help{font-size:12px;line-height:1.9;color:#667e56;margin:0 0 18px}
.sketch-editor{display:grid;grid-template-columns:1fr 170px;gap:25px;border-top:1px solid #e3ebd9;border-bottom:1px solid #e3ebd9;padding:19px 0;margin:19px 0}
.sketch-editor strong{font-size:13px;color:#587842}.sketch-editor p{font-size:12px;color:#667f54;margin:4px 0 13px}.sketch-editor .button{font-size:12px}.sketch-editor .plain-button{display:block;margin-top:8px}
.sketch-preview{display:flex;align-items:center;justify-content:center;background:#f5f8ef;border:1px dashed #d2dfc5;border-radius:6px;min-height:130px;font-size:12px;color:#6b8358;text-align:center;padding:8px}.sketch-preview img{max-width:100%;max-height:190px;object-fit:contain}
.archive-option{margin:18px 0;align-items:flex-start}.archive-option input{margin-top:3px}
.dialog-error{border:1px solid #e8c2aa;border-radius:6px;padding:12px 14px;background:#fff1e6;font-size:12px;line-height:1.8;color:#9c5935;margin-bottom:18px;overflow-wrap:anywhere}
.calculated-metric{border:1px solid #dce7d2;background:#f5f9ef;border-radius:7px;padding:13px 15px;margin:0 0 21px;font-size:13px;color:#577342}
.calculated-metric>div{display:flex;justify-content:space-between;gap:15px;align-items:baseline}.calculated-metric strong{font-size:12px}.calculated-metric span{font-size:20px;font-weight:600;font-variant-numeric:tabular-nums}.calculated-metric p{font-size:12px;line-height:1.8;color:#617d4f;margin:5px 0 0}
.group-dialog{width:min(950px,calc(100vw - 36px))}.evidence-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0 27px}
.evidence-card{border:1px solid #dce6d2;background:#f6f9f0;border-radius:6px;padding:11px 12px;font-size:12px;line-height:1.7;color:#647f53;overflow-wrap:anywhere}
.evidence-card.review{background:#fff9e8;border-color:#eadcb2;color:#876d33}.evidence-card h3{font-size:13px;margin:0 0 5px;font-weight:600;color:#4d7038}.evidence-card.review h3{color:#836727}
.evidence-card strong{font-size:12px;font-weight:500;display:block;margin-bottom:5px}.evidence-card p{margin:0}
.group-rows-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:0 0 12px}.group-rows-heading h3{font-size:16px;letter-spacing:-.3px;font-weight:600;margin:0}.group-rows-heading span{font-size:12px;color:#667f54}
.position-card{border:1px solid #dce5d3;border-radius:6px;margin-bottom:9px;background:#fcfdf9;font-size:12px;overflow:hidden}
.position-card summary{display:flex;gap:12px;justify-content:space-between;padding:13px 14px;line-height:1.7;color:#50713b;list-style:none}
.position-card summary::-webkit-details-marker{display:none}.position-card summary::after{content:"+";color:#6e8b5a;flex-shrink:0}.position-card[open] summary::after{content:"−"}.position-card summary>div{min-width:0;flex:1}
.position-card summary strong{font-size:13px;font-weight:600}.position-card summary span{display:block;font-size:12px;color:#667f54}.position-card summary em{font-size:12px;font-style:normal;white-space:nowrap}
.raw-fields{border-top:1px solid #e4ecdb;padding:9px 14px 13px;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 19px}
.raw-field{display:grid;grid-template-columns:1fr 1fr;gap:10px;border-bottom:1px solid #e4ecdb;padding:7px 0;font-size:12px;line-height:1.7;min-width:0;overflow-wrap:anywhere}.raw-field dt{color:#678154}.raw-field dd{margin:0;color:#50703c;white-space:pre-wrap}
.group-pagination{display:flex;gap:15px;align-items:center;justify-content:space-between;margin-top:17px;font-size:12px;color:#667f53}.group-pagination p{margin:0}
.restore-dialog .dialog-content p{font-size:13px;color:#5e794d;line-height:1.9}
@media(min-width:1700px){.page{padding-top:36px}.import-settings{gap:30px}}
@media(max-width:1100px){.site-header{padding:16px 24px;align-items:flex-start}.edition{display:none}.header-actions{max-width:70%}.save-state{flex-basis:100%;justify-content:flex-end}.page{padding:26px 24px 0}.import-settings{gap:16px 20px}.edge-confirm{margin-left:0}.workspace-toolbar{align-items:flex-start}.board-filters{flex-wrap:wrap;justify-content:flex-end}.search-field input{width:215px}.board-legend .scroll-hint{margin-left:0}}
@media(max-width:760px){.site-header{flex-wrap:wrap;gap:15px}.header-actions{max-width:none;width:100%;justify-content:flex-start}.save-state{flex-basis:100%;justify-content:flex-start}.page{padding:24px 18px 0}.intro{align-items:flex-start}.intro h1{font-size:28px}.intro p:not(.eyebrow){font-size:13px}.intro>.button{font-size:12px}.workspace-toolbar{display:block}.board-filters{margin-top:16px;justify-content:flex-start}.search-field{flex:1}.search-field input{width:100%}.page-footer{display:block}.page-footer>span{display:block}.page-footer>span:last-child{text-align:left;margin-top:5px}.import-settings{align-items:flex-start}.field-inline{flex-direction:column;align-items:flex-start;gap:6px}.field-inline select{width:100%}.import-settings>.field-inline{flex:1;min-width:150px}.edge-confirm{flex-basis:100%}.notice{flex-wrap:wrap}.evidence-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.raw-fields{grid-template-columns:1fr}.board-bottom{flex-wrap:wrap}}
@media(max-width:480px){.site-header{padding:17px 18px}.brand{font-size:22px}.header-actions{gap:8px}.header-actions .button{font-size:12px;padding:8px 10px;min-height:35px}.save-state{font-size:12px}.page{padding:22px 14px 0}.intro{display:block;margin-bottom:20px}.intro h1{font-size:27px}.intro>.button{margin-top:15px}.eyebrow{font-size:12px}.import-lead{flex-wrap:wrap;padding:19px 17px;gap:12px}.import-lead>div{min-width:calc(100% - 48px)}.import-lead>.button{width:100%;margin-top:4px}.import-lead h2{font-size:15px}.import-lead p{font-size:12px}.import-settings{padding:15px 17px;display:grid;grid-template-columns:1fr 1fr;gap:14px 12px}.import-settings>.field-inline{min-width:0;font-size:12px}.import-settings>.field-inline:nth-child(3),.edge-confirm{grid-column:1 / -1}.field-inline select{font-size:12px;padding-left:7px;padding-right:20px;min-height:36px;min-width:0;max-width:100%}.edge-confirm{font-size:12px}.import-help{padding:11px 17px;font-size:12px}.loading-line{padding-left:17px;font-size:12px}.workspace-toolbar{padding:18px 17px}.workspace-toolbar h2{font-size:19px}.workspace-toolbar p{font-size:12px}.board-filters{display:block}.search-field input{font-size:12px}.filter-label{display:block;margin-top:10px}.board-filters select{width:100%;font-size:12px}.board-legend{padding:12px 17px;gap:8px 15px;font-size:12px}.board-table td.product-cell{padding:13px 10px}.product-button{font-size:13px}.product-order,.product-article,.product-summary{font-size:12px}.product-summary{margin-top:8px}.table-footnote{padding:12px 17px;font-size:12px}.board-bottom{padding:13px 17px;gap:12px}.board-bottom p{font-size:12px}.empty-state{padding:40px 20px}.empty-state h3{font-size:21px}.empty-state p{font-size:13px}.page-footer{font-size:12px}.notice{padding:14px 17px;font-size:13px}.notice p{font-size:12px}.messages{padding:13px 17px}.messages-heading{flex-wrap:wrap;gap:3px}.messages li{font-size:12px}.dialog{width:calc(100vw - 22px);max-height:94vh;border-radius:9px}.dialog-header{padding:19px 17px 15px}.dialog-header h2{font-size:20px}.dialog-content{padding:18px 17px 21px}.dialog-footer{padding:13px 17px;gap:8px;flex-wrap:wrap}.dialog-footer .button{font-size:12px;padding:10px 12px}.form-grid{grid-template-columns:1fr;gap:0}.sketch-editor{grid-template-columns:1fr;gap:15px}.sketch-preview{max-height:210px;min-height:150px}.evidence-grid{grid-template-columns:1fr}.evidence-card{font-size:12px}.evidence-card h3{font-size:13px}.evidence-card strong{font-size:13px}.position-card summary{gap:8px;padding:12px 11px;flex-wrap:wrap}.position-card summary em{font-size:12px}.raw-field{grid-template-columns:1fr;gap:3px;font-size:12px}.raw-fields{padding:8px 11px 12px}.group-pagination{flex-wrap:wrap;font-size:12px}.calculated-metric>div{flex-wrap:wrap;gap:5px}.close-button{width:29px;height:29px}.dialog-header .eyebrow{font-size:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
.advanced-settings{padding:10px 23px;border-top:1px solid #edf1e8;font-size:12px;line-height:1.8;color:#647855;background:#fafcf7}.advanced-settings summary{color:#5d764e}.advanced-settings .checkbox-field{margin-top:10px}.advanced-settings p{margin:7px 0 1px;color:#6b7f5c;font-size:12px}@media(max-width:480px){.advanced-settings{padding-left:17px;padding-right:17px}}
.import-profile{padding:18px 0 1px;border-bottom:1px solid #e3ebd9;margin-bottom:18px}.import-profile h3{font-size:14px;font-weight:600;color:#55753f;margin:0 0 14px}.import-profile select{font-size:13px;min-height:40px}.import-profile .field-help{margin:10px 0 15px}


/* Keep the production table in view once a workspace has products. */
.import-options>summary{padding:10px 23px;border-top:1px solid #edf1e8;background:#fafcf7;font-size:12px;line-height:1.7;color:#59724d}
.has-products .page{padding-top:20px}
.has-products .intro{margin-bottom:15px}
.has-products .intro .eyebrow{display:none}
.has-products .intro h1{font-size:26px;margin-bottom:5px}
.has-products .intro p:not(.eyebrow){font-size:12px;line-height:1.6}
.has-products .intro>.button{min-height:34px;padding-top:7px;padding-bottom:7px}
.has-products .import-panel{margin-bottom:17px}
.has-products .import-lead{padding-top:11px;padding-bottom:11px}
.has-products .import-lead h2{font-size:14px}
.has-products .import-lead p{font-size:12px;line-height:1.5}
.has-products .upload-icon{height:31px;width:30px;font-size:24px}
.has-products .import-options>summary{padding-top:7px;padding-bottom:7px}
.has-products .workspace-toolbar{padding:13px 20px}
.has-products .workspace-toolbar h2{font-size:18px}
.has-products .board-legend{padding-top:8px;padding-bottom:8px}
.has-products .board-table td.material-cell{padding:7px 9px}
.has-products .material-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px;line-height:1.4;margin-bottom:3px}
.has-products .material-meta{line-height:1.3;gap:4px 6px}
.has-products .kind-badge{line-height:1.3;padding-top:1px;padding-bottom:1px}
.has-products .group-button{padding-top:3px;line-height:1.3}
.has-products .board-table td.status-cell{padding:5px}
.has-products .status-select{min-height:34px;padding-top:6px;padding-bottom:6px}
.has-products .board-table td.product-cell,
.has-products .board-table td.date-cell,
.has-products .board-table td.days-cell,
.has-products .board-table td.sketch-cell{vertical-align:top!important;padding-top:12px}
@media(max-width:480px){
 .import-options>summary{padding-left:17px;padding-right:17px}
 .has-products .page{padding-top:18px}
 .has-products .intro>.button{margin-top:11px}
 .has-products .import-lead{padding-top:13px;padding-bottom:13px}
 .has-products .workspace-toolbar{padding:16px 17px}
}


/* Every desktop column fits the viewport. The column shares total 100%. */
.workspace,.table-scroll,.board-table{min-width:0;max-width:100%}
.board-table{width:100%;table-layout:fixed}
.board-table th,.board-table td{min-width:0;overflow-wrap:anywhere}
.board-table th{font-size:11px;line-height:1.3;padding:9px 3px;height:126px;vertical-align:bottom}
.board-table th:first-child{padding-left:9px}
.board-table th:nth-child(2),.board-table th:nth-child(3),
.board-table th:nth-child(4),.board-table th:nth-child(5),.board-table th:nth-child(6){writing-mode:vertical-rl;text-orientation:mixed;white-space:nowrap;vertical-align:middle;text-align:left;padding-top:10px;padding-bottom:10px}
.board-table td,.has-products .board-table td.material-cell{padding:7px 4px;font-size:12px;line-height:1.4}
.board-table td.product-cell,.has-products .board-table td.product-cell{padding:10px 8px;vertical-align:top!important}
.board-table td.date-cell,.has-products .board-table td.date-cell,
.board-table td.days-cell,.has-products .board-table td.days-cell,
.board-table td.sketch-cell,.has-products .board-table td.sketch-cell{padding:10px 3px;vertical-align:top!important}
.product-button{font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.product-order,.product-article,.product-summary{font-size:11px;line-height:1.6;overflow-wrap:anywhere}
.product-summary{margin-top:8px}
.archive-badge,.closed-badge{font-size:11px;padding:3px 4px}
.date-button{font-size:11px;max-width:100%;overflow-wrap:anywhere;line-height:1.5}
.board-table td.days-cell{font-size:12px}
.material-name,.has-products .material-name{font-size:12px;line-height:1.4;white-space:normal;overflow:visible;text-overflow:unset;margin-bottom:5px;overflow-wrap:anywhere}
.material-meta,.has-products .material-meta{font-size:11px;line-height:1.5;gap:4px}
.kind-badge,.has-products .kind-badge{font-size:11px;line-height:1.4;padding:1px 4px}
.group-button,.has-products .group-button{font-size:11px;line-height:1.5;padding-top:5px;overflow-wrap:anywhere}
.metric-button{font-size:12px;line-height:1.4;min-width:0;max-width:100%;overflow-wrap:anywhere}
.metric-partial,.metric-source{font-size:11px;line-height:1.5}
.board-table td.status-cell,.has-products .board-table td.status-cell{padding:3px 2px}
.status-control{min-width:0;max-width:100%}
.status-select,.has-products .status-select{width:100%;min-width:0;max-width:100%;font-size:11px;min-height:39px;padding:5px 10px 5px 2px}
.status-control[data-short] .status-select{appearance:none;color:transparent}
.status-control[data-short] .status-select option{color:#304d2a;background:#fff;font-size:12px}
.status-control[data-short]::before{content:attr(data-short);position:absolute;left:2px;right:9px;top:50%;transform:translateY(-50%);font-size:11px;line-height:1.3;text-align:center;overflow-wrap:anywhere;pointer-events:none;color:#3c5931}
.status-control[data-short]::after{content:"⌄";position:absolute;right:1px;top:50%;transform:translateY(-50%);font-size:11px;line-height:1;pointer-events:none;color:#526b43}
.state-review .status-control[data-short]::before{color:#795f17}
.state-reclamation .status-control[data-short]::before{color:#824238}
.state-ready .status-control[data-short]::before{color:#315a20;font-weight:600}
.status-readonly{font-size:12px;min-width:0;padding:6px 1px}
.sketch-button{min-width:0;font-size:11px;line-height:1.4;padding:7px 3px;overflow-wrap:anywhere}
.sketch-button img{max-height:100px}
@media(max-width:899px){
 .table-scroll,.has-products .table-scroll{overflow:visible;max-height:none;min-height:0}
 .board-table{display:block;width:100%;min-width:0;max-width:100%}
 .board-table colgroup,.board-table col{display:contents}
 .board-table thead{display:block}
 .board-table thead tr{display:flex;flex-wrap:wrap;gap:5px;padding:12px;background:#f1f5eb;border-bottom:1px solid #dce5d2}
 .board-table th,.board-table th:first-child,
 .board-table th:nth-child(2),.board-table th:nth-child(3),
 .board-table th:nth-child(4),.board-table th:nth-child(5),.board-table th:nth-child(6){display:block;position:static;left:auto;top:auto;writing-mode:horizontal-tb;text-orientation:mixed;white-space:normal;width:auto;height:auto;min-width:0;padding:3px 6px;border:1px solid #d8e3cf;border-radius:4px;background:#fff;font-size:11px;line-height:1.4;text-align:left;box-shadow:none}
 .board-table tbody{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:12px;background:#f2f5ee}
 .board-table tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;min-width:0;max-width:100%;align-content:start;border:1px solid #cfddc2;border-radius:8px;background:#fff}
 .board-table tbody tr:not(.product-start)::before{content:attr(data-product-name);grid-column:1 / -1;display:block;font-size:13px;font-weight:600;line-height:1.6;padding:11px 10px;background:#eef4e8;color:#4c6c3a;overflow-wrap:anywhere;border-radius:7px 7px 0 0}
 .board-table tbody td,.has-products .board-table tbody td.material-cell,
 .board-table tbody td.product-cell,.has-products .board-table tbody td.product-cell,
 .board-table tbody td.date-cell,.has-products .board-table tbody td.date-cell,
 .board-table tbody td.days-cell,.has-products .board-table tbody td.days-cell,
 .board-table tbody td.sketch-cell,.has-products .board-table tbody td.sketch-cell{display:block;position:static;left:auto;top:auto;min-width:0;max-width:100%;width:auto;vertical-align:top!important;text-align:left;padding:9px 10px;font-size:13px;border-top:0;border-right:1px solid #e1e9d9;border-bottom:1px solid #e1e9d9;box-shadow:none;overflow-wrap:anywhere}
 .board-table tbody td::before{content:attr(data-label);display:block;font-size:11px;font-weight:600;line-height:1.5;color:#617753;margin-bottom:5px;overflow-wrap:anywhere}
 .board-table tbody td.product-cell,
 .board-table tbody td.material-cell,
 .board-table tbody td.sketch-cell{grid-column:1 / -1}
 .board-table tbody td.last-operation{grid-column:1 / -1}
 .board-table tr.product-start td{border-top:0}
 .product-button{font-size:14px;line-height:1.5}
 .product-order,.product-article,.product-summary{font-size:12px}
 .date-button{font-size:13px}
 .material-name,.has-products .material-name{font-size:14px;white-space:normal;overflow:visible;line-height:1.5}
 .material-meta,.has-products .material-meta,.kind-badge,.has-products .kind-badge{font-size:12px}
 .group-button,.has-products .group-button{font-size:12px}
 .metric-button{font-size:14px;text-align:left}
 .metric-partial,.metric-source{font-size:12px}
 .board-table tbody td.status-cell,.has-products .board-table tbody td.status-cell{padding:9px 10px}
 .status-select,.has-products .status-select{font-size:13px;min-height:39px;padding:8px 25px 8px 7px}
 .status-control[data-short] .status-select{appearance:auto;color:#3c5931}
 .status-control[data-short]::before,.status-control[data-short]::after{content:none}
 .status-readonly{font-size:13px;text-align:left}
 .sketch-button{font-size:12px;min-height:80px;max-width:100%;padding:10px}
 .sketch-button img{max-height:170px}
}
@media(max-width:620px){
 .board-table tbody{grid-template-columns:minmax(0,1fr)}
}

.date-control{position:relative;width:100%;min-width:0;max-width:100%}
.date-input{display:block;width:100%;min-width:0;max-width:100%;height:32px;box-sizing:border-box;border:1px solid #d4dfcb;border-radius:4px;background:#fff;color:#49643a;font-size:11px;line-height:1.3;padding:3px 1px;text-align:center}
.date-input::-webkit-datetime-edit{padding:0}
.date-input::-webkit-date-and-time-value{min-height:1.3em;text-align:center}
.date-control[data-short]::before{content:attr(data-short);position:absolute;left:1px;right:1px;top:50%;transform:translateY(-50%);font-size:11px;line-height:1.4;text-align:center;pointer-events:none;color:#49643a}
.date-control[data-short] .date-input{color:transparent}
.date-control[data-short] .date-input::-webkit-datetime-edit{opacity:0}
.date-control[data-short] .date-input::-webkit-calendar-picker-indicator{position:absolute;inset:0;margin:0;padding:0;width:100%;height:100%;opacity:0;cursor:pointer}
@media(max-width:899px){
 .date-input{font-size:12px;height:38px;text-align:left;padding:6px 7px}
 .date-input::-webkit-date-and-time-value{text-align:left}
 .date-control[data-short]::before{content:none}
 .date-control[data-short] .date-input{color:#49643a}
 .date-control[data-short] .date-input::-webkit-datetime-edit{opacity:1}
 .date-control[data-short] .date-input::-webkit-calendar-picker-indicator{position:static;inset:auto;opacity:1;width:16px;height:16px;margin:0;padding:0}
}

/* Match the horizontal operation strip; pass numbers remain independent. */
.operation-title{display:block;font-size:11px;line-height:1.35;font-weight:600;white-space:normal;overflow-wrap:anywhere}
.pass-number{display:block;font-size:11px;line-height:1.3;font-weight:500;color:#687d58;margin-top:4px;white-space:nowrap}
@media(min-width:900px){
 .board-table th{height:72px;vertical-align:middle}
}
.metric-estimate{display:block;max-width:100%;width:max-content;margin:4px 0 0 auto;padding:1px 3px;border:1px solid #e3d3aa;border-radius:3px;background:#fff6df;color:#8b6828;font-size:11px;line-height:1.4;overflow-wrap:anywhere;white-space:normal}
@media(max-width:899px){
 .metric-estimate{font-size:12px;margin-left:0}
}


/* Material and the separate quantity column in the production table. */
.material-name,.has-products .material-name{font-size:12px;line-height:1.2;white-space:normal;overflow:visible;text-overflow:unset;margin-bottom:4px}
.material-main{display:block;width:100%;min-width:0;font-size:12px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.material-rest{display:block;width:100%;min-width:0;font-size:10px;line-height:1.05;margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#607650;font-weight:400}
.board-table td.quantity-cell{text-align:center;font-variant-numeric:tabular-nums}
.quantity-button{display:block;width:100%;min-width:0;max-width:100%;padding:4px 0;border:0;background:transparent;color:#496b36;font-size:12px;line-height:1.5;text-align:center;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.quantity-button:hover{color:#234c15}
@media(min-width:900px){
 .board-table th:nth-child(8){padding-left:1px;padding-right:1px;text-align:center}
}
@media(max-width:899px){
 .material-main{font-size:14px;line-height:1.3}
 .material-rest{font-size:12px;line-height:1.2}
 .quantity-button{font-size:14px;text-align:left}
}


/* Give numbers and operation names an unbroken line at laptop widths. */
.metric-button{font-size:11px;white-space:nowrap;overflow-wrap:normal}
.metric-estimate{font-size:9px;line-height:1.4;padding:1px 2px;white-space:nowrap;overflow-wrap:normal}
.operation-title{white-space:nowrap;overflow-wrap:normal}
.quantity-title,.quantity-unit{display:block;font-size:10px;line-height:1.35;white-space:nowrap;overflow-wrap:normal;font-weight:500}
.quantity-title{font-weight:600}
.quantity-unit{margin-top:2px}
@media(min-width:900px) and (max-width:1499px){
 .operation-title{font-size:10px}
 .board-table th:nth-child(8){font-size:10px}
}
@media(max-width:899px){
 .metric-button{font-size:14px}
 .metric-estimate{font-size:11px}
 .operation-title{font-size:11px}
}

/* Named reusable status patterns. */
.pattern-dialog{width:min(720px,calc(100vw - 36px))}
.form-field select{width:100%;min-width:0;max-width:100%;min-height:42px;padding:10px 30px 10px 11px;border:1px solid #d4e0ca;border-radius:5px;background:#fcfdf9;color:#3b5a2b;font-size:13px}
.pattern-selectors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:16px;align-items:start}
.pattern-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:14px;row-gap:0;margin-top:20px}
.pattern-fields .form-field>span{font-size:12px;line-height:1.5}
.pattern-status{font-size:13px}
.pattern-button{display:inline-flex;align-items:center;justify-content:center;min-height:23px;max-width:100%;padding:2px 7px;border:1px solid #cbdcbd;border-radius:4px;background:#f2f7e9;color:#52713e;font-size:11px;line-height:1.4;white-space:nowrap}
.pattern-button:hover{background:#e7f0da;border-color:#a9c194}
.pattern-help{padding:11px 13px;border:1px solid #d9e5ce;border-radius:6px;background:#f3f8ec;color:#627a50;font-size:12px;line-height:1.8}
@media(max-width:620px){
 .pattern-selectors{grid-template-columns:minmax(0,1fr)}
 .pattern-fields{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:12px}
 .pattern-button{font-size:12px;min-height:29px}
}
@media(max-width:420px){
 .pattern-dialog{width:calc(100vw - 22px)}
 .pattern-fields{grid-template-columns:minmax(0,1fr)}
}

.metric-source{font-size:9px;white-space:nowrap;overflow-wrap:normal}
@media(min-width:900px){
 .board-table th:nth-child(12){font-size:10px;white-space:nowrap}
}

/* Production cycle controls and grouped pattern fields. */
.cycle-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;min-width:0;padding:12px 20px;border-bottom:1px solid #d9e4cf;background:#f7faf2}
.cycle-tabs{display:flex;flex-wrap:wrap;align-items:center;gap:6px;flex:1 1 260px;min-width:0}
.cycle-tab{display:inline-flex;align-items:center;justify-content:center;min-height:34px;max-width:100%;padding:7px 12px;border:1px solid #cfdec2;border-radius:6px;background:#fff;color:#5b7749;font-size:12px;font-weight:600;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
.cycle-tab:hover{border-color:#a6bf95;background:#edf5e5}
.cycle-tab[aria-selected=true]{border-color:#356b3f;background:#356b3f;color:#fff;box-shadow:0 1px 2px #274e2412}
.cycle-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;min-width:0;flex:0 1 auto}
.cycle-actions .button{min-height:34px;padding:7px 10px;font-size:12px;line-height:1.5}
.cycle-restore{display:flex;flex-wrap:wrap;align-items:center;gap:7px;min-width:0;padding-left:11px;border-left:1px solid #d7e3cb}
.cycle-restore select{min-width:0;max-width:230px;min-height:34px;padding:7px 25px 7px 9px;border-color:#cdddc0;background:#fff;color:#587347;font-size:12px;flex:1 1 140px}
.cycle-caption{flex-basis:100%;margin:0;color:#557345;font-size:12px;line-height:1.6}
.cycle-note{flex-basis:100%;margin:0;color:#687f58;font-size:12px;line-height:1.8}
.pattern-dialog{max-height:90vh;overflow:auto}
.pattern-fields{display:block;margin-top:20px}
.pattern-cycle,.pattern-final{display:block;min-width:0;margin:0 0 18px;padding:16px 14px 2px;border:1px solid #d2e1c6;border-radius:8px;background:#fbfdf8}
.pattern-cycle>legend,.pattern-final>legend{max-width:100%;padding:0 7px;color:#4f703a;font-size:13px;font-weight:600;line-height:1.6;overflow-wrap:anywhere}
.pattern-final{border-color:#c9d9bd;background:#f3f7ed}
.pattern-cycle-fields,.pattern-final-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:14px;row-gap:0;min-width:0}
.pattern-final .pattern-cycle-fields,.pattern-final-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:1100px){
 .cycle-actions{flex-basis:100%;justify-content:flex-start}
}
@media(max-width:760px){
 .cycle-toolbar{padding:12px 17px;gap:10px}
 .cycle-tabs{flex-basis:100%}
 .cycle-restore{padding-left:0;border-left:0;max-width:100%}
}
@media(max-width:620px){
 .pattern-cycle-fields,.pattern-final-fields{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:12px}
}
@media(max-width:480px){
 .cycle-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
 .cycle-actions>.button{width:100%;white-space:normal}
 .cycle-restore{grid-column:1 / -1;width:100%}
 .cycle-restore select{max-width:none}
 .pattern-cycle,.pattern-final{padding-left:11px;padding-right:11px}
}
@media(max-width:420px){
 .pattern-cycle-fields,.pattern-final-fields,.pattern-final .pattern-cycle-fields{grid-template-columns:minmax(0,1fr)}
}

/* The pattern action stays at the material's right edge without adding a row. */
.material-line{position:relative;min-width:0;max-width:100%;padding-right:57px}
.material-line .material-name{width:100%;min-width:0;max-width:100%;margin:0;padding:0}
.material-line>.pattern-button{position:absolute;right:0;top:0;width:52px;height:18px;min-height:0;max-height:18px;margin:0;padding:0 3px;font-size:10px;line-height:1.4;white-space:nowrap}
@media(max-width:899px){
 .material-line>.pattern-button{height:22px;max-height:22px;font-size:11px}
}

/* Current/archive navigation and the final per-material readiness column. */
.table-views{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:12px 20px;border-bottom:1px solid #dce6d2;background:#fff}
.table-view{display:inline-flex;align-items:center;justify-content:center;min-height:35px;max-width:100%;padding:7px 15px;border:1px solid transparent;border-radius:6px;background:transparent;color:#5c774b;font-size:13px;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
.table-view:hover{background:#f0f6e9}
.table-view[aria-pressed=true]{border-color:#bfd4ac;background:#e5efd9;color:#3c642a;font-weight:600}
.board-table td.readiness-cell{padding:3px 2px;border-left:1px solid #bfd4ac;background:#f0f6e8;text-align:center;vertical-align:middle}
.board-table td.readiness-cell.state-ready{background:#c6e0b3}
.readiness-select{display:block;width:100%;min-width:0;max-width:100%;font-size:11px;min-height:36px}
.pattern-selectors{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) 120px}
#pattern-cycle-count{width:100%;min-width:0;max-width:100%;font-size:13px;padding-right:8px}
@media(min-width:900px) and (max-width:1499px){
 .board-table th.readiness-head{font-size:10px;line-height:1.3}
}
@media(max-width:899px){
 .board-table tbody td.readiness-cell{grid-column:1 / -1;padding:9px 10px;text-align:left;border-left:0}
 .readiness-select{font-size:13px;min-height:39px}
}
@media(max-width:620px){
 .pattern-selectors{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:480px){
 .table-views{padding:10px 17px}
 .table-view{flex:1 1 0;padding-left:10px;padding-right:10px}
}

/* Production cycle management chips. */
.cycle-chip{display:inline-flex;align-items:center;gap:7px;max-width:100%;padding:5px 5px 5px 9px;border:1px solid #bfd3ad;border-radius:6px;background:#edf5e4;color:#4c6f36;font-size:12px;font-weight:600;line-height:1.4}
.cycle-remove{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;min-width:22px;padding:0;border:0;border-radius:4px;background:transparent;color:#617f4c;font-size:17px;line-height:1}
.cycle-remove:hover{background:#d8e8ca;color:#315521}

/* Every active cycle is shown left to right; all operation columns share 31.5%. */
.board-table{--operation-font:11px}
@media(min-width:900px){
 .board-table th.cycle-head,.board-table th.final-head{writing-mode:horizontal-tb;text-orientation:mixed;white-space:normal;height:72px;text-align:center;vertical-align:middle;padding:8px 2px}
 .board-table:not([data-cycles="1"]) th.cycle-head,
 .board-table:not([data-cycles="1"]) th.final-head{writing-mode:vertical-rl;text-orientation:mixed;white-space:nowrap;height:126px;text-align:left;padding:7px 0;line-height:1}
 .board-table:not([data-cycles="1"]) th.cycle-head .operation-title,
 .board-table:not([data-cycles="1"]) th.final-head .operation-title,
 .board-table:not([data-cycles="1"]) th.cycle-head .pass-number,
 .board-table:not([data-cycles="1"]) th.final-head .pass-number{display:inline;font-size:var(--operation-font);line-height:1;white-space:nowrap;margin:0}
 .board-table:not([data-cycles="1"]) th.cycle-head .pass-number::before,
 .board-table:not([data-cycles="1"]) th.final-head .pass-number::before{content:" ";white-space:pre}
 .board-table td.status-cell:not(.readiness-cell){font-size:var(--operation-font)}
 .board-table td.status-cell:not(.readiness-cell) .status-select{min-height:32px;font-size:var(--operation-font);padding-left:1px;padding-right:4px}
 .board-table td.status-cell:not(.readiness-cell) .status-select option{font-size:12px;color:#304d2a;background:#fff}
 .board-table:not([data-cycles="1"]) td.status-cell:not(.readiness-cell){padding:1px 0}
 .board-table:not([data-cycles="1"]) td.status-cell:not(.readiness-cell) .status-control[data-short]::before{left:0;right:3px;font-size:var(--operation-font);line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:clip}
 .board-table:not([data-cycles="1"]) td.status-cell:not(.readiness-cell) .status-control[data-short]::after{content:"";right:0;width:0;height:0;border-left:1.5px solid transparent;border-right:1.5px solid transparent;border-top:3px solid #577346;font-size:0;line-height:0}
}
@media(min-width:900px) and (max-width:1499px){
 .board-table[data-cycles="1"] th.cycle-head .operation-title,
 .board-table[data-cycles="1"] th.final-head .operation-title{font-size:10px}
}
@media(max-width:899px){
 .board-table th.cycle-head,.board-table th.final-head{writing-mode:horizontal-tb;text-orientation:mixed;height:auto;white-space:normal}
 .board-table th.cycle-head .operation-title,.board-table th.final-head .operation-title{display:block;font-size:11px}
 .board-table th.cycle-head .pass-number,.board-table th.final-head .pass-number{display:block;font-size:11px;margin-top:3px}
}
@media(min-width:900px){
 .board-table:not([data-cycles="1"]) td.status-cell:not(.readiness-cell) .status-select{padding:0;border-radius:1px}
 .board-table:not([data-cycles="1"]) td.status-cell:not(.readiness-cell) .manual-marker{left:0;bottom:1px;width:2px;height:2px}
}
@media(min-width:900px) and (max-width:1499px){
 .board-table[data-cycles="1"] th.cycle-head .operation-title,
 .board-table[data-cycles="1"] th.final-head .operation-title{white-space:normal;overflow-wrap:anywhere}
}

/* Numeric columns take their rendered number width; headings do not widen them. */
@media(min-width:900px){
 .board-table th.numeric-head,.board-table th.date-head{writing-mode:vertical-rl;text-orientation:mixed;white-space:nowrap;height:112px;padding:8px 1px;font-size:10px;line-height:1;vertical-align:middle;text-align:left}
 .board-table td.days-cell,.has-products .board-table td.days-cell,
 .board-table td.quantity-cell,.has-products .board-table td.quantity-cell,
 .board-table td.metric-cell,.has-products .board-table td.metric-cell{padding:7px 2px;white-space:nowrap;overflow-wrap:normal;font-variant-numeric:tabular-nums}
 .board-table td.date-cell,.has-products .board-table td.date-cell{padding:8px 1px}
 .board-table .metric-button,.board-table .quantity-button{padding-left:0;padding-right:0;white-space:nowrap;overflow-wrap:normal}
 .board-table .metric-source,.board-table .metric-partial{max-width:100%;white-space:normal;overflow-wrap:anywhere;word-break:break-all;line-height:1.2}
}
.sketch-dialog .sketch-editor{margin:0;padding:0;border:0}

/* Operator stage view: one task list in normal document flow. */
.workspace-tabs{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:10px 0 14px;min-width:0}
.workspace-tabs>button{min-width:0;min-height:34px;padding:7px 12px;border:1px solid #ccdaca;border-radius:6px;background:#fff;color:#45613c;font-size:12px;line-height:1.4;white-space:normal}
.workspace-tabs>button[aria-selected=true],.workspace-tabs>button[aria-pressed=true]{border-color:#245c47;background:#245c47;color:#fff;font-weight:600}
.workspace-mode-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-left:auto;color:#647264;font-size:12px}
.workspace-mode-actions .button{min-height:34px;padding:7px 10px;font-size:12px}
.operator-mode .page{padding:10px 20px 20px}
.operator-mode .site-header{padding:9px 20px;gap:12px}
.operator-mode .brand{font-size:19px}
.operator-mode .header-actions{gap:7px}
.operator-mode .header-actions .button{min-height:30px;padding:6px 9px;font-size:12px}
.operator-mode .workspace-tabs{padding-top:2px;padding-bottom:8px}
.operator-mode .intro,.operator-mode .import-panel,.operator-mode #board-workspace{display:none!important}
#operator-view{min-width:0;max-width:100%}
.op-dashboard{min-width:0;color:#263d30}
.op-topline{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 20px;margin:0 0 10px}
.op-title{margin:0;font-size:20px;line-height:1.35;font-weight:650;letter-spacing:-.3px}
.op-counters{display:flex;flex-wrap:wrap;gap:6px}
.op-counter{padding:4px 8px;border:1px solid #d6e0cf;border-radius:5px;background:#fff;color:#516b45;font-size:12px;line-height:1.4;white-space:nowrap}
.op-counter-overdue{border-color:#de9b93;background:#fff0ee;color:#a33b32}
.op-section{min-width:0;margin:0 0 18px;border:1px solid #d4dfcb;border-radius:9px;background:#fff;overflow:visible}
.op-section-heading{display:flex;align-items:center;gap:10px;min-height:41px;padding:8px 13px;border-bottom:1px solid #dce5d5;border-radius:8px 8px 0 0;background:#f1f6eb}
.op-section-heading h3{margin:0;font-size:15px;line-height:1.4;font-weight:650}
#op-tasks>.op-section-heading{background:#e7f0e3}
.op-empty{margin:0;padding:20px 14px;color:#65735d;font-size:13px;line-height:1.6}
.op-error{margin:0 0 12px;padding:10px 12px;border:1px solid #ddbda5;border-radius:6px;background:#fff1e7;color:#8c4e32;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.op-table{width:100%;max-width:100%;min-width:0;table-layout:fixed;border-collapse:collapse;font-size:12px}
.op-col-product{width:16%}.op-col-material{width:27%}.op-col-pass{width:4%}.op-col-quantity{width:5%}.op-col-area{width:6%}.op-col-sheets{width:5%}.op-col-status{width:22%}.op-col-next{width:9%}.op-col-sketch{width:6%}
.op-table[data-sheets=false] .op-col-material{width:32%}
.op-table th{padding:6px 5px;border-right:1px solid #e3e9de;border-bottom:1px solid #dce5d5;background:#f7f9f3;color:#5a7050;font-size:11px;line-height:1.35;font-weight:600;text-align:left;overflow-wrap:anywhere}
.op-table td{min-width:0;padding:7px 5px;border-right:1px solid #e5ebdf;border-bottom:1px solid #e1e8da;vertical-align:middle;line-height:1.35;overflow-wrap:anywhere}
.op-table th:first-child,.op-table td:first-child{padding-left:12px}
.op-table th:last-child,.op-table td:last-child{border-right:0}
.op-table tbody tr{height:56px}
.op-table tbody tr:last-child td{border-bottom:0}
.op-table tbody tr.op-overdue{border-color:#d99189;background:#fff0ef;outline:1px solid #d99189;outline-offset:-1px}
.op-table tr.op-overdue td{background:#fff0ef;border-bottom-color:#e6b2ad}
.op-clamp{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;max-height:2.7em;overflow:hidden;overflow-wrap:anywhere}
.op-product{font-weight:600;color:#36543b}.op-material{color:#3a5434}
.op-pass{font-size:11px;color:#66795d;text-align:center;font-variant-numeric:tabular-nums}
.op-cycle-name{display:block}
.op-cycle-block{display:block;margin-top:2px;color:#896324;font-size:10px;line-height:1.15}
.op-next-cell{font-size:11px;color:#36543b}
.op-next-label{display:block}
.op-next-cycle{display:block;margin-top:2px;color:#66795d;font-size:10px;line-height:1.15}
.board-table .cycle-blocked .status-control{opacity:.65}
.cycle-chip-final{padding-right:9px;border-style:dashed;background:#f6f9f2;color:#637759}
.op-number{font-variant-numeric:tabular-nums;text-align:right;font-size:12px}
.op-number-value{display:block;max-width:100%;overflow-wrap:anywhere}
.op-quantity-button{width:100%;min-width:0;min-height:28px;margin:0;padding:2px 0;border:0;border-radius:3px;background:transparent;color:#255c43;font:inherit;font-weight:650;text-align:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.op-quantity-button:hover{background:#eef5e8}
.op-quantity-button:focus-visible{outline:2px solid #3f7956;outline-offset:2px}
.op-quantity-button:disabled{color:#82907a;text-decoration:none;cursor:default}
.op-partial{display:block;color:#8a6a27;font-size:10px;line-height:1.2;font-weight:400}
.op-overdue-label{display:block;margin-top:2px;color:#b23b31;font-size:10px;line-height:1.1;font-weight:650}
.op-status-controls{display:flex;flex-wrap:wrap;align-items:center;gap:4px;min-width:0}
.op-quick{flex:0 1 auto;min-width:0;min-height:30px;padding:5px 7px;border:1px solid #bfceb8;border-radius:4px;background:#f4f8ef;color:#46623c;font-size:11px;line-height:1.3;white-space:nowrap}
.op-quick-working{border-color:#cfbf91;background:#fff8e9;color:#80611e}
.op-quick-ready{border-color:#2f6a48;background:#2f6a48;color:#fff;font-weight:600}
.op-quick-ready:hover{background:#245b3c}
.op-status-select{flex:1 1 89px;width:89px;min-width:0;max-width:100%;min-height:30px;padding:4px 18px 4px 4px;border:1px solid #cedbc6;border-radius:4px;background:#fff;color:#3d5c32;font-size:12px;line-height:1.3}
.op-link-button{display:block;width:100%;min-width:0;min-height:30px;padding:4px 1px;border:0;border-radius:3px;background:transparent;color:#365e40;font-size:11px;line-height:1.4;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.op-link-button:hover{background:#eef5e8}
.op-link-button:disabled{text-decoration:none;color:#82907a}
@media(max-width:1100px){.workspace-mode-actions{width:100%;margin-left:0}.op-title{font-size:18px}.op-status-controls{gap:3px}.op-quick{padding-left:5px;padding-right:5px}}
@media(max-width:899px){
 .operator-mode .page{padding:9px 12px 18px}.operator-mode .site-header{padding:10px 12px}.operator-mode .header-actions{max-width:100%}
 .workspace-tabs{gap:5px}.workspace-tabs>button{flex:1 1 100px;padding:7px 8px;font-size:12px}.workspace-mode-actions{margin-top:3px}
 .op-topline{display:block;margin-bottom:10px}.op-title{font-size:18px;margin-bottom:8px}.op-counter{font-size:11px;padding:3px 6px}
 .op-section{margin-bottom:14px}.op-section-heading{padding:8px 10px}.op-section-heading h3{font-size:14px}
 .op-table,.op-table colgroup,.op-table col,.op-table thead,.op-table tbody{display:block;width:100%;max-width:100%;min-width:0}
 .op-table colgroup{height:0;overflow:clip}.op-table col{width:0;height:0}
 .op-table thead tr{display:flex;flex-wrap:wrap;gap:4px;padding:7px 9px;background:#f6f9f1}
 .op-table th,.op-table th:first-child{display:block;padding:2px 4px;border:0;background:#edf3e6;font-size:10px;line-height:1.3}
 .op-table tbody{display:grid;gap:9px;padding:9px;background:#f3f7ee}
 .op-table tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));height:auto;min-width:0;border:1px solid #d4dfcb;border-radius:6px;background:#fff}
 .op-table td,.op-table td:first-child{display:block;min-width:0;max-width:100%;padding:6px 8px;border-right:1px solid #e5ebdf;border-bottom:1px solid #e1e8da;text-align:left;font-size:12px}
 .op-table td::before{content:attr(data-label);display:block;margin-bottom:3px;color:#657c59;font-size:10px;line-height:1.3;font-weight:600}
 .op-table td.op-product,.op-table td.op-material,.op-table td.op-status-cell{grid-column:1 / -1}
 .op-table td.op-product{background:#eff5e8;border-radius:5px 5px 0 0}.op-clamp{-webkit-line-clamp:2;max-height:2.7em}
 .op-status-controls{gap:5px}.op-quick{min-height:33px;padding:6px 9px;font-size:12px}.op-status-select{min-height:33px;flex-basis:100px;font-size:12px}
 .op-link-button{font-size:12px;min-height:31px;text-align:left}.op-partial{font-size:10px}
}
@media(max-width:480px){.operator-mode .site-header{flex-wrap:wrap;gap:8px}.operator-mode .brand{font-size:18px}.op-counters{gap:4px}.workspace-tabs>button{flex-basis:87px}}

/* Root navigation wraps its buttons in screen-tabs; controls live below the board. */
.screen-tabs{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-width:0;max-width:100%;flex:1 1 auto}
.workspace-tabs .workspace-tab{min-width:0;min-height:34px;padding:7px 12px;border:1px solid #ccdaca;border-radius:6px;background:#fff;color:#45613c;font-size:12px;line-height:1.4;white-space:normal}
.workspace-tabs .workspace-tab[aria-pressed=true]{border-color:#245c47;background:#245c47;color:#fff;font-weight:600}
.board-controls-bottom{min-width:0;border-top:1px solid #d8e3cf;border-radius:0 0 11px 11px;background:#fafcf7}
.board-controls-bottom .workspace-toolbar{padding:16px 20px 11px;border-bottom:0;gap:15px}
.board-controls-bottom .table-views{padding:0 20px 14px;border-bottom:0;background:transparent}
.finish-date{display:block;min-width:0;max-width:100%;font-size:11px;line-height:1.5;white-space:nowrap;text-align:center;font-variant-numeric:tabular-nums}
.operator-parts-dialog{width:min(680px,calc(100vw - 36px))}
#operator-parts-list{display:grid;gap:8px;min-width:0}
.operator-parts-dialog .evidence-card{margin:0;padding:10px 12px}
.operator-parts-dialog .evidence-card h3{margin:0 0 4px;line-height:1.4}
.operator-parts-dialog .evidence-card p{margin:4px 0 0;line-height:1.5}
.op-col-edge{width:6%}
.operator-mode #rollback-banner,.operator-mode #demo-banner{display:none!important}
.operator-sketch-dialog.sketch-viewer{width:max-content;max-width:calc(100vw - 40px);max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px);margin:auto;padding:0;border:0;border-radius:8px;overflow:visible;background:transparent;box-shadow:0 18px 80px #0006}
.sketch-viewer::backdrop{background:#11251bd1;backdrop-filter:blur(3px)}
.sketch-viewer-frame{position:relative;max-width:calc(100vw - 40px);line-height:0}
.sketch-viewer #viewer-sketch-image{display:block;width:auto;height:auto;min-width:min(240px,calc(100vw - 40px));max-width:calc(100vw - 40px);max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px);margin:0;border-radius:8px;object-fit:contain;background:#fff}
.sketch-viewer-replace,.sketch-viewer-close{position:absolute;top:10px;z-index:1;margin:0;border:1px solid #d9e1d5;border-radius:5px;background:#fffffff0;color:#2f4e37;box-shadow:0 2px 12px #0002;line-height:1.3}
.sketch-viewer-replace{left:10px;min-height:29px;padding:5px 8px;font-size:11px}
.sketch-viewer-close{right:10px;width:30px;height:30px;padding:0;font-size:23px}
.sketch-viewer-error,.sketch-viewer-loading{position:absolute;left:10px;right:10px;bottom:10px;z-index:1;padding:8px 10px;border:1px solid #dca69b;border-radius:5px;background:#fff1efed;color:#9c382e;font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.sketch-viewer-loading{width:max-content;max-width:calc(100% - 20px);right:auto;border-color:#cbd9c7;background:#fffffff0;color:#47633f;font-size:11px}
@media(max-width:899px){
 .screen-tabs{width:100%;gap:5px}
 .workspace-tabs .workspace-tab{flex:1 1 100px;padding:7px 8px}
 .board-controls-bottom .workspace-toolbar{padding:14px 12px 10px}
 .board-controls-bottom .table-views{padding:0 12px 12px}
 .finish-date{text-align:left}
}
@media(max-width:480px){.workspace-tabs .workspace-tab{flex-basis:87px}.operator-parts-dialog{width:calc(100vw - 22px)}}

/* On phones the card labels replace the duplicate header strip. */
@media(max-width:899px){
 .operator-mode .site-header{padding:7px 12px;gap:6px;align-items:center}
 .operator-mode .brand{font-size:18px}
 .operator-mode .header-actions{width:auto;flex:1 1 300px;max-width:100%;justify-content:flex-end;gap:4px}
 .operator-mode .header-actions .button{min-height:28px;padding:4px 7px;font-size:11px}
 .operator-mode .save-state{flex-basis:auto;justify-content:flex-start;margin-right:0;font-size:11px}
 .operator-mode .workspace-tabs{row-gap:5px;padding-bottom:7px}
 .operator-mode .workspace-tabs .workspace-tab{min-height:30px;padding:5px 8px;font-size:12px}
 .operator-mode .workspace-mode-actions{gap:6px;margin-top:0;font-size:11px}
 .operator-mode .workspace-mode-actions .button{min-height:28px;padding:5px 8px;font-size:11px}
 .operator-mode .op-topline{margin-bottom:8px}
 .operator-mode .op-title{font-size:17px;line-height:1.3;margin-bottom:5px}
 .operator-mode .op-table thead{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap}
 .operator-mode .op-table td,.operator-mode .op-table td:first-child{padding:5px 8px}
 .operator-mode .op-table td::before{margin-bottom:2px}
 .operator-mode .op-quick,.operator-mode .op-status-select{min-height:30px}
 .operator-mode .op-quick{padding-top:5px;padding-bottom:5px}
 .operator-mode .op-link-button{min-height:28px}
 .operator-mode .op-section-heading{min-height:38px}
}
@media(min-width:900px){
 .op-table th.op-numeric-head{padding:6px 1px;font-size:10px;line-height:1;white-space:nowrap;text-align:center;overflow-wrap:normal}
 .op-table th.op-head-vertical{writing-mode:vertical-rl;text-orientation:mixed;height:76px;padding:7px 1px;text-align:left;vertical-align:middle}
 .op-table td.op-numeric-cell{padding:7px 2px;white-space:nowrap;overflow-wrap:normal}
 .op-numeric-cell .op-number-value,.op-numeric-cell .op-cycle-name{white-space:nowrap;overflow-wrap:normal}
 .op-numeric-cell .op-partial{white-space:normal;overflow-wrap:anywhere;word-break:break-all;font-size:9px;line-height:1.1}
}

/* Compact body rows retain all text and contained sketch thumbnails. */
.board-table .product-button{line-height:1.3}
.board-table .product-order,.board-table .product-article,.board-table .product-summary{line-height:1.3;margin-top:3px}
.board-table .product-reference{margin:2px 0 0;font-size:11px;line-height:1.25;color:#617951;overflow-wrap:anywhere}
.board-table .product-reference .product-order,.board-table .product-reference .product-article{display:inline;margin:0;font-size:inherit;line-height:inherit}
.board-table .archive-badge,.board-table .closed-badge{margin-top:4px;padding-top:2px;padding-bottom:2px}
@media(min-width:900px){
 .board-table tbody td{padding-top:3px;padding-bottom:3px;line-height:1.3}
 .board-table tbody td.material-cell,.has-products .board-table tbody td.material-cell{padding-top:3px;padding-bottom:3px}
 .board-table tbody td.product-cell,.has-products .board-table tbody td.product-cell{padding:3px 5px}
 .board-table .product-reference{font-size:10px;line-height:1.2}
 .board-table tbody td.date-cell,.has-products .board-table tbody td.date-cell,
 .board-table tbody td.days-cell,.has-products .board-table tbody td.days-cell,
 .board-table tbody td.quantity-cell,.has-products .board-table tbody td.quantity-cell,
 .board-table tbody td.metric-cell,.has-products .board-table tbody td.metric-cell{padding-top:2px;padding-bottom:2px}
 .board-table tbody td.sketch-cell,.has-products .board-table tbody td.sketch-cell{padding-top:3px;padding-bottom:3px}
 .board-table tbody td.status-cell,.has-products .board-table tbody td.status-cell{padding-top:1px;padding-bottom:1px}
 .board-table tbody td.status-cell:not(.readiness-cell) .status-select,
 .board-table tbody td.readiness-cell .readiness-select{height:28px;min-height:28px;padding-top:1px;padding-bottom:1px;line-height:1.2}
 .board-table .date-input{height:28px;padding-top:1px;padding-bottom:1px}
 .board-table .quantity-button{padding-top:1px;padding-bottom:1px;line-height:1.3}
 .board-table .metric-button{line-height:1.3}
 .board-table .sketch-button{min-height:28px;padding:2px;line-height:1.15}
 .board-table .sketch-button>span:first-child{display:inline;font-size:13px;line-height:1;margin-right:2px}
 .board-table .sketch-button>span:last-child{display:inline;font-size:10px;line-height:1.15}
 .board-table .sketch-button img{max-height:64px;margin:0 auto;object-fit:contain}
 .op-table tbody tr{height:40px}
 .op-table tbody td,.op-table tbody td.op-numeric-cell{padding-top:4px;padding-bottom:4px}
}
@media(max-width:899px){
 .board-table tbody td,.has-products .board-table tbody td.material-cell,
 .board-table tbody td.product-cell,.has-products .board-table tbody td.product-cell,
 .board-table tbody td.date-cell,.has-products .board-table tbody td.date-cell,
 .board-table tbody td.days-cell,.has-products .board-table tbody td.days-cell,
 .board-table tbody td.sketch-cell,.has-products .board-table tbody td.sketch-cell,
 .board-table tbody td.status-cell,.has-products .board-table tbody td.status-cell{padding-top:6px;padding-bottom:6px}
 .board-table tbody td::before{margin-bottom:3px}
}
/* Server connection controls stay compact and use the page's regular scroll. */
.sync-notice-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
#local-copy-banner{display:flex;align-items:center;justify-content:space-between;gap:12px}
#local-copy-banner[hidden]{display:none}
#local-copy-banner p{margin:0}
@media(max-width:650px){#local-copy-banner{align-items:flex-start;flex-direction:column}.sync-notice-actions{width:100%}}
