/* om-fvtqd.16, moved by om-0xl5i (the owner, 23 Nov: "it should sit right to sources in its own component/button"): the
   account door is its own group in the footer bar, immediately right of the tool dock (Component Library, Costs,
   Sources). index.html gives the slot the bar's group class (om-frame-group), so the pill, its rest and reveal, the
   button's look and the focus ring are the bar's own (style.css, html[data-frame="v2"] #lower-hud). Signed out: a quiet
   'Sign in'. Signed in: the email's first letter in a small round mark. Nothing is left in the store row.
   While its sheet or menu is open the door stays lit (the bar may rest at --footer-rest behind them).
   Where the bar is tight (under 1040 px, the Mac window's 900 px minimum included) the footer's wordmark gives way
   first, so the door keeps its words and nothing overlaps the Ask group (measured on the sample, whose clock is the
   widest bar: from 980 to 1019 px the zoom group ran under Ask with the wordmark shown; 20 px to spare at 1040). The
   website hides the slot (web-demo/home.css). */
html[data-frame="v2"] #lower-hud .account-slot:has(> [aria-expanded="true"]) { opacity: 1; }
html[data-frame="v2"] #lower-hud .account-slot .account-mark {
  inline-size: 26px; block-size: 26px; min-inline-size: 26px; min-block-size: 26px; padding: 0; margin-inline: var(--space-1);
  border: 1px solid var(--rule-strong); border-radius: 50%; background: var(--lit); color: var(--paper);
  font: var(--weight-medium) var(--text-tick)/1 var(--font-ui); letter-spacing: 0;
}
html[data-frame="v2"] #lower-hud .account-slot .account-mark:is(:hover, [aria-expanded="true"]) { background: var(--lit); color: var(--paper); border-color: var(--lamp-edge); }
html[data-frame="v2"] #lower-hud .account-slot .account-door[aria-expanded="true"] { color: var(--paper); background: var(--wash-hover); }
@media (max-width: 1039px) {
  html[data-frame="v2"]:not([data-om-home]) #lower-hud:has(.account-slot) { grid-template-columns: minmax(0, 1fr) max-content; }
  html[data-frame="v2"]:not([data-om-home]) #lower-hud:has(.account-slot) > .canvas-wordmark { display: none; }
}

/* The menu of the mark (system/sheets.js openMenu): the email and the plan's state above 'Sign out'. */
.account-menu .account-menu-info {
  display: grid; gap: 2px; padding: var(--space-2) var(--space-3) var(--space-2); margin-block-end: var(--space-1);
  border-block-end: 1px solid var(--rule); max-inline-size: 280px;
}
.account-menu .account-menu-email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--paper);
  font: var(--weight-medium) var(--text-small)/var(--leading-ui) var(--font-ui); }
.account-menu .account-menu-plan { color: var(--paper-3); font: var(--text-tick)/var(--leading-ui) var(--font-ui); }

/* The sheet: the website's download sheet's look (web-demo/get-sheet.js .omgs), grown upward from the door, above the
   bar (account-door.js place(): its left edge at the door's, kept clear of the Ask group, inside the window). */
