:root {
  --vd-client-green: #04994c;
  --vd-client-deep: #063e26;
  --vd-client-ink: #111411;
  --vd-client-muted: rgba(17, 20, 17, .68);
}

.vd-client-mount,
.vd-client-menu-root,
.vd-client-account-shell,
.vd-client-login-shell {
  font-family: "Google Sans Flex", "Google Sans", Arial, sans-serif;
  box-sizing: border-box;
}

.vd-client-menu-root *,
.vd-client-account-shell *,
.vd-client-login-shell * { box-sizing: border-box; }

.vd-client-menu-root {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: auto;
  z-index: 5000;
}

.vd-client-trigger {
  min-width: 44px;
  height: 44px;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--vd-client-ink);
  background: linear-gradient(135deg, rgba(255,255,255,.72), rgba(255,255,255,.34));
  border: 1px solid rgba(255,255,255,.88);
  border-radius: 999px;
  box-shadow: inset 1px 1px 2px rgba(255,255,255,.94), inset -1px -1px 7px rgba(0,0,0,.08), 0 7px 18px rgba(17,20,17,.12);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  cursor: pointer;
}

.vd-client-trigger:hover { transform: translateY(-1px); }
.vd-client-trigger img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.vd-client-trigger-label { padding: 0 8px 0 4px; font-size: 12px; font-weight: 650; }
.vd-client-trigger-dot { width: 8px; height: 8px; margin: 0 4px; border-radius: 50%; background: var(--vd-client-green); }

.vd-client-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(328px, calc(100vw - 24px));
  color: #fff;
  background: linear-gradient(145deg, rgba(4,63,36,.91), rgba(2,48,27,.84));
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 26px;
  box-shadow: inset 1px 1px 2px rgba(255,255,255,.18), inset -1px -1px 8px rgba(0,0,0,.16), 0 22px 48px rgba(0,25,12,.28);
  backdrop-filter: blur(25px) saturate(145%);
  -webkit-backdrop-filter: blur(25px) saturate(145%);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-7px) scale(.98);
  transform-origin: top right;
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}

.vd-client-popover.is-open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.vd-client-profile { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; padding: 18px; }
.vd-client-profile img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.85); }
.vd-client-profile strong { display: block; font-size: 16px; line-height: 1.2; font-weight: 600; }
.vd-client-profile span { display: block; margin-top: 4px; font-size: 11px; color: rgba(255,255,255,.73); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vd-client-context { padding: 15px 18px; border-top: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14); }
.vd-client-context b { display: block; font-size: 13px; font-weight: 600; }
.vd-client-context span { display: block; margin-top: 4px; color: rgba(255,255,255,.76); font-size: 11px; line-height: 1.45; }
.vd-client-nav { padding: 7px; }
.vd-client-nav a {
  min-height: 44px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  border-radius: 16px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 550;
}
.vd-client-nav a:hover { background: rgba(255,255,255,.12); }
.vd-client-nav .vd-client-icon { width: 22px; font-size: 17px; text-align: center; opacity: .9; }
.vd-client-nav .vd-client-chevron { margin-left: auto; opacity: .65; }
.vd-client-nav .vd-client-menu-signout { color: rgba(255,255,255,.78); }

.vd-client-login-shell,
.vd-client-account-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto;
  color: var(--vd-client-ink);
}

.vd-client-login-shell { min-height: 560px; display: grid; place-items: center; }
.vd-client-login-card,
.vd-client-glass {
  background: linear-gradient(135deg, rgba(255,255,255,.56), rgba(255,255,255,.22));
  border: 1px solid rgba(255,255,255,.76);
  box-shadow: inset 2px 2px 2px rgba(255,255,255,.85), inset -2px -2px 10px rgba(0,0,0,.07), 0 20px 44px rgba(17,20,17,.13);
  backdrop-filter: blur(20px) saturate(145%);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
}
.vd-client-login-card { width: min(460px, 100%); padding: 38px; border-radius: 32px; text-align: center; }
.vd-client-login-card h1 { margin: 8px 0 10px; font-size: clamp(30px, 5vw, 44px); letter-spacing: -.045em; }
.vd-client-login-card p { margin: 0 auto 24px; max-width: 360px; color: var(--vd-client-muted); line-height: 1.55; }
.vd-client-login-card small { display: block; margin-top: 18px; color: var(--vd-client-muted); }
.vd-client-google-button { display: flex; justify-content: center; min-height: 44px; }
.vd-client-fallback-login { display: inline-flex; min-height: 44px; padding: 0 22px; align-items: center; justify-content: center; color: var(--vd-client-ink); background: rgba(255,255,255,.82); border: 1px solid rgba(17,20,17,.15); border-radius: 999px; text-decoration: none; font-weight: 650; }
.vd-client-eyebrow { color: var(--vd-client-green); font-size: 11px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }

.vd-client-account-shell { padding-bottom: 32px; }
.vd-client-account-head { display: flex; align-items: center; gap: 22px; padding: clamp(24px, 4vw, 42px); border-radius: 32px; }
.vd-client-account-head img { width: 86px; height: 86px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.82); box-shadow: 0 10px 25px rgba(17,20,17,.15); }
.vd-client-account-head h1 { margin: 6px 0 7px; font-size: clamp(30px, 5vw, 50px); letter-spacing: -.05em; line-height: 1; }
.vd-client-account-head p { margin: 0; color: var(--vd-client-muted); }
.vd-client-account-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.vd-client-account-card { position: relative; min-height: 230px; padding: 24px; border-radius: 28px; }
.vd-client-account-card h2 { margin: 15px 0 7px; font-size: 21px; letter-spacing: -.025em; }
.vd-client-account-card p { margin: 0 0 18px; color: var(--vd-client-muted); line-height: 1.5; }
.vd-client-account-card small { color: var(--vd-client-muted); }
.vd-client-account-card a { color: var(--vd-client-deep); font-weight: 700; text-decoration: none; }
.vd-client-card-icon { position: absolute; right: 22px; top: 20px; font-size: 26px; }
.vd-client-account-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 10px; margin-top: 14px; border-radius: 22px; }
.vd-client-account-actions a { min-height: 42px; display: inline-flex; align-items: center; padding: 0 16px; color: var(--vd-client-ink); border-radius: 15px; text-decoration: none; font-weight: 650; }
.vd-client-account-actions a:hover { background: rgba(255,255,255,.55); }
.vd-client-account-actions .vd-client-signout { color: #a12626; }

/* Integração automática com o cabeçalho do painel estático. */
.dh.vd-client-header-ready { display: flex; align-items: center; gap: 18px; }
.dh.vd-client-header-ready > div:first-child { min-width: 0; }

@media (max-width: 720px) {
  .vd-client-trigger-label { display: none; }
  .vd-client-account-head { align-items: flex-start; flex-direction: column; }
  .vd-client-account-grid { grid-template-columns: 1fr; }
  .vd-client-account-card { min-height: 190px; }
}

@media (prefers-reduced-motion: reduce) {
  .vd-client-trigger,
  .vd-client-popover { transition: none; }
}
