/* Signed-in profile appearance and navigation. */
#authDialog .profile-toolbar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 12px 64px 12px 22px;
  min-height: 64px;
  background: #17171b;
  color: #f8f4f6 !important;
  border-bottom: 1px solid #ffffff20;
}
html body #authDialog.account-workspace-dialog .profile-toolbar .auth-close {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  margin: 0 !important;
  z-index: 5 !important;
}
#authDialog .profile-toolbar-links,
#authDialog .profile-appearance {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
#authDialog .profile-toolbar button,
#authDialog .profile-toolbar select {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 8px;
  font-size: 14px;
  min-height: 36px;
  padding: 6px 10px;
  cursor: pointer;
}
#authDialog .profile-toolbar button:hover,
#authDialog .profile-toolbar select {
  background: #ffffff16;
  border-color: #ffffff24;
}
#authDialog .profile-toolbar option { background: #27202a; }
#authDialog .profile-appearance label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
#authDialog[data-profile-view="classic"] .profile-appearance label { display: none; }
#authDialog :is(.workspace-welcome,.account-recent-projects,.account-recent-assets,.account-profile-settings) {
  scroll-margin-top: 126px;
}
#authDialog .profile-handle-field {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
#authDialog .profile-handle-field input {
  max-width: 320px;
  min-height: 42px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: transparent;
  padding: 8px 12px;
}

