/* Plutonium sign-in gate + footer account control (plutonium-auth.js).
   Undesigned in Figma: built from the shared tokens - Poppins, 1px black
   borders, hard offset shadows, cream page (#fdf2d4) and yellow (#f8f872 /
   #ffff78) accents, pill buttons as in detail.css. */

:root {
  --pl-account-background: #dce6de;
  /* Navbar's inner left padding plus its border; align with the wordmark. */
  --plutonium-account-gutter: calc(var(--plutonium-chrome-gutter, 3.125rem) + 2.75rem);
}

/* ---- page behind the gate: blurred, inert (set in JS), not scrollable ------- */
html.pl-auth-gated,
html.pl-auth-dialog-open { overflow: hidden; }
html.pl-auth-gated body > :not(.pl-auth-gate):not(.ch2):not(script):not(style):not(link) {
  filter: blur(0.375rem);
  user-select: none;
}
/* Other promos never stack on top of the gate. */
html.pl-auth-gated .skill-promo-overlay,
html.pl-auth-gated .mcp-promo-layer,
html.pl-auth-gated .email-gate-overlay { display: none !important; }

/* ---- overlay + card ----------------------------------------------------------- */
.pl-auth-gate {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(28, 25, 23, .38);
  font-family: 'Poppins', sans-serif;
  color: #000;
  animation: pl-auth-fade .2s ease-out both;
}
.pl-auth-gate:focus { outline: none; }
.pl-auth-gate *, .pl-auth-gate *::before, .pl-auth-gate *::after { box-sizing: border-box; }

