/* albastov.com's account area (account.js): the same look on every host,
   in the site's own language: near-black solids, hairlines, Manrope, the
   one accent #ff3d00. data-theme="light" (read from the host's background,
   or forced with theme="light") flips it for light pages. Every control is
   32 px tall, so any bar of 48 px or more keeps 8 px above and below.
   Every rule is scoped to .aba so no host's CSS leaks in or out. */
.aba {
  --aba-fg: #fff;
  --aba-fg-2: rgba(255, 255, 255, 0.62);
  --aba-line: rgba(255, 255, 255, 0.09);
  --aba-surface: #0f0f10;
  --aba-chip: rgba(255, 255, 255, 0.04);
  --aba-av: #26262a;
  --aba-av-fg: #fff;
  --aba-accent: #ff3d00;
  --aba-shadow: 0 18px 48px -16px rgba(0, 0, 0, 0.8);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  height: 32px;
  margin-left: 24px;
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--aba-fg);
  line-height: 1;
  -webkit-font-smoothing: antialiased;
}
.aba[data-theme="light"] {
  --aba-fg: #111113;
  --aba-fg-2: rgba(17, 17, 19, 0.6);
  --aba-line: rgba(17, 17, 19, 0.1);
  --aba-surface: #fff;
  --aba-chip: rgba(17, 17, 19, 0.035);
  --aba-av: #e8e8eb;
  --aba-av-fg: #111113;
  --aba-accent: #e03500;
  --aba-shadow: 0 18px 48px -18px rgba(17, 17, 19, 0.28);
}
/* The open menu's layer on <body>: carries the theme, takes no space. */
.aba.aba-layer { display: contents; margin: 0; height: auto; }
.aba *,
.aba *::before,
.aba *::after { box-sizing: border-box; }
/* Hosts style bare a and button (min-height, padding, borders, fonts);
   none of it reaches in here. */
.aba a { color: inherit; text-decoration: none; min-height: 0; min-width: 0; margin: 0; border: 0; background: none; font-family: inherit; line-height: 1; letter-spacing: 0; }

/* Products: one hairline capsule, 32 px. */
.aba .aba-apps {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 3px;
  border-radius: 10px;
  background: var(--aba-chip);
  box-shadow: inset 0 0 0 1px var(--aba-line);
}
.aba .aba-apps a {
  height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
  transition: color 0.12s;
}
.aba .aba-apps a:hover,
.aba .aba-apps a:focus-visible { color: var(--aba-accent); outline: none; }
.aba .aba-apps a:focus-visible { box-shadow: inset 0 0 0 1px var(--aba-accent); }

/* The avatar: a plain 32 px circle. */
.aba .aba-me {
  all: unset;
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--aba-av);
  color: var(--aba-av-fg);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: box-shadow 0.12s;
}
.aba .aba-me:hover { box-shadow: 0 0 0 1px var(--aba-line), 0 0 0 4px var(--aba-chip); }
.aba .aba-me:focus-visible { box-shadow: 0 0 0 2px var(--aba-accent); }
.aba .aba-me[aria-expanded="true"] { box-shadow: 0 0 0 1px var(--aba-fg-2); }
.aba .aba-me img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* The panel: solid, hairline, radius 10. Fixed and placed by account.js,
   so no host container (a sideways-scrolling bar, overflow: hidden) can
   clip it. Desktop: under the avatar. Phones ([data-sheet]): a sheet from
   the top edge, full width, as tall as its content. */
.aba .aba-scrim {
  position: fixed;
  inset: 0;
  z-index: 2147482999;
  background: transparent;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}
.aba .aba-scrim[hidden] { display: none; }
.aba .aba-menu {
  position: fixed;
  z-index: 2147483000;
  top: 0;
  left: 0;
  width: 368px;
  padding: 16px;
  border-radius: 10px;
  background: var(--aba-surface);
  border: 1px solid var(--aba-line);
  box-shadow: var(--aba-shadow);
  font-size: 14px;
  text-align: left;
  color: var(--aba-fg);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  outline: none;
  opacity: 0;
  transform: translateY(-8px);
  transform-origin: top right;
  transition: opacity 0.18s ease, transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}
