.settings-menu{display:grid;gap:9px;margin-top:14px}.settings-menu button{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:62px;padding:11px 14px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);font:inherit;text-align:left}.settings-menu span,.settings-menu small{display:block}.settings-menu small{margin-top:4px;color:var(--muted)}.settings-menu i{font-size:28px;font-style:normal;color:var(--purple)}
.settings-subdialog{height:min(88dvh,720px)}.settings-subdialog .modal-head{display:grid;grid-template-columns:40px 1fr 40px;align-items:center;border-bottom:1px solid var(--line);padding:12px}.settings-subdialog .modal-head h2{text-align:center}.settings-back{width:38px;height:38px;border:0;background:transparent;color:var(--purple);font-size:30px}.settings-scroll{height:calc(100% - 64px);overflow-y:auto;padding:6px 18px 24px}.settings-scroll .eye-toggle{margin:0;border-bottom:1px solid var(--line)}.settings-scroll .pet-settings{display:block;margin:0;border:0;padding:0}.settings-scroll .pet-settings>summary{display:none}.settings-scroll output{color:var(--purple);font-weight:800}
.hide-title .topbar>div:first-child{visibility:hidden}.hide-summary .summary-grid{display:none}.hide-summary .compact-actions{display:flex}.hide-tools-entry #toolsBtn,.hide-tools-entry #compactToolsBtn{display:none}.hide-blank-entry #blankBtn,.hide-blank-entry #compactBlankBtn{display:none}.hide-search .search{display:none}.hide-date-button #dateBtn{display:none}.hide-overview-button #overviewBtn{display:none}.hide-add-button #addBtn{display:none}.hide-filters .filters{display:none}.hide-orders .app-shell .orders,.hide-orders .app-shell .empty{display:none!important}.hide-backup #backupBtn{display:none}.compact-actions:empty{display:none}.hide-tools-entry.hide-blank-entry .compact-actions{display:none}.hide-summary .toolbar{margin-top:4px}
.pet .pet-layer{display:none!important}.pet-art{transform:translate3d(var(--pet-sway,0px),var(--pet-bob,0px),0) rotate(var(--pet-tilt,0deg)) scale(var(--pet-breathe,1));transform-origin:50% 82%}.pet-eyelids{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;opacity:var(--blink,0);pointer-events:none}.pet-eyelids img{width:100%!important;height:100%!important;object-fit:contain!important;filter:none!important}.pet.no-animation .pet-art{transform:none}.pet.no-animation .pet-eyelids{opacity:0}
@media(max-width:520px){.settings-subdialog{width:100vw;height:100dvh;max-width:none;max-height:none;border-radius:0}.settings-scroll{padding:4px 14px 24px}}
.home-editor>p{font-size:13px;line-height:1.6;color:var(--muted)}.home-editor h3{font-size:15px;margin:20px 0 12px}.home-editor h3 small{font-weight:400;color:var(--muted)}.module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.module-tile{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px 2px;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--ink);font:inherit;font-size:12px;min-height:94px}.module-tile i{font-style:normal;font-size:23px;width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:#eee8fa;color:var(--purple)}.module-tile.selected{border-color:var(--purple)}.module-tile b{position:absolute;right:5px;top:3px;font-size:17px;color:var(--purple)}.module-empty{grid-column:1/-1;color:var(--muted);font-size:13px}.layout-presets{display:flex;gap:6px;flex-wrap:wrap}.layout-presets button{border:1px solid var(--line);border-radius:20px;padding:9px 12px;background:#fff;color:var(--ink)}#displaySettingsDialog[open]{display:flex;flex-direction:column;overflow:hidden}#displaySettingsDialog .modal-head{flex:none}#displaySettingsDialog .settings-scroll{height:auto;flex:1;min-height:0}.layout-actions{display:flex;gap:12px;padding:12px 16px max(12px,env(safe-area-inset-bottom));border-top:1px solid var(--line);flex:none;background:#fff}.layout-actions button{height:44px}.layout-actions .primary{flex:1}.layout-empty{display:none!important}.hide-title .topbar>div:first-child{display:none}.topbar{min-height:42px}.header-actions{margin-left:auto}[hidden]{display:none!important}
.pet-art{filter:drop-shadow(0 4px 3px #251d3520)}
#visionDialog input{display:block;width:100%;padding:10px;margin:6px 0 12px;border:1px solid var(--line);border-radius:8px}#visionDialog label{display:block}#visionDialog button{min-height:42px;margin-top:8px}#visionPreview{width:100%;max-height:190px;object-fit:contain;margin-top:10px}#visionDialog fieldset{border:1px solid var(--line);border-radius:10px;margin:12px 0}#visionDialog details{margin:14px 0}#visionDialog .modal-head{display:flex}#visionDialog .settings-scroll{line-height:1.5}
.pet-bubble{border:0;border-radius:18px;padding:12px 15px;background:#fffdfb;color:#403747;line-height:1.55;box-shadow:0 4px 18px #3827481a;font-size:var(--bubble-font,14px)}
.pet-bubble:after{width:12px;height:10px;right:24px;bottom:-7px;background:#fffdfb;border:0;transform:none;clip-path:polygon(0 0,100% 0,65% 100%);border-radius:0 0 4px 0}
#pet .pet-bubble{bottom:calc(100% + 3px)}
#pet .pet-bubble textarea{border-radius:12px;background:#fff;border-color:#ece5ef}
#petSettingsDialog[open]{display:flex;flex-direction:column;overflow:hidden}
#petSettingsDialog>.modal-head{flex:none}
#petSettingsDialog>.settings-scroll{height:auto;flex:1;min-height:0}
.pet-live-preview{flex:none;padding:8px 16px 10px;background:linear-gradient(120deg,#f5eef7,#fff7f0);border-bottom:1px solid var(--line);color:#62536c}
.preview-caption{font-size:12px;margin-bottom:5px}
.preview-scene{display:flex;align-items:center;justify-content:center;gap:10px;min-height:150px}
.preview-scene>img{object-fit:contain;flex:none;animation:preview-breathe 2.7s ease-in-out infinite;transform-origin:50% 90%}
.preview-scene>.pet-bubble{position:relative;inset:auto;width:auto;max-width:230px;min-width:0;flex:1}
.preview-scene>.pet-bubble:after{right:-7px;bottom:calc(50% - 5px);clip-path:polygon(0 0,100% 55%,0 100%);width:9px;height:12px}
.pet-live-preview>small{display:block;text-align:center;font-size:11px;margin-top:2px}
.preview-static .preview-scene>img{animation:none}
@keyframes preview-breathe{0%,100%{transform:translateY(0) rotate(-1deg) scale(1)}50%{transform:translateY(-4px) rotate(1deg) scale(1.022)}}
@media(max-height:560px){.preview-scene{min-height:0}.pet-live-preview{padding-top:4px;padding-bottom:4px}.preview-caption{display:none}}
#pet .pet-bubble:after{right:var(--tail-right,24px)}
.secret-status{display:block;color:var(--muted);font-size:12px;margin:4px 0 12px}
body:not(.no-ui-motion) .app-shell{animation:page-enter .35s ease-out}
body:not(.no-ui-motion) dialog[open]{animation:page-enter .22s ease-out}
body:not(.no-ui-motion) .day-panel:not([hidden]){animation:page-enter .2s ease-out}
button{transition:background-color .18s,box-shadow .18s,transform .18s}
body:not(.no-ui-motion) button:active{transform:scale(.97)}
@keyframes page-enter{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
.no-ui-motion button{transition:none}
#dateDialog[open]{display:flex;flex-direction:column;background:#faf8fc;overflow:hidden}
#dateDialog .overview-head{flex:none;border:0;background:#fff}
#dateDialog .calendar-nav{flex:none;padding:12px;background:#fff}
#dateDialog .calendar-scroll{height:auto;flex:1;min-height:0;padding:6px 8px}
#dateDialog .weekdays{height:28px;align-items:center;font-size:11px}
#dateDialog .calendar-grid{height:calc(100% - 28px);grid-template-rows:repeat(6,minmax(0,1fr));gap:4px;padding:3px 0}
#dateDialog .calendar-day{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;min-height:0;padding:5px 3px;border-radius:10px;border-color:#eee6f1;box-shadow:none}
#dateDialog .calendar-number{text-align:left;font-size:11px;line-height:16px;color:#776681}
#dateDialog .calendar-styles{display:flex;flex-direction:column;gap:3px;margin-top:3px;min-height:0;overflow:hidden}
#dateDialog .calendar-styles span{display:block;font-size:10px;line-height:15px;min-height:17px;padding:1px 2px;border-radius:5px;background:#ffffffb8;color:#583f6b}
#dateDialog .calendar-day.complete{background:#e8f5ed}
#dateDialog .calendar-day.pending{background:#efe8f8}
#dateDialog .calendar-day.partial{background:#fff1dc}
#dateDialog .calendar-day.today{outline:2px solid var(--purple);outline-offset:-2px}
#dateDialog .calendar-day.outside{opacity:.4}
#dateDialog .calendar-legend{flex:none;padding:8px}
#dateDialog .day-panel{border-radius:18px;padding:16px;border-color:#e9e0ef}
@media(prefers-reduced-motion:reduce){body .app-shell,body dialog[open],body .day-panel{animation:none!important}button{transition:none}}
.home-resize-handle{display:none}.home-editing .home-resize-handle{display:block;position:absolute;z-index:21}.home-resize-n,.home-resize-s{left:12px;right:12px;height:10px;cursor:ns-resize}.home-resize-n{top:-5px}.home-resize-s{bottom:-5px}.home-resize-e,.home-resize-w{top:12px;bottom:12px;width:10px;cursor:ew-resize}.home-resize-e{right:-5px}.home-resize-w{left:-5px}.home-resize-ne,.home-resize-nw,.home-resize-se,.home-resize-sw{width:14px;height:14px}.home-resize-ne{right:-7px;top:-7px;cursor:nesw-resize}.home-resize-nw{left:-7px;top:-7px;cursor:nwse-resize}.home-resize-se{right:-7px;bottom:-7px;cursor:nwse-resize}.home-resize-sw{left:-7px;bottom:-7px;cursor:nesw-resize}
.home-edit-bar{position:fixed;left:0;right:0;top:0;z-index:300;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;padding:max(10px,env(safe-area-inset-top)) 14px 10px;background:#29232f;color:#fff;box-shadow:0 8px 24px #0004}.home-edit-bar span{font-size:11px;opacity:.72}.home-edit-bar button{height:38px;padding:0 15px;border:0;border-radius:9px;background:#fff;color:#3a2b45;font-weight:800}.home-edit-tray{position:fixed;left:50%;bottom:0;z-index:300;transform:translateX(-50%);display:flex;align-items:center;gap:7px;width:min(100%,760px);overflow-x:auto;padding:10px 14px max(12px,env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line);box-shadow:0 -8px 28px #251d3528}.home-edit-tray strong,.home-edit-tray small{white-space:nowrap;font-size:11px}.home-edit-tray button{white-space:nowrap;min-height:38px;padding:0 11px;border:1px solid var(--line);border-radius:9px;background:var(--premium-soft,#f4eff8);color:var(--ink)}.home-editing{padding-top:64px;padding-bottom:86px}.home-editing .app-shell [data-home-module]{position:relative;outline:2px dashed color-mix(in srgb,var(--purple) 65%,transparent);outline-offset:3px}.home-editing .home-module-hidden{display:none!important}.home-module-tools{display:none}.home-editing .home-module-tools{position:absolute;right:4px;top:4px;z-index:20;display:flex;gap:4px}.home-editing .home-module-tools button{display:grid!important;place-items:center!important;width:30px!important;height:30px!important;min-height:0!important;padding:0!important;border:0!important;border-radius:50%!important;background:#33283de6!important;color:#fff!important;font-size:16px!important}.home-editing .home-module-wide{min-height:150px!important}.home-editing .pr-bottom-nav{display:none}.home-editing #pet{display:none!important}
.home-edit-bar>div{display:flex;gap:7px}.home-edit-bar>div button:first-child{width:38px;padding:0;font-size:22px}.home-edit-bar button:disabled{opacity:.35}.home-editing{background-image:linear-gradient(#8660aa12 1px,transparent 1px),linear-gradient(90deg,#8660aa12 1px,transparent 1px);background-size:16px 16px}.home-editing .app-shell [data-home-module]{contain:layout paint;box-shadow:0 0 0 1px #fff8,0 10px 30px #63418018;transition:box-shadow .18s,opacity .18s,transform .18s}.home-editing .app-shell [data-home-module]::before{content:"";position:absolute;inset:-5px;z-index:-1;border-radius:inherit;background:linear-gradient(115deg,transparent 15%,color-mix(in srgb,var(--purple) 17%,transparent),transparent 75%);background-size:220% 100%;animation:home-edit-shine 3.2s linear infinite}.home-editing .home-dragging{opacity:.58;transform:scale(.985)}.home-editing .home-resizing{transition:none!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--purple) 36%,transparent),0 18px 42px #50346435!important}.home-size-badge{display:none}.home-editing .home-resizing>.home-size-badge{position:absolute;left:50%;top:50%;z-index:30;display:block;transform:translate(-50%,-50%);padding:7px 10px;border-radius:9px;background:#261e2dde;color:#fff;font-size:12px;font-weight:800;pointer-events:none}@keyframes home-edit-shine{to{background-position:-220% 0}}@media(prefers-reduced-motion:reduce){.home-editing .app-shell [data-home-module]::before{animation:none}}
.orders>.order,.today-orders>.today-order{content-visibility:auto;contain-intrinsic-size:110px}
.home-editing .home-module-tools{display:none}.home-editing .home-selected>.home-module-tools{display:flex}.home-editing .home-resize-handle{display:none!important}.home-editing .home-selected>.home-resize-handle{display:block!important;position:absolute;z-index:24;width:18px!important;height:18px!important;border:3px solid #fff;border-radius:50%;background:var(--purple);box-shadow:0 2px 9px #33204555;touch-action:none}.home-editing .home-selected>.home-resize-n{left:calc(50% - 9px);right:auto;top:-10px}.home-editing .home-selected>.home-resize-s{left:calc(50% - 9px);right:auto;bottom:-10px}.home-editing .home-selected>.home-resize-e{top:calc(50% - 9px);bottom:auto;right:-10px}.home-editing .home-selected>.home-resize-w{top:calc(50% - 9px);bottom:auto;left:-10px}.home-editing .app-shell .home-selected{outline-style:solid;box-shadow:0 0 0 3px color-mix(in srgb,var(--purple) 22%,transparent),0 14px 35px #5034642c}.home-editing .app-shell [data-home-module]:not(.home-selected)::before{display:none}.home-editing .pr-week{min-width:152px;overflow:hidden}.home-editing .pr-week button{min-width:0}
.home-editing .home-resize-handle{display:none!important}.home-editing .app-shell [data-home-module]{width:100%!important;max-width:100%;touch-action:none;transition:height .2s cubic-bezier(.2,.8,.2,1),box-shadow .18s,opacity .18s,transform .18s}.home-editing .home-selected>.home-module-tools{display:grid;grid-template-columns:repeat(4,30px);right:6px;top:-17px;padding:3px;border-radius:19px;background:#251d35e6;backdrop-filter:blur(12px);box-shadow:0 5px 18px #24182f35}.home-editing .home-selected>.home-module-tools button{width:30px!important;height:30px!important;background:transparent!important;font-size:14px!important}.home-drag-source{opacity:.22!important}.home-drag-ghost{position:fixed!important;z-index:500!important;margin:0!important;pointer-events:none!important;overflow:hidden!important;opacity:.94!important;transform-origin:0 0;will-change:transform;contain:layout paint;filter:drop-shadow(0 20px 24px #251d3545);transition:none!important}.home-drag-ghost .home-module-tools{display:none!important}.home-drag-ghost::before{display:none!important}.home-editing .pr-week{min-width:0;overflow:hidden}.home-editing .pr-week button{min-width:0}.home-editing .home-selected::after{content:"长按拖动";position:absolute;left:8px;top:8px;z-index:18;padding:4px 8px;border-radius:12px;background:color-mix(in srgb,var(--premium-surface,#fff) 88%,transparent);color:var(--premium-muted,var(--muted));font-size:9px;pointer-events:none}.home-edit-bar{grid-template-columns:auto minmax(0,1fr) auto}.home-edit-bar>div{gap:5px}.home-edit-bar>div button{padding:0 10px}.home-edit-bar>div button:first-child{width:34px}.home-edit-bar>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(max-width:430px){.home-edit-bar{gap:7px;padding-left:10px;padding-right:10px}.home-edit-bar>span{display:none}.home-edit-bar>div button{height:36px;padding:0 9px}}