.account-sheet {
  position: fixed; z-index: 40; bottom: var(--account-sheet-bottom, 72px); left: var(--account-sheet-left, 16px);
  inline-size: min(380px, calc(100vw - 32px)); box-sizing: border-box; transform-origin: 24px 100%;
  border: 1px solid var(--rule-strong); border-radius: var(--radius-sheet); background: var(--table); color: var(--paper);
  box-shadow: var(--raise-3); font: 400 15px/1.4 var(--font-ui); padding: 22px 22px 20px;
  animation: account-sheet-grow .22s cubic-bezier(.2,.8,.2,1);
}
.account-sheet[data-closing] { animation: account-sheet-shrink .14s ease-in forwards; }
@keyframes account-sheet-grow { from { opacity: 0; transform: translateY(8px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes account-sheet-shrink { to { opacity: 0; transform: translateY(6px) scale(.96); } }
@media (prefers-reduced-motion: reduce) { .account-sheet, .account-sheet[data-closing] { animation: none; } }
.account-sheet * { box-sizing: border-box; }
.account-sheet h2 { margin: 0 32px 8px 0; font: var(--weight-medium) 21px/1.25 var(--font-ui); letter-spacing: -.005em; color: var(--paper); }
.account-sheet p { margin: 0 0 8px; color: var(--paper-2); }
.account-sheet .account-sheet-lead { color: var(--paper); }
.account-sheet .account-sheet-quiet { font-size: var(--text-small); color: var(--paper-3); }
.account-sheet .account-sheet-email { display: inline-block; max-inline-size: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  vertical-align: bottom; font-weight: var(--weight-medium); }
.account-sheet-close { position: absolute; top: 12px; right: 12px; inline-size: 30px; block-size: 30px; padding: 0; border: 0;
  border-radius: var(--radius-control); background: transparent; color: var(--paper-3); font: 400 20px/1 var(--font-ui); cursor: pointer; }
.account-sheet-close:hover { background: var(--lit); color: var(--paper); }
.account-sheet form { display: grid; gap: 10px; margin-top: 14px; }
.account-sheet input[type=email] { inline-size: 100%; block-size: 46px; padding: 0 14px; border: 1px solid var(--rule-strong);
  border-radius: var(--radius-control); background: var(--ground); color: var(--paper); font: 400 17px/1 var(--font-ui); outline: none; }
.account-sheet input[type=email]:focus { border-color: var(--lamp-ink); box-shadow: 0 0 0 3px var(--lamp-wash); }
.account-sheet input::placeholder { color: var(--paper-3); }
.account-sheet-go { block-size: 46px; border: 0; border-radius: var(--radius-control); background: var(--lamp); color: var(--on-lamp);
  font: var(--weight-medium) 16px/1 var(--font-ui); cursor: pointer; }
.account-sheet-go:hover { filter: brightness(1.05); }
.account-sheet-go:disabled { opacity: .6; cursor: default; }
.account-sheet-error { margin: 2px 0 0; color: var(--ember); font-size: 14px; }
.account-sheet-error:empty { display: none; }
.account-sheet-error::before { content: "\26A0\FE0E  "; }
.account-sheet-code { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 16px 0 4px; }
.account-sheet-cell { display: grid; place-items: center; block-size: 54px; border: 1px solid var(--rule-strong); border-radius: 10px;
  background: var(--ground); font: var(--weight-medium) 28px/1 var(--font-figure); font-variant-numeric: tabular-nums; color: var(--paper); }
.account-sheet-code[data-focus] .account-sheet-cell[data-at] { border-color: var(--lamp-ink); box-shadow: 0 0 0 3px var(--lamp-wash); }
.account-sheet-code[data-state=wrong] .account-sheet-cell { border-color: var(--ember); }
.account-sheet-code[data-state=busy] .account-sheet-cell, .account-sheet-code[data-dead] .account-sheet-cell { opacity: .6; }
.account-sheet-code[data-state=wrong] { animation: account-sheet-shake .3s; }
@keyframes account-sheet-shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.account-sheet-code input { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; opacity: 0; border: 0; padding: 0; font-size: 16px;
  color: transparent; background: transparent; caret-color: transparent; cursor: text; }
.account-sheet-links { display: flex; gap: 18px; margin-top: 12px; }
.account-sheet-link { padding: 0; border: 0; background: none; color: var(--paper-2); font: 400 14px/1.4 var(--font-ui); text-decoration: underline;
  text-decoration-color: var(--rule-strong); text-underline-offset: 3px; cursor: pointer; }
.account-sheet-link:hover { color: var(--paper); }
.account-sheet-link:disabled { color: var(--paper-3); text-decoration: none; cursor: default; }
.account-sheet-done { display: flex; gap: 12px; align-items: flex-start; margin-top: 4px; }
.account-sheet-tick { flex: none; display: grid; place-items: center; inline-size: 30px; block-size: 30px; border-radius: 50%;
  background: var(--verdigris); color: var(--table); font: 600 17px/1 system-ui, sans-serif; }
.account-sheet-step { font-size: 17px; color: var(--paper); margin: 2px 0 4px; }
.account-sheet :focus-visible { outline: 2px solid var(--lamp-ink); outline-offset: 2px; }
.account-sheet input:focus-visible { outline: none; }
