/* Homestead account preferences; consistent Belles beige and #AF2447 pink */
.bb-account-settings{width:min(100%,880px);margin:0 auto;display:grid;gap:15px;min-width:0;padding:8px 0 22px}
.bb-settings-intro{margin:0 0 3px;font-size:13px;line-height:1.5;opacity:.8}
.bb-settings-panel{display:grid;gap:15px;min-width:0;border:1px solid var(--belles-layout-line,var(--line,#d8c8b5));border-radius:15px;background:var(--belles-layout-panel,var(--paper,#fffaf4));color:var(--belles-layout-text,inherit);padding:clamp(16px,2.2vw,24px);box-shadow:0 4px 15px #22090c0a}
.bb-settings-panel>header{display:grid;gap:5px}
.bb-settings-panel h2{margin:0!important;font-size:clamp(18px,2.4vw,22px)!important;line-height:1.25;font-weight:800;letter-spacing:-.02em}
.bb-settings-panel>header p,.bb-settings-muted,.bb-settings-advanced p{margin:0;font-size:13px;line-height:1.5;color:var(--belles-layout-muted,var(--muted,#795f61))}
.bb-settings-person{display:flex;align-items:center;gap:13px;min-width:0}
.bb-settings-person>div{display:grid;gap:4px;min-width:0}
.bb-settings-person strong{font-size:18px;overflow-wrap:anywhere;line-height:1.3}
.bb-settings-person small{font-size:12px;opacity:.77}
.bb-settings-avatar{display:grid;place-items:center;flex:none;width:49px;height:49px;border-radius:50%;background:#AF2447;color:#fff;font:800 20px/1 Georgia,serif}
.bb-settings-facts{display:grid;gap:0;margin:0}
.bb-settings-facts>div{display:grid;grid-template-columns:120px minmax(0,1fr);gap:12px;padding:12px 0;border-bottom:1px solid var(--belles-layout-line,var(--line,#d8c8b5))}
.bb-settings-facts>div:last-child{border-bottom:0}
.bb-settings-facts dt{font-size:12px;color:var(--belles-layout-muted,var(--muted,#7d656b))}
.bb-settings-facts dd{min-width:0;margin:0;font-size:13px;font-weight:700;overflow-wrap:anywhere}
.bb-settings-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:8px}
.bb-settings-actions button,.bb-settings-actions a,.bb-settings-options button,.bb-settings-name-form button,.bb-settings-advanced button,.bb-settings-link{display:flex;align-items:center;justify-content:center;min-height:42px;border:1px solid var(--belles-layout-line,var(--line,#d5bfc2));border-radius:9px;background:transparent;color:inherit;padding:10px 12px;text-align:center;text-decoration:none;font-size:13px;font-weight:720;cursor:pointer}
.bb-settings-actions button:hover,.bb-settings-actions a:hover,.bb-settings-options button:hover,.bb-settings-name-form button:hover,.bb-settings-advanced button:hover{border-color:#AF2447}
.bb-settings-options{display:flex;flex-wrap:wrap;gap:8px}
.bb-settings-options button{min-width:90px}
.bb-settings-options button[aria-pressed="true"]{background:#AF2447;border-color:#AF2447;color:#fff}
.bb-settings-advanced{border-top:1px solid var(--belles-layout-line,var(--line,#d5bfc2));padding-top:12px}
.bb-settings-advanced summary{font-size:13px;font-weight:760;cursor:pointer;padding:4px 0}
.bb-settings-advanced[open]{display:grid;gap:10px}
.bb-settings-name-form{display:grid;gap:9px;max-width:500px;margin-top:12px}
.bb-settings-name-form label{font-size:12px;font-weight:750}
.bb-settings-name-form input{min-width:0;min-height:44px;border:1px solid var(--belles-layout-line,var(--line,#d5bfc2));border-radius:9px;background:transparent;color:inherit;padding:10px 12px;font-size:14px}
.bb-settings-name-form button{background:#AF2447;color:#fff;border-color:#AF2447;justify-self:start;min-width:115px}
.bb-settings-message{margin:0;min-height:0;font-size:12px;line-height:1.55;color:var(--belles-layout-muted,var(--muted,#7d656b));overflow-wrap:anywhere}
.bb-account-settings :is(button,input,summary,a):focus-visible{outline:2px solid #AF2447;outline-offset:3px}
.owner-settings-trigger{display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:10px;border:1px solid var(--line,#d5bfc2);background:var(--soft,#f2e7d8);color:var(--ink,inherit);cursor:pointer}
.owner-settings-trigger svg{width:21px;height:21px}
.owner-settings-trigger:hover{border-color:#AF2447}
.owner-settings-trigger:focus-visible{outline:2px solid #AF2447;outline-offset:3px}
.owner-profile.bb-account-settings{padding-block:0}
[data-theme="dark"] .bb-settings-panel{--belles-layout-panel:#241921;--belles-layout-line:#664653;--belles-layout-text:#fff6f3;--belles-layout-muted:#d4b5c0}
[data-theme="dark"] .owner-settings-trigger{color:#fff5f1;background:#2e2028}
@media(max-width:760px){.bb-account-settings{gap:11px}.bb-settings-panel{padding:15px;gap:12px}.bb-settings-facts>div{grid-template-columns:94px minmax(0,1fr)}.bb-settings-actions{grid-template-columns:1fr}.owner-settings-trigger{width:40px;height:40px}}

/* Keep the Owner account shortcut usable without crowding the mobile header. */
@media(max-width:520px){
 .owner-top .owner-top-actions{display:flex;align-items:center;justify-content:flex-end;gap:5px}
 .owner-top .owner-settings-trigger{flex:0 0 38px;width:38px;height:38px}
 .owner-top .owner-bell{flex:0 0 38px;min-width:38px;min-height:38px}
 .owner-top-actions .owner-date-time{display:none}
 .owner-top .owner-reading-control{flex:none}
}
@media(max-width:370px){
 .owner-top .owner-reading-control button{min-width:30px;padding:5px}
 .owner-top .owner-settings-trigger,.owner-top .owner-bell{width:35px;height:35px;min-width:35px;flex-basis:35px}
}

/* Single compact Settings popover shared by all Homestead account roles. */
.bb-settings-popover{box-sizing:border-box;position:fixed;z-index:1800;max-height:calc(100dvh - 20px);overflow-y:auto;overscroll-behavior:contain;padding:9px;border:1px solid #d9bfc5;border-radius:14px;background:#fffaf3;color:#2c2225;box-shadow:0 16px 42px #26131742}
.bb-settings-popover *{box-sizing:border-box}
.bb-settings-popover__header{display:grid;gap:5px;padding:12px 13px 13px;border-bottom:1px solid #e8d9d6}
.bb-settings-popover__header strong{font:800 19px/1.2 Georgia,serif}
.bb-settings-popover__header small{font-size:11px;line-height:1.3;color:#785d67;overflow-wrap:anywhere}
.bb-settings-popover__links{display:grid;gap:3px;padding-top:7px}
.bb-settings-popover__option{display:grid;gap:4px;width:100%;min-height:51px;padding:9px 12px;border:0;border-radius:8px;background:transparent;color:inherit;text-align:left;cursor:pointer}
.bb-settings-popover__option strong{font-size:13px;line-height:1.3;font-weight:760}
.bb-settings-popover__option small{font-size:11px;line-height:1.3;color:#785d67}
.bb-settings-popover__option:hover,.bb-settings-popover__option:focus-visible{background:#f1e5db;outline-offset:1px}
.bb-settings-popover__option:focus-visible{outline:2px solid #AF2447}
.bb-settings-popover__option.is-signout{margin-top:5px;border-top:1px solid #e8d9d6;border-radius:0}
.bb-settings-popover__option.is-signout strong{color:#AF2447}
html[data-theme="dark"] .bb-settings-popover{background:#241921;border-color:#654653;color:#fff6f3}
html[data-theme="dark"] .bb-settings-popover__header{border-color:#654653}
html[data-theme="dark"] .bb-settings-popover__header small,html[data-theme="dark"] .bb-settings-popover__option small{color:#d4b5c0}
html[data-theme="dark"] .bb-settings-popover__option:hover,html[data-theme="dark"] .bb-settings-popover__option:focus-visible{background:#392631}
html[data-theme="dark"] .bb-settings-popover__option.is-signout{border-color:#654653}
html[data-theme="dark"] .bb-settings-popover__option.is-signout strong{color:#ffc5d7}
.bb-settings-panel[id]{scroll-margin-top:15px}
/* The extra Owner header cog has been removed; Settings lives in the account navigation. */
@media(max-width:520px){.owner-top .owner-top-actions{display:flex;align-items:center;justify-content:flex-end;gap:5px}.owner-top .owner-bell{flex:0 0 39px}}

/* Owner icon alignment: single source of truth for the mobile settings and bell. */
#owner-app .owner-bottom-bar [data-owner-settings]{
 display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;
 text-align:center;line-height:1.15;
}
#owner-app .owner-bottom-bar [data-owner-settings] svg{
 display:block;width:22px;height:22px;flex:none;margin:0;
 transform:none;fill:none;stroke:currentColor;stroke-width:1.75;
}
#owner-app .owner-top .owner-bell{
 display:grid;place-items:center;position:relative;box-sizing:border-box;
 width:46px;height:46px;min-width:46px;min-height:46px;
 margin:0;padding:0;line-height:0;flex:none;
}
#owner-app .owner-top .owner-bell svg,
#owner-app .owner-top .owner-bell.has-notifications svg{
 display:block;position:static;box-sizing:content-box;
 width:24px;height:24px;min-width:24px;min-height:24px;
 margin:0;padding:0;transform:none;flex:none;fill:none;stroke-width:1.9;
}
#owner-app .owner-top .owner-bell .owner-bell-dot{position:absolute;top:5px;right:5px}
@media(max-width:520px){
 #owner-app .owner-top .owner-bell{
  width:42px;height:42px;min-width:42px;min-height:42px;flex:0 0 42px;
 }
 #owner-app .owner-top .owner-bell svg,
 #owner-app .owner-top .owner-bell.has-notifications svg{
  width:23px;height:23px;min-width:23px;min-height:23px;
 }
}
