.family-chat-frame{position:fixed;top:132px;bottom:100px;left:50%;transform:translateX(-50%);width:min(440px,100%);height:calc(100dvh - 232px);border:0;background:#faf9f3;z-index:2}.family-chat-frame[hidden]{display:none}.family-chat-open .voicehint{display:none}.family-selects{display:flex;gap:8px;margin:12px 0}.family-selects select{max-width:110px;border:1px solid #dedfd4;border-radius:15px;background:#fff;padding:10px;font:inherit}.role-chip{display:inline-block;background:#fff9ed;border-radius:12px;padding:9px;margin:4px;font-size:12px}#familyForm{text-align:left}#familyForm button{width:100%;padding:14px}.family-chat-open .app{padding-bottom:100px}
.nav{position:relative}.family-unread{position:absolute;right:0;top:-5px;background:#cd886e;color:white;font-size:10px;padding:2px 5px;border-radius:10px}
.editor-back{background:transparent;padding:18px 0 8px;color:#72856f}.item-editor-intro{padding:20px 0 8px}.item-editor-intro h2{font-size:23px;margin:10px 0}.item-create-form{background:#fffdf8;border:1px solid #eeece1;border-radius:24px;padding:22px 18px;margin-top:12px}.item-create-form label{display:block;font-size:14px;font-weight:600;margin:20px 0 10px}.item-create-form label:first-child{margin-top:0}.item-create-form input{background:#faf9f3;min-width:0}.quantity-control{display:flex;align-items:center;gap:12px}.quantity-control button{background:#e5edde;border-radius:13px;width:48px;height:48px;flex-shrink:0;font-size:23px}.quantity-control input{text-align:center}.item-save{background:#60876c;color:#fff;border-radius:17px;padding:16px;width:100%;margin-top:12px;font-weight:600}#itemCreateError{font-size:13px;color:#ad5b42}.app>header .avatar{font-size:20px;min-width:48px;min-height:48px}
/* Dialogs stay inside the visible mobile viewport, including short screens. */
.overlay{align-items:center;padding:16px 14px;padding-top:max(16px,env(safe-area-inset-top));padding-bottom:max(16px,env(safe-area-inset-bottom));overflow:hidden;height:100dvh}
.sheet{position:relative;flex-shrink:1;width:min(412px,100%);max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;border-radius:28px;padding:26px 22px 28px;scroll-padding-bottom:24px}
.sheet .close{position:sticky;top:0;z-index:1;float:right;background:#faf9f3;border-radius:50%;width:36px;height:36px;margin:-8px -6px 0 0}
@supports not (height:100dvh){.overlay{height:100vh}.sheet{max-height:calc(100vh - 32px)}}
.stock-actions{margin-top:16px}.item-save:disabled{opacity:.45;cursor:default}.stock-record{text-align:left;background:#fff;padding:15px;border-radius:16px;margin:10px 0;overflow-wrap:anywhere}.stock-record b{display:block;font-size:14px}.stock-record b span{float:right;color:#78906d}.stock-record p,.stock-record small{font-size:12px;color:#879188;line-height:1.6}#outError{color:#ad5b42;font-size:13px}#stockOutForm{text-align:left}

@font-face{font-family:WoCuteTitle;src:url("/title-cute.ttf") format("truetype");font-display:swap;font-weight:400}.app header h1{font-family:WoCuteTitle,"YouYuan","幼圆",sans-serif;font-weight:400;font-size:26px;letter-spacing:1px;line-height:1.4}
