/* Market Closeout Studio — designed to extend the existing Underground Stack identity. */
.closeout-page{padding:58px 0 0}.closeout-hero{display:grid;grid-template-columns:minmax(0,1fr) 272px;gap:55px;align-items:center;margin-bottom:38px}.closeout-hero h1{font-weight:400;font-size:clamp(42px,4.5vw,70px);line-height:1.05;letter-spacing:-.057em;margin:14px 0 18px;max-width:745px}.closeout-hero h1 em{color:var(--accent);font-weight:400}.closeout-hero p{font-size:15px;line-height:1.85;color:var(--muted);max-width:640px;margin:0}.closeout-benefits{display:flex;flex-wrap:wrap;gap:12px 22px;margin-top:20px;font-size:14px;color:#47735e;font-weight:740}.hero-right{background:#e8eee7;min-height:170px;border-radius:18px;padding:23px 25px;display:flex;align-items:flex-start;flex-direction:column;border:1px solid #dce7dc;box-shadow:0 16px 42px rgba(29,61,43,.045)}.hero-right-number{margin-left:auto;color:#52665d;letter-spacing:.12em;font-size:14px;font-weight:700}.hero-right span{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.11em;color:#4e6258;margin-top:8px}.hero-right strong{font-size:27px;letter-spacing:-.06em;margin:7px 0 6px}.hero-right small{font-size:14px;color:#4e6258}.closeout-grid{display:grid;grid-template-columns:273px minmax(0,1fr);gap:20px;align-items:start}.closeout-sidebar{display:grid;gap:18px}.closeout-panel{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 10px 30px rgba(17,47,36,.035);min-width:0}.closeout-panel-heading{display:flex;justify-content:space-between;align-items:center;padding:23px 23px 0}.step-kicker{font-size:12px;color:#4e6258;font-weight:850;letter-spacing:.12em;line-height:1.5}.closeout-panel h2{font-size:19px;letter-spacing:-.04em;margin:7px 0 0;font-weight:750}.side-dot{height:10px;width:10px;background:#bbd8c3;border-radius:50%;box-shadow:0 0 0 5px #eaf3ec}.event-fields{padding:24px 23px 25px;display:grid;gap:8px}.event-fields label{font-size:14px;font-weight:800;color:#405b4d;margin-top:9px}.event-fields label:first-child{margin-top:0}.optional{font-weight:450;color:#4e6258}.event-fields input,.event-fields textarea{border:1px solid #d7e2db;background:#fcfdfb;border-radius:9px;padding:11px;color:#223931;width:100%;font:inherit;font-size:14px;outline-offset:2px;min-width:0}.event-fields input{height:42px}.event-fields textarea{resize:vertical;min-height:80px;line-height:1.55}.snapshot-panel{background:#eaf1eb;border-color:#dce9dd}.snapshot-primary{margin:22px 23px 14px;display:grid;grid-template-columns:1fr 1px 1fr;gap:15px}.snapshot-primary div:not(.snap-rule){min-width:0}.snapshot-primary span{display:block;font-size:14px;font-weight:750;color:#4e6258;margin-bottom:6px}.snapshot-primary strong{font-size:32px;letter-spacing:-.07em;color:#203c2e}.snapshot-primary strong small{color:#4e6258;font-size:19px;font-weight:500}.snap-rule{background:#d3dfd3;margin:2px 0}.snapshot-list{border-top:1px solid #d9e6d9;margin:0 23px;padding-top:13px}.snapshot-list>div{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;padding:8px 0}.snapshot-list span{font-size:14px;line-height:1.6;color:#556f5f;max-width:138px}.snapshot-list b{font-size:14px;white-space:nowrap}.help-button{border:0;background:none;color:#6e8a7a;font-size:14px;padding:0 1px;vertical-align:middle}.snapshot-help{font-size:14px;line-height:1.7;color:#4e6258;margin:9px 23px 24px}.how-panel{padding:22px 23px}.how-panel ol{counter-reset:step;list-style:none;margin:17px 0 0;padding:0;display:grid;gap:17px}.how-panel li{display:grid;grid-template-columns:22px minmax(0,1fr);column-gap:9px;counter-increment:step}.how-panel li:before{content:counter(step,decimal-leading-zero);font-size:12px;color:#b3563c;font-weight:850;padding-top:3px}.how-panel li b{font-size:14px}.how-panel li span{grid-column:2;font-size:14px;line-height:1.6;color:#4e6258;margin-top:3px}.how-panel>p{border-top:1px solid #e4ebe6;padding-top:14px;margin:20px 0 0;color:#4e6258;font-size:14px;line-height:1.7}.closeout-main{min-width:0}.work-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:24px 25px 23px}.work-header h2{font-size:24px;margin:7px 0}.work-header p{font-size:14px;color:#4e6258;margin:0;line-height:1.7}.work-header-actions{flex-shrink:0}.count-pill{display:inline-block;vertical-align:middle;font:800 12px Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;letter-spacing:0;color:#4e6258;background:#e8f0e9;padding:6px 9px;border-radius:6px;margin-left:6px}.button.closeout-primary{background:var(--accent);border:1px solid var(--accent);color:white}.button.closeout-primary:hover{background:#b95032}.work-actions{padding:12px 25px;border-top:1px solid #edf1ed;border-bottom:1px solid #edf1ed;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;background:#fcfdfb}.work-actions-main,.work-actions-right{display:flex;gap:7px;flex-wrap:wrap;align-items:center}.action-btn{border:1px solid #dce6df;background:white;border-radius:8px;font-size:14px;font-weight:800;color:#455f50;padding:10px 12px;line-height:1.3;white-space:nowrap;cursor:pointer}.action-btn:hover{background:#edf4ee}.action-btn.dangerous{color:#a65642}.table-explainer{display:flex;flex-wrap:wrap;align-items:center;gap:7px 17px;font-size:12px;color:#4e6258;font-weight:650;padding:16px 25px 14px}.legend-dot{display:inline-block;vertical-align:middle;width:8px;height:8px;border-radius:50%;margin-right:6px}.legend-dot.green{background:#61a47b}.legend-dot.amber{background:#d5a457}.legend-dot.pale{background:#b3c3b9}.table-explainer-note{margin-left:auto;color:#52665d}.closeout-empty{padding:55px 20px 69px;margin:0 24px 24px;border-radius:13px;background:#f7faf7;border:1px dashed #bdd2c3;text-align:center}.empty-mark{margin:auto auto 15px;width:54px;height:54px;border-radius:16px;display:grid;place-items:center;font-size:29px;color:#4d8062;border:1px solid #dce9e0;background:white}.closeout-empty h3{font-size:19px;letter-spacing:-.035em;margin:0 0 8px}.closeout-empty p{color:#74857c;font-size:14px;line-height:1.8;max-width:375px;margin:0 auto 18px}.closeout-empty>div:last-child{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}.inventory-table-scroll{overflow-x:auto;padding:0 21px;scrollbar-color:#c4d3c9 transparent}.inventory-table{border-collapse:separate;border-spacing:0;width:100%;text-align:left;font-size:14px;min-width:688px;table-layout:fixed}.inventory-table th{background:#f4f8f4;color:#4e6258;padding:14px 6px;font-size:12px;font-weight:800;white-space:nowrap;border-top:1px solid #e5ede7;border-bottom:1px solid #e5ede7}.inventory-table th:first-child{border-radius:8px 0 0 8px;padding-left:14px;width:27%}.inventory-table th:last-child{border-radius:0 8px 8px 0;width:99px}.inventory-table th:nth-child(2),.inventory-table th:nth-child(3),.inventory-table th:nth-child(4){width:11.5%}.inventory-table th:nth-child(5),.inventory-table th:nth-child(6),.inventory-table th:nth-child(7){width:10%}.inventory-row>td{border-bottom:1px solid #edf1ed;padding:12px 6px;vertical-align:top}.inventory-row>td:first-child{padding-left:12px}.item-entry{display:grid;gap:6px}.inventory-table input{width:100%;max-width:100%;border:1px solid #dce7dd;background:white;border-radius:7px;padding:9px 7px;color:#253f31;font-size:14px;min-width:0}.inventory-table input:focus{background:#fff;border-color:#649477;outline-offset:1px}.inventory-table .item-name input{font-weight:800}.inventory-table .sku-name input{font-size:12px;color:#4e6258;background:#fafbf9}.row-input-wrap{display:block;min-width:0}.row-status{display:inline-block;font-size:12px;font-weight:850;margin-top:7px;color:#627b6d;background:#edf1ec;border-radius:5px;padding:4px 6px}.row-status.balanced{color:#32724a;background:#e7f4e9}.row-status.short,.row-status.extra,.row-status.invalid{color:#a55027;background:#fff0e5}.row-status.uncounted{color:#4e6258;background:#eef2ef}.counted-field input{border-color:#9bc5a9;background:#f4faf4}.calc-number{display:block;font-size:15px;letter-spacing:-.03em;padding-top:9px;color:#395e46}.status-short [data-result=variance],.status-extra [data-result=variance],.status-invalid [data-result=expected]{color:#4e6258}.item-actions{white-space:nowrap}.details-btn{display:block;background:#ebf3ed;color:#456f51;border:1px solid #d3e5d7;border-radius:7px;padding:9px 7px;font-weight:800;font-size:12px;width:100%}.remove-row{font-size:20px;color:#a6b0a8;background:transparent;border:0;margin:7px 0 0 7px;padding:0 8px}.remove-row:hover{color:#b34a2b}.adjustment-row>td{padding:0;border-bottom:1px solid #e2eae2}.adjustment-content{padding:18px;background:#f4f8f4;margin:0 3px 9px;border-radius:0 0 10px 10px}.adjustment-intro{display:flex;align-items:baseline;justify-content:space-between;gap:20px;margin-bottom:17px}.adjustment-intro strong{font-size:14px}.adjustment-intro span{color:#7a8c81;font-size:12px;max-width:380px;line-height:1.6}.adjustment-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px 11px}.adjustment-fields>.adjust-field{font-size:12px;font-weight:800;color:#5b7163}.adjustment-fields>.adjust-field>span{display:block;margin-bottom:6px}.adjustment-fields input{background:#fff}.mobile-input-label{display:none!important}.table-footer-help{padding:9px 25px 23px;color:#4e6258;font-size:14px;line-height:1.8;margin:0}.work-footer{padding:24px 25px;display:flex;justify-content:space-between;gap:22px;align-items:center;border-top:1px solid #edf0ed;background:#f9fbf8;border-radius:0 0 16px 16px}.work-footer strong{font-size:14px}.work-footer p{font-size:14px;color:#4e6258;line-height:1.65;max-width:250px;margin:5px 0 0}.export-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px}.export-actions .button{font-size:14px;padding:11px 12px;white-space:nowrap}.followup-panel{margin-top:20px;border-radius:14px;background:#edf3ed;border:1px solid #e0e9df;padding:30px;display:flex;justify-content:space-between;align-items:center}.followup-panel h2{font-size:22px;letter-spacing:-.04em;margin:8px 0}.followup-panel p{font-size:14px;line-height:1.7;color:#4e6258;max-width:570px;margin:0}.followup-icon{font-family:Georgia,serif;font-size:52px;color:#7ba08a;margin-left:18px}.closeout-faq{padding:78px 0 95px}.closeout-faq h2{font-size:42px;font-weight:400;letter-spacing:-.045em;margin:12px 0 25px}.closeout-faq .faq h3{font-size:15px}.closeout-faq .faq p{font-size:14px}.closeout-message{margin-bottom:20px;font-size:14px;font-weight:750;padding:15px 17px;border-radius:10px;border:1px solid #bfdcc7;background:#edf7ed;color:#366348;line-height:1.6}.closeout-message[data-type=warning]{background:#fff1e9;border-color:#ebcbbb;color:#945031}
@media(max-width:1100px){.closeout-grid{grid-template-columns:245px minmax(0,1fr);gap:15px}.closeout-hero{grid-template-columns:1fr 230px}.work-header{padding:21px}.work-actions,.table-explainer{padding-left:18px;padding-right:18px}.inventory-table-scroll{padding:0 15px}.work-footer{display:block}.export-actions{justify-content:flex-start;margin-top:16px}.adjustment-fields{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:820px){.closeout-grid{grid-template-columns:1fr}.closeout-sidebar{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.how-panel{grid-column:1/-1}.how-panel ol{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.closeout-hero{grid-template-columns:1fr;gap:20px}.hero-right{display:none}.work-footer{display:flex}.closeout-page{padding-top:38px}}
@media(max-width:650px){.closeout-page{padding-top:29px}.closeout-hero{margin-bottom:24px}.closeout-hero h1{font-size:47px;line-height:1.08}.closeout-hero p{font-size:14px}.closeout-benefits{font-size:12px;gap:9px}.closeout-sidebar{grid-template-columns:1fr}.how-panel{grid-column:auto}.how-panel ol{grid-template-columns:1fr}.event-fields{grid-template-columns:1fr 1fr}.event-fields label{grid-column:1/-1}.event-fields input,.event-fields textarea{grid-column:1/-1}.work-header{padding:19px;align-items:flex-start}.work-header h2{font-size:21px}.work-header .button{padding:10px}.work-header p{font-size:14px}.work-actions{padding:12px}.work-actions-main{gap:5px}.action-btn{font-size:12px;padding:9px}.work-actions-right{width:100%}.table-explainer{padding:13px;gap:9px}.table-explainer-note{margin-left:0;width:100%}.closeout-empty{margin:0 12px 15px}.inventory-table-scroll{padding:0 12px;overflow:visible}.inventory-table{min-width:0;width:100%;display:block}.inventory-table thead{display:none}.inventory-table tbody{display:grid;gap:14px}.inventory-table tbody>tr.inventory-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 10px;background:#fff;border:1px solid #dfe9e1;border-radius:11px;padding:13px;box-shadow:0 4px 13px rgba(39,66,45,.03)}.inventory-table tbody>tr.inventory-row>td{display:block;padding:0;border:0;min-width:0}.inventory-table tbody>tr.inventory-row>td.item-data{grid-column:1/-1;padding-bottom:7px;border-bottom:1px solid #e8eee9}.item-entry{grid-template-columns:1fr 110px}.inventory-table input{font-size:14px;padding:11px 9px}.inventory-table .sku-name input{font-size:14px}.row-status{font-size:12px}.mobile-input-label{display:block!important;font-size:12px;color:#4e6258;font-weight:780;margin:0 0 6px}.inventory-table tbody>tr.inventory-row>td.item-data .mobile-input-label{display:none!important}.inventory-table tbody>tr.inventory-row>td[data-label="Expected"],.inventory-table tbody>tr.inventory-row>td[data-label="Difference"],.inventory-table tbody>tr.inventory-row>td[data-label="Restock"]{background:#f4f7f4;border-radius:7px;padding:9px 7px}.inventory-table tbody>tr.inventory-row>td[data-label="Expected"]:before,.inventory-table tbody>tr.inventory-row>td[data-label="Difference"]:before,.inventory-table tbody>tr.inventory-row>td[data-label="Restock"]:before{content:attr(data-label);display:block;color:#778a7b;font-size:12px;font-weight:750}.calc-number{padding-top:8px;font-size:19px}.inventory-table tbody>tr.inventory-row>td.item-actions{grid-column:1/-1;display:flex;align-items:center;gap:8px}.details-btn{width:auto;padding:10px 13px}.remove-row{margin:0 0 0 auto}.inventory-table tbody>tr.adjustment-row{display:block;margin-top:-14px}.inventory-table tbody>tr.adjustment-row[hidden]{display:none}.adjustment-row>td{display:block}.adjustment-content{margin:0;padding:15px;border-radius:0 0 12px 12px}.adjustment-intro{display:block}.adjustment-intro span{display:block;margin-top:5px}.adjustment-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.table-footer-help{padding:12px 17px 18px}.work-footer{padding:21px 16px;display:block}.export-actions{gap:7px}.export-actions .button{flex:1;padding:11px 9px}.followup-panel{padding:24px}.followup-icon{display:none}.closeout-faq{padding:60px 0}.closeout-faq h2{font-size:35px}}
@media print{.site-header,.site-footer,.work-header-actions,.work-actions,.item-actions,.closeout-faq,.followup-panel,.hero-right,.export-actions,.how-panel,.closeout-empty{display:none!important}.closeout-grid{grid-template-columns:210px 1fr}.closeout-page{padding:0}.inventory-table{min-width:0}.inventory-table input{border:0;padding:0}.inventory-table td,.inventory-table th{font-size:12px}}

/* v6.1 visual inspection corrections */
.closeout-page{padding-top:32px}.closeout-hero h1{font-size:clamp(40px,4.5vw,62px)}.table-explainer-note{color:#52665d}.details-btn,.remove-row{min-height:44px;min-width:44px}.event-fields input,.event-fields textarea{font-size:16px}.snapshot-list b{overflow-wrap:anywhere;white-space:normal;text-align:right}.snapshot-primary strong{font-size:30px}.mobile-input-label{font-size:14px}

@media(max-width:760px){.closeout-grid{display:flex;flex-direction:column}.closeout-main{width:100%;order:0}.closeout-sidebar{width:100%;order:1}.closeout-hero{margin-bottom:24px}}

.closeout-sidebar{grid-column:1;grid-row:1}.closeout-main{grid-column:2;grid-row:1}@media(max-width:1000px){.closeout-grid{display:flex;flex-direction:column}.closeout-main{width:100%;order:0}.closeout-sidebar{width:100%;order:1}}

@media(min-width:761px){.inventory-table{min-width:920px}.inventory-table th{padding-left:10px;padding-right:10px}}.inventory-table-scroll:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
#blankState>p{color:#4e6258}
