/* Family journal: warm paper, clear daily actions. All assets stay same-origin. */
:root{--ink:#44372e;--muted:#88796d;--line:#ebe2d7;--paper:#fffdf9;--cream:#f8f4ec;--terracotta:#ad6449;--dark:#6c3f2c;--sage:#61795e;--shadow:0 3px 16px #6b4a2a04;background:var(--cream);font-family:'PingFang SC','Microsoft YaHei',system-ui,sans-serif;font-size:14px;color-scheme:light}
body{background:radial-gradient(ellipse at 85% 0,#efe3d22e,transparent 50%),var(--cream);line-height:1.6}
button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{transition:background-color .16s,color .16s,border-color .16s,box-shadow .16s}button:disabled{cursor:not-allowed;opacity:.48}a:hover{color:var(--terracotta)}button svg{flex:none}.j-icon{display:inline-block;vertical-align:middle;flex:none}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
h1,h2,h3,.serif{font-family:'Noto Serif SC','Songti SC','SimSun',serif;letter-spacing:.015em}h1{font-weight:600;letter-spacing:.015em;font-size:clamp(1.8rem,2.6vw,2.65rem);line-height:1.35}h2{font-size:1.16rem}h3{font-size:1.12rem}.meta{color:#887a6f;font-size:.82rem}.note{font-size:.94rem;color:var(--muted);line-height:1.8}.j-note-text{font-size:.9rem;white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0 8px;line-height:1.8;color:var(--muted)}
.app-shell{grid-template-columns:226px minmax(0,1fr)}.app-content{min-width:0}.sidebar{padding:24px 12px 15px;height:100dvh;background:#fffcf6;overflow:hidden}.brand{padding:0 12px 18px;gap:11px}.brand-icon{background:#b16a4d;width:39px;height:39px;border-radius:13px;box-shadow:none}.brand-icon svg{width:25px;height:25px}.brand strong{font-family:'SimSun',serif;font-size:1.5rem;letter-spacing:.07em}.brand small{font-size:.73rem;letter-spacing:.17em}.nav-caption{display:none}.desktop-nav{display:block;overflow-y:auto;min-height:0;scrollbar-width:thin;scrollbar-color:#e3d3c2 transparent;padding:0 4px 12px}.j-nav-group>p{font-size:.69rem;letter-spacing:.1em;color:#a18e7e;margin:16px 13px 7px}.j-nav-group:first-child>p{margin-top:5px}.nav-item{gap:12px;padding:8px 13px;border-radius:10px;font-size:.94rem;min-height:38px;font-weight:500;margin:2px 0;color:#726153}.nav-item.active{background:#f1e1d3;color:#98563c;font-weight:650}.nav-item:hover{background:#f5eadf}.nav-icon{display:flex;align-items:center;justify-content:center;width:21px}.nav-icon .j-icon{width:19px;height:19px}.sidebar-bottom{border-radius:12px;background:none;border-top:1px solid var(--line);padding:14px 12px 0;margin-top:8px;flex:none;display:block;color:#9c8571;font-size:.74rem}.sidebar-bottom strong{font-family:'SimSun',serif;font-weight:400;font-size:.91rem}.sidebar-bottom span,.sidebar-bottom .little-sun{display:none}
.topbar{min-height:58px;padding:0 32px;background:#fffcf7eb;backdrop-filter:blur(12px);border-color:var(--line)}.topbar-title{color:#a29180;font-size:.79rem}.topbar-right{gap:12px}.member-shortcut{height:33px;width:33px;background:#ead5bd;color:#74513b;font-weight:600}.local-badge{background:transparent;border:0;padding:0;color:#708167;font-size:.75rem;display:flex;align-items:center;gap:6px}.local-badge:before{content:'';width:5px;height:5px;background:#8ba27c;border-radius:50%}.local-badge.unsaved{color:#a86c3c}.local-badge.unsaved:before{background:#c28b55}
.main{max-width:1560px;padding:27px 32px 52px;min-width:0}.page-heading{align-items:center;margin-bottom:24px;gap:18px}.page-heading>div:first-child{min-width:0}.page-heading h1{overflow-wrap:anywhere}.page-heading p:last-child{font-size:.91rem;margin-top:9px}.eyebrow{font-size:.65rem;color:#b3896a;font-weight:650;letter-spacing:.19em;margin-bottom:7px}.actions{gap:8px;align-items:center}.primary,.secondary,.ghost{display:inline-flex;align-items:center;justify-content:center;gap:7px;font-weight:500;border-radius:9px;min-height:41px;padding:9px 15px;font-size:.91rem;line-height:1.5}.primary{background:#ac6246;border-color:#ac6246;box-shadow:0 2px 5px #9d563e0a}.primary:hover{background:#955139;border-color:#955139}.secondary{border-color:#decdbc;background:#fffdf9;color:#956044}.secondary:hover{background:#f5eadd;border-color:#c7a990}.ghost{color:#a26b4e}.ghost:hover{background:#f3e9df}.tiny{min-height:33px;padding:6px 9px;font-size:.81rem}.danger{color:#a15c53}.j-link{gap:5px;white-space:nowrap}.j-link svg{width:14px;height:14px}.panel,.item-card,.stat-card,.section-card,.timeline-item,.member-card{border-radius:15px;background:#fffdf9;border:1px solid var(--line);box-shadow:none;min-width:0}.panel,.section-card{padding:22px}.item-card{padding:23px;overflow:hidden}.panel-title{margin-bottom:16px;gap:10px}.panel-title h2{display:flex;align-items:center;gap:8px;font-size:1.12rem;line-height:1.5;min-width:0}.panel-title h2 svg{width:20px;height:20px;color:#af7659}.panel-title h2,.card-head h3{margin:0}.panel-title button{font-size:.8rem}.panel p:last-child{margin-bottom:0}.stat-grid{gap:14px;margin-bottom:22px}.stat-card{padding:19px 21px}.stat-card small{font-size:.82rem;color:#8e7b68}.stat-card strong{font-family:'Georgia','Microsoft YaHei',sans-serif;font-weight:500;font-size:1.9rem;color:#714733;margin:8px 0 3px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;line-height:1.3}.stat-card span{display:block;font-size:.77rem;color:#a18d7b}.stat-card strong small{font-size:.95rem}.big-value{font-family:Georgia,'Microsoft YaHei',sans-serif;font-size:2rem;font-variant-numeric:tabular-nums;font-weight:500;color:#8b5238;margin-top:18px;line-height:1.35;overflow-wrap:anywhere}.big-value small{font-family:'Microsoft YaHei',sans-serif;font-size:.86rem;font-weight:400;color:#a18d7a}.progress{height:7px;background:#eee3d6;margin:14px 0 9px}.progress i{background:#b57758}.progress+.split{font-size:.75rem;flex-wrap:wrap}.card-actions{border-color:#f0e7dd;gap:6px;margin-top:19px;padding-top:13px}.chip{font-size:.72rem;padding:4px 9px;font-weight:500;background:#f4e9dc;color:#9a6e51}.chip.green{color:#69835e;background:#edf1e6}.j-card-symbol{background:#f6eadb;color:#b07656;display:grid;place-items:center;height:41px;width:41px;border-radius:12px}.j-card-symbol svg{height:23px;width:23px}.j-goal-card h3,.j-wish-card h3{font-size:1.23rem;margin:19px 0 6px}.j-wish-budget{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-top:26px;padding:13px 0 0}.j-wish-budget small{color:var(--muted)}.j-wish-budget strong{font-family:Georgia,'Microsoft YaHei',sans-serif;font-size:1.5rem;font-weight:500;color:#9b6647}.j-completed .j-wish-budget strong{color:#708167}
.j-home-banner{min-height:154px;padding:24px 28px;border-radius:17px;display:flex;align-items:center;justify-content:space-between;gap:15px;background:linear-gradient(90deg,#4d3425d9,#4d342595 55%,#4d342510),url('./assets/home-memory.jpg') center 52%/cover;color:#fffbf2;margin:0 0 17px;overflow:hidden}.j-banner-kicker{display:flex;align-items:center;gap:8px;color:#f1d9ba;font-size:.74rem;letter-spacing:.05em}.j-banner-kicker svg{width:18px;height:18px;color:#edc077}.j-home-banner h2{font-size:clamp(1.25rem,1.8vw,1.85rem);font-weight:500;margin:13px 0 10px}.j-home-banner p{font-size:.75rem;margin:0;color:#efddc9}.j-banner-note{font-family:'SimSun',serif;font-size:1rem;writing-mode:vertical-rl;letter-spacing:.15em;color:#ffefdc;white-space:nowrap}.j-quickbar{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin-bottom:23px}.j-quick{border:1px solid #eadbca;background:#fffaf3;color:#8d664f;min-height:46px;border-radius:10px;display:flex;align-items:center;justify-content:center;gap:9px;font-size:.83rem;padding:8px 4px}.j-quick:hover{border-color:#c39977;background:#f6e9d9}.j-quick svg{height:18px;width:18px;color:#ae7e5e}.j-home-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:stretch}.j-home-grid>.panel{padding:20px}.j-home-grid>.panel>.empty{padding:24px 12px}.j-goal-title{font-family:'SimSun',serif;font-size:1.08rem}.j-goal-home .big-value{font-size:1.9rem}.j-goal-home .note{font-size:.82rem;margin-top:15px}.j-wish-row{display:flex;align-items:center;gap:11px;padding:12px 0;border-bottom:1px solid #f1e9de}.j-wish-row:last-child{border-bottom:0}.j-wish-row>div{flex:1;min-width:0}.j-wish-row b{display:block;font-weight:500;font-size:.91rem;overflow-wrap:anywhere}.j-wish-row small{display:block;color:#a08c79;font-size:.73rem;margin-top:5px}.j-wish-row>button{padding:6px;font-size:.75rem}.j-wish-dot{color:#bf997a}.j-wish-dot svg{width:19px;height:19px}.j-trip-home{position:relative;background:#f3ebdf}.j-trip-illustration{display:grid;place-items:center;width:47px;height:47px;border-radius:50%;background:#e4d4bf;color:#a37c58;margin:16px 0}.j-trip-illustration svg{width:24px;height:24px}.j-trip-home h3{font-size:1.3rem;margin:7px 0}.j-trip-home .note{font-size:.85rem;line-height:1.75}.j-trip-home .meta{font-size:.75rem}.j-today-home{grid-column:span 1}.j-memories-home{grid-column:span 2}.j-today-meals{display:grid;gap:2px}.j-today-meals>div{padding:11px 0;border-top:1px solid #eee5d9;display:grid;grid-template-columns:36px 1fr auto;gap:8px;align-items:center}.j-today-meals span{font-size:.8rem;color:#b48a68}.j-today-meals p{font-size:.83rem;line-height:1.7;margin:0;color:#907d6a}.j-today-meals .ghost{font-size:.73rem;min-height:32px;padding:5px}.j-memory-preview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.j-memory-preview>button{text-align:left;padding:0;background:none;border:0;min-width:0}.j-memory-preview .j-photo{height:146px;border-radius:10px;margin-bottom:10px}.j-memory-preview strong{display:block;font-size:.82rem;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.j-memory-preview small{display:block;font-size:.71rem;margin-top:4px;color:#a38d76}.j-photo{background:#f0e4d3;overflow:hidden;min-width:0}.j-photo>img,.j-photo>video{height:100%;width:100%;object-fit:cover;display:block}.j-photo-empty{display:grid;place-items:center;color:#bd9b78}.j-photo-empty svg{width:32px;height:32px}.j-home-foot{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.j-home-foot>button{background:none;border:0;display:flex;align-items:center;gap:9px;color:#947d65;text-align:left;padding:10px 3px;font-size:.82rem;min-width:0}.j-home-foot>button>span{margin-left:auto;color:#ad9982;font-size:.74rem}.j-home-foot svg{width:17px;height:17px}
.j-toolbar{display:flex;align-items:center;gap:12px;margin:0 0 18px;flex-wrap:wrap}.j-search{display:flex;align-items:center;gap:9px;min-width:180px;max-width:420px;flex:1;border:1px solid #e4d9cc;border-radius:10px;background:#fffdf9;padding:0 12px;color:#b2977d}.j-search:focus-within{border-color:#bb8c68;outline:2px solid #dbc0a533;outline-offset:1px}.j-search input{border:0;background:transparent;min-height:42px;width:100%;min-width:0;color:var(--ink);outline:0;font-size:.88rem}.j-search input:focus-visible{outline:0}.j-search svg{width:18px;height:18px}.j-status select,.j-memory-filters select{border:1px solid #e1d5c7;min-height:42px;border-radius:9px;background:#fffdf9;color:#7d6753;padding:8px 30px 8px 12px;font-size:.87rem;max-width:100%}.j-result-count{margin-left:auto;font-size:.78rem}.j-memory-filters{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:0 0 20px}.j-memory-filters>label{display:flex;align-items:center;gap:9px;font-size:.82rem;color:#9c836a;min-width:0}.tabs{gap:5px;border-color:#e8dccd;padding-bottom:9px;margin-bottom:20px}.tabs button{padding:9px 16px;font-size:.87rem;font-weight:500;border-radius:8px}.tabs button.active{background:#ead9c5;color:#8e573a}.tabs button:hover{background:#f0e4d6}.empty{border:1px dashed #e2d1bb;border-radius:12px;padding:32px 18px;background:#fcf8f1;color:#a18b74;font-size:.87rem;line-height:1.9}.empty strong{font-family:'SimSun',serif;font-weight:500;color:#816046;font-size:1.07rem}.empty .primary,.empty .secondary{margin-top:3px}.timeline{gap:17px}.timeline-item{grid-template-columns:225px minmax(0,1fr)}.timeline-media{height:100%;min-height:210px}.timeline-media>div{height:100%;width:100%}.timeline-media img,.timeline-media video{max-height:none;object-fit:cover}.timeline-body{padding:21px;min-width:0}.timeline-body h3{font-size:1.27rem;margin:5px 0 10px}.timeline-body>.meta{font-size:.76rem}.timeline-body .card-actions{margin-top:15px}.thumb-row{flex-wrap:wrap;overflow:visible;gap:6px}.thumb-row button{font-size:.76rem;padding:5px 8px;max-width:100%;white-space:normal;overflow-wrap:anywhere;background:#fbf4ea;border:1px solid #ede1d1;border-radius:7px}.j-album-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.j-album{padding:0}.j-album>.j-photo,.j-album-empty{height:190px;display:grid;place-items:center;background:#efe2cf;color:#bd9d7e}.j-album-empty svg{height:42px;width:42px}.j-album>div:last-child{padding:19px}.j-album h3{margin-bottom:6px}
.member-grid{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:22px}.member-card{border-radius:12px;padding:12px 16px;min-width:145px;font-size:.9rem;background:#fdfaf4;box-shadow:none}.member-card.active{border-color:#c6a482;background:#f2e6d6}.member-avatar{background:#e8d6bf;color:#9d6d47;font-size:1rem;width:38px;height:38px;border-radius:12px;font-family:'SimSun',serif}.member-card small{font-size:.73rem}.record-row{gap:13px;padding:16px 0;border-color:#eee5d9;flex-wrap:wrap;min-width:0}.j-record-main{flex:1;min-width:120px;overflow-wrap:anywhere}.record-row b{font-weight:500;font-size:.94rem;overflow-wrap:anywhere}.record-row small{font-size:.77rem;color:#a08b75;line-height:1.7}.record-row>.actions{margin-left:auto;gap:5px}.j-record-icon{height:36px;width:36px;border-radius:10px;display:grid;place-items:center;background:#f5ebdd;color:#b4916d;align-self:flex-start}.j-record-icon svg{width:18px;height:18px}.j-measurement{font-family:Georgia,'Microsoft YaHei',sans-serif;font-size:1.4rem;font-weight:500;color:#8e6040;font-variant-numeric:tabular-nums}.j-measurement small{display:inline;font-size:.8rem}.j-metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:19px}.j-trend{width:100%;height:auto;max-height:210px;display:block;overflow:visible}.j-trend line{stroke:#e9dccb;stroke-width:1}.j-trend polyline{fill:none;stroke:#b67a55;stroke-width:2.5;stroke-linejoin:round;vector-effect:non-scaling-stroke}.j-trend text{font-family:'Microsoft YaHei',sans-serif;fill:#9d896f;font-size:11px}.j-member-heading{display:flex;align-items:center;gap:13px}.j-member-heading h3{margin:0 0 4px}.j-member-heading p{margin:0}.j-member-facts{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px;font-size:.77rem;color:#a18b73}.j-member-facts b{font-size:.9rem;color:#9d724d;margin-left:3px;font-weight:500}.j-storage-note{display:flex;align-items:center;gap:8px;color:#a78d75;font-size:.8rem;margin:23px 0}
.j-week-planner{padding-bottom:14px}.j-day-strip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.j-day-strip button{background:#fbf7f0;border:1px solid transparent;border-radius:11px;padding:11px 5px;display:grid;gap:4px;justify-items:center;color:#9c856d;min-width:0}.j-day-strip button span{font-size:.75rem}.j-day-strip button strong{font-family:Georgia,serif;font-size:1.6rem;font-weight:400;line-height:1.4;color:#775a40}.j-day-strip button small{font-size:.65rem;white-space:nowrap}.j-day-strip button.active{background:#efe0cc;border-color:#ccaa81;color:#96623c}.j-day-strip button.active strong{color:#8a4e2b}.j-food-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(245px,1fr);gap:17px;align-items:start}.j-food-layout>.section-card{margin-bottom:0}.j-food-layout .inline-input{max-width:170px;min-width:0;font-size:.81rem}.j-meal-section{border-top:1px solid #eee5d9;padding:14px 0}.j-meal-section:first-of-type{border-top:0}.j-meal-section>.split h3{display:flex;align-items:center;gap:9px;margin:0;font-size:.99rem}.j-meal-section h3 svg{width:17px;height:17px;color:#b68d63}.j-meal-section .record-row{padding:9px 0}.j-meal-empty{color:#b29d85;font-size:.81rem;margin:8px 0 0}.j-nutrition-card{background:#f3ebde}.j-nutrition-card h2{margin-bottom:18px}.j-nutrition-card .meta{margin:15px 0 0;font-size:.75rem;line-height:1.8}.nutrient-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.nutrient{background:#fffbf5;border:1px solid #ecdfcd;border-radius:10px;padding:13px}.nutrient b{font-family:Georgia,'Microsoft YaHei',sans-serif;font-size:1.4rem;color:#90613d;font-weight:400}.nutrient small{font-size:.75rem;color:#a18a6c}.j-food-library{margin-top:18px}.j-food-library summary{cursor:pointer;font-family:'SimSun',serif;font-size:1.1rem;color:#795a3e;list-style-position:inside}.j-food-library summary .meta{font-family:'Microsoft YaHei',sans-serif;font-size:.77rem;margin-left:13px}.j-food-library .j-toolbar{margin-top:20px}.j-table-scroll{width:100%;overflow-x:auto;overscroll-behavior-inline:contain}.food-table{min-width:480px}.food-table th{font-size:.76rem;background:#faf5ec}.food-table td{font-size:.82rem;font-variant-numeric:tabular-nums}.food-table td,.food-table th{border-color:#eee3d3}
.j-trip-cover{height:120px;margin:-23px -23px 23px;padding:20px 23px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:5px;background:linear-gradient(125deg,#e9dbc6,#f7eee0);color:#a37b50}.j-trip-cover>svg{width:36px;height:36px;grid-row:span 2;transform:rotate(-8deg)}.j-trip-cover span{text-align:right;font-size:.8rem}.j-trip-cover small{font-size:.72rem;text-align:right}.j-trip-grid h3{font-size:1.25rem;margin-bottom:10px}.j-trip-grid .note{min-height:45px}.j-trip-facts{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:.8rem;color:#a08a71;margin-top:17px}.j-trip-facts>span{display:flex;align-items:center;gap:6px}.j-trip-facts svg{width:15px;height:15px}.j-trip-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;padding:23px 26px;background:#eee1ce;border:1px solid #e7d4b8;border-radius:14px;margin-bottom:22px}.j-trip-overview>div{min-width:0}.j-trip-overview small{display:block;font-size:.77rem;color:#a0805e}.j-trip-overview strong{display:block;font-family:Georgia,'Microsoft YaHei',sans-serif;font-size:1.6rem;font-weight:500;color:#845532;margin:6px 0;overflow-wrap:anywhere}.j-trip-overview strong small{display:inline;font-size:.85rem}.j-trip-overview span{display:block;font-size:.76rem;color:#a18a6d;overflow-wrap:anywhere}.j-check-button{height:24px;width:24px;border:1px solid #c8b391;border-radius:7px;background:#fffdf8;display:grid;place-items:center;color:#fff;padding:3px;flex:none}.j-check-button[aria-pressed=true]{background:#899774;border-color:#899774}.j-check-button svg{height:16px;width:16px}.j-completed .j-record-main>b,.j-completed .checkline b{color:#9d9a8a;text-decoration:line-through;text-decoration-thickness:1px}.j-budget-line{font-size:.83rem;color:#9b805d;background:#f8f0e2;border-radius:8px;padding:11px 13px;margin:0 0 13px}.j-budget-line.danger{color:#a45e49;background:#f6e7dd}
.modal,.more-dialog{background:#fffdf8;color:var(--ink);border:1px solid #dfc9ac;border-radius:18px;width:min(94vw,640px);max-height:calc(100dvh - 48px);box-shadow:0 24px 80px #50361d2b}.modal::backdrop,.more-dialog::backdrop{background:#3c2b1bb0;backdrop-filter:blur(3px)}.modal-head{position:sticky;top:0;z-index:2;background:#fffcf7;padding:21px 25px 17px;border-color:#e8d9c7}.modal-head h2{font-size:1.35rem;font-weight:500}.modal-head small{font-size:.65rem;letter-spacing:.13em}.icon-button{background:#f2e6d6;color:#9d7a57;height:34px;width:34px;border-radius:9px;font-size:1.4rem;flex:none}.icon-button:hover{background:#e9d6bc}#editor .modal-form{padding:23px 25px 22px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 18px}#editor .field{font-size:.82rem;font-weight:500;color:#876447;min-width:0}#editor .field:has(textarea),#editor .field:has(input[type=file]),#editor .field:has(input[name=title]),#editor .field:has(input[name=name]),#editor .field:has(select[name=foodId]),#editor .field:has(input[name=owner]),#editor .j-existing-files,#editor .j-form-error{grid-column:1/-1}.field input,.field textarea,.field select{border-color:#dfcdb6;background:#fffcf6;border-radius:8px;color:#574435;font-size:.94rem;font-weight:400;min-width:0;padding:10px 11px}.field input:focus,.field textarea:focus,.field select:focus{border-color:#b88e62}.field input[type=file]{font-size:.8rem;padding:12px}.field input[type=file]::file-selector-button{background:#f1e3d0;border:0;padding:7px 10px;border-radius:6px;color:#976f46;margin-right:8px;font:inherit}.field-hint{font-size:.73rem;color:#ae977b;font-weight:400}.field textarea{min-height:92px;line-height:1.8}.form-footer{grid-column:1/-1;position:sticky;bottom:-22px;z-index:1;background:#fffdf8f5;padding:15px 0 0;border-top:1px solid #eee1d0;margin-top:8px}.j-form-error{color:#a65e49;background:#faeade;border-radius:8px;font-size:.83rem;padding:10px 12px}.j-existing-files{padding:12px 14px;background:#faf3e7;border-radius:8px;font-size:.8rem}.j-existing-files p{margin:0 0 9px;color:#9e7b52}.j-existing-files label{display:flex;gap:8px;align-items:center;font-size:.77rem;color:#977b5a;margin-top:7px;overflow-wrap:anywhere}.j-existing-files input{accent-color:var(--terracotta)}.j-save-hint{font-size:.72rem;color:#a28b6f;margin-right:auto;align-self:center}.j-quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:20px 23px 25px}.j-quick-grid>button{display:grid;grid-template-columns:36px 1fr;gap:4px 10px;text-align:left;align-items:center;border:1px solid #eadbc5;background:#fcf7ee;border-radius:12px;padding:16px 12px;min-width:0;color:#805d3d}.j-quick-grid>button:hover{background:#f0e1cb;border-color:#c5a07b}.j-quick-grid>button>span{grid-row:span 2;color:#bb9469;display:grid;place-items:center}.j-quick-grid strong{font-size:.88rem;font-weight:500}.j-quick-grid small{font-size:.71rem;color:#ab9273}.more-list button{display:flex;align-items:center;gap:7px;font-size:.87rem}.site-footer{margin-left:226px;padding:18px 32px 24px;color:#af9a80;font-size:.72rem;text-align:center;line-height:1.9}.site-footer a{color:#aa967d}.assistant-float{display:flex;align-items:center;gap:7px;background:#fffaf0;box-shadow:0 4px 18px #6046270f;border-color:#d7bea1;color:#9d6942;font-size:.82rem;font-weight:500;right:23px;bottom:20px;padding:10px 13px}.assistant-float svg{height:17px;width:17px}.toast{font-size:.87rem;line-height:1.7;background:#62462e;z-index:100}.notice{font-weight:400;background:#f3eadb;border-left-color:#be966a;color:#997b58;font-size:.82rem}.settings-form{gap:14px}.section-card>h2{font-size:1.2rem}.section-card>.note{font-size:.87rem}.record-list .empty{margin:0}.auth-error{overflow-wrap:anywhere}
.j-banner-note{writing-mode:horizontal-tb;align-self:flex-end;font-size:.77rem;letter-spacing:.04em}
@media(min-width:1500px){.j-home-banner{min-height:174px}.j-memory-preview .j-photo{height:167px}.j-home-grid{gap:19px}}
@media(max-height:820px) and (min-width:901px){.sidebar{padding-top:18px}.brand{padding-bottom:12px}.j-nav-group>p{margin-top:13px}.nav-item{min-height:35px;padding-block:6px}.sidebar-bottom{display:none}}
@media(max-width:1250px) and (min-width:901px){.app-shell{grid-template-columns:210px minmax(0,1fr)}.main{padding-inline:25px}.topbar{padding-inline:25px}.site-footer{margin-left:210px}.j-home-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.j-trip-home{grid-column:span 2}.j-today-home,.j-memories-home{grid-column:span 1}.j-memory-preview{gap:8px}.j-memory-preview .j-photo{height:110px}.j-home-foot{grid-template-columns:1fr 1fr}.j-home-foot>button:last-child{grid-column:span 2}.j-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.j-album-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.j-food-layout{grid-template-columns:1fr}.j-food-layout>aside{display:grid;grid-template-columns:1fr 1fr;gap:15px}.j-quickbar{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.app-shell{display:block}.sidebar{display:none}.topbar{padding:0 20px;min-height:57px}.mobile-logo{display:grid;width:31px;height:31px;border-radius:9px;box-shadow:none}.mobile-logo svg{width:20px;height:20px}.main{padding:25px 21px calc(100px + env(safe-area-inset-bottom))}.site-footer{margin-left:0;padding-bottom:calc(100px + env(safe-area-inset-bottom))}.mobile-nav{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:20;justify-content:space-around;background:#fffaf2f5;border-top:1px solid #e9dcc8;backdrop-filter:blur(16px);padding:8px 4px calc(7px + env(safe-area-inset-bottom));box-shadow:0 -4px 16px #6b4a2a06}.mobile-nav button{border:0;background:none;color:#a68f73;display:grid;place-items:center;gap:4px;min-width:50px;min-height:43px;padding:4px 6px;font-size:.7rem}.mobile-nav button span:first-child{font-size:1rem;line-height:1}.mobile-nav button.active{color:#a65e3a;font-weight:600}.mobile-nav button .j-icon{width:21px;height:21px}.assistant-float{right:15px;bottom:calc(83px + env(safe-area-inset-bottom));height:43px;width:43px;display:grid;place-items:center;padding:0;border-radius:50%}.assistant-float span{display:none}.assistant-float .j-icon{width:20px;height:20px}.toast{bottom:calc(85px + env(safe-area-inset-bottom));right:15px}.j-home-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.j-trip-home,.j-memories-home{grid-column:span 2}.j-today-home{grid-column:span 2}.j-home-foot{grid-template-columns:1fr}.j-today-meals{grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.j-today-meals>div{grid-template-columns:1fr;align-items:start}.j-today-meals .ghost{justify-content:flex-start;padding-left:0}.j-album-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.j-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.j-food-layout{grid-template-columns:1fr}.j-food-layout>aside{display:grid;grid-template-columns:1fr 1fr;gap:14px}.modal,.more-dialog{max-height:calc(100dvh - 30px);margin:auto}.j-home-foot>button{padding-block:9px}}
@media(max-width:600px){:root{font-size:14px}.main{padding:22px 15px calc(100px + env(safe-area-inset-bottom))}.topbar{padding-inline:15px}.page-heading{display:block;margin-bottom:21px}.page-heading h1{font-size:1.85rem;line-height:1.45}.page-heading p:last-child{font-size:.85rem;line-height:1.8;margin-top:7px}.page-heading .actions{margin-top:16px}.page-heading .actions .primary,.page-heading .actions .secondary{min-height:40px;padding:9px 12px;font-size:.86rem}.eyebrow{font-size:.61rem}.j-home-banner{min-height:147px;padding:21px 20px;background-position:center}.j-home-banner h2{font-size:1.24rem;max-width:240px;line-height:1.8;margin:9px 0}.j-banner-note{display:none}.j-banner-kicker{font-size:.68rem}.j-home-banner p{font-size:.69rem}.j-quickbar{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-bottom:19px}.j-quick{min-height:43px;font-size:.77rem;gap:6px}.j-quick svg{height:16px;width:16px}.j-home-grid{grid-template-columns:1fr;gap:13px}.j-trip-home,.j-today-home,.j-memories-home{grid-column:span 1}.j-home-grid>.panel{padding:19px}.j-trip-home h3{font-size:1.22rem}.j-trip-illustration{height:39px;width:39px;margin:10px 0}.j-trip-home .note{margin-bottom:9px}.j-memory-preview{gap:9px}.j-memory-preview .j-photo{height:105px;border-radius:8px}.j-memory-preview strong{font-size:.75rem}.j-memory-preview small{font-size:.64rem}.j-home-foot{gap:0}.j-home-foot>button{border-top:1px solid #eadcc6;min-height:45px;font-size:.8rem}.j-home-foot>button>span{font-size:.73rem}.stat-grid{gap:8px;margin-bottom:18px;grid-template-columns:repeat(3,minmax(0,1fr))}.stat-card{padding:15px 11px}.stat-card small{font-size:.73rem}.stat-card strong{font-size:1.4rem;margin-top:7px}.stat-card span{display:block;font-size:.65rem;line-height:1.7}.stat-grid .stat-card:last-child strong{font-size:1.35rem}.card-grid{grid-template-columns:1fr;gap:13px}.item-card{padding:20px}.j-card-symbol{width:36px;height:36px;border-radius:10px}.j-card-symbol svg{width:21px;height:21px}.j-goal-card h3,.j-wish-card h3{font-size:1.2rem;margin-top:15px}.big-value{font-size:1.9rem}.j-wish-budget{margin-top:17px}.j-toolbar{gap:9px;margin-bottom:15px}.j-search{min-width:150px;max-width:none;flex-basis:100%;padding-inline:10px}.j-search input{font-size:16px;min-height:43px}.j-status{flex:1}.j-status select{width:100%;min-height:40px;font-size:.83rem}.j-result-count{font-size:.75rem}.j-memory-filters{gap:10px}.j-memory-filters>label{flex:1;min-width:130px;gap:6px;font-size:.76rem}.j-memory-filters select{width:100%;min-width:0;font-size:.8rem;padding-right:16px}.tabs{gap:4px;padding-bottom:9px;margin-bottom:17px}.tabs button{font-size:.8rem;padding:9px 12px;min-height:38px}.timeline-item{display:block}.timeline-media{height:210px;min-height:0}.timeline-body{padding:19px}.timeline-body h3{font-size:1.2rem}.timeline-body>.meta{font-size:.73rem}.j-album-grid{gap:12px}.j-album>.j-photo,.j-album-empty{height:130px}.j-album>div:last-child{padding:14px}.j-album h3{font-size:1rem}.j-album .card-actions{margin-top:12px;gap:2px}.j-album .tiny{font-size:.73rem;padding-inline:5px}.member-grid{flex-wrap:nowrap;overflow-x:auto;gap:8px;padding-bottom:5px;margin-bottom:17px;scrollbar-width:thin}.member-card{min-width:135px;padding:11px 12px;flex:none;font-size:.85rem}.member-avatar{height:33px;width:33px;border-radius:10px}.member-card small{font-size:.67rem}.panel,.section-card{padding:18px;border-radius:13px}.section-card{margin-bottom:14px}.record-row{gap:9px;padding:14px 0}.record-row>.actions{width:100%;justify-content:flex-end;margin-left:0}.j-record-main{min-width:0}.record-row b{font-size:.9rem}.record-row small{font-size:.74rem}.j-record-icon{height:31px;width:31px;border-radius:8px}.record-row .j-measurement{font-size:1.27rem}.j-metric-grid{gap:9px}.j-metric-grid .stat-card{padding:15px}.j-metric-grid .stat-card span{font-size:.7rem}.j-metric-grid .stat-card strong{font-size:1.65rem}.j-trend{min-height:110px}.j-member-facts{font-size:.74rem;gap:10px}.j-week-planner .panel-title{flex-wrap:wrap;gap:9px}.j-week-planner .panel-title h2{font-size:1rem}.j-week-planner .actions{margin-left:auto}.j-week-planner .tiny{font-size:.74rem;padding:6px 8px;min-height:34px}.j-day-strip{gap:4px}.j-day-strip button{padding:10px 1px;border-radius:8px}.j-day-strip button span{font-size:.65rem}.j-day-strip button strong{font-size:1.35rem}.j-day-strip button small{font-size:.58rem}.j-food-layout{gap:13px}.j-food-layout>aside{display:block}.j-food-layout .panel-title{flex-wrap:wrap;gap:10px}.j-food-layout .panel-title h2{font-size:1.05rem}.j-food-layout .inline-input{font-size:.8rem;max-width:145px;padding:8px}.j-meal-section .record-row>.actions{width:auto;margin-left:auto}.j-meal-section .tiny{font-size:.73rem;padding-inline:6px}.j-meal-section .record-row small{font-size:.71rem}.j-nutrition-card .nutrient-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.j-nutrition-card .nutrient{padding:10px 6px}.j-nutrition-card .nutrient b{font-size:1.05rem}.j-nutrition-card .nutrient small{font-size:.65rem}.j-food-library summary{font-size:.98rem;line-height:1.9}.j-food-library summary .meta{display:block;margin-left:0;font-size:.73rem}.j-trip-cover{margin:-20px -20px 19px;height:110px;padding:18px 20px}.j-trip-overview{padding:16px;gap:14px;grid-template-columns:1fr 1fr}.j-trip-overview>div:last-child{grid-column:1/-1;display:flex;align-items:baseline;gap:12px;border-top:1px solid #dfc9aa;padding-top:10px}.j-trip-overview strong{font-size:1.22rem}.j-trip-overview small{font-size:.71rem}.j-trip-overview span{font-size:.69rem}.j-trip-overview>div:last-child strong{font-size:1.15rem}.j-trip-overview>div:last-child span{margin-left:auto}.j-budget-line{font-size:.77rem;line-height:1.8}.j-trip-facts{font-size:.77rem}.j-check-button{height:28px;width:28px}.modal,.more-dialog{width:100%;max-width:100%;margin:auto 0 0;border-radius:19px 19px 0 0;max-height:calc(100dvh - 20px)}.modal-head{padding:20px 19px 16px}.modal-head h2{font-size:1.25rem}.icon-button{width:36px;height:36px}#editor .modal-form{padding:20px 19px calc(20px + env(safe-area-inset-bottom));grid-template-columns:1fr;gap:15px}#editor .field{font-size:.85rem}.field input,.field textarea,.field select{font-size:16px;min-height:45px}.field-hint{font-size:.73rem}.form-footer{bottom:calc(-20px - env(safe-area-inset-bottom));padding:13px 0 calc(3px + env(safe-area-inset-bottom));margin-top:5px}.form-footer>.primary,.form-footer>.secondary{min-height:43px}.j-save-hint{font-size:.68rem}.j-quick-grid{gap:9px;padding:18px 16px calc(24px + env(safe-area-inset-bottom))}.j-quick-grid>button{grid-template-columns:28px 1fr;gap:4px 6px;padding:14px 9px;border-radius:10px}.j-quick-grid strong{font-size:.8rem}.j-quick-grid small{font-size:.62rem}.j-quick-grid .j-icon{width:20px;height:20px}.more-list{padding:14px 15px calc(20px + env(safe-area-inset-bottom))}.more-list button{font-size:.82rem;padding:13px 9px}.more-list .nav-icon{width:20px}.site-footer{font-size:.65rem;padding-top:12px}.assistant-float{box-shadow:0 3px 12px #60462713}.j-storage-note{align-items:flex-start;font-size:.73rem;line-height:1.9}}
@media(max-width:350px){.main{padding-inline:12px}.page-heading h1{font-size:1.65rem}.j-quick{font-size:.71rem;gap:5px}.j-quickbar{gap:5px}.j-home-grid>.panel{padding:16px}.j-memory-preview{gap:6px}.j-memory-preview .j-photo{height:85px}.stat-card{padding:12px 8px}.stat-card strong{font-size:1.15rem}.stat-grid .stat-card:last-child strong{font-size:1.15rem}.stat-card span{font-size:.6rem}.stat-card small{font-size:.67rem}.j-quick-grid>button{grid-template-columns:1fr;justify-items:start}.j-quick-grid>button>span{grid-row:auto}.j-day-strip button small{font-size:.53rem}.j-day-strip button strong{font-size:1.2rem}.j-day-strip button span{font-size:.6rem}.j-nutrition-card .nutrient-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.j-trip-overview strong{font-size:1.05rem}.j-trip-overview>div:last-child{flex-wrap:wrap}.j-save-hint{display:none}}
@media(pointer:coarse){.tiny{min-height:40px}.nav-item{min-height:42px}.j-check-button{width:38px;height:38px}.checkline input{width:23px;height:23px}.thumb-row button{min-height:38px}.tabs button{min-height:42px}.more-list button{min-height:44px}}
html{scrollbar-gutter:stable}body:has(dialog[open]){overflow:hidden}.form-footer{bottom:0}
.j-home-banner h2 span{display:inline}
@media(max-width:600px){.j-home-banner h2{max-width:none}.j-home-banner h2 span{display:block}.j-day-strip button span{font-size:11px}.j-day-strip button small{font-size:10px}.mobile-nav button{font-size:11px}.j-banner-kicker{font-size:11px}.j-memory-preview small{font-size:11px}.stat-card small{font-size:11px}.stat-card span{font-size:10px}.j-metric-grid .stat-card span{font-size:11px}.j-quick-grid small{font-size:10px}}
@media(pointer:coarse){.member-shortcut{width:44px;height:44px}.assistant-float{width:44px;height:44px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
