.auth-controls { display: flex; flex: 0 0 auto; align-items: center; justify-content: flex-end; gap: 8px; min-height: 40px; }
.auth-plan-link, .auth-link-button, .access-banner a, .access-banner button, .subscribe-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 14px;
  border: 1px solid rgba(118, 213, 170, .36); border-radius: 999px; color: #dff8ed;
  background: rgba(118, 213, 170, .08); font: inherit; font-size: 12px; font-weight: 750;
  text-decoration: none; cursor: pointer;
}
.auth-plan-link {
  min-height: 40px; padding-inline: 16px; border-color: rgba(118, 213, 170, .7); border-radius: 11px;
  color: #06120d; background: linear-gradient(135deg, #86e3bb, #55cf9a); box-shadow: 0 8px 24px rgba(57, 194, 139, .13);
  white-space: nowrap;
}
.auth-plan-link:hover { color: #06120d; border-color: #a8efd0; background: linear-gradient(135deg, #9cebc9, #67d8a8); transform: translateY(-1px); }
.auth-link-button:hover, .access-banner a:hover, .access-banner button:hover, .subscribe-button:hover { border-color: rgba(118, 213, 170, .8); background: rgba(118, 213, 170, .14); }
.auth-link-button { padding-inline: 10px; border-color: transparent; color: #a9beb5; background: transparent; }
.auth-account-menu { position: relative; flex: 0 0 auto; }
.auth-account-menu summary {
  min-height: 40px; display: flex; align-items: center; gap: 8px; padding: 3px 10px 3px 4px;
  border: 1px solid rgba(118, 213, 170, .24); border-radius: 999px; background: rgba(10, 27, 21, .72);
  list-style: none; cursor: pointer; transition: border-color .16s ease, background .16s ease;
}
.auth-account-menu summary::-webkit-details-marker { display: none; }
.auth-account-menu summary::marker { content: ''; }
.auth-account-menu summary:hover, .auth-account-menu summary:focus-visible, .auth-account-menu[open] summary {
  border-color: rgba(118, 213, 170, .62); background: rgba(118, 213, 170, .1); outline: none;
}
.auth-account-menu summary img, .auth-avatar-fallback { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; }
.auth-account-menu summary img { object-fit: cover; }
.auth-avatar-fallback { display: grid; place-items: center; color: #07110f; background: #76d5aa; font-size: 13px; font-weight: 900; }
.auth-account-summary-copy, .auth-account-details { display: grid; min-width: 0; }
.auth-account-summary-copy strong { max-width: 138px; overflow: hidden; color: #edf5f1; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.auth-account-summary-copy small, .auth-account-details small { color: #76d5aa; font-size: 10px; font-weight: 800; }
.auth-account-chevron { width: 7px; height: 7px; margin: 0 2px 3px 1px; border-right: 1.5px solid #90a59d; border-bottom: 1.5px solid #90a59d; transform: rotate(45deg); }
.auth-account-menu[open] .auth-account-chevron { margin-top: 4px; transform: rotate(225deg); }
.auth-account-popover {
  position: absolute; z-index: 30; top: calc(100% + 8px); right: 0; width: min(310px, calc(100vw - 24px)); padding: 10px;
  border: 1px solid rgba(210, 245, 229, .14); border-radius: 14px; background: #0b1d17; box-shadow: 0 18px 44px rgba(0, 0, 0, .42);
}
.auth-account-details { gap: 3px; padding: 3px 5px 10px; border-bottom: 1px solid rgba(210, 245, 229, .1); }
.auth-account-details strong { overflow: hidden; color: #edf5f1; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.auth-menu-action {
  width: 100%; min-height: 38px; display: flex; align-items: center; margin-top: 5px; padding: 0 10px;
  border: 0; border-radius: 9px; color: #c1d2ca; background: transparent; font: inherit; font-size: 12px; font-weight: 750; text-align: left; cursor: pointer;
}
.auth-menu-action:hover, .auth-menu-action:focus-visible { color: #eff8f3; background: rgba(118, 213, 170, .1); outline: none; }
.auth-menu-primary { color: #06120d; background: #76d5aa; }
.auth-menu-primary:hover, .auth-menu-primary:focus-visible { color: #06120d; background: #93e4bf; }
.auth-menu-secondary { color: #93aa9f; font-weight: 650; }
.auth-subscription-card { margin: 9px 0 7px; padding: 11px; border: 1px solid rgba(118, 213, 170, .18); border-radius: 11px; background: rgba(118, 213, 170, .055); }
.auth-subscription-card > strong { display: block; margin-bottom: 8px; color: #e9f5ef; font-size: 12px; }
.auth-subscription-card dl { display: grid; gap: 6px; margin: 0; }
.auth-subscription-card dl div { display: flex; justify-content: space-between; gap: 12px; }
.auth-subscription-card dt { color: #90a79c; font-size: 10px; }
.auth-subscription-card dd { margin: 0; color: #dcebe4; font-size: 10px; font-weight: 750; text-align: right; }
.auth-subscription-card p { margin: 9px 0 0; color: #82998e; font-size: 9px; line-height: 1.45; }
.google-signin-slot {
  width: 219px; height: 40px; min-width: 219px; overflow: hidden; box-sizing: border-box;
  border: 0; border-radius: 8px; background: transparent;
}
.google-signin-slot > div, .google-signin-slot iframe {
  display: block !important; width: 219px !important; max-width: 219px !important; height: 40px !important; max-height: 40px !important;
  border: 0 !important; box-shadow: none !important;
}
.google-signin-slot.is-fallback { display: grid; place-items: center; border: 1px solid rgba(118, 213, 170, .3); color: #dff8ed; font-size: 12px; font-weight: 800; }
.access-banner { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; padding: 12px 16px; border: 1px solid rgba(118, 213, 170, .22); border-radius: 14px; background: rgba(118, 213, 170, .055); }
.access-banner p { flex: 1; margin: 0; color: #b9cbc3; font-size: 13px; line-height: 1.5; }
.access-badge { flex: 0 0 auto; padding: 5px 9px; border-radius: 999px; color: #06120d; background: #76d5aa; font-size: 10px; font-weight: 850; letter-spacing: .04em; }
.access-banner .google-signin-inline { flex: 0 0 219px; margin-left: auto; }
.access-full { border-color: rgba(118, 213, 170, .42); }
.subscribe-button { width: 100%; min-height: 46px; margin-top: 22px; border-radius: 12px; color: #06120d; background: #76d5aa; font-size: 14px; }
.subscribe-button:hover { color: #06120d; background: #93e4bf; }
.subscribe-button:disabled { cursor: default; opacity: .72; }
.billing-status { min-height: 24px; margin: 16px 0 0; color: #9fb4ab; font-size: 13px; text-align: center; }
.billing-status.is-error { color: #ffb4ae; }
@media (max-width: 820px) {
  .auth-controls { width: auto; justify-content: flex-end; flex-wrap: nowrap; }
  .auth-account-menu { position: relative; }
  .auth-plan-link { display: none; }
  .google-signin-slot { width: 40px; height: 40px; min-width: 40px; overflow: hidden; border-radius: 50%; }
  .google-signin-slot > div { width: 40px !important; max-width: 40px !important; }
  .google-signin-slot iframe { width: 72px !important; max-width: none !important; }
  .google-signin-slot.google-signin-inline { width: 219px; height: 40px; min-width: 219px; overflow: hidden; border-radius: 8px; }
  .google-signin-slot.google-signin-inline > div, .google-signin-slot.google-signin-inline iframe { width: 219px !important; max-width: 219px !important; height: 40px !important; max-height: 40px !important; }
  .google-signin-slot.is-fallback { border-radius: 50%; font-size: 16px; }
  .auth-account-menu summary { width: 42px; min-width: 42px; padding: 3px; gap: 0; }
  .auth-account-menu summary img, .auth-avatar-fallback { width: 34px; height: 34px; flex-basis: 34px; }
  .auth-account-summary-copy, .auth-account-chevron { display: none; }
  .access-banner { align-items: flex-start; flex-wrap: wrap; }
  .access-banner p { flex-basis: calc(100% - 70px); }
}
@media (max-width: 640px) {
  .auth-controls { width: 36px; min-width: 36px; max-width: 36px; min-height: 36px; }
  .google-signin-slot { width: 36px; height: 36px; min-width: 36px; display: grid; place-items: center; overflow: hidden; }
  .google-signin-slot > div { width: 32px !important; max-width: 32px !important; height: 32px !important; max-height: 32px !important; }
  .google-signin-slot iframe { width: 64px !important; max-width: none !important; height: 44px !important; max-height: none !important; }
  .google-signin-slot.google-signin-inline { width: 219px; height: 40px; min-width: 219px; max-width: 100%; }
  .google-signin-slot.google-signin-inline > div, .google-signin-slot.google-signin-inline iframe { width: 219px !important; max-width: 219px !important; height: 40px !important; max-height: 40px !important; }
  .google-signin-slot.is-fallback { border: 0; font-size: 14px; }
  .auth-account-menu summary { width: 36px; min-width: 36px; min-height: 36px; padding: 2px; border: 0; background: transparent; }
  .auth-account-menu summary img, .auth-avatar-fallback { width: 32px; height: 32px; flex-basis: 32px; }
  .auth-account-menu summary:hover, .auth-account-menu summary:focus-visible, .auth-account-menu[open] summary { background: rgba(118, 213, 170, .1); }
  html[data-theme="light"] .auth-account-menu summary,
  html[data-theme="light"] .auth-account-menu summary:hover,
  html[data-theme="light"] .auth-account-menu summary:focus-visible,
  html[data-theme="light"] .auth-account-menu[open] summary { background: transparent; }
}
@media (max-width: 520px) {
  .auth-link-button { min-height: 32px; }
  .access-banner { padding: 11px 12px; }
}
html[data-theme="light"] .auth-plan-link { color: #ffffff; border-color: #08784d; background: linear-gradient(135deg, #11865a, #08734a); box-shadow: 0 8px 24px rgba(8, 120, 77, .15); }
html[data-theme="light"] .auth-plan-link:hover { color: #ffffff; border-color: #075e3e; background: linear-gradient(135deg, #0c754e, #065f3d); }
html[data-theme="light"] .auth-link-button { color: #49665a; }
html[data-theme="light"] .auth-account-menu summary { border-color: rgba(8, 120, 77, .22); background: rgba(255, 255, 255, .88); }
html[data-theme="light"] .auth-account-menu summary:hover, html[data-theme="light"] .auth-account-menu summary:focus-visible, html[data-theme="light"] .auth-account-menu[open] summary { border-color: rgba(8, 120, 77, .52); background: #ffffff; }
html[data-theme="light"] .auth-account-summary-copy strong, html[data-theme="light"] .auth-account-details strong { color: #10271e; }
html[data-theme="light"] .auth-account-summary-copy small, html[data-theme="light"] .auth-account-details small { color: #08784d; }
html[data-theme="light"] .auth-account-popover { border-color: rgba(8, 120, 77, .18); background: #ffffff; box-shadow: 0 18px 42px rgba(32, 74, 57, .18); }
html[data-theme="light"] .auth-account-details { border-color: rgba(18, 74, 53, .1); }
html[data-theme="light"] .auth-menu-action { color: #49665a; }
html[data-theme="light"] .auth-menu-action:hover, html[data-theme="light"] .auth-menu-action:focus-visible { color: #10271e; background: rgba(8, 120, 77, .08); }
html[data-theme="light"] .auth-menu-primary { color: #ffffff; background: #08784d; }
html[data-theme="light"] .auth-menu-primary:hover, html[data-theme="light"] .auth-menu-primary:focus-visible { color: #ffffff; background: #065f3d; }
html[data-theme="light"] .auth-subscription-card { border-color: rgba(8, 120, 77, .16); background: rgba(8, 120, 77, .045); }
html[data-theme="light"] .auth-subscription-card > strong, html[data-theme="light"] .auth-subscription-card dd { color: #173a2b; }
html[data-theme="light"] .auth-subscription-card dt, html[data-theme="light"] .auth-subscription-card p { color: #587267; }
html[data-theme="light"] .google-signin-slot { background: transparent; }
html[data-theme="light"] .access-banner { border-color: rgba(8, 120, 77, .22); background: rgba(8, 120, 77, .055); }
html[data-theme="light"] .access-banner p { color: #405b4f; }
html[data-theme="light"] .access-badge { color: #ffffff; background: #08784d; }
html[data-theme="light"] .subscribe-button { color: #ffffff; border-color: #08784d; background: #08784d; }
html[data-theme="light"] .subscribe-button:hover { color: #ffffff; background: #065f3d; }
@media (max-width: 640px) {
  html[data-theme="light"] .auth-account-menu summary,
  html[data-theme="light"] .auth-account-menu summary:hover,
  html[data-theme="light"] .auth-account-menu summary:focus-visible,
  html[data-theme="light"] .auth-account-menu[open] summary { background: transparent; }
}
