.home-layout-module{min-width:0;margin:0 0 20px}.home-layout-module:empty{display:none}
.home-layout-module>.royal-home-grid{margin-top:16px}.home-layout-module>.hero-grid{grid-template-columns:minmax(0,1fr)}
.home-layout-module .royal-card{max-width:100%}.home-layout-module[data-home-module="medals"]>.royal-medal-peek{width:100%}
.home-more-services{margin:24px 0;padding:0 20px;border-top:1px solid var(--line,#d6b87430);border-bottom:1px solid var(--line,#d6b87430)}
.home-more-services>summary{list-style:none;cursor:pointer;min-height:64px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-weight:600}
.home-more-services>summary::-webkit-details-marker{display:none}.home-more-hint{display:flex;gap:12px;align-items:center;font-size:12px;font-weight:400;opacity:.65}
.home-more-hint i{font-size:22px;font-style:normal;transition:transform .2s}.home-more-services[open] .home-more-hint i{transform:rotate(180deg)}
.home-more-content{padding:4px 0 16px}.home-more-content .home-layout-module:last-child{margin-bottom:0}
.home-layout-editor{max-width:1000px;margin:auto}.home-layout-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
.home-layout-heading small{font-size:10px;letter-spacing:.2em;opacity:.55}.home-layout-heading h2{margin:8px 0}.home-layout-heading p{margin:0;opacity:.65}
.home-layout-fixed{font-size:13px;line-height:1.8;opacity:.75;margin:24px 0}.home-layout-presets{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:24px}
.home-layout-row{display:grid;grid-template-columns:minmax(0,1fr) 90px 90px;align-items:center;gap:14px;padding:12px 0;border-top:1px solid var(--line,#d6b87430)}
.home-layout-row-name{display:flex;align-items:center;gap:16px;min-width:0}.home-layout-row-name small{font-size:11px;opacity:.45}.home-layout-row-name strong{font-size:15px;font-weight:500;overflow-wrap:anywhere}
.home-layout-row select{min-height:44px;width:100%;font:inherit;border-radius:10px;padding:0 8px}.home-layout-arrows{display:flex;gap:2px}
.home-layout-arrows button{min-width:44px;min-height:44px;border:0;border-radius:10px;background:transparent;color:inherit;font-size:20px;cursor:pointer}.home-layout-arrows button:disabled{opacity:.22;cursor:default}
.home-layout-save{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:24px 0 12px;flex-wrap:wrap}.home-layout-save [role="status"]{font-size:13px;flex:1;min-width:150px}.home-layout-editor form>small{opacity:.6;font-size:12px}.home-layout-editor button{min-height:44px}
@media(max-width:600px){.home-layout-row{grid-template-columns:minmax(0,1fr) 72px 88px;gap:6px}.home-layout-row-name{gap:6px}.home-layout-row-name strong{font-size:13px}.home-layout-editor{padding:18px 12px}.home-layout-heading h2{font-size:23px}.home-more-services{padding:0 10px}.home-layout-presets .btn{font-size:12px;padding:8px 12px}}

/* Shared entrance row: light, unboxed links with equal visual icon sizes. */
:root body #app .header-entry-group :is(.ecosystem-link,.header-profile-entry,.header-medal-entry),
:root body #app .layout-menu-trigger{
 background:none;border:0;box-shadow:none;backdrop-filter:none;transform:none;
 min-height:44px;padding:0 5px;border-radius:0;
}
:root body #app .header-entry-group .ecosystem-link::before,
:root body #app .header-entry-group .ecosystem-link::after,
:root body #app .header-entry-group .ecosystem-edge{display:none}
:root body #app .header-entry-group :is(.ecosystem-logo,.header-medal-entry img){width:21px;height:21px;object-fit:contain;filter:none}
:root body #app .header-entry-group .ecosystem-copy small{display:none}
:root body #app .header-entry-group .ecosystem-copy strong{background:none;-webkit-text-fill-color:currentColor;color:var(--ink);text-shadow:none;animation:none}
:root body #app .header-entry-group{gap:10px}
:root body #app .header-profile-entry>.icon:first-child{width:19px;height:19px}
:root body #app .layout-menu-trigger{min-width:38px}
@media(max-width:370px){:root body #app .header-entry-group{gap:5px}:root body #app .header-entry-group :is(.ecosystem-link,.header-profile-entry,.header-medal-entry){padding-inline:3px}}

/* Privilege entrances use the same quiet outline style as the home navigation. */
:root body #app .royal-perk .royal-perk-icon.privilege-emblem,
:root body #app .shout-orb.privilege-emblem{background:transparent;border:0;box-shadow:none;filter:none;color:var(--skin-accent,var(--gold-ink))}
:root body #app .privilege-art{color:var(--skin-accent,var(--gold-ink));filter:none}

/* No yellow/blue focus circles after touch, click, or automatic dialog focus.
   Keyboard navigation keeps a small neutral underline, without moving focus. */
html:not([data-sf-input='keyboard']) body :is(button,a,summary,input,select,textarea,[tabindex]):is(:focus,:focus-visible){outline:none!important;outline-offset:0!important}
html:not([data-sf-input='keyboard']) body :is(button,a,summary):is(:focus,:focus-visible){box-shadow:none!important}
html[data-sf-input='keyboard'] body :is(button,a,summary,[tabindex]):focus-visible{outline:none!important;outline-offset:0!important;box-shadow:inset 0 -2px 0 currentColor!important}
html[data-sf-input='keyboard'] body :is(input,select,textarea):focus-visible{outline:1px solid var(--muted)!important;outline-offset:1px!important;box-shadow:none!important}

/* A shared rhythm: clear sections, equal entrance icons and quiet actions. */
:root body #app .content:has(>.home-member-bar){max-width:1200px;margin-inline:auto;padding-top:18px}
:root body #app .content:has(>.home-member-bar)>.home-member-bar{padding:8px 0 16px;margin-bottom:16px}
:root body #app .home-layout-module{margin-bottom:14px}
:root body #app .content:has(>.home-member-bar) .daily-entry{padding:14px 0;gap:14px;margin:0;border-top:0}
:root body #app .daily-entry .daily-entry-icon{width:26px;height:26px;min-width:26px;border:0;border-radius:0;background:none;box-shadow:none;filter:none;transform:none}
:root body #app .daily-entry-icon .daily-entry-glyph{display:block;width:100%;height:100%}
:root body #app .daily-entry h2{font-size:18px;line-height:1.5;letter-spacing:.025em}
:root body #app .daily-entry h2 span{margin-left:8px;font-size:11px;font-weight:400;letter-spacing:0}
:root body #app .daily-entry-copy{min-width:0}
:root body #app .daily-entry-copy p{font-size:12px;line-height:1.65;margin-top:4px}
:root body #app .daily-entry-button{min-height:44px;padding:10px 17px;border-radius:12px;box-shadow:none;transform:none;font-size:12px;font-weight:500;white-space:nowrap}
:root body #app .daily-entry-button::before,:root body #app .daily-entry-button::after{display:none}
:root body #app .content:has(>.home-member-bar) .royal-privilege-panel{padding:24px;border-radius:18px}
:root body #app .content:has(>.home-member-bar) .royal-privilege-panel .panel-head{margin-bottom:18px}
:root body #app .content:has(>.home-member-bar) .royal-perks-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0}
:root body #app .content:has(>.home-member-bar) .royal-perk{padding:18px 24px;min-height:180px;display:flex;flex-direction:column;align-items:flex-start}
:root body #app .content:has(>.home-member-bar) .royal-perk:first-child{padding-left:0}
:root body #app .content:has(>.home-member-bar) .royal-perk:last-child{padding-right:0}
:root body #app .royal-perk-link{margin-top:auto;padding-top:20px}
:root body #app .home-more-services{margin:16px 0;padding:0 14px;border:1px solid var(--line);border-radius:12px;background:linear-gradient(105deg,color-mix(in srgb,var(--skin-accent,var(--gold-ink)) 12%,transparent),color-mix(in srgb,var(--skin-accent,var(--gold-ink)) 3%,transparent));box-shadow:none}
:root body #app .home-more-services>summary{min-height:66px;font-size:14px;font-weight:500;letter-spacing:.035em;color:var(--skin-accent,var(--gold-ink))}
:root body #app .home-more-hint{font-size:11px;opacity:1}
:root body #app .home-layout-module :is(h2,h3){text-wrap:balance}
:root body #app .content:has(>.home-member-bar) .social-entries{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:0}
:root body #app .content:has(>.home-member-bar) .social-entries>button{display:grid;grid-template-columns:26px minmax(0,1fr);align-items:center;column-gap:9px;row-gap:6px;margin:0;padding:14px 16px;border-radius:13px;min-height:112px;justify-content:initial}
:root body #app .social-entries .social-entry-gem{display:block;width:26px;height:26px;flex:none;font-size:0;line-height:0}
:root body #app .social-entry-gem svg{display:block;width:100%;height:100%}
:root body #app .social-entries strong{font-size:14px;font-weight:500;line-height:1.5}
:root body #app .social-entries small{grid-column:1/-1;font-size:11px;line-height:1.6;margin:0}
:root body #app .social-entries b{grid-column:1/-1;font-size:10px;font-weight:400;margin:0;padding:0}
:root body #app .content:has(>.home-member-bar) .royal-small-diamond{width:52px;height:52px;margin:0}

/* No medal surrounds the portrait. Qualifications and all medal assets remain. */
:root body :is(.profile-avatar,.fx-avatar,.fx-creator-avatar,.fx-comment-avatar){position:relative;isolation:isolate;overflow:visible}
:root body .profile-avatar .profile-portrait{border-radius:50%;overflow:hidden}
:root body :is(.profile-avatar,.fx-avatar,.fx-creator-avatar,.fx-comment-avatar)>.avatar-verification-stack{position:absolute;inset:auto 0 0 auto;z-index:7;display:flex;align-items:center;justify-content:flex-end;width:34%;height:34%;min-width:12px;min-height:12px;max-width:24px;max-height:24px;pointer-events:none;isolation:isolate}
:root body .avatar-verification-stack:has(>:nth-child(2)){width:61%;max-width:44px}
:root body .avatar-verification-stack :is(.avatar-unverified,.verification-avatar-mark,.profile-enterprise-mark){position:static!important;inset:auto!important;display:block!important;flex:1 1 0;min-width:0;width:100%!important;height:100%!important;padding:0!important;margin:0!important;border:0!important;border-radius:50%;background:transparent!important;filter:none!important;line-height:0;box-shadow:none!important}
:root body .avatar-verification-stack .avatar-unverified{color:#797975;background:var(--paper,#090909)!important;box-shadow:0 0 0 1.5px var(--paper,#090909)!important}
:root body .avatar-verification-stack :is(img,svg){position:static!important;inset:auto!important;display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:contain!important;border:0!important;border-radius:0!important;box-shadow:none!important;filter:none!important;background:transparent!important;transform:none!important}
:root body :is(.profile-avatar,.fx-avatar,.fx-creator-avatar,.fx-comment-avatar)[data-founder='true']{border-color:var(--line);box-shadow:none!important}
:root body :is(.profile-avatar,.fx-avatar,.fx-creator-avatar,.fx-comment-avatar)>.founder-badge-compact{width:26%;height:26%;min-width:11px;min-height:11px;max-width:18px;max-height:18px;top:-2px;right:0;box-shadow:none;filter:none}
:root body :is(.profile-avatar,.fx-avatar,.fx-creator-avatar,.fx-comment-avatar)>.founder-badge-compact svg{width:100%;height:100%}

@media(max-width:680px){
 :root body #app .content:has(>.home-member-bar){padding:16px 20px}
 :root body #app .content:has(>.home-member-bar)>.home-member-bar{margin-bottom:14px;padding-bottom:14px;gap:10px}
 :root body #app .content:has(>.home-member-bar) .home-member-copy strong{font-size:14px;max-width:150px}
 :root body #app .content:has(>.home-member-bar) .home-points strong{font-size:25px;letter-spacing:-.6px}
 :root body #app .content:has(>.home-member-bar) .daily-entry{gap:10px;padding:12px 0;grid-template-columns:26px minmax(0,1fr) auto}
 :root body #app .daily-entry .daily-entry-icon{width:26px;height:26px;min-width:26px}
 :root body #app .daily-entry h2{font-size:16px}
 :root body #app .daily-entry h2 span{display:block;margin:3px 0 0;font-size:10px}
 :root body #app .daily-entry-copy p{font-size:11px;line-height:1.7;max-width:28em}
 :root body #app .daily-entry-button{padding:10px 12px;font-size:11px;gap:5px}
 :root body #app .daily-entry-button .icon{width:14px;height:14px}
 :root body #app .content:has(>.home-member-bar) .royal-privilege-panel{padding:20px 18px}
 :root body #app .content:has(>.home-member-bar) .royal-perk{padding:14px 18px;min-height:175px}
 :root body #app .content:has(>.home-member-bar) .royal-perk strong{font-size:16px}
 :root body #app .content:has(>.home-member-bar) .royal-perk .subtext{font-size:11px;line-height:1.8}
 :root body #app .home-layout-module{margin-bottom:14px}
 :root body #app .content:has(>.home-member-bar) .social-entries{gap:12px}
 :root body #app .content:has(>.home-member-bar) .social-entries>button{padding:12px 14px;column-gap:8px;row-gap:6px;min-height:120px}
 :root body #app .social-entries .social-entry-gem{width:26px;height:26px}
 :root body #app .social-entries strong{font-size:14px}
 :root body #app .social-entries small{font-size:11px}
 :root body #app .social-entries b{font-size:10px;margin-top:0}
 :root body #app .content:has(>.home-member-bar) .royal-small-diamond{width:40px;height:40px}
}
@media(max-width:360px){
 :root body #app .content:has(>.home-member-bar){padding-inline:16px}
 :root body #app .content:has(>.home-member-bar) .home-member-copy strong{max-width:114px}
 :root body #app .daily-entry-button{padding-inline:10px}
 :root body #app .daily-entry-button .icon{display:none}
 :root body #app .daily-entry h2{font-size:15px}
}

/* Compact service tiles retain their full labels and comfortable touch targets. */
:root body #app .social-entries>button>span:nth-child(2){display:contents}
:root body #app .home-more-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
:root body #app .home-more-copy strong{font-size:14px;font-weight:600;line-height:1.5}
:root body #app .home-more-copy strong small{font-size:10px;font-weight:400;margin-left:6px;opacity:.7}
:root body #app .home-more-copy>span{font-size:11px;line-height:1.5;color:var(--skin-muted,var(--muted));letter-spacing:.025em}
:root body #app .home-more-content{padding-top:8px}
:root body #app .home-more-fold,:root body #app .home-more-services[open] .home-more-expand{display:none}
:root body #app .home-more-services[open] .home-more-fold{display:inline}

/* Home identity remains one compact row, with full-size touch targets. */
:root body[data-mode='member'][data-page='home'] #app .home-member-bar{min-height:64px;padding:5px 0 11px;margin-bottom:12px;gap:12px}
:root body[data-mode='member'][data-page='home'] #app .home-member-person{gap:10px;flex:1;min-width:0}
:root body[data-mode='member'][data-page='home'] #app .rank-home-avatar{display:grid;place-items:center;min-width:44px;min-height:44px;flex:0 0 44px}
:root body[data-mode='member'][data-page='home'] #app .home-member-person .profile-avatar{width:34px;height:34px}
:root body[data-mode='member'][data-page='home'] #app .home-member-copy strong{font-size:14px;line-height:1.4;max-width:100%}
:root body[data-mode='member'][data-page='home'] #app .home-member-copy small{font-size:10px;line-height:1.5;margin-top:3px;letter-spacing:0}
:root body[data-mode='member'][data-page='home'] #app .home-points{max-width:48%;min-height:44px;padding:3px 0 3px 8px;line-height:1.3}
:root body[data-mode='member'][data-page='home'] #app .home-points>span{font-size:10px;margin-bottom:3px}
:root body[data-mode='member'][data-page='home'] #app .home-points strong{display:block;font-size:24px;line-height:1.2;letter-spacing:-.5px;overflow-wrap:anywhere}
:root body[data-mode='member'][data-page='home'] #app .home-points small{display:none}
@media(max-width:680px){
 :root body[data-mode='member'][data-page='home'] #app .topbar{display:grid;grid-template-columns:minmax(0,1fr);height:auto!important;min-height:84px;padding:4px 12px 4px 54px!important;gap:0;align-content:center}
 :root body[data-mode='member'][data-page='home'] #app .header-entry-group{display:flex;gap:5px;min-width:0;justify-content:space-between}
 :root body[data-mode='member'][data-page='home'] #app .header-entry-group :is(.ecosystem-link,.header-profile-entry,.header-medal-entry){min-height:44px;padding:0 2px;gap:5px;font-size:12px;white-space:nowrap}
 :root body[data-mode='member'][data-page='home'] #app .header-entry-group .ecosystem-copy strong{font-size:12px;letter-spacing:0}
 :root body[data-mode='member'][data-page='home'] #app .header-entry-group :is(.ecosystem-logo,.header-medal-entry img){width:19px;height:19px}
 :root body[data-mode='member'][data-page='home'] #app .header-profile-entry>.icon:last-child{display:none}
 :root body[data-mode='member'][data-page='home'] #app .topbar-right{flex-basis:auto;min-height:36px;justify-content:flex-end;gap:3px!important}
 :root body[data-mode='member'][data-page='home'] #app .content:has(>.home-member-bar){padding-top:10px}
}
@media(max-width:350px){
 :root body[data-mode='member'][data-page='home'] #app .home-member-copy strong{font-size:13px}
 :root body[data-mode='member'][data-page='home'] #app .home-member-copy small{font-size:9px}
 :root body[data-mode='member'][data-page='home'] #app .home-points strong{font-size:21px}
}

/* Identity service follows the same rounded compact home surfaces. */
:root body[data-mode='member'][data-page='home'] #app .verification-home-entry{box-sizing:border-box;width:100%;padding:14px 16px;border:1px solid var(--line);border-radius:18px;overflow:hidden;gap:12px}
:root body[data-mode='member'][data-page='home'] #app .verification-home-entry>div{min-width:0}
:root body[data-mode='member'][data-page='home'] #app .verification-home-entry small{line-height:1.6;overflow-wrap:anywhere}
:root body[data-mode='member'][data-page='home'] #app .verification-home-entry .btn{flex:none;min-height:44px}
