*{box-sizing:border-box}:root{--bg:#f7f8f5;--surface:#fff;--text:#1f2a24;--muted:#69756d;--border:#dfe5e0;--primary:#183f37;--accent:#267d6f;--teal-bg:#dcefe9;--yellow-bg:#fff1cf;--red-bg:#f9dddd}body{margin:0;min-width:320px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text)}button,input,textarea{font:inherit}button{cursor:pointer}.screen{display:none}.screen.active{display:block}.page{max-width:430px;min-height:100vh;margin:0 auto;padding:20px 16px 104px}.brand-logo{width:100px;height:30px;background-image:url("/assets/guawa%20logo.png");background-size:contain;background-position:left center;background-repeat:no-repeat;mix-blend-mode:multiply}h1{margin:8px 0 4px;font-size:28px;line-height:1.2;font-weight:850}.sub{max-width:330px;color:var(--muted);font-size:14px;line-height:1.5}.topbar{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.add,.back{flex:0 0 auto;width:46px;height:46px;border-radius:15px;font-size:24px;line-height:1;font-weight:800}.add{border:0;background:var(--primary);color:#fff}.back{border:1px solid var(--border);background:#fff;color:var(--primary)}.datebar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:24px;padding:12px 13px;border:1px solid var(--border);border-radius:16px;background:#fff}.date-main{font-size:15px;font-weight:800}.date-sub{margin-top:3px;font-size:12px;color:#7a857e}.date-action{min-height:38px;padding:0 12px;border:0;border-radius:11px;background:#eef4f1;color:var(--accent);font-size:13px;font-weight:800}#dateInput{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.rangebar{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-top:12px}.range-btn{min-height:40px;border:1px solid var(--border);border-radius:12px;background:#fff;color:#68756d;font-size:13px;font-weight:800}.range-btn.active{border-color:var(--primary);background:var(--primary);color:#fff}.overview{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:12px}.overview-card{padding:11px 9px;border:1px solid var(--border);border-radius:15px;text-align:left;cursor:pointer;transition:.15s ease}.overview-card[aria-pressed="true"]{box-shadow:0 0 0 3px #fff,0 0 0 5px currentColor;transform:translateY(-1px)}.overview-card.good{background:var(--teal-bg);border-color:#c7e2da}.overview-card.warn{background:var(--yellow-bg);border-color:#eddba8}.overview-card.bad{background:var(--red-bg);border-color:#ecc7c7}.overview-stars{display:block;margin-bottom:4px;font-size:11px;line-height:1;letter-spacing:.3px;font-weight:900;white-space:nowrap}.overview-label{display:block;font-size:11px;line-height:1.3;font-weight:750}.overview-card.good .overview-label,.overview-card.good .overview-value{color:var(--accent)}.overview-card.warn .overview-label,.overview-card.warn .overview-value{color:#8a681f}.overview-card.bad .overview-label,.overview-card.bad .overview-value{color:#9b4747}.overview-value{display:block;margin-top:5px;font-size:17px;font-weight:600}.section{margin-top:22px}.section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:11px}.day-group-head{display:flex;align-items:center;justify-content:space-between;margin:18px 2px 9px}.day-group-head:first-child{margin-top:2px}.day-group-title{font-size:14px;font-weight:850;color:#415048}.day-group-count{font-size:11px;color:#88918c}.section-title{font-size:17px;font-weight:850;margin-bottom:10px}.count{font-size:12px;color:#88918c}.meal-card{display:grid;grid-template-columns:72px minmax(0,1fr) auto;gap:12px;align-items:center;width:100%;margin-bottom:10px;padding:12px;border:1px solid var(--border);border-radius:18px;background:#fff;text-align:left;color:inherit}.thumb{width:72px;height:68px;border-radius:13px;background:#edf1ee;object-fit:cover;display:block}.meal-time{margin-bottom:5px;font-size:13px;line-height:1.4;color:#5f6d65}.meal-name{font-size:16px;font-weight:850;line-height:1.4}.meal-actions{display:grid;grid-template-columns:repeat(3,1fr);grid-column:1/-1;gap:7px;margin-top:1px;padding-top:10px;border-top:1px solid #edf0ee}.meal-action{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:42px;padding:6px 8px;border-radius:10px;background:#fff;font-size:13px;font-weight:800;white-space:nowrap}.meal-action svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.meal-view{border:1px solid #cfded8;color:var(--accent)}.meal-share{border:1px solid #cfded8;color:var(--accent)}.meal-delete{border:1px solid #ead3d3;color:#a24d4d}.badge{min-width:46px;padding:6px 8px;border-radius:999px;text-align:center;font-size:12px;font-weight:900;line-height:1;letter-spacing:1px;white-space:nowrap}.teal{background:var(--teal-bg);color:var(--accent)}.yellow{background:var(--yellow-bg);color:#8a681f}.red{background:var(--red-bg);color:#9b4747}.empty-state{padding:28px 18px;border:1px dashed #cfd8d1;border-radius:18px;background:#fff;text-align:center;color:#748078;font-size:14px;line-height:1.55}.bottom-bar{position:fixed;left:50%;bottom:0;z-index:20;width:min(430px,100%);transform:translateX(-50%);padding:18px 16px 16px;background:linear-gradient(to top,var(--bg) 72%,rgba(247,248,245,.94) 86%,rgba(247,248,245,0))}.record-button,.analyze{width:100%;min-height:52px;border:0;border-radius:15px;background:var(--primary);color:#fff;font-size:15px;font-weight:850;box-shadow:0 8px 22px rgba(24,63,55,.16)}.field-card,.feedback{background:#fff;border:1px solid var(--border);border-radius:16px}.field-card{padding:14px}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.field-label{display:block;font-size:13px;color:#5f6d65;margin-bottom:7px}.field-input{width:100%;min-height:48px;border:1px solid var(--border);border-radius:12px;background:#fff;padding:0 12px;font-size:16px;font-weight:800;color:var(--text)}.photo-box{margin-top:10px;background:#fff;border:1.5px dashed #cfd8d1;border-radius:18px;padding:24px 18px;text-align:center}.camera{width:54px;height:54px;margin:0 auto 12px;border-radius:17px;background:#e8f1ed;display:flex;align-items:center;justify-content:center;color:var(--accent);font-size:24px}.photo-title{font-size:16px;font-weight:850}.photo-sub,.hint{margin-top:6px;font-size:13px;line-height:1.55;color:#5f6d65}.photo-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:15px}.photo-actions button,.result-actions button{width:100%;min-height:48px;border-radius:12px;font-size:14px;font-weight:800}.result-actions button:disabled{opacity:.6;cursor:not-allowed}.primary-soft{border:0;background:var(--primary);color:#fff}.secondary{border:1px solid var(--border);background:#fff;color:#415048}.file-input{display:none}.photo-list{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}.photo-item{position:relative;aspect-ratio:1;border-radius:12px;overflow:hidden;background:#eef1ee;border:1px solid var(--border)}.photo-item img{width:100%;height:100%;object-fit:cover;display:block}.photo-remove{position:absolute;top:5px;right:5px;width:26px;height:26px;border:0;border-radius:50%;background:rgba(31,42,36,.78);color:#fff;font-size:15px}.photo-count{margin-top:9px;font-size:13px;color:#5f6d65}textarea{width:100%;min-height:104px;resize:vertical;border:1px solid var(--border);border-radius:15px;background:#fff;padding:14px 15px;font-size:15px;line-height:1.55;color:var(--text);transition:border-color .15s ease,box-shadow .15s ease}textarea:focus{outline:0;border-color:var(--accent);box-shadow:0 0 0 3px rgba(38,125,111,.13)}textarea::placeholder{color:#8a938e;font-size:14px}.meal-notes-composer{display:flex;align-items:flex-end;gap:7px;width:100%;min-height:52px;padding:4px 5px 4px 2px;border:1px solid var(--border);border-radius:17px;background:#fff;transition:border-color .15s ease,box-shadow .15s ease}.meal-notes-composer:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px rgba(38,125,111,.13)}.meal-notes-composer textarea{flex:1;width:auto;min-height:42px;max-height:124px;margin:0;padding:9px 8px 9px 12px;resize:none;overflow-y:hidden;border:0;border-radius:13px;background:transparent;box-shadow:none;font-size:15px;line-height:24px}.meal-notes-composer textarea:focus{border:0;box-shadow:none}.meal-notes-composer textarea::placeholder{font-size:14px}.meal-voice-button{display:inline-flex;flex:0 0 42px;align-items:center;justify-content:center;width:42px;height:42px;margin:0;border:0;border-radius:50%;background:#eef4f1;color:var(--primary);transition:background .15s ease,color .15s ease,transform .15s ease}.meal-voice-button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.meal-voice-button.recording{background:#f9dddd;color:#a24d4d;animation:voicePulse 1.25s ease-in-out infinite}.meal-voice-button.processing{background:#dcefe9;color:var(--accent)}.meal-voice-button:disabled{cursor:wait;opacity:.75}.meal-voice-button:not(:disabled):active{transform:scale(.95)}.meal-voice-status{min-height:18px;margin:7px 4px 0;font-size:12px;line-height:1.45;color:#6d7972}.meal-voice-status.error{color:#a24d4d}@keyframes voicePulse{0%,100%{box-shadow:0 0 0 0 rgba(162,77,77,.22)}50%{box-shadow:0 0 0 7px rgba(162,77,77,0)}}.analyze{margin-top:26px}.analyze.ready-fixed{position:fixed;left:50%;bottom:16px;z-index:30;width:min(398px,calc(100% - 32px));margin:0;transform:translateX(-50%);box-shadow:0 0 0 12px var(--bg),0 8px 22px rgba(24,63,55,.18)}.recordScreen-ready .page{padding-bottom:118px!important}.analyze:disabled{opacity:.55;cursor:not-allowed}.result-photo-wrap{display:none;margin-top:18px;border-radius:18px;overflow:hidden;border:1px solid var(--border);background:#edf1ee}.result-photo-wrap.show{display:block}.result-photo{display:block;width:100%;height:210px;object-fit:cover}.result-notes{display:none;margin-top:12px;padding:13px 14px;border:1px solid var(--border);border-radius:15px;background:#fff}.result-notes.show{display:block}.result-notes-label{font-size:11px;font-weight:800;color:#839087}.result-notes-text{margin-top:5px;font-size:14px;line-height:1.55;color:#405049;white-space:pre-wrap}.result-hero{margin-top:18px;padding:18px;border-radius:18px;border:1px solid}.level-good{background:var(--teal-bg);border-color:#c7e2da}.level-warn{background:var(--yellow-bg);border-color:#eddba8}.level-bad{background:var(--red-bg);border-color:#ecc7c7}.result-label{font-size:12px;font-weight:800;letter-spacing:.06em;color:#5f776d}.result-stars{margin-top:7px;font-size:22px;font-weight:900;letter-spacing:2px;line-height:1}.result-level{margin-top:8px;font-size:24px;font-weight:900}.level-good .result-stars,.level-good .result-level{color:var(--accent)}.level-warn .result-stars,.level-warn .result-level{color:#8a681f}.level-bad .result-stars,.level-bad .result-level{color:#9b4747}.result-summary{margin-top:8px;font-size:14px;line-height:1.6;color:#405049}.uncertainty{margin-top:9px;font-size:12px;line-height:1.5;color:#6f7c74}.food-table{overflow:hidden;border:1px solid var(--border);border-radius:16px;background:#fff}.food-head,.food-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px}.food-head{padding:10px 14px;border-bottom:1px solid #edf0ee;color:#7a857e;font-size:11px}.food-head span:last-child{text-align:right}.food-row{padding:13px 14px}.food-row+.food-row{border-top:1px solid #edf0ee}.food-name{font-size:15px;font-weight:850}.food-role{margin-top:4px;font-size:13px;font-weight:650;color:#68756d}.impact-badge{min-width:48px;padding:6px 9px;border-radius:999px;text-align:center;font-size:12px;font-weight:850;white-space:nowrap}.impact-low{background:var(--teal-bg);color:var(--accent)}.impact-medium{background:var(--yellow-bg);color:#8a681f}.impact-high{background:var(--red-bg);color:#9b4747}.eating-tip{display:none;margin-top:14px;padding:14px 15px;border:1px solid #c7e2da;border-radius:16px;background:var(--teal-bg)}.eating-tip.show{display:block}.eating-tip-title{font-size:14px;font-weight:850;color:var(--accent)}.eating-tip-text{margin-top:5px;font-size:15px;line-height:1.6;color:#405049}.feedback{overflow:hidden}.feedback-section .section-title{display:flex;align-items:center;gap:8px}.feedback-title-icon{display:inline-flex;align-items:center;justify-content:center;width:25px;height:25px;border-radius:50%;font-size:14px;font-weight:900}.feedback-section.good-feedback .feedback-title-icon{background:var(--teal-bg);color:var(--accent)}.feedback-section.attention-feedback .feedback-title-icon{background:var(--yellow-bg);color:#8a681f}.feedback-section.good-feedback .feedback{border-color:#c7e2da;background:#f3faf7}.feedback-section.attention-feedback .feedback{border-color:#eddba8;background:#fffbf1}.feedback-row{position:relative;padding:13px 14px 13px 43px;font-size:14px;line-height:1.55}.feedback-row::before{position:absolute;left:15px;top:14px;display:flex;align-items:center;justify-content:center;width:19px;height:19px;border-radius:50%;font-size:11px;font-weight:900}.good-feedback .feedback-row::before{content:'✓';background:var(--teal-bg);color:var(--accent)}.attention-feedback .feedback-row::before{content:'!';background:var(--yellow-bg);color:#8a681f}.good-feedback .feedback-row+.feedback-row{border-top:1px solid #dcece6}.attention-feedback .feedback-row+.feedback-row{border-top:1px solid #f0e3bd}.empty-feedback{padding:13px 14px;color:#7b867f;font-size:13px}.gualeaf-footer{display:grid;grid-template-columns:minmax(0,1fr) 64px;align-items:center;gap:12px;margin-top:26px;padding:14px 8px 2px;border-top:1px solid #dfe7e2;color:#627168;font-size:13px;line-height:1.5;text-align:left}.gualeaf-footer[hidden]{display:none}.gualeaf-footer img{display:block;width:64px;height:64px;object-fit:contain;object-position:center}.gualeaf-footer strong{color:#526b42;font-weight:850}.result-actions{position:fixed;left:50%;bottom:0;z-index:30;display:grid;grid-template-columns:1fr;gap:9px;width:min(430px,100%);margin:0;transform:translateX(-50%);padding:10px 16px 16px;background:linear-gradient(to top,var(--bg) 78%,rgba(247,248,245,.96) 90%,rgba(247,248,245,0));justify-items:stretch}.save-hint{grid-column:1/-1;margin-bottom:1px;color:#405049;font-size:13px;font-weight:750;text-align:center}.share-result{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;gap:6px;min-width:78px;min-height:44px;padding:0 11px;border:1px solid #c8d9d2;border-radius:13px;background:#fff;color:var(--accent);font-size:13px;font-weight:850}.share-result svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.delete-record{display:none;width:100%;min-height:46px;margin-top:10px;border:1px solid #e4caca;border-radius:13px;background:#fff;color:#a24d4d;font-size:13px;font-weight:800}.share-preview{position:fixed;inset:0;z-index:80;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(20,32,27,.66);opacity:0;visibility:hidden;pointer-events:none;transition:.18s ease}.share-preview.show{opacity:1;visibility:visible;pointer-events:auto}.share-dialog{width:min(390px,100%);max-height:calc(100vh - 36px);overflow:auto;padding:15px;border-radius:20px;background:var(--bg);box-shadow:0 24px 70px rgba(0,0,0,.3)}.share-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.share-dialog-title{font-size:17px;font-weight:900}.share-close{width:40px;height:40px;border:1px solid var(--border);border-radius:12px;background:#fff;color:#415048;font-size:22px}.share-card-preview{display:block;width:100%;border-radius:15px;background:#fff;box-shadow:0 4px 18px rgba(24,63,55,.1)}.share-dialog-actions{display:grid;grid-template-columns:1fr 1.35fr;gap:9px;margin-top:13px}.share-dialog-actions button{min-height:48px;border-radius:12px;font-size:14px;font-weight:850}.analysis-loading{position:fixed;inset:0;z-index:60;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(247,248,245,.96);backdrop-filter:blur(10px);opacity:0;visibility:hidden;pointer-events:none;transition:.22s ease}.analysis-loading.show{opacity:1;visibility:visible;pointer-events:auto}.loading-content{text-align:center}.loading-visual{position:relative;width:156px;height:156px;margin:0 auto 28px;display:flex;align-items:center;justify-content:center}.loading-ring{position:absolute;border:1.5px solid rgba(38,125,111,.24);border-radius:50%;animation:loadingPulse 2.2s ease-in-out infinite}.loading-ring.one{inset:0}.loading-ring.two{inset:17px;animation-delay:.35s}.loading-ring.three{inset:34px;animation-delay:.7s}.loading-core{position:relative;z-index:2;width:74px;height:74px;border-radius:24px;display:flex;align-items:center;justify-content:center;background:var(--primary);color:#fff;box-shadow:0 16px 36px rgba(24,63,55,.24);animation:loadingFloat 2.2s ease-in-out infinite}.loading-core svg{width:38px;height:38px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.loading-spark{position:absolute;color:var(--accent);font-weight:900;animation:loadingSpark 1.8s ease-in-out infinite}.loading-spark.a{top:20px;right:18px;font-size:22px}.loading-spark.b{left:16px;bottom:24px;font-size:15px;animation-delay:.65s}.loading-title{font-size:22px;font-weight:900;color:var(--text)}.loading-sub{max-width:300px;min-height:22px;margin:9px auto 0;color:var(--muted);font-size:14px;line-height:1.5}.loading-error-actions{display:none;grid-template-columns:1fr 1fr;gap:9px;width:min(310px,calc(100vw - 48px));margin:24px auto 0}.loading-error-actions button{min-height:44px;border-radius:12px;font-size:13px;font-weight:850}.analysis-loading.error .loading-ring{border-color:rgba(162,77,77,.26);animation:none}.analysis-loading.error .loading-core{background:#a24d4d;animation:none}.analysis-loading.error .loading-spark{color:#a24d4d;animation:none}.analysis-loading.error .loading-dots{display:none}.analysis-loading.error .loading-error-actions{display:grid}.loading-dots{display:flex;justify-content:center;gap:6px;margin-top:20px}.loading-dots span{width:7px;height:7px;border-radius:50%;background:var(--accent);animation:loadingDot 1.2s ease-in-out infinite}.loading-dots span:nth-child(2){animation-delay:.15s}.loading-dots span:nth-child(3){animation-delay:.3s}@keyframes loadingPulse{0%,100%{transform:scale(.86);opacity:.22}50%{transform:scale(1);opacity:1}}@keyframes loadingFloat{0%,100%{transform:translateY(3px)}50%{transform:translateY(-5px)}}@keyframes loadingSpark{0%,100%{transform:scale(.7) rotate(0);opacity:.35}50%{transform:scale(1.15) rotate(16deg);opacity:1}}@keyframes loadingDot{0%,60%,100%{transform:translateY(0);opacity:.35}30%{transform:translateY(-6px);opacity:1}}@media(prefers-reduced-motion:reduce){.loading-ring,.loading-core,.loading-spark,.loading-dots span{animation:none}}.toast{position:fixed;left:50%;bottom:24px;z-index:70;transform:translateX(-50%) translateY(12px);width:min(350px,calc(100% - 32px));padding:11px 14px;border-radius:12px;background:#26352f;color:#fff;font-size:13px;text-align:center;opacity:0;pointer-events:none;transition:.18s ease}.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}@media(max-width:360px){.meal-card{grid-template-columns:62px minmax(0,1fr) auto}.thumb{width:62px;height:60px}.badge{grid-column:auto;justify-self:end}.meal-action{padding:6px 5px}.field-row{grid-template-columns:1fr}}

body.guawa-dialog-open{overflow:hidden}.guawa-dialog-overlay{position:fixed;inset:0;z-index:120000;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(18,38,32,.38);backdrop-filter:blur(2px);animation:guawaDialogFade .16s ease-out}.guawa-dialog-panel{width:min(100%,380px);padding:24px;background:#fff;border:1px solid #dfe5e0;border-radius:22px;box-shadow:0 22px 60px rgba(24,63,55,.2);animation:guawaDialogUp .2s ease-out}.guawa-dialog-title{margin:0;color:#183f37;font-size:20px;font-weight:850;line-height:1.35}.guawa-dialog-message{margin:10px 0 0;color:#4f5f57;font-size:16px;font-weight:560;line-height:1.65;white-space:pre-line}.guawa-dialog-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:22px}.guawa-dialog-actions.single{grid-template-columns:1fr}.guawa-dialog-button{min-height:52px;padding:10px 14px;border:1px solid #d5dfda;border-radius:14px;background:#fff;color:#183f37;font-size:16px;font-weight:800}.guawa-dialog-button:focus-visible{outline:3px solid rgba(38,125,111,.25);outline-offset:2px}.guawa-dialog-confirm{border-color:#183f37;background:#183f37;color:#fff}.guawa-dialog-confirm.danger{border-color:#c55353;background:#c55353;color:#fff}@keyframes guawaDialogFade{from{opacity:0}to{opacity:1}}@keyframes guawaDialogUp{from{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:none}}@media(max-width:520px){.guawa-dialog-overlay{align-items:flex-end;padding:12px}.guawa-dialog-panel{width:100%;padding:22px 18px calc(18px + env(safe-area-inset-bottom));border-radius:24px 24px 18px 18px}.guawa-dialog-title{font-size:21px}.guawa-dialog-message{font-size:16px}}@media(prefers-reduced-motion:reduce){.guawa-dialog-overlay,.guawa-dialog-panel{animation:none}}

#homeScreen .page{padding-bottom:112px}.bottom-bar{display:grid;grid-template-columns:2fr 3fr;gap:9px}.glucose-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;width:100%;min-height:52px;border:1px solid #efcaca;border-radius:15px;background:#fff1f1;color:#a84a4a;font-size:14px;font-weight:850}.glucose-button svg,.record-button svg{width:19px;height:19px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.record-button{display:inline-flex;align-items:center;justify-content:center;gap:7px}.glucose-modal{position:fixed;inset:0;z-index:90;display:flex;align-items:flex-end;justify-content:center;background:rgba(20,32,27,.55);opacity:0;visibility:hidden;pointer-events:none;transition:.18s ease}.glucose-modal.show{opacity:1;visibility:visible;pointer-events:auto}.glucose-sheet{width:min(430px,100%);padding:20px 16px max(18px,env(safe-area-inset-bottom));border-radius:24px 24px 0 0;background:var(--bg);box-shadow:0 -18px 60px rgba(0,0,0,.22)}.glucose-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.glucose-title{font-size:22px;font-weight:900}.glucose-close{width:42px;height:42px;border:0;border-radius:50%;background:#e9efec;color:#5f6d65;font-size:25px}.glucose-fields{padding:15px;border:1px solid var(--border);border-radius:17px;background:#fff}.glucose-value-wrap{position:relative;margin-top:14px}.glucose-value{width:100%;min-height:58px;padding:0 92px 0 14px;border:1px solid var(--border);border-radius:13px;background:#fff;color:var(--text);font-size:22px;font-weight:900}.glucose-unit{position:absolute;right:14px;top:50%;transform:translateY(-50%);color:#849088;font-size:14px;font-weight:800}.glucose-save{width:100%;min-height:52px;margin-top:16px;border:0;border-radius:15px;background:var(--primary);color:#fff;font-size:15px;font-weight:850}.glucose-card{display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:12px;align-items:center;margin-bottom:10px;padding:14px;border:1px solid var(--border);border-radius:18px;background:#fff}.glucose-icon{display:flex;width:52px;height:52px;align-items:center;justify-content:center;border-radius:15px}.glucose-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.glucose-time{margin-bottom:4px;color:#68756d;font-size:13px}.glucose-reading{font-size:22px;font-weight:900}.glucose-reading span{font-size:13px;color:#718078}.glucose-card.glucose-good .glucose-icon{background:#e5f3ed;color:#267d6f}.glucose-card.glucose-good .glucose-reading{color:#267d6f}.glucose-card.glucose-warn .glucose-icon{background:#fff3d7;color:#a57418}.glucose-card.glucose-warn .glucose-reading{color:#9a6810}.glucose-card.glucose-high .glucose-icon,.glucose-card.glucose-low .glucose-icon{background:#fbe7e7;color:#b44e4e}.glucose-card.glucose-high .glucose-reading,.glucose-card.glucose-low .glucose-reading{color:#a84141}.glucose-delete{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border:1px solid #ead3d3;border-radius:12px;background:#fff;color:#a24d4d}.glucose-delete svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.glucose-error{min-height:18px;margin-top:7px;color:#a24d4d;font-size:12px}
.glucose-number-row{display:grid;grid-template-columns:minmax(0,1fr) 18px 76px auto;gap:8px;align-items:center}.glucose-whole,.glucose-decimal{min-height:58px;border:1px solid var(--border);border-radius:13px;background:#fff;color:var(--text);font-size:22px;font-weight:900;text-align:center}.glucose-whole{width:100%;padding:0 10px}.glucose-decimal{width:76px;padding:0 8px}.glucose-dot{font-size:28px;font-weight:900;text-align:center}.glucose-number-row .glucose-unit{position:static;transform:none;white-space:nowrap}
.glucose-trend{display:none;margin-top:12px;border:1px solid var(--border);border-radius:17px;background:#fff;overflow:hidden}.glucose-trend.show{display:block}.glucose-trend-head{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:50px;padding:0 14px;border:0;background:#fff;color:var(--text);text-align:left}.glucose-trend-title{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:900}.glucose-trend-title svg{width:17px;height:17px;fill:none;stroke:#a84a4a;stroke-width:1.9}.glucose-trend-count{color:#7b867f;font-size:12px;font-weight:700}.glucose-trend-toggle{display:inline-flex;align-items:center;gap:4px;color:#7b867f;font-size:12px;font-weight:800}.glucose-trend-chevron{font-size:16px;line-height:1}.glucose-trend-body{padding:0 10px 10px}.glucose-trend.collapsed .glucose-trend-body{display:none}.glucose-chart{display:block;width:100%;height:132px}.glucose-chart-grid{stroke:#edf0ee;stroke-width:1}.glucose-chart-line{fill:none;stroke:#a84a4a;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}.glucose-chart-dot{fill:#fff;stroke:#a84a4a;stroke-width:2.5}.glucose-chart-text{fill:#7b867f;font:11px system-ui}.glucose-chart-value{fill:#7e3434;font:800 12px system-ui}

#shareDiary:disabled{border-color:#d9dedb;background:#f1f3f1;color:#a7afaa;opacity:1;cursor:not-allowed;box-shadow:none}

.ampm-time{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) minmax(54px,1.15fr);align-items:center;gap:4px}
.ampm-time select{min-width:0;width:100%;height:48px;padding:0 4px;border:1px solid var(--border);border-radius:10px;background:#fff;color:var(--text);font-size:15px;font-weight:800;text-align:center}
.ampm-time span{color:#6e7972;font-size:18px;font-weight:900}

.range-dates{margin:11px 2px 0;color:#59675f;font-size:13px;font-weight:800}
