/* The login sheet, drawn over the page the person came from, and the account menu under the avatar. */
body.sheet-open { overflow: hidden; }
.ov { position: fixed; inset: 0; z-index: 30; overflow-y: auto; display: flex; justify-content: center; align-items: flex-start; padding: 92px 18px 24px; background: rgba(5, 9, 15, 0.66); }
.sheet { position: relative; width: min(500px, 100%); padding: 26px 26px 22px; border-radius: 16px; background: var(--raised); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 36px var(--glow); color: var(--text); }
.sheet::before, .sheet::after { content: ''; position: absolute; width: 18px; height: 18px; pointer-events: none; border: 0 solid var(--acc); }
.sheet::before { top: -6px; left: -6px; border-top-width: 2px; border-left-width: 2px; border-top-left-radius: 6px; }
.sheet::after { right: -6px; bottom: -6px; border-right-width: 2px; border-bottom-width: 2px; border-bottom-right-radius: 6px; }
.sh { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; }
.sh .logo { width: 40px; height: 40px; }
.sh h2 { margin: 0; font-size: 26px; line-height: 1.1; letter-spacing: 0.04em; flex: 1; }
.x { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--text); }
.x:hover { border-color: var(--acc); color: var(--accT); background: var(--hover); }
.sub { margin: 0 0 18px; color: var(--dim); font-size: 13.5px; }
.opts { display: flex; flex-direction: column; gap: 12px; }
.opt { display: flex; align-items: flex-start; gap: 14px; width: 100%; text-align: left; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); transition: border-color 0.15s, box-shadow 0.15s, background 0.15s; }
.opt:hover { border-color: var(--acc); background: var(--hover); box-shadow: 0 0 18px var(--glow); }
.opt[aria-disabled='true'] { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.opt[aria-disabled='true']:hover { border-color: var(--line); background: var(--panel); }
.oi { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--bg0); border: 1px solid var(--line); color: var(--accT); }
.ot { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.oh { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.oh b { font-size: 16px; }
.od { color: var(--dim); font-size: 13px; }
.od.fine { font-size: 12px; }
.offn { margin: 8px 0 0; color: var(--amberT); font-size: 12.5px; font-weight: 600; }
.sheet .notice { margin: 12px 0; }
.sheet .quiet { margin: 12px 0 0; }
.foot2 { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.foot2 p { margin: 0; color: var(--dim); font-size: 13px; }

.acctw { position: relative; }
button.acct { font-weight: 600; cursor: pointer; }
button.acct:hover, button.acct[aria-expanded='true'] { border-color: var(--acc); background: var(--hover); }
.menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; width: 260px; padding: 8px; border-radius: 12px; background: var(--raised); border: 1px solid var(--line); box-shadow: var(--shadow); }
.mh { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.mh b { font-size: 15px; overflow-wrap: anywhere; }
.bx { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--raised); font-size: 12px; font-weight: 600; color: var(--text); min-height: 26px; }
.bx.ok { color: var(--ok); }
.mi { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 8px; border: 0; background: transparent; text-align: left; font-size: 13.5px; min-height: 36px; }
.mi:hover { background: var(--hover); }
.mi .ic { color: var(--dim); }

@media (max-width: 640px) {
  .ov { padding-top: 24px; }
  .sheet { padding: 20px 18px 18px; }
}
