/* Approved Home controls: drawer spacing, grouped profile and slim FAB glass. */
.drawer .drawer-item{margin-bottom:10px}

:root:is([data-theme="light"],[data-theme="dark"]) [data-view="profile"] #profileMain .menu{
 display:block;gap:0;border-radius:18px;overflow:hidden;
 background-color:var(--pb-card,var(--bg))!important;
 background-image:var(--pb-wide-image),var(--pb-puff)!important;
 background-size:var(--pb-tile-size,156px 130px),100% 100%;
 box-shadow:0 0 0 1px var(--profile-rim,rgba(55,58,62,.16)),0 3px 7px rgba(0,0,0,.13)!important;
}
:root:is([data-theme="light"],[data-theme="dark"]) [data-view="profile"] #profileMain .menu .menu-item{
 position:relative;margin:0;border:0;border-radius:0;user-select:none;
 transition:box-shadow .07s,background-color .07s;box-shadow:none!important;
}
:root:is([data-theme="light"],[data-theme="dark"]) [data-view="profile"] #profileMain .menu .menu-item+.menu-item::after{
 content:'';position:absolute;left:0;right:0;top:0;height:1px;
 background:var(--profile-line,rgba(55,58,62,.22));pointer-events:none;
}
:root:is([data-theme="light"],[data-theme="dark"]) [data-view="profile"] #profileMain .menu .menu-ic{
 transition:box-shadow .07s,background-color .07s;
 box-shadow:inset 0 1px 3px rgba(0,0,0,.2),0 0 0 1px var(--profile-rim,rgba(55,58,62,.16))!important;
}
:root:is([data-theme="light"],[data-theme="dark"]) [data-view="profile"] #profileMain .menu .menu-item:is(:active,.is-pressed){
 background:var(--pb-well,var(--bg))!important;
 box-shadow:inset 0 2px 5px rgba(0,0,0,.19),inset 0 -1px 0 rgba(0,0,0,.06)!important;
}
:root:is([data-theme="light"],[data-theme="dark"]) [data-view="profile"] #profileMain .menu .menu-item:is(:active,.is-pressed) .menu-ic{
 background-color:var(--pb-card,var(--bg))!important;
 box-shadow:0 0 0 1px var(--profile-rim,rgba(55,58,62,.13)),0 3px 5px rgba(0,0,0,.22),inset 0 1px 0 var(--profile-highlight,rgba(255,255,255,.45))!important;
}
:root:is([data-theme="light"],[data-theme="dark"]) [data-view="profile"] #profileMain .menu .menu-item-partner:is(:active,.is-pressed)::before{opacity:.35}
:root:is([data-theme="light"],[data-theme="dark"]) [data-view="profile"] #profileMain .menu-sub:empty{display:none}
:root[data-theme="dark"] [data-view="profile"] #profileMain{--profile-line:rgba(0,0,0,.38);--profile-rim:rgba(0,0,0,.32);--profile-highlight:rgba(255,255,255,.07)}
:root[data-theme="light"] [data-view="profile"] #profileMain .menu .menu-item:not(:active):not(.is-pressed){background:transparent!important}
/* Dark rows retain the original image, positioning, repetition and scale. */
:root[data-theme="dark"] [data-view="profile"] #profileMain .menu{background-image:none!important}

/* Keep the existing 28x72 hit target and positioning; paint only 12px of it. */
:root:is([data-theme="light"],[data-theme="dark"]) #aiFabRestore{
 background:transparent!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
}
#aiFabRestore::before{
 content:'';position:absolute;left:0;top:0;width:12px;height:100%;box-sizing:border-box;pointer-events:none;
 border:1px solid rgba(255,255,255,.4);border-left:0;border-radius:0 9px 9px 0;
 background:linear-gradient(90deg,#d7dce170,#f7f8faaa);
 box-shadow:2px 2px 7px rgba(0,0,0,.33);
 backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px);
}
#aiFabRestore svg{position:absolute;left:1.5px;width:9px;height:16px;z-index:1;stroke-width:2.6;pointer-events:none}
#aiFabRestore.right-side::before{left:auto;right:0;transform:scaleX(-1)}
#aiFabRestore.right-side svg{left:auto;right:1.5px}
#aiFabRestore:active::before{box-shadow:inset 0 1px 4px rgba(0,0,0,.45);filter:brightness(.85)}
@media(prefers-reduced-motion:reduce){
 [data-view="profile"] #profileMain .menu :is(.menu-item,.menu-ic){transition:none}
}
