:root{--ink:#25283b;--muted:#68717d;--line:#dfe3e8;--wash:#f5f6f8;--brand:#2b2950;--accent:#c55933;--blue:#27567b;--red:#aa3030;--green:#276247;--frozen:310px;--locwidth:112px}*{box-sizing:border-box}body{margin:0;font:13px/1.45 -apple-system,BlinkMacSystemFont,'Hiragino Kaku Gothic ProN','Yu Gothic',sans-serif;color:var(--ink);background:#fff}button,input,select,textarea{font:inherit;color:inherit}button,a,input,select,textarea{outline-offset:3px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--blue)}button{cursor:pointer;border:1px solid var(--line);background:#fff;border-radius:4px;min-height:32px;padding:5px 11px;white-space:nowrap}button:hover{background:#f1f3f6}button:disabled{opacity:.48;cursor:not-allowed}button.primary{background:var(--brand);border-color:var(--brand);color:#fff}button.primary:hover{background:#414065}button.link{border:0;background:transparent;color:var(--blue);padding:2px 0;min-height:24px;text-align:left}input,select,textarea{border:1px solid #cdd3da;border-radius:4px;background:#fff;min-height:34px;padding:6px 9px}input[type=checkbox]{min-height:16px;width:16px;accent-color:var(--brand)}input[type=number]{font-variant-numeric:tabular-nums}textarea{resize:vertical;min-height:86px}small,.muted{color:var(--muted)}h1{font-size:22px;letter-spacing:.03em;margin:0}h2{font-size:18px;margin:0}h3{font-size:14px;margin:20px 0 10px}p{margin:8px 0}a{color:var(--blue)}.reviewbar{height:28px;background:#edeaf1;color:#524d63;display:flex;align-items:center;justify-content:space-between;padding:0 16px;font-size:11px}.reviewbar button{font-size:11px;min-height:22px;padding:0 8px;border:0;background:transparent}.shell{display:flex;height:calc(100dvh - 28px)}.sidebar{width:188px;flex-shrink:0;background:#f6f6f8;border-right:1px solid var(--line);display:flex;flex-direction:column;padding:24px 12px 15px}.logo{width:108px;height:32px;object-fit:contain;object-position:left;margin:0 12px 22px}.tenant{padding:0 12px 22px;font-weight:600}.tenant small{display:block;font-size:11px;font-weight:400;margin-top:3px}nav{display:flex;flex-direction:column;gap:4px}nav small{padding:20px 12px 7px;font-size:10px;letter-spacing:.06em}nav button{text-align:left;border:0;background:transparent;color:#626574;padding:10px 12px;height:40px}nav button span{font-size:17px;width:25px;display:inline-block}nav button.active{color:var(--brand);background:#e7e6ee;font-weight:650;box-shadow:inset 3px 0 var(--brand)}.sidebar-foot{margin-top:auto;padding:16px 6px 0;border-top:1px solid var(--line);display:flex;gap:9px;align-items:center}.sidebar-foot small{display:block;font-size:10px}.avatar{width:29px;height:29px;border:1px solid #d7d4df;border-radius:50%;display:grid;place-items:center;background:#eeecf3}main{min-width:0;flex:1;display:flex;flex-direction:column;padding:26px 28px 0;overflow:hidden}.pagehead{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}.pagehead .muted{font-size:12px;margin-top:3px}.actions,.toolbar,.filters,.saved,.paginator,.inline{display:flex;align-items:center;gap:8px}.toolbar{margin-bottom:12px;flex-wrap:wrap}.search{display:flex;flex:1;min-width:280px;max-width:570px}.search input{width:100%;border-radius:4px 0 0 4px}.search button{border-radius:0 4px 4px 0;border-left:0}.search select{width:99px;border-radius:0;border-left:0}.spacer{flex:1}.saved{border-bottom:1px solid var(--line);margin-bottom:16px;min-height:37px;gap:18px}.saved button{border:0;border-bottom:2px solid transparent;border-radius:0;padding:8px 1px;color:var(--muted);font-size:12px}.saved button.active{border-bottom-color:var(--brand);color:var(--brand);font-weight:600}.chip{background:#eff2f6;border:1px solid #dfe5ed;border-radius:3px;font-size:11px;display:inline-flex;align-items:center;padding:3px 7px;gap:8px}.filters{flex-wrap:wrap;margin-bottom:10px}.segmented{display:flex;border:1px solid #cdd3da;border-radius:4px;overflow:hidden}.segmented button{border:0;border-right:1px solid #dfe3e8;border-radius:0;font-size:12px;min-height:30px}.segmented button:last-child{border-right:0}.segmented button.active{background:#eeedf4;color:var(--brand);font-weight:650}.listmeta{display:flex;align-items:center;gap:14px;min-height:42px;font-size:12px}.listmeta strong{font-size:14px}.asof{margin-left:auto;color:var(--muted);font-size:11px}.tablewrap{overflow:auto;flex:1;min-height:120px;border:1px solid var(--line);position:relative;scrollbar-color:#b8bdc8 #f3f4f6}.tablewrap:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}table{border-collapse:separate;border-spacing:0;width:100%;font-variant-numeric:tabular-nums;white-space:nowrap}th{background:#f4f5f8;font-size:11px;font-weight:500;color:#606775;position:sticky;top:0;z-index:3;height:40px;border-bottom:1px solid #ccd2da;text-align:left;padding:6px 10px}td{border-bottom:1px solid #e8ebef;padding:6px 10px;height:39px;font-size:12px;background:#fff}tbody tr:nth-child(even) td{background:#fcfcfd}tbody tr:hover td{background:#f3f5fa}td.num,th.num{text-align:right}.productcol{min-width:var(--frozen);width:var(--frozen);max-width:var(--frozen);position:sticky;left:0;z-index:2;border-right:1px solid #ccd2da}.productcol .product-line{overflow:hidden;text-overflow:ellipsis}.productcol button{font-size:12px;font-weight:500;color:var(--ink)}th.productcol{z-index:5;background:#f4f5f8}.sku-info{font-size:10px;color:var(--muted);display:flex;gap:9px;align-items:center}.swatch{width:8px;height:8px;display:inline-block;border:1px solid #9aa1ad;border-radius:50%}.loc{min-width:var(--locwidth);width:var(--locwidth);border-left:1px solid #edf0f3}.loc.home{background:#f4f6fc}.loc small{display:block;font-size:9px}.qty{font-variant-numeric:tabular-nums;font-weight:550;font-size:13px;text-align:right!important;min-width:30px}.negative{color:var(--red)!important;font-weight:700}.zero{color:#98a0ad!important}.sumcol{background:#f4f5f8!important;min-width:76px;border-left:1px solid var(--line)}.paginator{min-height:56px;flex-shrink:0;font-size:11px}.paginator select{min-height:28px;font-size:11px;padding:2px 7px}.badge{display:inline-block;border-radius:3px;padding:2px 6px;background:#edf3f0;color:var(--green);font-size:10px;white-space:nowrap}.badge.warn{background:#fff1df;color:#906019}.badge.neutral{background:#eceef2;color:#596377}.alert{padding:10px 13px;border:1px solid #e4cdab;background:#fff8ed;font-size:12px;margin:0 0 12px;display:flex;align-items:center;gap:12px}.alert.error{color:var(--red);border-color:#edc7c7;background:#fff5f5}.empty{padding:70px 24px;text-align:center;white-space:normal}.empty h3{font-size:16px}.tableheadsort{font:inherit;border:0;background:transparent!important;padding:0;min-height:24px;color:inherit}.snapshot{display:flex;gap:22px;font-size:11px;border:1px solid var(--line);border-top:0;padding:8px 12px;color:var(--muted)}.snapshot b{color:var(--ink);font-size:12px;font-variant-numeric:tabular-nums}.product-icon{width:32px;height:34px;flex-shrink:0;display:grid;place-items:center;background:#f0eee9;border:1px solid #e3e0da;border-radius:3px;color:#5f6266}.product-icon svg{width:24px;height:26px}.product-name{display:flex;gap:9px;align-items:center}.scrollbody{overflow:auto;flex:1;padding-bottom:24px}.detail-layout{display:grid;grid-template-columns:minmax(360px,1fr) 290px;gap:28px;max-width:1190px}.section{border-top:1px solid var(--line);padding:16px 0}.section:first-child{border-top:0;padding-top:0}.section h3{margin:0 0 14px}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:12px 18px}.field{display:flex;flex-direction:column;gap:5px;font-size:11px}.field.wide{grid-column:1/-1}.field input,.field select,.field textarea{width:100%;font-size:13px}.fieldset{border:0;padding:0;margin:0}.field-note{font-size:10px;color:var(--muted)}.sideblock{background:#f6f6f8;border:1px solid var(--line);padding:16px;margin-bottom:16px}.sideblock h3{margin:0 0 10px}.mini-table{white-space:normal}.mini-table td,.mini-table th{height:35px;padding:7px}.mini-table input{width:100%;min-width:52px;max-width:160px;font-size:12px;padding:4px 6px}.variant-scroll{overflow:auto}.variant-scroll td,.variant-scroll th{height:38px;padding:5px 8px}.image-upload{height:144px;background:#eeece7;border:1px dashed #bcbfc6;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;margin-bottom:10px}.image-upload svg{width:70px;height:78px;color:#6b706d}.image-upload img{max-height:115px;max-width:100%;object-fit:contain}.sticky-actions{padding:12px 0;border-top:1px solid var(--line);display:flex;gap:9px;align-items:center;background:#fff;flex-shrink:0}.tabs{display:flex;gap:24px;border-bottom:1px solid var(--line);margin-bottom:18px}.tabs button{border:0;border-radius:0;padding:10px 2px;color:var(--muted)}.tabs .active{color:var(--brand);border-bottom:2px solid var(--brand)}dialog{padding:0;border:0;border-left:1px solid var(--line);width:min(600px,100vw);max-width:100vw;height:100dvh;max-height:100dvh;margin:0 0 0 auto;box-shadow:-15px 0 60px #20223620;color:var(--ink)}dialog::backdrop{background:#2024363d}#drawerContent{height:100%;display:flex;flex-direction:column}.drawer-head{padding:22px 24px 16px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px}.drawer-body{overflow:auto;flex:1;padding:20px 24px}.drawer-foot{padding:14px 24px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:9px;background:#fff}.close{font-size:22px;min-width:32px;padding:0;border:0}.defrow{display:grid;grid-template-columns:140px 1fr;border-bottom:1px solid var(--line);padding:10px 0;font-size:12px}.defrow span:first-child{color:var(--muted)}.metric-grid{display:grid;grid-template-columns:repeat(3,1fr);border-bottom:1px solid var(--line);padding-bottom:16px;margin-bottom:16px}.metric-grid small{display:block;font-size:11px}.metric-grid strong{font-size:26px;font-weight:550;font-variant-numeric:tabular-nums}.checkbox-list{display:grid;grid-template-columns:1fr 1fr;gap:7px}.check{display:flex;align-items:center;gap:7px;padding:6px 0;font-size:12px}.steps{display:flex;gap:0;border-bottom:1px solid var(--line);padding:0 0 16px;margin-bottom:22px;overflow:auto}.steps span{padding:7px 18px;color:var(--muted);font-size:12px;border-bottom:2px solid transparent}.steps .current{color:var(--brand);font-weight:600;border-color:var(--brand)}.steps .done{color:var(--green)}.two-cols{display:grid;grid-template-columns:minmax(350px,1fr) minmax(250px,.65fr);gap:24px}.report-editor{display:grid;grid-template-columns:260px minmax(350px,1fr);gap:24px}.paper{border:1px solid #d3d6dd;padding:25px;background:#fff;box-shadow:0 2px 6px #20243609}.paper h2{font-size:19px}.bar-chart{display:flex;align-items:flex-end;gap:16px;height:150px;padding:15px 12px 0;border-bottom:1px solid #cdd2d9;margin-bottom:24px}.bar-chart div{background:#6d7390;width:14%;position:relative;min-height:2px}.bar-chart span{position:absolute;top:100%;left:50%;transform:translateX(-50%);font-size:10px;white-space:nowrap;margin-top:5px}.number{font-variant-numeric:tabular-nums}.timeline{border-left:2px solid var(--line);padding-left:14px;margin:10px 0 20px}.timeline p{font-size:12px;margin:12px 0}.timeline small{display:block;font-size:10px}#toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);padding:12px 18px;border-radius:4px;background:#2b2950;color:white;z-index:20;box-shadow:0 4px 20px #0002;display:none;font-size:12px}.inline-error{font-size:12px;color:var(--red);margin:12px 0}.review-note{font-size:11px;color:var(--muted);padding:8px 0}.saved-row{display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--line);padding:9px 0}.saved-row .link{flex:1}.no-freeze .productcol{position:static}.compact th{height:34px}.compact td{height:34px;padding-top:3px;padding-bottom:3px}.column-order{display:flex;gap:8px;align-items:center;padding:6px 0;border-bottom:1px solid var(--line)}.column-order span{flex:1}.column-order button{min-height:26px;padding:2px 7px}.editor-tabs{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:14px}.editor-tabs a{font-size:11px;padding:5px 9px;border:1px solid var(--line);text-decoration:none;background:#fafbfc;border-radius:3px}
@media(min-width:1600px){main{padding-left:36px;padding-right:36px}.sidebar{width:204px}}
@media(max-width:1100px){.sidebar{width:156px;padding-left:8px;padding-right:8px}main{padding:20px 18px 0}.detail-layout{grid-template-columns:minmax(300px,1fr) 240px;gap:18px}.toolbar{gap:6px}.asof{font-size:10px}.report-editor{grid-template-columns:230px minmax(320px,1fr);gap:16px}:root{--frozen:280px}.pagehead{margin-bottom:16px}}
@media(max-width:760px){.sidebar{width:58px;padding:16px 4px}.logo{width:45px;margin:0 2px 25px}.tenant,.sidebar-foot,nav small{display:none}nav{gap:10px}nav button{font-size:0;padding:8px;text-align:center}nav button span{font-size:21px;width:auto}main{padding:16px 12px 0}.pagehead{flex-wrap:wrap;gap:10px}h1{font-size:20px}.pagehead .actions{margin-left:auto}.saved{gap:13px;overflow:auto;flex-shrink:0}.search{min-width:100%;max-width:none}.filters{gap:5px}.listmeta{flex-wrap:wrap;gap:8px;padding:5px 0}.asof{margin-left:0}.snapshot{gap:12px;flex-wrap:wrap;font-size:10px}.paginator{gap:5px;flex-wrap:wrap;padding:8px 0}.detail-layout,.two-cols,.report-editor{grid-template-columns:1fr}.formgrid{gap:10px}.reviewbar{font-size:9px;padding:0 8px}:root{--frozen:205px;--locwidth:96px}.productcol button{font-size:11px}.sku-info{font-size:9px;gap:5px}.product-icon{display:none}.productcol{min-width:var(--frozen)}.drawer-head,.drawer-body,.drawer-foot{padding-left:18px;padding-right:18px}dialog{height:92dvh;max-height:92dvh;margin:auto 0 0;border-radius:10px 10px 0 0;width:100vw}.sticky-actions{flex-wrap:wrap}.checkbox-list{grid-template-columns:1fr 1fr}.tablewrap{min-height:100px}.steps span{padding:7px 12px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
/* Dense working table; identity remains readable while locations scroll. */
#grid td{height:36px;padding-top:3px;padding-bottom:3px}#grid .productcol button{min-height:18px;padding:0;line-height:18px}#grid .sku-info{line-height:12px;gap:7px;overflow:hidden;text-overflow:ellipsis}.filters:empty{display:none}.pagehead{margin-bottom:16px}#grid.compact td{height:33px;padding-top:1px;padding-bottom:1px}#sortSelect{font-size:11px;max-width:132px}.field>span{display:block}.review-note{white-space:normal}
#grid .qty{min-height:18px;line-height:18px;padding:0}.cellbreakdown{font-size:9px;line-height:11px;color:#727b89}#grid .sku-info{font-size:9px}.productcol .product-line{line-height:18px}
#grid td{padding-top:2px;padding-bottom:2px}#grid th{padding-top:5px;padding-bottom:5px}#grid .tableheadsort{min-height:18px;line-height:18px}#grid th small{line-height:12px}
/* Report composer: one settings column and a continuous editable document. */
.block{display:block}.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}.report-list-wrap{overflow:auto;border:1px solid var(--line)}.report-list-wrap td{padding:12px 14px}.report-list-wrap th{padding:9px 14px}.report-list-wrap small{font-size:10px;margin-top:4px;color:var(--muted)}.report-template-list{display:flex;flex-direction:column;gap:0}.report-template{padding:18px 0;border-bottom:1px solid var(--line)}.report-template:first-child{padding-top:0}.report-template h3{margin:8px 0}.report-template p{font-size:12px;color:var(--muted);margin-bottom:12px}.report-composer{display:grid;grid-template-columns:260px minmax(0,1fr);gap:24px;align-items:start}.report-settings{padding-right:20px;border-right:1px solid var(--line);min-width:0}.report-settings .section{padding-top:16px}.report-settings .section:first-child{padding-top:0}.report-settings .formgrid{gap:11px 12px}.report-settings .formgrid.wide{grid-column:1/-1}.report-settings .formgrid[hidden]{display:none}.report-settings input[type=date]{min-width:0;font-size:11px;padding-left:5px;padding-right:3px}.report-add-buttons{display:flex;flex-wrap:wrap;gap:7px}.report-add-buttons button{font-size:12px}.report-version-summary{font-size:11px;color:var(--muted);margin:8px 0}.report-preview-pane{min-width:0}.report-preview-top{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:12px;margin:0 0 10px}.report-preview-top small{font-size:10px}.report-paper{padding:22px 24px}.report-paper-title{padding-bottom:16px;border-bottom:1px solid var(--line)}.report-paper-title h2{overflow-wrap:anywhere}.report-paper-title p{font-size:11px}.report-paper-title small{font-size:10px}.report-block{border-bottom:1px solid var(--line);padding:16px 0}.report-block:last-child{border-bottom:0;padding-bottom:0}.report-block-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.report-block-head h3{font-size:13px;margin:0;overflow-wrap:anywhere;min-width:0}.report-block-actions{display:flex;align-items:center;gap:3px;flex-shrink:0}.report-block-actions small{font-size:9px;margin-right:5px}.report-block-actions button{min-height:26px;padding:2px 6px;font-size:11px}.report-table-scroll{overflow:auto}.report-table-scroll .mini-table{white-space:nowrap}.report-table-scroll td,.report-table-scroll th{height:33px;padding:6px 8px;font-size:11px}.report-total td{font-weight:600;background:#f5f6f8!important}.comparison-num{color:#7b7f91}.report-chart-key{font-size:10px;display:flex;gap:15px;color:#56547b;margin-bottom:10px}.comparison-key{color:#898ea6}.report-bars{display:flex;flex-direction:column;gap:10px}.report-bar-row{display:grid;grid-template-columns:70px 1fr;gap:12px;align-items:center;font-size:11px}.report-bar-pair{display:flex;flex-direction:column;gap:3px;padding-right:28px;min-width:0}.report-bar-pair>div{height:12px;display:flex;align-items:center;gap:6px}.report-bar-pair i{display:block;height:9px;background:#676483;min-width:0}.report-bar-pair i.comparison-bar{background:#b9bfd0}.report-bar-pair b{font-size:10px;font-weight:500;white-space:nowrap}.report-bar-pair i.negative-bar{background:#b76963}.report-comment{min-height:92px;width:100%;font-size:12px;line-height:1.7;background:#fcfcfd}.report-undo{background:#f5f2e9;border:1px solid #e5dfcd;padding:7px 12px;font-size:11px;margin-bottom:10px}.report-undo .link{font-size:11px}.report-workarea{padding-bottom:20px}
@media(max-width:1100px){.report-composer{grid-template-columns:230px minmax(0,1fr);gap:16px}.report-settings{padding-right:14px}.report-paper{padding:18px 16px}.report-preview-top{flex-wrap:wrap}.report-block-head{flex-wrap:wrap}.report-block-actions{margin-left:auto}}
@media(max-width:760px){.report-composer{grid-template-columns:1fr;gap:18px}.report-settings{border-right:0;padding-right:0}.report-settings .section{padding:12px 0}.report-settings .formgrid{grid-template-columns:1fr 1fr}.report-settings input[type=date]{font-size:12px}.report-paper{padding:16px 12px}.report-block-actions small{display:none}.report-bar-row{grid-template-columns:62px 1fr;gap:6px}.report-list-wrap td{padding:9px}.sticky-actions #reportStatus{width:100%;font-size:10px}.report-preview-top small{font-size:9px}}
/* Migration workbench: stage groups, explicit unknown states and source evidence. */
.mig-progress{display:flex;border-bottom:1px solid var(--line);gap:14px;flex-shrink:0}.mig-progress button{border:0;border-bottom:2px solid transparent;border-radius:0;padding:10px 3px;display:flex;gap:8px;align-items:center;color:var(--muted)}.mig-progress button span{font-size:10px;background:#eef0f4;border:1px solid var(--line);height:20px;width:20px;display:grid;place-items:center;border-radius:50%}.mig-progress button.active{color:var(--brand);font-weight:600;border-bottom-color:var(--brand)}.mig-progress button.active span{color:white;background:var(--brand);border-color:var(--brand)}.mig-summary{display:flex;gap:20px;padding:11px 0 14px;font-size:11px;color:var(--muted);flex-shrink:0}.mig-layout{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:24px}.mig-main{min-width:0}.mig-main h2{font-size:17px}.mig-main .tabs{gap:20px}.mig-aside{border-left:1px solid var(--line);padding-left:18px;font-size:12px}.mig-aside h3:first-child{margin-top:0}.mig-aside h3{font-size:12px;margin-top:20px}.mig-side-row{display:flex;flex-direction:column;gap:4px;border-bottom:1px solid var(--line);padding:9px 0}.mig-side-row small{font-size:10px}.mig-section-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px}.mig-section-head small{font-size:10px}.mig-table{white-space:normal;table-layout:auto}.mig-table td{font-size:12px;padding:8px 9px;height:40px}.mig-table th{padding:7px 9px;height:35px;font-size:11px;position:static}.mig-table th.num,.mig-table td.num{white-space:nowrap}.mig-table small{font-size:10px;color:var(--muted)}.mig-table button.link{font-size:12px;min-height:22px;line-height:20px}.mig-table select{width:100%;min-width:110px;font-size:12px;max-width:260px}.mig-table .mig-ellipsis{max-width:380px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mig-table-scroll{overflow:auto}.mig-table-scroll table{white-space:nowrap}.mig-form{margin-top:20px;max-width:640px}.mig-warning{background:#fff7e9;border-left:3px solid #c6a064;padding:12px;font-size:11px;margin:18px 0}.mig-warning p{margin:5px 0 0;line-height:1.6}.mig-warning strong{font-size:12px}.mig-details{margin:18px 0;border-top:1px solid var(--line);padding-top:12px;font-size:12px}.mig-source-pending{display:grid;grid-template-columns:1fr auto;gap:5px 14px;align-items:center;border-bottom:1px solid var(--line);padding:12px 0;font-size:12px}.mig-source-pending small{grid-column:1;font-size:10px}.mig-source-pending button{grid-column:2;grid-row:1/3}.mig-source-pending>span{grid-column:1;font-size:11px;color:#96601b}.mig-task-list>div{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding:9px 0;font-size:12px}.mig-task-list>div>span:first-child{flex:1}.mig-task-list button{font-size:11px;min-height:28px}.mig-resume{max-width:650px;border:1px solid var(--line);padding:28px;margin:22px 0}.mig-resume h2{margin-top:13px}.check.wide{grid-column:1/-1}.mig-workarea{padding-bottom:20px}
@media(max-width:1100px){.mig-layout{grid-template-columns:minmax(0,1fr) 185px;gap:16px}.mig-aside{padding-left:13px}.mig-main .tabs{gap:10px}.mig-main .tabs button{font-size:12px}.mig-table td{font-size:11px;padding:7px 6px}.mig-table select{min-width:85px;font-size:11px}.mig-progress{gap:14px}.mig-summary{gap:12px;font-size:10px}}
@media(max-width:760px){.mig-layout{grid-template-columns:1fr}.mig-aside{border-left:0;border-top:1px solid var(--line);padding:18px 0 0}.mig-progress{gap:12px;overflow:auto}.mig-progress button{font-size:11px;gap:4px}.mig-progress button span{width:17px;height:17px}.mig-summary{flex-wrap:wrap;gap:6px 12px}.mig-summary .spacer{display:none}.mig-table{min-width:440px}.mig-main{overflow:auto}.mig-main .tabs{overflow:auto;white-space:nowrap}.mig-section-head{align-items:flex-start;flex-wrap:wrap}.mig-table .mig-ellipsis{max-width:180px}.mig-task-list>div{flex-wrap:wrap}.mig-resume{padding:18px;margin:10px 0}.mig-resume .defrow{grid-template-columns:85px 1fr}.sticky-actions #migrationStatus{width:100%;font-size:10px}.mig-aside .mig-table{min-width:0}}

/* 段 C-4 (2)：在庫一覧のセット行の帯（仮想セット＝在庫を持たない）。 */
.setband{font-size:10px;line-height:14px;color:#596377;background:#eceef2;border-radius:3px;padding:1px 6px;display:inline-block;margin-top:2px}tr.sub td{background:#fafbfc;color:#4c5361}tbody tr.sub:nth-child(even) td{background:#f7f8fa}tr.sub td:first-child{padding-left:22px}
/* 段 C-4 (3)：明細の下に敷くセットの構成（受注の展開・売上伝票の配賦）。 */
.setline>td{background:#fafbfd;white-space:normal;height:auto;padding:10px}
.setline .field-note{margin:0 0 6px}
/* 段 D／ログイン UX（裁定 2・4・5）：いま誰で入っているかの帯（#sessionState）。
   `#datasource`（この画面の数字がどこから来たかの印）はそのまま。帯はその左の別の span に出す。 */
#sessionState{display:flex;align-items:center;gap:8px;min-width:0;font-size:11px}
#sessionState .session-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#sessionState .session-mark{font-size:12px;line-height:1}
#sessionState button{font-size:11px;min-height:20px;padding:0 8px;border:1px solid #cfcada;background:#fff;border-radius:3px}
/* 状態は印の形（●・!・○・？）と文言で分かる。色は補助にとどめる（色だけで区別しない）。 */
html[data-auth="in"] #sessionState .session-mark{color:var(--green)}
html[data-auth="change"] #sessionState .session-mark{color:#906019}
html[data-auth="out"] #sessionState .session-mark{color:var(--red)}
html[data-auth="unknown"] #sessionState .session-mark{color:var(--muted)}
/* 業務の殻（サイドバー＝ロゴ・会社名・業務メニュー・足元の氏名）を出してよいのは、**入っていると
   分かっているとき**だけ。業務メニューはどれを押しても 401 になるので出さず、ログイン・招待の受諾の
   画面だけを中央に出す（オーナー指示「ログイン単体の画面」・裁定「案 1 で確定」）。
   当て先を `data-auth` から `data-shell` に替えた（裁定 N55 §3）：以前は `[data-auth="out"]`＝
   **未ログインが確定するまで畳まなかった**ので、読み込み中（unknown）にサイドバーと会社欄が一瞬見えた。
   「帯に何を出すか」（4 値）と「業務の殻を出してよいか」（2 値）は別の問いなので、属性を分ける。
   `:not([data-shell="business"])` の形にする理由：属性がまだ無い**初期 HTML でも畳む側に倒れる**
   ＝JS が属性を書く前・JS が落ちたときに業務の殻が見えない（「初期 HTML の時点で業務の殻を描かない」）。
   'unknown' の割り方（一度入れていた人の回線不調では畳まない）は session-design.js の sessionShellState。
   中身（main）は CSS では隠さない：`#login`・`#accept` も同じ main に描くので、ここで消すと入り直せない。
   前のセッションで描いた一覧・伝票・顧客の名前を下ろすのは design.js の規則 2（authGateApply）で、
   画面ごとに中身を差し替える（#23 第 4 回検算 HIGH-3）。 */
html:not([data-shell="business"]) .sidebar{display:none}
html:not([data-shell="business"]) main{max-width:760px;margin:0 auto;padding-top:34px}
/* R2 T1-e：エラー番号の帯（error-display.js）。番号を先頭に太字で、問い合わせ番号は写すボタン付き */
#errorNotice{position:fixed;top:12px;right:12px;z-index:60;display:flex;flex-direction:column;gap:8px;width:min(360px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow-y:auto;pointer-events:none}#errorNotice:empty{display:none}.error-notice{pointer-events:auto;background:#fff;border:1px solid #e6c9c6;border-left:4px solid #aa3030;border-radius:6px;box-shadow:0 6px 24px #0002;padding:10px 12px 12px;color:#25283b;font-size:13px;line-height:1.5}.error-notice-head{display:flex;align-items:center;gap:8px}.error-notice-no{color:#aa3030;font-size:14px;letter-spacing:.02em}.error-notice-count{font-size:12px;color:#68717d;background:#f5f6f8;border-radius:10px;padding:0 8px}.error-notice-close{margin-left:auto}.error-notice-text{margin:6px 0 0;overflow-wrap:anywhere}.error-notice-request{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;margin-top:6px;color:#68717d;font-size:12px}.error-notice-request code{font-size:13px;color:#25283b;user-select:all}.error-notice button{padding:3px 10px;border:1px solid #c4c4c4;background:#fff;border-radius:4px;cursor:pointer;font:inherit;font-size:12px;color:#25283b}.error-notice-note{margin:6px 0 0;color:#68717d;font-size:12px}.error-notice-live{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* m16：起動の GET /me が返るまで本文は操作を受けない（design.js の startSessionOwner が #main を inert にする）。
   押しても反応しない間を「読み込み中」と見せる。inert が外れれば（/me の後・8 秒の上限とも）表示も消える。 */
#main[inert]>*{opacity:.45}
#main[inert]::before{content:'読み込み中…';position:sticky;top:0;z-index:2;flex:0 0 auto;padding:8px 12px;margin-bottom:8px;background:var(--wash);border:1px solid var(--line);border-radius:4px;color:var(--muted);font-weight:600}
