/* ===========================================================================
   Account control + overlays — shared across every Crooker LLC page.
   Framework-agnostic; themes itself from each page's design tokens with
   sensible fallbacks (instant-intern.html uses its own palette).
   =========================================================================== */
.acct-root {
  --a-accent: var(--accent, #8fd29a);
  --a-ink: var(--ink, #eef2ee);
  --a-ink2: var(--ink-2, #9aa39b);
  --a-bg: var(--bg, #11160f);
  --a-bg2: var(--bg-2, #1a211c);
  --a-line: var(--line, rgba(160, 180, 165, 0.18));
  margin-left: auto;
  position: relative;
  display: inline-flex;
  align-items: center;
}

.acct-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--a-line);
  background: var(--a-bg2);
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 0;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}
.acct-btn:hover { border-color: var(--a-accent); transform: translateY(-1px); }
.acct-btn:focus-visible { outline: 2px solid var(--a-accent); outline-offset: 2px; }
.acct-btn svg, .acct-btn img { width: 100%; height: 100%; display: block; }
.acct-btn img { object-fit: cover; }

/* overlay scrim + card */
.acct-scrim {
  --a-accent: var(--accent, #8fd29a);
  --a-ink: var(--ink, #eef2ee);
  --a-ink2: var(--ink-2, #9aa39b);
  --a-bg: var(--bg, #11160f);
  --a-bg2: var(--bg-2, #1a211c);
  --a-line: var(--line, rgba(160, 180, 165, 0.18));
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.58);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.18s ease;
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
}
.acct-scrim.is-open { opacity: 1; }

.acct-card {
  width: min(92vw, 372px);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  border-radius: 16px;
  border: 1px solid var(--a-line);
  background: linear-gradient(180deg, var(--a-bg2), var(--a-bg));
  color: var(--a-ink);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9);
  padding: 22px 22px 20px;
  transform: translateY(8px) scale(0.985);
  transition: transform 0.18s ease;
}
.acct-scrim.is-open .acct-card { transform: none; }

.acct-eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--a-ink2);
  margin: 0 0 6px;
}
.acct-title { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 16px; }
.acct-title .ll { color: var(--a-accent); }

.acct-provider {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 14px;
  margin: 0 0 9px;
  border-radius: 11px;
  border: 1px solid var(--a-line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--a-ink);
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.acct-provider:hover { border-color: var(--a-accent); background: rgba(255, 255, 255, 0.06); }
.acct-provider:focus-visible { outline: 2px solid var(--a-accent); outline-offset: 2px; }
.acct-provider svg { width: 18px; height: 18px; flex: none; }

.acct-fine {
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--a-ink2);
  margin: 14px 0 0;
}
.acct-fine a { color: var(--a-accent); }

.acct-divider { height: 1px; background: var(--a-line); margin: 16px 0; border: 0; }

/* profile */
.acct-id { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; }
.acct-id .pic {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  border: 1px solid var(--a-line); overflow: hidden; background: var(--a-bg2);
}
.acct-id .pic svg, .acct-id .pic img { width: 100%; height: 100%; display: block; object-fit: cover; }
.acct-id .who { min-width: 0; }
.acct-id .nm { font-size: 15px; font-weight: 600; }
.acct-id .em { font-size: 12.5px; color: var(--a-ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.acct-section-label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--a-ink2); margin: 0 0 10px;
}
.acct-row {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px; margin-bottom: 8px; border-radius: 10px;
  border: 1px solid var(--a-line); background: transparent; color: var(--a-ink);
  font-size: 14px; cursor: pointer; text-align: left;
}
.acct-row:hover { border-color: var(--a-accent); }
.acct-row.danger:hover { border-color: var(--warn, #e0a45a); color: var(--warn, #e0a45a); }

.acct-swatches { display: flex; gap: 9px; margin: 2px 0 6px; }
.acct-swatch {
  width: 26px; height: 26px; border-radius: 50%; cursor: pointer;
  border: 2px solid transparent; padding: 0;
}
.acct-swatch.is-active { border-color: var(--a-ink); }
.acct-swatch:focus-visible { outline: 2px solid var(--a-ink); outline-offset: 2px; }

.acct-toggle { display: flex; gap: 8px; margin-top: 4px; }
.acct-toggle button {
  flex: 1; padding: 8px; border-radius: 9px; border: 1px solid var(--a-line);
  background: transparent; color: var(--a-ink2); font-size: 12.5px; cursor: pointer;
}
.acct-toggle button.is-active { color: var(--a-ink); border-color: var(--a-accent); }

.acct-x {
  position: absolute; top: 12px; right: 12px; width: 30px; height: 30px;
  border-radius: 8px; border: 1px solid var(--a-line); background: transparent;
  color: var(--a-ink2); cursor: pointer; font-size: 16px; line-height: 1;
}
.acct-x:hover { color: var(--a-ink); border-color: var(--a-accent); }
.acct-card { position: relative; }

.acct-toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 12px);
  z-index: 100002; max-width: calc(100vw - 32px);
  background: #11160f; border: 1px solid var(--accent, #8fd29a);
  color: #eef2ee; font-family: "Geist", system-ui, sans-serif; font-size: 13.5px;
  padding: 11px 16px; border-radius: 11px; box-shadow: 0 18px 50px -22px rgba(0,0,0,0.95);
  opacity: 0; visibility: hidden; transition: opacity 0.24s ease, transform 0.24s ease;
}
.acct-toast.is-shown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  .acct-btn, .acct-scrim, .acct-card, .acct-toast { transition: none; }
}
