:root{color:#1c2b41;font-synthesis:none;-webkit-font-smoothing:antialiased;--bg:#f5f7fb;--surface:#fff;--surface2:#f1f4f9;--text:#1c2b41;--muted:#67758b;--border:#e2e7f0;--blue:#2359ac;--blue-soft:#eaf1fd;--green:#247052;--red:#b13e4c;--shadow:0 3px 18px #152d5210;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;background:#f5f7fb;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}:root[data-theme=dark]{--bg:#101722;--surface:#192333;--surface2:#202d40;--text:#ecf1f9;--muted:#a2b2c8;--border:#314057;--blue:#8bb6ff;--blue-soft:#253b5c;--green:#80d8b0;--red:#ff9ba5;--shadow:0 3px 18px #0002;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}@media (prefers-color-scheme:dark){:root[data-theme=system]{--bg:#101722;--surface:#192333;--surface2:#202d40;--text:#ecf1f9;--muted:#a2b2c8;--border:#314057;--blue:#8bb6ff;--blue-soft:#253b5c;--green:#80d8b0;--red:#ff9ba5;--shadow:0 3px 18px #0002;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}*{box-sizing:border-box}body{background:var(--bg);color:var(--text);margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{min-height:44px;color:inherit;background:0 0;border:0;border-radius:10px;justify-content:center;align-items:center;gap:8px;font-weight:600;line-height:1.3;display:inline-flex}button:disabled{opacity:.45;cursor:not-allowed}button:hover:not(:disabled){filter:brightness(.97)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,[role=button]:focus-visible{outline-offset:3px;outline:3px solid #6d9beb}h1,h2,h3,p{margin:0}h1{letter-spacing:-1.1px;font-size:31px;font-weight:720;line-height:1.2}h2{letter-spacing:-.4px;font-size:19px}h3{letter-spacing:-.2px;font-size:16px}p{line-height:1.6}small{font-size:12px;line-height:1.5}a{color:var(--blue)}.hint{margin:12px 0;font-size:13px;line-height:1.6}.positive{color:var(--green)!important}.negative{color:var(--red)!important}.right{text-align:right}.eyebrow{letter-spacing:1.8px;color:var(--blue);margin-bottom:9px;font-size:10px;font-weight:750}.primary{color:#fff;background:#2359ac;padding:12px 18px;box-shadow:0 3px 8px #2254a519}.secondary{background:var(--surface);border:1px solid var(--border);padding:10px 14px;font-size:13px}.text-button{color:var(--blue);padding:8px 4px;font-size:13px}.icon-button{flex-shrink:0;width:44px;height:44px}.avatar{background:var(--blue-soft);width:36px;min-height:36px;color:var(--blue);border:1px solid var(--border);border-radius:50%;font-size:13px}.wordmark{letter-spacing:3.5px;color:var(--blue);align-items:center;gap:12px;font-size:25px;font-weight:850;display:flex}.wordmark span{letter-spacing:2px;border-left:1px solid var(--border);color:var(--muted);padding-left:12px;font-size:9px;font-weight:650}.app-shell{max-width:1600px;min-height:100dvh;margin:auto}.app-content{margin-left:226px}.desktop-sidebar{background:var(--surface);border-right:1px solid var(--border);flex-direction:column;gap:9px;width:226px;padding:34px 22px;display:flex;position:fixed;top:0;bottom:0}.desktop-sidebar .wordmark{font-size:24px;display:block}.desktop-sidebar .wordmark span{letter-spacing:4px;border:0;padding:7px 0;font-size:9px;display:block}.sidebar-caption{color:var(--muted);margin:15px 0 26px;font-size:11px}.desktop-sidebar>button{color:var(--muted);justify-content:flex-start;padding:14px;font-size:14px;font-weight:550}.desktop-sidebar>button.selected{background:var(--blue-soft);color:var(--blue);font-weight:700}.sidebar-bottom{color:var(--muted);border-top:1px solid var(--border);align-items:center;gap:10px;margin-top:auto;padding-top:20px;font-size:11px;line-height:1.5;display:flex}.sidebar-bottom svg{flex-shrink:0}.topbar{background:var(--surface);border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;height:82px;padding:0 42px;display:flex}.topbar>.wordmark{visibility:hidden}.header-actions{align-items:center;gap:16px;display:flex}.date-label{color:var(--muted);font-size:12px}.connection-strip{color:var(--muted);cursor:pointer;align-items:center;gap:7px;min-height:36px;padding:4px 42px;font-size:11px;display:flex}.connection-strip svg:last-child{margin-left:0}.demo-banner{color:#302200;text-align:center;background:#e9b758;justify-content:center;align-items:center;gap:15px;padding:5px 12px;font-size:12px;font-weight:700;display:flex}.demo-banner button{min-height:36px;font-size:11px;text-decoration:underline}main{max-width:1374px;margin:auto;padding:22px 42px 50px}.page-title{justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px;display:flex}.page-title p:not(.eyebrow){color:var(--muted);margin-top:9px;font-size:13px}.period-bar{justify-content:space-between;align-items:center;gap:14px;margin:18px 0;display:flex}.period-bar label{color:var(--muted);align-items:center;gap:10px;font-size:12px;display:flex}.period-bar input,.period-bar select{border:1px solid var(--border);background:var(--surface);min-height:38px;color:var(--text);border-radius:8px;max-width:170px;padding:6px 10px;font-size:12px}.period-bar>span{font-size:11px}.dashboard-top{grid-template-columns:1fr 1.12fr;gap:20px;display:grid}.result-card{color:#fff;background:linear-gradient(125deg,#163c74,#1b4e91);border-radius:16px;flex-direction:column;min-height:238px;padding:25px;display:flex;position:relative;overflow:hidden;box-shadow:0 10px 30px #183f7719}.result-card:after{content:"";pointer-events:none;border:1px solid #ffffff0e;border-radius:50%;width:230px;height:230px;position:absolute;top:-85px;right:-115px;box-shadow:0 0 0 32px #ffffff04,0 0 0 64px #ffffff03}.result-card-top{color:#d7e2f4;justify-content:space-between;font-size:13px;display:flex}.result-card>strong{letter-spacing:-1.2px;overflow-wrap:anywhere;margin:20px 0 9px;font-size:39px;font-weight:650;line-height:1.2;display:block}.result-card-footer{border-top:1px solid #ffffff24;justify-content:space-between;align-items:flex-end;gap:14px;margin-top:21px;padding-top:15px;display:flex}.result-card-footer div{flex-direction:column;gap:5px;display:flex}.result-card-footer span{color:#c3d2e8;font-size:10px}.result-card-footer b{font-size:16px;font-weight:550}.result-card-footer button{white-space:nowrap;min-height:35px;padding:0;font-size:10px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.stat{background:var(--surface);border:1px solid var(--border);text-align:left;box-shadow:var(--shadow);border-radius:13px;flex-direction:column;justify-content:center;align-items:flex-start;gap:10px;min-width:0;padding:21px;display:flex}.stat>span{color:var(--muted);font-size:12px;font-weight:500}.stat>strong{letter-spacing:-.7px;overflow-wrap:anywhere;max-width:100%;font-size:25px;font-weight:650}.stat>small{color:var(--muted);font-size:10px;font-weight:400}.quick-actions{grid-template-columns:repeat(4,1fr);gap:12px;margin:22px 0 32px;display:grid}.quick-actions button{text-align:left;background:var(--surface);border:1px solid var(--border);justify-content:flex-start;gap:12px;padding:13px;font-size:12px}.quick-actions span{color:var(--blue);background:var(--blue-soft);border-radius:9px;flex-shrink:0;place-items:center;width:34px;height:34px;display:grid}.quick-actions svg{width:18px}.section{margin:26px 0}.section-heading{justify-content:space-between;align-items:center;gap:12px;margin-bottom:15px;display:flex}.count{color:var(--blue);background:var(--blue-soft);border-radius:8px;padding:4px 9px;font-size:11px}.two-columns{grid-template-columns:1.1fr 1fr;gap:24px;display:grid}.two-columns .section{margin-top:0}.card,.list{background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);border-radius:13px}.card{padding:20px}.list{overflow:hidden}.row{text-align:left;border-bottom:1px solid var(--border);border-radius:0;align-items:center;gap:13px;width:100%;min-height:75px;padding:17px;line-height:1.5;display:flex}.row:last-child{border-bottom:0}.row>div:not(.right){flex:1;min-width:0}.row>div>strong{overflow-wrap:anywhere;font-size:13px;font-weight:650;display:block}.row small{color:var(--muted);margin-top:3px;font-size:11px;font-weight:400;display:block}.row>b{white-space:nowrap;font-size:14px}.row-icon{width:39px;height:39px;color:var(--blue);background:var(--blue-soft);border-radius:10px;flex-shrink:0;place-items:center;display:grid}.row-icon.warn{color:#91612b;background:#fff0dd}.quiet-card,.empty{text-align:center;border:1px dashed var(--border);background:var(--surface);border-radius:14px;padding:40px 22px}.quiet-card>svg{color:var(--green);margin-bottom:12px}.quiet-card p,.empty p{color:var(--muted);max-width:370px;margin:10px auto 20px;font-size:13px}.empty-icon{background:var(--blue-soft);width:66px;height:66px;color:var(--blue);border-radius:20px;place-items:center;margin:0 auto 20px;display:grid}.empty h3{font-size:20px}.demo-link{margin-top:10px}.age-card{padding:20px}.age-row{color:var(--muted);flex-wrap:wrap;justify-content:space-between;gap:9px;margin-bottom:18px;font-size:11px;display:flex}.age-row b{color:var(--text);font-weight:600}.age-row>div{background:var(--surface2);border-radius:5px;width:100%;height:5px;overflow:hidden}.age-row i{background:#6e96cd;border-radius:5px;height:100%;display:block}.age-card>small{color:var(--muted);font-size:10px}.bottom-stats .stat{padding:18px}.bottom-stats .stat strong{font-size:22px}.bottom-nav{display:none}.stock-tools{gap:12px;display:flex}.search{background:var(--surface);border:1px solid var(--border);color:var(--muted);border-radius:10px;flex:1;align-items:center;gap:10px;min-width:0;padding:0 13px;display:flex}.search input{outline-offset:0;background:0 0;width:100%;min-height:44px;font-size:13px;border:0!important}.chips{scrollbar-width:none;gap:8px;margin:17px 0;padding:4px 0 10px;display:flex;overflow:auto}.chips button{border:1px solid var(--border);background:var(--surface);white-space:nowrap;color:var(--muted);border-radius:20px;min-height:38px;padding:9px 16px;font-size:12px}.product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;display:grid}.product-card{border:1px solid var(--border);background:var(--surface);text-align:left;box-shadow:var(--shadow);border-radius:14px;padding:0;display:block;overflow:hidden}.product-image{background:var(--surface2);color:#8397b3;place-items:center;height:130px;display:grid;position:relative}.product-image img{object-fit:cover;width:100%;height:100%}.condition{background:var(--surface);color:var(--muted);border:1px solid var(--border);border-radius:5px;padding:5px 8px;font-size:9px;font-weight:500;position:absolute;top:10px;left:10px}.product-info{padding:16px}.product-info>p{letter-spacing:.2px;color:var(--muted);margin-bottom:7px;font-size:10px;font-weight:400}.product-info h3{min-height:40px;font-size:15px;line-height:1.4}.product-prices{justify-content:space-between;gap:8px;padding:18px 0;display:flex}.product-prices span{color:var(--muted);font-size:10px;font-weight:400}.product-prices strong{color:var(--text);margin-top:5px;font-size:15px;font-weight:650;display:block}.product-footer{color:var(--muted);border-top:1px solid var(--border);justify-content:space-between;align-items:center;padding-top:12px;font-size:9px;font-weight:400;display:flex}.sales-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:20px;display:grid}.sale-row .right{min-width:105px}.sale-row b{font-size:14px}.badge{background:var(--surface2);color:var(--muted);border-radius:5px;align-items:center;margin-top:6px;padding:3px 7px;font-size:10px;font-weight:500;display:inline-flex}.badge.green{color:#236544;background:#e5f3eb}.toolbar{flex-wrap:wrap;gap:10px;margin:18px 0;display:flex}.more-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.more-card{border:1px solid var(--border);background:var(--surface);text-align:left;box-shadow:var(--shadow);justify-content:flex-start;gap:16px;padding:21px}.more-card>div{flex:1}.more-card h3{margin-bottom:5px;font-size:14px}.more-card p{color:var(--muted);font-size:11px;font-weight:400}.local-note{border:1px solid var(--border);color:var(--muted);border-radius:12px;gap:14px;margin:30px 0 16px;padding:20px;font-size:12px;display:flex}.local-note svg{color:var(--blue);flex-shrink:0}.local-note strong{color:var(--text);font-size:13px}.local-note p{margin-top:5px}.version{color:var(--muted);margin:24px 0 0;font-size:10px}dialog{border:1px solid var(--border);background:var(--surface);width:min(660px,100vw - 28px);max-height:calc(100dvh - 40px);color:var(--text);overscroll-behavior:contain;border-radius:18px;padding:0;overflow:auto;box-shadow:0 22px 90px #0004}.modal-head{z-index:2;background:var(--surface);border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:13px 20px;display:flex;position:sticky;top:0}.modal-body{padding:22px}.modal-body h3{margin:20px 0 12px}.modal-body>p{margin-bottom:15px}.field{flex-direction:column;gap:7px;min-width:0;margin:0 0 17px;display:flex}.field>span{font-size:12px;font-weight:600;line-height:1.5}.field small{color:var(--muted);font-size:11px}input:not([type=checkbox]):not([type=radio]),select,textarea{color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:9px;width:100%;min-width:0;max-width:100%;min-height:46px;padding:10px 12px;font-size:16px}input[type=date],input[type=month]{appearance:none;min-width:0}textarea{resize:vertical;min-height:85px}input[type=file]{white-space:normal;padding:10px;font-size:12px}input[type=checkbox]{accent-color:#2359ac;flex-shrink:0;width:20px;height:20px}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:16px;display:grid}.form-footer{border-top:1px solid var(--border);margin:24px 0 5px;padding-top:20px}.form-footer .primary{width:100%;min-height:48px}.check{cursor:pointer;align-items:center;gap:10px;min-height:44px;margin:4px 0 15px;font-size:12px;line-height:1.5;display:flex}.notice{background:var(--blue-soft);border:1px solid var(--border);color:var(--text);border-radius:11px;align-items:flex-start;gap:10px;margin:14px 0;padding:15px;font-size:12px;line-height:1.6;display:flex}.notice svg{flex-shrink:0;margin-top:2px}.notice.danger{color:var(--red);background:#af354714;border-color:#bc496549}.update{flex-wrap:wrap;margin:10px 25px}.summary{border-top:1px solid var(--border);border-bottom:1px solid var(--border);grid-template-columns:1fr auto;align-items:baseline;gap:15px 12px;margin:18px 0;padding:18px 0;display:grid}.summary dt{color:var(--muted);font-size:12px;line-height:1.5}.summary dd{text-align:right;overflow-wrap:anywhere;margin:0;font-size:14px;font-weight:650}.summary dt:last-of-type,.summary dd:last-of-type{border-top:1px solid var(--border);color:var(--text);padding-top:15px}fieldset{border:1px solid var(--border);background:var(--bg);border-radius:12px;margin:20px 0;padding:17px 15px 8px}legend{padding:0 7px;font-size:12px;font-weight:650}.picker{gap:10px;margin:15px 0;display:flex}.picker select{flex:1}details{border:1px solid var(--border);overflow-wrap:anywhere;border-radius:9px;margin:12px 0;padding:8px 12px}summary{cursor:pointer;min-height:35px;padding:8px 0;font-size:12px;font-weight:600;line-height:1.5}details p{margin:10px 0;font-size:12px;line-height:1.7}pre{white-space:pre-wrap;word-break:break-word;max-width:100%;font-size:10px}.unit-list{border:1px solid var(--border);border-radius:10px;max-height:300px;margin:10px 0 20px;overflow-y:auto}.unit-row{border-bottom:1px solid var(--border);cursor:pointer;align-items:center;gap:10px;padding:13px;display:flex}.unit-row>div{flex:1;min-width:0}.unit-row b{overflow-wrap:anywhere;font-size:11px;display:block}.unit-row small{color:var(--muted);font-size:10px;display:block}.unit-row strong{white-space:nowrap;font-size:12px}.detail-title{justify-content:space-between;align-items:center;gap:12px;display:flex}.external{align-items:center;gap:8px;min-height:44px;font-size:13px;display:flex}.calculator-result{background:var(--blue-soft);border-radius:12px;margin-top:20px;padding:24px}.calculator-result>span{color:var(--muted);font-size:13px}.calculator-result>strong{color:var(--blue);margin:12px 0;font-size:33px;display:block}.calculator-result p{font-size:12px}.calculator-result small{color:var(--muted);margin-top:14px;display:block}.restore-preview{background:var(--bg);margin-top:20px}.restore-preview p{font-size:12px}.help h3{margin-top:25px}.help p,.help li{font-size:14px;line-height:1.8}.help ol{padding-left:23px}.help li{padding-bottom:12px}.toast{color:#fff;z-index:20;background:#173c73;border-radius:12px;align-items:center;gap:10px;width:max-content;max-width:calc(100vw - 28px);padding:13px 15px;font-size:12px;line-height:1.5;display:flex;position:fixed;bottom:26px;left:50%;transform:translate(-50%);box-shadow:0 6px 30px #0003}.toast>svg{flex-shrink:0}.toast button{flex-shrink:0;width:30px;min-height:30px;padding:0}.loading,.fatal{text-align:center;flex-direction:column;align-items:center;gap:22px;max-width:550px;margin:auto;padding:90px 20px;display:flex}.spin{animation:1.2s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@media (width>=1600px){.desktop-sidebar{left:calc(50vw - 800px)}}@media (width<=1150px){.desktop-sidebar{width:190px;padding:30px 17px}.app-content{margin-left:190px}main{padding:20px 25px 45px}.topbar{padding:0 25px}.connection-strip{padding-left:25px}.dashboard-top{grid-template-columns:1fr 1fr;gap:15px}.result-card{padding:22px}.result-card>strong{font-size:32px}.stat{padding:18px}.stat>strong{font-size:22px}.quick-actions button{text-align:center;flex-direction:column;align-items:center;gap:7px}.product-grid,.bottom-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=760px){.desktop-sidebar{display:none}.app-content{margin-left:0}.topbar{height:70px;padding:env(safe-area-inset-top) 20px 0}.topbar>.wordmark{visibility:visible;font-size:23px}.header-actions{gap:7px}.date-label{display:none}.connection-strip{min-height:34px;padding:6px 20px;font-size:10px}.connection-strip svg{width:12px}.wordmark span{letter-spacing:1.5px;padding-left:9px;font-size:8px}.wordmark{gap:9px}.avatar{width:31px;min-height:31px}.header-actions .icon-button{width:36px;height:36px;min-height:36px}.desktop-only{display:none!important}main{padding:20px 20px calc(105px + env(safe-area-inset-bottom));width:100%}.page-title{align-items:flex-start;margin-bottom:24px}.page-title>button{flex-shrink:0;min-height:43px;margin-top:18px;padding:10px 13px;font-size:12px}.eyebrow{letter-spacing:1.5px;margin-bottom:8px;font-size:9px}h1{letter-spacing:-1px;font-size:29px}.page-title p:not(.eyebrow){max-width:290px;font-size:12px;line-height:1.5}.period-bar{margin:15px 0}.period-bar>span{font-size:9px}.period-bar label{gap:7px;font-size:11px}.period-bar input,.period-bar select{width:auto;max-width:155px;min-height:38px;padding:7px;font-size:12px}.dashboard-top{flex-direction:column;gap:15px;display:flex}.result-card{border-radius:15px;min-height:226px;padding:22px}.result-card-top{font-size:12px}.result-card>strong{margin:17px 0 8px;font-size:37px}.result-card>p{max-width:none;font-size:10px}.result-card-footer{margin-top:21px;padding-top:15px}.result-card-footer b{font-size:16px}.result-card-footer button{font-size:10px}.stats-grid{gap:12px}.stat{border-radius:12px;gap:9px;min-height:109px;padding:17px 15px}.stat>span{font-size:11px}.stat>strong{letter-spacing:-.7px;font-size:23px}.stat>small{font-size:9px;line-height:1.4}.quick-actions{gap:8px;margin:20px 0 28px}.quick-actions button{background:0 0;border:0;gap:8px;padding:0;font-size:10px;font-weight:550;line-height:1.45}.quick-actions span{background:var(--surface);border:1px solid var(--border);border-radius:13px;width:44px;height:44px}.quick-actions svg{width:20px}.two-columns{display:block}.section{margin:24px 0}.section-heading h2{font-size:17px}.bottom-stats .stat{padding:17px 15px}.bottom-stats .stat strong{font-size:21px}.empty{padding:30px 20px}.empty h3{font-size:18px}.empty p{font-size:12px}.empty-icon{border-radius:18px;width:58px;height:58px;margin-bottom:17px}.empty .primary{min-height:46px;font-size:13px}.demo-link{width:100%;margin-top:9px;font-size:12px;display:flex}.bottom-nav{z-index:5;background:var(--surface);border-top:1px solid var(--border);padding:8px 6px calc(8px + env(safe-area-inset-bottom));justify-content:space-around;display:flex;position:fixed;bottom:0;left:0;right:0;box-shadow:0 -3px 20px #10254a04}.bottom-nav button{width:20%;min-width:48px;min-height:48px;color:var(--muted);flex-direction:column;align-items:center;gap:5px;font-size:9px;font-weight:500;display:flex;position:relative}.bottom-nav button.active{color:var(--blue);font-weight:700}.bottom-nav button.active:before{content:"";background:var(--blue);border-radius:4px;width:23px;height:3px;position:absolute;top:-9px}.stock-tools{gap:8px}.stock-tools>.secondary{padding:9px 11px;font-size:11px}.search{gap:7px;padding:0 10px}.search input{font-size:12px}.chips{gap:7px;margin:14px 0}.chips button{min-height:38px;padding:8px 13px;font-size:11px}.product-grid{grid-template-columns:1fr;gap:13px}.product-card{align-items:stretch;display:flex}.product-image{flex-shrink:0;width:100px;height:auto;min-height:160px}.product-image>svg{width:28px}.product-image img{height:100%;position:absolute}.condition{padding:4px 6px;font-size:8px;top:9px;left:9px}.product-info{flex:1;min-width:0;padding:14px 12px}.product-info h3{min-height:0;font-size:14px}.product-info>p{font-size:9px;line-height:1.4}.product-prices{gap:5px;padding:13px 0}.product-prices strong{font-size:14px}.product-prices span{font-size:9px}.product-footer{padding-top:10px;font-size:8px;line-height:1.5}.product-footer svg{flex-shrink:0;width:14px}.sales-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.sales-summary>.stat:last-child{grid-column:1/-1;grid-template-columns:1fr auto;gap:6px 10px;min-height:78px;display:grid}.sales-summary>.stat:last-child strong{font-size:23px}.sales-summary>.stat:last-child small{grid-column:1/-1}.row{gap:10px;padding:14px}.row>div>strong{font-size:12px}.row small{font-size:10px}.row>b{font-size:12px}.row-icon{border-radius:9px;width:35px;height:35px}.row-icon svg{width:18px}.sale-row{flex-wrap:wrap}.sale-row .right{min-width:95px}.sale-row .right b{font-size:12px}.sale-row .right small{font-size:9px}.sale-row>.row-icon{display:none}.badge{font-size:9px}.more-grid{grid-template-columns:1fr;gap:10px}.more-card{border-radius:12px;gap:12px;padding:17px 15px}.more-card h3{font-size:13px}.more-card p{font-size:10px}.local-note{gap:12px;padding:17px}.local-note strong{font-size:12px}.local-note p{font-size:11px}.toast{bottom:calc(82px + env(safe-area-inset-bottom));width:calc(100vw - 28px);padding:12px;font-size:11px}.toast button{margin-left:auto}dialog{border-radius:16px;width:calc(100vw - 16px);max-height:calc(100dvh - 20px)}.modal-head{padding:10px 16px}.modal-head h2{font-size:16px}.modal-body{padding:18px 16px}.form-grid{gap:0 12px}.field>span,.summary dt{font-size:11px}.summary dd{font-size:13px}.form-footer{padding-bottom:env(safe-area-inset-bottom)}.unit-row{gap:7px;padding:12px 9px}.unit-row b{font-size:10px}.unit-row strong{font-size:11px}.unit-row small{font-size:9px}.toolbar{gap:8px}.toolbar button{font-size:11px}.demo-banner{gap:7px;padding:3px 10px;font-size:9px}.demo-banner button{font-size:9px}.notice{font-size:11px}.help p,.help li{font-size:13px}.calculator-result>strong{font-size:30px}}@media (width<=350px){main,.topbar{padding-left:14px;padding-right:14px}.connection-strip{padding-left:14px}.wordmark{font-size:21px!important}.wordmark span{font-size:7px}.stat{padding:14px 12px}.stat>strong{font-size:20px}.result-card>strong{font-size:32px}.result-card{padding:20px}.result-card-footer{gap:8px}.result-card-footer button{font-size:9px}.product-image{width:78px}.form-grid{grid-template-columns:1fr}.sales-summary>.stat:last-child strong{font-size:20px}.bottom-nav button{font-size:8px}.page-title>button{padding:9px;font-size:11px}h1{font-size:27px}}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}.chips button,.header-actions .icon-button,.avatar,.period-bar input,.period-bar select{min-height:44px}.header-actions .icon-button,.avatar{min-width:44px}.main-actions{grid-template-columns:1fr 1fr 1fr;gap:12px;margin:20px 0 26px;display:grid}.main-actions button{flex-direction:column;min-height:65px;font-size:13px}.flow-intro{color:var(--muted);margin-bottom:22px;font-size:14px}.flow-progress{justify-content:space-between;gap:12px;padding:10px 0 20px;font-size:13px;display:flex}.flow-progress span{color:var(--muted);font-size:11px}.quick-item{border:1px solid var(--border);background:var(--bg);border-radius:14px;margin:15px 0;padding:16px}.quick-item .row{border:0;justify-content:space-between;min-height:40px;padding:0 0 10px}.quantity-line{justify-content:space-between;align-items:center;gap:10px;margin:10px 0 16px;display:flex}.stepper{border:1px solid var(--border);background:var(--surface);border-radius:10px;align-items:center;display:flex;overflow:hidden}.stepper button{min-width:48px;min-height:48px;color:var(--blue)}.stepper input{text-align:center;-moz-appearance:textfield;border:0!important;width:58px!important;padding:8px!important}.stepper input::-webkit-inner-spin-button{appearance:none}.payment-choices{gap:9px;margin:15px 0;display:grid}.payment-choices label{border:1px solid var(--border);cursor:pointer;border-radius:11px;align-items:center;gap:10px;min-height:52px;padding:15px;font-size:14px;display:flex}.payment-choices label.selected{border-color:var(--blue);background:var(--blue-soft)}.payment-choices input{width:20px;height:20px;accent-color:var(--blue)}.live-total{background:var(--blue-soft);border-radius:12px;justify-content:space-between;align-items:center;margin:20px 0;padding:18px;display:flex}.live-total span{font-size:12px}.live-total strong{font-size:25px}.flow-action{z-index:2;padding:14px 0 max(14px,env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--border);position:sticky;bottom:0}.flow-action button{width:100%;min-height:52px}.profit-highlight{background:var(--blue-soft);border-radius:14px;margin:20px 0;padding:22px}.profit-highlight>span{font-size:14px}.profit-highlight strong{color:var(--blue);margin:10px 0;font-size:38px;display:block}.profit-highlight small{color:var(--muted);font-size:12px;display:block}.review-products{padding:10px 0;font-size:15px}.complementary{color:var(--muted);font-size:12px}.metric-tip button{vertical-align:middle;min-width:44px;min-height:44px;color:var(--blue)}.metric-tip small{background:var(--blue-soft);border-radius:8px;padding:12px;display:block}.pending-payment{background:var(--bg);border-radius:12px;margin:15px 0;padding:15px}.pending-payment>p{margin-bottom:15px}.modal-body input,.modal-body select,.modal-body textarea{scroll-margin-top:90px;scroll-margin-bottom:100px}@media (width<=760px){dialog{width:100%;max-width:100%;height:var(--visible-height,100dvh);max-height:var(--visible-height,100dvh);padding-top:env(safe-area-inset-top);border:0;border-radius:0;margin:0;position:fixed;inset:0}.modal-head{min-height:64px;padding:10px 18px}.modal-body{padding:20px 20px max(24px,env(safe-area-inset-bottom))}.modal-body h3{margin-top:24px}.main-actions{gap:8px}.main-actions button{min-height:78px;padding:12px 7px;font-size:11px}.main-actions svg{width:23px}.modal-body .form-footer{background:var(--surface);padding:15px 0 max(15px,env(safe-area-inset-bottom));z-index:2;position:sticky;bottom:0}.modal-body .form-footer button{min-height:52px}.quantity-line small{font-size:12px}.field>span{font-size:13px}}.product-card{overflow:hidden}.product-card>.product-image{border:0;border-radius:0;width:100%}.product-card .toolbar{flex-wrap:wrap;gap:8px;margin-top:14px}.product-card .toolbar button{min-height:44px}.product-info>p{margin:10px 0;font-size:13px;line-height:1.5}.stock-confirm{margin:14px 0;padding:16px}.stock-confirm p{margin:8px 0;font-size:14px}@media (width<=760px){.product-card{grid-template-columns:72px minmax(0,1fr);display:grid}.product-card>.product-image{width:72px;height:auto;min-height:100%}.product-info{min-width:0}.product-info .toolbar button{padding:10px;font-size:12px}.product-info>p{letter-spacing:0;font-size:12px}.product-card .condition{max-width:68px;font-size:9px}}.sale-live-summary{top:var(--modal-head-height,65px);z-index:3;background:var(--surface,#fff);border:1px solid var(--border,#dce4ef);border-radius:12px;justify-content:space-between;gap:12px;padding:12px;display:flex;position:sticky;box-shadow:0 2px 8px #163c7410}.sale-live-summary span{flex-direction:column;font-size:13px;display:flex}.sale-live-summary b{font-size:21px}.sale-expenses>summary{padding:14px 0;font-weight:700}.sale-expenses .row{flex-wrap:wrap}.stock-actions>summary{cursor:pointer;align-items:center;min-height:44px;display:flex}.modal-head{z-index:5}:is(.modal-body:has(.sale-live-summary) input,.modal-body:has(.sale-live-summary) select,.modal-body:has(.sale-live-summary) textarea){scroll-margin-top:calc(var(--modal-head-height,65px) + 110px)}.compact-sale .flow-progress{margin:8px 0}.compact-sale .quick-item{margin:10px 0;padding:10px}.compact-sale .quick-item>.row{padding:0}.compact-sale h3{margin-top:14px}.compact-sale .hint{margin:8px 0}.compact-sale .profit-highlight{margin:12px 0;padding:14px}.compact-sale .summary{margin:10px 0}.compact-sale summary,.add-sale-product>summary{cursor:pointer;align-content:center;min-height:44px}.compact-sale .flow-action{margin-top:12px}.expense-list:empty{display:none}.expense-line{border-bottom:1px solid var(--border);flex-wrap:wrap;align-items:center;gap:8px;padding:8px 0;display:flex}.expense-line>span,.expense-line>details{flex:1;min-width:130px}.expense-line b,.expense-line small{display:block}.expense-line summary{cursor:pointer;min-height:44px}.expense-total{margin:10px 0}.field-error{color:var(--red);margin:6px 0;font-size:13px;line-height:1.4}.compact-review dt,.compact-review dd{padding:4px 0}.compact-stock .field{margin:10px 0}.compact-stock summary{cursor:pointer;align-content:center;min-height:44px}.compact-stock .flow-intro{margin-bottom:6px;font-size:13px;line-height:1.4}.compact-stock .hint{margin:6px 0}.compact-stock .stock-confirm{margin:10px 0;padding:12px}.compact-stock .stock-confirm p{margin:4px 0}.compact-sale details,.compact-stock details{background:0 0;border:0;margin:6px 0;padding:0}.compact-sale summary,.compact-stock summary{min-height:44px;padding:8px 0}.compact-stock details[data-default-open=true]>summary{display:none}.toast button{min-width:44px;min-height:44px}.review-sentence{margin:12px 0;font-size:14px;line-height:1.5}@media (width<=760px){.product-info>p{font-size:12px;line-height:1.5}.product-prices span{font-size:12px}.chips button{min-height:44px}.notice,.field-error{font-size:13px;line-height:1.5}.modal-body{scroll-padding-bottom:100px}.stock-actions summary{min-height:44px}.product-card:focus-visible{outline:3px solid var(--blue);outline-offset:3px}}.summary dd small{color:var(--muted);margin-top:4px;font-size:12px;font-weight:400;line-height:1.5;display:block}.applied-summary{color:var(--text);font-size:12px;font-weight:500;line-height:1.5;display:block}.summary dd{font-variant-numeric:tabular-nums}dialog{overscroll-behavior:contain}@media (prefers-reduced-motion:reduce){.spin{animation:none}}:root,:root[data-theme=dark],:root[data-theme=system]{--bg:#0c1017;--surface:#151c27;--surface2:#1e2b40;--text:#f1f5fb;--muted:#b3bfd1;--border:#354258;--blue:#a8cbff;--blue-soft:#142d50;--action:#175be9;--focus:#5ce1f2;--green:#a9f3cb;--red:#ffb4b4;--shadow:0 3px 12px #00000014;--field:#0c1420;--hero-start:#102541;--hero-end:#142033;--hero-border:#3562a1;--hero-text:#f1f5fb;color:var(--text);background:var(--bg);--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}:root[data-theme=light]{--bg:#f3f6fb;--surface:#fff;--surface2:#eaf0f9;--text:#17283f;--muted:#50617a;--border:#b5c2d4;--blue:#1752a3;--blue-soft:#e8f1ff;--action:#175be9;--focus:#007e95;--green:#17633e;--red:#a12133;--field:#fff;--hero-start:#102541;--hero-end:#142033;--hero-border:#3562a1;--hero-text:#f1f5fb;--shadow:0 3px 12px #152d520a;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}body{line-height:1.5}button{touch-action:manipulation}button:active:not(:disabled){transform:translateY(1px)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,[role=button]:focus-visible,.product-card:focus-visible{outline:3px solid var(--focus);outline-offset:3px}button:disabled{opacity:.65}.primary{background:var(--action);color:#fff;box-shadow:none;border:1px solid #4980ef;min-height:48px;font-size:15px}.secondary{background:var(--surface);min-height:46px;font-size:14px}.text-button{font-size:14px}.eyebrow{color:var(--muted);font-size:11px}.card,.stat,.product-card,.more-card{background:var(--surface);border:1px solid var(--border);box-shadow:none;border-radius:16px}.stat strong,.result-card strong,.summary dd,.product-prices strong,.sale-live-summary b{font-variant-numeric:tabular-nums}.muted,.hint{color:var(--muted)}.hint{font-size:13px}.wordmark.brand{color:var(--text);letter-spacing:2px;align-items:center;gap:10px;display:flex;font-size:18px!important}.brand img{object-fit:contain;flex-shrink:0;width:44px;height:44px}.wordmark.brand>div{overflow-wrap:anywhere;min-width:0}.wordmark.brand span{letter-spacing:3px;color:var(--muted);border:0;margin-top:2px;padding:0;font-size:9px;display:block}.desktop-sidebar .wordmark.brand{display:flex}.desktop-sidebar .brand img{width:40px;height:40px}.topbar{background:var(--bg);height:auto;min-height:76px}.topbar>.brand{visibility:visible}.header-actions{gap:10px}.header-actions small{color:var(--muted);font-size:12px}.avatar{background:var(--surface2);color:var(--text);min-width:44px;min-height:44px}.desktop-sidebar{background:var(--bg)}.desktop-sidebar>button.selected{border:1px solid var(--hero-border);background:var(--blue-soft)}.page-title h1{letter-spacing:-.7px;font-size:28px}.page-title p:not(.eyebrow){font-size:14px;line-height:1.5}.page-title .eyebrow{margin-bottom:5px}.connection-strip{min-height:36px;font-size:12px}.result-card{background:linear-gradient(125deg,var(--hero-start),var(--hero-end));border:1px solid var(--hero-border);color:var(--hero-text);border-radius:16px;min-height:0;padding:22px;box-shadow:inset 3px 0 #5ce1f2}.result-card:after{display:none}.result-card-top{color:var(--hero-text);font-size:15px}.result-card>strong{margin:12px 0 8px;font-size:38px;font-weight:700;line-height:1.25}.result-card>strong.negative{color:#ffb4b4!important}.result-card>p{color:#bfcde1;max-width:none;font-size:13px}.result-card-footer{align-items:center;gap:16px;margin-top:18px;padding-top:14px}.result-card-footer span,.result-card-footer small{color:#bfcde1;font-size:12px}.result-card-footer b{font-size:18px}.result-card-footer button{white-space:normal;color:#dbeaff;min-height:44px;font-size:13px}.dashboard-top{grid-template-columns:1fr 1fr}.dashboard-top>.stats-grid{grid-template-columns:1fr}.stat{gap:8px;padding:18px}.stat>span{font-size:14px;line-height:1.4}.stat>strong{letter-spacing:-.5px;font-size:25px}.stat>small{font-size:12px;line-height:1.5}.main-actions{grid-template-columns:1fr 1fr;gap:10px;margin:22px 0 28px}.main-actions button{flex-direction:row;min-height:48px;padding:12px;font-size:15px}.main-actions>.primary{grid-column:1/-1}.main-actions svg{width:20px}.bottom-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.period-bar label,.period-bar>span{font-size:12px}.period-bar input{max-width:170px;font-size:16px}.section-heading h2{font-size:19px}.row>div>strong,.row>b{font-size:14px}.row small{font-size:12px;line-height:1.5}.row-icon{background:var(--surface2);color:var(--blue)}.badge{font-size:12px}.badge.green{background:var(--blue-soft);color:var(--green)}.badge.amber,.row-icon.warn{color:#ffe0a6;background:#5d411b}.quiet-card p,.local-note p,.more-card p{font-size:13px}.more-card h3{font-size:16px}.local-note strong{font-size:14px}.bottom-nav{background:var(--bg);box-shadow:none}.bottom-nav button{min-height:54px;color:var(--muted);gap:4px;padding:7px 2px;font-size:12px;line-height:1.25}.bottom-nav button.active{background:var(--blue-soft);color:var(--blue);border-radius:10px}.bottom-nav button.active:before{display:none}.bottom-nav svg{width:21px;height:21px}.search{background:var(--surface);border:1px solid var(--border);min-height:50px}.search input{font-size:16px}.chips button{border-color:var(--border);min-height:44px;font-size:13px}.chips button.active{background:var(--blue-soft);color:var(--blue);border-color:var(--hero-border)}.product-info h3{font-size:17px;line-height:1.4}.product-info>p{font-size:13px;line-height:1.5}.product-prices{gap:16px}.product-prices span{font-size:13px}.product-prices strong{font-size:20px}.product-info .toolbar button{min-height:46px;font-size:14px}.product-info .toolbar{flex-wrap:wrap}.product-info details{margin-top:14px}.product-info summary{font-size:13px}.product-image{background:var(--surface2);color:var(--blue)}.condition{background:var(--surface);color:var(--text);border:1px solid var(--border);font-size:11px}.stock-confirm{background:var(--blue-soft)}dialog{background:var(--bg);border-color:var(--border)}dialog::backdrop{-webkit-backdrop-filter:none;backdrop-filter:none;background:#030811bb}.modal-head,.modal-body{background:var(--bg)}.modal-head h2{font-size:20px}.field>span{font-size:14px}.field small{font-size:12px}input:not([type=checkbox]):not([type=radio]),select,textarea{background:var(--field);border-color:var(--border);min-height:50px;font-size:16px}input::placeholder{color:var(--muted);opacity:1}input[type=checkbox],input[type=radio]{accent-color:var(--action)}.modal-body .quick-item{background:var(--surface);border:1px solid var(--border);border-radius:16px;margin:16px 0;padding:16px}.compact-sale .quick-item .row{padding-bottom:10px}.compact-sale .field{margin:12px 0}.quantity-line{flex-wrap:wrap;row-gap:8px}.quantity-line small{font-size:13px}.stepper{background:var(--field)}.stepper button{color:var(--blue)}.sale-live-summary{background:var(--blue-soft);border:1px solid var(--hero-border);box-shadow:none;border-radius:16px;padding:16px}.sale-live-summary span{font-size:13px;line-height:1.4}.sale-live-summary b{overflow-wrap:anywhere;font-size:24px;line-height:1.3}.sale-live-summary span:last-child b{color:var(--green)}.sale-live-summary.negative span:last-child b{color:var(--red)}.profit-highlight{background:var(--blue-soft);border:1px solid var(--hero-border);border-radius:16px;padding:20px!important}.profit-highlight strong{color:var(--green);font-size:36px}.profit-highlight.negative strong{color:var(--red)}.payment-choices label{background:var(--surface);border-radius:12px;min-height:54px;font-size:16px}.payment-choices label.selected{background:var(--blue-soft);border-color:var(--blue)}.payment-choices input{accent-color:var(--action);flex-shrink:0}.pending-payment{background:var(--surface)}.flow-action,.modal-body .form-footer{background:var(--bg)}.summary dt{font-size:14px}.summary dd{font-size:16px}.summary.card{padding:20px}.notice{font-size:14px}.notice button{font-size:13px}.notice.danger{color:var(--red);border-color:var(--red);background:var(--surface)}.field-error,.check{font-size:14px}.unit-row b,.unit-row strong{font-size:13px}.unit-row small{font-size:12px}legend,summary{min-height:44px;font-size:14px}details p{font-size:14px}.applied-summary{color:var(--muted);font-size:13px}.toolbar button{font-size:14px}.flow-progress span{font-size:12px}.flow-progress{flex-wrap:wrap}.toast{color:#fff;background:#143364;font-size:14px}.update{margin:10px 20px}.demo-banner,.demo-banner button{font-size:12px}.help p,.help li{font-size:15px}.version{font-size:12px}.unit-list,.restore-preview{background:var(--surface)}@media (width<=760px){.topbar{padding:8px 16px;padding-top:max(8px,env(safe-area-inset-top));gap:6px}.header-actions{gap:4px}.topbar .brand{gap:8px;font-size:17px!important}.brand img{width:40px;height:40px}.header-actions .icon-button{min-width:44px;min-height:44px}.header-actions .avatar{display:none}main{padding:20px 20px calc(105px + env(safe-area-inset-bottom))}.page-title{flex-wrap:wrap;margin-bottom:20px}.page-title>button{min-height:46px;margin-top:0;font-size:14px}.dashboard-top{gap:14px;display:flex}.dashboard-top>.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stat{min-height:112px;padding:16px}.stat>strong{font-size:24px}.stat>small{font-size:12px}.result-card>strong{font-size:38px}.main-actions button{font-size:14px}.product-card{grid-template-columns:64px minmax(0,1fr);align-items:start;display:grid}.product-card>.product-image{border-radius:10px;width:48px;height:64px;min-height:0;margin:16px 0 0 16px;overflow:hidden}.product-image img{object-fit:cover;width:48px;height:64px;position:relative;inset:auto}.product-image .condition{border:0;padding:2px;font-size:9px;position:static}.product-image:has(.condition){flex-direction:column;gap:4px}.product-image:has(img) .condition{display:none}.product-info{padding:16px}.product-info .toolbar{gap:8px}.product-info .toolbar button{flex:1;padding:10px 12px}.product-prices{gap:8px}.product-prices strong{font-size:18px}.modal-body{padding:20px 20px max(24px,env(safe-area-inset-bottom))}.modal-head{min-height:64px}.modal-body .form-footer{padding-bottom:max(15px,env(safe-area-inset-bottom))}.summary dd{font-size:15px}.sales-summary>.stat:last-child small{font-size:12px}.more-card{padding:18px}.more-card h3{font-size:16px}.more-card p{font-size:13px}.row small{font-size:12px}.sale-row .right b{font-size:15px}.sale-row .right small{font-size:12px}.bottom-stats .stat strong{font-size:23px}}@media (width<=350px){main{padding-left:16px;padding-right:16px}.topbar{padding-left:12px;padding-right:12px}.topbar .brand{font-size:16px!important}.brand img{width:36px;height:36px}.header-actions small{font-size:11px}.stat{padding:14px 12px}.stat>strong{font-size:21px}.stat>span{font-size:13px}.bottom-nav button{font-size:11px}.main-actions button{padding:10px 8px;font-size:13px}.main-actions svg{width:18px}.modal-body{padding-left:16px;padding-right:16px}.product-card{grid-template-columns:52px minmax(0,1fr)}.product-card>.product-image{width:40px;margin-left:12px}.product-info{padding:14px 12px}.product-info h3{font-size:16px}.product-prices strong{font-size:17px}.product-info .toolbar{grid-template-columns:1fr;display:grid}.result-card{padding:20px}.result-card-footer{align-items:flex-start}.result-card-footer button{font-size:12px}.result-card-footer small{font-size:11px}}@media (prefers-reduced-motion:reduce){button:active:not(:disabled){transform:none}}
