:root{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;color:#16181c;background:#f7f8fa;font-synthesis:none;font-weight:400;--bg:#f7f8fa;--surface:#fff;--ink:#16181c;--muted:#626873;--line:#dde1e6;--green:#1c6b54}*{box-sizing:border-box}body{margin:0;font-size:16px;line-height:1.55}button,input,select,textarea{font:inherit}button{cursor:pointer;color:inherit;-webkit-tap-highlight-color:transparent;min-height:44px}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--green);outline-offset:3px}input:focus,select:focus,textarea:focus{outline:2px solid #1c6b5430;outline-offset:1px;border-color:var(--green)}h1,h2,h3,p{margin-top:0}h1{font-size:28px;line-height:1.35;font-weight:650;letter-spacing:-.025em;margin-bottom:10px}h2{font-size:20px;font-weight:600;line-height:1.4;margin-bottom:16px}h3{font-size:16px;font-weight:600;margin-bottom:6px}p{margin-bottom:16px}svg{flex-shrink:0}input,select,textarea{max-width:100%;min-width:0;width:100%;min-height:48px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:10px 12px;color:var(--ink)}input[type=checkbox]{width:20px;min-height:20px;accent-color:var(--green)}input[type=file][hidden]{display:none}input[type=number]{font-variant-numeric:tabular-nums}textarea{resize:vertical;min-height:100px;line-height:1.6}label{font-size:14px;color:var(--muted)}small{font-size:14px}hr{border:0;border-top:1px solid var(--line);margin:24px 0}details{border-top:1px solid var(--line);padding:16px 0}summary{cursor:pointer;min-height:44px;font-size:14px;display:flex;align-items:center}pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:14px}.app-shell{max-width:560px;min-height:100dvh;margin:auto;background:var(--bg)}.screen{padding:32px 24px 120px}.page-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:28px}.page-header h1,.page-header h2{margin:0}.page-header>div{min-width:0}.page-header p{margin:4px 0 0}.page-header .actions{margin-top:0}.editor-header{position:sticky;top:0;z-index:3;background:var(--bg);padding:8px 0 14px}.editor-header h1{font-size:24px}.editor-header .actions{gap:4px}.editor-header .primary{padding:10px 14px}.name-field{grid-column:1/-1}.amount-column{text-align:right}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:44px;min-width:44px;height:44px;padding:0;border:0;background:transparent;border-radius:12px}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:50px;border-radius:13px;padding:12px 20px;font-weight:550;text-decoration:none}.primary{color:#fff;background:var(--ink);border:1px solid var(--ink)}.secondary{color:var(--ink);background:transparent;border:1px solid var(--line)}.muted{color:var(--muted);font-size:14px}.error{background:#f9eded;color:#8e3535;font-size:14px;border-radius:10px;padding:12px 14px;margin:12px 0;overflow-wrap:anywhere}.app-error{margin:16px 24px;display:flex;gap:12px;align-items:center}.actions{display:flex;gap:12px;align-items:center;margin-top:24px}.actions>.primary{flex:1}.actions.vertical{flex-direction:column}.empty-state{min-height:50vh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:8px}.empty-state>svg{color:var(--muted);margin-bottom:16px}.empty-state p{max-width:300px;color:var(--muted);font-size:14px}.card{background:#fff;border:1px solid #e7eaed;border-radius:16px;padding:20px;margin:16px 0}.row{display:flex;align-items:center;gap:12px}.stack{display:flex;flex-direction:column;gap:16px}.list-row{width:100%;display:flex;align-items:center;gap:14px;padding:18px 0;border:0;border-bottom:1px solid var(--line);background:transparent;text-align:left}.list-row>div{min-width:0;flex:1}.list-row p{margin:4px 0 0}.list-row img,.bottle-thumb{height:64px;width:52px;object-fit:cover;border-radius:9px;background:#fff}.list-row h3,.list-row strong{overflow-wrap:anywhere}.segmented{display:flex;padding:4px;gap:4px;border-radius:12px;background:#e9edf0;margin-bottom:20px}.segmented button{flex:1;border:0;border-radius:9px;background:transparent;font-size:14px}.segmented button.active,.segmented button[aria-pressed=true],.segmented button[aria-selected=true]{background:#fff;color:var(--green);font-weight:600}.capture-home{min-height:calc(100svh - 88px);padding:56px 24px 120px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.capture-home h1{max-width:330px}.capture-button{width:152px;height:152px;border-radius:50%;background:var(--ink);color:#fff;border:0;display:flex;align-items:center;justify-content:center;margin:30px 0 24px}.capture-button svg{width:48px;height:48px;stroke-width:1.5}.capture-home>.secondary{border:0;margin-top:12px;color:var(--muted);font-size:14px}.photo-guide{display:flex;justify-content:center;gap:26px;margin-top:32px;color:var(--muted);font-size:14px}.photo-guide>div{display:flex;flex-direction:column;align-items:center;gap:8px}.photo-guide svg{width:24px;height:24px;stroke-width:1.5}.photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}.photo-slot{min-width:0;text-align:center;position:relative;font-size:14px}.photo-slot>button:not(.icon-button){width:100%;aspect-ratio:3/4;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;background:#fff;border:1px dashed #aeb6bd;border-radius:14px}.photo-slot .icon-button{position:absolute;right:0;top:0;background:#fff;border:1px solid var(--line);width:36px;height:44px;min-width:36px}.photo-preview{display:block;width:100%;max-height:360px;object-fit:cover;aspect-ratio:3/4;border-radius:12px}.photo-slot p{font-size:14px;margin:10px 0 0}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.field{display:flex;flex-direction:column;gap:7px;min-width:0;margin-bottom:16px}.field>span,.field>label{font-size:14px;color:var(--muted)}.form-section{padding:22px 0;border-bottom:1px solid var(--line)}.form-section:first-of-type{padding-top:0}.ingredient-row{display:grid;grid-template-columns:minmax(0,1fr) 88px 76px 44px;gap:8px;align-items:end;margin:16px 0}.ingredient-row>*{min-width:0}.ingredient-row .field{margin:0}.detail-table{width:100%;border-collapse:collapse}.detail-table th,.detail-table td{padding:12px 0;text-align:left;border-bottom:1px solid var(--line);font-size:14px}.detail-table td:last-child{text-align:right;font-variant-numeric:tabular-nums}.ingredient-total{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid var(--line)}.ingredient-total>div{min-width:0}.ingredient-total p{margin:4px 0 0}.ingredient-total strong{font-variant-numeric:tabular-nums;white-space:nowrap}.progress-track{height:4px;border-radius:2px;background:#e2e9e5;overflow:hidden;margin:8px 0 0}.progress-track>div{height:100%;background:var(--green)}.record-panel{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px;margin:20px 0}.record-row{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:14px 0;border-bottom:1px solid var(--line)}.record-row>div:first-child{flex:1;min-width:0}.record-row input{width:90px}.cycle-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.number-input{width:90px}.editor-dialog{padding:0;border:1px solid var(--line);background:var(--bg);width:calc(100% - 32px);max-width:560px;max-height:90dvh;border-radius:20px;overflow-y:auto;color:var(--ink)}.editor-dialog::backdrop{background:#16181c40}.editor-dialog .screen{padding-bottom:32px}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translate(-50%);width:min(100%,560px);display:grid;grid-template-columns:repeat(5,minmax(0,1fr));background:#fff;border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom);z-index:10}.bottom-nav button{width:100%;height:78px;border:0;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;font-size:14px;color:var(--muted)}.bottom-nav button[aria-current=page]{color:var(--green);font-weight:600}.capture-screen{padding-top:56px}.capture-hero{display:flex;flex-direction:column;align-items:center;text-align:center;margin-bottom:36px}.capture-hero h1{margin-bottom:8px}.capture-hero p{margin-bottom:0}.capture-hero .capture-button{margin:24px 0 12px;flex-shrink:0}.album-entry{display:inline-flex;align-items:center;gap:7px;border:0;background:transparent;padding:8px 12px;font-size:14px;color:var(--muted)}.capture-header{margin-bottom:36px}.capture-header p{margin:10px 0 0}.capture-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.capture-slot{position:relative;min-width:0;text-align:center}.capture-slot .photo-box{position:relative;display:grid;place-items:center;width:100%;aspect-ratio:1;border:1.5px dashed #aeb7bd;border-radius:16px;background:#fff;color:#818c92;padding:0;overflow:hidden}.capture-slot .photo-box.filled{border-style:solid}.capture-slot .photo-box img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.capture-slot h2{font-size:16px;margin:14px 0 5px}.capture-slot p{white-space:pre-line;margin:0;font-size:14px;line-height:1.6}.capture-slot .remove-photo{position:absolute;top:0;right:0;background:#fffffff2;border-radius:0 16px 0 12px}.capture-sources{display:flex;justify-content:center;gap:12px;margin-top:30px}.capture-sources .secondary{min-width:112px;background:#fff}.capture-note{text-align:center;margin:20px 0 0}.capture-submit{margin-top:32px;display:flex;flex-direction:column;align-items:center;gap:14px}.capture-submit>.primary{width:100%}.manual-entry{min-height:44px;padding:8px 14px;border:0;background:transparent;color:var(--muted);font-size:14px}.product-row{border-bottom:1px solid var(--line)}.product-summary{border-bottom:0;align-items:flex-start}.product-summary>.icon-button{align-self:center}.product-summary>svg{margin-top:4px}.batch-list{margin-left:44px;padding-bottom:12px}.batch-list .list-row{gap:12px;padding:14px 0}.batch-list .list-row:last-of-type{border-bottom:0}.batch-list .manual-entry{display:inline-flex;align-items:center;gap:6px;padding-left:0}.batch-code{display:grid;place-items:center;flex-shrink:0;width:28px;height:32px;border:1px solid var(--line);border-radius:6px;color:var(--muted);font-size:13px}.stock-alert{color:#956138;font-size:13px}.checkin-row{gap:10px}.check-button{color:#8c969b}.check-button.checked{color:var(--green)}.check-button:disabled{opacity:1}.expanded-chevron{transform:rotate(180deg)}.demo-banner{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:48px;padding:0 20px;background:#e8f1ec;color:var(--green);font-size:14px}.demo-banner button{border:0;background:transparent;font-size:14px;color:var(--green);padding:8px 0}.me-intro{padding:8px 0 28px}.me-row{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0;padding:0}.me-row svg:first-child{color:var(--muted)}.me-footer{padding-top:28px}.calendar-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.calendar-header h2{margin:0}.calendar-weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.calendar-weekdays{font-size:14px;color:var(--muted);text-align:center;margin-bottom:12px}.calendar-day{min-width:0;border:1px solid transparent;background:transparent;border-radius:12px;aspect-ratio:.85;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-variant-numeric:tabular-nums}.calendar-day small{font-size:14px;color:var(--muted)}.calendar-day.today{border-color:#a4c6b8}.calendar-day.selected{background:var(--ink);color:#fff}.calendar-day.selected small{color:#fff}.calendar-day.done:not(.selected){color:var(--green);background:#e7f0eb}.calendar-legend{display:flex;flex-wrap:wrap;gap:16px;margin:20px 0;font-size:14px;color:var(--muted)}.calendar-detail{border-top:1px solid var(--line);padding-top:24px;margin-top:24px}.photo-guide{padding:0;list-style:none}.photo-guide li{display:flex;flex-direction:column;gap:5px;max-width:112px}.photo-guide li span{white-space:pre-line}.capture-home{min-height:calc(100svh - 160px);padding:40px 0 28px}.capture-home .capture-button{order:1}.capture-home h1{order:0}.capture-home>p{order:0}.capture-home .photo-guide{order:2}.capture-home>.secondary{order:3}.photo-slot h2{font-size:16px;margin-bottom:4px}.photo-slot .actions{position:static;justify-content:center;margin-top:6px}.photo-slot .actions .icon-button{position:static;min-width:44px;width:44px;border:0;background:transparent}.dose-field{width:116px;min-width:116px;margin:0}.dose-field input{width:100%}.completion{display:flex;align-items:center;gap:10px;padding:16px 0;color:var(--green);font-weight:550}.ingredient-progress{padding-bottom:16px}.ingredient-progress .ingredient-total{border:0;padding-bottom:6px}.ingredient-progress strong{font-size:14px}.today-screen{padding-bottom:200px}.today-actions{position:fixed;bottom:90px;left:50%;transform:translate(-50%);width:calc(100% - 40px);max-width:512px;background:var(--bg);padding:10px 0;z-index:4}@media(max-width:360px){.calendar-weekdays,.calendar-grid{margin-left:-14px;margin-right:-14px;gap:0}.photo-guide{gap:18px}.editor-header h1{font-size:21px}.editor-header .primary{padding:10px;font-size:14px}}@media(max-width:480px){.screen{padding:24px 20px 116px}.editor-dialog{position:fixed;inset:0;margin:0;width:100%;max-width:100%;height:100dvh;max-height:100dvh;border:0;border-radius:0}.editor-dialog .screen{padding-top:calc(20px + env(safe-area-inset-top));padding-bottom:calc(28px + env(safe-area-inset-bottom))}.ingredient-row{grid-template-columns:minmax(0,1fr) 90px 44px}.ingredient-row>:first-child{grid-column:1/-1}.photo-grid{gap:8px}.card,.record-panel{padding:16px}}
