.meal-photo-gallery{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}.meal-photo-tile{position:relative;flex:0 0 auto}.meal-photo-gallery .meal-photo-open{position:relative;display:block;border:0;border-radius:10px;overflow:hidden;padding:0;min-height:0;background:#e4edf8;color:#fff;touch-action:manipulation}.meal-photo-gallery .meal-photo-open img{display:block;width:100px;height:85px;object-fit:cover;margin:0}.meal-photo-gallery .meal-photo-open span{position:absolute;inset:auto 0 0;background:#14233bbd;font-size:11px;line-height:1.5;padding:2px 3px;text-align:center;color:#fff}.meal-photo-gallery .meal-photo-remove{position:absolute;top:-7px;right:-7px;display:grid;place-items:center;border:1px solid #d8e4f2;border-radius:50%;width:30px;height:30px;min-height:30px;background:#fff;color:#34506f;padding:5px;box-shadow:0 1px 4px #173f7820}.meal-photo-viewer[open]{display:flex;flex-direction:column;position:fixed;inset:0;width:100%;height:100dvh;max-width:none;max-height:none;margin:0;border:0;border-radius:0;padding:0;background:#101723;color:#f7faff;overflow:hidden;overscroll-behavior:contain;font:16px/1.5 -apple-system,BlinkMacSystemFont,Segoe UI,Microsoft YaHei,sans-serif;box-sizing:border-box}.meal-photo-viewer::backdrop{background:#101723}.meal-photo-viewer *{box-sizing:border-box}.meal-photo-viewer button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:44px;min-height:44px;border:1px solid #526077;border-radius:12px;background:#243146;color:#fff;font:inherit;padding:9px;touch-action:manipulation;cursor:pointer;flex-shrink:0}.meal-photo-viewer button:disabled{opacity:.35;cursor:default}.meal-photo-viewer button:focus-visible{outline:3px solid #86baff;outline-offset:2px}.meal-viewer-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:calc(10px + env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 10px max(16px,env(safe-area-inset-left));flex:0 0 auto}.meal-viewer-header>div{display:flex;flex-direction:column;min-width:0;overflow-wrap:anywhere}.meal-viewer-header strong{font-size:17px}.meal-viewer-header span[role=status]{font-size:13px;color:#bdcbe0}.meal-viewer-stage{position:relative;flex:1 1 auto;min-height:0;min-width:0;width:100%;display:flex;align-items:center;justify-content:center;overflow:hidden;touch-action:none;user-select:none;-webkit-user-select:none}.meal-viewer-image{display:block;flex-shrink:0;max-width:none;max-height:none;object-fit:contain;transform-origin:center;will-change:transform;pointer-events:none;-webkit-user-drag:none}.meal-viewer-error,.meal-viewer-loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;margin:0;text-align:center;padding:20px;color:#d7e3f5}.meal-viewer-error p{font-size:14px;max-width:340px;margin:0}.meal-viewer-error strong{font-size:20px}.meal-viewer-footer{flex:0 0 auto;padding:10px max(12px,env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));text-align:center;border-top:1px solid #243146;background:#101723}.meal-viewer-controls{display:flex;justify-content:center;align-items:center;gap:10px;flex-wrap:wrap}.meal-viewer-footer p{font-size:13px;color:#d5e0f2;margin:9px 0 4px}.meal-viewer-footer small{display:block;color:#9eacc2;font-size:12px;line-height:1.5}@media(max-height:480px){.meal-viewer-header{padding-top:calc(4px + env(safe-area-inset-top));padding-bottom:4px}.meal-viewer-footer{padding-top:4px;padding-bottom:calc(4px + env(safe-area-inset-bottom))}.meal-viewer-footer p{margin-top:4px}.meal-viewer-controls{gap:6px}}.medication-panel{display:grid;gap:12px}.medication-card,.medication-summary{border:1px solid #dae8fa;border-radius:14px;padding:16px;background:#fff;color:#173f78;min-width:0;font-size:max(16px,var(--m-text,16px));line-height:1.55;overflow-wrap:anywhere}.medication-heading{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;margin-bottom:6px}.medication-heading h2{display:flex;align-items:center;gap:7px;font-size:max(18px,var(--m-title,18px));font-weight:700;margin:0}.medication-heading svg{flex-shrink:0;color:#267af2}.medication-status{border-radius:20px;padding:3px 10px;font-size:max(14px,var(--m-small,14px));font-weight:650;background:#fff3df;color:#8b5b13}.medication-status.taken{background:#e6f7ee;color:#12744d}.medication-status.not_taken{background:#eef2f8;color:#4f627b}.medication-card p,.medication-editor p{margin:8px 0}.medication-date{font-weight:650}.medication-caption,.medication-card small,.medication-privacy,.medication-summary small,.medication-time{color:#5c7390;font-size:max(14px,var(--m-small,14px));line-height:1.6}.medication-time{font-variant-numeric:tabular-nums}.medication-note{white-space:pre-wrap}.medication-card small{display:block}.medication-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0}.medication-card button,.medication-editor button{min-height:44px;border:1px solid #cfe0f5;background:#f3f7ff;color:#246bc7;border-radius:10px;padding:8px 10px;font:inherit;cursor:pointer;touch-action:manipulation}.medication-choices button{display:flex;align-items:center;justify-content:center;gap:4px;flex-wrap:wrap}.medication-choices button[aria-pressed=true]{background:#e4efff;border-color:#75a6ee;color:#175dbb}.medication-choices svg{flex-shrink:0}.medication-card button:disabled,.medication-editor button:disabled{opacity:.45;cursor:default}.medication-links{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:8px}.medication-links button{font-size:14px;background:transparent;border:0;padding:4px}.medication-instructions{padding:8px 10px;background:#f3f7ff;border-radius:9px;margin:10px 0}.medication-instructions summary{min-height:32px;cursor:pointer}.medication-instructions p{white-space:pre-wrap}.medication-summary h2{font-size:20px;font-weight:700}.medication-privacy{padding:4px 8px}.medication-editor{font-size:max(16px,var(--m-text,16px));color:#173f78}.medication-editor label{display:grid;gap:7px;margin:16px 0}.medication-editor select,.medication-editor textarea{width:100%;min-height:44px;font-size:16px;border:1px solid #ccdcf1;border-radius:9px;padding:10px;color:#173f78;background:#fff}.medication-actions{display:flex;gap:10px;margin-top:18px}.medication-actions button{flex:1}.medication-actions button[type=submit]{background:#267af2;color:#fff}.medication-editor .medication-error{color:#a23434}.medication-card :focus-visible,.medication-editor :focus-visible{outline:3px solid #75a6ee;outline-offset:2px}.medication-home{border-top:1px solid #e6edf8;margin-top:12px;padding-top:10px}.medication-home .m-task-grid button{min-height:44px}.medication-home>p{font-size:var(--m-small);color:#5c7390;margin-bottom:8px}.medication-skin-date{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:16px 0}.medication-skin-date input{font-size:16px;min-height:44px}.medication-skin-record{border-top:1px solid #e6edf8;padding:10px 0}.medication-skin-record small{display:block}.medication-choices button{flex-direction:column}