/* Account controls share one compact surface across marketing and workspace pages. */
body.weeby-theme .weeby-profile-dropdown { position: relative; flex: none; min-width: 0; }
body.weeby-theme .weeby-profile-dropdown .account-button { display: inline-flex; align-items: center; gap: 8px; max-width: 200px; min-height: 40px; padding: 4px 9px 4px 4px; border: 1px solid transparent; border-radius: 24px; color: var(--ws-ink,var(--ink)); background: transparent; font: inherit; font-size: 13px; text-align: start; cursor: pointer; transition: background-color .16s ease,border-color .16s ease; }
body.weeby-theme .weeby-profile-dropdown .account-button:hover,
body.weeby-theme .weeby-profile-dropdown .account-button[aria-expanded="true"] { color: var(--ws-on-soft,var(--ink)); background: var(--ws-soft,var(--soft)); border-color: var(--ws-line,var(--line)); }
body.weeby-theme .weeby-profile-dropdown .avatar { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; color: var(--ws-link-on-soft,var(--action)); background: var(--ws-soft,var(--soft)); }
body.weeby-theme .weeby-account-trigger-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.weeby-theme .weeby-account-icon { width: 18px; height: 18px; flex: none; }
body.weeby-theme .weeby-profile-menu.weeby-popup { position: absolute; top: calc(100% + 12px); inset-inline-start: auto; inset-inline-end: 0; width: 344px; max-width: calc(100vw - 32px); max-height: min(78vh,720px); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; margin: 0; padding: 0; border: 1px solid var(--ws-line,var(--line)); border-radius: 16px; color: var(--ws-ink,var(--ink)); background: var(--ws-paper,var(--paper)); text-align: start; box-shadow: 0 18px 48px color-mix(in srgb,var(--ws-navy,var(--navy)) 13%,transparent); z-index: 1120; }
body.weeby-theme .weeby-profile-menu[hidden] { display: none !important; }
body.weeby-theme .weeby-profile-menu:not([hidden]) { display: block; animation: weeby-account-enter .14s ease-out; }
body.weeby-theme .weeby-profile-heading { display: flex; align-items: center; gap: 12px; padding: 20px; border-bottom: 1px solid var(--ws-line,var(--line)); }
body.weeby-theme .weeby-profile-avatar { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 1px solid var(--ws-line,var(--line)); border-radius: 50%; background: var(--ws-soft,var(--soft)); color: var(--ws-link-on-soft,var(--action)); }
body.weeby-theme .weeby-profile-heading > div { min-width: 0; }
body.weeby-theme .weeby-profile-heading strong { display: block; color: var(--ws-ink,var(--ink)); font-size: 14px; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; }
body.weeby-theme .weeby-profile-heading > div > span { display: block; margin-top: 3px; color: var(--ws-muted,var(--muted)); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
body.weeby-theme .weeby-profile-email { unicode-bidi: plaintext; text-align: start; }
body.weeby-theme .weeby-profile-section { padding: 14px 10px 8px; }
body.weeby-theme .weeby-profile-section > p { margin: 0 10px 7px; color: var(--ws-muted,var(--muted)); font-size: 11px; line-height: 1.5; font-weight: 550; }
body.weeby-theme .weeby-profile-section > a,
body.weeby-theme .weeby-profile-footer > a,
body.weeby-theme .weeby-profile-more > button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ws-ink,var(--ink)); font: inherit; font-size: 13px; line-height: 1.5; text-align: start; text-decoration: none; cursor: pointer; transition: background-color .16s ease,color .16s ease; }
body.weeby-theme .weeby-profile-section > a:is(:hover,:focus-visible),
body.weeby-theme .weeby-profile-footer > a:is(:hover,:focus-visible),
body.weeby-theme .weeby-profile-more > button:is(:hover,:focus-visible) { background: var(--ws-soft,var(--soft)); color: var(--ws-link-on-soft,var(--action)); }
body.weeby-theme .weeby-profile-link-icon { display: grid; place-items: center; width: 28px; height: 28px; flex: none; color: var(--ws-link-on-paper,var(--action)); }
body.weeby-theme .weeby-profile-chevron { margin-inline-start: auto; color: var(--ws-muted,var(--muted)); width: 14px; height: 14px; }
body.weeby-theme .weeby-profile-quick { padding-top: 12px; border-top: 1px solid var(--ws-line,var(--line)); }
body.weeby-theme .weeby-profile-quick > div { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; }
body.weeby-theme .weeby-profile-quick a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-height: 66px; padding: 10px 4px; border: 1px solid transparent; border-radius: 8px; color: var(--ws-link-on-paper,var(--action)); font-size: 11px; line-height: 1.5; text-align: center; text-decoration: none; }
body.weeby-theme .weeby-profile-quick a:is(:hover,:focus-visible) { color: var(--ws-link-on-soft,var(--action)); border-color: var(--ws-line,var(--line)); background: var(--ws-soft,var(--soft)); }
body.weeby-theme .weeby-profile-more { margin: 0 10px 10px; }
body.weeby-theme .weeby-profile-more > button { border: 1px solid var(--ws-line,var(--line)); }
body.weeby-theme .weeby-profile-footer { padding: 8px 10px; border-top: 1px solid var(--ws-line,var(--line)); }
/* Native dialog is a separate navigation destination, not a nested fly-out. */
body.weeby-theme .weeby-navigation-dialog { position: fixed; inset: 0; width: min(760px,calc(100% - 48px)); max-width: none; max-height: min(82dvh,850px); margin: auto; padding: 0; border: 1px solid var(--ws-line,var(--line)); border-radius: 20px; color: var(--ws-ink,var(--ink)); background: var(--ws-paper,var(--paper)); box-shadow: 0 24px 80px color-mix(in srgb,var(--ws-navy,var(--navy)) 20%,transparent); overflow: hidden; text-align: start; z-index: 3000; }
body.weeby-theme .weeby-navigation-dialog:not([open]) { display: none !important; }
body.weeby-theme .weeby-navigation-dialog[open] { display: flex; flex-direction: column; animation: weeby-account-enter .16s ease-out; }
body.weeby-theme .weeby-navigation-dialog::backdrop { background: color-mix(in srgb,var(--ws-navy,var(--navy)) 38%,transparent); backdrop-filter: blur(3px); }
body.weeby-theme .weeby-navigation-dialog[aria-modal="true"] { box-shadow: 0 0 0 100vmax color-mix(in srgb,var(--ws-navy,var(--navy)) 38%,transparent),0 24px 80px color-mix(in srgb,var(--ws-navy,var(--navy)) 20%,transparent); }
body.weeby-theme .weeby-navigation-heading { display: flex; align-items: center; gap: 14px; flex: none; padding: 26px 28px; border-bottom: 1px solid var(--ws-line,var(--line)); }
body.weeby-theme .weeby-navigation-heading > div { min-width: 0; }
body.weeby-theme .weeby-navigation-symbol { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--ws-soft,var(--soft)); color: var(--ws-link-on-soft,var(--action)); }
body.weeby-theme .weeby-navigation-heading h2 { margin: 0; color: var(--ws-ink,var(--ink)); font-size: 21px; line-height: 1.4; font-weight: 650; letter-spacing: -.02em; }
/* Initial modal focus announces the static title without decorating it as a control. */
body.weeby-theme #weeby-navigation-title[tabindex="-1"]:focus { outline: none !important; box-shadow: none !important; }
body.weeby-theme .weeby-navigation-heading p { margin: 5px 0 0; color: var(--ws-muted,var(--muted)); font-size: 13px; line-height: 1.6; }
body.weeby-theme .weeby-navigation-close { display: grid; place-items: center; width: 36px; height: 36px; flex: none; margin-inline-start: auto; border: 1px solid var(--ws-line,var(--line)); border-radius: 50%; background: var(--ws-paper,var(--paper)); color: var(--ws-muted,var(--muted)); cursor: pointer; }
body.weeby-theme .weeby-navigation-close:is(:hover,:focus-visible) { color: var(--ws-link-on-soft,var(--action)); background: var(--ws-soft,var(--soft)); }
body.weeby-theme .weeby-navigation-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 26px 28px; padding: 24px 28px 28px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
body.weeby-theme .weeby-navigation-group { min-width: 0; margin: 0; padding: 0; }
body.weeby-theme .weeby-navigation-group h3 { margin: 0 10px 9px; color: var(--ws-muted,var(--muted)); font-size: 11px; font-weight: 600; line-height: 1.5; letter-spacing: .03em; }
body.weeby-theme .weeby-navigation-group ul { margin: 0; padding: 0; list-style: none; }
body.weeby-theme .weeby-navigation-group li { margin: 0; padding: 0; }
body.weeby-theme .weeby-navigation-group a { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 9px 10px; border-radius: 8px; color: var(--ws-ink,var(--ink)); text-decoration: none; font-size: 13px; line-height: 1.5; transition: color .16s ease,background-color .16s ease; }
body.weeby-theme .weeby-navigation-group a:is(:hover,:focus-visible) { color: var(--ws-link-on-soft,var(--action)); background: var(--ws-soft,var(--soft)); }
body.weeby-theme .weeby-navigation-group a > span:first-child { min-width: 0; flex: 1; overflow-wrap: anywhere; }
body.weeby-theme .weeby-navigation-group small { display: block; margin-top: 2px; color: var(--ws-muted,var(--muted)); font-size: 11px; }
body.weeby-theme .weeby-navigation-group a > i,
body.weeby-theme .weeby-navigation-group a > svg { width: 14px; height: 14px; margin-inline-start: auto; color: var(--ws-link-on-paper,var(--action)); }
body.weeby-theme .weeby-navigation-group .badge { flex: none; background: var(--ws-soft,var(--soft)); color: var(--ws-link-on-soft,var(--action)); }
/* Descendants use the foreground paired with the surface of the active row. */
body.weeby-theme .weeby-profile-section > a:is(:hover,:focus-visible) .weeby-profile-link-icon,
body.weeby-theme .weeby-navigation-group a:is(:hover,:focus-visible) > i,
body.weeby-theme .weeby-navigation-group a:is(:hover,:focus-visible) > svg { color: var(--ws-link-on-soft,var(--action)); }
body.weeby-theme .weeby-profile-section > a:is(:hover,:focus-visible) .weeby-profile-chevron,
body.weeby-theme .weeby-profile-more > button:is(:hover,:focus-visible) .weeby-profile-chevron,
body.weeby-theme .weeby-navigation-group a:is(:hover,:focus-visible) small { color: var(--ws-muted-on-soft,var(--muted)); }
html[dir="rtl"] body.weeby-theme .weeby-profile-chevron[data-lucide="chevron-right"],
html[dir="rtl"] body.weeby-theme .weeby-profile-chevron.lucide-chevron-right { transform: rotate(180deg); }
@keyframes weeby-account-enter { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width:767px) {
  html[dir] body.weeby-theme .weeby-profile-menu.weeby-popup { position: fixed; top: 74px; inset-inline: 16px; left: 16px; right: 16px; width: auto; max-width: none; max-height: calc(100dvh - 96px); }
  body.weeby-theme .weeby-public-account .account-button { gap: 0; padding: 0; width: 36px; height: 36px; min-height: 36px; }
  body.weeby-theme .weeby-public-account .weeby-account-trigger-label,
  body.weeby-theme .weeby-public-account .account-button > .weeby-account-icon { display: none; }
  body.weeby-theme .weeby-public-account .account-button .avatar { width: 34px; height: 34px; }
  body.weeby-theme .weeby-navigation-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 32px); border-radius: 16px; }
  body.weeby-theme .weeby-navigation-heading { gap: 10px; padding: 20px; }
  body.weeby-theme .weeby-navigation-heading h2 { font-size: 18px; }
  body.weeby-theme .weeby-navigation-heading p { font-size: 12px; }
  body.weeby-theme .weeby-navigation-grid { gap: 24px; padding: 20px; }
}
@media (max-width:479px) {
  body.weeby-theme .weeby-navigation-symbol { display: none; }
  body.weeby-theme .weeby-navigation-grid { grid-template-columns: minmax(0,1fr); }
}
@media (prefers-reduced-motion:reduce) {
  body.weeby-theme .weeby-profile-menu:not([hidden]),body.weeby-theme .weeby-navigation-dialog[open] { animation: none; }
  body.weeby-theme .weeby-profile-dropdown .account-button,body.weeby-theme .weeby-profile-menu a,body.weeby-theme .weeby-navigation-group a { transition: none; }
}
