/* Screen home: content stays opaque; glass is restricted to floating controls. */
:root{--home-ink:#303b48;--home-muted:#65717e;--home-card:rgba(255,255,255,.72);--home-line:rgba(91,105,122,.12);--home-accent:#708d9b;--home-bg:#eef1f2}
html{background:var(--home-bg)}body.pet-overview{height:auto;min-height:100%;overflow-y:visible;background:linear-gradient(140deg,#f8ede3 0%,#f5f1ec 42%,#e8eff2 100%);color:var(--home-ink);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","PingFang SC",sans-serif}
body.pet-overview[data-mood="morning"]{background:radial-gradient(ellipse at 10% 0%,#f9e4ca,transparent 65%),linear-gradient(125deg,#fbf5ed,#e8eef3)}body.pet-overview[data-mood="day"]{background:radial-gradient(ellipse at 90% 0%,#dcecf4,transparent 60%),linear-gradient(130deg,#fbf8f3,#edf1ee)}body.pet-overview[data-mood="evening"]{background:radial-gradient(ellipse at 10% 0%,#f2d8ce,transparent 65%),linear-gradient(135deg,#f5e9e5,#e2e4f0)}body.pet-overview[data-mood="night"]{--home-ink:#e8e5ed;--home-muted:#bbc0ce;--home-card:rgba(49,56,77,.85);--home-line:rgba(236,232,249,.12);--home-accent:#b3bacf;--home-bg:#272e42;background:radial-gradient(ellipse at 60% 25%,#414760,transparent 65%),#272e42}
.pet-overview:before,.pet-overview .noise,.pet-overview .hero,.pet-overview #deviceSheet,.pet-overview .topbar{display:none!important}[hidden]{display:none!important}.pet-overview *{box-sizing:border-box}.pet-overview button{color:inherit;touch-action:manipulation}.pet-overview button:focus-visible,.pet-overview summary:focus-visible{outline:3px solid #597a96;outline-offset:3px}.pet-overview svg{fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.pet-overview .app{display:block;height:auto;min-height:100vh;width:100%;max-width:1200px;margin:0 auto;padding:24px 48px 120px;padding-top:max(24px,env(safe-area-inset-top));padding-left:max(32px,env(safe-area-inset-left));padding-right:max(32px,env(safe-area-inset-right));overflow:visible}
.home-header{display:flex;align-items:center;justify-content:space-between;min-height:44px;gap:20px}.home-brand{display:flex;align-items:center;gap:10px;font-size:19px;font-weight:650;letter-spacing:.06em;flex-shrink:0}.brand-mark{display:block;width:16px;height:18px;border-radius:7px 7px 9px 9px;background:linear-gradient(130deg,#bdc9c9,#77969b);box-shadow:inset 0 1px 1px #fff8}.home-place{font-size:12px;color:var(--home-muted);text-align:right;line-height:1.5;overflow-wrap:break-word}
.companion{display:grid;grid-template-columns:1fr 1fr;align-items:center;min-height:390px;padding:20px 30px 18px;gap:24px}.environment{position:relative}.ambient-date{font-size:17px;font-weight:500;margin:0 0 8px;letter-spacing:.04em}.ambient-time{display:block;font-size:100px;font-weight:200;line-height:1.04;letter-spacing:-6px;font-variant-numeric:tabular-nums}.ambient-greeting{font-size:14px;color:var(--home-muted);margin:16px 0 20px;line-height:1.6}.weather-chip{display:inline-flex;align-items:center;gap:9px;border:0;padding:10px 12px;min-height:44px;border-radius:16px;background:rgba(255,255,255,.48);font-size:12px}.weather-chip svg{width:25px;height:25px}.weather-chip b{font-weight:400;color:var(--home-muted);margin-left:6px}.weather-chip>span:last-child{font-size:20px;color:var(--home-muted);margin-left:12px}.weather-panel{position:absolute;z-index:10;left:0;bottom:-64px;width:260px;max-width:100%;padding:16px;border-radius:18px;background:var(--home-card);box-shadow:0 10px 32px #344a5a12;font-size:12px;line-height:1.5}.weather-panel small{display:block;color:var(--home-muted);margin-top:5px}
.companion-stage{display:flex;flex-direction:column;align-items:center;min-width:0}.pet-face{display:block;position:relative;width:320px;max-width:100%;height:300px;border:0;background:none;padding:0;cursor:pointer;-webkit-tap-highlight-color:transparent} .system-face{width:100%;height:100%;display:block;overflow:visible;color:#526774;pointer-events:none}.pet-face .system-face{fill:none;stroke:none}.pet-face .face-brows{stroke:#718590;opacity:.66}.face-eye{transform-origin:99px 148px;animation:system-blink 9s infinite}.eye-right{transform-origin:261px 148px}.face-look{animation:system-look 18s ease-in-out infinite}.sleep-eyes,.mouth-happy,.mouth-speaking,.mouth-waiting,.touch-cheeks{display:none}.face-mouth{stroke:#526774}.pet-face[data-expression="rest"] .face-look,.pet-face[data-expression="rest"] .face-brows{display:none}.pet-face[data-expression="rest"] .sleep-eyes{display:block}.pet-face[data-expression="rest"] .mouth-idle{transform:translateY(-3px)}.pet-face[data-expression="listening"] .face-look{animation:none;transform:translateY(-4px)}.pet-face[data-expression="listening"] .brow-left{transform:translateY(-7px)}.pet-face[data-expression="listening"] .brow-right{transform:translateY(-7px)}.pet-face[data-expression="waiting"] .face-look{animation:none;transform:translate(4px,-8px)}.pet-face[data-expression="waiting"] .brow-right{transform:translateY(-9px)}.pet-face[data-expression="waiting"] .mouth-idle,.pet-face[data-expression="attention"] .mouth-idle{display:none}.pet-face[data-expression="waiting"] .mouth-waiting,.pet-face[data-expression="attention"] .mouth-waiting{display:block}.pet-face[data-expression="attention"] .brow-left{transform:translateY(5px)}.pet-face[data-expression="happy"] .mouth-idle,.pet-face[data-expression="speaking"] .mouth-idle{display:none}.pet-face[data-expression="happy"] .mouth-happy,.pet-face[data-expression="happy"] .touch-cheeks{display:block}.pet-face[data-expression="happy"] .face-look{animation:none;transform:translateY(-3px)}.pet-face[data-expression="happy"] .face-eye{animation:none;transform:scaleY(.8)}.pet-face[data-expression="speaking"] .mouth-speaking{display:block;transform-origin:180px 231px;animation:system-talk .8s ease-in-out infinite}.pet-face[data-expression="speaking"] .face-look{animation:none}
@keyframes system-blink{0%,43%,46%,100%{transform:scaleY(1)}44.5%{transform:scaleY(.08)}}@keyframes system-look{0%,23%,42%,100%{transform:translate(0,0)}28%,34%{transform:translate(-6px,0)}66%,72%{transform:translate(5px,-3px)}}@keyframes system-talk{0%,100%{transform:scaleY(.6)}50%{transform:scaleY(1)}}
.companion-caption{display:flex;align-items:center;gap:7px;font-size:12px;margin-top:0;color:var(--home-muted);min-height:22px;text-align:center;line-height:1.5}.pet-state-dot{width:5px;height:5px;border-radius:50%;background:#8c9d94;flex-shrink:0}.pet-touch{font-size:11px;color:var(--home-muted);margin-top:5px;min-height:17px}
.overview{margin-top:6px}.overview-head{display:flex;justify-content:space-between;align-items:center;margin:0 0 14px;gap:12px}.overview-head>div{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}.overview h2{font-size:17px;font-weight:650;letter-spacing:.02em;margin:0}.overview-head #snapshotStatus{font-size:10px;color:var(--home-muted)}.overview-head>button{border:0;background:none;min-height:44px;padding:0 8px;border-radius:12px;font-size:12px;white-space:nowrap;color:var(--home-muted)}.overview-head>button span{font-size:18px;margin-left:5px}.overview-grid{display:grid;grid-template-columns:1.7fr 1fr 1fr;gap:14px}.device-card{min-width:0;padding:13px 18px 18px;border-radius:25px;background:var(--home-card);box-shadow:0 3px 20px rgba(70,77,89,.035);border:1px solid rgba(255,255,255,.35)}.group-open{width:100%;display:flex;align-items:center;gap:10px;min-height:50px;padding:0;border:0;background:none;text-align:left;border-radius:12px}.device-icon{width:23px;height:28px;flex-shrink:0;color:var(--home-muted)}.group-open>span:first-of-type{display:flex;flex-direction:column;gap:3px;flex:1}.group-open b{font-size:14px;font-weight:650}.group-open small{font-size:10px;color:var(--home-muted)}.device-chevron{font-size:23px;color:#8c969e}.mi6-resources{display:grid;grid-template-columns:1fr 1fr;gap:12px 22px;margin-top:15px}.device-resource{display:grid;grid-template-columns:1fr auto;gap:5px 8px;font-size:11px;align-items:baseline;min-width:0}.device-resource>span:first-child{color:var(--home-muted)}.device-resource b{font-weight:600;white-space:nowrap}.device-resource small{grid-column:1/-1;font-size:9px;color:var(--home-muted);text-align:right}.resource-meter{grid-column:1/-1;height:4px;border-radius:4px;background:rgba(101,118,132,.13);overflow:hidden;display:block}.resource-meter i{display:block;height:100%;border-radius:4px;background:var(--home-accent)}.ipad-level{display:flex;align-items:baseline;gap:8px;margin:18px 0 14px}.ipad-level b{font-size:31px;font-weight:400;letter-spacing:-1px}.ipad-level span{font-size:11px;color:var(--home-muted)}.device-card:not(.mi6-card)>.device-resource>b{display:none}.mac-placeholder{margin-top:23px;display:flex;flex-direction:column;gap:7px}.mac-placeholder b{font-size:20px;font-weight:400;letter-spacing:-.5px}.mac-placeholder>span:last-child{font-size:11px;color:var(--home-muted)}.standby-line{display:block;width:24px;height:3px;border-radius:2px;background:#a8afb7}.integration-strip{grid-column:1/-1;display:flex;gap:12px;justify-content:center;padding:3px 0}.integration-strip button{display:flex;gap:9px;align-items:center;min-height:44px;padding:5px 14px;border:0;border-radius:16px;background:rgba(255,255,255,.3);font-size:11px;min-width:0}.integration-strip b{font-weight:500}.integration-strip button>span:nth-last-child(2){color:var(--home-muted)}.integration-strip button>span:last-child{font-size:19px;color:var(--home-muted)}.integration-icon{font-size:17px;color:var(--home-muted)}
/* Floating controls share one location and one material. */
.pet-overview .cmdbar{position:fixed;z-index:100;left:50%;bottom:22px;bottom:max(18px,env(safe-area-inset-bottom));transform:translateX(-50%);width:auto;max-width:calc(100% - 24px);height:66px!important;min-height:66px;padding:7px 9px!important;display:flex;align-items:center;justify-content:center!important;gap:6px!important;border-radius:25px;background:rgba(255,255,255,.92);border:1px solid rgba(255,255,255,.88);box-shadow:0 8px 35px #33425318,inset 0 1px 0 #fff;flex-wrap:nowrap!important;overflow:visible!important;color:#38434e}
@supports ((backdrop-filter:blur(14px)) or (-webkit-backdrop-filter:blur(14px))){.pet-overview .glass-toolbar,.pet-overview .glass-panel{background:rgba(255,255,255,.42);-webkit-backdrop-filter:blur(14px) saturate(1.2);backdrop-filter:blur(14px) saturate(1.2)}}
.tool-button{display:flex;align-items:center;justify-content:center;gap:7px;border:0;background:none;padding:0 13px;min-height:48px;border-radius:17px;font-size:12px;white-space:nowrap}.tool-button svg{width:20px;height:20px}.tool-button:hover{background:#ffffff70}.tool-button:active{background:#dae0e580}.toolbar-divider{height:24px;width:1px;background:#5b69791f}.pet-overview .voiceFloat{position:static!important;right:auto!important;bottom:auto!important;display:flex!important;min-width:124px!important;width:auto!important;height:48px!important;min-height:48px!important;border-radius:17px!important;padding:0 13px!important;gap:8px!important;background:#e5ecec!important;color:#344a50!important;border:1px solid #a2b5b422!important;box-shadow:inset 0 1px 0 #fff8!important}.pet-overview .voiceFloat.on{background:#ead5c6!important;color:#684c3c!important}.pet-overview .voiceFloatLabel{font-size:12px!important}.pet-overview #voiceDockSlot{display:block}.pet-overview .voiceFloat .iconMic{width:18px!important;height:18px!important;flex-basis:18px!important}.appearance-panel{position:fixed;z-index:105;bottom:100px;left:50%;transform:translateX(-50%);width:300px;max-width:calc(100% - 24px);padding:16px;border-radius:25px;background:#f9faf9;border:1px solid #fff;box-shadow:0 10px 45px #38485424;color:#35414b}.panel-heading{display:flex;align-items:center;justify-content:space-between;padding-left:8px;font-size:15px}.plain-close{width:44px;height:44px;border:0;background:transparent;border-radius:50%;font-size:25px;line-height:1;color:inherit}.mode-choices{display:flex;background:#e3e8eb;border-radius:13px;padding:3px;margin:8px 0}.mode-choices button{flex:1;min-height:44px;border:0;border-radius:10px;background:none;font-size:12px}.mode-choices button[aria-pressed="true"]{background:white;box-shadow:0 2px 5px #33404a12}.panel-action{display:flex;align-items:center;gap:12px;width:100%;min-height:48px!important;padding:0 10px!important;border:0!important;background:transparent!important;color:#35414b!important;font-size:13px!important;border-radius:13px!important}.panel-action svg{width:20px;height:20px}.panel-action.on{background:#dfece5!important}.panel-action.failed{background:#f4e1d8!important}
/* Detail sheet is opaque, scrollable, and never extends into the toolbar. */
.sheet-backdrop{position:fixed;inset:0;background:rgba(35,47,61,.17);z-index:110}.detail-sheet{position:fixed;z-index:120;top:max(22px,env(safe-area-inset-top));right:max(22px,env(safe-area-inset-right));bottom:104px;width:460px;max-width:calc(100% - 36px);padding:10px 22px 24px;border-radius:29px;background:#f8f9fa;color:#35414b;box-shadow:0 20px 65px #283d4b25;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.detail-heading{position:sticky;top:-10px;padding:10px 0;background:#f8f9fa;display:flex;align-items:center;justify-content:space-between;z-index:1}.detail-heading b{font-size:18px;font-weight:650}.detail-heading small{display:block;font-size:10px;font-weight:400;color:#687986;margin-top:5px}.detail-sheet>details{border-top:1px solid #5060701c}.detail-sheet summary{display:flex;justify-content:space-between;align-items:center;min-height:52px;cursor:pointer;list-style:none;font-size:13px;font-weight:600;gap:10px}.detail-sheet summary::-webkit-details-marker{display:none}.disclosure-mark{font-size:17px;font-weight:400;color:#83929d}.detail-sheet details[open]>summary>.disclosure-mark{transform:rotate(45deg)}.detail-content{padding:0 0 15px}.detail-row{display:grid;grid-template-columns:1fr auto;gap:4px;padding:10px 0}.detail-row b,.detail-row strong{font-size:12px;font-weight:500}.detail-row time{grid-column:1/-1;text-align:right;font-size:10px;color:#6c7b86}.state-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:8px 0}.state-tiles>div{display:flex;flex-direction:column;gap:7px;border-radius:12px;padding:12px;background:#e9edf0}.state-tiles span{font-size:10px;color:#6c7b86}.state-tiles b{font-size:12px;font-weight:500}.source-disclosure{margin-top:8px;color:#657581}.source-disclosure summary{font-size:11px;font-weight:400}.source-disclosure p{font-size:11px;line-height:1.6;overflow-wrap:anywhere}
.pet-overview .voiceTranscript{background:#f7faf9!important;color:#34434b;border-color:#ffffffb0!important;box-shadow:0 12px 40px #394b5929!important;bottom:102px!important;max-height:40vh!important;z-index:130}.pet-overview .vtStatus{color:#657c84}.pet-overview .vtUser{color:#526c65}.pet-overview .vtReply{color:#2f3e45}.pet-overview .voiceEndBtn{min-height:44px;color:#456454;background:#e3ece5}.pet-overview .voiceTranscriptClose{width:44px;height:44px;flex-basis:44px;background:#e5ebed;color:#52636d}.pet-overview .toast{background:#f8faf9;border-color:#d5dfe1;color:#4c5f68;box-shadow:0 5px 20px #394b5920;bottom:100px}.pet-overview .pairbox{color:#dfefe7}.pet-overview .avatarBack{z-index:150}.pet-overview .avatarView{z-index:140}.pet-overview .avatarView.show~.voiceFloat{z-index:160}
body[data-mood="night"] .weather-chip,body[data-mood="night"] .integration-strip button{background:#ffffff0d}.page-hidden *, .page-hidden *:before,.page-hidden *:after{animation-play-state:paused!important}.under-avatar .pet-face{animation-play-state:paused!important}
@media(max-width:850px){.pet-overview .app{padding-left:max(24px,env(safe-area-inset-left));padding-right:max(24px,env(safe-area-inset-right))}.companion{padding:24px 8px;gap:12px;min-height:430px}.ambient-time{font-size:88px}.ambient-greeting{font-size:12px}.pet-face{width:290px;height:290px}.overview-grid{grid-template-columns:1.5fr 1fr}.mac-card{grid-column:1/-1;display:flex;align-items:center;gap:20px;padding-top:8px;padding-bottom:8px}.mac-card .group-open{flex:1}.mac-placeholder{margin:0;flex-direction:row;align-items:center;flex-wrap:wrap;font-size:11px}.mac-placeholder b{font-size:14px}.mi6-resources{gap:16px}.integration-strip{gap:8px}.integration-strip button{flex:1;justify-content:center}.home-place{font-size:11px}}
@media(max-width:560px){.pet-overview .app{padding:16px 18px 116px;padding-top:max(16px,env(safe-area-inset-top));padding-left:max(18px,env(safe-area-inset-left));padding-right:max(18px,env(safe-area-inset-right))}.home-header{gap:14px}.home-brand{font-size:17px}.home-place{max-width:145px;font-size:10px}.companion{grid-template-columns:1fr;gap:5px;padding:24px 0 18px;min-height:0}.environment{text-align:center}.ambient-date{font-size:14px}.ambient-time{font-size:82px}.ambient-greeting{margin:10px 0 12px}.weather-panel{left:50%;transform:translateX(-50%);bottom:-78px}.companion-stage{margin-top:8px}.pet-face{width:260px;height:250px}.overview-grid{grid-template-columns:1fr 1fr;gap:10px}.mi6-card{grid-column:1/-1}.mac-card{grid-column:auto;display:block;padding:13px 16px 18px}.mac-card .mac-placeholder{display:flex;flex-direction:column;align-items:flex-start;margin-top:22px;gap:7px}.mac-placeholder b{font-size:20px}.mi6-resources{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.device-resource{grid-template-columns:1fr;gap:6px}.device-resource small,.resource-meter{grid-column:1}.device-resource b{font-size:12px}.device-card{padding:12px 15px 16px;border-radius:22px}.group-open b{font-size:13px}.integration-strip{flex-direction:column;gap:5px}.integration-strip button{justify-content:flex-start;padding-left:16px}.integration-strip button>span:last-child{margin-left:auto}.overview-head>div{gap:4px;display:block}.overview-head #snapshotStatus{display:block;margin-top:5px}.overview h2{font-size:16px}.tool-button{padding:0 10px}.pet-overview .voiceFloat{min-width:112px!important}.pet-overview .cmdbar{gap:3px!important;padding:7px!important}.detail-sheet{top:12px;right:12px;max-width:calc(100% - 24px);bottom:100px;padding-left:18px;padding-right:18px}.state-tiles{grid-template-columns:1fr 1fr}}
@media(max-width:360px){.tool-button span{display:none}.tool-button{min-width:48px}.mi6-resources{grid-template-columns:1fr 1fr}.ambient-time{font-size:72px}}
@media(min-width:851px) and (max-height:780px){.companion{min-height:350px;padding-top:8px;padding-bottom:8px}.pet-face{height:270px;width:300px}.ambient-time{font-size:96px}.pet-overview .app{padding-top:16px}.overview-grid{gap:12px}.mi6-resources{gap:12px 18px}.device-card{padding-bottom:14px}}
@media(prefers-reduced-motion:reduce){.pet-face,.pet-face img{animation:none!important;transition:none!important}*{scroll-behavior:auto!important}}
.pet-overview .panel-action{width:100%!important}.sheet-open{overflow:hidden!important}
@media(min-width:851px) and (max-height:780px){.companion{min-height:300px}.pet-face{width:280px;height:242px}.companion-caption{font-size:11px}.ambient-time{font-size:88px}}
@media(prefers-reduced-motion:reduce){.system-face *{animation:none!important;transition:none!important}.face-look{transform:none!important}}
body[data-mood="night"] .system-face .face-brows,body[data-mood="night"] .system-face .face-mouth,body[data-mood="night"] .system-face .sleep-eyes{stroke:#cad6df}body[data-mood="night"] .system-face{color:#cad6df}

.brain-choices{display:flex;gap:4px;background:#dce4e75c;border-radius:13px;padding:3px;margin:8px 0}.brain-choices button{flex:1;min-height:44px;border:0;border-radius:10px;background:transparent;color:inherit}.brain-choices button[aria-pressed="true"]{background:#ffffffae}.brain-choices button:disabled{opacity:.55}.brain-choices small{font-size:10px}.pet-touch:empty{display:none}.tool-button:disabled{opacity:.6}.weather-panel a{color:inherit}

/* Winter companion reuses this authenticated Screen; no carousel or new controls. */
.dongzi-card{grid-column:1/-1}.dongzi-status-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:12px}.dongzi-state{display:grid;grid-template-columns:7px 1fr;gap:7px;align-items:center;background:rgba(120,135,148,.06);padding:12px;border-radius:14px;font-size:11px;min-width:0}.dongzi-state b{grid-column:2;font-size:13px;font-weight:550}.dongzi-state-dot{width:6px;height:6px;border-radius:50%;background:#929ca5}.dongzi-state[data-status="available"] .dongzi-state-dot{background:#42846b}.dongzi-state[data-status="unavailable"] .dongzi-state-dot{background:#b17465}.dongzi-state[data-status="stale"] .dongzi-state-dot{background:#ac8c50}.dongzi-caption{font-size:10px;color:var(--home-muted);margin:12px 0 0}.dongzi-export{margin-top:14px;min-height:44px}.dongzi-card .group-open>span{min-width:0}.dongzi-card .group-open small{white-space:normal;overflow-wrap:anywhere}@media(max-width:560px){.dongzi-status-grid{grid-template-columns:1fr 1fr}.dongzi-state{padding:10px}.dongzi-card{grid-column:1/-1}}
