@import "https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap";.session-state{align-items:center;margin-left:auto;display:flex}.topbar .logout{border:1px solid var(--border);background:var(--surface);color:var(--text);padding:.32rem .55rem}.topbar .logout:hover{color:#b91c1c;background:#fef2f2;border-color:#ef4444}@media (width<=700px){.session-state{margin-left:auto}}:root{--bg:#eef1f5;--surface:#fff;--text:#111827;--muted:#4b5563;--accent:#2563eb;--soft:#eff6ff;--border:#d1d5db;--red:#b91c1c;color:var(--text);background:var(--bg);font-family:IBM Plex Sans,Segoe UI,sans-serif}*{box-sizing:border-box}body{background:var(--bg);min-height:100vh;margin:0;font-size:14px}.topbar{background:var(--surface);border-bottom:1px solid var(--border);align-items:center;gap:.5rem;padding:.5rem max(12px,50vw - 960px);display:flex;box-shadow:0 1px 3px #0000000f}.identity{color:inherit;align-items:center;gap:.55rem;margin-right:1rem;text-decoration:none;display:flex}.identity:before{content:"";background:#05216d url(/origate-logo.jpg) 50%/cover no-repeat;border-radius:9px;width:38px;height:38px;display:block;box-shadow:0 2px 10px #0a319838}.identity b{font-size:.92rem;display:block}.identity span{color:var(--muted);margin-top:2px;font-size:.68rem;font-weight:500;display:block}.topbar nav{flex:1;gap:.25rem;display:flex;overflow-x:auto}.topbar button{color:var(--muted);white-space:nowrap;cursor:pointer;background:0 0;border:0;border-radius:6px;padding:.4rem .75rem;font:400 .85rem inherit}.topbar button:hover{color:var(--text);background:#e8ecf1}.topbar button.selected{background:var(--soft);color:var(--accent);font-weight:600}.local{color:var(--muted);white-space:nowrap;font-size:.78rem}.canvas{width:100%;max-width:none;margin:0;padding:1rem max(12px,50vw - 1100px) 2rem}.heading{justify-content:space-between;align-items:flex-end;gap:1rem;margin-bottom:.75rem;display:flex}h1,h2{color:var(--text);margin:0}h1{letter-spacing:-.02em;font-size:1.45rem;font-weight:600}h2{font-size:1rem;font-weight:600}.intro,.report>p,.form p{color:var(--muted);margin:.35rem 0 .75rem;line-height:1.45}.controls{align-items:center;gap:.45rem;font-family:IBM Plex Mono,monospace;display:flex}.controls label{color:var(--muted);align-items:center;gap:.3rem;font-size:.75rem;display:flex}.controls select,.controls input,select,input{font:inherit;border:1px solid var(--border);color:var(--text);background:#fff;border-radius:6px;padding:.35rem .5rem;font-size:.78rem}.notice{color:#6b3f00;background:#fff6dd;border:1px solid #edd9a3;border-radius:8px;margin:0 0 .75rem;padding:.5rem .75rem;font-size:.8rem}.notice button{float:right;color:inherit;cursor:pointer;background:0 0;border:0;text-decoration:underline}.report,.form{border:1px solid var(--border);background:#fff;border-radius:12px;width:100%;max-width:none;margin-bottom:.75rem;padding:.9rem 1rem 1rem}.metric-line{grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:.65rem;margin-bottom:.75rem;display:grid}.metric{border:1px solid var(--border);background:#fff;border-radius:12px;padding:.75rem .9rem}.metric span{color:#6b7280;margin-bottom:.3rem;font-size:.74rem;display:block}.metric b{font-variant-numeric:tabular-nums;font:600 1.1rem IBM Plex Mono,monospace}.metric.dim b{color:var(--muted);font:600 .95rem IBM Plex Sans,sans-serif}.wide{border:1px solid var(--border);border-radius:9px;width:100%;overflow:auto}.wide table{border-collapse:separate;border-spacing:0;width:100%;font-size:.82rem}.wide th,.wide td{vertical-align:top;border-bottom:1px solid #e8edf3;padding:.48rem .65rem}.wide thead th{color:#e2e8f0;text-align:left;background:#0f172a;font-weight:600;position:sticky;top:0}.wide th:not(:first-child),.wide td:not(:first-child){text-align:right}.wide tbody tr:last-child td{border-bottom:0}.row-name{color:#1d4ed8;text-align:left;cursor:pointer;background:0 0;border:0;padding:0;font:600 .82rem inherit}.row-name i{color:#64748b;margin-right:.45rem;font-style:normal}.pill{color:#047857;background:#d1fae5;border-radius:999px;padding:.15rem .45rem;font-size:.72rem;font-weight:600;display:inline-block}.pill.attention{color:#b45309;background:#fef3c7}.negative{color:var(--red)!important}.detail td{background:#f8fafc!important;padding:.5rem .75rem .85rem!important}.detail span{border-bottom:1px solid #e2e8f0;justify-content:space-between;gap:1rem;padding:.28rem .45rem;display:flex}.detail span:last-child{border:0}.detail b{font-family:IBM Plex Mono,monospace}.complete p{color:#92400e;background:#fffbeb;border-radius:8px;margin:.35rem 0 0;padding:.45rem .7rem;font-size:.78rem}.empty{text-align:center;color:#6b7280;padding:2rem}.api-import{background:#eff6ff;border:1px solid #bfdbfe;border-radius:10px;justify-content:space-between;align-items:center;gap:1rem;margin:.75rem 0;padding:.8rem 1rem;display:flex}.api-import b,.api-import span{display:block}.api-import span{color:#475569;margin-top:.2rem;font-size:.76rem}.upload{color:#1d4ed8;cursor:pointer;background:#eff6ff;border:1px dashed #93c5fd;border-radius:10px;flex-direction:column;justify-content:center;align-items:center;gap:.35rem;min-height:110px;margin:.75rem 0;display:flex}.upload input{display:none}.upload span{color:var(--muted);font-size:.78rem}.save,.export{color:#fff;cursor:pointer;background:#1d4ed8;border:1px solid #1e40af;border-radius:6px;padding:.42rem .9rem;font:600 .8rem inherit;text-decoration:none}.save:disabled{opacity:.6}.inputs{grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:.6rem;margin-top:.75rem;display:grid}.inputs>label{border:1px solid var(--border);background:#fafafa;border-radius:9px;grid-template-columns:1fr 130px;align-items:center;gap:.35rem;padding:.65rem .75rem;font-size:.8rem;font-weight:600;display:grid}.inputs>label>span{color:#6b7280;grid-column:1/-1;font-size:.75rem;font-weight:400}.inputs input{text-align:right;width:100%;font-family:IBM Plex Mono,monospace}.inputs input[type=checkbox]{width:auto;margin:0 .35rem 0 0}@media (width<=700px){.topbar{flex-wrap:wrap}.topbar nav{flex:100%;order:3}.heading{flex-direction:column;align-items:start}.controls{justify-content:space-between;width:100%}.local,.identity span{display:none}.canvas{padding:.75rem}.api-import{flex-direction:column;align-items:stretch}.api-import .save{width:100%}.wide table{min-width:720px}.inputs{grid-template-columns:1fr}}button{appearance:none;font:inherit;cursor:pointer;border:0;line-height:1.15}button:focus-visible,select:focus-visible,input:focus-visible{outline-offset:2px;outline:3px solid #93c5fd}.heading{flex-wrap:wrap;align-items:center}.heading h1{min-width:max-content}.controls{flex-wrap:wrap;flex:0 auto;justify-content:flex-end}.controls label{white-space:nowrap}.controls select,.controls input{color:#0f172a;background:#fff;border:1px solid #cbd5e1;border-radius:9px;min-width:128px;height:34px;box-shadow:0 1px 2px #0f172a0a}.controls select{appearance:none;background-image:linear-gradient(45deg,#0000 50%,#475569 50%),linear-gradient(135deg,#475569 50%,#0000 50%);background-position:calc(100% - 14px) 14px,calc(100% - 9px) 14px;background-repeat:no-repeat;background-size:5px 5px,5px 5px;padding-right:30px}.controls input[type=month]{appearance:none;padding-right:8px}.topbar button,.report-tabs button{border:1px solid #0000;border-radius:9px;justify-content:center;align-items:center;min-height:34px;transition:background .15s,color .15s,border-color .15s,transform .15s;display:inline-flex}.topbar button:active,.report-tabs button:active,.save:active,.export:active{transform:translateY(1px)}.report-tabs{background:#fff;border:1px solid #dbe2ea;border-radius:11px;gap:4px;margin-bottom:.75rem;padding:4px;display:inline-flex}.report-tabs button{color:#475569;background:#f1f5f9;min-width:88px;padding:.4rem .75rem;font-weight:600}.report-tabs button.active{color:#fff;background:#0f172a;border-color:#0f172a}.wide th button{appearance:none;color:inherit;background:0 0;border:0;border-radius:6px;padding:.22rem .35rem;font:600 .82rem IBM Plex Mono,monospace}.wide th button:hover{background:#334155}.save,.export{color:#fff;background:#2563eb;border:1px solid #1d4ed8;border-radius:9px;justify-content:center;align-items:center;min-height:36px;display:inline-flex;box-shadow:0 1px 2px #1d4ed833}.save:hover{background:#1d4ed8}.save:disabled{cursor:not-allowed;opacity:.55}.export{color:#1e3a8a;box-shadow:none;background:#fff;border-color:#bfdbfe}.export:hover{background:#eff6ff}.notice button{appearance:none;border-radius:6px;padding:.2rem .4rem}.wide select,.wide input,.inputs input{appearance:none;background:#fff;border:1px solid #cbd5e1;border-radius:8px;min-height:32px;padding:.3rem .45rem}.wide select{background-image:linear-gradient(45deg,#0000 50%,#475569 50%),linear-gradient(135deg,#475569 50%,#0000 50%);background-position:calc(100% - 13px) 13px,calc(100% - 8px) 13px;background-repeat:no-repeat;background-size:5px 5px,5px 5px;padding-right:28px}.wide input{text-align:center;max-width:68px}.inputs input[type=checkbox]{appearance:none;vertical-align:middle;cursor:pointer;background:#cbd5e1;border:0;border-radius:999px;width:38px;height:22px;min-height:22px;margin:0 .45rem 0 0;padding:0;transition:background .15s;position:relative}.inputs input[type=checkbox]:before{content:"";background:#fff;border-radius:50%;width:16px;height:16px;transition:transform .15s;position:absolute;top:3px;left:3px;box-shadow:0 1px 2px #0003}.inputs input[type=checkbox]:checked{background:#2563eb}.inputs input[type=checkbox]:checked:before{transform:translate(16px)}.minor{color:#64748b;flex-wrap:wrap;gap:.35rem .75rem;margin:.55rem 0 .75rem;font-size:.76rem;display:flex}.minor span{background:#f8fafc;border:1px solid #e2e8f0;border-radius:7px;align-items:center;padding:.25rem .45rem;display:inline-flex}.history-title{margin:1.25rem 0 .6rem}@media (width<=850px){.heading{flex-direction:column;align-items:flex-start}.controls{justify-content:flex-start;width:100%}.topbar{gap:.35rem}.topbar nav{min-width:0}.local{display:none}}@media (width<=560px){.controls{grid-template-columns:1fr;display:grid}.controls label{justify-content:space-between}.controls select,.controls input{min-width:190px}.report-tabs{width:100%}.report-tabs button{flex:1}.topbar nav{flex:100%;order:3}.topbar button{flex:1;min-width:max-content}.identity{margin-right:0}}.login-page{background:linear-gradient(135deg,#eaf0fa,#fff);place-items:center;min-height:100vh;padding:1.25rem;display:grid}.login-card{background:#fff;border:1px solid #dbe2ea;border-radius:16px;gap:.85rem;width:min(100%,420px);padding:2rem;display:grid;box-shadow:0 18px 55px #1739791c}.login-card img{object-fit:cover;border-radius:12px;width:56px;height:56px}.login-card h1{color:#102a63;margin:0;font-size:1.65rem}.login-card p{color:#64748b;margin:0 0 .3rem;font-size:.9rem;line-height:1.45}.login-card label{color:#334155;gap:.36rem;font-size:.85rem;font-weight:700;display:grid}.login-card input{color:#0f172a;width:100%;min-height:40px;font:inherit;background:#fff;border:1px solid #cbd5e1;border-radius:9px;padding:.5rem .65rem}.login-card .save{width:100%;margin-top:.25rem}.login-error{color:#b91c1c;background:#fef2f2;border:1px solid #fecaca;border-radius:8px;padding:.65rem .75rem;font-size:.85rem}.opiu-hero{justify-content:space-between;align-items:end;gap:1.5rem;margin:0 0 .8rem;display:flex}.opiu-hero p{max-width:780px;color:var(--muted);margin:.35rem 0 0;line-height:1.45}.opiu-pills{border:1px solid var(--border);background:#fff;border-radius:11px;gap:.35rem;margin:0 0 .8rem;padding:.35rem;display:flex;overflow:auto}.opiu-pills button{color:var(--muted);background:0 0;border-radius:8px;flex:none;padding:.48rem .85rem;font-weight:600}.opiu-pills button.active{color:#fff;background:#0f172a}.report-head{justify-content:space-between;align-items:start;gap:1rem;margin-bottom:.8rem;display:flex}.report-head p{color:var(--muted);margin:.3rem 0 0}.report-head>strong{font:600 1.2rem IBM Plex Mono,monospace}.status{border-radius:999px;padding:.18rem .5rem;font-weight:600;font-size:.72rem!important;display:inline-flex!important}.status.ok{color:#166534;background:#dcfce7}.status.warn{color:#92400e;background:#fef3c7}.comparison-status{white-space:nowrap;border-radius:6px;padding:.18rem .45rem;font-size:.72rem;display:inline-flex}.comparison-status.match{color:#166534;background:#dcfce7}.comparison-status.difference{color:#991b1b;background:#fee2e2}.comparison-status.incomplete{color:#92400e;background:#fef3c7}.comparison-status.no_history{color:#475569;background:#e2e8f0}.metric.main{background:#eff6ff;border-color:#93c5fd}.opiu-tree{border:1px solid var(--border);border-radius:10px;overflow:hidden}.tree-section+.tree-section{border-top:1px solid var(--border)}.tree-section-head,.tree-row{text-align:left;justify-content:space-between;align-items:center;gap:1rem;width:100%;display:flex}.tree-section-head{color:#0f172a;background:#f1f5f9;padding:.62rem .75rem}.tree-section-head i,.tree-row i{color:#64748b;width:20px;font-style:normal;display:inline-flex}.tree-section-head strong{margin-left:auto;font:600 .85rem IBM Plex Mono,monospace}.tree-rows{background:#fff}.tree-row{background:#fff;border-top:1px solid #edf1f5;padding:.52rem .75rem .52rem 1.35rem}.tree-row:hover{background:#f8fafc}.tree-row>span{align-items:center;gap:.35rem;min-width:0;display:flex}.tree-row small{color:#64748b;margin-left:.4rem;font-size:.68rem}.tree-row em{color:#be123c;background:#fff1f2;border-radius:5px;padding:.1rem .35rem;font-size:.66rem;font-style:normal}.tree-row>b{white-space:nowrap;font:600 .82rem IBM Plex Mono,monospace}.tree-children{background:#f8fafc;padding:.25rem 1rem .45rem 3.7rem}.tree-children span{color:#475569;border-bottom:1px solid #e8edf3;justify-content:space-between;gap:1rem;padding:.3rem 0;font-size:.76rem;display:flex}.tree-children span:last-child{border-bottom:0}.tree-children b{font-family:IBM Plex Mono,monospace}.after-profit{flex-wrap:wrap;justify-content:flex-end;gap:.5rem;margin-top:.75rem;display:flex}.after-profit span{border:1px solid var(--border);color:#64748b;border-radius:8px;padding:.45rem .7rem}.after-profit b{color:#0f172a;margin-left:.4rem;font-family:IBM Plex Mono,monospace}.year-table table{min-width:760px}.year-table td{font-family:IBM Plex Mono,monospace}.year-table td:first-child{font-family:IBM Plex Sans,sans-serif;font-weight:600}.cogs-table table{min-width:1180px}.cogs-table th:first-child{min-width:190px}.cogs-table th:nth-child(7){min-width:230px}.cogs-table td small{color:#64748b;display:block}.cogs-table input{width:100%;max-width:none!important}.cogs-table td:nth-child(7) input+input{margin-top:.3rem}.missing{background:#fffbeb;color:#b45309!important}.manual-groups details{border:1px solid var(--border);border-radius:9px;margin:.55rem 0;overflow:hidden}.manual-groups summary{cursor:pointer;background:#f8fafc;justify-content:space-between;padding:.65rem .8rem;font-weight:700;display:flex}.manual-groups summary span{color:#64748b;font:400 .75rem IBM Plex Mono,monospace}.manual-groups .inputs{background:#fff;margin:0;padding:.7rem}.manual-groups .inputs>label{grid-template-columns:minmax(220px,1fr) 150px 170px}.manual-groups .inputs>label>span{grid-column:auto}.manual-groups .inputs b,.manual-groups .inputs small{display:block}.manual-groups .inputs small{color:#64748b;margin-top:.2rem;font-weight:400}.manual-groups .inputs em{color:#64748b;font-size:.72rem;font-style:normal}.source-actions{grid-template-columns:repeat(2,minmax(260px,1fr));gap:.7rem;margin:.8rem 0 1rem;display:grid}.source-actions article,.source-actions .upload{background:#eff6ff;border:1px solid #bfdbfe;border-radius:10px;min-height:112px;margin:0;padding:.8rem}.source-actions article{grid-template-columns:1fr auto;align-items:center;gap:.3rem 1rem;display:grid}.source-actions article b,.source-actions article span{grid-column:1}.source-actions article span{color:#64748b;font-size:.76rem}.source-actions article button{grid-area:1/2/3}.source-list>div{border-bottom:1px solid #e5e7eb;grid-template-columns:130px 1fr auto;gap:.7rem;padding:.55rem;display:grid}.source-list time{color:#64748b;font-size:.75rem}@media (width<=820px){.opiu-hero{flex-direction:column;align-items:start}.source-actions,.manual-groups .inputs>label{grid-template-columns:1fr}.manual-groups .inputs>label>span,.manual-groups .inputs>label>em{grid-column:1}.tree-row small{display:none}.source-list>div{grid-template-columns:1fr}.tree-children{padding-left:2.2rem}}.upload.compact{white-space:nowrap;border-style:solid;min-height:0;margin:0;padding:.5rem .75rem}@media (width<=820px){.report-head{flex-wrap:wrap}}.operations details{border:1px solid var(--border);background:#fff;border-radius:9px;margin:.6rem 0;overflow:hidden}.operations summary{cursor:pointer;background:#f8fafc;justify-content:space-between;padding:.65rem .8rem;font-weight:700;display:flex}.operations summary span{color:#64748b;font:400 .75rem IBM Plex Mono,monospace}.operation-inputs{background:#fff;margin:0;padding:.75rem}.operation-inputs input,.operation-inputs select{width:100%}.buyout-upload{border-bottom:1px solid var(--border);background:#fff;align-items:center;gap:.7rem;padding:.75rem;display:flex}.buyout-upload>div{flex:1;gap:.2rem;display:grid}.buyout-upload small{color:#64748b}.source-files{border-bottom:1px solid var(--border);color:#64748b;background:#fff;flex-wrap:wrap;gap:.5rem;padding:.65rem .75rem;display:flex}.source-files a{color:#155e75;text-decoration:underline}.row-actions{align-items:center;gap:.45rem;display:flex}.text-button{color:#64748b;cursor:pointer;background:0 0;border:0;padding:.25rem}@media (width<=760px){.buyout-upload{flex-direction:column;align-items:stretch}.buyout-upload .upload{width:100%}}.manual-groups .inputs{grid-template-columns:1fr}.manual-groups .inputs>.manual-field{grid-template-columns:minmax(220px,1fr) minmax(150px,180px) auto;grid-template-areas:"description amount zero";align-items:center;gap:.75rem;display:grid}.manual-groups .inputs>.manual-field>span{grid-area:description;min-width:0}.manual-groups .inputs>.manual-field>input:not([type=checkbox]){grid-area:amount;min-width:0}.manual-groups .inputs>.manual-field>em{border:1px solid var(--border);white-space:nowrap;background:#fff;border-radius:6px;grid-area:zero;align-items:center;min-height:32px;padding:0 .55rem;display:inline-flex}.manual-groups .inputs>.manual-field>em:has(input:checked){color:#1d4ed8;background:#eff6ff;border-color:#93c5fd}@media (width<=760px){.manual-groups .inputs>.manual-field{grid-template-columns:1fr auto;grid-template-areas:"description description""amount zero"}}@media (width<=420px){.manual-groups .inputs>.manual-field{grid-template-columns:1fr;grid-template-areas:"description""amount""zero"}.manual-groups .inputs>.manual-field>em{justify-self:start}}.reconciliation-action{background:#fffbeb;border:1px solid #fcd34d;border-radius:10px;grid-template-columns:1fr auto;align-items:start;gap:.8rem;margin-top:1rem;padding:1rem;display:grid}.reconciliation-action h3{color:#92400e;margin:0}.reconciliation-action p{color:#78350f;margin:.28rem 0 0}.reconciliation-action .wide{grid-column:1/-1}.reconciliation-action ul{grid-column:1/-1;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:.45rem;margin:0;padding:0;list-style:none;display:grid}.reconciliation-action li{background:#fff;border:1px solid #fde68a;border-radius:7px;padding:.55rem .65rem}.reconciliation-action li b,.reconciliation-action li small{display:block}.reconciliation-action li small{color:#78716c;margin-top:.2rem;font-size:.75rem}@media (width<=820px){.reconciliation-action{grid-template-columns:1fr}.reconciliation-action .save{width:100%}}.formula-hint{color:#2563eb;cursor:help;background:#eff6ff;border:1px solid #bfdbfe;border-radius:4px;justify-content:center;align-items:center;min-width:1.45rem;height:1.1rem;margin-left:.25rem;padding:0 .22rem;font-family:IBM Plex Mono,monospace;font-size:.61rem;font-style:normal;font-weight:700;line-height:1;display:inline-flex}.tree-children span[title],.metric span[title]{cursor:help}.inventory-actions{grid-template-columns:repeat(3,minmax(220px,1fr));gap:.65rem;margin-bottom:.75rem;display:grid}.inventory-action{border:1px solid var(--border);min-height:84px;color:var(--text);cursor:pointer;font:inherit;text-align:left;background:#fff;border-radius:10px;flex-direction:column;justify-content:center;align-items:flex-start;gap:.2rem;padding:.8rem 1rem;display:flex}.inventory-action:hover{background:#f8fbff;border-color:#93b4ee}.inventory-action.primary{background:#eff6ff;border-color:#93c5fd}.inventory-action.passive{cursor:default;background:#f8fafc}.inventory-action.passive:hover{border-color:var(--border)}.inventory-action span{color:var(--muted);font-size:.76rem}.inventory-freshness{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.65rem;margin-bottom:.75rem;display:grid}.inventory-freshness>div{border:1px solid var(--border);background:#fff;border-left:4px solid #94a3b8;border-radius:8px;padding:.55rem .7rem}.inventory-freshness>div.ready{border-left-color:#16a34a}.inventory-freshness b,.inventory-freshness span{display:block}.inventory-freshness span{color:var(--muted);margin-top:.15rem;font-size:.74rem}.inventory-report .report-head{justify-content:space-between;align-items:center;gap:1rem;margin-bottom:.7rem;display:flex}.inventory-report .report-head p{color:var(--muted);margin:.25rem 0 0;font-size:.78rem}.inventory-refresh{border:1px solid var(--border);cursor:pointer;background:#fff;border-radius:6px;padding:.4rem .7rem}.inventory-table{overscroll-behavior:contain;max-height:calc(100vh - 11rem);overflow:auto}.inventory-table table{min-width:1200px}.inventory-table thead th{z-index:20;position:sticky;top:0}.inventory-table th:first-child,.inventory-table td:first-child{z-index:10;text-align:left;background:var(--surface,#fff);width:280px;min-width:280px;max-width:280px;position:sticky;left:0}.inventory-table th:nth-child(2),.inventory-table td:nth-child(2){z-index:11;text-align:left;background:var(--surface,#fff);min-width:118px;box-shadow:2px 0 0 var(--border);position:sticky;left:280px}.inventory-table thead th:first-child,.inventory-table thead th:nth-child(2){z-index:30;background:#0f172a}.inventory-table .article{white-space:nowrap;font-family:IBM Plex Mono,monospace}.inventory-table .priority{color:#704e00;background:#fff8dc}.inventory-table thead .priority{color:#fff;background:#725b00}.inventory-status{white-space:nowrap;color:#475569;background:#eef2f7;border-radius:999px;padding:.15rem .45rem;font-size:.7rem;display:inline-block}.inventory-status.ok{color:#166534;background:#dcfce7}.inventory-status.overallocated{color:#991b1b;background:#fee2e2}.inventory-status.unallocated{color:#92400e;background:#fef3c7}@media (width<=800px){.inventory-actions,.inventory-freshness{grid-template-columns:1fr}.inventory-hero{flex-direction:column;align-items:flex-start}.inventory-hero .controls,.inventory-hero label,.inventory-hero select{width:100%}.inventory-table{max-height:calc(100vh - 8rem)}.inventory-table th:first-child,.inventory-table td:first-child{width:220px;min-width:220px;max-width:220px}.inventory-table th:nth-child(2),.inventory-table td:nth-child(2){left:220px}}.inventory-allocation{justify-content:space-between;align-items:center;gap:1.5rem;margin-bottom:.75rem;display:flex}.inventory-allocation h2,.inventory-issues h2{margin:.1rem 0}.inventory-allocation p{color:var(--muted);margin:.25rem 0;font-size:.78rem}.allocation-control{min-width:300px}.allocation-control b{margin-bottom:.4rem;display:block}.allocation-control input{accent-color:#1d4ed8;width:100%}.inventory-issues{margin-top:.75rem}.inventory-issues>div{border-top:1px solid var(--border);padding:.45rem 0;font-size:.82rem}@media (width<=800px){.inventory-allocation{flex-direction:column;align-items:flex-start}.allocation-control{width:100%;min-width:0}}.inventory-table-controls{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:.65rem;display:flex}.inventory-zero-switch{color:var(--muted);white-space:nowrap;cursor:pointer;align-items:center;gap:.42rem;font-size:.76rem;display:inline-flex}.inventory-zero-switch input{opacity:0;pointer-events:none;block-size:1px;inline-size:1px;position:absolute}.inventory-zero-switch span{background:#cbd5e1;border-radius:999px;width:34px;height:20px;transition:background .15s;position:relative;box-shadow:inset 0 0 0 1px #94a3b8}.inventory-zero-switch span:after{content:"";background:#fff;border-radius:50%;width:14px;height:14px;transition:transform .15s;position:absolute;top:3px;left:3px;box-shadow:0 1px 2px #0003}.inventory-zero-switch input:checked+span{box-shadow:none;background:#2563eb}.inventory-zero-switch input:checked+span:after{transform:translate(14px)}.inventory-zero-switch input:focus-visible+span{outline-offset:2px;outline:3px solid #93c5fd}.inventory-columns-button{border:1px solid var(--border);background:var(--surface,#fff);color:var(--text);font:inherit;cursor:pointer;border-radius:6px;padding:.4rem .65rem;font-size:.76rem}.inventory-table-settings{border:1px solid var(--border);background:var(--soft);border-radius:9px;grid-template-columns:minmax(180px,1fr) 2fr minmax(220px,1fr);gap:.8rem;margin:-.1rem 0 .7rem;padding:.75rem;display:grid}.inventory-table-settings b,.inventory-table-settings small{display:block}.inventory-table-settings small{color:var(--muted);margin-top:.2rem;font-size:.72rem}.inventory-column-options{flex-wrap:wrap;gap:.38rem .75rem;display:flex}.inventory-column-options label{white-space:nowrap;align-items:center;gap:.3rem;font-size:.74rem;display:inline-flex}.inventory-hidden-products>span{justify-content:space-between;align-items:center;gap:.5rem;margin-top:.28rem;font-size:.74rem;display:flex}.inventory-hidden-products button{color:#1d4ed8;cursor:pointer;font:inherit;background:#dbeafe;border:0;border-radius:5px;padding:.2rem .4rem;font-size:.7rem}.inventory-visible-count{color:var(--muted);margin:-.2rem 0 .65rem!important;font-size:.75rem!important}.inventory-hide-product{background:var(--surface,#fff);color:#64748b;cursor:pointer;border:1px solid #d1d5db;border-radius:7px;flex:none;place-items:center;width:25px;height:25px;padding:0;font:600 1rem/1 system-ui,sans-serif;display:inline-grid}.inventory-hide-product:hover{color:#334155;background:#f1f5f9}@media (width<=800px){.inventory-report .report-head{flex-direction:column;align-items:flex-start}.inventory-table-controls{justify-content:flex-start}.inventory-table-settings{grid-template-columns:1fr}}.inventory-issues details{border:1px solid var(--border);background:#fff;border-radius:8px;overflow:hidden}.inventory-issues summary{cursor:pointer;background:#f8fafc;justify-content:space-between;align-items:center;gap:.65rem;padding:.65rem .75rem;font-weight:700;display:flex}.inventory-issues summary span{color:var(--muted);font:400 .75rem IBM Plex Mono,monospace}.inventory-issues details>div{padding:.45rem .7rem}.inventory-status.disabled{color:#475569;background:#e2e8f0}.inventory-status.unmapped{color:#991b1b;background:#fee2e2}.inventory-status.condition_excluded{color:#6b7280;background:#f3f4f6}.sku-disabled-row{opacity:.62}.inventory-product-name{align-items:center;gap:.4rem;max-width:100%;display:inline-flex}.sku-settings-button{color:#23549a;cursor:pointer;background:#f3f7ff;border:1px solid #b4c7e7;border-radius:7px;flex:none;place-items:center;width:25px;height:25px;padding:0;font:600 1rem/1 system-ui,sans-serif;display:inline-grid}.sku-settings-button:hover{color:#123e7a;background:#e3eeff;border-color:#7fa4dc}.sku-settings-button:focus-visible{outline-offset:2px;outline:3px solid #93c5fd}.sku-settings-button:disabled{cursor:not-allowed;opacity:.45}.sku-modal-backdrop{z-index:1000;background:#0f172a99;place-items:center;padding:1rem;display:grid;position:fixed;inset:0}.sku-modal{border:1px solid var(--border);background:var(--surface,#fff);width:min(680px,100%);max-height:calc(100vh - 2rem);color:var(--text);border-radius:14px;overflow:auto;box-shadow:0 24px 80px #0f172a55}.sku-modal header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:flex-start;gap:1rem;padding:1rem 1.1rem;display:flex}.sku-modal h2{margin:0}.sku-modal header p{color:var(--muted);margin:.25rem 0 0;font-size:.8rem}.sku-modal-close{background:var(--soft);width:34px;height:34px;color:var(--text);cursor:pointer;border:0;border-radius:8px;font-size:1.5rem;line-height:1}.sku-transfer-switch{border:1px solid var(--border);background:var(--soft);cursor:pointer;border-radius:9px;align-items:center;gap:.65rem;margin:1rem 1.1rem;padding:.8rem;display:flex}.sku-transfer-switch input{opacity:0;width:1px;height:1px;position:absolute}.sku-transfer-switch>span{background:#94a3b8;border-radius:999px;flex:0 0 38px;height:22px;transition:all .15s;position:relative}.sku-transfer-switch>span:after{content:"";background:#fff;border-radius:50%;width:16px;height:16px;transition:all .15s;position:absolute;top:3px;left:3px;box-shadow:0 1px 3px #0004}.sku-transfer-switch input:checked+span{background:#2563eb}.sku-transfer-switch input:checked+span:after{transform:translate(16px)}.sku-transfer-switch input:focus-visible+span{outline-offset:2px;outline:3px solid #93c5fd}.sku-aliases{gap:.4rem;margin:1rem 1.1rem;display:grid}.sku-aliases textarea{resize:vertical;border:1px solid var(--border);background:var(--surface,#fff);min-height:72px;color:var(--text);font:inherit;border-radius:8px;padding:.55rem .65rem}.sku-aliases small{color:var(--muted);line-height:1.4}.sku-distribution{border:1px solid var(--border);border-radius:9px;margin:1rem 1.1rem;overflow:hidden}.sku-distribution-head,.sku-distribution label{grid-template-columns:1fr 86px 20px;align-items:center;gap:.45rem;padding:.55rem .7rem;display:grid}.sku-distribution-head{background:var(--soft);justify-content:space-between;display:flex}.sku-distribution-head .valid{color:#15803d}.sku-distribution-head .invalid{color:#dc2626}.sku-distribution label+label{border-top:1px solid var(--border)}.sku-distribution input{border:1px solid var(--border);background:var(--surface,#fff);width:100%;color:var(--text);font:inherit;text-align:right;border-radius:6px;padding:.35rem .45rem}.sku-distribution em{color:var(--muted);font-style:normal}.sku-modal footer{border-top:1px solid var(--border);justify-content:flex-end;gap:.65rem;padding:1rem 1.1rem;display:flex}@media (width<=640px){.sku-modal-backdrop{padding:.35rem}.sku-modal{max-height:calc(100vh - .7rem)}.sku-distribution-head,.sku-distribution label{grid-template-columns:1fr 72px 18px}}.sku-master{gap:.4rem;margin:1rem 1.1rem;display:grid}.sku-master input{border:1px solid var(--border);background:var(--surface,#fff);width:100%;color:var(--text);font:inherit;border-radius:8px;padding:.55rem .65rem}.sku-master input[readonly]{background:var(--soft);color:var(--muted)}.sku-master small{color:var(--muted);line-height:1.4}.buy-controls{align-items:end;gap:.6rem;display:flex}.buy-controls label{color:var(--muted);gap:.25rem;font-size:.78rem;display:grid}.buy-freshness{flex-wrap:wrap;align-items:center;gap:.75rem;font-size:.82rem;display:flex}.buy-freshness span{background:var(--soft);border-radius:6px;padding:.25rem .45rem}.buy-table td:nth-child(2){text-align:left;min-width:250px}.buy-formula{max-width:360px;color:var(--muted);margin-top:.25rem;font-size:.7rem;line-height:1.3;display:block}.buy-recommend{font-weight:700;color:#b45309!important}@media (width<=700px){.buy-controls{flex-direction:column;align-items:stretch}.buy-controls .save{width:100%}}.source-map h2{margin-bottom:.65rem}.source-map>div{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.55rem;display:grid}.source-map article{border:1px solid var(--border);background:var(--surface);border-left:4px solid #94a3b8;border-radius:8px;gap:.15rem;padding:.6rem .7rem;display:grid}.source-map article.auto{border-left-color:#2563eb}.source-map article.manual{background:#fffbeb;border-left-color:#a16207}.source-map b{font-size:.78rem}.source-map span,.source-map small{color:var(--muted);font-size:.72rem}.source-map small{line-height:1.3}.buy-table th small{opacity:.75;font-size:.65rem;font-weight:400}.buy-table td{white-space:nowrap}.buy-table td:nth-child(2){white-space:normal}.manual-value{color:#92400e;font-weight:700}.api-value{color:#075985;font-weight:700}.not-connected{color:#9a3412;font-size:.74rem}.buy-settings-intro{color:var(--muted);margin:1rem 1.1rem 0;font-size:.78rem;line-height:1.4}.buy-filter{color:var(--muted);gap:.25rem;font-size:.75rem;display:grid}.buy-catalog details+details{margin-top:.75rem}.buy-catalog summary{cursor:pointer;font-weight:700}.buy-catalog summary span{color:var(--muted);margin-left:.4rem;font:400 .75rem IBM Plex Mono,monospace}.buy-catalog-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.5rem;margin-top:.7rem;display:grid}.buy-catalog-grid>div{border:1px solid var(--border);background:var(--soft);border-radius:7px;padding:.55rem .65rem}.buy-catalog-grid b,.buy-catalog-grid small{display:block}.buy-catalog-grid small{color:var(--muted);margin-top:.15rem;font-size:.72rem}.buy-modal select{width:100%}.buy-scenario{justify-content:space-between;align-items:center;gap:1rem;display:flex}.buy-scenario b,.buy-scenario small{display:block}.buy-scenario small{color:var(--muted);margin-top:.2rem;font-size:.75rem}.buy-scenario label{min-width:150px;color:var(--muted);gap:.25rem;font-size:.75rem;display:grid}.buy-scenario input{width:100%}@media (width<=700px){.buy-scenario{flex-direction:column;align-items:stretch}}.buy-filters{flex-wrap:wrap;gap:.5rem;display:flex}.buy-history{width:min(850px,100%)}.buy-chart{border-bottom:1px solid var(--border);align-items:end;gap:.5rem;height:260px;padding:1rem;display:flex;overflow-x:auto}.buy-bar{flex-direction:column;justify-content:end;align-items:center;gap:.25rem;min-width:42px;height:100%;display:flex}.buy-bar b{background:#2563eb;border-radius:5px 5px 0 0;width:24px;display:block}.buy-bar small,.buy-bar em{color:var(--muted);white-space:nowrap;font-size:.68rem;font-style:normal}.buy-history-note{color:var(--muted);padding:0 1rem;font-size:.76rem}.buy-table td:last-child .inventory-columns-button{font-size:0}.buy-table td:last-child .inventory-columns-button:after{vertical-align:middle;font-size:1rem;line-height:1}.buy-table td:last-child .inventory-columns-button:first-child:after{content:"📊"}.buy-table td:last-child .inventory-columns-button:last-child:after{content:"⚙️"}.buy-view-switch{z-index:50;background:var(--surface);border-bottom:1px solid var(--border);justify-content:center;gap:.3rem;padding:.45rem;display:flex;position:sticky;top:0}.buy-view-switch button{color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:6px;padding:.4rem .8rem}.buy-view-switch button.selected{background:var(--soft);color:var(--accent);font-weight:700}.legacy-controls{flex-wrap:wrap;align-items:center;gap:1rem;display:flex}.legacy-controls>span{margin-right:auto}.legacy-controls .legacy-live{color:#92400e;background:#fef3c7;border-radius:999px;margin-right:0;padding:.25rem .45rem;font-size:.72rem}.legacy-controls .legacy-live.ready{color:#166534;background:#dcfce7}.legacy-controls label{color:var(--muted);align-items:center;gap:.35rem;font-size:.75rem;display:flex}.legacy-table{width:calc(100% - 24px);max-height:calc(100vh - 12rem);margin:0 12px 2rem}.legacy-table table{min-width:2750px}.legacy-table thead th{z-index:20;position:sticky;top:0;text-align:center!important}.legacy-table th:first-child,.legacy-table td:first-child{z-index:10;background:var(--surface);min-width:105px;position:sticky;left:0}.legacy-table th:nth-child(2),.legacy-table td:nth-child(2){z-index:10;background:var(--surface);min-width:90px;position:sticky;left:105px}.legacy-table th:nth-child(3),.legacy-table td:nth-child(3){z-index:10;background:var(--surface);text-align:left;min-width:300px;box-shadow:2px 0 0 var(--border);position:sticky;left:195px}.legacy-table thead th:nth-child(-n+3){z-index:30;background:#0f172a}.legacy-table td{font-variant-numeric:tabular-nums;text-align:right}.legacy-table td:nth-child(-n+4){text-align:left}.legacy-category{text-align:center;width:72px;min-width:72px;font-weight:700}.legacy-category.category-a{background:#fef08a}.legacy-category.category-b{background:#fde68a}.legacy-category.category-c{background:#fed7aa}.legacy-category.category-new{background:#bbf7d0}.legacy-table .live-value{background:#eff6ff;font-weight:700}.legacy-table .mapping-value{color:#166534;font-family:IBM Plex Mono,monospace}.legacy-table .mapping-error{white-space:nowrap;color:#b45309;font-size:.74rem}.theme-switch{border:1px solid var(--border);background:var(--soft);border-radius:9px;flex:none;padding:3px;display:inline-flex}.theme-switch button{min-height:28px!important;color:var(--muted)!important;background:0 0!important;border:0!important;border-radius:6px!important;padding:.28rem .55rem!important;font-size:.74rem!important}.theme-switch button.active{box-shadow:0 1px 3px #0002;background:var(--surface)!important;color:var(--text)!important}.theme-switch button:hover{background:color-mix(in srgb,var(--surface) 72%,transparent)!important}:root[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#0b1220;--surface:#111b2e;--text:#e7edf8;--muted:#a8b5c9;--accent:#7db1ff;--soft:#172a49;--border:#2a3a54;--red:#ff8585;background:var(--bg)}:root[data-theme=dark] .purchase{--purchase-api-bg:#112d48;--purchase-api-border:#285f8d;--purchase-manual-bg:#352b12;--purchase-manual-border:#6d551d;--purchase-danger-bg:#3e1d2a;--purchase-danger:#ffadb8;--purchase-success-bg:#153b2c;--purchase-success:#91e0b2;--purchase-accent-bg:#192e5a;--purchase-accent:#a9c8ff}:root[data-theme=dark] .purchase td.category-a{color:#fff4b0;background:#514609}:root[data-theme=dark] .purchase td.category-b{color:#ffe2ad;background:#573a10}:root[data-theme=dark] .purchase td.category-c{color:#ffd4b5;background:#55331c}:root[data-theme=dark] .purchase td.category-new{color:#bcf7d2;background:#164b32}:root[data-theme=dark] body{background:#0b1220}:root[data-theme=dark] .topbar{background:#101a2c;box-shadow:0 1px 3px #0008}:root[data-theme=dark] .topbar button:hover{color:var(--text);background:#1c2b43}:root[data-theme=dark] .topbar button.selected{color:#a9ccff;background:#183962}:root[data-theme=dark] .controls select,:root[data-theme=dark] .controls input,:root[data-theme=dark] select,:root[data-theme=dark] input,:root[data-theme=dark] .wide select,:root[data-theme=dark] .wide input,:root[data-theme=dark] .inputs input{color:var(--text);background:#0f192a;border-color:#40516e}:root[data-theme=dark] .controls select,:root[data-theme=dark] .wide select{background-image:linear-gradient(45deg,#0000 50%,#b8c5d8 50%),linear-gradient(135deg,#b8c5d8 50%,#0000 50%)}:root[data-theme=dark] .report,:root[data-theme=dark] .form,:root[data-theme=dark] .metric,:root[data-theme=dark] .inventory-action,:root[data-theme=dark] .inventory-freshness>div,:root[data-theme=dark] .operations details,:root[data-theme=dark] .operation-inputs,:root[data-theme=dark] .buyout-upload,:root[data-theme=dark] .source-files{background:#111b2e}:root[data-theme=dark] .metric span,:root[data-theme=dark] .empty,:root[data-theme=dark] .tree-row small,:root[data-theme=dark] .after-profit span,:root[data-theme=dark] .source-list time,:root[data-theme=dark] .minor,:root[data-theme=dark] .operations summary span,:root[data-theme=dark] .buyout-upload small{color:var(--muted)}:root[data-theme=dark] .opiu-pills,:root[data-theme=dark] .report-tabs{border-color:var(--border);background:#111b2e}:root[data-theme=dark] .report-tabs button,:root[data-theme=dark] .tree-section-head{color:var(--text);background:#1a2940}:root[data-theme=dark] .report-tabs button.active,:root[data-theme=dark] .opiu-pills button.active{color:#071426;background:#6ea8ff;border-color:#6ea8ff}:root[data-theme=dark] .tree-rows,:root[data-theme=dark] .tree-row,:root[data-theme=dark] .manual-groups .inputs,:root[data-theme=dark] .detail td,:root[data-theme=dark] .tree-children,:root[data-theme=dark] .manual-groups summary,:root[data-theme=dark] .operations summary{color:var(--text);background:#111b2e!important}:root[data-theme=dark] .tree-row:hover{background:#18243a!important}:root[data-theme=dark] .tree-children span,:root[data-theme=dark] .detail span,:root[data-theme=dark] .wide th,:root[data-theme=dark] .wide td,:root[data-theme=dark] .source-list>div{border-color:#293a55}:root[data-theme=dark] .wide thead th{color:#e7edf8;background:#1a2940}:root[data-theme=dark] .inventory-table th:first-child,:root[data-theme=dark] .inventory-table td:first-child,:root[data-theme=dark] .inventory-table th:nth-child(2),:root[data-theme=dark] .inventory-table td:nth-child(2){background:#111b2e}:root[data-theme=dark] .inventory-table thead th:first-child,:root[data-theme=dark] .inventory-table thead th:nth-child(2){background:#1a2940}:root[data-theme=dark] .after-profit b{color:var(--text)}:root[data-theme=dark] .notice,:root[data-theme=dark] .reconciliation-action{color:#ffe7a8;background:#3b2e0d;border-color:#83611d}:root[data-theme=dark] .reconciliation-action h3,:root[data-theme=dark] .reconciliation-action p{color:#ffe7a8}:root[data-theme=dark] .reconciliation-action li{background:#1c2637;border-color:#73581d}:root[data-theme=dark] .api-import,:root[data-theme=dark] .upload,:root[data-theme=dark] .source-actions article,:root[data-theme=dark] .source-actions .upload,:root[data-theme=dark] .metric.main{background:#122a4a;border-color:#315d91}:root[data-theme=dark] .api-import span,:root[data-theme=dark] .source-actions article span{color:#b8c8df}:root[data-theme=dark] .export{color:#b9d5ff;background:#172a49;border-color:#416ba1}:root[data-theme=dark] .export:hover{background:#203b65}:root[data-theme=dark] .inventory-action.primary{background:#122a4a;border-color:#315d91}:root[data-theme=dark] .inventory-action.passive{background:#172236}:root[data-theme=dark] .inventory-action:hover{background:#1b2b44;border-color:#577aa8}:root[data-theme=dark] .inventory-status{color:#c7d3e4;background:#263750}:root[data-theme=dark] .inventory-table .priority{color:#ffe9a6;background:#3c3117}:root[data-theme=dark] .inventory-table thead .priority{color:#fff4c5;background:#765a13}:root[data-theme=dark] .login-page{background:linear-gradient(135deg,#0b1220,#14243d)}:root[data-theme=dark] .login-card{background:#111b2e;border-color:#31435f;box-shadow:0 18px 55px #0008}:root[data-theme=dark] .login-card h1{color:#dbeafe}:root[data-theme=dark] .login-card label{color:#d5dfed}:root[data-theme=dark] .login-card input{color:var(--text);background:#0f192a;border-color:#40516e}:root[data-theme=dark] .login-error{color:#ffc2cb;background:#3d1d27;border-color:#85404e}:root[data-theme=dark] select,:root[data-theme=dark] select option{color-scheme:normal;color:#f1f5f9!important;background:#17243a!important}:root[data-theme=dark] .controls select,:root[data-theme=dark] .wide select{appearance:none!important;background:#17243a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23c7d7ef' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8'/%3E%3C/svg%3E") right 9px center/16px 16px no-repeat!important;padding-right:34px!important;box-shadow:inset 0 0 0 1px #40516e!important}:root[data-theme=dark] select:hover,:root[data-theme=dark] select:focus{background-color:#1d304c!important;border-color:#75a9f5!important}:root[data-theme=dark] input[type=month]::-webkit-calendar-picker-indicator{filter:invert()}:root[data-theme=dark] .inventory-refresh{color:#fff!important;background:#1d4ed8!important;border-color:#4f8cff!important}:root[data-theme=dark] .inventory-refresh:hover{background:#2563eb!important}:root[data-theme=dark] .text-button{color:#b8c8df!important}:root[data-theme=dark] .text-button:hover{color:#fff!important;background:#21324c!important}:root[data-theme=dark] .sku-modal,:root[data-theme=dark] .sku-aliases textarea,:root[data-theme=dark] .sku-distribution input{color:var(--text);background:#111b2e}:root[data-theme=dark] .sku-settings-button{color:#b9d5ff;background:#183962;border-color:#416ba1}:root[data-theme=dark] .sku-settings-button:hover{color:#e1efff;background:#24507e;border-color:#6f9ed2}:root[data-theme=dark] .sku-transfer-switch,:root[data-theme=dark] .sku-distribution-head,:root[data-theme=dark] .sku-modal-close{background:#1a2940}:root[data-theme=dark] .inventory-status.disabled{color:#c7d3e4;background:#263750}:root[data-theme=dark] .sku-master input{color:var(--text);background:#111b2e;border-color:#40516e}@media (width<=700px){.theme-switch{order:2;margin-left:auto}.topbar .theme-switch button{flex:none;min-width:auto}}.analytics-frame{background:var(--bg);height:calc(100vh - 58px)}.analytics-frame iframe{background:#fff;border:0;width:100%;height:100%;display:block}.access-page{max-width:1280px}.access-head{margin:.3rem 0 1rem}.access-head p{color:var(--accent);text-transform:uppercase;margin:0 0 .3rem;font:600 .72rem IBM Plex Mono,monospace}.access-head span{max-width:760px;color:var(--muted);margin-top:.45rem;line-height:1.45;display:block}.access-card{border:1px solid var(--border);background:var(--surface);border-radius:12px;margin-bottom:.8rem;padding:1rem}.access-card h2{margin-bottom:.8rem}.access-create{grid-template-columns:repeat(3,minmax(170px,1fr));align-items:end;gap:.65rem;display:grid}.access-create>label,.access-list article>label{color:var(--muted);gap:.3rem;font-size:.75rem;display:grid}.access-create input,.access-list input{width:100%;min-height:34px}.access-modules{flex-wrap:wrap;gap:.35rem;display:flex}.access-modules label{border:1px solid var(--border);background:var(--soft);color:var(--text);cursor:pointer;border-radius:7px;align-items:center;gap:.32rem;padding:.35rem .48rem;font-size:.75rem;display:inline-flex}.access-modules input{margin:0;width:15px!important;min-height:auto!important}.access-list{gap:.6rem;display:grid}.access-list article{border:1px solid var(--border);background:var(--soft);border-radius:9px;grid-template-columns:minmax(135px,.6fr) minmax(170px,1fr) minmax(210px,1.25fr) minmax(280px,1.7fr) auto;align-items:end;gap:.6rem;padding:.75rem;display:grid}.access-login{gap:.2rem;display:grid}.access-login b{font:600 .84rem IBM Plex Mono,monospace}.access-login small,.access-list label small{color:var(--muted);font-size:.65rem}.access-actions{gap:.35rem;display:flex}.access-delete{min-height:34px;padding:.36rem .6rem;color:#b42318!important;background:#fff1f1!important;border:1px solid #f2b8b8!important;border-radius:8px!important}.access-delete:hover{background:#ffe1e1!important}@media (width<=980px){.access-create{grid-template-columns:repeat(2,minmax(170px,1fr))}.access-list article{grid-template-columns:repeat(2,minmax(180px,1fr))}}@media (width<=600px){.access-create,.access-list article{grid-template-columns:1fr}.access-actions{justify-content:stretch}.access-actions button{flex:1}}:root[data-theme=dark] .access-card{background:var(--surface)}:root[data-theme=dark] .access-list article{background:#17243a}:root[data-theme=dark] .access-modules label{background:#1b2b44}:root[data-theme=dark] .access-delete{color:#ffb6c0!important;background:#3a1e28!important;border-color:#804354!important}.purchase{--purchase-api-bg:#eaf4ff;--purchase-api-border:#a9d0f4;--purchase-manual-bg:#fff7dc;--purchase-manual-border:#ecd28d;--purchase-danger-bg:#fee7e7;--purchase-danger:#a21c2d;--purchase-success-bg:#e4f7ec;--purchase-success:#137a45;--purchase-accent-bg:#e8efff;--purchase-accent:#1d4ed8}.purchase-head{grid-template-columns:1fr auto;align-items:end;gap:.75rem 1rem;padding:1rem 0 .7rem;display:grid}.purchase-head h1{font-size:1.55rem}.purchase-head p{max-width:680px;color:var(--muted);margin:.25rem 0 0;font-size:.82rem}.purchase-kicker{letter-spacing:.04em;text-transform:uppercase;color:var(--accent)!important;margin:0!important;font:600 .72rem IBM Plex Mono,monospace!important}.purchase-actions{align-items:end;gap:.65rem;display:flex}.purchase-actions label{color:var(--muted);gap:.25rem;font-size:.72rem;display:grid}.purchase-actions select{min-width:145px}.purchase-status{color:var(--muted);grid-column:1/-1;font-size:.74rem}.purchase-legend{border:1px solid var(--border);background:var(--surface);border-radius:9px;flex-wrap:wrap;align-items:center;gap:.45rem;margin:0 0 .7rem;padding:.55rem .7rem;font-size:.72rem;display:flex}.purchase-legend span{border-radius:999px;padding:.18rem .42rem;font-weight:600}.purchase-legend b{color:var(--muted);margin-left:auto;font-weight:500}.legend-api{background:var(--purchase-api-bg);color:#176aa7}.legend-manual{background:var(--purchase-manual-bg);color:#8a5d00}.legend-danger{background:var(--purchase-danger-bg);color:var(--purchase-danger)}.legend-success{background:var(--purchase-success-bg);color:var(--purchase-success)}.purchase-grid{border:1px solid var(--border);background:var(--surface);border-radius:10px;max-height:58vh;overflow:auto;box-shadow:0 3px 10px #0f172a08}.purchase table{border-collapse:separate;border-spacing:0;width:100%;min-width:1780px;font-size:.79rem}.purchase th,.purchase td{border-right:1px solid var(--border);border-bottom:1px solid var(--border);background:var(--surface);color:var(--text);text-align:right;vertical-align:middle;font-variant-numeric:tabular-nums;padding:.44rem .52rem}.purchase th{background:var(--soft);z-index:5;white-space:normal;text-align:center;font-size:.72rem;line-height:1.25;position:sticky;top:0}.purchase thead tr:first-child th{height:43px}.purchase thead tr:nth-child(2) th{z-index:6;top:43px}.purchase th:last-child,.purchase td:last-child{border-right:0}.purchase tbody tr{cursor:pointer}.purchase tbody tr:hover td{background:color-mix(in srgb,var(--soft) 60%,var(--surface))}.purchase .chosen td{box-shadow:inset 0 1px 0 var(--accent),inset 0 -1px 0 var(--accent)}.purchase th:first-child,.purchase td:first-child{z-index:3;text-align:left;min-width:90px;position:sticky;left:0}.purchase th:nth-child(2),.purchase td:nth-child(2){z-index:3;text-align:center;min-width:83px;position:sticky;left:90px}.purchase th:nth-child(3),.purchase td:nth-child(3){z-index:3;text-align:left;min-width:280px;box-shadow:2px 0 0 var(--border);position:sticky;left:173px}.purchase thead th:nth-child(-n+3){z-index:9;color:#f7fbff;background:#172b48}.purchase td:nth-child(3){white-space:normal}.purchase td button{width:100%;color:inherit;text-align:left;cursor:pointer;font:inherit;background:0 0;border:0;padding:0;line-height:1.3}.purchase td button:hover{color:var(--accent);text-decoration:underline}.purchase td small{color:var(--muted);font-variant-numeric:normal;margin-top:.15rem;font-size:.63rem;display:block}.purchase input,.purchase select{background:var(--surface);color:var(--text);border:1px solid var(--border);font:inherit;border-radius:5px;padding:.28rem .35rem}.purchase-input{text-align:right;width:5.4rem}.purchase td.manual-cell{background:var(--purchase-manual-bg)}.purchase td.api-cell{background:var(--purchase-api-bg);font-weight:700}.purchase td.history-cell{color:var(--muted)}.purchase td.category-a{background:#fff38d}.purchase td.category-b{background:#ffdca1}.purchase td.category-c{background:#ffe0bd}.purchase td.category-new{background:#bff1cf}.analysis-cell{min-width:58px;text-align:center!important}.week-picker{min-width:200px}.week-picker label{justify-content:center;align-items:center;gap:.45rem;display:flex}.purchase-detail{border:1px solid var(--border);background:var(--surface);border-radius:12px;margin-top:1rem;padding:1rem}.purchase-detail-title{justify-content:space-between;align-items:center;gap:1rem;margin-bottom:.75rem;display:flex}.purchase-detail-title h2{font-size:1.05rem}.purchase-detail-title>span{background:var(--soft);color:var(--muted);border-radius:999px;padding:.3rem .5rem;font-size:.72rem}.purchase-insights{grid-template-columns:repeat(6,minmax(130px,1fr));gap:.55rem;margin-bottom:1rem;display:grid}.purchase-insight{border:1px solid var(--border);background:var(--soft);border-radius:9px;gap:.2rem;min-height:79px;padding:.65rem .7rem;display:grid}.purchase-insight span{color:var(--muted);font-size:.7rem}.purchase-insight b{font:700 1.05rem IBM Plex Mono,monospace}.purchase-insight small{color:var(--muted);font-size:.67rem}.tone-danger{background:var(--purchase-danger-bg)!important;color:var(--purchase-danger)!important;border-color:#f2b8b8!important}.tone-success{background:var(--purchase-success-bg)!important;color:var(--purchase-success)!important;border-color:#a5e0bd!important}.tone-accent{background:var(--purchase-accent-bg)!important;color:var(--purchase-accent)!important;border-color:#b8caf8!important}.purchase-charts{grid-template-columns:repeat(auto-fit,minmax(310px,1fr));gap:.65rem;display:grid}.purchase-chart{border:1px solid var(--border);background:var(--surface);border-radius:9px;margin:0;padding:.75rem}.purchase-chart figcaption{margin-bottom:.55rem;font-size:.82rem;font-weight:700}.purchase-bar{grid-template-columns:minmax(8rem,1.45fr) 1fr auto;align-items:center;gap:.45rem;margin:.38rem 0;font-size:.72rem;display:grid}.purchase-bar>span{text-overflow:ellipsis;white-space:nowrap;color:var(--muted);overflow:hidden}.purchase-track{background:var(--soft);border-radius:999px;height:.5rem;overflow:hidden}.purchase-bar i{background:#2c87a5;border-radius:999px;min-width:2px;height:100%;display:block}.purchase-bar i.negative{background:#d86161}.purchase-bar i.tone-success{background:#23a86c!important}.purchase-bar i.tone-danger{background:#dd5665!important}.purchase-bar i.tone-accent{background:#3b70e6!important}.purchase-bar b{text-align:right;min-width:3.8rem;font:600 .72rem IBM Plex Mono,monospace}.purchase details{border:1px solid var(--border);border-radius:9px;margin-top:1rem;overflow:hidden}.purchase summary{cursor:pointer;background:var(--soft);justify-content:space-between;padding:.65rem .75rem;font-size:.82rem;font-weight:700;display:flex}.purchase summary span{color:var(--muted);font:400 .7rem IBM Plex Mono,monospace}.purchase-decision-grid{grid-template-columns:repeat(3,minmax(180px,1fr));gap:.55rem;padding:.7rem;display:grid}.purchase-decision-grid label{color:var(--muted);gap:.28rem;font-size:.72rem;display:grid}.purchase-decision-grid label small{color:var(--muted);font-family:IBM Plex Mono,monospace}.purchase-decision-grid label b{color:var(--text);font:600 .85rem IBM Plex Mono,monospace}@media (width<=950px){.purchase-insights{grid-template-columns:repeat(3,1fr)}}@media (width<=700px){.purchase-head{grid-template-columns:1fr}.purchase-actions{justify-content:space-between;width:100%}.purchase-actions .save{flex:1}.purchase-legend b{width:100%;margin-left:0}.purchase-grid{max-height:52vh}.purchase th:first-child,.purchase td:first-child{min-width:72px}.purchase th:nth-child(2),.purchase td:nth-child(2){min-width:70px;left:72px}.purchase th:nth-child(3),.purchase td:nth-child(3){min-width:210px;left:142px}.purchase-insights,.purchase-decision-grid{grid-template-columns:1fr 1fr}.purchase-charts{grid-template-columns:1fr}}.sales-overview{border:1px solid var(--border);background:var(--surface);border-radius:10px;margin:0 0 .7rem;overflow:hidden}.sales-overview summary{cursor:pointer;background:var(--soft);justify-content:space-between;padding:.7rem .8rem;font-size:.84rem;font-weight:700;display:flex}.sales-overview summary span{color:var(--muted);font:400 .7rem IBM Plex Mono,monospace}.sales-overview-content{padding:.72rem}.sales-overview-content>p{color:var(--muted);margin:0 0 .65rem;font-size:.74rem}.sales-overview-error{color:var(--purchase-danger)!important}.sales-channel-grid{grid-template-columns:repeat(3,minmax(190px,1fr));gap:.5rem;display:grid}.sales-channel{border:1px solid var(--border);background:var(--soft);border-radius:8px;gap:.28rem;min-height:106px;padding:.62rem;display:grid}.sales-channel.connected{background:var(--purchase-api-bg);border-color:var(--purchase-api-border)}.sales-channel header{justify-content:space-between;gap:.4rem;display:flex}.sales-channel header span{background:var(--purchase-manual-bg);color:#8a5d00;border-radius:999px;padding:.12rem .32rem;font-size:.62rem}.sales-channel.connected header span{color:#08733d;background:#d7f6e4}.sales-channel strong{font:700 1.04rem IBM Plex Mono,monospace}.sales-channel small{color:var(--muted);font-size:.67rem;line-height:1.28}@media (width<=850px){.sales-channel-grid{grid-template-columns:repeat(2,minmax(160px,1fr))}}@media (width<=520px){.sales-channel-grid{grid-template-columns:1fr}.sales-overview summary{align-items:center;gap:.5rem}.sales-overview summary span{text-align:right;max-width:130px}}.sales-velocity{border:1px solid var(--border);background:var(--surface);border-radius:10px;margin:0 0 .7rem;overflow:hidden}.sales-velocity>summary{cursor:pointer;background:var(--soft);justify-content:space-between;padding:.7rem .8rem;font-size:.84rem;font-weight:700;display:flex}.sales-velocity summary span{color:var(--muted);font:400 .7rem IBM Plex Mono,monospace}.sales-velocity-content{padding:.72rem}.sales-velocity-content>p{color:var(--muted);margin:0 0 .65rem;font-size:.74rem}.sales-velocity-controls{align-items:end;gap:.55rem;margin-bottom:.65rem;display:flex}.sales-velocity-controls label{color:var(--muted);gap:.2rem;font-size:.7rem;display:grid}.sales-velocity-controls select,.sales-velocity-controls input{border:1px solid var(--border);background:var(--surface);min-height:32px;color:var(--text);border-radius:6px;padding:.35rem .5rem}.sales-velocity-controls input{width:min(300px,100%)}.sales-velocity-table{border:1px solid var(--border);border-radius:7px;max-height:360px;overflow:auto}.sales-velocity-table table{border-collapse:collapse;width:100%;font-size:.73rem}.sales-velocity-table th{z-index:1;background:var(--soft);text-align:left;position:sticky;top:0}.sales-velocity-table th,.sales-velocity-table td{border-bottom:1px solid var(--border);vertical-align:top;padding:.45rem .5rem}.sales-velocity-table td small{color:var(--muted);margin-top:.15rem;font-size:.65rem;display:block}.velocity-value{color:var(--purchase-success);font:700 .8rem IBM Plex Mono,monospace}.velocity-missing{color:var(--purchase-danger)}.sales-velocity-breakdown{margin-top:.65rem}.sales-velocity-breakdown>summary{cursor:pointer;color:var(--muted);font-size:.74rem}.sales-velocity-breakdown>summary span{margin-left:.35rem}@media (width<=620px){.sales-velocity-controls{flex-direction:column;align-items:stretch}.sales-velocity-controls input{width:100%}}.purchase-filters{border:1px solid var(--border);background:var(--surface);border-radius:10px;flex-wrap:wrap;align-items:end;gap:.55rem;margin:0 0 .7rem;padding:.7rem;display:flex}.purchase-filter-title{gap:.16rem;min-width:180px;margin-right:auto;display:grid}.purchase-filter-title b{font-size:.82rem}.purchase-filter-title small{max-width:285px;color:var(--muted);font-size:.67rem;line-height:1.3}.purchase-filters label{color:var(--muted);gap:.22rem;font-size:.68rem;display:grid}.purchase-filters input,.purchase-filters select{border:1px solid var(--border);background:var(--surface);min-width:120px;min-height:32px;color:var(--text);font:inherit;border-radius:6px;padding:.32rem .45rem}.purchase-filters input{min-width:180px}.sales-channel-filter{border:1px solid var(--border);background:var(--soft);border-radius:7px;flex-wrap:wrap;align-items:center;gap:.55rem;margin:0 0 .65rem;padding:.5rem .6rem;display:flex}.sales-channel-filter legend{color:var(--muted);padding:0 .25rem;font-size:.7rem}.sales-channel-filter label{color:var(--text);align-items:center;gap:.25rem;font-size:.72rem;display:flex}.sales-channel-filter input{accent-color:var(--accent)}.sales-channel-filter .text-button{margin-left:auto}@media (width<=700px){.purchase-filters{align-items:stretch}.purchase-filter-title{width:100%}.purchase-filters label{flex:42%}.purchase-filters input,.purchase-filters select{width:100%;min-width:0}.sales-channel-filter .text-button{margin-left:0}}.abc-xyz{border:1px solid var(--border);background:var(--surface);border-radius:10px;margin:0 0 .7rem;overflow:hidden}.abc-xyz>summary{cursor:pointer;background:var(--soft);justify-content:space-between;padding:.7rem .8rem;font-size:.84rem;font-weight:700;display:flex}.abc-xyz summary span{color:var(--muted);font:400 .7rem IBM Plex Mono,monospace}.abc-xyz-content{padding:.72rem}.abc-xyz-content>p{color:var(--muted);margin:0 0 .6rem;font-size:.74rem;line-height:1.4}.abc-xyz-controls{align-items:end;gap:.55rem;margin-bottom:.6rem;display:flex}.abc-xyz-controls label{color:var(--muted);gap:.2rem;font-size:.7rem;display:grid}.abc-xyz-controls select,.abc-xyz-controls input{border:1px solid var(--border);background:var(--surface);min-height:32px;color:var(--text);border-radius:6px;padding:.35rem .5rem}.abc-xyz-controls input{width:min(300px,100%)}.abc-xyz-formula{border-left:3px solid var(--accent);background:var(--soft);padding:.5rem .6rem}.abc-xyz-warning{color:#956700!important}.abc-xyz-table{border:1px solid var(--border);border-radius:7px;max-height:350px;overflow:auto}.abc-xyz-table table{border-collapse:collapse;width:100%;font-size:.73rem}.abc-xyz-table th{z-index:1;background:var(--soft);text-align:left;position:sticky;top:0}.abc-xyz-table th,.abc-xyz-table td{border-bottom:1px solid var(--border);vertical-align:middle;padding:.42rem .5rem}.abc-badge,.xyz-badge,.segment-missing{border-radius:5px;place-items:center;min-width:1.65rem;padding:.14rem .3rem;font:700 .73rem IBM Plex Mono,monospace;display:inline-grid}.abc-A{color:#08733d;background:#d8f4e2}.abc-B{color:#855600;background:#fff0bd}.abc-C{color:#a21c2d;background:#fee0e0}.xyz-X{color:#2358bb;background:#e0ecff}.xyz-Y{color:#6843a3;background:#eee5ff}.xyz-Z{color:#a13069;background:#ffe4f1}.segment-missing{background:var(--soft);color:var(--muted)}@media (width<=620px){.abc-xyz-controls{flex-direction:column;align-items:stretch}.abc-xyz-controls input{width:100%}}.purchase-recommendations{border:1px solid var(--border);background:var(--surface);border-radius:10px;margin:0 0 .7rem;overflow:hidden}.purchase-recommendations>summary{cursor:pointer;background:var(--soft);justify-content:space-between;padding:.7rem .8rem;font-size:.84rem;font-weight:700;display:flex}.purchase-recommendations summary span{color:var(--muted);font:400 .7rem IBM Plex Mono,monospace}.purchase-recommendations-content{padding:.72rem}.purchase-recommendations-content>p{color:var(--muted);margin:0 0 .65rem;font-size:.74rem;line-height:1.4}.recommendation-controls{align-items:end;gap:.55rem;margin-bottom:.6rem;display:flex}.recommendation-controls label{color:var(--muted);gap:.2rem;font-size:.7rem;display:grid}.recommendation-controls select,.recommendation-controls input,.recommendation-table input{border:1px solid var(--border);background:var(--surface);min-height:32px;color:var(--text);border-radius:6px;padding:.32rem .45rem}.recommendation-freshness{background:var(--soft);color:var(--muted);border-radius:7px;flex-wrap:wrap;gap:.35rem .65rem;margin:.45rem 0;padding:.5rem .6rem;font-size:.68rem;display:flex}.recommendation-freshness b{color:var(--text)}.recommendation-warning{background:var(--purchase-manual-bg);border-left:3px solid #dc9a00;padding:.45rem .6rem;color:#875d00!important}.recommendation-table{border:1px solid var(--border);border-radius:7px;max-height:440px;overflow:auto}.recommendation-table table{border-collapse:collapse;width:100%;font-size:.73rem}.recommendation-table th{z-index:1;background:var(--soft);text-align:left;position:sticky;top:0}.recommendation-table th,.recommendation-table td{border-bottom:1px solid var(--border);vertical-align:top;padding:.42rem .5rem}.recommendation-table td small{max-width:280px;color:var(--muted);margin-top:.18rem;font-size:.63rem;line-height:1.3;display:block}.recommendation-table input{text-align:right;width:5.8rem}.recommendation-value{font:700 .82rem IBM Plex Mono,monospace;background:var(--purchase-danger-bg)!important;color:var(--purchase-danger)!important}.recommendation-status{background:var(--soft);white-space:nowrap;border-radius:999px;padding:.16rem .35rem;font-size:.66rem;display:inline-block}.recommendation-status.к-заказу{background:var(--purchase-danger-bg);color:var(--purchase-danger)}.recommendation-status.в-норме{background:var(--purchase-success-bg);color:var(--purchase-success)}@media (width<=620px){.recommendation-controls{flex-direction:column;align-items:stretch}}.sku-detail summary b{color:var(--accent);font:600 .72rem IBM Plex Mono,monospace}.sku-detail-content{padding:.8rem}.sku-detail-head{justify-content:space-between;align-items:start;gap:1rem;margin-bottom:.75rem;display:flex}.sku-detail-head p{color:var(--muted);margin:0;font-size:.76rem;line-height:1.45}.sku-detail-head p b{color:var(--text)}.sku-detail-head label{min-width:132px;color:var(--muted);gap:.25rem;font-size:.7rem;display:grid}.sku-detail-empty{background:var(--soft);color:var(--muted);border-radius:7px;margin:0;padding:.75rem;font-size:.76rem}.sku-detail-chart{border:1px solid var(--border);background:var(--soft);border-radius:8px;gap:.38rem;margin-bottom:.75rem;padding:.7rem;display:grid}.sku-detail-bar{grid-template-columns:6.8rem minmax(90px,1fr) 4.6rem 10.6rem;align-items:center;gap:.45rem;font-size:.71rem;display:grid}.sku-detail-bar>span,.sku-detail-bar small{color:var(--muted)}.sku-detail-bar b{text-align:right;font-family:IBM Plex Mono,monospace}.sku-detail-track{background:var(--surface);border-radius:999px;height:.48rem;overflow:hidden}.sku-detail-track i{border-radius:inherit;background:var(--accent);min-width:2px;height:100%;display:block}.sku-detail-table{border:1px solid var(--border);border-radius:8px;max-height:280px;overflow:auto}.sku-detail-table table{border-collapse:collapse;width:100%;min-width:690px;font-size:.73rem}.sku-detail-table th,.sku-detail-table td{border-bottom:1px solid var(--border);text-align:left;vertical-align:middle;padding:.45rem .55rem}.sku-detail-table th{background:var(--soft);color:var(--muted);font-size:.67rem;position:sticky;top:0}.sku-detail-table td:nth-child(3),.sku-detail-table td:nth-child(4){text-align:right;font-family:IBM Plex Mono,monospace}.sku-detail-table small{color:var(--muted);margin-top:.15rem;font-size:.65rem;display:block}.sku-detail-unknown{color:var(--muted);font-style:italic}@media (width<=700px){.sku-detail-head{display:grid}.sku-detail-head label{min-width:0}.sku-detail-bar{grid-template-columns:5.7rem minmax(70px,1fr) 3.9rem}.sku-detail-bar small{grid-column:2/-1;font-size:.64rem}}.what-if{border:1px solid var(--purchase-api-border);background:var(--purchase-api-bg);border-radius:8px;margin:0 0 .7rem;padding:.7rem}.what-if header{justify-content:space-between;align-items:start;gap:.6rem;display:flex}.what-if header div{gap:.2rem;display:grid}.what-if header b{font-size:.82rem}.what-if header small{max-width:660px;color:var(--muted);font-size:.69rem;line-height:1.35}.what-if header>span{background:var(--surface);color:var(--accent);white-space:nowrap;border-radius:999px;padding:.16rem .38rem;font:600 .68rem IBM Plex Mono,monospace}.what-if-controls{flex-wrap:wrap;align-items:end;gap:.55rem;margin-top:.6rem;display:flex}.what-if-controls label{color:var(--muted);gap:.2rem;font-size:.68rem;display:grid}.what-if-controls input,.what-if-controls select{border:1px solid var(--purchase-api-border);background:var(--surface);min-height:32px;color:var(--text);border-radius:6px;padding:.32rem .45rem}.what-if-controls input{width:135px}.what-if-hint,.what-if-active{margin:.55rem 0 0;font-size:.7rem}.what-if-hint{color:var(--muted)}.what-if-active{color:var(--purchase-success);font-weight:600}.scenario-row td{background:color-mix(in srgb,var(--purchase-api-bg) 50%,var(--surface))!important}.scenario-increase{color:var(--purchase-danger);font-family:IBM Plex Mono,monospace}.scenario-decrease{color:var(--purchase-success);font-family:IBM Plex Mono,monospace}.recommendation-table td:nth-child(12){min-width:96px}.recommendation-table td:nth-child(12) small{white-space:nowrap}@media (width<=620px){.what-if-controls{flex-direction:column;align-items:stretch}.what-if-controls input{width:100%}}.daily-refresh{background:var(--soft);color:var(--muted);border-radius:7px;flex-wrap:wrap;align-items:center;gap:.35rem;margin:.5rem 0;padding:.45rem .6rem;font-size:.69rem;display:flex}.daily-refresh b{color:var(--text)}.daily-refresh.success{background:var(--purchase-success-bg);color:var(--purchase-success)}.daily-refresh.partial,.daily-refresh.failed{background:var(--purchase-danger-bg);color:var(--purchase-danger)}.daily-refresh small{width:100%;font-size:.64rem}.velocity-availability-source,.velocity-onec-unknown{color:var(--muted)}.velocity-absence{color:var(--purchase-danger);background:color-mix(in srgb,var(--purchase-danger) 8%,transparent);font-weight:700}.purchase-grid{position:relative}.purchase-fullscreen{z-index:20;border:1px solid var(--border);background:var(--surface);width:34px;height:34px;color:var(--text);cursor:pointer;border-radius:8px;font:700 1.1rem/1 inherit;position:absolute;top:.55rem;right:.55rem;box-shadow:0 2px 8px #0f172a20}.purchase-fullscreen:hover{border-color:var(--accent);background:var(--soft);color:var(--accent)}.purchase-grid-expanded{z-index:100;border-radius:12px;height:calc(100dvh - 1rem);max-height:none;position:fixed;inset:.5rem;box-shadow:0 18px 60px #0006}.purchase-grid-expanded table{min-height:100%}@media (width<=700px){.purchase-grid-expanded{border-radius:0;height:100dvh;inset:0}.purchase-grid-expanded .purchase-fullscreen{top:.45rem;right:.45rem}}.master-catalog{border:1px solid var(--border);background:var(--surface);border-radius:9px;margin:0 0 .75rem;overflow:hidden}.master-catalog>summary{cursor:pointer;background:var(--soft);justify-content:space-between;padding:.65rem .75rem;font-size:.82rem;font-weight:700;display:flex}.master-catalog>summary span{color:var(--muted);font:400 .7rem IBM Plex Mono,monospace}.master-catalog-content{padding:.75rem}.master-catalog-content>p{color:var(--muted);margin:.05rem 0 .7rem;font-size:.76rem}.master-notice{color:var(--accent)!important}.master-forms{grid-template-columns:repeat(2,minmax(280px,1fr));gap:.65rem;display:grid}.master-forms form{border:1px solid var(--border);background:var(--soft);border-radius:7px;grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem;padding:.65rem;display:grid}.master-forms b{grid-column:1/-1;font-size:.78rem}.master-forms input,.master-forms select,.master-unmatched select{background:var(--surface);min-width:0;color:var(--text);border:1px solid var(--border);border-radius:5px;padding:.33rem .4rem}.master-forms .save{grid-column:1/-1;justify-self:start}.master-unmatched,.master-list{margin-top:.7rem}.master-unmatched h3,.master-list h3{margin:0 0 .4rem;font-size:.82rem}.master-unmatched>div{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:.6rem;padding:.38rem .1rem;font-size:.75rem;display:flex}.master-unmatched select{max-width:330px}.master-list{overflow:auto}.master-list table{border-collapse:collapse;width:100%;font-size:.74rem}.master-list th,.master-list td{border-bottom:1px solid var(--border);text-align:left;padding:.38rem .45rem}.master-list th{color:var(--muted);font-weight:600}.master-list td:last-child{text-align:right}@media (width<=700px){.master-forms{grid-template-columns:1fr}.master-unmatched>div{flex-direction:column;align-items:stretch}.master-unmatched select{max-width:none}}.warehouse-catalog{border:1px solid var(--border);background:var(--surface);border-radius:9px;margin:0 0 .75rem;overflow:hidden}.warehouse-catalog>summary{cursor:pointer;background:var(--soft);justify-content:space-between;padding:.65rem .75rem;font-size:.82rem;font-weight:700;display:flex}.warehouse-catalog>summary span{color:var(--muted);font:400 .7rem IBM Plex Mono,monospace}.warehouse-content{padding:.75rem}.warehouse-content>p{color:var(--muted);margin:.05rem 0 .7rem;font-size:.76rem}.warehouse-notice{color:var(--accent)!important}.warehouse-create{border:1px solid var(--border);background:var(--soft);border-radius:7px;grid-template-columns:1.4fr 1.2fr 1fr auto;align-items:end;gap:.4rem;padding:.65rem;display:grid}.warehouse-create b{grid-column:1/-1;font-size:.78rem}.warehouse-create input,.warehouse-create select,.warehouse-table input,.warehouse-table select{background:var(--surface);min-width:0;color:var(--text);border:1px solid var(--border);font:inherit;border-radius:5px;padding:.33rem .4rem}.warehouse-table{margin-top:.7rem;overflow:auto}.warehouse-table table{border-collapse:collapse;width:100%;font-size:.74rem}.warehouse-table th,.warehouse-table td{border-bottom:1px solid var(--border);text-align:left;padding:.38rem .45rem}.warehouse-table th{color:var(--muted);font-weight:600}.warehouse-table td:first-child{min-width:230px}.warehouse-table td:first-child input{width:100%}.warehouse-table small{color:var(--muted);margin-top:.2rem;font-family:IBM Plex Mono,monospace;display:block}.warehouse-disabled{opacity:.58}.warehouse-enabled{align-items:center;gap:.35rem;display:flex}@media (width<=700px){.warehouse-create{grid-template-columns:1fr}.warehouse-table td:first-child{min-width:180px}}