.pl-auth-card {
  position: relative;
  width: min(32.5rem, 100%);
  margin: auto;
  padding: 2.5rem 2.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  border: 0.0625rem solid #000;
  border-radius: 1rem;
  background: #fdf2d4;
  box-shadow: 0.375rem 0.375rem 0 #000;
  animation: pl-auth-rise .24s ease-out both;
}
.pl-auth-card-welcome {
  width: min(46.875rem, 100%);
  min-height: 21.0625rem;
  max-height: calc(100vh - 3rem);
  max-height: calc(100dvh - 3rem);
  padding: 3.75rem 2.5rem 3.125rem;
  align-items: center;
  overflow-y: auto;
  border-radius: 2.625rem;
  background: #dce6de;
  box-shadow: 0.5rem 0.5rem 0 #000;
}
.pl-auth-card-welcome .pl-auth-view { width: 100%; align-items: center; text-align: center; }
.pl-auth-card-welcome .pl-auth-title {
  max-width: 90%;
  font-family: 'Unbounded', 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 2.25rem;
}
.pl-auth-card-welcome .pl-auth-body { width: 39.5625rem; max-width: 90%; font-size: 1.125rem; line-height: 1.3; }
.pl-auth-card-welcome .pl-auth-signin-control { width: auto; min-width: min(26.25rem, 100%); }
.pl-auth-card-welcome .pl-auth-google {
  min-height: 3.375rem;
  margin-top: 0;
  padding: 1.0625rem 1.9375rem;
  background: #000;
  box-shadow: none;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.10125rem;
  text-transform: uppercase;
}
.pl-auth-card-welcome .pl-auth-google:hover { box-shadow: 0.25rem 0.3125rem 0 #657169; }
.pl-auth-card-welcome .pl-auth-google:active { box-shadow: none; }
.pl-auth-card-welcome .pl-auth-work { width: 32.5rem; max-width: 90%; padding-top: 0; border-top: 0; text-align: center; }
.pl-auth-card-welcome .pl-auth-form { width: 28.375rem; max-width: 100%; text-align: left; }
.pl-auth-card-welcome .pl-auth-status { width: 28.375rem; max-width: 100%; }
.pl-auth-dialog-close {
  position: absolute;
  z-index: 4;
  top: 2.4375rem;
  right: 2.4375rem;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.pl-auth-card:not(.pl-auth-card-welcome) .pl-auth-dialog-close { top: 1rem; right: 1rem; display: grid; place-items: center; }
.pl-auth-card:not(.pl-auth-card-welcome) .pl-auth-kicker { max-width: calc(100% - 1rem); }
.pl-auth-dialog-close:focus-visible { outline: 0.125rem solid #000; outline-offset: 0.25rem; border-radius: 0.25rem; }
.pl-auth-dialog-close img { display: block; width: 100%; height: 100%; }
/* Keep the close target intact; only the mandatory gate's visible X is smaller. */
.pl-auth-card:not(.pl-auth-card-welcome) .pl-auth-dialog-close img { width: 1rem; height: 1rem; }
.pl-auth-sparkles { position: absolute; top: 1.5725rem; left: 1.92375rem; width: 5.034375rem; height: 2.864375rem; pointer-events: none; }
.pl-auth-sparkles img { position: absolute; }
.pl-auth-star-large { top: 0.176875rem; left: 1.036875rem; width: 1.9rem; height: 1.9rem; transform: rotate(167.99deg) scaleY(-1); }
.pl-auth-star-small { top: 1.8325rem; left: 0.0825rem; width: 0.88625rem; height: 0.886875rem; transform: rotate(167.99deg) scaleY(-1); }
.pl-auth-legal { width: 28.375rem; max-width: 90%; margin: 1.5rem 0 0; color: #57534e; font: 400 0.875rem/1.5 'Poppins', sans-serif; text-align: center; }
.pl-auth-legal a { color: inherit; text-decoration: underline; text-underline-offset: 0.125rem; }
.pl-auth-view { display: flex; flex-direction: column; align-items: flex-start; gap: 0.875rem; }
.pl-auth-view[hidden] { display: none; }

.pl-auth-kicker {
  margin: 0;
  padding: 0.375rem 0.75rem;
  border: 0.0625rem solid #000;
  border-radius: 6.25rem;
  background: #f8f872;
  font: 600 0.6875rem/1 'Poppins', sans-serif;
  letter-spacing: 0.0625rem;
  text-transform: uppercase;
}
.pl-auth-title {
  margin: 0.25rem 0 0;
  font: 700 1.875rem/1.15 'Poppins', sans-serif;
  letter-spacing: -0.01875rem;
  color: #000;
}
.pl-auth-title:focus { outline: none; }
.pl-auth-title:focus-visible { outline: 0.125rem solid #000; outline-offset: 0.25rem; border-radius: 0.25rem; }
.pl-auth-body {
  margin: 0;
  font: 400 1rem/1.55 'Poppins', sans-serif;
  color: #1c1917;
}

/* Continue with Google: the unmodified G on a white button (Google brand
   guidance), framed in the site's black border + hard shadow. */
.pl-auth-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 3.25rem;
  margin-top: 0.625rem;
  padding: 0.75rem 1.5rem;
  border: 0.0625rem solid #000;
  border-radius: 6.25rem;
  background: #fff;
  box-shadow: 0.1875rem 0.1875rem 0 #000;
  color: #000;
  font: 600 1rem/1 'Poppins', sans-serif;
  cursor: pointer;
  transition: box-shadow .15s ease, transform .15s ease;
}
.pl-auth-google-g { flex: none; width: 1.25rem; height: 1.25rem; }
.pl-auth-google:hover { box-shadow: 0.25rem 0.3125rem 0 #000; transform: translate(-0.0625rem, -0.0625rem); }
.pl-auth-google:active { box-shadow: 0.0625rem 0.0625rem 0 #000; transform: translate(0.125rem, 0.125rem); }
.pl-auth-google:disabled { cursor: progress; opacity: .7; }
.pl-auth-work {
  margin: 0.625rem 0 0;
  padding-top: 1rem;
  border-top: 0.0625rem dashed rgba(0, 0, 0, .35);
  font: 400 0.875rem/1.55 'Poppins', sans-serif;
  color: #292524;
}
.pl-auth-work strong { font-weight: 700; }
/* After a personal account is rejected, the Request access path stands out. */
.pl-auth-work.is-error { color: #000; font-weight: 500; }
.pl-auth-work.is-error .pl-auth-link { text-decoration-thickness: 0.125rem; }

/* In-place sign-in status: "ready" hints and errors (role=alert). */
.pl-auth-signin-control { width: 100%; }
.pl-auth-error {
  width: 100%;
  margin: 0;
  padding: 0.625rem 0.75rem;
  border: 0.0625rem solid #000;
  border-radius: 0.625rem;
  background: #fff;
  font: 500 0.875rem/1.45 'Poppins', sans-serif;
  color: #000;
}
.pl-auth-error[hidden] { display: none; }
.pl-auth-error.is-error { border-color: #991b1b; background: #fef2f2; color: #991b1b; }

/* Local dev API only: email field in place of "Continue with Google". */
.pl-auth-dev { display: flex; flex-direction: column; gap: 0.5rem; width: 100%; margin-top: 0.625rem; }
.pl-auth-dev input {
  width: 100%;
  padding: 0.6875rem 0.875rem;
  border: 0.0625rem solid #000;
  border-radius: 0.625rem;
  background: #fff;
  color: #000;
  font: 400 0.9375rem/1.4 'Poppins', sans-serif;
}
.pl-auth-dev input:focus { outline: none; box-shadow: 0.1875rem 0.1875rem 0 #000; }
.pl-auth-dev .pl-auth-google { margin-top: 0.25rem; }

.pl-auth-link {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: #000;
  font: 600 0.875rem/1.55 'Poppins', sans-serif;
  text-decoration: underline;
  text-underline-offset: 0.1875rem;
  cursor: pointer;
}
.pl-auth-link:hover { text-decoration-thickness: 0.125rem; }
.pl-auth-prev { font-size: 0.8125rem; }

/* ---- request access form ------------------------------------------------------- */
.pl-auth-form { display: flex; flex-direction: column; gap: 0.875rem; width: 100%; }
.pl-auth-form[hidden] { display: none; }
.pl-auth-field { display: flex; flex-direction: column; gap: 0.375rem; }
.pl-auth-label { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; font: 600 0.8125rem/1.3 'Poppins', sans-serif; color: #000; }
.pl-auth-hint { font-weight: 400; color: #57534e; }
.pl-auth-field input,
.pl-auth-field textarea {
  width: 100%;
  padding: 0.6875rem 0.875rem;
  border: 0.0625rem solid #000;
  border-radius: 0.625rem;
  background: #fff;
  color: #000;
  font: 400 0.9375rem/1.4 'Poppins', sans-serif;
}
.pl-auth-field textarea { min-height: 5.5rem; resize: vertical; }
.pl-auth-field input:focus,
.pl-auth-field textarea:focus { outline: none; box-shadow: 0.1875rem 0.1875rem 0 #000; }
.pl-auth-field [aria-invalid="true"] { border-color: #b91c1c; border-width: 0.125rem; padding: 0.625rem 0.8125rem; }
.pl-auth-field input[readonly], .pl-auth-field textarea[readonly] { background: #f5f5f4; }
.pl-auth-field-error,
.pl-auth-form-error { margin: 0; font: 500 0.8125rem/1.4 'Poppins', sans-serif; color: #991b1b; }
.pl-auth-field-error[hidden], .pl-auth-form-error[hidden] { display: none; }
.pl-auth-form-error { padding: 0.625rem 0.75rem; border: 0.0625rem solid #991b1b; border-radius: 0.625rem; background: #fef2f2; }
.pl-auth-submit {
  align-self: stretch;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border: 0.0625rem solid #000;
  border-radius: 6.25rem;
  background: #ffff78;
  box-shadow: 0.1875rem 0.1875rem 0 #000;
  color: #000;
  font: 700 0.875rem/1 'Poppins', sans-serif;
  letter-spacing: 0.07875rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: box-shadow .15s ease, transform .15s ease;
}
.pl-auth-submit:hover:not(:disabled) { box-shadow: 0.25rem 0.3125rem 0 #000; transform: translate(-0.0625rem, -0.0625rem); }
.pl-auth-submit:disabled { cursor: progress; background: #f5f5c4; box-shadow: none; }
.pl-auth-status:empty { display: none; }
.pl-auth-status {
  width: 100%;
  margin: 0;
  padding: 1rem 1.125rem;
  border: 0.0625rem solid #000;
  border-radius: 0.625rem;
  background: #fff;
  box-shadow: 0.1875rem 0.1875rem 0 #000;
  font: 500 0.9375rem/1.5 'Poppins', sans-serif;
  color: #000;
}
.pl-auth-status:focus { outline: none; }
.pl-auth-status:focus-visible { outline: 0.125rem solid #000; outline-offset: 0.1875rem; }

/* Visible focus for every control in the dialog. */
.pl-auth-gate a:focus-visible,
.pl-auth-gate button:focus-visible {
  outline: 0.125rem solid #000;
  outline-offset: 0.1875rem;
  box-shadow: 0 0 0 0.3125rem #f8f872;
}

/* ---- phones: full-height sheet --------------------------------------------- */
@media (max-width: 600px) {
  .pl-auth-gate { padding: 0; align-items: stretch; }
  .pl-auth-card {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 2rem 1.25rem 1.5rem;
    border: 0;
    border-top: 0.0625rem solid #000;
    border-radius: 0;
    box-shadow: none;
    justify-content: center;
  }
  .pl-auth-title { font-size: 1.625rem; }
  .pl-auth-body { font-size: 0.9375rem; }
  .pl-auth-card-welcome {
    width: 100%;
    min-height: 0;
    max-height: calc(100dvh - 1.75rem);
    margin: auto;
    padding: 3rem 1.25rem 2.25rem;
    border: 0.0625rem solid #000;
    border-radius: 1.875rem;
    box-shadow: 0.3125rem 0.3125rem 0 #000;
  }
  .pl-auth-welcome { padding: max(0.875rem, env(safe-area-inset-top)) 0.875rem max(0.875rem, env(safe-area-inset-bottom)); }
  .pl-auth-dialog-close { top: 1.5rem; right: 1.5rem; }
  .pl-auth-sparkles { top: 1.125rem; left: 1.125rem; transform: scale(.8); transform-origin: top left; }
  .pl-auth-card-welcome .pl-auth-title { max-width: 85%; font-size: 1.375rem; line-height: 2.125rem; }
  .pl-auth-card-welcome .pl-auth-body { max-width: 100%; font-size: 1rem; line-height: 1.5625rem; }
  .pl-auth-card-welcome .pl-auth-google { padding: 1.0625rem 1.25rem; font-size: 0.9375rem; }
  .pl-auth-card-welcome .pl-auth-work, .pl-auth-legal { max-width: 100%; }
}

@keyframes pl-auth-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pl-auth-rise { from { opacity: 0; transform: translateY(0.75rem); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .pl-auth-gate, .pl-auth-card { animation: none; }
  .pl-auth-google, .pl-auth-submit { transition: none; }
  .pl-auth-google:hover, .pl-auth-submit:hover:not(:disabled), .pl-auth-google:active { transform: none; }
}

/* ---- footer account control (legal-links row) ------------------------------ */
.pl-auth-account {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.375rem;
  min-width: 0;
  font: 400 0.75rem/1.25rem 'Poppins', sans-serif;
  color: #000;
}
.pl-auth-account-email { font-weight: 600; overflow-wrap: anywhere; }
.pl-auth-account-sep { color: #44403c; }
.pl-auth-account button.footer-link {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.pl-auth-account .footer-link:focus-visible { outline: 0.125rem solid #000; outline-offset: 0.125rem; }
.pl-auth-account button.footer-link:disabled { cursor: progress; opacity: .7; }
.pl-auth-account-msg:empty { display: none; }
.pl-auth-account-msg { font-weight: 500; }
.pl-auth-dev-footer { flex-direction: row; flex-wrap: wrap; align-items: center; width: auto; margin: 0; gap: 0.375rem; }
.pl-auth-dev-footer .pl-auth-label { font: 500 0.75rem/1.25rem 'Poppins', sans-serif; }
.pl-auth-dev-footer input { width: 13.75rem; max-width: 100%; padding: 0.25rem 0.625rem; font-size: 0.75rem; border-radius: 0.5rem; }
.pl-auth-dev-footer .pl-auth-google { width: auto; min-height: 0; margin: 0; padding: 0.375rem 0.875rem; font-size: 0.75rem; box-shadow: 0.125rem 0.125rem 0 #000; }

/* ---- account control below the navbar ---------------------------------------
   The public site mirrors the Inspector's pill: anonymous visitors see Sign in;
   signed-in visitors see their avatar/name and can open the account popover. */
.pl-account-row {
  /* This is the row's actual flow size: 2.625rem trigger + 1rem padding on
     both sides. Pages with existing hero whitespace can reclaim that space
     without scaling or moving the account control itself. */
  --pl-account-row-flow: 4.625rem;
  position: relative;
  z-index: 90;
  width: 100%;
  min-height: 4.625rem;
  margin: 0;
  padding: 1rem var(--plutonium-account-gutter);
  pointer-events: none;
}
.pl-account-row:has(.pl-account[hidden]) { display: none; }
/* Opt-in only: keep the trigger directly below the navbar while the following
   hero uses the whitespace it already had before the account row was added. */
.pl-account-row-overlay:has(.pl-account:not([hidden])) {
  margin-bottom: calc(0rem - var(--pl-account-row-flow));
}
.pl-account { position: relative; display: inline-flex; flex-direction: column; align-items: flex-start; pointer-events: auto; }
.pl-account[hidden], .pl-account-panel[hidden], .pl-account-usage[hidden], .pl-account-email[hidden] { display: none; }
.pl-account-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  min-width: 0;
  height: 2.625rem;
  margin: 0;
  padding: 0.25rem 1.25rem 0.25rem 0.625rem;
  background: var(--pl-account-background);
  border: 0.0625rem solid #000;
  border-radius: 6.25rem;
  box-shadow: 0 0.25rem 0 #000;
  color: #1c1917;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.25rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.pl-account-button.is-signed-out,
.pl-account-button:hover { background: var(--pl-account-background); }
.pl-account-button:focus-visible { outline: 0.1875rem solid #000; outline-offset: 0.1875rem; }
.pl-account-button:disabled { cursor: progress; opacity: .7; }
.pl-account-label { display: block; max-width: 12.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-account-avatar {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.875rem;
  height: 1.875rem;
  padding: 0.1875rem;
  overflow: hidden;
  background: #fff1e4;
  border: 0.0625rem solid #000;
  border-radius: 50%;
  color: #000;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1;
  transition: background-color .15s ease;
}
.pl-account-avatar img { display: block; width: 100%; height: 100%; max-width: none; border-radius: 50%; object-fit: cover; }
/* Same mascot wrapper as the Inspector; do not add a second user glyph or
   outline around the default image when signed out. Profile editing is unchanged. */
.pl-account-button .pl-account-avatar { border: 0; padding: 0.125rem; background: transparent; }
.pl-account-button .pl-account-exit { width: 1rem; height: 1rem; }

.pl-account-panel {
  position: absolute;
  z-index: 120;
  top: calc(100% + 0.75rem);
  left: 0;
  width: min(26.875rem, calc(100vw - 2 * var(--plutonium-account-gutter) - .375rem));
  max-height: calc(100dvh - 10rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.25rem;
  background: #fff;
  border: 0.0625rem solid #000;
  border-radius: 1.5rem;
  box-shadow: 0.3125rem 0.3125rem 0 #000;
  color: #000;
  font-family: 'Poppins', sans-serif;
  text-align: left;
  cursor: default;
}
.pl-account-head { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.pl-account-avatar-lg { width: 3.375rem; height: 3.375rem; font-size: 1.25rem; padding: 0; }
.pl-account-id { display: flex; flex-direction: column; gap: 0.125rem; min-width: 0; flex: 1; }
.pl-account-name { overflow: hidden; font-size: 1rem; font-weight: 600; line-height: 1.375rem; text-overflow: ellipsis; white-space: nowrap; }
.pl-account-email { overflow: hidden; color: #57534e; font-size: 0.8125rem; line-height: 1.1875rem; text-overflow: ellipsis; white-space: nowrap; }
.pl-account-usage {
  margin: 1rem 0 0;
  padding: 0.5625rem 1rem;
  background: #ecfdf5;
  border: 0.0625rem solid #000;
  border-radius: 6.25rem;
  font-size: 0.8125rem;
  line-height: 1.25rem;
}
.pl-account-usage strong { font-weight: 700; }
.pl-account-items { display: grid; grid-template-columns: minmax(max-content, 1fr) minmax(max-content, 1fr); gap: 0.625rem; margin-top: 1rem; }
.pl-account-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.625rem;
  width: 100%;
  min-height: 2.75rem;
  margin: 0;
  padding: 0.625rem 1rem;
  background: #fdf2d4;
  border: 0.0625rem solid #000;
  border-radius: 6.25rem;
  color: #000;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.25rem;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease;
}
a.pl-account-item::after { content: '→'; font-weight: 500; }
.pl-account-item:hover, .pl-account-item:focus { background: #f9e6b3; outline: none; }
.pl-account-item:focus-visible { outline: 0.125rem solid #000; outline-offset: 0.125rem; }
.pl-account-signout { background: #fdf2d4; }
.pl-account-signout:hover, .pl-account-signout:focus { background: #f1cfbe; }
.pl-account-signout:disabled { cursor: progress; opacity: .7; }
.pl-account-primary { background: #ffff78; }
.pl-account-exit { width: 1.1875rem; height: 1.1875rem; flex: none; }
.pl-account-avatar-edit { position: relative; flex: none; display: block; cursor: pointer; border-radius: 50%; }
.pl-account-avatar-edit input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.pl-account-avatar-edit:focus-within { outline: .1875rem solid #000; outline-offset: .1875rem; }
.pl-account-avatar-add { position: absolute; right: -.125rem; bottom: -.125rem; display: grid; place-items: center; width: 1.375rem; height: 1.375rem; color: #fff; background: #000; border: .125rem solid #fff; border-radius: 50%; font: 500 1rem/1 'Poppins', sans-serif; pointer-events: none; }
.pl-account-name-row { display: flex; align-items: center; gap: .375rem; }
.pl-account-name-edit { display: grid; flex: none; place-items: center; width: 1.75rem; height: 1.75rem; border: .0625rem solid #000; border-radius: 50%; background: #e5ede6; cursor: pointer; color: #000; padding: .375rem; }
.pl-account-name-edit svg { width: 100%; height: 100%; }
.pl-account-name-form { display: flex; gap: .375rem; flex-wrap: wrap; margin: .375rem 0; }
.pl-account-name-label { width: 100%; font-size: .75rem; }
.pl-account-name-form input { display: block; width: 100%; min-width: 0; padding: .5rem; border: .0625rem solid #000; border-radius: .375rem; background: #fff; font: inherit; font-size: .875rem; color: #000; }
.pl-account-name-form button { padding: .375rem .75rem; border: .0625rem solid #000; border-radius: 2rem; background: #ffff78; color: #000; font: 500 .75rem 'Poppins', sans-serif; cursor: pointer; }
.pl-account-name-form button[type="button"] { background: #fff; }
.pl-account [hidden] { display: none !important; }
.pl-account-context { margin-top: 1rem; padding-top: 1rem; border-top: .0625rem solid #000; }
.pl-account-section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin-bottom: .625rem; }
.pl-account-section-heading h2 { margin: 0; font: 600 1rem/1.4 'Poppins', sans-serif; letter-spacing: normal; text-align: left; }
.pl-account-section-heading > span { font: 400 .6875rem/1.4 'Poppins', sans-serif; color: #69645e; text-align: right; }
.pl-account-empty { margin: 1rem 0; color: #69645e; font: 400 .8125rem/1.6 'Poppins', sans-serif; }
.pl-account-activity { display: flex; align-items: center; gap: .5rem; padding: .75rem 0; color: #000; text-decoration: none; border-bottom: .0625rem solid #e8e4df; }
.pl-account-activity:hover .pl-account-activity-copy strong { text-decoration: underline; }
/* Bare line icons, like the MCP Inspector row's cube (Ariel, 2026-10-13). */
.pl-account-activity-icon { display: grid; place-items: center; flex: none; width: 1.5rem; height: 1.5rem; }
.pl-account-activity-icon svg, .pl-account-activity-icon > img:not(.pl-account-activity-logo) { width: 1.125rem; height: 1.125rem; }
.pl-account-activity-logo { width: 1.5rem; height: 1.5rem; border-radius: .25rem; object-fit: contain; }
.pl-account-activity-icon [hidden] { display: none; }
.pl-account-activity-icon > span { display: grid; place-items: center; }
.pl-account-activity-copy { min-width: 0; flex: 1; }
.pl-account-activity-copy strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: 600 .8125rem/1.5 'Poppins', sans-serif; }
.pl-account-activity-copy > span, .pl-account-config > span > span { display: block; color: #69645e; font: 400 .6875rem/1.6 'Poppins', sans-serif; }
.pl-account-activity-copy > span { text-transform: capitalize; }
.pl-account-activity-arrow { font-size: .875rem; }
.pl-account-tool { display: flex; align-items: center; justify-content: space-between; padding: .75rem 0 .125rem; color: #000; text-decoration: none; font: 500 .8125rem/1.4 'Poppins', sans-serif; }
.pl-account-tool > span:first-child { display: flex; align-items: center; gap: .5rem; }
.pl-account-tool:hover { text-decoration: underline; }
.pl-account-config { display: flex; gap: .625rem; align-items: center; padding: .75rem 0; }
.pl-account-config strong { font: 600 .875rem/1.5 'Poppins', sans-serif; }
.pl-account-download { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; border: .0625rem solid #c6c3bc; border-radius: .5rem; background: #f7faf6; padding: .625rem .875rem; color: #000; font: 500 .8125rem 'Poppins', sans-serif; cursor: pointer; }
.pl-account-profile-message { margin: .75rem 0 0; font: 400 .75rem/1.4 'Poppins', sans-serif; color: #256334; }
.pl-account-profile-message.is-error { color: #a32121; }
.pl-account-panel :is(button, a, input):focus-visible { outline: .125rem solid #000; outline-offset: .1875rem; }
.pl-account-panel button:disabled { opacity: .65; cursor: wait; }

@media (max-width: 1100px) {
  :root { --plutonium-account-gutter: calc(var(--plutonium-chrome-gutter, 1rem) + 1.5rem); }
}
@media (max-width: 767px) {
  /* The compact home hero needs a small gap below the trigger. */
  .home-page:not(.eco) > .pl-account-row-overlay:has(.pl-account:not([hidden])) {
    margin-bottom: calc(1rem - var(--pl-account-row-flow));
  }
  /* Guides starts higher at this breakpoint, so preserve a little more room. */
  .guides-page > .pl-account-row-overlay:has(.pl-account:not([hidden])) {
    margin-bottom: calc(1.5rem - var(--pl-account-row-flow));
  }
}
@media (max-width: 760px) {
  /* Ecosystem planets begin at the top of the mobile hero, so they keep the
     account row in normal flow. Skill's intermediate exception follows. */
  .home-page.eco > .pl-account-row-overlay:has(.pl-account:not([hidden])) { margin-bottom: 0; }
}
@media (min-width: 641px) and (max-width: 760px) {
  /* Skill's intermediate hero is shallower while the desktop trigger remains
     tall, so preserve a small gap below its shadow at this exact breakpoint. */
  .skill-page > .pl-account-row-overlay:has(.pl-account:not([hidden])) {
    margin-bottom: calc(0.5rem - var(--pl-account-row-flow));
  }
}
@media (max-width: 640px) {
  .pl-account-row { --pl-account-row-flow: 3.875rem; min-height: 3.875rem; padding: 0.75rem var(--plutonium-account-gutter); }
  /* Detail Back uses 0.5rem vertical padding at this same breakpoint. */
  .pl-account-button { height: 2.375rem; }
  .pl-account-button .pl-account-avatar { width: 1.75rem; height: 1.75rem; }
  .pl-account-panel { position: fixed; top: 8.5rem; right: 1rem; left: 1rem; width: auto; }
  .pl-account-avatar-lg { width: 3.375rem; height: 3.375rem; }
}
@media (max-width: 600px) {
  :root { --plutonium-account-gutter: calc(var(--plutonium-chrome-gutter, 1rem) + 1.25rem); }
}
@media (max-width: 360px) { .pl-account-items { grid-template-columns: 1fr; } }
@media (max-width: 420px) {
  [data-pl-account-context="hardening"] .pl-account-items { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .pl-account-avatar, .pl-account-item { transition: none; }
}
/* Request access: first and last name side by side; stacked on narrow screens. */
.pl-auth-name-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 .75rem; }
@media (max-width: 420px) { .pl-auth-name-row { grid-template-columns: minmax(0, 1fr); } }
