/* The You panel (more-menu.js), Brady's You mockup (2026-11-17): a "You" title bar with the close X, your photo and
   name over the flag, View My Page / Edit Profile, then each group as its own card with a blue-marked heading and
   framed line icons. Wide screens keep the 340px pop-out beside the mini profile; phones (≤640px) fill the screen. */
html:not(#yp) #modal.more-open[open]{background:var(--v2-box,var(--cm-card));color:var(--cm-text);border:1px solid var(--v2-field-line,var(--cm-line))}
html:not(#yp) #modal.more-open #modalContent{padding:0;border-top:0}
html:not(#yp) #modal.more-open::before{content:none}
html:not(#yp) #modal.more-open .more-sheet{padding:0 12px 14px}
html:not(#yp) #modal.more-open .more-grip{display:none}

/* Title bar: person icon, "You", and the dialog's own close button turned into a plain X. */
.you-top{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:10px;height:52px;margin:0 -12px;padding:0 56px 0 16px;
  background:var(--v2-box,var(--cm-card));border-bottom:1px solid var(--v2-tab-on-line,#1d5fc4)}
.you-top-ico{display:grid;place-items:center;color:var(--v2-link,#3a8bff)}
html:not(#yp) .more-sheet .you-top h2{margin:0;padding:0;font:800 20px/1 Inter,sans-serif;color:var(--cm-text)}
html:not(#yp) #modal.more-open[open]>.close{position:absolute;top:8px;right:8px;left:auto;z-index:4;display:grid;place-items:center;width:36px;height:36px;min-width:0;margin:0;padding:0;
  border:0;border-radius:8px;background:transparent!important;color:var(--cm-text);opacity:1}
html:not(#yp) #modal.more-open[open]>.close svg{display:block;width:22px;height:22px}
html:not(#yp) #modal.more-open[open]>.close .mobile-close-label{display:none}
html:not(#yp) #modal.more-open[open]>.close:hover{background:var(--cm-card2)!important}
html:not(#yp) #modal.more-open[open]>.close:focus-visible{outline:2px solid var(--v2-link,#3a8bff);outline-offset:1px}

/* Profile: the flag (or your own cover) behind your photo and name, fading out to the left. */
html:not(#yp) .more-sheet .you-head{position:relative;margin:0 -12px 2px;padding:0;border-bottom:0;overflow:hidden}
html:not(#yp) .more-sheet .you-banner{position:absolute;inset:0 0 auto 0;height:100px}
html:not(#yp) .more-sheet .you-banner:not(.custom-cover){background:url(/brand/dialog-flag-800.webp) right center/cover no-repeat}
html:not(#yp) .more-sheet .you-banner::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,var(--v2-box,var(--cm-card)) 30%,color-mix(in srgb,var(--v2-box,var(--cm-card)) 55%,transparent) 70%,color-mix(in srgb,var(--v2-box,var(--cm-card)) 25%,transparent)),linear-gradient(0deg,var(--v2-box,var(--cm-card)),transparent 45%)}
html:not(#yp) .more-sheet .you-row{position:relative;align-items:center;gap:14px;margin:0;padding:14px 16px 10px}
html:not(#yp) .more-sheet .you-av{width:64px;height:64px;flex:0 0 64px;border:2px solid #c9ced6;box-shadow:0 0 0 2px var(--v2-box,var(--cm-card));font-size:21px}
html:not(#yp) .more-sheet .you-id{padding-top:0;display:flex;flex-direction:column;gap:3px}
html:not(#yp) .more-sheet .you-id h2{margin:0;padding:0;font:800 20px/1.2 Inter,sans-serif;color:var(--cm-text)}
html:not(#yp) .more-sheet .you-id span{font-size:13.5px;color:var(--cm-muted)}
html:not(#yp) .more-sheet .you-actions{position:relative;gap:10px;padding:6px 0 12px;margin:0 12px}
.you-btn{flex:1 1 0;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:42px;margin:0;padding:0 10px;
  border:1px solid var(--v2-field-line,var(--cm-btn-line));border-radius:8px;background:var(--v2-card2,var(--cm-card2));color:var(--cm-text);
  font:600 14px Inter,sans-serif;white-space:nowrap;cursor:pointer}
.you-btn:hover{border-color:var(--cm-muted)}
.you-btn-blue{border-color:#2a6fd6;background:var(--v2-post,linear-gradient(180deg,#2f7bf5,#1560cb));color:#fff}
.you-btn-blue:hover{border-color:#5d97ef;filter:brightness(1.08)}
.you-btn:focus-visible{outline:2px solid var(--v2-link,#3a8bff);outline-offset:2px}
.you-btn .bst-illustration{flex:none;width:18px;height:18px}

/* Signed out: the welcome block under the title bar. */
html:not(#yp) .more-sheet .you-welcome{margin:0 -12px 10px}

/* Each group is a card: a blue-marked caps heading over a framed list. */
html:not(#yp) #modal.more-open .more-group{margin:10px 0 0;padding:0 8px 8px;border:1px solid var(--v2-field-line,var(--cm-line));border-radius:12px;background:var(--v2-card2,var(--cm-card2))}
html:not(#yp) #modal.more-open .more-group h3{display:flex;align-items:center;gap:8px;margin:0;padding:10px 4px 8px;color:var(--cm-text);font:700 11.5px Inter,sans-serif;letter-spacing:1.4px;text-transform:uppercase}
html:not(#yp) #modal.more-open .more-group h3::before{content:'';flex:none;width:3px;height:13px;border-radius:2px;background:var(--v2-link,#3a8bff)}
html:not(#yp) #modal.more-open .more-list{border:1px solid var(--v2-field-line,var(--cm-line));border-radius:10px;background:var(--v2-box,var(--cm-card))}
html:not(#yp) #modal.more-open .more-row{gap:12px;min-height:50px;padding:7px 10px 7px 8px;color:var(--cm-text)}
html:not(#yp) #modal.more-open .more-row+.more-row{border-top:1px solid var(--v2-field-line,var(--cm-line))}
html:not(#yp) #modal.more-open .more-row:hover{background:var(--v2-card,var(--cm-card2))}
html:not(#yp) #modal.more-open .more-row.current{background:color-mix(in srgb,#1560cb 14%,transparent)}
html:not(#yp) #modal.more-open .more-row .more-icon{width:34px;height:34px;border:1px solid var(--v2-divider,var(--cm-line));border-radius:8px;
  background:var(--v2-card,var(--cm-card2));color:var(--cm-text);font-size:16px}
html:not(#yp) #modal.more-open .more-row.current .more-icon{border-color:#2a6fd6;background:#1560cb;color:#fff}
html:not(#yp) #modal.more-open .more-row .more-icon .bst-illustration{width:22px;height:22px}
html:not(#yp) #modal.more-open .more-text{gap:1px}
html:not(#yp) #modal.more-open .more-text b{font:700 14px/1.25 Inter,sans-serif}
html:not(#yp) #modal.more-open .more-text small{font-size:11.5px;line-height:1.3;color:var(--cm-muted)}
html:not(#yp) #modal.more-open .more-end{color:var(--cm-text)}
html:not(#yp) #modal.more-open .more-end i{font-size:22px}
html:not(#yp) #modal.more-open .more-signout{margin:12px 0 0;border-color:var(--v2-field-line,var(--cm-line));border-radius:10px;background:var(--v2-card2,var(--cm-card2))}
html:not(#yp) #modal.more-open .more-signin{width:100%}

/* Phones: the whole screen, like Messages and Exchange Chat; the list scrolls under the pinned title bar. */
@media (max-width:640px){
  html:not(#yp) #modal.more-open[open]{inset:0;width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0;
    padding-top:env(safe-area-inset-top);animation:none}
  html:not(#yp) #modal.more-open #modalContent{flex:1 1 auto;padding-bottom:env(safe-area-inset-bottom)}
  html:not(#yp) #modal.more-open[open]>.close{top:calc(8px + env(safe-area-inset-top));width:40px;height:40px}
  .you-top{height:56px}
  html:not(#yp) #modal.more-open .more-row{min-height:54px}
  .you-btn{min-height:44px}
}

/* The slide-in menu (≤850px): the mini profile sits right on top of the menu list, as on wide screens. style.css's
   old narrow-sidebar rule gave the list a 30px top margin that showed as a gap. */
@media (max-width:850px){html:not(#yp) #v2Side>nav{margin-top:0}}

/* The mockup's icon tiles: a dark framed square holding a two-tone picture (white lines, blue parts, --yp-accent). */
html:not(#yp) #modal.more-open{--yp-accent:#2f7bf5}
html:not(#yp) #modal.more-open .more-row .more-icon{width:36px;height:36px;border:1px solid #3a3f46;border-radius:7px;
  background:linear-gradient(180deg,#22262c,#121417);color:#e9edf2;box-shadow:inset 0 1px 0 rgba(255,255,255,.06)}
html:not(#yp) #modal.more-open .more-row .more-icon .bst-illustration{width:24px;height:24px}
html:not(#yp) #modal.more-open .more-row.current .more-icon{border-color:#2a6fd6;background:linear-gradient(180deg,#22262c,#121417);box-shadow:0 0 0 1px #2a6fd6}
html:not(#yp) .you-top-ico .bst-illustration{width:24px;height:24px}
