/* Meal Journal — a neutral page independent of wallpaper and chat themes. */
.mj-app{color-scheme:light;box-sizing:border-box;min-height:100dvh;background:#f3f3f7;color:#26262a;font:15px/1.5 -apple-system,BlinkMacSystemFont,"PingFang HK",sans-serif;padding:calc(max(env(safe-area-inset-top,0px),var(--rv-native-safe-top,0px)) + 8px) 16px calc(max(env(safe-area-inset-bottom,0px),var(--rv-native-safe-bottom,0px)) + 32px)}
.mj-app *{box-sizing:border-box;min-width:0}.mj-app button,.mj-app input,.mj-app select,.mj-app textarea{font:inherit}.mj-app button{border:0;cursor:pointer;color:inherit}.mj-app button:disabled{opacity:.45;cursor:wait}.mj-app svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.mj-toolbar{max-width:680px;margin:0 auto 16px;display:flex;align-items:center;justify-content:space-between;height:44px;color:#6d6d75;font-size:12px;letter-spacing:.03em}.mj-toolbar button{display:grid;place-items:center;width:36px;height:36px;background:#fff8;border-radius:50%;font-size:18px}.mj-toolbar svg{width:23px;height:23px}
.mj-panel{max-width:680px;margin:auto;border-radius:32px;background:#fff;box-shadow:0 10px 45px #32304308;padding:24px 22px 12px}.mj-search{display:flex;align-items:center;gap:12px;padding:4px 0 25px;border-bottom:1px solid #efeff1}.mj-search input{width:100%;border:0;background:transparent;outline:none;color:#323238;font-size:23px;font-weight:400;letter-spacing:-.03em}.mj-search input::placeholder{color:#b5b5bb}.mj-search svg{width:25px;height:25px;color:#aaaab1;flex:none}
.mj-section-label{display:flex;justify-content:space-between;color:#aaaab1;font-size:13px;font-weight:500;margin:19px 0 10px}.mj-section-label time{font-size:11px;font-weight:400}.mj-stat{display:flex;align-items:center;gap:14px;min-height:74px}.mj-icon{display:grid;place-items:center;width:40px;height:40px;flex:0 0 40px;background:#f6f6f7;border-radius:50%;color:#aeb0b5}.mj-icon svg{width:20px;height:20px}.mj-stat-label{font-size:15px;flex:1}.mj-stat-value{text-align:right;font-size:13px;color:#b1b1b8;max-width:48%;font-variant-numeric:tabular-nums}.mj-stat-value[data-energy=true]{font-size:12px;line-height:1.5}.mj-stat-value small{display:block;font-size:10px;color:#a8a8b0}
.mj-actions{display:flex;gap:8px;margin:15px 0 21px}.mj-actions button{flex:1;min-height:40px;padding:9px 10px;border-radius:14px;font-size:12px;background:#f5f5f8;color:#777580}.mj-app .mj-primary{background:#686676;color:#fff}.mj-history-label{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #efeff1;padding-top:20px}.mj-history-label h2{font-size:14px;font-weight:500;color:#aaaab1;margin:0}.mj-history-label select{border:0;background:transparent;color:#aaaab1;font-size:11px;padding:5px;max-width:120px}
.mj-status{font-size:12px;color:#92929c;min-height:0;margin:9px 0;white-space:pre-wrap}.mj-status[data-error=true]{color:#a75e68}.mj-history{padding-bottom:6px}.mj-entry{display:flex;gap:13px;align-items:center;width:100%;min-height:91px;padding:16px 0;background:none;text-align:left}.mj-entry-copy{flex:1;overflow:hidden}.mj-entry-title{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px;font-weight:400;color:#2c2c31}.mj-entry-sub{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:#b0b0b7;margin-top:3px}.mj-entry-date{font-size:12px;color:#b7b7bd;flex:none;text-align:right;min-width:39px}.mj-empty{text-align:center;color:#b3b3bb;font-size:13px;padding:40px 10px 45px;line-height:1.9}.mj-footnote{text-align:center;color:#b4b4bd;font-size:10px;margin:23px 0 0}
.mj-dialog{position:fixed;inset:auto 0 0;margin:0 auto;max-width:680px;width:100%;max-height:calc(100dvh - max(env(safe-area-inset-top,0px),var(--rv-native-safe-top,0px)) - 24px);overflow:auto;border:1px solid #fff;border-bottom:0;border-radius:30px 30px 0 0;padding:14px 22px calc(max(env(safe-area-inset-bottom,0px),var(--rv-native-safe-bottom,0px)) + 26px);background:#f7f7fbf2;color:#2c2c32;box-shadow:0 -12px 60px #31303d14;backdrop-filter:blur(26px);-webkit-backdrop-filter:blur(26px);font:14px/1.6 -apple-system,BlinkMacSystemFont,"PingFang HK",sans-serif;color-scheme:light}.mj-dialog::backdrop{background:#25242d30;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}.mj-handle{width:39px;height:5px;background:#d3d3db;border-radius:5px;margin:0 auto 21px}.mj-dialog-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:18px}.mj-dialog h2{margin:0;font-size:21px;font-weight:550;letter-spacing:-.03em;overflow-wrap:anywhere}.mj-close{width:37px;height:37px;border-radius:13px;background:#fff;color:#45444d;font-size:23px;flex:none}.mj-dialog p{white-space:pre-wrap;overflow-wrap:anywhere}.mj-meta{color:#a1a0aa;font-size:12px}.mj-tags{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 20px}.mj-tag{padding:4px 10px;border-radius:20px;background:#ebe6f3;color:#a99bbd;font-size:11px}.mj-detail-food{padding:13px 0;border-top:1px solid #e8e8ee}.mj-detail-food strong{display:block;font-weight:500;font-size:14px}.mj-detail-food small{display:block;color:#9795a1;font-size:11px;margin-top:3px}.mj-energy{font-size:21px;color:#757080;margin:14px 0 4px;letter-spacing:-.02em}.mj-dialog label{display:grid;gap:5px;margin:12px 0;font-size:11px;color:#96939f}.mj-dialog input,.mj-dialog select,.mj-dialog textarea{width:100%;border:1px solid #e8e6ed;background:#fff;color:#37343e;border-radius:12px;padding:11px;font:14px -apple-system,BlinkMacSystemFont,"PingFang HK",sans-serif;min-height:42px}.mj-dialog input[type=number]{font-variant-numeric:tabular-nums}.mj-dialog textarea{resize:vertical;min-height:88px;line-height:1.6}.mj-grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}.mj-food-editor{position:relative;background:#ffffffa3;border:1px solid #e9e7ef;border-radius:18px;margin:14px 0;padding:12px}.mj-food-editor label{margin:7px 0}.mj-remove{display:block;margin-left:auto;background:none;font-size:11px;color:#a08290!important;padding:6px 0}.mj-dialog .mj-actions{margin:15px 0 4px;flex-wrap:wrap}.mj-dialog .mj-actions button{flex:1 0 40%;font-size:12px}.mj-dialog .mj-danger{color:#ae7b88;background:#f0e7eb}.mj-error{color:#ae6d7c!important;font-size:12px;white-space:pre-wrap}.mj-result{border:1px solid #e6e0ee;border-radius:18px;padding:15px;background:#fff9;margin:14px 0}.mj-result[data-chosen=true]{border-color:#beb0cf;background:#f0ebf6}.mj-result h3{font-size:14px;margin:0 0 3px;font-weight:500}.mj-result p{font-size:12px;margin:6px 0;color:#93909d}.mj-note{font-size:11px;color:#a5a1af;line-height:1.7}.mj-notice{font-size:12px;color:#8d8998;margin:12px 0}.mj-app :focus-visible{outline:2px solid #a69cb4;outline-offset:3px}
@media(min-width:720px){.mj-app{padding-left:32px;padding-right:32px}.mj-panel{padding:30px 30px 15px}.mj-dialog{bottom:18px;border-radius:30px;border-bottom:1px solid #fff;padding-bottom:28px;max-height:calc(100dvh - 48px)}}
@media(max-width:350px){.mj-app{padding-left:10px;padding-right:10px}.mj-panel{padding:20px 17px 10px}.mj-stat{gap:9px}.mj-stat-label{font-size:13px}.mj-dialog{padding-left:17px;padding-right:17px}.mj-actions button{font-size:11px}}
@media(prefers-reduced-transparency:reduce){.mj-dialog{background:#f7f7fb;backdrop-filter:none;-webkit-backdrop-filter:none}}

/* In-app choices retain the current editor instead of opening Android selects. */
.mj-filter{display:flex;align-items:center;gap:9px;padding:7px 10px;border-radius:12px;background:#f7f7fa;color:#96929f!important;font-size:12px!important;min-height:34px}
.mj-filter::after,.mj-select::after{content:"";width:6px;height:6px;display:inline-block;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);flex:none;margin-left:9px;margin-top:-3px}
.mj-dialog .mj-select{width:100%;min-height:44px;display:flex;align-items:center;justify-content:space-between;text-align:left;padding:11px 13px;border:1px solid #e8e6ed;background:#fff;border-radius:13px;color:#37343e;font-size:14px}
.mj-picker{inset:0;margin:auto;width:calc(100% - 36px);max-width:360px;max-height:calc(80dvh - 28px);border:1px solid #ffffffd9;border-radius:26px;padding:19px 18px;background:#f8f8fcf0;box-shadow:0 20px 70px #36314120;overflow:auto}
.mj-picker .mj-dialog-head{align-items:center;margin-bottom:14px;padding:0 3px}.mj-picker h2{font-size:16px;letter-spacing:0;font-weight:600}.mj-picker .mj-close{width:31px;height:31px;border-radius:50%;font-size:20px}
.mj-picker-options{background:#ffffffb3;border-radius:17px;padding:0 13px}.mj-picker-option{display:flex;align-items:center;justify-content:space-between;gap:15px;width:100%;text-align:left;min-height:53px;padding:13px 1px;background:transparent;color:#4e4959;font:14px/1.5 -apple-system,sans-serif!important}.mj-picker-option:not(:last-child){border-bottom:1px solid #eeeaf2}.mj-picker-option>span:first-child{overflow-wrap:anywhere}.mj-picker-check{display:grid;place-items:center;flex:0 0 22px;width:22px;height:22px;border:1px solid #d7d1df;border-radius:50%;font-size:13px;color:#fff}.mj-picker-option[aria-checked=true] .mj-picker-check{background:#82748f;border-color:#82748f}
.mj-guide-actions{gap:10px!important;margin-top:22px!important}.mj-guide-actions button{min-height:44px!important}
