/* Account layer styles. They use the page's own colour variables, so they follow the shell palette. */
.acct-chip {
  flex: none; align-self: center;
  background: none; border: 1px solid var(--line); border-radius: 2px; padding: 8px 12px; min-height: 44px;
  font-family: var(--display); font-weight: 600; font-size: 0.9375rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink); cursor: pointer;
}
.acct-chip[hidden] { display: none; }
#bar-platform.is-home .acct-chip { align-self: flex-start; margin-top: 6px; }
.acct-chip:hover { border-color: var(--signal); }
.acct-dialog {
  width: min(92vw, 26rem); border: 1px solid var(--line); border-radius: 4px; padding: 0;
  background: var(--card); color: var(--ink); font-family: var(--body);
}
.acct-dialog::backdrop { background: rgba(4, 6, 10, 0.6); }
.acct-body { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.acct-body p { margin: 0; }
.acct-form { display: flex; flex-direction: column; gap: 14px; }
.acct-h { margin: 0; font-family: var(--display); font-weight: 600; font-size: 1.5rem; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.1; }
.acct-field { display: flex; flex-direction: column; gap: 6px; font-family: var(--display); font-weight: 600; font-size: 0.875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.acct-field input {
  font: inherit; font-family: var(--body); font-size: 1.125rem; letter-spacing: 0; text-transform: none; font-weight: 400;
  color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 2px; padding: 12px; min-height: 48px; width: 100%;
}
.acct-field input:focus { outline: 2px solid var(--signal); outline-offset: 1px; }
.acct-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.acct-row .plain { align-self: center; min-height: 44px; cursor: pointer; color: var(--ink); }
.acct-row .plain.solid { color: var(--paper); }
.acct-status { min-height: 1.2em; font-size: 0.9375rem; color: var(--signal); }
.acct-dev { border: 1px dashed var(--signal); border-radius: 2px; padding: 10px 12px; font-size: 0.9375rem; }
.acct-list { margin: 0; padding-left: 1.1em; font-size: 0.9375rem; color: var(--muted); }
.acct-danger { color: var(--muted); align-self: flex-start; cursor: pointer; }
.acct-body .quiet-link { align-self: flex-start; }
button[aria-pressed="true"].plain { border-color: var(--signal); color: var(--signal); }

/* Home header (Chris, 2 December 2026: "B, stacked large"). The name is the largest thing on the page:
   two lines on a phone, one line on a wide screen. Sign in is a quiet text link in the corner, and the
   tagline is a small label under the name. */
#bar-platform.is-home { display: block; position: relative; padding: 26px 0 0; }
#bar-platform.is-home .wordmark { display: block; white-space: normal; max-width: 4.6em; margin: 0; font-size: clamp(3.4rem, 19.5vw, 6.2rem); line-height: 0.9; letter-spacing: -0.04em; }
#bar-platform.is-home .acct-chip { position: absolute; top: 12px; right: 0; margin: 0; }
.acct-chip { border: 0; padding: 6px 0; min-height: 44px; font-size: 0.85rem; text-decoration: underline; text-underline-offset: 4px; }
.acct-chip:hover { color: var(--signal); }
#view-home .strap { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.9rem; color: var(--muted); margin: 14px 0 18px; }
@media (min-width: 760px) {
  #bar-platform.is-home { padding-top: 34px; }
  #bar-platform.is-home .wordmark { max-width: none; white-space: nowrap; font-size: clamp(4.5rem, 9.5vw, 8rem); line-height: 1; }
  #view-home .strap { font-size: 1rem; margin: 16px 0 26px; }
}
