:root{color:#19382b;font-synthesis:none;text-rendering:optimizelegibility;--green-900:#19382b;--green-800:#214f3b;--green-700:#2f6b4f;--green-100:#deeee5;--cream-50:#fffdf7;--cream-100:#fff9ec;--cream-200:#f7edda;--orange-500:#e9873d;--orange-200:#f8d5a9;--ink-muted:#65746c;--border:#dfe5df;--shadow:0 18px 45px #214f3b1a;background:#f7f0df;font-family:Inter,ui-rounded,Nunito Sans,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}html{background:#dfe9e2}body{background:radial-gradient(circle at 10% 0,#e9873d24,#0000 28rem),linear-gradient(#f6f0e1 0%,#eef3ec 100%);min-width:320px;min-height:100vh;margin:0}.fatal-screen{background:var(--cream-50);place-items:center;min-height:100vh;padding:24px;display:grid}.fatal-screen>div{border:1px solid var(--border);background:var(--cream-100);width:min(100%,460px);box-shadow:var(--shadow);text-align:center;border-radius:24px;gap:14px;padding:28px;display:grid}.fatal-screen>div>span{font-size:2.5rem}.fatal-screen h1,.fatal-screen p{margin:0}button,input,select{font:inherit}button{-webkit-tap-highlight-color:transparent}button:focus-visible{outline-offset:3px;outline:3px solid #f2a35f}input:focus-visible,select:focus-visible{outline-offset:1px;outline:3px solid #f2a35f}.auth-page{place-items:center;min-height:100vh;padding:20px 16px;display:grid}.auth-card{width:min(100%,480px);box-shadow:var(--shadow);background:#fffdf7f5;border:1px solid #2f6b4f1f;border-radius:30px;gap:26px;padding:26px;display:grid}.auth-brand{align-items:center;gap:12px;display:flex}.auth-brand .brand-mark{width:64px;height:64px}.auth-brand h1,.auth-card h2{color:var(--green-900);margin:3px 0 0}.auth-card h2{margin-top:6px;font-size:clamp(1.6rem,7vw,2.15rem)}.auth-help,.demo-login>p{color:var(--ink-muted);margin:8px 0 0;line-height:1.5}.demo-login{gap:12px;display:grid}.demo-login .demo-pill{justify-self:start}.demo-login>button{min-height:76px;color:var(--green-900);text-align:left;cursor:pointer;background:#edf6ef;border:1px solid #cfe0d4;border-radius:18px;grid-template-columns:auto 1fr auto;align-items:center;gap:13px;padding:12px 16px;display:grid}.demo-login>button>span:first-child{font-size:1.8rem}.demo-login strong,.demo-login small{display:block}.demo-login small{color:var(--ink-muted);margin-top:3px}.demo-login button:disabled,.primary-button:disabled{cursor:wait;opacity:.62}.auth-form{gap:16px;display:grid}.auth-form label{color:var(--green-900);gap:7px;font-weight:800;display:grid}.auth-form label small{color:var(--ink-muted);font-size:.78rem;font-weight:600}.auth-form input{width:100%;min-height:50px;color:var(--green-900);background:#fff;border:1px solid #bdcec2;border-radius:13px;padding:10px 12px}.primary-button{color:#fff;background:var(--green-700);border:0;border-radius:15px;min-height:52px;font-weight:900}.auth-error{color:#672a22;background:#fff0ed;border-left:4px solid #c9503f;border-radius:0 14px 14px 0;gap:5px;padding:14px;display:grid}.auth-error button{color:#672a22;background:#f6d0c8;border:0;border-radius:10px;justify-self:start;min-height:44px;margin-top:6px;font-weight:800}.app-shell{width:min(100%,760px);min-height:100vh;padding-bottom:calc(92px + env(safe-area-inset-bottom));background:#fffdf7eb;margin:0 auto;box-shadow:0 0 80px #19382b21}.topbar{z-index:10;padding:calc(14px + env(safe-area-inset-top)) 18px 14px;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);background:#fffdf7eb;border-bottom:1px solid #2f6b4f1f;justify-content:space-between;align-items:center;gap:12px;display:flex;position:sticky;top:0}.topbar-actions,.user-badge{align-items:center;gap:8px;display:flex}.user-badge>div{display:none}.user-badge strong,.user-badge span{display:block}.user-badge span{color:var(--ink-muted);font-size:.7rem}.user-badge button{min-height:36px;color:var(--green-800);background:#fff;border:1px solid #cedbd1;border-radius:12px;padding:0 10px;font-size:.75rem;font-weight:900}.brand-lockup{align-items:center;gap:10px;min-width:0;display:flex}.brand-mark{flex:none;width:50px;height:50px}.brand-mark svg{width:100%;height:100%;display:block}.eyebrow,.section-kicker{color:var(--orange-500);letter-spacing:.08em;text-transform:uppercase;margin:0;font-size:.72rem;font-weight:800}.brand-lockup h1{color:var(--green-900);margin:1px 0 0;font-size:clamp(1.2rem,5vw,1.55rem);line-height:1.05}.connection-badge{min-height:36px;color:var(--green-800);background:var(--green-100);white-space:nowrap;cursor:pointer;border:0;border-radius:999px;align-items:center;gap:7px;padding:7px 10px;font-size:.78rem;font-weight:800;display:inline-flex}.connection-badge span{background:#2c9b62;border-radius:50%;width:8px;height:8px;box-shadow:0 0 0 4px #2c9b621f}.connection-badge.offline,.connection-badge.pending,.connection-badge.error{color:#814514;background:#fff0d7}.connection-badge.pending span:first-child,.connection-badge.error span:first-child{background:#d66b2c;box-shadow:0 0 0 4px #d66b2c1f}.connection-badge.syncing{color:#31596d;background:#e6f2f7}.connection-badge.syncing span:first-child{background:#4584a2;box-shadow:0 0 0 4px #4584a21f}.connection-badge:disabled{cursor:wait;opacity:.8}.connection-badge.offline span{background:#d66b2c;box-shadow:0 0 0 4px #d66b2c1f}.main-content{padding:20px 16px 28px}.page-stack{gap:24px;display:grid}.welcome-card{color:#fffdf7;background:linear-gradient(140deg, var(--green-800), var(--green-700));min-height:174px;box-shadow:var(--shadow);border-radius:28px;justify-content:space-between;align-items:center;padding:24px;display:flex;position:relative;overflow:hidden}.welcome-card:after{content:"";border:24px solid #ffffff14;border-radius:50%;width:160px;height:160px;position:absolute;bottom:-90px;right:-60px}.welcome-card h2{max-width:14ch;margin:14px 0 8px;font-size:clamp(1.65rem,7vw,2.2rem);line-height:1.05}.welcome-card p{color:#fffc;max-width:30ch;margin:0;line-height:1.5}.demo-pill{color:#704016;background:var(--orange-200);letter-spacing:.05em;text-transform:uppercase;border-radius:999px;padding:6px 10px;font-size:.72rem;font-weight:900;display:inline-flex}.sun-mark{z-index:1;color:#ffd384;align-self:flex-start;font-size:2.3rem;position:relative}.section-heading{justify-content:space-between;align-items:center;margin:0 4px 12px;display:flex}.section-heading h2{color:var(--green-900);margin:4px 0 0;font-size:1.35rem}.section-heading.compact{margin-bottom:16px}.action-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.action-card{min-height:142px;color:var(--green-900);text-align:left;cursor:pointer;border:0;border-radius:22px;grid-template-columns:auto 1fr auto;align-items:end;gap:10px;padding:16px;transition:transform .15s,box-shadow .15s;display:grid;box-shadow:0 8px 22px #214f3b12}.action-card:active{transform:scale(.98)}.action-card--green{background:#dcecdf}.action-card--orange{background:#ffe1bc}.action-card--cream{background:#f3ead7}.action-card--forest{color:#fff;background:var(--green-700)}.action-icon{grid-column:1/-1;align-self:start;font-size:2rem}.action-card strong,.action-card small{display:block}.action-card strong{font-size:1rem}.action-card small{color:inherit;opacity:.68;margin-top:3px;font-size:.78rem}.action-arrow{font-size:1.2rem;font-weight:900}.summary-card,.placeholder-card{border:1px solid var(--border);background:#ffffffd6;border-radius:24px;padding:22px;box-shadow:0 12px 30px #214f3b0f}.summary-list{gap:0;margin:0;display:grid}.summary-list div{border-top:1px solid var(--border);justify-content:space-between;gap:18px;padding:13px 0;display:flex}.summary-list dt{color:var(--ink-muted)}.summary-list dd{text-align:right;margin:0;font-weight:800}.status-dot{background:#d19a35;border-radius:50%;width:12px;height:12px;box-shadow:0 0 0 5px #d19a351f}.status-dot--ready{background:#2c9b62;box-shadow:0 0 0 5px #2c9b621f}.status-dot--error{background:#c9503f;box-shadow:0 0 0 5px #c9503f1f}.placeholder-card{flex-direction:column;justify-content:center;align-items:flex-start;min-height:54vh;display:flex}.placeholder-icon{background:var(--green-100);border-radius:22px;place-items:center;width:70px;height:70px;margin-bottom:22px;font-size:2rem;display:grid}.placeholder-card h2{margin:5px 0 10px;font-size:2rem}.placeholder-card>p:not(.section-kicker){max-width:42ch;color:var(--ink-muted);margin:0;line-height:1.6}.next-note{border-left:4px solid var(--orange-500);background:var(--cream-100);border-radius:0 14px 14px 0;gap:4px;width:100%;margin-top:28px;padding:16px;display:grid}.next-note span{color:var(--ink-muted)}.permission-card{width:100%;color:var(--green-800);background:var(--green-100);border-radius:16px;gap:8px;margin-top:16px;padding:16px;display:grid}.permission-card span{color:var(--ink-muted);font-size:.88rem}.catalog-page{gap:18px;display:grid}.inventory-page,.customers-page,.sales-page{gap:16px;display:grid}.back-link{min-height:32px;color:var(--green-700);background:0 0;border:0;margin:0 0 6px;padding:0;font-weight:800}.catalog-heading,.catalog-tools,.modal-heading,.form-actions{justify-content:space-between;align-items:center;gap:12px;display:flex}.catalog-heading h2,.modal-heading h2{color:var(--green-900);margin:4px 0 0}.catalog-heading h2{font-size:2rem}.catalog-heading-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}.compact-button{min-height:46px;padding:0 15px}.catalog-tools{align-items:stretch}.search-field{background:#fff;border:1px solid #ccd9cf;border-radius:16px;flex:1;align-items:center;gap:8px;min-height:52px;padding:0 14px;display:flex}.search-field span{color:var(--green-700);font-size:1.4rem;font-weight:900}.search-field input{width:100%;min-width:0;color:var(--green-900);background:0 0;border:0;outline:0}.scan-button,.secondary-button{min-height:48px;color:var(--green-800);background:#edf5ef;border:1px solid #bfd1c3;border-radius:14px;padding:0 15px;font-weight:900}.product-list{gap:10px;display:grid}.product-card{border:1px solid var(--border);background:#ffffffe0;border-radius:19px;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:13px;padding:15px;display:grid;box-shadow:0 8px 20px #214f3b0d}.product-icon{width:48px;height:48px;color:var(--green-800);background:var(--green-100);border-radius:14px;place-items:center;font-size:1.35rem;display:grid}.product-info{min-width:0}.product-info h3,.product-info p{margin:0}.product-info h3{color:var(--green-900);text-overflow:ellipsis;white-space:nowrap;font-size:1rem;overflow:hidden}.product-info p{color:var(--ink-muted);text-overflow:ellipsis;white-space:nowrap;margin:3px 0 8px;font-size:.75rem;overflow:hidden}.product-info>strong{color:var(--green-700);font-size:1.05rem}.product-info>strong small{color:var(--ink-muted);font-size:.7rem}.product-actions{gap:7px;display:grid}.product-actions button{min-height:36px;color:var(--green-800);background:var(--cream-50);border:1px solid #d5dfd7;border-radius:10px;padding:0 10px;font-size:.72rem;font-weight:800}.empty-state{min-height:150px;color:var(--ink-muted);text-align:center;border:1px dashed #b8cbbb;border-radius:20px;place-content:center;gap:5px;padding:22px;display:grid}.empty-state strong{color:var(--green-900)}.catalog-error{color:#672a22;background:#fff0ed;border-left:4px solid #c9503f;border-radius:0 12px 12px 0;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;display:flex}.catalog-error button{min-height:40px;color:inherit;background:#f4d0c8;border:0;border-radius:9px;font-weight:800}.modal-backdrop{z-index:50;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#10271d8c;place-items:end center;padding:16px;display:grid;position:fixed;inset:0}.modal-card{background:var(--cream-50);border-radius:26px;gap:16px;width:min(100%,540px);max-height:calc(100vh - 32px);padding:22px;display:grid;overflow-y:auto;box-shadow:0 24px 70px #0f2a1d47}.modal-heading>button{width:44px;height:44px;color:var(--green-800);background:var(--green-100);border:0;border-radius:13px;font-size:1.7rem}.product-form label,.price-form label{color:var(--green-900);gap:7px;font-weight:800;display:grid}.product-form label small{color:var(--ink-muted);font-size:.72rem;font-weight:600}.product-form input:not([type=checkbox]),.product-form select,.price-form input{width:100%;min-height:49px;color:var(--green-900);background:#fff;border:1px solid #bdcec2;border-radius:13px;padding:9px 12px}.form-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.check-field{grid-template-columns:auto 1fr;align-items:center}.check-field input{width:22px;height:22px;accent-color:var(--green-700)}.form-actions{justify-content:flex-end}.form-actions button{min-width:120px;padding:0 14px}.form-error{color:#792f24;background:#fff0ed;border-radius:11px;margin:0;padding:11px 13px}.form-help{color:var(--ink-muted);text-align:center;margin:0}.form-hint,.inline-error{margin:0}.form-hint{color:var(--ink-muted)}.inline-error{color:#792f24;background:#fff0ed;border-radius:10px;padding:10px 12px}.price-history{color:var(--ink-muted);background:var(--green-100);border-radius:12px;gap:5px;padding:12px;font-size:.82rem;display:grid}.price-history strong{color:var(--green-900)}.bulk-price-list{gap:8px;display:grid}.bulk-price-list>label{border-bottom:1px solid var(--border);grid-template-columns:minmax(0,1fr) 130px;align-items:center;gap:12px;padding:10px 0;display:grid}.bulk-price-list>label>span:first-child{gap:3px;min-width:0;display:grid}.bulk-price-list strong{color:var(--green-900);text-overflow:ellipsis;white-space:nowrap;font-size:.9rem;overflow:hidden}.bulk-price-list small{color:var(--ink-muted)}.price-input-wrap{color:var(--green-900);align-items:center;gap:5px;font-weight:800;display:flex}.price-input-wrap input{background:#fff;border:1px solid #bdcec2;border-radius:11px;width:100%;min-width:0;min-height:44px;padding:8px 10px}.inventory-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;display:grid}.inventory-summary>div,.inventory-summary>button{border:1px solid var(--border);min-width:0;color:var(--green-900);text-align:center;background:#fff;border-radius:15px;gap:3px;padding:13px 10px;display:grid}.inventory-summary>button.active{border-color:var(--orange-500);background:#fff1df}.inventory-summary strong{font-size:1.3rem}.inventory-summary span{color:var(--ink-muted);text-overflow:ellipsis;white-space:nowrap;font-size:.72rem;overflow:hidden}.inventory-list{gap:10px;display:grid}.inventory-card{border:1px solid var(--border);background:#ffffffe6;border-radius:18px;gap:10px;padding:15px;display:grid}.inventory-card-main,.inventory-card-detail{justify-content:space-between;align-items:center;gap:12px;display:flex}.inventory-card h3{color:var(--green-900);margin:0 0 5px;font-size:1rem}.stock-status{color:var(--green-800);background:var(--green-100);border-radius:999px;padding:4px 8px;font-size:.68rem;font-weight:900;display:inline-flex}.stock-status.low,.stock-status.empty{color:#7d4a0d;background:#fff0d5}.stock-status.negative{color:#792f24;background:#fff0ed}.stock-status.untracked{color:var(--ink-muted);background:#eef0ed}.stock-quantity{color:var(--green-800);text-align:right;font-size:1.15rem}.inventory-card-detail{color:var(--ink-muted);margin:0;font-size:.75rem}.inventory-action{min-height:43px;color:var(--green-800);background:#edf5ef;border:1px solid #bfd1c3;border-radius:12px;font-weight:900}.movement-history{border-top:1px solid var(--border);color:var(--green-800);font-size:.78rem}.movement-history summary{cursor:pointer;padding:10px 0 0;font-weight:900}.movement-history>div{gap:7px;padding-top:9px;display:grid}.movement-history p{color:var(--ink-muted);justify-content:space-between;gap:12px;margin:0;display:flex}.movement-history p span:last-child{color:var(--green-800);flex:none;font-weight:800}.movement-form label{color:var(--green-900);gap:7px;font-weight:800;display:grid}.movement-form input,.movement-form select{width:100%;min-height:49px;color:var(--green-900);background:#fff;border:1px solid #bdcec2;border-radius:13px;padding:9px 12px}.movement-form input:disabled{opacity:.55}.current-stock{color:var(--green-900);background:var(--green-100);border-radius:12px;margin:0;padding:12px}.package-calculator{border:1px solid var(--border);border-radius:14px;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0;padding:13px;display:grid}.package-calculator legend{color:var(--green-800);padding:0 5px;font-weight:900}.package-calculator>strong{color:var(--green-700);grid-column:1/-1}.context-note{border-left:4px solid var(--orange-500);color:var(--green-900);background:#fff1df;border-radius:0 13px 13px 0;gap:3px;padding:13px 15px;display:grid}.context-note span{color:var(--ink-muted);font-size:.82rem}.customer-summary{grid-template-columns:1.4fr 1fr 1fr;gap:9px;display:grid}.customer-summary>div,.customer-summary>button{border:1px solid var(--border);min-width:0;color:var(--green-900);text-align:left;background:#fff;border-radius:15px;gap:4px;padding:14px 11px;display:grid}.customer-summary>button.active{border-color:var(--orange-500);background:#fff1df}.customer-summary span{color:var(--ink-muted);text-overflow:ellipsis;white-space:nowrap;font-size:.72rem;overflow:hidden}.customer-summary strong{font-size:1.15rem}.customer-list{gap:11px;display:grid}.customer-card{border:1px solid var(--border);background:#ffffffeb;border-radius:19px;gap:12px;padding:15px;display:grid}.customer-card.overdue{border-left:5px solid var(--orange-500)}.customer-card-heading{grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:11px;display:grid}.customer-avatar{width:44px;height:44px;color:var(--green-800);background:var(--green-100);border-radius:14px;place-items:center;font-size:1.15rem;font-weight:900;display:grid}.customer-card h3,.customer-card p{margin:0}.customer-card h3{color:var(--green-900);font-size:1rem}.customer-card-heading>div:nth-child(2) p,.customer-card-heading>div:nth-child(2) span{color:var(--ink-muted);text-overflow:ellipsis;white-space:nowrap;font-size:.72rem;display:block;overflow:hidden}.customer-balance{color:var(--green-900);justify-items:end;display:grid}.customer-balance small{color:var(--ink-muted)}.customer-balance>span{color:#a54c19;font-size:.66rem;font-weight:900}.credit-progress{background:#e3ebe5;border-radius:99px;height:7px;overflow:hidden}.credit-progress span{border-radius:inherit;background:var(--orange-500);height:100%;display:block}.credit-caption{color:var(--ink-muted);font-size:.72rem}.customer-actions{flex-wrap:wrap;gap:7px;display:flex}.customer-actions button{min-height:42px;color:var(--green-800);background:var(--cream-50);border:1px solid #c7d4ca;border-radius:11px;flex:100px;padding:0 10px;font-weight:800}.customer-actions button.pay{border-color:var(--green-700);color:#fff;background:var(--green-700)}.customer-form label,.payment-form label{color:var(--green-900);gap:7px;font-weight:800;display:grid}.customer-form input,.payment-form input,.payment-form select{width:100%;min-height:49px;color:var(--green-900);background:#fff;border:1px solid #bdcec2;border-radius:13px;padding:9px 12px}.current-balance{color:var(--green-900);background:var(--green-100);border-radius:12px;margin:0;padding:13px}.account-balance-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;display:grid}.account-balance-grid>div{color:var(--green-900);background:var(--green-100);border-radius:13px;gap:4px;padding:13px;display:grid}.account-balance-grid>div.danger{color:#8c3d19;background:#fff0df}.account-balance-grid span{font-size:.75rem}.account-history{gap:8px;display:grid}.account-history h3,.account-history p{margin:0}.account-history article{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:11px 0;display:flex}.account-history article>div{gap:3px;display:grid}.account-history article span{color:var(--ink-muted);font-size:.7rem}.account-history .charge{color:#9b4b1c}.account-history .payment{color:var(--green-700)}.credit-purchase-history{gap:10px;display:grid}.credit-purchase-history>h3,.credit-purchase-history>p{margin:0}.credit-purchase-history>article{background:#fff;border:1px solid #d6dfd8;border-radius:14px;overflow:hidden}.credit-purchase-history>article.voided{opacity:.66}.credit-purchase-heading{color:var(--green-900);background:var(--green-100);justify-content:space-between;align-items:center;gap:12px;padding:11px 12px;display:flex}.credit-purchase-heading>div{gap:2px;display:grid}.credit-purchase-heading span{color:var(--ink-muted);font-size:.72rem}.credit-purchase-lines{padding:3px 12px;display:grid}.credit-purchase-lines>p{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;margin:0;padding:9px 0;display:flex}.credit-purchase-lines>p:last-child{border-bottom:0}.credit-purchase-lines>p>span{gap:2px;display:grid}.credit-purchase-lines small{color:var(--ink-muted);font-size:.68rem}.credit-purchase-lines .missing-sale-items{color:var(--ink-muted);font-size:.78rem}.sale-total-top{color:var(--green-800);font-size:1.45rem}.sale-view-tabs{background:#edf2ee;border-radius:15px;grid-template-columns:repeat(2,1fr);gap:7px;margin-bottom:18px;padding:5px;display:grid}.sale-view-tabs button{min-height:46px;color:var(--green-800);background:0 0;border:0;border-radius:11px;font-weight:900}.sale-view-tabs button.active{color:#fff;background:var(--green-700)}.sale-history-list{gap:10px;display:grid}.sale-history-list>button{border:1px solid var(--border);width:100%;min-height:74px;color:var(--green-900);text-align:left;background:#fff;border-radius:17px;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:11px;padding:13px;display:grid}.sale-history-list>button>span:nth-child(2){gap:4px;min-width:0;display:grid}.sale-history-list small{color:var(--ink-muted);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.sale-status{min-width:62px;color:var(--green-800);background:var(--green-100);text-align:center;border-radius:10px;padding:6px 8px;font-size:.7rem;font-weight:900}.sale-status.voided{color:#792f24;background:#fff0ed}.sale-detail-meta{color:var(--ink-muted);gap:4px;display:grid}.sale-detail-meta strong{color:#79460d}.void-note{color:#792f24;background:#fff0ed;border-left:4px solid #c9503f;border-radius:0 12px 12px 0;gap:4px;padding:12px;display:grid}.void-note span{color:#8e554d}.danger-button{color:#fff;background:#b64736;border:0;border-radius:13px;min-height:48px;padding:0 15px;font-weight:900}.danger-button:disabled{opacity:.55}.void-sale-card label{color:var(--green-900);gap:7px;font-weight:800;display:grid}.void-sale-card textarea{resize:vertical;min-height:94px;font:inherit;border:1px solid #bdcec2;border-radius:13px;padding:11px 12px}.modal-backdrop.nested{z-index:45}.sale-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;display:grid}.sale-products button{border:1px solid var(--border);min-width:0;color:var(--green-900);text-align:left;background:#fff;border-radius:15px;gap:4px;padding:13px;display:grid}.sale-products span{text-overflow:ellipsis;white-space:nowrap;font-weight:800;overflow:hidden}.sale-products strong{color:var(--green-700)}.sale-products small{color:var(--orange-700);font-weight:900}.cart-card,.checkout-card{border:1px solid var(--border);background:#ffffffeb;border-radius:19px;gap:12px;padding:16px;display:grid}.clear-cart{color:#8d3d2c;background:0 0;border:0;min-height:38px;font-weight:800}.cart-empty{color:var(--ink-muted);text-align:center;border:1px dashed #b8cbbb;border-radius:13px;margin:0;padding:20px}.cart-line{border-bottom:1px solid var(--border);grid-template-columns:minmax(0,1fr) 76px auto 38px;align-items:center;gap:8px;padding:10px 0;display:grid}.cart-line>div{gap:3px;min-width:0;display:grid}.cart-line>div strong,.cart-line>div span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.cart-line>div span{color:var(--ink-muted);font-size:.7rem}.cart-line input{text-align:center;border:1px solid #bdcec2;border-radius:10px;width:100%;min-height:42px;padding:6px}.cart-line>button{color:#8d3d2c;background:#fff0ed;border:0;border-radius:10px;width:36px;height:36px;font-size:1.25rem}.sale-mode{background:#edf2ee;border-radius:14px;grid-template-columns:repeat(2,1fr);gap:8px;padding:5px;display:grid}.sale-mode button{min-height:45px;color:var(--green-800);background:0 0;border:0;border-radius:11px;font-weight:900}.sale-mode button.active{color:#fff;background:var(--green-700)}.checkout-card>label{color:var(--green-900);gap:7px;font-weight:800;display:grid}.checkout-card select{background:#fff;border:1px solid #bdcec2;border-radius:12px;min-height:49px;padding:8px 11px}.sale-warning{border-left:4px solid var(--orange-500);color:#79460d;background:#fff1df;border-radius:0 11px 11px 0;margin:0;padding:11px 13px;font-size:.82rem}.checkout-total{color:var(--green-900);justify-content:space-between;align-items:center;font-size:1.1rem;display:flex}.checkout-total strong{font-size:1.55rem}.confirm-sale{width:100%}.receipt-card{text-align:center}.receipt-success{color:#fff;background:var(--green-700);border-radius:50%;place-items:center;width:64px;height:64px;margin:0 auto;font-size:2rem;font-weight:900;display:grid}.receipt-heading h2{color:var(--green-900);margin:5px 0;font-size:2.1rem}.receipt-heading span{color:var(--ink-muted)}.receipt-lines{border-block:1px solid var(--border);gap:8px;padding:12px 0;display:grid}.receipt-lines p{text-align:left;justify-content:space-between;gap:10px;margin:0;display:flex}.text-button{min-height:42px;color:var(--green-700);background:0 0;border:0;padding:0 10px;font-weight:900}.daily-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.daily-grid article{border:1px solid var(--border);background:#ffffffeb;border-radius:18px;gap:5px;min-width:0;padding:15px;display:grid}.daily-grid article:nth-child(2),.daily-grid article:nth-child(3){background:#fff8ec}.daily-grid span,.daily-grid small{color:var(--ink-muted);font-size:.72rem}.daily-grid strong{color:var(--green-900);text-overflow:ellipsis;white-space:nowrap;font-size:clamp(1.15rem,5vw,1.55rem);overflow:hidden}.admin-section{gap:12px;display:grid}.admin-section h3{color:var(--green-900);margin:0;font-size:1.25rem}.family-list,.audit-list{gap:9px;display:grid}.family-list article{border:1px solid var(--border);background:#fff;border-radius:17px;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:13px;display:grid}.family-list article.inactive{opacity:.7;background:#f2f2ee}.family-avatar,.audit-icon{width:42px;height:42px;color:var(--green-800);background:var(--green-100);border-radius:13px;place-items:center;font-weight:900;display:grid}.family-list article>div:nth-child(2){gap:3px;min-width:0;display:grid}.family-list strong,.family-list small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.family-list small{color:var(--ink-muted);font-size:.7rem}.family-list select,.user-state{min-height:42px;color:var(--green-800);background:#edf5ef;border:1px solid #bfd1c3;border-radius:11px;font-weight:800}.family-list select{padding:0 8px}.user-state{min-width:72px;padding:0 9px}.user-state.active{color:#fff;background:var(--green-700)}.family-list select:disabled,.user-state:disabled{cursor:not-allowed;opacity:.55}.sync-admin-card{border-left:5px solid var(--green-600);color:var(--green-900);background:var(--green-100);border-radius:0 15px 15px 0;gap:5px;padding:15px;display:grid}.sync-admin-card span,.sync-admin-card small{color:var(--ink-muted)}.audit-list article{border-bottom:1px solid var(--border);grid-template-columns:auto minmax(0,1fr);align-items:center;gap:11px;padding:12px 0;display:grid}.audit-list article>div{gap:3px;min-width:0;display:grid}.audit-list strong,.audit-list small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.audit-list small{color:var(--ink-muted)}.sync-note{color:#79460d;background:#fff1df;border-radius:10px;margin:0;padding:10px}.scanner-frame{aspect-ratio:4/3;background:#10291e;border-radius:18px;position:relative;overflow:hidden}.scanner-frame video{object-fit:cover;width:100%;height:100%}.scanner-frame span{border:3px solid #ffd384;border-radius:14px;position:absolute;inset:20% 10%;box-shadow:0 0 0 999px #00000038}.scanner-help{color:var(--green-900);text-align:center;justify-items:center;gap:4px;display:grid}.scanner-help span{color:var(--ink-muted);font-size:.82rem}.scanner-manual{gap:7px;display:grid}.scanner-manual label{color:var(--green-900);font-weight:800}.scanner-manual>div{grid-template-columns:minmax(0,1fr) auto;gap:8px;display:grid}.scanner-manual input{min-width:0;min-height:49px;color:var(--green-900);background:#fff;border:1px solid #bdcec2;border-radius:13px;padding:9px 12px;font-size:1rem}.scanner-manual button{min-height:49px;padding:0 14px}.bottom-nav{z-index:20;width:min(100%,760px);padding:8px 10px calc(8px + env(safe-area-inset-bottom));-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);background:#fffdf7f5;border-top:1px solid #2f6b4f24;grid-template-columns:repeat(4,1fr);display:grid;position:fixed;bottom:0;left:50%;transform:translate(-50%)}.bottom-nav button{color:#75847c;cursor:pointer;background:0 0;border:0;border-radius:17px;flex-direction:column;justify-content:center;align-items:center;gap:3px;min-height:62px;font-size:.72rem;font-weight:800;display:flex}.bottom-nav button.active{color:var(--green-800);background:var(--green-100)}.nav-icon{font-size:1.35rem;line-height:1}.update-notice{z-index:30;left:50%;bottom:calc(86px + env(safe-area-inset-bottom));color:#fff;background:var(--green-900);border-radius:18px;align-items:center;gap:14px;width:min(100% - 24px,680px);padding:14px;display:flex;position:fixed;transform:translate(-50%);box-shadow:0 16px 48px #19382b47}.update-notice div{flex:1;gap:2px;display:grid}.update-notice span{color:#ffffffb8;font-size:.78rem}.update-notice button{color:#5b3417;background:var(--orange-200);border:0;border-radius:12px;min-height:44px;padding:0 14px;font-weight:900}@media (width>=620px){.main-content{padding:28px 28px 36px}.topbar{padding-left:28px;padding-right:28px}.action-grid{grid-template-columns:repeat(4,1fr)}.action-card{grid-template-columns:1fr auto;min-height:168px}.user-badge>div{display:block}.modal-backdrop{place-items:center}}@media (width<=370px){.topbar{align-items:flex-start}.connection-badge{padding:7px;font-size:0}.connection-badge span{margin:0}.auth-card{border-radius:24px;padding:22px 18px}.welcome-card{padding:20px}.action-card{min-height:132px;padding:14px}.catalog-tools{display:grid}.product-card{grid-template-columns:auto minmax(0,1fr)}.product-actions{grid-column:1/-1;grid-template-columns:1fr 1fr}.form-row{grid-template-columns:1fr}.family-list article{grid-template-columns:auto minmax(0,1fr)}.family-list select,.family-list .user-state{width:100%}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
