:root{--ink:#1c2825;--muted:#75817c;--line:#e5e9e5;--paper:#f4f6f2;--white:#fff;--green:#3b9073;--blue:#8fb2d8;--amber:#eeb56a;--font:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--font);font-size:14px}button,input,select{font:inherit}button,a,input,select{outline-offset:4px}button{min-height:40px;padding:9px 15px;border:1px solid var(--line);border-radius:9px;background:white;color:var(--ink);cursor:pointer}button:hover{border-color:#b4c9be;background:#f7faf7}button:disabled{opacity:.55;cursor:wait}a{color:inherit}h1,h2,p{margin:0}h1{font-size:28px;letter-spacing:-1px;font-weight:650}h2{font-size:18px;font-weight:650;letter-spacing:-.45px}.shell{max-width:1920px;margin:auto;padding:28px;display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:26px}main{min-width:0}.heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:26px;gap:20px}.brand{display:flex;gap:14px;align-items:center}.brand-icon,.avatar{display:grid;place-items:center;font-weight:700;background:var(--ink);color:white;border-radius:15px}.brand-icon{width:48px;height:48px;font-size:28px}.eyebrow{font-size:10px;letter-spacing:1.6px;line-height:1.7;font-weight:650;color:var(--muted)}.heading-actions{display:flex;gap:14px;align-items:center}.chat-shortcut{display:none}.badge{font-size:11px;white-space:nowrap;background:#edf2ec;border:1px solid #e2e8de;border-radius:7px;padding:6px 9px;color:#596a60}.panel{border:1px solid var(--line);border-radius:15px;background:white;padding:24px;margin-bottom:18px}.filters{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap;padding:18px 20px}.filters label{display:flex;flex-direction:column;font-size:11px;color:var(--muted);gap:6px;flex:1;min-width:130px}.filters label:first-child{flex:1.3}input,select{background:white;min-height:40px;padding:8px 11px;border:1px solid var(--line);border-radius:8px;color:var(--ink);width:100%;min-width:0}.primary{background:var(--ink);color:white;border-color:var(--ink);font-weight:550}.primary:hover{background:#32473d;color:white}.link-button{display:inline-block;padding:12px 16px;border-radius:8px;text-decoration:none}.presets{display:flex;gap:6px;flex-basis:100%;padding-top:2px;flex-wrap:wrap}.presets button{font-size:11px;border-color:transparent;min-height:32px;padding:6px 10px;color:var(--muted)}.presets .active{background:#eaf1e8;color:#344d3d}.presets #refresh{margin-left:auto}.status{min-height:20px;margin:0 4px 12px;color:var(--muted);font-size:11px}.status.error{color:#a1513c}.metrics{display:grid;grid-template-columns:1.2fr 1fr 1fr .9fr;gap:12px;margin-bottom:18px}.metric{position:relative;background:white;border:1px solid var(--line);border-radius:13px;padding:19px 18px;overflow:hidden}.metric-name{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:5px}.metric strong{font-size:clamp(20px,1.65vw,31px);font-weight:650;letter-spacing:-1px;display:block;margin:13px 0 7px;font-variant-numeric:tabular-nums}.metric p{font-size:10px;color:var(--muted);line-height:1.6;position:relative;z-index:1}.featured{background:#e8f0df;border-color:#dce6d0}.featured .metric-name{color:#4a6044}.tiny-label{font-size:9px;padding:2px 5px;background:#dae6ce;border-radius:4px}.metric-accent{position:absolute;right:14px;bottom:8px;font-size:40px;color:#bacbaa;opacity:.8}.panel-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:17px}.panel-heading h2{margin-top:4px}.panel-heading p{font-size:11px;color:var(--muted);margin-top:6px;line-height:1.5}.legend{display:flex;gap:16px;flex-wrap:wrap;font-size:10px;color:#5f6e66;margin-bottom:12px}.legend span{display:flex;align-items:center;gap:6px}.dot{display:inline-block;width:8px;height:8px;border-radius:2px}.dot.cost{background:var(--blue)}.dot.profit{background:var(--green)}.dot.bk{background:var(--amber);border:1px dashed #9c7136}.dot.revenue{background:var(--ink);border-radius:100%}.chart-scroll{overflow:auto;overscroll-behavior-inline:contain}.chart-scroll svg{display:block;width:100%;min-width:560px;height:auto}.chart-scroll .long{width:var(--chart-width);max-width:none}.chart-footer{display:flex;justify-content:space-between;gap:14px;font-size:10px;color:var(--muted);line-height:1.6;margin-top:7px}.chart-total{font-size:24px;font-weight:600;letter-spacing:-.5px;color:var(--green);padding-top:6px}.footnote{font-size:10px;color:var(--muted);line-height:1.75;margin-top:10px}.daily-details{margin-top:14px;font-size:11px}summary{cursor:pointer;color:#637268;padding:8px 0;min-height:35px}.table-scroll{overflow:auto}table{border-collapse:collapse;white-space:nowrap;width:100%;font-size:11px;text-align:right;font-variant-numeric:tabular-nums}th,td{padding:10px 12px;border-bottom:1px solid var(--line)}th{font-weight:550;color:var(--muted)}th:first-child,td:first-child{text-align:left}.two-up{display:grid;grid-template-columns:1fr 1fr;gap:18px}.two-up .panel{min-width:0}.category-head{display:flex;gap:22px;align-items:center;margin:12px 0 20px}.donut{width:116px;min-width:116px;height:116px}.category-head strong{font-size:19px;font-weight:600;display:block}.category-head p{font-size:10px;color:var(--muted);margin-top:6px;line-height:1.5}.category-row{font-size:11px;padding:8px 0}.category-label{display:flex;justify-content:space-between;gap:8px}.category-label span:first-child{overflow-wrap:anywhere}.category-label strong{font-weight:550;white-space:nowrap}.track{height:4px;background:#f1f4f0;border-radius:4px;margin-top:7px;overflow:hidden}.track span{height:100%;display:block;border-radius:4px;background:var(--green);width:var(--size)}.category-extra{margin-top:8px}.store-summary{display:flex;gap:18px}.store-cell{padding:13px 16px;background:#f7f9f5;flex:1;border-radius:10px}.store-cell h3{font-size:13px;margin:0 0 15px}.store-cell dl{display:grid;grid-template-columns:1fr auto;gap:10px;font-size:11px;margin:0}.store-cell dt{color:var(--muted)}.store-cell dd{margin:0;font-variant-numeric:tabular-nums}.problem-tabs{display:flex;gap:7px;flex-wrap:wrap}.problem-tabs button{font-size:11px;min-height:33px;border-color:transparent;padding:6px 10px}.problem-tabs [aria-selected=true]{background:#f4eee5;color:#7f6444}.warning{background:#f8eee0;border-color:#eedbbd;color:#977744}.problem{display:flex;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}.problem-marker{width:7px;height:7px;border-radius:50%;background:#d7a15a;margin-top:5px;flex-shrink:0}.problem h3{font-size:12px;font-weight:550;margin:0 0 5px}.problem p{font-size:10px;color:var(--muted);line-height:1.5}.problem:last-child{border-bottom:0}.empty{font-size:12px;line-height:1.8;color:var(--muted);padding:28px 0}.method-panel{font-size:11px;color:#667569;line-height:1.8}.method-panel p{margin:6px 0}.method-panel summary{font-weight:550}.source-row{margin-top:8px;border-top:1px solid var(--line);padding-top:8px}.footer{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);padding:0 5px 10px;gap:15px}.conversation{height:calc(100dvh - 56px);min-height:480px;position:sticky;top:28px;padding:0;display:flex;flex-direction:column;margin:0;overflow:hidden}.chat-heading{padding:21px 20px 18px;display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--line)}.avatar{width:36px;height:36px;border-radius:12px;font-size:21px}.chat-heading h2{font-size:14px;letter-spacing:0}.chat-heading p{font-size:10px;color:var(--muted);margin-top:4px}.chat-heading a{margin-left:auto;text-decoration:none;font-size:21px}.chat-topic{color:var(--muted);font-size:10px;padding:13px 20px;background:#fbfcfa;border-bottom:1px solid var(--line)}.chat-scroll{flex:1;min-height:0;overflow:auto;padding:18px 16px;overscroll-behavior:contain;scrollbar-width:thin}.chat-scroll>.empty{padding:25px}.chat-message{margin:0 0 18px}.chat-message .message-meta{font-size:9px;color:var(--muted);margin:0 2px 6px;display:flex;justify-content:space-between;gap:8px}.message-body{font-size:11px;line-height:1.75;background:#f2f5ef;border:1px solid #e9eee3;border-radius:3px 11px 11px 11px;padding:12px 13px;overflow-wrap:anywhere;white-space:pre-wrap}.chat-message.owner .message-body{background:#edf2f7;border-color:#e1e8f0;border-radius:11px 3px 11px 11px}.revision{font-size:9px;color:#a67948;margin-top:5px}.chat-footer{display:flex;justify-content:space-between;align-items:center;gap:8px;border-top:1px solid var(--line);padding:13px 15px;font-size:10px;background:white}.chat-footer button{font-size:10px;padding:7px 9px;min-height:33px}.chat-footer a{text-decoration:none;color:#406e56}.notice{border:1px solid #e7cf9e;border-radius:10px;background:#fff5de;color:#8b6b39;padding:13px 17px;font-size:11px;line-height:1.6;margin-bottom:18px}.login p{font-size:13px;line-height:1.7;margin:12px 0 20px;max-width:550px}.login button{margin-left:8px}[hidden]{display:none!important}
@media(min-width:1700px){.shell{grid-template-columns:minmax(0,1fr) 390px;gap:30px;padding:32px}.conversation{top:32px;height:calc(100dvh - 64px)}.panel{padding:28px}.conversation{padding:0}.metric strong{font-size:31px}}
@media(max-width:1200px){.shell{padding:20px;gap:18px;grid-template-columns:minmax(0,1fr) 290px}.conversation{top:20px;height:calc(100dvh - 40px)}.metrics{grid-template-columns:1fr 1fr}.metric strong{font-size:27px}.panel{padding:19px}.conversation{padding:0}.two-up{grid-template-columns:1fr}.heading-actions .badge{display:none}}
@media(max-width:850px){.shell{display:block;padding:20px;max-width:850px}.conversation{position:relative;top:auto;height:75dvh;min-height:480px;margin-top:25px}.chat-shortcut{display:block;font-size:11px;text-decoration:none}.two-up{grid-template-columns:1fr 1fr}.category-head{gap:12px}.donut{width:96px;min-width:96px;height:96px}.category-head strong{font-size:16px}.message-body{font-size:13px}.chat-heading h2{font-size:17px}.chat-message .message-meta{font-size:11px}.chat-topic,.chat-footer,.chat-footer button{font-size:12px}}
@media(max-width:580px){.shell{padding:18px 12px;padding-top:max(18px,env(safe-area-inset-top));padding-bottom:max(18px,env(safe-area-inset-bottom))}.heading{margin-bottom:19px;gap:8px}.brand{gap:10px}.brand-icon{height:40px;width:40px;font-size:25px;border-radius:12px}h1{font-size:22px}.eyebrow{font-size:9px}.panel{padding:17px;border-radius:12px}.filters{gap:10px}.filters label:first-child{flex-basis:100%}.filters label{min-width:105px}.filters>.primary{flex-basis:100%}.presets{gap:0}.presets button{font-size:10px;padding:6px 8px}.metrics{gap:9px}.metric{padding:15px 12px}.metric strong{font-size:23px;margin:12px 0 5px}.metric-name{font-size:10px;flex-wrap:wrap}.metric p{font-size:9px}.metric-accent{font-size:30px}.panel-heading{gap:10px}.panel-heading h2{font-size:16px}.legend{gap:9px;font-size:9px}.chart-footer{display:block;font-size:9px}.chart-footer span{display:block;margin-top:5px}.two-up{grid-template-columns:1fr;gap:0}.category-head{gap:20px}.donut{width:110px;min-width:110px;height:110px}.store-summary{display:block}.store-cell{margin-bottom:10px}.conversation{padding:0}.footer span{display:none}.chart-total{font-size:20px}.login button{margin:12px 0 0}.chat-shortcut{font-size:10px}.chart-scroll svg{min-width:520px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

[hidden]{display:none!important}.shell.auth-only{max-width:720px;grid-template-columns:minmax(0,1fr)}.auth-form{display:grid;gap:15px;margin:22px 0}.auth-form label{display:grid;gap:7px;font-size:12px;color:var(--muted)}.auth-form button{justify-self:start;min-width:150px}.login>p{color:var(--muted);line-height:1.7;margin-top:10px}.login-alternatives{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:20px}.login-alternatives a{padding-left:0}.heading-actions{flex-wrap:wrap;justify-content:flex-end}.heading-actions button{font-size:11px;padding:7px 10px;min-height:34px}@media(max-width:580px){.heading{flex-wrap:wrap}.heading-actions{justify-content:flex-start}.auth-form button{width:100%}.shell.auth-only{padding:16px}}

.load-actions{display:flex;gap:8px;align-items:center}.load-actions .primary{display:flex;align-items:center;gap:8px;min-width:135px;justify-content:center}.spinner{width:15px;height:15px;border:2px solid #ffffff65;border-top-color:white;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}#cancel-report{font-size:23px;line-height:1}.summary-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:18px;margin:22px 0}.summary-grid dt{font-size:11px;color:var(--muted)}.summary-grid dd{margin:10px 0;font-size:18px;font-weight:600;overflow-wrap:anywhere}.summary-grid small{font-size:10px;color:#977744}.chart-controls{display:flex;flex-wrap:wrap;gap:12px;margin:14px 0}.chart-controls label{display:grid;gap:5px;font-size:11px;color:var(--muted)}.chart-tooltip{position:fixed;z-index:1000;max-width:min(310px,calc(100vw - 24px));padding:10px 14px;border-radius:8px;background:#23392e;color:white;font-size:12px;line-height:1.6;pointer-events:none;box-shadow:0 4px 18px #0002}.chart-scroll svg :focus{outline:2px solid #406e56;outline-offset:3px}@media(max-width:850px){.summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:580px){.summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.load-actions{width:100%}.load-actions .primary{flex:1}.chart-controls select{max-width:100%}}@media(prefers-reduced-motion:reduce){.spinner{animation:none;border-style:dotted}}

#report-tabs{margin-bottom:12px}#report-tabs button[aria-pressed="true"]{background:#e3ecdf;color:#294a35}.stock-dot{background:#3b9073}#stock-warning{line-height:1.7}
