/* AVS AI Studio — the header's account states (3 Oct 2026).
   Signed out: Login (light) + Sign up (filled) on every page and every width, a phone too. Signed in: Create + one chip, a round
   initial and the name (avs.js signedIn paints it; tools/site_header.py is the markup). The studio shows the same chip in its top bar.
   Loaded after avs.css (the sizes come from there: .btn, .icon-btn, .nav). On a phone nothing else of the page changes: the same
   theme switch and menu button, the logo as "AVS" alone so that Login + Sign up fit. */

/* the links stay in the bar from a tablet up (there are only a few now); only a phone puts them in the menu */
@media (min-width: 760px) {
  .nav .links { display: flex; }
  .nav .burger { display: none; }
  .nav .actions { margin-left: 10px; }
}

.nav .acct { display: contents; }  /* Login + Sign up (or Create + the chip) sit in the bar's own row of actions */
.nav .login { display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border-radius: 999px; white-space: nowrap;
  font-size: 14px; font-weight: 500; color: var(--ink2); transition: background .2s, color .2s; }
.nav .login:hover { background: var(--card); color: var(--ink); }

/* the name chip: a round initial and the name (the email when there is none), one tap to Account */
.who { display: inline-flex; align-items: center; gap: 8px; max-width: 230px; height: 36px; padding: 0 12px 0 3px; border-radius: 999px;
  border: 1px solid var(--line2); background: var(--card); color: var(--ink); font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: background .2s, border-color .2s; }
.who:hover { background: var(--card-hover); border-color: var(--faint); }
.who[aria-current="page"] { border-color: var(--accent); }
.who-i { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line2);
  background: var(--tint-peach); color: var(--ink); font: 600 13px/1 var(--display); }
.who-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* a phone: the bar is the same, with Login + Sign up (or Create + the chip) in it. The logo is "AVS" alone; the chip is the only
   thing that gives way (its name shows as much as fits, down to the initial alone) */
@media (max-width: 759px) {
  .nav .wrap { gap: 10px; }
  .nav .brand { flex: none; }
  .nav .brand small { display: none; }
  .nav .actions { min-width: 0; gap: 4px; }
  .nav .acct .btn { padding: 0 14px; flex: none; }
  .nav .login { padding: 0 8px; flex: none; }
  .nav .who { flex: 0 1 auto; min-width: 0; gap: 6px; padding: 0 9px 0 3px; overflow: hidden; }
}
/* the smallest phones: the same, a little tighter, the chip as its initial alone */
@media (max-width: 359px) {
  .nav .who-n { display: none; }
  .nav .who { padding: 0 3px; }
  .nav .actions .icon-btn { width: 32px; height: 32px; }
  .nav .acct .btn { padding: 0 11px; }
  .nav .login { padding: 0 6px; }
}

/* the studio: the same chip in the top bar (a computer or tablet; a phone's top bar is left as it was); the rail's avatar shows the initial */
.topbar .who-slot { display: inline-flex; }
.topbar .who-slot:empty { display: none; }
.avatar.has-initial { font: 600 14px/1 var(--display); color: var(--ink); }
@media (max-width: 759px) { .topbar .who-slot { display: none; } }
