/* Component illustrations are references; counts and labels show actual progress. */
:root{--visual-ink:#252b2b;--visual-line:#dce1dd;--visual-surface:#f3f5f2;--visual-green:#355d46;--visual-green-light:#edf5ee}
button:focus-visible,summary:focus-visible,input:focus-visible{outline:3px solid #6e8d78;outline-offset:3px}
.button svg,.parts-reference summary svg{width:20px;height:20px;flex-shrink:0}
.button{gap:9px;align-items:center;justify-content:center}
.station-glyph{display:inline-flex;width:52px;height:52px;flex-shrink:0;align-items:center;justify-content:center;background:#e9eeea;border:1px solid #dce3dc;border-radius:15px;color:#42594b}
.station-glyph svg{width:27px;height:27px}
.visual-heading{display:flex;gap:14px;align-items:center}
.visual-stages{grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}
.visual-stages .stage{padding:17px 11px;min-height:166px}
.visual-stages .step{display:flex;align-items:center;justify-content:space-between}
.visual-stages .step svg{width:26px;height:26px;color:#49624f}
.visual-stages .stage strong{font-size:11px}
.pending-coffin{padding:20px;border-top:1px solid #e4e7e3}
.component-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(92px,1fr));gap:10px;margin:18px 0 12px}
.component-mini{display:flex;min-width:0;flex-direction:column;align-items:center;justify-content:flex-start;text-align:center;background:#f4f6f3;border:1px solid #e6eae4;border-radius:10px;padding:7px 8px 11px}
.component-mini.is-complete{border-color:#c7d9c9;background:#edf4ec}
.mini-illustration{height:65px;width:100%;display:flex;align-items:center;justify-content:center}
.mini-illustration img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}
.mini-illustration svg{width:30px;height:30px;color:#748276}
.component-mini>b{font-size:12px;font-weight:600;line-height:1.4;margin-top:2px}
.component-mini>span{font-size:11px;color:#637063;line-height:1.5;margin:4px 0}
.control-dots{display:flex;gap:4px;margin-top:auto}
.control-dots i{width:7px;height:7px;background:#d4dcd1;border-radius:50%}
.control-dots .partial{background:#a8884c}.control-dots .done{background:#527958}
.coffin-parts{margin:12px 0;color:#687067;font-size:12px;line-height:1.7}
.queue-visual-context{display:flex;align-items:center;gap:18px;margin:12px 0}
.queue-visual-context img{width:140px;height:78px;object-fit:contain;mix-blend-mode:multiply}
.queue-visual-context>span{display:flex;gap:9px;align-items:center;font-size:16px;font-weight:500}
.visual-targets{gap:18px;margin:22px 0 8px}
.visual-targets .work-target{display:flex;flex-direction:column;padding:15px 20px 20px;gap:10px;background:#fafbf8;border:1px solid #dce2d9;min-height:0;transition:border-color .15s,background .15s}
.visual-targets .work-target:hover{background:#f0f4ed;border-color:#7f977b}
.visual-targets .work-target:first-child{border-color:#8fa68a;background:#f3f7ef}
.target-picture{height:148px;display:flex;align-items:center;justify-content:center;position:relative;width:100%;border-bottom:1px solid #e0e6dc;margin-bottom:4px}
.target-picture img{height:100%;width:100%;object-fit:contain;mix-blend-mode:multiply}
.target-picture>span{position:absolute;right:3px;bottom:12px;background:white;border:1px solid #d7e0d2;width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#456040}
.visual-targets .work-target b{font-size:20px;font-weight:600;line-height:1.4}
.visual-targets .work-target>span{font-size:14px;line-height:1.6;color:#697063}
.visual-targets .work-target small{margin-top:auto;padding-top:6px;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px;font-weight:600;color:#40543b;width:100%}
.visual-targets small svg{width:20px;height:20px}
.visual-pending-target{grid-template-columns:100px 1fr;column-gap:16px;row-gap:6px}
.visual-pending-target>img{grid-row:1/4;grid-column:1;width:100px;height:85px;object-fit:contain;mix-blend-mode:multiply;align-self:center}
.visual-pending-target>strong,.visual-pending-target>span,.visual-pending-target>small{grid-column:2}
#modal:has(#workForm){width:min(1000px,calc(100% - 32px));max-width:1000px;max-height:94dvh;padding:24px;background:#fbfcf9;border-radius:18px}
#modal:has(#workForm) .capture-identity{top:-24px;margin-bottom:19px;align-items:center;background:#eef1eb;border:1px solid #e0e5db;z-index:3}
.visual-process-title{display:flex;gap:20px;justify-content:space-between;align-items:center;margin-bottom:16px}
.visual-process-title h2{font-size:27px;line-height:1.2;letter-spacing:-.6px;margin:7px 0 8px}
.visual-process-title .eyebrow{font-size:10px;letter-spacing:1.1px;margin:0;color:#65715f}
.visual-process-title .sub{font-size:14px;line-height:1.6;margin:0;color:#64705f}
.visual-process-title .station-glyph{width:58px;height:58px;background:#eef2e9}
#workForm{gap:14px}
.visual-input-guide{margin:0;padding:11px 14px;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;background:#edf1e8;border:1px solid #e0e6d8;border-radius:10px}
.visual-input-guide>span:first-child{display:flex;align-items:center;gap:7px;font-size:13px;color:#4e6046}
.visual-input-guide svg{width:17px;height:17px}
#workProgress{background:#fff;border:1px solid #dbe3d3;color:#4e6346;font-size:11px;padding:5px 9px}
.visual-components{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;align-items:start}
.visual-component{border:1px solid #dce3d7;border-radius:13px;overflow:hidden;background:#fff;min-width:0;box-shadow:0 2px 5px #273a2103}
.visual-component.is-complete{border-color:#b9d0b8}
.component-heading{display:flex;align-items:center;gap:12px;padding:10px 15px;background:#f3f5ef;border-bottom:1px solid #e3e8df;min-height:92px}
.component-picture{width:110px;height:75px;flex-shrink:0;display:flex;align-items:center;justify-content:center}
.component-picture img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}
.component-picture>svg{width:38px;height:38px;color:#78876d}
.component-heading>div:last-child{min-width:0}
.component-heading h3{font-size:16px;line-height:1.35;font-weight:600;margin:0 0 6px;color:#34432c}
.component-state{font-size:11px;line-height:1.5;color:#617256}
.is-complete .component-state{color:#36633c;font-weight:600}
.component-heading small{font-size:10px;line-height:1.5;color:#7b8373;display:block;margin-top:3px}
.component-controls{display:grid}
.visual-quantity.component-field{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;padding:15px;border:0;border-bottom:1px solid #edf0e9;margin:0;align-items:center;border-radius:0;background:white;min-width:0}
.visual-quantity:last-child{border-bottom:0}
.visual-quantity .quantity-copy label{font-size:13px;font-weight:500;line-height:1.5;color:#384032;margin:0;display:block}
.visual-quantity .quantity-copy small{display:block;font-size:11px;line-height:1.6;color:#747d6b;margin:5px 0 0}
.quantity-entry{align-self:center;text-align:center;display:grid;gap:5px}
.quantity-caption{font-size:8px;font-weight:600;letter-spacing:1px;color:#69745e}
.quantity-stepper{display:flex;align-items:stretch;border:1px solid #cbd5c2;border-radius:10px;overflow:hidden;background:#fff}
.quantity-stepper button{display:flex;align-items:center;justify-content:center;width:44px;min-width:44px;height:46px;padding:0;background:#eef2e7;border:0;border-radius:0;font-size:25px;color:#425739;line-height:1}
.quantity-stepper button:hover:enabled{background:#dfe8d5}
.quantity-stepper button:disabled{background:#f5f6f2;color:#c3cabc;cursor:default}
.quantity-stepper input{width:44px;min-width:0;min-height:46px;height:46px;padding:0 2px;text-align:center;font-size:21px;font-weight:600;border:0;border-radius:0;background:white;color:#283c21;appearance:textfield;-moz-appearance:textfield;box-shadow:none}
.quantity-stepper input::-webkit-outer-spin-button,.quantity-stepper input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.visual-quantity .part-status{grid-column:1/-1;text-align:left;font-size:11px;color:#78846c;line-height:1.4;padding-top:0}
.visual-quantity.has-addition{background:#f5faef}
.visual-quantity.has-addition .part-status{color:#48743d;font-weight:600}
.visual-quantity:has(input:disabled){opacity:1;background:#fafbf8}
.visual-quantity.control-complete .part-status{color:#53734b}
.visual-task.task-check{display:flex;align-items:center;gap:10px;padding:16px;min-height:96px;border:0;border-radius:0;margin:0;background:#fff}
.visual-task>input{width:24px;height:24px;min-width:24px;min-height:24px;accent-color:#4b7044;margin:0}
.visual-task>span:not(.task-tick){flex:1;font-size:13px;line-height:1.5;color:#394431;font-weight:500}
.visual-task small{font-size:11px;color:#7a856d;margin-top:6px}
.visual-task .task-tick{display:none;color:#4c7543}
.visual-task:has(input:checked) .task-tick{display:flex}
.visual-task:has(input:checked){background:#f2f8ed}
.visual-task:has(input:disabled){opacity:1;background:#f7f8f4;cursor:default}
.visual-task:has(input:disabled)>span:not(.task-tick){color:#7b8472}
.visual-task.already-done{background:#eff5e9}
.parts-reference{border:1px solid #e1e6da;border-radius:10px;background:#f3f5ef}
.parts-reference summary{display:flex;gap:8px;align-items:center;cursor:pointer;padding:13px 15px;min-height:46px;font-size:12px;color:#586b4b}
.parts-reference summary::after{content:'+';margin-left:auto;font-size:21px}.parts-reference[open] summary::after{content:'−'}
.parts-reference>img{display:block;width:100%;max-width:700px;height:auto;max-height:450px;object-fit:contain;margin:auto;mix-blend-mode:multiply}
#workForm #workOutcome{padding:11px 15px;font-size:12px;line-height:1.6;background:#f1f3ed;border-radius:8px;border:0;margin:0;color:#627057}
#workForm .visual-save-actions{position:sticky;bottom:-24px;display:grid;grid-template-columns:1fr 1.6fr;gap:9px;padding:13px 0 0;background:#fbfcf9;border-top:1px solid #dbe3d4;z-index:2;box-shadow:0 -10px 18px #fbfcf9f0;margin-top:0}
.report-total{grid-column:1/-1;display:flex;align-items:center;gap:7px;font-size:12px;color:#617552;min-height:19px;margin:0 0 2px}
.report-total svg{width:17px;height:17px}.report-total b{color:#344f28}
#workForm .visual-save-actions .button{min-height:47px;font-size:13px;padding:10px 12px;line-height:1.45}
#workForm .visual-save-actions .primary{display:flex;background:#344f2c;border-color:#344f2c;font-weight:500}
#workForm .visual-save-actions .primary:disabled{background:#e4e9df;border-color:#d8e0d0;color:#7c8b6c;opacity:1}
#workForm .visual-save-actions #finishWorkButton{grid-column:1/-1;display:flex;gap:9px;align-items:center;justify-content:center;font-size:12px;min-height:42px;background:#f6f8f1;border:1px solid #becdb0;color:#4a6836;padding:8px 12px;flex-basis:auto}
#workForm .visual-save-actions #finishWorkButton:disabled{display:none}
@media(max-width:900px){.visual-stages{grid-template-columns:repeat(4,minmax(0,1fr))}.component-heading{padding:10px 12px;gap:8px}.component-picture{width:86px;height:69px}.component-heading h3{font-size:15px}.visual-quantity.component-field{padding:13px;gap:9px}.visual-quantity .quantity-copy label{font-size:12px}.quantity-stepper button{width:44px;min-width:44px}.quantity-stepper input{width:44px}.visual-heading .station-glyph{width:44px;height:44px}.visual-heading h1{font-size:26px!important}}
@media(max-width:650px){.visual-components{grid-template-columns:1fr;gap:12px}#modal:has(#workForm){width:calc(100% - 16px);max-height:96dvh;padding:18px;border-radius:13px}#modal:has(#workForm) .capture-identity{top:-18px;margin-bottom:15px}.visual-process-title h2{font-size:23px}.visual-process-title .station-glyph{width:42px;height:42px}.visual-process-title .station-glyph svg{width:23px;height:23px}.visual-process-title{gap:12px;margin-bottom:14px}.visual-process-title .sub{font-size:12px}.visual-input-guide{padding:10px 12px;gap:8px}.visual-input-guide>span:first-child{font-size:12px}.component-picture{width:104px;height:70px}.component-heading h3{font-size:16px}.visual-quantity.component-field{padding:14px}.visual-quantity .quantity-copy label{font-size:13px}.quantity-stepper button{width:44px;min-width:44px;height:48px}.quantity-stepper input{width:44px;height:48px;min-height:48px}.visual-task.task-check{min-height:88px}.component-strip{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.component-mini>b{font-size:11px}.component-mini>span{font-size:10px}.mini-illustration{height:52px}.visual-heading{gap:10px}.visual-heading .station-glyph{width:38px;height:38px}.visual-heading .station-glyph svg{width:21px;height:21px}.visual-heading h1{font-size:23px!important}.visual-targets{grid-template-columns:1fr}.target-picture{height:106px}.visual-targets .work-target{display:grid;grid-template-columns:105px 1fr;padding:14px;gap:7px 12px}.visual-targets .target-picture{grid-column:1;grid-row:1/4;border:0;margin:0;height:100%;min-height:100px}.visual-targets .target-picture>span{width:29px;height:29px;bottom:0;right:0}.target-picture svg{width:18px;height:18px}.visual-targets .work-target b{font-size:17px;grid-column:2}.visual-targets .work-target>span{font-size:12px;grid-column:2}.visual-targets .work-target small{grid-column:2;font-size:11px}.visual-pending-target{grid-template-columns:70px 1fr;column-gap:10px}.visual-pending-target>img{width:70px;height:70px}#workForm .visual-save-actions{bottom:-18px;grid-template-columns:1fr 1.5fr;padding-top:11px;gap:8px}#workForm .visual-save-actions .button{min-height:48px;font-size:11px;padding:10px 8px}.visual-stages{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.visual-targets .work-target{transition:none}}

.component-picture{position:relative}.part-action-icon{position:absolute;right:0;bottom:1px;display:flex;align-items:center;justify-content:center;width:29px;height:29px;background:#fff;border:1px solid #d6dfcd;border-radius:9px;color:#627a50}.part-action-icon svg{width:18px;height:18px}.paint-title{display:flex;gap:12px;align-items:center}.paint-title svg{width:29px;height:29px;color:#526c42}

/* One tap prepares the remaining cuts of one identified coffin. Saving stays explicit. */
.all-cuts-panel{display:grid;grid-template-columns:1fr auto;gap:10px 16px;align-items:center;padding:16px;border:1px solid #b7cbb0;background:#eef5e8;border-radius:12px}
.all-cuts-panel strong{display:block;font-size:15px;color:#344f2c}.all-cuts-panel small{display:block;font-size:12px;line-height:1.6;color:#52654a;margin-top:4px}
.all-cuts-panel .button,.all-cuts-queue{display:flex;gap:8px;border-color:#78956b;background:#fff;color:#344f2c;min-height:50px;font-size:13px;padding:12px 15px;font-weight:600}
.all-cuts-panel p{grid-column:1/-1;margin:0;font-size:11px;line-height:1.6;color:#637557}
.cajon-cuts-action{padding:12px 15px;border-top:1px solid #e2e8dc;background:#f5f8ef}.cajon-cuts-action .button{display:flex;gap:7px;width:100%;min-height:48px;padding:10px;font-size:12px;background:#fff;color:#425c35;border-color:#b6c9a8}
.cajon-cuts-action small{display:block;color:#6c7b5f;font-size:10px;line-height:1.6;margin-top:7px}
@media(max-width:650px){.all-cuts-panel{grid-template-columns:1fr;padding:13px;gap:10px}.all-cuts-panel .button{width:100%;font-size:13px}.coffin-actions .all-cuts-queue{width:100%;min-height:50px}.all-cuts-panel p{font-size:11px}}
