:root{--bg:#f7f7f2;--paper:#fff;--green:#285c4b;--green-soft:#e8efe7;--ink:#24372f;--muted:#7d867d;--line:#e7e9e1;--gold:#bb8a43;--orange:#ae6e31;--red:#ae5146;--radius:22px;--nav-height:76px}*{box-sizing:border-box}body{margin:0;background:var(--bg);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;color:var(--ink);font-size:15px;-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button{border:0}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid #b99b4d;outline-offset:3px}input,textarea,select{font-size:16px;color:var(--ink)}[hidden]{display:none!important}.shell{max-width:820px;margin:auto;padding:0 28px calc(180px + env(safe-area-inset-bottom))}.topbar{height:90px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;gap:9px;align-items:center;font-size:19px;font-weight:700;letter-spacing:1px}.brand-mark{background:var(--green);color:#fff;display:grid;place-items:center;width:34px;height:34px;border-radius:11px}.brand-mark svg{width:22px;height:22px}.local-tag{font-size:10px;letter-spacing:.5px;color:var(--muted);background:#ecede6;border-radius:5px;padding:4px 6px;font-weight:500}.icon-button{width:40px;height:40px;display:grid;place-items:center;background:transparent;color:var(--muted);border-radius:50%}svg{display:block;width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.heading-row{display:flex;align-items:center;justify-content:space-between;padding:20px 0 30px;gap:8px}.eyebrow{font-size:10px;letter-spacing:2px;color:#8d9987;font-weight:600;margin:0 0 14px}h1{font-size:38px;font-weight:650;letter-spacing:1px;line-height:1.5;margin:0}h1 span{color:var(--green)}.subtitle{color:var(--muted);font-size:13px;line-height:1.8;margin:10px 0 0}.hero-illustration{position:relative;flex:0 0 160px;width:160px;height:170px;background:radial-gradient(ellipse at 50% 56%,#e9eddf 0,transparent 70%);align-self:center}.bottle{position:absolute;border-radius:8px 8px 12px 12px;box-shadow:inset -10px 0 20px #00000007}.bottle:before{content:"";position:absolute;top:-15px;height:18px;left:15%;width:70%;border-radius:4px 4px 1px 1px;background:#bea786}.bottle:after{content:"";position:absolute;top:38%;left:17%;right:17%;height:24%;background:#ffffffb0;border-radius:2px;box-shadow:0 3px 0 #ffffff40}.bottle-one{height:93px;width:49px;background:#c7d4b9;left:27px;top:47px;transform:rotate(-8deg)}.bottle-two{height:113px;width:38px;background:#c8aa80;left:92px;top:24px;transform:rotate(8deg)}.bottle-two:before{background:#355844}.jar{position:absolute;background:#f1dfc2;width:64px;height:42px;top:109px;left:66px;border-radius:5px 5px 11px 11px;box-shadow:inset -8px -4px 15px #00000006}.jar:before{content:"";position:absolute;left:-2px;right:-2px;top:-9px;height:13px;border-radius:5px;background:#65816b}.jar:after{content:"";position:absolute;left:18px;right:18px;top:16px;height:2px;background:#bea276;box-shadow:0 5px 0 #bea276}.shelf{height:7px;background:#dbdfcf;position:absolute;left:10px;right:5px;bottom:16px;border-radius:50%;opacity:.65}.spark{position:absolute;left:14px;top:15px;color:#c3a46c;font-size:24px}.leaf{position:absolute;right:4px;top:68px;color:#90a88a;font-size:19px}.stats{background:#edf0e6;border:1px solid #e6eadf;border-radius:var(--radius);padding:23px 0;display:grid;grid-template-columns:1fr 1fr 1.35fr}.stats>div{padding-left:24px;min-width:0}.stats>div+div{border-left:1px solid #dce2d4}.stat-label{display:block;color:#74816f;font-size:11px;margin-bottom:10px}.stats strong{display:flex;align-items:baseline;gap:5px;font-size:29px;font-weight:600;letter-spacing:-.8px;font-variant-numeric:tabular-nums}.stats small{font-size:11px;font-weight:400;letter-spacing:0;color:#7a866f}.stats #stat-cost{font-size:27px}.cost-note{padding:0 8px}.muted{color:var(--muted);font-size:12px;line-height:1.8}.expiry-banner{display:flex;align-items:center;gap:10px;width:100%;margin-top:18px;padding:14px 16px;background:#faf0dc;border:1px solid #efe0bd;border-radius:14px;color:#88652f;text-align:left;font-size:12px}.expiry-banner svg{width:18px;height:18px}.expiry-banner>:nth-child(2){flex:1}.search-wrap{display:flex;align-items:center;gap:11px;background:white;border:1px solid var(--line);border-radius:14px;padding:0 16px;margin-top:25px;height:51px;color:#91988c}.search-wrap input{border:0;background:none;outline:none;width:100%;font-size:13px;height:100%;min-width:0}.search-wrap input::placeholder{color:#a0a598}.key-hint{font-size:10px;white-space:nowrap;color:#a4a99d;background:#f6f6f1;padding:5px 7px;border-radius:5px}.chips{display:flex;gap:8px;margin:18px -2px 25px;overflow-x:auto;scrollbar-width:none;padding:2px}.chips::-webkit-scrollbar{display:none}.chip{white-space:nowrap;border:1px solid transparent;border-radius:50px;padding:9px 13px;background:#eeefe8;color:#818777;font-size:11px;display:flex;gap:6px;align-items:center}.chip span{font-size:10px}.chip.active{background:var(--green);color:white}.list-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}h2{font-size:17px;font-weight:600;letter-spacing:.4px;margin:0}.list-heading select{border:0;background:transparent;color:#85907f;font-size:11px;max-width:110px;padding:7px 0}.stock-list{display:grid;grid-template-columns:1fr 1fr;gap:15px}.stock-card{min-width:0;border:1px solid var(--line);border-radius:18px;background:white;overflow:hidden}.stock-card-main{display:flex;gap:14px;padding:16px;cursor:pointer;position:relative;min-height:134px}.stock-photo{width:91px;height:110px;object-fit:cover;border-radius:11px;background:#f1f1eb;flex:0 0 91px}.photo-fallback{display:grid;place-items:center;color:#a1ab93}.photo-fallback svg{width:34px;height:34px}.stock-info{min-width:0;flex:1;padding-top:2px}.stock-info h3{margin:0 0 5px;font-weight:600;font-size:14px;line-height:1.5;overflow-wrap:anywhere}.stock-spec{font-size:11px;color:#93998b;margin:0 0 12px;min-height:14px}.stock-numbers{display:flex;gap:9px;font-size:11px;align-items:center;flex-wrap:wrap;line-height:1.5}.stock-numbers strong{font-size:19px;margin:0 3px;font-weight:650;color:var(--green)}.stock-numbers .cost{color:#8c9486}.stock-location{color:#8f9888;font-size:10px;margin:8px 0 0;overflow-wrap:anywhere;display:flex;align-items:center;gap:4px}.stock-location svg{width:12px;height:12px}.expiry-label{display:inline-flex;align-items:center;gap:4px;font-size:10px;border-radius:5px;padding:5px 6px;background:#eef3e9;color:#6b805b;margin-top:10px;line-height:1.5}.expiry-label.undated{background:#f2f2ee;color:#94998c}.expiry-label.soon{background:#fcf1df;color:#a27a3a}.expiry-label.expired{background:#fae9e4;color:#b46050}.stock-actions{display:flex;gap:8px;border-top:1px solid #f0f1eb;padding:10px 14px}.stock-actions button{flex:1;border-radius:7px;background:#eef3eb;color:#4c7057;padding:9px 4px;font-size:11px}.stock-actions .restock{background:#f5f5f0;color:#8b9380;flex:0 0 63px}.empty-state{text-align:center;padding:35px 0 20px}.empty-icon{width:74px;height:74px;border-radius:25px;background:#eaeee3;color:#8fa184;display:grid;place-items:center;margin:0 auto 20px}.empty-icon svg{width:34px;height:34px}.empty-state h2{font-size:19px}.empty-state p{color:#92998b;font-size:13px;line-height:1.9;margin:12px 0 20px}.primary,.secondary{display:inline-flex;justify-content:center;align-items:center;gap:8px;padding:14px 21px;border-radius:12px;font-size:14px;font-weight:500;min-height:48px}.primary{background:var(--green);color:white;box-shadow:0 3px 5px #285c4b08}.primary svg{width:19px;height:19px}.secondary{background:#f2f4ed;color:#58724f;border:1px solid #e4e9db}.full{width:100%}.empty-state .empty-tip{font-size:10px;margin:13px 0 0}.bottom-note{display:flex;justify-content:center;align-items:flex-start;gap:6px;font-size:10px;color:#a1a795;margin:24px auto 0;line-height:1.7;text-align:center;max-width:370px}.bottom-note svg{width:13px;height:13px;flex-shrink:0;margin-top:2px}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:820px;display:grid;grid-template-columns:repeat(4,1fr);background:#fbfcf8f5;backdrop-filter:blur(20px);border-top:1px solid #e8ebe1;padding:12px 10px calc(13px + env(safe-area-inset-bottom));z-index:10}.nav-item{position:relative;display:flex;flex-direction:column;gap:6px;align-items:center;font-size:10px;color:#9aa28e;background:transparent;padding:3px 0}.nav-item svg{width:22px;height:22px;stroke-width:1.6}.nav-item.active{color:var(--green);font-weight:600}.nav-dot{width:6px;height:6px;background:#c18a55;border-radius:50%;position:absolute;top:0;left:calc(50% + 12px)}.floating-add{position:fixed;bottom:calc(96px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);border-radius:50px;background:var(--green);color:#fff;display:flex;gap:8px;align-items:center;padding:16px 28px;box-shadow:0 5px 22px #254f3e2e;z-index:9;font-size:14px;white-space:nowrap}.floating-add svg{width:20px;height:20px}.page-title{font-size:30px;margin-top:4px}.history-list{margin-top:25px;display:flex;flex-direction:column;gap:10px}.history-item{background:white;border:1px solid var(--line);border-radius:15px;padding:17px;display:flex;gap:12px;align-items:center}.history-symbol{width:38px;height:38px;background:#edf2e7;color:#62835b;border-radius:12px;display:grid;place-items:center}.history-item.out .history-symbol{background:#f8efe2;color:#b38c54}.history-detail{flex:1;min-width:0}.history-detail h3{font-size:13px;margin:0 0 6px;overflow-wrap:anywhere}.history-detail p{font-size:11px;color:#949b8b;margin:0;line-height:1.8}.history-count{font-size:19px;color:var(--green);font-variant-numeric:tabular-nums}.history-item.out .history-count{color:#ad8450}.settings-card{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:23px;margin-top:20px}.settings-card h2{font-size:16px}.settings-card p,.settings-card li{font-size:12px;color:#829079;line-height:1.9}.settings-card .full+.full{margin-top:10px}.settings-icon{color:var(--green);margin-bottom:12px}.settings-card ol{padding-left:20px}.callout{background:#f5f4e9!important;border-radius:10px;padding:12px;color:#93864f!important;font-size:11px;line-height:1.9}.sheet{border:0;border-radius:26px 26px 0 0;width:min(100%,560px);max-width:100%;padding:0;background:white;color:var(--ink);position:fixed;inset:auto 0 0;margin:0 auto;max-height:94dvh;box-shadow:0 -10px 60px #24382b14;overflow:hidden}.sheet::backdrop{background:#1b33295c;backdrop-filter:blur(3px)}.sheet-inner{display:flex;flex-direction:column;max-height:94dvh;margin:0}.sheet-header{display:flex;align-items:center;justify-content:space-between;padding:23px 23px 16px;border-bottom:1px solid #f0f1eb;flex-shrink:0}.sheet-header .eyebrow{font-size:8px;margin-bottom:8px}.sheet-header h2{font-size:21px}.sheet-body{padding:20px 23px;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}.sheet-footer{padding:12px 23px calc(18px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:white;flex-shrink:0}.sheet-footer>p{font-size:10px;color:#a1a897;text-align:center;margin:0 0 10px}.photo-row{display:flex;gap:17px;align-items:center;margin-bottom:24px}.photo-picker{width:112px;height:126px;flex:0 0 112px;border-radius:15px;border:1.5px dashed #b7c5ac;background:#f2f5ec;overflow:hidden;color:#6a8361;padding:0}.photo-picker img{width:100%;height:100%;object-fit:cover}#cover-placeholder{display:flex;align-items:center;flex-direction:column;gap:8px}#cover-placeholder strong{font-size:11px;font-weight:500}#cover-placeholder small{font-size:9px;color:#9aa58e}#cover-placeholder svg{width:26px;height:26px;margin-bottom:3px}.photo-help strong{font-size:12px;font-weight:550}.photo-help p{font-size:11px;line-height:1.9;color:#98a08e;margin:8px 0;max-width:180px}.text-button{display:inline-flex;align-items:center;gap:5px;background:none;color:var(--green);font-size:11px;padding:5px 0}.text-button svg{width:16px;height:16px}.field{display:block;font-size:12px;font-weight:550;margin:0 0 20px}.required,.optional{font-size:10px;color:#a5ad9b;font-weight:400;margin-left:5px}.field input,.field textarea,.date-input,.language-select{display:block;border:1px solid #e3e8db;border-radius:10px;padding:13px 12px;width:100%;margin-top:9px;background:#fcfcf8;min-height:47px;outline:none}.field input:focus,.field textarea:focus,.date-input:focus{border-color:#7d9a70;box-shadow:0 0 0 3px #eef3e7}.field input::placeholder,.field textarea::placeholder{color:#b0b6a6;font-size:13px}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:15px;align-items:start}.field-row>.field{min-width:0}.stepper{display:flex;background:#fcfcf8;border:1px solid #e3e8db;border-radius:10px;height:48px;margin-top:9px;overflow:hidden}.stepper input{margin:0;padding:8px 0;text-align:center;border:0;border-radius:0;min-width:0;background:none;width:100%;appearance:textfield;-moz-appearance:textfield}.stepper input::-webkit-inner-spin-button{appearance:none}.stepper button{width:39px;flex:0 0 39px;color:#638256;background:transparent;font-size:19px}.money-input{position:relative}.money-input>span{position:absolute;left:13px;top:15px;color:#a0a98f;font-size:15px}.money-input input{padding-left:28px}.date-heading{display:flex;align-items:center;justify-content:space-between;margin:0 0 8px}.field-label{font-size:12px;font-weight:550}.date-input{margin:0;min-width:0;max-width:100%;appearance:none;-webkit-appearance:none}.field-tip{font-size:10px;color:#a3aa97;line-height:1.9;margin:8px 0 18px}.date-calculator{border:1px solid #e7ebdf;background:#fafbf6;border-radius:12px;padding:12px;margin:0 0 22px}.date-calculator summary{color:#7f8e72;font-size:11px;cursor:pointer}.date-calculator .field-row{margin-top:18px}.date-calculator .field{font-size:11px}.date-calculator .field-tip{margin-bottom:0}.danger-text{display:block;background:none;color:#bb7667;font-size:12px;padding:10px 0}.ocr-status{background:#f0f5e9;padding:13px;border-radius:12px;margin:0 0 18px}.ocr-status-top{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#6b825a}.ocr-status small{font-size:10px;line-height:1.7;color:#8b9c7b;display:block;margin-top:7px}progress{display:block;width:100%;height:5px;margin:9px 0;accent-color:var(--green)}.ocr-result{border:1px solid #e1e9d7;background:#fafcf7;padding:12px;border-radius:12px;font-size:11px;color:#71845f;margin-bottom:19px;line-height:1.8}.ocr-result p{margin:0 0 9px}.ocr-result details{color:#98a18b}.ocr-result pre{font-size:11px;white-space:pre-wrap;max-height:150px;overflow:auto;font-family:inherit;overflow-wrap:anywhere}.candidate-list{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px}.candidate-list button{background:#eaf0df;padding:7px 9px;border-radius:7px;color:#5d794a;font-size:11px}.compact-sheet .sheet-body{min-height:160px}.movement-product{font-size:18px;font-weight:600;line-height:1.7}.movement-product+.muted{margin-bottom:24px}.help-content>div{position:relative;padding-left:45px;margin-bottom:26px}.step-number{position:absolute;left:0;top:0;width:29px;height:29px;border-radius:10px;background:#edf2e5;display:grid;place-items:center;font-size:13px;color:#6e875b}.help-content h3{margin:0;font-size:14px;font-weight:600}.help-content p{font-size:12px;line-height:1.9;color:#8e9982;margin-top:6px}.toast{position:fixed;bottom:calc(165px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);max-width:90%;background:#263e32;color:#fff;border-radius:13px;box-shadow:0 6px 30px #0002;padding:15px 18px;display:flex;gap:16px;align-items:center;z-index:50;font-size:12px;line-height:1.6;width:max-content}.toast button{color:#dbdfb5;border:0;background:none;white-space:nowrap;font-size:12px}.month-toggle{font-size:11px;color:#8a967c;display:flex;align-items:center;gap:6px;margin-top:11px}.month-toggle input{accent-color:var(--green)}.language-wrap{margin:0 0 17px;display:flex;align-items:center;gap:10px;color:#8b987f;font-size:11px}.language-select{width:auto;flex:1;margin:0;font-size:12px;padding:10px;min-height:40px}.no-results{padding:40px 0;text-align:center;color:#96a18a;font-size:13px;grid-column:1/-1}
.heading-row{overflow:hidden}.list-heading select{max-width:155px}.sort-hint{margin:-5px 0 16px;font-size:10px}.sales-stats{display:grid;grid-template-columns:1fr 1fr;border-radius:20px;background:#edf0e6;padding:9px 19px;gap:0 16px}.sales-stats>div{padding:18px 0}.sales-stats span{display:block;font-size:11px;color:#7e8d71;margin-bottom:9px}.sales-stats strong{display:block;font-size:25px;font-weight:600;color:var(--green);overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.sales-stats small{font-size:11px;margin-left:5px;font-weight:400}.sales-section-heading{margin-top:30px}.customer-card,.sale-card{border:1px solid var(--line);background:white;border-radius:15px;padding:17px;margin-bottom:11px}.customer-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.customer-top strong{font-size:14px;overflow-wrap:anywhere}.customer-top span{font-size:11px;color:var(--green);background:#eef3e8;padding:6px 9px;border-radius:7px;white-space:nowrap}.customer-card p,.sale-card p{font-size:11px;color:#8a987d;line-height:1.9;margin:8px 0 0}.sale-card h3{font-size:13px;margin:0 0 7px;line-height:1.7}.sale-card .sale-money{color:var(--green);font-size:14px;font-weight:600}.bottom-nav{grid-template-columns:repeat(5,1fr)}.batch-item{border:1px solid var(--line);border-radius:13px;padding:15px;margin-top:13px}.batch-item h3{font-size:13px;margin:0 0 8px}.batch-item p{font-size:11px;color:#8c987f;line-height:1.8;margin:5px 0}.batch-item .text-button{display:block;margin-top:5px}.batch-item strong{color:var(--green)}.name-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.name-input{display:block;width:100%;min-height:47px;padding:13px 12px;background:#fcfcf8;border:1px solid #e3e8db;border-radius:10px;outline:none}.name-input:focus{border-color:#7d9a70;box-shadow:0 0 0 3px #eef3e7}.name-input::placeholder{color:#b0b6a6;font-size:13px}
@media(min-width:620px){.heading-row{padding:25px 15px 35px}.hero-illustration{margin-right:60px}.stats>div{padding-left:38px}.topbar{height:100px}.sheet{inset:50% 0 auto;transform:translateY(-50%);border-radius:25px;max-height:90dvh}.sheet-inner{max-height:90dvh}.floating-add{bottom:calc(100px + env(safe-area-inset-bottom))}}
@media(max-width:619px){.shell{padding-left:21px;padding-right:21px}.topbar{height:77px}.heading-row{padding:13px 0 25px}.hero-illustration{flex-basis:130px;transform:scale(.88);transform-origin:right center;margin-left:-5px;margin-right:-5px}h1{font-size:31px;line-height:1.5}.eyebrow{font-size:8px;letter-spacing:1.8px}.subtitle{font-size:11px}.stats{padding:20px 0}.stats>div{padding-left:17px}.stats strong{font-size:26px}.stats #stat-cost{font-size:25px}.stat-label{font-size:10px}.stock-list{grid-template-columns:1fr;gap:13px}.stock-card-main{padding:15px 16px;gap:17px}.stock-photo{width:93px;flex-basis:93px;height:116px}.stock-info h3{font-size:15px}.stock-spec{font-size:11px;margin-bottom:10px}.stock-numbers{font-size:12px}.stock-actions{padding:10px 15px}.stock-actions button{font-size:12px;padding:10px 4px}.stock-actions .restock{flex-basis:85px}.expiry-label{font-size:10px}.search-wrap{margin-top:23px}.key-hint{display:none}.page-title{font-size:28px}.brand{font-size:18px}}
@media(max-width:360px){.shell{padding-left:16px;padding-right:16px}h1{font-size:27px}.hero-illustration{flex-basis:110px;transform:scale(.73)}.stats>div{padding-left:12px}.stats #stat-cost{font-size:22px}.sheet-body{padding:18px}.sheet-header{padding:20px 18px 15px}.sheet-footer{padding-left:18px;padding-right:18px}.stock-photo{width:80px;flex-basis:80px}.stock-card-main{gap:12px}.local-tag{display:none}}
.photo-source-actions,.date-source-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:20px}.photo-source-actions button{padding:13px 7px;min-height:49px;font-size:14px}.photo-source-actions svg,.date-source-actions svg{width:19px;height:19px}.date-source-actions{margin-bottom:12px}.date-source-actions button{font-size:12px;min-height:44px;padding:10px 6px}.photo-row{margin-bottom:13px}
@media(prefers-reduced-motion:no-preference){.stock-card{animation:appear .22s ease-out}@keyframes appear{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}}
