[data-bridge-id-account] {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  vertical-align: middle;
}

[data-bridge-id-account] .bvid-trigger, .bvid-panel {
  font-family: inherit;
  font-style: normal;
  letter-spacing: normal;
  text-transform: none;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

[data-bridge-id-account] .bvid-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  max-width: 160px;
  padding: 3px 13px 3px 4px;
  margin: 0;
  border: 1px solid #9aa9a3;
  border-radius: 99px;
  background: #fff;
  color: #14291e;
  font-family: inherit;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: none;
  cursor: pointer;
  appearance: none;
}

[data-bridge-id-account] .bvid-trigger:hover { background: #eef8f2; color: #0d4426; }
.bvid-trigger-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bvid-face {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #edf6f0;
  color: #096237;
  font: 650 17px/1 system-ui, sans-serif;
}
.bvid-face > .bvid-icon { width: 23px; height: auto; max-width: none; display: block; }
.bvid-face > .bvid-photo { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.bvid-signed .bvid-face::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #007f3d;
  box-sizing: content-box;
}

.bvid-panel {
  --bvid-paper: #fff;
  --bvid-ink: #16271e;
  --bvid-muted: #53665a;
  --bvid-surface: #f0f5f1;
  --bvid-line: #cbd8cf;
  --bvid-cta: #087942;
  --bvid-cta-hover: #065f34;
  --bvid-cta-ink: #fff;
  --bvid-light-logo: block;
  --bvid-dark-logo: none;
  position: fixed;
  z-index: 2147483000;
  left: 8px;
  top: 8px;
  width: min(340px, calc(100vw - 16px));
  max-height: calc(100dvh - 16px);
  overflow: auto;
  overscroll-behavior: contain;
  text-align: left;
  color: var(--bvid-ink);
  background: var(--bvid-paper);
  border: 1px solid var(--bvid-line);
  border-radius: 18px;
  padding: 16px;
  margin: 0;
  box-shadow: 0 16px 68px #001c1333, 0 3px 12px #001c131a;
}
.bvid-panel *, .bvid-panel *::before, .bvid-panel *::after { box-sizing: border-box; }
.bvid-bar { display: flex; align-items: center; }
.bvid-bar { justify-content: space-between; gap: 12px; }
.bvid-wordmark { display: inline-flex; align-items: center; }
.bvid-wordmark img { width: 117px; height: auto; margin: 0; }
.bvid-wordmark .bvid-logo-light { display: var(--bvid-light-logo); }
.bvid-wordmark .bvid-logo-dark { display: var(--bvid-dark-logo); }
.bvid-panel .bvid-close {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  margin: -5px -5px -5px 0;
  cursor: pointer;
  border: 0;
  box-shadow: none;
  background: var(--bvid-surface);
  color: var(--bvid-muted);
  border-radius: 50%;
}
.bvid-close::before, .bvid-close::after {
  content: '';
  display: block;
  position: absolute;
  width: 14px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transform: rotate(45deg);
}
.bvid-close::after { transform: rotate(-45deg); }
.bvid-panel .bvid-title {
  margin: 12px 0 7px;
  padding: 0;
  color: var(--bvid-ink);
  font-family: inherit;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -.035em;
  text-transform: none;
  overflow-wrap: anywhere;
}
.bvid-panel .bvid-copy, .bvid-panel .bvid-error {
  margin: 0;
  font: inherit;
  font-size: 15px;
  line-height: 1.45;
  color: var(--bvid-muted);
}
.bvid-panel .bvid-error { color: var(--bvid-ink); }
.bvid-accounts { display: grid; margin-top: 10px; }
.bvid-account-row { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--bvid-line); }
.bvid-panel .bvid-account-choice, .bvid-panel .bvid-account-exit {
  display: flex; align-items: center; min-height: 44px; border: 0; border-radius: 10px;
  margin: 0; background: transparent; color: var(--bvid-ink); box-shadow: none;
  font: inherit; text-transform: none; letter-spacing: normal; cursor: pointer;
}
.bvid-panel .bvid-account-choice { flex: 1 1 auto; min-width: 0; gap: 10px; padding: 8px 5px; text-align: left; }
.bvid-panel .bvid-account-exit { flex: 0 0 44px; justify-content: center; padding: 0; color: var(--bvid-muted); }
.bvid-panel .bvid-account-choice:hover, .bvid-panel .bvid-account-exit:hover { background: var(--bvid-surface); color: var(--bvid-ink); }
.bvid-account-labels { display: grid; gap: 2px; min-width: 0; }
.bvid-account-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 650; }
.bvid-account-current { color: var(--bvid-muted); font-size: 12px; line-height: 1.3; }
.bvid-actions { display: grid; gap: 7px; margin: 14px 0 0; }
.bvid-panel .bvid-primary, .bvid-panel .bvid-secondary, .bvid-panel .bvid-skip {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 42px;
  margin: 0;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  box-shadow: none;
  cursor: pointer;
  appearance: none;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  letter-spacing: normal;
  font-family: inherit;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.3;
}
.bvid-panel .bvid-primary { background: var(--bvid-cta); color: var(--bvid-cta-ink); }
.bvid-panel .bvid-primary:hover { background: var(--bvid-cta-hover); }
.bvid-panel .bvid-secondary { border-color: var(--bvid-line); background: var(--bvid-paper); color: var(--bvid-ink); }
.bvid-panel .bvid-secondary:hover { background: var(--bvid-surface); }
.bvid-panel .bvid-skip { font-size: 14px; font-weight: 550; background: transparent; color: var(--bvid-muted); }
.bvid-panel .bvid-skip:hover { color: var(--bvid-ink); text-decoration: underline; }
.bvid-panel :focus-visible, [data-bridge-id-account] .bvid-trigger:focus-visible { outline: 3px solid #3098f4; outline-offset: 2px; }
.bvid-panel button:disabled { cursor: wait; opacity: .7; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .bvid-panel {
    --bvid-paper: #16221c;
    --bvid-ink: #f3f8f5;
    --bvid-muted: #bdcfc3;
    --bvid-surface: #26372e;
    --bvid-line: #41564a;
    --bvid-cta: #65dc98;
    --bvid-cta-hover: #91e8b6;
    --bvid-cta-ink: #0c2a18;
    --bvid-light-logo: none;
    --bvid-dark-logo: block;
  }
}
[data-theme="dark"] .bvid-panel {
  --bvid-paper: #16221c;
  --bvid-ink: #f3f8f5;
  --bvid-muted: #bdcfc3;
  --bvid-surface: #26372e;
  --bvid-line: #41564a;
  --bvid-cta: #65dc98;
  --bvid-cta-hover: #91e8b6;
  --bvid-cta-ink: #0c2a18;
  --bvid-light-logo: none;
  --bvid-dark-logo: block;
}
[data-bridge-id-compact] .bvid-trigger { padding: 3px; width: 42px; height: 42px; justify-content: center; }
[data-bridge-id-compact] .bvid-trigger-label { display: none; }

@media (max-width: 660px) {
  [data-bridge-id-account] .bvid-trigger { padding: 3px; width: 42px; height: 42px; justify-content: center; }
  .bvid-trigger-label { display: none; }
  .bvid-panel { padding: 14px; }
}

[data-bridge-id-account] .bvid-trigger {
  --account-fill: var(--surface-strong);
  --account-ink: var(--text-inverse);
  background: var(--account-fill);
  color: var(--account-ink);
  border-color: var(--line-strong);
}

[data-bridge-id-account] .bvid-signed {
  --account-fill: var(--surface);
  --account-ink: var(--text);
}

[data-bridge-id-account] .bvid-trigger:hover {
  background: var(--account-fill);
  background: color-mix(in srgb, var(--account-fill) 92%, var(--account-ink));
  color: var(--account-ink);
}

[data-bridge-id-account] .bvid-face {
  background: var(--account-fill);
  background: color-mix(in srgb, var(--account-fill) 92%, #009949);
  color: var(--account-ink);
}

[data-bridge-id-account] .bvid-signed .bvid-face::after {
  border-color: var(--account-fill);
}
