:root{color-scheme:light;--paper: #fffbef;--canvas: #f5efdc;--cream: #fffdf6;--rail: #f6efda;--honey: #f2c452;--honey-hover: #e8b63d;--tint: #f9ebbf;--ink: #3f3523;--button-ink: #352a16;--muted: #685c45;--edge: #e3d8b6;--accent: #95492e;--olive: #92701d;--focus: #785317;--shade: #2d241b55;--display: "Songti SC", STSong, "Noto Serif CJK SC", SimSun, serif;--body: system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;--digits: Georgia, serif}*{box-sizing:border-box}body,html{margin:0;overflow-x:clip}body{background:var(--paper);color:var(--ink);font:15px/1.55 var(--body)}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.55}button,input,select,summary{-webkit-tap-highlight-color:transparent}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,.photo-control:focus-within{outline:2px solid var(--focus);outline-offset:2px}h1,h2,h3,p{margin:0}h1,h2{font-family:var(--display);min-width:0;overflow-wrap:break-word}h1{font-size:clamp(36px,5vw,57px);line-height:1.17;letter-spacing:-.045em}h2{font-size:24px;line-height:1.35;letter-spacing:-.035em}h3{font-size:15px;font-weight:660}small,.quiet{color:var(--muted)}p.quiet{font-size:14px}img{display:block;max-width:100%}.icon{display:inline-block;flex:none;background:currentColor;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-position:center;mask-position:center;vertical-align:-.23em}.brand{display:flex;align-items:center;gap:10px;font:700 26px var(--display);white-space:nowrap}.brand img{border-radius:11px}.primary,.secondary,.text-button,.icon-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;font-weight:650;min-height:44px}.primary,.secondary{border-radius:9px;padding:0 15px}.primary{background:var(--honey);color:var(--button-ink);border:1px solid transparent}.primary:hover:enabled{background:var(--honey-hover)}.secondary{background:transparent;border:1px solid var(--edge)}.secondary:hover:enabled,.icon-button:hover:enabled{background:var(--tint)}.text-button,.icon-button{border:0;padding:0;background:transparent;color:var(--muted)}.text-button:hover:enabled{text-decoration:underline;text-underline-offset:4px}.icon-button{width:44px;min-width:44px;border-radius:50%;font-size:22px}.danger,.error{color:var(--accent)}.error{font-weight:550;font-size:14px}.chip{display:inline-flex;align-items:center;gap:4px;padding:3px 9px;border:0;border-radius:100px;background:var(--tint);color:var(--focus);font-size:12px;white-space:nowrap}.chip.pending{color:var(--accent)}button.chip{min-height:36px}.avatar{border:0;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--tint);color:var(--focus);font:bold 17px var(--display)}.shell{min-height:100dvh;display:grid;grid-template-columns:190px minmax(0,1fr)}.rail{position:sticky;top:0;height:100dvh;display:flex;flex-direction:column;gap:38px;padding:31px 19px 22px;background:var(--rail);border-right:1px solid var(--edge)}.rail .brand{padding-left:8px}.nav{display:flex;flex-direction:column;gap:6px}.nav button{min-height:47px;display:flex;align-items:center;justify-content:flex-start;gap:11px;padding:0 13px;border-radius:9px;border:0;font-weight:630}.nav button:not(.primary){background:transparent;color:var(--muted)}.nav button.selected,.nav button:not(.primary):hover{background:var(--tint);color:var(--ink)}.nav button.nav-add{order:-1;margin-bottom:10px}.account-button{margin-top:auto;display:flex;align-items:center;gap:9px;background:transparent;text-align:left;border:0;border-top:1px solid var(--edge);padding:18px 4px 0}.account-button small{display:block}.mobile-brand{display:none}.content{max-width:1210px;width:100%;justify-self:center;padding:43px 44px 50px}.page-head{display:flex;align-items:end;justify-content:space-between;gap:14px;margin-bottom:28px}.date-label{color:var(--muted);font-size:13px;margin-bottom:6px}.diary-layout{display:grid;grid-template-columns:minmax(0,2.5fr) minmax(190px,1fr);gap:30px}.day-aside,.report-aside{padding-left:23px;border-left:1px solid var(--edge)}.aside-section{padding:0 0 18px}.aside-section+.aside-section{border-top:1px solid var(--edge);padding-top:16px}.aside-section h2{margin-bottom:11px}.food-groups{display:flex;flex-wrap:wrap;gap:6px}.sent{display:flex;gap:7px;align-items:center;justify-content:space-between;font-size:12px;margin-top:6px}.date-strip{border-bottom:1px solid var(--edge);padding:0 0 12px;display:flex;align-items:center;justify-content:space-between;gap:8px}.dates{flex:1;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px}.dates button,.report-days button{min-height:46px;padding:4px 0;border:0;border-radius:9px;background:transparent;color:var(--muted);display:grid;align-content:center;justify-items:center;gap:2px;font-size:11px}.dates button b,.report-days b{font:20px/1.1 var(--digits);color:var(--ink)}.dates button[aria-pressed=true]{background:var(--honey);color:var(--button-ink)}.dates button:not([aria-pressed=true]):hover,.report-days button:hover{background:var(--tint)}.meal{padding:14px 0 17px;border-bottom:1px solid var(--edge)}.meal-head{display:flex;align-items:center;justify-content:space-between;gap:6px}.meal-head time{color:var(--muted);margin-left:10px;font-size:13px;font-variant-numeric:tabular-nums}.meal-chips{display:flex;align-items:center;gap:3px;flex-wrap:wrap;justify-content:end}.meal-photo,.photo-placeholder{width:100%;border-radius:13px;object-fit:cover;aspect-ratio:2.05;background:var(--tint)}.photo-placeholder{display:flex;align-items:center;justify-content:center;gap:8px;color:var(--muted)}.meal-name{display:block;border:0;padding:4px 0;background:transparent;text-align:left;font-weight:650;font-size:17px;line-height:1.45;overflow-wrap:anywhere}.with-photo .meal-name{margin-top:7px;font-size:18px}.portions{font-size:13px;color:var(--muted);overflow-wrap:anywhere}.partner-meal{margin-top:12px;padding:10px 12px;background:var(--cream);border:1px solid var(--edge);border-radius:10px}.partner-meal header{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.partner-meal h3,.partner-meal p{overflow-wrap:anywhere}.partner-meal time{flex:none;color:var(--muted);font-size:13px}.partner-meal p,.partner-meal .meal-photo{margin-top:5px}.meal-note{margin:9px 0;border-inline-start:3px solid var(--honey);padding:2px 10px}.meal-note p{white-space:pre-wrap;overflow-wrap:anywhere}.meal-note small{font-size:12px}.note-replies{list-style:none;margin:7px 0 0;padding:4px 9px;background:var(--rail);border-radius:8px}.reply-line{display:block;width:100%;min-height:32px;text-align:left;background:transparent;border:0;border-radius:4px;padding:4px 2px;font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere}.reply-line b{color:var(--focus)}.reply-line:hover:enabled{background:var(--tint)}.reply-open,.earlier-replies{min-height:34px;font-size:13px}.reply-compose{margin:6px 0 0}.reply-compose textarea{display:block;resize:vertical}.reply-compose>div{display:flex;align-items:center;justify-content:flex-end;gap:14px;margin-top:5px}.meal-note .reply-target{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:13px;margin-bottom:4px}.empty{padding:40px 13px;text-align:center;background:var(--cream);border-bottom:1px solid var(--edge)}.empty>.icon{color:var(--olive);margin-bottom:8px}.empty p{color:var(--muted);margin:5px 0 14px}.complete{padding:13px 0}.complete label{display:inline-flex;align-items:center;gap:7px;min-height:44px}.complete small{display:block}.incoming{margin:13px 0}.incoming-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;background:var(--tint);border-radius:12px;padding:12px;margin-top:8px}.incoming-row p{font-size:12px;overflow-wrap:anywhere;color:var(--muted)}.incoming-row .primary{font-size:13px}.period{display:flex;align-items:center;border:1px solid var(--edge);border-radius:9px;font-size:13px;white-space:nowrap}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:var(--honey);border-radius:13px;padding:17px 0}.stats div{padding:0 22px;color:var(--button-ink)}.stats div+div{border-left:1px solid var(--olive)}.stats strong{font:45px/1.08 var(--digits)}.stats p{font-size:13px}.report-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:25px;margin-top:29px}.group-report>p{margin-top:6px}.food-bars{margin:12px 0 15px}.bar-row{display:grid;grid-template-columns:85px minmax(0,1fr) 35px;align-items:center;gap:7px;width:100%;min-height:44px;padding:0 9px;border:0;border-radius:8px;background:transparent;text-align:left;font-size:13px}.bar-row[aria-pressed=true]{background:var(--rail);font-weight:700}.bar-row:hover{background:var(--rail)}.bar-row span:last-child{text-align:right}.bar{height:7px;background:var(--tint);border-radius:20px}.bar>span{display:block;height:100%;background:var(--olive);border-radius:20px}.report-insight{background:var(--tint);border-radius:10px;padding:13px 15px 4px}.report-insight p{font-size:15px;line-height:1.65}.report-insight summary,.report-gaps summary{padding:11px 0;min-height:44px;cursor:pointer;font-size:14px;font-weight:650}.report-insight summary{color:var(--focus)}.report-gaps{margin-top:12px;border-block:1px solid var(--edge)}.report-sources{list-style:none;margin:0;padding:0}.report-sources li{border-top:1px solid var(--edge)}.report-sources button{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:44px;padding:9px 0;border:0;background:transparent;text-align:left}.report-sources button:hover strong{text-decoration:underline;text-underline-offset:3px}.report-sources small,.report-sources strong{display:block;overflow-wrap:anywhere}.report-sources strong{font-size:14px}.source-action{flex:none;color:var(--focus);font-size:12px}.report-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px}.report-days button.full{background:var(--tint)}.report-days small{font-size:10px}.shared-review{display:grid;width:100%;border:0;background:transparent;text-align:left;padding:0 0 10px;gap:5px}.shared-review>img{aspect-ratio:2.35}.sync-notice,.sync-error{display:flex;align-items:center;gap:8px;border-radius:9px;padding:0 12px;min-height:44px;background:var(--tint);margin-bottom:13px;font-size:13px;flex-wrap:wrap}.sync-notice button{margin-left:auto}.sync-error{color:var(--accent)}.sync-error span{flex:1}.dialog{background:var(--paper);color:var(--ink);border:1px solid var(--edge);border-radius:16px;width:min(580px,calc(100% - 24px));max-height:calc(100dvh - 28px);padding:18px 21px 21px;scrollbar-gutter:stable}.dialog::backdrop{background:var(--shade)}.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.dialog-head h2{font-size:31px}.edit-form,.account-detail{display:grid;gap:11px}.form-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}label{color:var(--muted)}input:not([type=checkbox]):not([type=file]),select,textarea{width:100%;min-width:0;min-height:44px;border:1px solid var(--edge);border-radius:8px;padding:7px 9px;background:var(--cream);color:var(--ink);font-size:16px}.note-fields textarea{display:block;margin-top:5px;resize:vertical}.note-fields b{color:var(--ink)}.note-visibility{display:inline-flex;align-items:center;gap:5px;min-height:44px;font-size:13px}label>input:not([type=checkbox]):not([type=file]){display:block;margin-top:3px}input[type=checkbox]{width:18px;height:18px;accent-color:var(--olive);flex:none}.segments{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;padding:3px;border-radius:10px;background:var(--rail)}.segments button{min-height:39px;border:0;border-radius:8px;background:transparent}.segments button[aria-pressed=true]{background:var(--tint);font-weight:650}.dish-fields{display:grid;gap:7px}.dish-inputs,.ingredient-edit{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.9fr) auto;gap:5px}.ingredients{margin:5px 0 0 4px;color:var(--muted);font-size:12px}.ingredients summary{cursor:pointer;min-height:28px}.ingredients .ingredient-edit{margin-top:5px}.edit-form>.text-button,.account-detail>.text-button{justify-self:start}.recent,.photo-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.recent>span{color:var(--muted);font-size:12px}.photo-form{border-top:1px solid var(--edge);padding-top:10px}.photo-form h3{margin-bottom:6px}.photo-form small{font-weight:400}.photo-control{cursor:pointer;position:relative}.photo-control input{position:absolute;width:100%;height:100%;top:0;right:0;bottom:0;left:0;opacity:0;cursor:pointer}.photo-preview{display:flex;gap:10px;align-items:center;margin-bottom:7px}.photo-preview .meal-photo,.photo-preview .photo-placeholder{width:132px;aspect-ratio:1.5}.toggle{display:flex;min-height:58px;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid var(--edge);padding-top:10px;color:var(--ink)}.toggle b{display:flex;align-items:center;gap:6px}.toggle small{display:block}.dialog-actions{display:flex;justify-content:flex-end;gap:9px 13px;align-items:center;flex-wrap:wrap}.confirm-photo{margin:7px 0 12px;aspect-ratio:2.4}.notice{padding:10px;background:var(--tint);border-radius:7px}.auth{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1fr);min-height:100dvh;max-width:1800px;margin:auto}.auth-content{display:flex;flex-direction:column;padding:40px clamp(20px,6vw,84px)}.auth-body{width:100%;max-width:430px;margin:auto 0;padding:35px 0}.auth-body h1{font-size:clamp(42px,5vw,65px)}.auth-body>p{color:var(--muted);margin:11px 0 24px}.auth-photo{width:100%;height:100%;min-height:100dvh;object-fit:cover}.auth-form{display:grid;gap:11px}.auth-body>.text-button{margin-top:9px}.loading{padding:40px}.loading p{margin-top:15px}.chat-nav-icon{position:relative;display:inline-flex}.chat-dot{position:absolute;right:-4px;top:-2px;width:8px;height:8px;background:var(--accent);border-radius:50%}.chat-panel{max-width:760px;display:flex;flex-direction:column;height:clamp(290px,calc(100dvh - 190px),760px);border:1px solid var(--edge);border-radius:16px;background:var(--cream);overflow:hidden}.chat-person{display:flex;align-items:center;gap:10px;padding:12px 17px;border-bottom:1px solid var(--edge)}.chat-person h2{font-size:22px;overflow-wrap:anywhere}.chat-person .avatar{flex:none}.chat-log{flex:1;min-height:0;overflow-y:auto;overflow-anchor:none;overscroll-behavior:contain;padding:10px 17px}.chat-older{display:flex;margin:0 auto;font-size:13px}.chat-empty{display:grid;height:100%;place-content:center;justify-items:center;gap:10px;color:var(--muted);font-size:14px}.chat-day{text-align:center;color:var(--muted);font-size:12px;margin:8px 0 14px}.chat-row{display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin:0 0 12px}.chat-row.mine{align-items:flex-end}.chat-bubble{max-width:83%;padding:9px 13px;border-radius:12px 12px 12px 3px;background:var(--rail);white-space:pre-wrap;overflow-wrap:anywhere}.mine .chat-bubble{background:var(--tint);border-radius:12px 12px 3px}.chat-row small{font-size:11px;overflow-wrap:anywhere}.chat-compose{display:flex;align-items:end;gap:8px;padding:12px;border-top:1px solid var(--edge)}.chat-compose textarea{flex:1;resize:none}.chat-compose button{flex:none}.chat-panel>.error{padding:0 12px 8px}@media(max-width:1040px){.content{padding-inline:26px}.diary-layout,.report-layout{gap:18px}.day-aside,.report-aside{padding-left:14px}.rail{padding-inline:13px}.shell{grid-template-columns:155px minmax(0,1fr)}}@media(max-width:760px){.shell{display:block;padding-bottom:calc(69px + env(safe-area-inset-bottom))}.rail{display:contents}.rail .brand,.rail .account-button{display:none}.nav{z-index:2;position:fixed;bottom:0;left:0;right:0;align-items:center;justify-content:space-around;flex-direction:row;min-height:62px;padding:5px 20px calc(5px + env(safe-area-inset-bottom));background:var(--paper);border-top:1px solid var(--edge)}.nav button:not(.primary){flex-direction:column;justify-content:center;gap:2px;font-size:11px;min-width:57px}.nav button.nav-add{order:0;margin:0;border-radius:22px;min-height:43px}.chat-panel{height:clamp(275px,calc(100dvh - 235px - env(safe-area-inset-bottom)),700px)}.mobile-brand{display:flex;padding:13px 19px 0;justify-content:space-between;align-items:center}.mobile-brand .brand{font-size:24px}.mobile-brand .brand img{width:34px;height:34px}.content{padding:19px 18px}.page-head{margin-bottom:19px}.diary-layout,.report-layout{grid-template-columns:minmax(0,1fr);gap:20px}.day-aside,.report-aside{padding:0;border:0}.report-head{align-items:start;flex-direction:column;gap:11px}.stats div{padding-inline:13px}.stats strong{font-size:37px}.auth{display:flex;flex-direction:column}.auth-content{padding:23px 21px 3px}.auth-photo{min-height:0;height:clamp(180px,34vh,330px)}}@media(max-width:390px){.nav{padding-inline:8px;gap:2px}.nav button.nav-add{padding-inline:10px;white-space:nowrap}.date-strip{gap:2px}.date-strip .icon-button{min-width:32px;width:32px}.incoming-row{grid-template-columns:auto minmax(0,1fr)}.incoming-row button{grid-column:2;justify-self:start}.dialog{padding-inline:13px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important}}
