/* Formal-use layouts: container width, not inherited desktop grids, controls each page. */
body{color:#3d342c}.main{min-height:0}.topbar{flex-shrink:0}.growth-grid,.profile-layout{display:flex;flex-direction:column;gap:18px}.profile-layout{max-width:680px;margin:auto}.profile-layout .panel{margin:0}.profile-card{min-width:0;display:flex;align-items:center}.profile-card>div{flex:1;min-width:0}.profile-card h2{overflow-wrap:anywhere}.profile-card>.link{margin-left:auto}.profile-actions h3{font-size:13px;color:#9c8671;padding:15px 0 4px;font-weight:500}.profile-actions button,.profile-actions a{min-height:52px;font-size:14px}.profile-actions button:last-child,.profile-actions a:last-child{border-bottom:0}.account-footer{text-align:center;font-size:11px;color:#a39483;padding:10px}.avatar-button{padding:0;background:none;border:0;flex-shrink:0}.avatar-button img{display:block;object-fit:cover}.profile-preview{width:90px;height:90px;border-radius:50%;object-fit:cover;margin:auto}.about-bear{height:70px;object-fit:cover}.quick{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.quick button{min-height:82px}.quick button:nth-child(5)>span{background:#f8e8d5}.quick button:nth-child(6)>span{background:#ece8de}.quick strong{font-size:12px}.quick .icon{width:26px;height:26px}.timeline-item{min-width:0}.event-copy strong{font-size:14px}.event-copy p{font-size:12px;line-height:1.65;color:#766858;overflow-wrap:anywhere}.event-copy .meta{font-size:10px}.home-summary{font-size:10px;min-height:40px}.record-type-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:8px 0 22px}.record-type-grid button{display:flex;flex-direction:column;align-items:center;gap:10px;min-height:78px;background:#f8f0e5;padding:16px 5px;border-radius:15px;color:#80644d;font-size:13px}.record-type-grid .icon{width:25px;height:25px}.record-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:15px}.record-fields:empty{display:none}.form label{font-size:13px;line-height:1.5}.form input,.form select,.form textarea{font-size:14px;min-width:0;min-height:44px}.form .hint{line-height:1.65}.form textarea{min-height:100px}.form .check input{min-height:0;flex-shrink:0}.modal{overscroll-behavior:contain}.modal-backdrop{align-items:center;padding:16px}.modal{border-radius:22px;max-height:calc(100dvh - 32px)}.modal-head h2{font-size:18px}.button{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:7px}.icon-btn{min-width:36px;min-height:36px}.button.full{width:100%}.media-count{position:absolute;top:12px;right:12px;background:#33291f88;border:1px solid #ffffff55;color:white;padding:5px 9px;border-radius:18px;font-size:11px;z-index:2}.memory-text strong{overflow-wrap:anywhere}.album-grid{align-items:stretch}.photo-stage{position:relative;margin-top:18px;background:#eee9df;border-radius:16px;overflow:hidden;touch-action:pan-y}.photo-stage>img{display:block;width:100%;max-height:55dvh;object-fit:contain;min-height:150px}.photo-controls{display:flex;align-items:center;justify-content:space-between;position:absolute;bottom:10px;left:10px;right:10px;pointer-events:none;color:white}.photo-controls button,.photo-controls span{pointer-events:auto;background:#342a2177;border-radius:20px;color:white;padding:6px 14px;font-size:13px}.photo-controls button{font-size:25px;min-width:40px;line-height:28px}.photo-controls button:disabled{opacity:.3}.photo-thumbs{display:flex;gap:9px;overflow:auto;padding:12px 0 16px}.photo-thumbs button{border:2px solid transparent;border-radius:12px;padding:2px;flex-shrink:0}.photo-thumbs button.selected{border-color:#d3a17c}.photo-thumbs img{width:58px;height:58px;display:block;object-fit:cover;border-radius:8px}.comments-section{border-top:1px solid #eadfce;margin-top:20px;padding-top:20px}.comments-section h3{font-size:15px;margin-bottom:15px}.comment{padding:12px 0;border-bottom:1px solid #eee8de}.comment>div{display:flex;justify-content:space-between;gap:15px;align-items:center}.comment strong{font-size:12px}.comment time{color:#a08f7e;font-size:10px;white-space:nowrap}.comment p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.7;margin:7px 0}.comment .link{font-size:11px;min-height:28px}.comment-form{margin-top:15px;display:grid;gap:10px}.comment-form textarea{width:100%;min-height:80px;border:1px solid #e8ded0;background:#fcf8f2;border-radius:12px;padding:13px;font:inherit;font-size:13px;resize:vertical}.comment-form .button{justify-self:end}.delete-memory-link{margin-top:22px;font-size:12px;color:#b77d69}.preview-list{font-size:12px;color:#897865;overflow-wrap:anywhere;line-height:1.7}.assistant-intro{display:flex;gap:15px;align-items:center;margin:10px 0 25px}.assistant-intro img{width:65px;height:65px}.assistant-intro h2{font-size:18px}.assistant-intro p{font-size:12px;color:#998570;margin-top:6px}.agent-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:20px}.agent-card{background:#fffcf7;border:1px solid #eadfce;border-radius:15px;padding:14px 10px;text-align:left;display:flex;flex-direction:column;gap:7px}.agent-card strong{font-size:14px;color:#6a5140}.agent-card span{font-size:10px;line-height:1.5;color:#a18a72}.agent-card small{font-size:10px;color:#a58e78}.agent-card.selected{border-color:#cf9e78;background:#fff2e5;box-shadow:0 2px 9px #b8947110}.chat-layout{gap:22px}.chat-compose{padding:0;box-shadow:none;background:none}.city-label{font-size:12px;color:#927b64;display:block}.city-label input{width:100%;display:block;border:1px solid #e7dfd3;border-radius:10px;background:#faf7f1;padding:11px;font-size:13px;margin-top:7px}.chat-log{max-height:440px;min-height:20px}.chat-compose textarea{min-height:95px;padding:13px;font-size:14px}.chat-options{font-size:11px;line-height:1.8}.chat-compose .caption{font-size:10px}.chat-panel{min-height:0}.provider-state{color:#b18359;font-size:12px;line-height:1.7;margin-bottom:10px}.provider-state:empty{display:none}.photo-workshop p{font-size:13px;line-height:1.8;color:#907b65;margin:10px 0 20px}.selected-reference{padding:12px;background:#f0f2e9;color:#81916f;font-size:12px;border-radius:10px}.admin-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:5px 0 22px}.admin-toolbar h2{font-size:21px}.admin-toolbar p{font-size:12px;color:#9b866e;margin-top:7px}.maintenance-bar{display:flex;gap:20px;align-items:center;justify-content:space-between;background:#edf1e7;border:1px solid #e0e6d7;border-radius:16px;padding:20px;margin-bottom:22px}.maintenance-bar strong{font-size:14px;color:#68775b}.maintenance-bar p{font-size:12px;color:#8c977e;line-height:1.7;margin-top:5px}.maintenance-bar .button{white-space:nowrap}.admin-grid .stack{min-width:0}.setting>div{min-width:0}.setting p{overflow-wrap:anywhere}.page-admin .pill{font-size:10px}.empty p{font-size:13px;line-height:1.8}.empty .button{margin:auto}.bottom-nav{display:flex;gap:0;z-index:20}.bottom-nav button{flex:1;min-width:0;min-height:48px}.bottom-nav button .icon{width:21px;height:21px}.bottom-nav span{font-size:11px}.room-stage{min-height:0}.room-stage>img{max-height:680px}.page-room .main{padding-bottom:95px}.member-card .avatar-img{width:55px;height:55px;border-radius:50%;object-fit:cover;margin:0 auto 10px}.page-family .section-head{gap:12px}.page-family .section-head h2{font-size:17px}.page-family .section-head .button{padding:9px 12px;white-space:nowrap}.page-family .member-grid{grid-template-columns:repeat(auto-fit,minmax(110px,1fr))}.page-me .topbar{margin-bottom:22px}
@media(min-width:900px){body{padding:24px}.shell{max-width:1040px;min-height:calc(100dvh - 48px)}.shell.page-admin{max-width:1100px}.main{padding:0 34px 105px;min-height:0}.topbar{height:76px;margin:0 0 15px;border-bottom:1px solid #eee5d8;justify-content:flex-start}.topbar h1{font-size:23px;letter-spacing:1px}.header-actions{top:22px;right:0}.page-home .topbar{height:76px;margin:0 0 5px}.page-home .topbar h1{font-size:21px;color:#564638}.page-home .header-actions{top:20px}.bottom-nav,.page-admin .bottom-nav{width:calc(100% - 48px);max-width:1040px;bottom:24px;left:50%;transform:translateX(-50%);border-radius:0 0 24px 24px}.page-admin .bottom-nav{max-width:1100px}.bottom-nav button{flex-direction:row;gap:10px;padding:18px 10px}.bottom-nav span{font-size:13px}.page-home .main{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:36px;row-gap:18px}.page-home .topbar{grid-column:1/-1}.page-home .baby-profile{grid-column:1;grid-row:2;padding:4px 0}.page-home .today-banner{grid-column:2;grid-row:2;margin:4px 0;min-height:80px}.page-home .quick{grid-column:1/-1;grid-row:3;grid-template-columns:repeat(6,minmax(0,1fr));margin:0 0 10px}.page-home .daily-section{grid-column:1;grid-row:4/span 3}.page-home .home-summary{grid-column:2;grid-row:4;margin:0}.page-home .memory-strip{grid-column:2;grid-row:5;margin:0}.page-home .home-room-link{grid-column:2;grid-row:6;align-self:start}.page-home .demo-footnote{grid-column:1/-1}.page-home .timeline-item{min-height:86px}.page-home .memory-card{min-height:190px}.profile-layout{max-width:670px}.page-me .profile-card{padding:25px}.page-me .profile-actions{padding:8px 25px}.page-me .profile-actions button,.page-me .profile-actions a{font-size:15px;min-height:58px}.album-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.album-grid .memory-card:first-child{grid-column:auto;min-height:260px}.album-grid .memory-card,.album-grid .memory-picture,.album-grid .memory-card:first-child .memory-picture{min-height:260px}.memory-picture img{object-fit:cover}.album-toolbar{display:flex;gap:30px;align-items:center}.album-toolbar .tabs{flex:1;margin:0}.album-search{max-width:330px}.album-search .search{font-size:13px}.growth-chart-section{max-width:720px;margin:0 auto 30px}.chart{height:290px}.milestones-section,.growth-records{max-width:720px;margin:0 auto 30px}.milestone p{font-size:12px}.milestone>.caption{font-size:12px}.chat-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)}.agent-grid{max-width:650px}.agent-card{padding:18px}.agent-card span{font-size:12px}.chat-panel{background:#fffdf9;padding:24px;border-radius:20px}.chat-compose .caption{max-width:260px}.room-stage>img{height:620px;object-position:center}.room-stage .spot{font-size:15px;padding:18px 23px}.spot small{font-size:12px}.modal,.modal.wide{width:100%;max-width:580px;padding:26px}.modal.wide{max-width:720px}.form .two{gap:16px}.page-admin .admin-grid{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}.admin-stat .caption{font-size:12px}.setting h3{font-size:14px}.setting p{font-size:12px}.page-family .member-grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}.member-card{background:#fffdf9;border-radius:18px;padding:25px}.member-card h3{font-size:16px}.member-card .pill{font-size:11px}.member-card .button{font-size:12px;padding:8px 12px}}
@media(max-width:899px){body{padding:0}.shell,.login{border:0;border-radius:0;min-height:100dvh;max-width:520px}.main{padding-bottom:calc(95px + env(safe-area-inset-bottom))}.bottom-nav,.page-admin .bottom-nav{bottom:0;max-width:520px;width:100%;border-radius:0;left:50%;transform:translateX(-50%);padding-bottom:env(safe-area-inset-bottom)}.page-admin{max-width:520px}.page-admin .main{padding:0 20px 100px}.page-admin .admin-grid{grid-template-columns:1fr}.maintenance-bar{flex-direction:column;align-items:flex-start}.admin-toolbar .button{font-size:11px;padding:10px}.page-admin .topbar h1{font-size:19px}.album-grid .memory-card:first-child{grid-column:1/-1}.modal-backdrop{align-items:end;padding:0}.modal,.modal.wide{border-radius:24px 24px 0 0;max-width:520px;max-height:92dvh;padding-bottom:calc(25px + env(safe-area-inset-bottom))}.form input,.form select,.form textarea,.chat-compose textarea,.city-label input,.comment-form textarea{font-size:16px}.form .check{font-size:12px}.form .check input{min-height:0}.photo-controls button{min-height:42px}.login-form{padding-bottom:40px}.agent-card strong{font-size:12px}.page-me .profile-layout{gap:15px}}

body.modal-open{overflow:hidden}.photo-stage button:focus-visible,.record-type-grid button:focus-visible,.bottom-nav button:focus-visible{outline:2px solid #bd8b65;outline-offset:3px}
.timeline-item{grid-template-columns:39px 7px 28px minmax(0,1fr) 36px}.edit-event{width:36px;justify-self:end}
@media(min-width:900px){.shell{display:flex;flex-direction:column}.main{order:1;padding-bottom:35px}.bottom-nav,.page-admin .bottom-nav{order:0;position:sticky;top:24px;bottom:auto;left:auto;transform:none;width:100%;max-width:none;border-radius:24px 24px 0 0;border:0;border-bottom:1px solid #e9dfd1;background:#fffdf9f5;backdrop-filter:blur(12px);padding:0 15px}.page-me .profile-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);max-width:none;align-items:start}.profile-card,.account-footer{grid-column:1/-1}.page-admin .main{padding-bottom:35px}.page-room .main{padding-bottom:35px}.page-me .topbar{margin-bottom:22px}}