html body #authDialog.account-workspace-dialog[data-profile-view="glass"][open] {
  --profile-border: #f9d9e32e;
  --profile-panel: #fff1f50b;
  --profile-ink: #fff7fa;
  --profile-muted: #e1cbd5;
  --profile-accent: #ff8ab7;
  background: #170f18c9 !important;
  border: 1px solid var(--profile-border) !important;
  color-scheme: dark !important;
  color: var(--profile-ink) !important;
  box-shadow: 0 20px 100px #09050bb0 !important;
  isolation: isolate;
}
html body #authDialog.account-workspace-dialog[data-profile-view="glass"][open]::backdrop {
  background: #160b1480 !important;
  backdrop-filter: blur(5px) !important;
  -webkit-backdrop-filter: blur(5px) !important;
}
html body #authDialog.account-workspace-dialog[data-profile-view="glass"][open] .auth-dialog-inner {
  background: transparent !important;
  position: relative !important;
  isolation: isolate;
}
#authDialog[data-profile-view="glass"] .auth-dialog-inner::before,
#authDialog[data-profile-view="glass"] .auth-dialog-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  height: min(100%, 960px);
  z-index: -1;
  pointer-events: none;
  opacity: 0;
}
#authDialog[data-profile-view="glass"] .auth-dialog-inner::before {
  background:
    radial-gradient(ellipse at 100% 3%, #d958855c, transparent 55%),
    radial-gradient(ellipse at 3% 60%, #a43e6266, transparent 56%),
    radial-gradient(ellipse at 105% -26%, transparent 58%, #ff87b332 59%, transparent 61%);
}
#authDialog[data-profile-view="glass"] .auth-dialog-inner::after {
  background:
    radial-gradient(ellipse at 82% 1%, #8a73df78, transparent 58%),
    radial-gradient(ellipse at 0% 63%, #4e52ad63, transparent 58%);
}
#authDialog[data-profile-view="glass"][data-profile-background="rose"] .auth-dialog-inner::before,
#authDialog[data-profile-view="glass"]:is([data-profile-background="violet"],[data-profile-background="teal"]) .auth-dialog-inner::after { opacity: 1; }
#authDialog[data-profile-view="glass"][data-profile-background="teal"] .auth-dialog-inner::after { filter: hue-rotate(-85deg); }
#authDialog[data-profile-view="glass"][data-profile-background="auto"] .auth-dialog-inner::before {
  opacity: 1;
  animation: acbs-profile-rose 15s linear infinite;
}
#authDialog[data-profile-view="glass"][data-profile-background="auto"] .auth-dialog-inner::after {
  animation: acbs-profile-cool 15s linear infinite;
}
@keyframes acbs-profile-rose {
  0%, 33.333%, 100% { opacity: 1; }
  40%, 93.333% { opacity: 0; }
}
@keyframes acbs-profile-cool {
  0%, 33.333%, 100% { opacity: 0; }
  40%, 66.666% { opacity: 1; filter: hue-rotate(0deg); }
  73.333%, 93.333% { opacity: 1; filter: hue-rotate(-85deg); }
}

html body #authDialog.account-workspace-dialog[data-profile-view="glass"][open] :is(.auth-identity,.auth-content) {
  background: transparent !important;
  border-color: var(--profile-border) !important;
}
html body #authDialog.account-workspace-dialog[data-profile-view="glass"][open] .auth-content.auth-content {
  background: transparent !important;
}
html body #authDialog.account-workspace-dialog[data-profile-view="glass"][open] .profile-toolbar {
  background: #211520eb;
  border-color: var(--profile-border);
}
html body #authDialog.account-workspace-dialog[data-profile-view="glass"][open] :is(.auth-close,.btn,.workspace-link,.workspace-tools button) {
  background: #ffe4ed12 !important;
  color: var(--profile-ink) !important;
  border: 1px solid var(--profile-border) !important;
  font-size: 14px !important;
}
html body #authDialog.account-workspace-dialog[data-profile-view="glass"][open] .auth-close {
  background: #32222e !important;
  font-size: 24px !important;
}
html body #authDialog.account-workspace-dialog[data-profile-view="glass"][open] .workspace-actions .btn {
  min-height: 46px !important;
  border-radius: 12px !important;
}
html body #authDialog.account-workspace-dialog[data-profile-view="glass"][open] .workspace-welcome h1 {
  font-size: clamp(30px,4vw,52px) !important;
  font-weight: 500 !important;
  letter-spacing: -.045em !important;
  margin: 0 0 14px !important;
}
html body #authDialog.account-workspace-dialog[data-profile-view="glass"][open] .workspace-welcome h1 span {
  color: var(--profile-accent) !important;
}
html body #authDialog.account-workspace-dialog[data-profile-view="glass"][open] .workspace-welcome small {
  display: inline-block;
  margin-bottom: 18px;
}
html body #authDialog.account-workspace-dialog[data-profile-view="glass"][open] .workspace-welcome p {
  color: var(--profile-muted) !important;
  font-size: 16px !important;
}
html body #authDialog.account-workspace-dialog[data-profile-view="glass"][open] :is(.profile-meter-card,.profile-budget,.profile-storage,.workspace-asset-card,.workspace-empty,.account-profile-settings,.discover-saved-profile,.avatar-picker label) {
  background: var(--profile-panel) !important;
  border-color: var(--profile-border) !important;
  color: var(--profile-ink) !important;
}
html body #authDialog.account-workspace-dialog[data-profile-view="glass"][open] :is(.workspace-section,.account-stats,.account-stats>div,.account-details,.profile-meter-details,.profile-meter-details>p,.auth-signout) {
  border-color: var(--profile-border) !important;
}
html body #authDialog.account-workspace-dialog[data-profile-view="glass"][open] :is(.workspace-welcome small,.profile-meter-head>small,.profile-budget-heading span,.profile-storage .workspace-section-head>span,.profile-dial-value span,.profile-dial-help,.profile-meter-details>p,.profile-meter-details dt,.profile-budget-footer>span,.account-head small,.account-head p,.workspace-asset-card small,.workspace-empty span,.account-stats small,.account-details span,.account-profile-settings summary,.discover-saved-profile summary,.avatar-picker legend,.avatar-picker span,.workspace-storage small,.auth-danger-note,.auth-storage-note,.auth-signout,#accountFileStatus) {
  color: var(--profile-muted) !important;
}
html body #authDialog.account-workspace-dialog[data-profile-view="glass"][open] .account-large-avatar {
  width: 76px !important;
  height: 76px !important;
  border-color: var(--profile-border) !important;
  background: #251724 !important;
}
html body #authDialog.account-workspace-dialog[data-profile-view="glass"][open] .account-head h2 {
  font-size: 28px !important;
  overflow-wrap: anywhere;
}
html body #authDialog.account-workspace-dialog[data-profile-view="glass"][open] .avatar-picker label:has(input:checked) {
  border-color: var(--profile-accent) !important;
}
html body #authDialog.account-workspace-dialog[data-profile-view="glass"][open] .profile-metric-tabs button {
  color: var(--profile-ink) !important;
  font-size: 14px !important;
}
html body #authDialog.account-workspace-dialog[data-profile-view="glass"][open] .profile-metric-tabs button[aria-pressed="true"] {
  background: #bf55796b !important;
}
html body #authDialog.account-workspace-dialog[data-profile-view="glass"][open] [data-profile-ring] path {
  fill: #fff4f838 !important;
  stroke: transparent !important;
}
html body #authDialog.account-workspace-dialog[data-profile-view="glass"][open] [data-profile-ring] path.filled {
  fill: var(--profile-accent) !important;
  animation: acbs-profile-meter-glow 4s ease-in-out infinite alternate;
}
@keyframes acbs-profile-meter-glow {
  from { filter: drop-shadow(0 0 1px #fa6ba54d); }
  to { filter: drop-shadow(0 0 6px #fa6ba5aa); }
}
html body #authDialog.account-workspace-dialog[data-profile-view="glass"][open] .profile-blocks {
  display: block !important;
  height: 10px !important;
  border-radius: 100px;
  background: #fff4fa29;
  overflow: hidden;
}
#authDialog[data-profile-view="glass"] .profile-blocks i { display: none; }
#authDialog[data-profile-view="glass"] .profile-blocks::before {
  content: "";
  display: block;
  height: 100%;
  width: var(--credits-remaining,0%);
  background: linear-gradient(90deg,#ed639b,#ff9fbb);
  border-radius: inherit;
  transition: width .45s ease;
}
html body #authDialog.account-workspace-dialog[data-profile-view="glass"][open] :is(.profile-budget h3,#accountCreditBalance,.workspace-storage strong) {
  color: var(--profile-ink) !important;
}
html body #authDialog.account-workspace-dialog[data-profile-view="glass"][open] .workspace-progress {
  height: 10px !important;
  border-radius: 100px !important;
  background: #fff4fa29 !important;
}
html body #authDialog.account-workspace-dialog[data-profile-view="glass"][open] .workspace-progress>span {
  border-radius: inherit !important;
  background: var(--profile-accent) !important;
}
@media (max-width: 700px) {
  #authDialog .profile-toolbar { padding-inline-start: 10px; }
  #authDialog .profile-toolbar button,
  #authDialog .profile-toolbar select { padding-inline: 7px; }
  #authDialog .profile-appearance label { gap: 4px; }
}
@media (max-width: 370px) {
  #authDialog[data-profile-view="glass"] .profile-meter-body { grid-template-columns: 1fr !important; }
  #authDialog[data-profile-view="glass"] .profile-dial { max-width: 135px; margin-inline: auto; }
  html body #authDialog.account-workspace-dialog[data-profile-view="glass"][open] .profile-meter-details {
    border-left: 0 !important;
    padding-left: 0 !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  #authDialog[data-profile-view="glass"] .auth-dialog-inner::before,
  #authDialog[data-profile-view="glass"] .auth-dialog-inner::after { animation: none !important; }
  #authDialog[data-profile-view="glass"] .profile-blocks::before { transition: none; }
}
