.ufy-home-media-icon { isolation:isolate; background:#17212c; box-shadow:inset 0 1px 2px #fff9,0 5px 12px #0004; }
.ufy-home-overlay {position:fixed;z-index:18000;color:var(--us-text,#fff);}
.ufy-home-overlay .us-sheet-body>.us-button {margin:9px 0;}
.ufy-home-media-cover { width:100%;height:100%;display:block;object-fit:cover;pointer-events:none; }
.ufy-home-media-icon::after { content:'';position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 1px 3px #fff9,inset 0 -1px 3px #0006; background:linear-gradient(155deg,#ffffff25,transparent 35%,transparent 75%,#ffffff12);pointer-events:none; }
.ufy-home-media-play { position:absolute;width:42%;height:42%;left:29%;top:29%;fill:#ffffff66;stroke:white;stroke-width:.8;filter:drop-shadow(0 1px 3px #0008); }
.ufy-home-media-share {position:absolute;width:24%;height:24%;right:10%;bottom:10%;fill:none;stroke:#b9ffdf;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 4px #2deba6);}
.ufy-home-media-icon.is-unavailable::before {content:'▧';position:absolute;inset:0;display:grid;place-items:center;color:#ccc;font-size:30px;}
.ufy-home-folder-preview .ufy-home-mini {width:100%;height:100%;min-width:0;aspect-ratio:1;border-radius:8px;margin:0;transform:none;box-shadow:none;}
[data-home-id] {user-select:none;-webkit-touch-callout:none;touch-action:none;}
[data-home-id]:focus-visible>.ufy-phone-app-icon {outline:2px solid white;outline-offset:4px;}
.ufy-home-move-done {position:absolute;z-index:18001;left:50%;top:max(8px,env(safe-area-inset-top));transform:translateX(-50%);min-height:40px;border:1px solid #ffffff55;border-radius:20px;padding:8px 16px;background:#302145cc;backdrop-filter:blur(12px);color:white;font:600 12px system-ui;cursor:pointer;}
.ufy-home-move-done[hidden] {display:none;}
.ufy-home-editing [data-home-id]:not([data-home-id='app:profile-hub'])>.ufy-phone-app-icon {animation:ufy-home-wiggle .28s ease-in-out infinite alternate;}
.ufy-home-editing .ufy-phone-app:active .ufy-phone-app-icon {transform:none;}
.is-home-dragging {opacity:.25;}
.ufy-home-drag-ghost {position:fixed!important;z-index:200000;pointer-events:none;transform:translate(-50%,-50%) scale(1.12);opacity:.94;filter:drop-shadow(0 10px 12px #0006);}
.is-home-drop-target>.ufy-phone-app-icon {outline:2px solid #d3b2ff;outline-offset:4px;}
.is-home-group-target>.ufy-phone-app-icon {outline:3px solid #b579ff;outline-offset:8px;transform:scale(1.06);box-shadow:0 0 22px #c196ffcc;}
.ufy-home-folder-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px 14px;padding:15px 0 24px;}
.ufy-home-folder-sheet .us-sheet {background:linear-gradient(145deg,#ffffff35,#14121c99);backdrop-filter:blur(32px);-webkit-backdrop-filter:blur(32px);border:1px solid #ffffff44;color:white;}
.ufy-home-folder-sheet .us-sheet-heading h2 {text-align:center;}
.ufy-home-drop-out {border:1px dashed #ffffff66;border-radius:18px;padding:18px;text-align:center;font-size:12px;color:#ddd;}
.ufy-home-name-label {display:block;font-size:14px;margin:8px 0 14px;}
.ufy-home-name {box-sizing:border-box;display:block;width:100%;margin:8px 0 14px;padding:12px;border:1px solid #ffffff44;border-radius:14px;background:#ffffff10;color:inherit;font:inherit;}
select.ufy-home-name option {color:#222;background:white;}
.ufy-home-offer-previews {display:flex;justify-content:center;gap:12px;flex-wrap:wrap;padding:8px 0 20px;}
.ufy-home-offer-previews .ufy-phone-app-icon {width:90px;height:90px;border-radius:24px;}
.ufy-home-notice {position:fixed;left:50%;bottom:40px;transform:translateX(-50%);z-index:200010;max-width:calc(100vw - 40px);width:max-content;box-sizing:border-box;padding:14px 20px;border-radius:20px;background:#231931ee;color:white;border:1px solid #ad83df66;font:14px/1.4 system-ui;box-shadow:0 8px 30px #0005;}
@keyframes ufy-home-wiggle {from{rotate:-1.3deg;}to{rotate:1.3deg;}}
@media(prefers-reduced-motion:reduce){.ufy-home-editing [data-home-id]>.ufy-phone-app-icon{animation:none;}}