.aba .aba-menu[data-open] { opacity: 1; transform: none; }
.aba .aba-menu[hidden] { display: none; }
.aba .aba-menu[data-sheet] {
  top: 0;
  left: 0;
  right: 0;
  width: auto;
  max-height: calc(100% - 56px);
  padding: calc(16px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 20px max(16px, env(safe-area-inset-left, 0px));
  border-width: 0 0 1px;
  border-radius: 0 0 10px 10px;
  opacity: 1;
  transform: translateY(-100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.aba .aba-menu[data-sheet][data-open] { transform: none; }

/* Who is signed in, and (on a phone) the close button. */
.aba .aba-head { display: flex; align-items: center; gap: 12px; padding: 0 0 16px; min-width: 0; }
.aba .aba-who { min-width: 0; flex: 1; }
.aba .aba-av {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--aba-av);
  color: var(--aba-av-fg);
  font-weight: 700;
  font-size: 15px;
}
.aba .aba-av img { width: 100%; height: 100%; object-fit: cover; }
.aba .aba-head b { display: block; font-size: 15px; font-weight: 700; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aba .aba-head em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 13px;
  font-weight: 500;
  color: var(--aba-fg-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.aba .aba-x {
  all: unset;
  box-sizing: border-box;
  display: none;
  width: 40px;
  height: 40px;
  flex: none;
  place-items: center;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px var(--aba-line);
  color: var(--aba-fg);
  cursor: pointer;
}
.aba .aba-menu[data-sheet] .aba-x { display: grid; }
.aba .aba-x:focus-visible { box-shadow: inset 0 0 0 1px var(--aba-accent); color: var(--aba-accent); }

/* Products: tiles in a grid, three across. */
.aba .aba-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--aba-line);
}
.aba .aba-menu .aba-tile {
  all: unset;
  box-sizing: border-box;
  position: relative;
  min-width: 0;
  height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 10px;
  background: var(--aba-chip);
  box-shadow: inset 0 0 0 1px var(--aba-line);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: var(--aba-fg);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.12s, box-shadow 0.12s;
}
.aba .aba-tile span { max-width: 100%; padding: 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aba .aba-tile-ico { width: 26px; height: 26px; flex: none; display: block; }
.aba .aba-menu .aba-tile:hover,
.aba .aba-menu .aba-tile:focus-visible { color: var(--aba-accent); box-shadow: inset 0 0 0 1px var(--aba-accent); outline: none; }
.aba .aba-menu .aba-tile:active { box-shadow: inset 0 0 0 1px var(--aba-accent); }

/* Account and Sign out: two wide rows side by side. */
.aba .aba-foot {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--aba-line);
}
.aba .aba-menu .aba-row {
  all: unset;
  box-sizing: border-box;
  min-width: 0;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 12px;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px var(--aba-line);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: var(--aba-fg);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.12s, box-shadow 0.12s;
}
.aba .aba-menu .aba-row:hover,
.aba .aba-menu .aba-row:focus-visible { color: var(--aba-accent); box-shadow: inset 0 0 0 1px var(--aba-accent); outline: none; }
.aba .aba-ico { width: 18px; height: 18px; flex: none; display: block; }
.aba .aba-x .aba-ico { width: 18px; height: 18px; }

/* The dock's outbound arrow, drawn (the ↗ character is an emoji on iOS). */
.aba-arw { display: inline-block; width: 0.78em; height: 0.78em; vertical-align: -0.04em; }

/* The capsule folds when the bar has no room (account.js measures it), and
   always on phones; the panel lists every product either way. */
.aba[data-compact] .aba-apps { display: none; }
@media (max-width: 760px) {
  .aba .aba-apps { display: none; }
}

.aba .aba-signin {
  height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--aba-chip);
  box-shadow: inset 0 0 0 1px var(--aba-line);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.12s;
}
.aba .aba-signin:hover,
.aba .aba-signin:focus-visible { color: var(--aba-accent); outline: none; }

@media (prefers-reduced-motion: reduce) {
  .aba * { transition: none !important; }
  .aba .aba-menu,
  .aba .aba-menu[data-sheet] { transform: none; }
}
