#profile-button:not([data-minutes-known="true"]) .profile-card-balance,
#profile-button:not([data-balance-known="true"]) .profile-mini-meter { display: none; }
#profile-button:not([data-minutes-known="true"]) .profile-name { font-size: 13px; }
#profile-dialog {
  position: fixed;
  inset: clamp(90px, 14vh, 124px) auto auto clamp(18px, 3vw, 54px);
  margin: 0;
  width: min(352px, calc(100vw - 32px));
  max-height: calc(100dvh - 150px);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  overscroll-behavior: contain;
  padding: 22px;
  border: 1px solid #ffffff38;
  border-radius: 24px;
  background: rgba(30,32,38,.90);
  box-shadow: 0 12px 40px #06080d52, inset 0 1px 0 #ffffff16;
  color: #f7f7fa;
}
#profile-dialog::-webkit-scrollbar { display: none; }
#profile-dialog > .sg-pane {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}
#profile-dialog.glass-painted { background: rgba(24,24,29,.38); }
#profile-dialog::backdrop { background: rgba(13,13,18,.24); backdrop-filter: blur(2px); }
#profile-dialog .dialog-close {
  top: 13px; right: 13px;
  width: 36px; height: 36px;
  border: 1px solid #ffffff24; border-radius: 50%;
  background: #23242b55; color: inherit;
}
#profile-dialog .dialog-close .icon { width: 15px; height: 15px; }
#profile-dialog .profile-dialog-heading {
  display: flex; align-items: center; gap: 11px;
  margin: 0; padding-right: 32px; min-height: 44px;
}
#profile-dialog .profile-avatar {
  width: 39px; height: 39px; flex: 0 0 39px; border-radius: 50%;
  background: rgba(203,224,240,.1); border: 1px solid #d3e1ed52;
  box-shadow: inset 0 1px 2px #ffffff16; color: #eef1f5;
}
#profile-dialog .profile-avatar .icon { width: 19px; height: 19px; }
#profile-dialog h2 {
  margin: 0; color: inherit; font-size: 21px; font-weight: 520;
  line-height: 1.2; letter-spacing: -.025em; overflow-wrap: anywhere;
}
#profile-dialog h2:focus { outline: none; }
.fitting-auth { margin: 0; }
.fitting-auth [hidden], .profile-details[hidden] { display: none !important; }
.fitting-auth .fitting-email { margin: 3px 0 0; color: #e5e6eb; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.fitting-account, .fitting-auth form {
  border-top: 1px solid #ffffff29; margin: 16px 0 0; padding: 12px 0 0;
}
.profile-details { margin: 0 0 8px; padding-bottom: 9px; border-bottom: 1px solid #ffffff25; }
#profile-dialog .profile-details > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  margin: 0; padding: 6px 0; border: none; border-radius: 0;
  background: none; box-shadow: none; font-size: 14px;
}
.profile-details dt { color: #e2e3e9; }
.profile-details dd { margin: 0; color: #fff; text-align: end; overflow-wrap: anywhere; }
.profile-details strong { font-weight: 600; }
#profile-quota-caption { color: #d8dae0; }
.fitting-auth label { display: grid; gap: 5px; margin: 5px 0 12px; font-size: 13px; color: #ebecf0; }
#profile-dialog .fitting-auth input {
  width: 100%; min-height: 44px; padding: 9px 12px; font: inherit; font-size: 16px;
  border-radius: 12px; border: 1px solid #ffffff42; color: #fff; background: #14141944;
}
#profile-dialog .dialog-primary {
  width: auto; min-height: 40px; padding: 0 22px; margin: 0 0 4px;
  border-radius: 99px; font: inherit; font-size: 14px; font-weight: 600;
}
.fitting-auth-links { display: flex; flex-wrap: wrap; gap: 2px 15px; align-items: center; }
.fitting-auth-links button {
  min-height: 40px; padding: 4px 0; color: #e6eaf0;
  font: inherit; font-size: 13px; text-align: start; background: none;
}
.fitting-auth-links button:hover { color: white; text-decoration: underline; text-underline-offset: 3px; }
.fitting-auth-links [data-account="signout"] { display: inline-flex; align-items: center; gap: 9px; }
.fitting-auth-links [data-account="signout"]::before {
  content: ""; width: 17px; height: 17px; background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' viewBox='0 0 24 24' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 4H5v16h5m4-12 4 4-4 4m-4-4h8'/%3E%3C/svg%3E") center/contain no-repeat;
}
#profile-dialog :is(button,input):focus-visible { outline: 2px solid #c6e4ff; outline-offset: 2px; }
.fitting-auth-status { margin: 0; }
.fitting-auth-status:not(:empty) { margin-top: 8px; color: #eef2f7; font-size: 14px; line-height: 1.4; }
.fitting-auth button:disabled { opacity: .6; }
.fitting-auth .fitting-consent, .purchase-sheet .fitting-consent {
  display:grid; grid-template-columns:20px minmax(0,1fr); align-items:start;
  gap:10px; margin:14px 0 18px; color:#e2e6ed; font-size:14px; line-height:1.45;
}
.fitting-auth .fitting-consent[hidden] { display:none; }
#profile-dialog .fitting-consent input, .purchase-sheet label.fitting-consent input {
  appearance:auto; width:18px; height:18px; min-height:0; margin:2px 0 0; padding:0;
  accent-color:#3978ef; cursor:pointer;
}
.fitting-consent a { color:#bdd5ff; text-decoration:underline; text-underline-offset:2px; }
@media (max-width:800px), (pointer:coarse) {
  #profile-dialog {
    inset: auto 0 max(12px, var(--fit-safe-bottom)) 0; margin-inline: auto;
    width: min(390px, calc(100% - 24px)); max-height: calc(100dvh - 26px - var(--fit-safe-top) - var(--fit-safe-bottom));
    padding: 19px 20px 12px; border-radius: 23px;
  }
}
@media (prefers-reduced-transparency: reduce) {
  #profile-dialog, #profile-dialog.glass-painted { background: #292a30; }
  #profile-dialog::backdrop { backdrop-filter: none; }
}
