/* TVOE.TV user cabinet: shared by all active themes. */
.account-shell {
  --account-accent: var(--theme-color, #29b6f6);
  --account-accent-strong: #169bd8;
  --account-button: #087db3;
  --account-button-hover: #066a98;
  --account-ink: var(--heading-color, #111827);
  --account-muted: var(--body-text-color, #667085);
  --account-surface: var(--theme-bg, #fff);
  --account-soft: #f7f9fc;
  --account-border: rgba(17, 24, 39, .09);
  --account-success: #15845b;
  --account-shadow: 0 18px 50px rgba(15, 23, 42, .08);
  position: relative;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  color: var(--account-ink);
}

.account-shell,
.account-shell * {
  box-sizing: border-box;
}

.account-loading-skeleton {
  display: none;
}

.account-shell.is-loading {
  min-height: 720px;
}

.account-shell.is-loading > .account-hero,
.account-shell.is-loading > .account-workspace {
  visibility: hidden;
  pointer-events: none;
}

.account-shell.is-loading > .account-loading-skeleton {
  position: absolute;
  z-index: 20;
  inset: 0 0 auto;
  display: grid;
  gap: 18px;
  min-height: 720px;
  padding: 0;
  background: #f7f9fc;
}

.account-skeleton-hero,
.account-skeleton-sidebar,
.account-skeleton-main {
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, .06);
  background: #fff;
  box-shadow: var(--account-shadow);
}

.account-skeleton-hero {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) minmax(260px, 34%);
  gap: 18px;
  min-height: 214px;
  align-items: center;
  padding: 28px;
  border-radius: 24px;
}

.account-skeleton-workspace {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.account-skeleton-sidebar {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 21px;
}

.account-skeleton-main {
  display: grid;
  gap: 18px;
  min-height: 470px;
  padding: 24px;
  border-radius: 22px;
}

.account-skeleton-main > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.account-skeleton-hero span,
.account-skeleton-sidebar span,
.account-skeleton-main span {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 13px;
  background: #e8edf3;
}

.account-skeleton-hero span::after,
.account-skeleton-sidebar span::after,
.account-skeleton-main span::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 22%, rgba(255, 255, 255, .82) 45%, transparent 68%);
  content: "";
  transform: translateX(-100%);
  animation: account-skeleton-shimmer 1.35s ease-in-out infinite;
}

.account-skeleton-hero span:first-child {
  width: 64px;
  height: 64px;
  border-radius: 18px;
}

.account-skeleton-hero span:nth-child(2) {
  width: min(520px, 88%);
  height: 92px;
}

.account-skeleton-hero span:last-child {
  width: 100%;
  height: 144px;
}

.account-skeleton-sidebar span {
  height: 58px;
}

.account-skeleton-heading {
  width: min(420px, 72%);
  height: 64px;
}

.account-skeleton-main > div > span {
  min-height: 330px;
}

.account-shell.is-ready > .account-hero,
.account-shell.is-ready > .account-workspace {
  animation: account-content-ready .22s ease-out both;
}

@keyframes account-skeleton-shimmer {
  to { transform: translateX(100%); }
}

@keyframes account-content-ready {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

body.account-page #accountNotifications.notification-container {
  position: fixed;
  top: calc(var(--site-header-height, 60px) + 12px);
  right: 18px;
  z-index: 12000;
  width: min(380px, calc(100vw - 36px));
  pointer-events: none;
}

body.account-page #accountNotifications .notification {
  position: relative;
  display: block;
  min-height: 58px;
  margin: 0 0 10px;
  padding: 15px 17px 15px 52px;
  overflow: hidden;
  border: 1px solid rgba(239, 68, 68, .2);
  border-left: 4px solid #ef4444;
  border-radius: 15px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 45px rgba(15, 23, 42, .16);
  color: #273142;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  text-align: left;
  pointer-events: auto;
  animation: account-toast-in .24s ease-out both;
}

body.account-page #accountNotifications .notification::before {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(239, 68, 68, .12);
  color: #dc2626;
  content: "!";
  font-size: 15px;
  font-weight: 900;
}

body.account-page #accountNotifications .notification.success {
  border-color: rgba(21, 132, 91, .2);
  border-left-color: var(--account-success);
  background: rgba(249, 255, 252, .98);
}

body.account-page #accountNotifications .notification.success::before {
  background: rgba(21, 132, 91, .12);
  color: var(--account-success);
  content: "✓";
}

body.account-page #accountNotifications .notification.warning {
  border-color: rgba(217, 119, 6, .2);
  border-left-color: #d97706;
  background: rgba(255, 251, 235, .98);
}

body.account-page #accountNotifications .notification.warning::before {
  background: rgba(217, 119, 6, .12);
  color: #b45309;
  content: "!";
}

body.account-page #accountNotifications .notification-text {
  display: block;
  padding-right: 24px;
}

body.account-page #accountNotifications .notification-close {
  position: absolute;
  top: 9px;
  right: 10px;
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #667085;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}

body.account-page #accountNotifications .notification-close:hover {
  background: rgba(17, 24, 39, .07);
  color: #111827;
}

body.account-page #accountNotifications .notification.is-leaving {
  opacity: 0;
  transform: translateX(16px);
  transition: opacity .18s ease, transform .18s ease;
}

body.account-page #accountNotifications .notification-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(239, 68, 68, .08);
}

body.account-page #accountNotifications .notification-progress-inner {
  height: 100%;
  background: #ef4444;
}

body.account-page #accountNotifications .notification.success .notification-progress {
  background: rgba(21, 132, 91, .08);
}

body.account-page #accountNotifications .notification.success .notification-progress-inner {
  background: var(--account-success);
}

@keyframes account-toast-in {
  from { opacity: 0; transform: translate3d(18px, -6px, 0) scale(.98); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes account-toast-progress {
  from { width: 100%; }
  to { width: 0; }
}

@media (max-width: 575.98px) {
  body.account-page #accountNotifications.notification-container {
    top: calc(var(--site-header-height, 60px) + 8px);
    right: 12px;
    left: 12px;
    width: auto;
  }

}

.account-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, auto);
  gap: 20px;
  align-items: stretch;
  padding: 20px 24px;
  overflow: hidden;
  border: 1px solid rgba(41, 182, 246, .16);
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% -20%, rgba(41, 182, 246, .22), transparent 38%),
    linear-gradient(135deg, var(--account-surface) 0%, #f5fbff 100%);
  box-shadow: var(--account-shadow);
}

.account-hero::after {
  position: absolute;
  right: -54px;
  bottom: -78px;
  width: 190px;
  height: 190px;
  border: 32px solid rgba(255, 159, 67, .08);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.account-identity {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 15px;
  min-width: 0;
  align-items: flex-start;
}

.account-avatar {
  display: inline-flex;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--account-accent), var(--account-accent-strong));
  box-shadow: 0 12px 24px rgba(41, 182, 246, .24);
  color: #fff;
  font-size: 22px;
}

.account-identity__content {
  min-width: 0;
}

.account-eyebrow,
.account-sidebar__label,
.account-pane-kicker {
  display: block;
  margin: 0 0 5px;
  color: var(--account-accent-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .09em;
  line-height: 1.35;
  text-transform: uppercase;
}

.account-title {
  margin: 0;
  color: var(--account-ink);
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 750;
  letter-spacing: -.025em;
  line-height: 1.15;
}

.account-title__name {
  overflow-wrap: anywhere;
}

.account-subtitle {
  max-width: 650px;
  margin: 6px 0 0;
  color: var(--account-muted);
  font-size: 14px;
  line-height: 1.55;
}

.account-id-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.account-id-label,
.account-id-value,
.account-copy-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border-radius: 10px;
}

.account-id-label {
  gap: 7px;
  color: var(--account-muted);
  font-size: 13px;
}

.account-id-value {
  padding: 5px 10px;
  background: rgba(41, 182, 246, .1);
  color: var(--account-accent-strong);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .02em;
}

.account-copy-button {
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid var(--account-border);
  background: var(--account-surface);
  color: var(--account-ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: border-color .18s ease, color .18s ease, transform .18s ease;
}

.account-copy-button:hover {
  border-color: rgba(41, 182, 246, .45);
  color: var(--account-accent-strong);
  transform: translateY(-1px);
}

.account-balance-panel {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 310px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 20px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 12px 32px rgba(15, 23, 42, .07);
  backdrop-filter: blur(12px);
}

.account-balance-label {
  color: var(--account-muted);
  font-size: 13px;
  font-weight: 700;
}

.account-balance-summary {
  display: flex;
  gap: 8px;
  align-items: baseline;
  white-space: nowrap;
}

.account-balance-summary .account-balance-value {
  margin-top: 0;
}

.account-balance-value {
  display: flex;
  gap: 7px;
  align-items: baseline;
  margin-top: 3px;
  color: var(--account-success);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.15;
}

.account-balance-value__currency {
  color: var(--account-muted);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: .04em;
}

.account-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-self: end;
  margin-top: 12px;
}

.account-action {
  display: inline-flex;
  min-height: 42px;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border: 0;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.account-action--primary,
.account-action--secondary {
  border: 0;
  background: var(--account-button);
  box-shadow: 0 10px 20px rgba(8, 125, 179, .22);
  color: #fff !important;
}

.account-action:hover {
  transform: translateY(-2px);
}

.account-action--primary:hover,
.account-action--secondary:hover {
  border: 0;
  background: var(--account-button-hover);
  box-shadow: 0 14px 28px rgba(8, 106, 152, .28);
  color: #fff !important;
}

.account-action:active {
  transform: translateY(0);
  box-shadow: none;
}

.account-action:focus-visible {
  outline: 3px solid rgba(41, 182, 246, .3);
  outline-offset: 3px;
}

.account-workspace {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-top: 22px;
}

/* Group 3 owns a dense reporting workspace. Other cabinet groups keep the
   standard 272px navigation and 1320px shell unchanged. */
@media (min-width: 1200px) {
  .account-shell--rightsholder {
    max-width: min(1600px, calc(100vw - 32px));
  }

  .account-shell--rightsholder .account-workspace,
  .account-shell--rightsholder .account-skeleton-workspace {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 16px;
  }

  .account-shell--rightsholder .account-sidebar {
    padding: 10px;
    border-radius: 18px;
  }

  .account-shell--rightsholder .account-sidebar__label {
    margin-right: 6px;
    margin-left: 6px;
  }

  .account-shell--rightsholder .account-nav,
  .account-shell--rightsholder .account-nav-logout {
    min-width: 0;
  }

  .account-shell--rightsholder .account-nav .nav-link,
  .account-shell--rightsholder .account-nav-logout .nav-link {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 8px;
    min-height: 54px;
    padding: 7px 8px !important;
  }

  .account-shell--rightsholder .account-nav-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 15px;
  }

  .account-shell--rightsholder .account-nav-title {
    overflow-wrap: anywhere;
    font-size: 12px;
  }

  .account-shell--rightsholder .account-nav-hint {
    display: none;
  }
}

.account-shell--rightsholder .account-nav .nav-link:focus-visible,
.account-shell--rightsholder .account-nav-logout .nav-link:focus-visible {
  outline: 3px solid #2563eb !important;
  outline-offset: 2px;
}

html[data-theme="dark"] .account-shell--rightsholder .account-nav .nav-link:focus-visible,
html[data-theme="dark"] .account-shell--rightsholder .account-nav-logout .nav-link:focus-visible {
  outline-color: #70d2f7 !important;
}

.account-shell--rightsholder-only .account-workspace--rightsholder-only {
  margin-top: 0;
}

.account-shell--rightsholder-only .account-rightsholder-pane {
  min-width: 0;
}

.account-sidebar {
  position: sticky;
  top: calc(var(--site-header-height, 60px) + 22px);
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--account-border);
  border-radius: 20px;
  background: var(--account-surface);
  box-shadow: 0 12px 34px rgba(15, 23, 42, .06);
}

.account-sidebar__label {
  margin: 4px 8px 11px;
  color: var(--account-muted);
}

.account-nav {
  display: flex !important;
  flex-direction: column;
  gap: 7px !important;
  overflow: visible !important;
}

.account-nav .nav-item {
  width: 100%;
}

.account-nav .nav-link,
.account-nav-logout .nav-link {
  position: relative;
  display: grid !important;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 11px;
  width: 100% !important;
  min-height: 62px;
  align-items: center;
  padding: 9px 10px !important;
  overflow: hidden;
  border: 1px solid transparent !important;
  border-radius: 14px !important;
  background: transparent !important;
  color: var(--account-ink) !important;
  text-align: left !important;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.account-nav .nav-link:hover {
  border-color: rgba(41, 182, 246, .16) !important;
  background: rgba(41, 182, 246, .055) !important;
}

.account-nav-logout .nav-link:hover {
  border-color: rgba(168, 59, 67, .18) !important;
  background: rgba(168, 59, 67, .055) !important;
}

.account-nav .nav-link.active {
  border-color: rgba(41, 182, 246, .19) !important;
  background: rgba(41, 182, 246, .11) !important;
  color: var(--account-accent-strong) !important;
}

.account-nav .nav-link.active::before {
  position: absolute;
  inset: 10px auto 10px 0;
  width: 4px;
  border-radius: 0 8px 8px 0;
  background: var(--account-accent);
  content: "";
}

.account-nav .nav-link:focus-visible,
.account-nav-logout .nav-link:focus-visible,
.account-copy-button:focus-visible,
.account-action:focus-visible {
  outline: 3px solid rgba(41, 182, 246, .28) !important;
  outline-offset: 2px;
}

.account-nav-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--account-soft);
  color: var(--account-muted);
  font-size: 17px;
}

.account-nav .nav-link.active .account-nav-icon {
  background: var(--account-accent);
  color: #fff;
}

.account-nav-copy {
  min-width: 0;
}

.account-nav-title,
.account-nav-hint {
  display: block;
}

.account-nav-title {
  color: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.account-nav-hint {
  margin-top: 3px;
  overflow: hidden;
  color: var(--account-muted);
  font-size: 11px;
  font-weight: 550;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-nav-logout {
  margin-top: 7px;
  padding-top: 12px;
  border-top: 1px solid var(--account-border);
}

.account-nav-logout .nav-link {
  min-height: 48px;
  color: #a83b43 !important;
}

.account-main,
.account-main .tab-content,
.account-main .tab-pane,
.account-card,
.account-card * {
  min-width: 0;
}

.account-main .profile-menu-content {
  margin-top: 0;
}

/* One account destination with independent, nested television sections. */
.account-shell .account-tv-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 22px;
  padding: 0;
  border-bottom: 1px solid var(--account-border);
  list-style: none;
}

.account-shell .account-tv-tabs .nav-item {
  min-width: 0;
  margin: 0;
}

.account-shell .account-tv-tabs .nav-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 11px 18px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--account-muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
}

.account-shell .account-tv-tabs .nav-link:hover {
  background: var(--account-soft);
  color: var(--account-ink);
}

.account-shell .account-tv-tabs .nav-link.active {
  border-bottom-color: var(--account-accent);
  background: transparent;
  color: var(--account-accent-strong);
}

.account-shell .account-tv-tabs .nav-link:focus-visible {
  outline: 3px solid rgba(41, 182, 246, .3);
  outline-offset: -3px;
}

.account-tv-content > .tab-pane {
  padding: 0;
}

.account-tvzone-grid > .account-card {
  grid-column: 1 / -1;
}

@media (max-width: 575px) {
  .account-shell .account-tv-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
  }
  .account-shell .account-tv-tabs .nav-link {
    width: 100%;
    padding-inline: 8px;
    font-size: 13px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

.account-pane-heading {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
  padding: 4px 2px;
}

.account-pane-heading__icon {
  display: inline-flex;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(41, 182, 246, .1);
  color: var(--account-accent-strong);
  font-size: 20px;
}

.account-pane-heading h2 {
  display: block;
  margin: 0;
  color: var(--account-ink);
  font-size: clamp(21px, 2.5vw, 27px);
  font-weight: 780;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.account-pane-heading p {
  display: block;
  max-width: 720px;
  margin: 5px 0 0;
  color: var(--account-muted);
  font-size: 14px;
  line-height: 1.5;
}

.account-card-grid,
.account-subscription-grid {
  display: grid;
  gap: 18px;
}

.account-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.account-subscription-grid {
  grid-template-columns: minmax(300px, .8fr) minmax(0, 1.35fr);
  align-items: start;
}

.account-subscription-grid > :only-child,
.account-card--wide {
  grid-column: 1 / -1;
}

.account-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Keep both settings columns independent so card heights never create cross-column gaps. */
.account-settings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.account-settings-column {
  min-width: 0;
}

.account-card,
.account-shell .profile-menu-info {
  height: auto;
  margin: 0;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--account-border);
  border-radius: 20px;
  background: var(--account-surface);
  box-shadow: 0 12px 32px rgba(15, 23, 42, .055);
}

.account-card-title,
.account-shell .profile-menu-info .title {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 0 0 16px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--account-border);
  color: var(--account-ink);
  font-size: 18px;
  font-weight: 780;
  line-height: 1.3;
}

.account-card-title i {
  color: var(--account-accent-strong);
}

.account-card-description {
  margin: -6px 0 16px;
  color: var(--account-muted);
  font-size: 14px;
  line-height: 1.55;
}

.account-steps {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
  padding: 0;
  counter-reset: account-steps;
}

.account-steps li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--account-muted);
  font-size: 14px;
  line-height: 1.5;
  list-style: none;
  counter-increment: account-steps;
}

.account-steps li::before {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(41, 182, 246, .1);
  color: var(--account-accent-strong);
  content: counter(account-steps);
  font-size: 12px;
  font-weight: 800;
}

.account-shell .store-badges {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px !important;
  margin: 16px 0 !important;
}

.account-shell .store-badges a {
  display: flex;
  min-width: 0;
  min-height: 68px;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 1px solid var(--account-border);
  border-radius: 14px;
  background: var(--account-soft);
  color: var(--account-ink);
  text-decoration: none !important;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.account-shell .store-badges a:hover {
  border-color: rgba(8, 125, 179, .3);
  background: #fff;
  box-shadow: 0 10px 24px rgba(17, 24, 39, .09);
  color: var(--account-ink);
  transform: translateY(-2px);
}

.account-shell .store-badges a:focus-visible {
  outline: 3px solid rgba(8, 125, 179, .38);
  outline-offset: 2px;
}

.account-shell .store-badges .store-tile {
  justify-content: flex-start;
  gap: 12px;
  min-height: 76px;
  padding: 12px 14px;
  background: #fff;
}

.account-shell .store-tile-icon {
  display: inline-flex;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: #fff;
  font-size: 22px;
  box-shadow: 0 7px 16px rgba(17, 24, 39, .13);
}

.account-shell .store-tile--google .store-tile-icon {
  background: linear-gradient(145deg, #1aa260, #0f7d46);
}

.account-shell .store-tile--android .store-tile-icon {
  background: linear-gradient(145deg, #3ddc84, #16894f);
}

.account-shell .store-tile--apple .store-tile-icon {
  background: linear-gradient(145deg, #313846, #111827);
}

.account-shell .store-tile--tv .store-tile-icon {
  background: linear-gradient(145deg, #29b6f6, #087db3);
}

.account-shell .store-tile--smart .store-tile-icon {
  background: linear-gradient(145deg, #29b6f6, #087db3);
}

.account-shell .store-tile--windows .store-tile-icon {
  background: linear-gradient(145deg, #1688d4, #0869a8);
}

.account-shell .store-tile--mag .store-tile-icon {
  background: linear-gradient(145deg, #ff9f43, #d66a08);
}

.account-shell .store-tile-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
  line-height: 1.2;
}

.account-shell .store-tile-copy small {
  color: var(--account-muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.account-shell .store-tile-copy strong {
  overflow: hidden;
  color: var(--account-ink);
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-shell .store-badges img {
  width: auto;
  max-width: 100%;
  height: 46px;
  object-fit: contain;
}

.account-card-loader {
  display: grid;
  gap: 12px;
  min-height: 220px;
  align-content: center;
  padding: 8px 0;
}

.account-card-loader > span:not(.visually-hidden) {
  position: relative;
  display: block;
  width: 100%;
  height: 30px;
  overflow: hidden;
  border-radius: 10px;
  background: #e8edf3;
}

.account-card-loader > span:not(.visually-hidden):nth-of-type(even) {
  width: 82%;
}

.account-card-loader > span:not(.visually-hidden)::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 22%, rgba(255, 255, 255, .82) 45%, transparent 68%);
  content: "";
  transform: translateX(-100%);
  animation: account-skeleton-shimmer 1.35s ease-in-out infinite;
}

.stalker-info {
  display: grid;
  gap: 0;
}

.stalker-dashboard {
  display: grid;
  gap: 16px;
}

.stalker-overview {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(21, 139, 190, .17);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(41, 182, 246, .09), rgba(255, 255, 255, .94));
}

.stalker-overview.is-inactive {
  border-color: rgba(220, 53, 69, .17);
  background: linear-gradient(135deg, rgba(220, 53, 69, .075), rgba(255, 255, 255, .94));
}

.stalker-overview__icon,
.stalker-metric__icon,
.stalker-technical__summary-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--account-accent-strong);
}

.stalker-overview__icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
  color: #118758;
  font-size: 22px;
}

.stalker-overview.is-inactive .stalker-overview__icon {
  color: #c93434;
}

.stalker-overview__copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.stalker-overview__eyebrow,
.stalker-metric__label,
.stalker-technical__label {
  color: var(--account-muted);
  font-size: 12px;
  font-weight: 700;
}

.stalker-overview__title {
  color: var(--account-ink);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.25;
}

.stalker-overview__chips {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}

[data-portal-grid] [hidden] {
  display: none !important;
}
[data-portal-grid]:not([data-portal-enabled="true"]) {
  grid-template-columns: minmax(0, 1fr);
}
[data-portal-grid][data-portal-enabled="false"] [data-portal-status-card] {
  width: 100%;
  max-width: none;
}
[data-portal-grid][data-portal-enabled="false"] .account-card-loader {
  min-height: 48px;
}
.stalker-portal-off {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}
.stalker-portal-off__icon {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(41, 182, 246, .12);
  color: var(--account-accent-strong);
  font-size: 22px;
}
.stalker-portal-off__title {
  min-width: 0;
  color: var(--account-ink);
  font-size: 18px;
  font-weight: 780;
  line-height: 1.35;
}

.stalker-portal-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--account-border);
  border-radius: 12px;
  background: var(--account-soft);
  color: var(--account-ink);
  font: 700 14px/1.3 var(--body-font, sans-serif);
  cursor: pointer;
}
.stalker-portal-toggle::after {
  content: '';
  flex: 0 0 34px;
  height: 20px;
  border: 2px solid #7b8794;
  border-radius: 20px;
  background: radial-gradient(circle at 8px 8px, #fff 0 7px, transparent 7.5px) #7b8794;
}
.stalker-portal-toggle[aria-checked="true"]::after {
  border-color: #118758;
  background: radial-gradient(circle at 22px 8px, #fff 0 7px, transparent 7.5px) #118758;
}
.stalker-portal-toggle.stalker-portal-enable {
  width: auto;
  max-width: 100%;
  justify-self: start;
  padding: 13px 22px;
  border-color: var(--account-button);
  background: var(--account-button);
  color: #fff;
  font-size: 16px;
}
.stalker-portal-toggle.stalker-portal-enable::after { content: none; }
.stalker-portal-toggle.stalker-portal-enable:hover {
  border-color: var(--account-button-hover);
  background: var(--account-button-hover);
}
.stalker-portal-toggle:focus-visible, .stalker-portal-retry:focus-visible {
  outline: 3px solid var(--account-accent-strong);
  outline-offset: 3px;
}
.stalker-portal-toggle:disabled, .stalker-portal-retry:disabled { opacity: .65; cursor: wait; }
.stalker-portal-help { margin: 12px 0; color: var(--account-muted); font-size: 14px; line-height: 1.5; }
.stalker-portal-help.is-warning { border-left: 3px solid #c18a28; padding-left: 12px; }
.stalker-portal-retry {
  display: block;
  min-height: 44px;
  margin-top: 8px;
  padding: 8px 12px;
  border: 1px solid var(--account-border);
  border-radius: 10px;
  background: var(--account-soft);
  color: var(--account-ink);
  font: inherit;
  cursor: pointer;
}
@media (max-width: 575.98px) {
  .stalker-portal-off { grid-template-columns: 46px minmax(0, 1fr); }
  .stalker-portal-off .stalker-portal-enable { grid-column: 1 / -1; }
  .stalker-overview__chips:has(.stalker-portal-toggle) { grid-column: 1 / -1; }
  .stalker-portal-toggle { width: 100%; }
}

.stalker-status-chip {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.15;
}

.stalker-status-chip.is-positive {
  background: rgba(17, 135, 88, .12);
  color: #08734a;
}

.stalker-status-chip.is-negative {
  background: rgba(201, 52, 52, .11);
  color: #ad2727;
}

.stalker-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.stalker-metric {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-width: 0;
  min-height: 82px;
  padding: 13px;
  border: 1px solid var(--account-border);
  border-radius: 14px;
  background: #fff;
}

.stalker-metric__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(41, 182, 246, .1);
  font-size: 17px;
}

.stalker-metric__copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.stalker-metric strong,
.stalker-technical__item strong,
.stalker-device__activity strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--account-ink);
  font-size: 14px;
  font-weight: 800;
}

.stalker-metric strong {
  white-space: nowrap;
}

.stalker-metric strong.is-empty,
.stalker-technical__item strong.is-empty,
.stalker-device__activity strong.is-empty {
  color: var(--account-muted);
  font-weight: 650;
}

.stalker-device {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) minmax(150px, auto);
  gap: 13px;
  align-items: center;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--account-border);
  border-radius: 14px;
  background: #fff;
}

.stalker-device__icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: #eef2f6;
  color: #64748b;
  font-size: 19px;
}

.stalker-device.is-online .stalker-device__icon {
  background: rgba(17, 135, 88, .11);
  color: #08734a;
}

.stalker-device__copy,
.stalker-device__activity {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.stalker-device__activity {
  justify-items: end;
  padding-left: 14px;
  border-left: 1px solid var(--account-border);
  text-align: right;
}

.stalker-device__label {
  color: var(--account-muted);
  font-size: 12px;
  font-weight: 700;
}

.stalker-device__title {
  color: var(--account-ink);
  font-size: 15px;
  font-weight: 850;
}

.stalker-technical {
  overflow: hidden;
  border: 1px solid var(--account-border);
  border-radius: 14px;
  background: #fff;
}

.stalker-technical > summary {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 20px;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 9px 13px;
  color: var(--account-ink);
  cursor: pointer;
  list-style: none;
}

.stalker-technical > summary::-webkit-details-marker {
  display: none;
}

.stalker-technical__summary-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: rgba(41, 182, 246, .09);
}

.stalker-technical__chevron {
  color: var(--account-muted);
  transition: transform .18s ease;
}

.stalker-technical[open] .stalker-technical__chevron {
  transform: rotate(180deg);
}

.stalker-technical__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 1px 13px 13px;
  background: var(--account-border);
}

.stalker-technical__item {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 12px;
  background: #fff;
}

@media (max-width: 640px) {
  .stalker-overview {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 14px;
  }

  .stalker-overview__icon {
    width: 44px;
    height: 44px;
  }

  .stalker-overview__chips {
    grid-column: 2;
    justify-content: flex-start;
  }

  .stalker-metrics,
  .stalker-technical__grid {
    grid-template-columns: 1fr;
  }

  .stalker-metric strong {
    white-space: normal;
  }

  .stalker-device {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .stalker-device__activity {
    grid-column: 1 / -1;
    justify-items: start;
    padding: 12px 0 0;
    border-top: 1px solid var(--account-border);
    border-left: 0;
    text-align: left;
  }
}

.account-empty-state--error .account-empty-state__icon {
  background: rgba(239, 68, 68, .1);
  color: #c93434;
}

.account-retry-button {
  min-height: 42px;
  margin-top: 4px;
}

.account-shell button.is-account-pending,
.account-shell input.is-account-pending {
  pointer-events: none;
  opacity: .82;
}

.account-shell button.is-account-pending {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.account-shell button.is-account-pending::after {
  position: relative;
  top: -1px;
  display: inline-block;
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  margin-left: 9px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  content: "";
  animation: account-button-spin .7s linear infinite;
}

@keyframes account-button-spin {
  to { transform: rotate(360deg); }
}

.account-shell .subscription-card {
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-family: inherit;
}

.account-shell .subscription-card .btn-primary {
  min-height: 48px;
}

.account-shell .device-list,
.account-shell .tariff-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-shell .period-list {
  gap: 9px;
}

.account-shell .period-card {
  min-width: 82px;
  min-height: 44px;
}

.account-shell .form-control,
.account-shell .form-select {
  min-height: 44px;
  border-radius: 11px;
}

.account-shell .theme-btn,
.account-shell .btn {
  max-width: 100%;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}

.account-shell .theme-btn {
  display: inline-flex;
  min-height: 46px;
  gap: 9px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 12px !important;
  background: var(--account-accent);
  color: #fff !important;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.2;
  text-align: center;
  text-transform: none;
}

.account-shell .theme-btn i,
.account-shell .theme-btn span {
  margin: 0;
}

.account-shell .theme-btn.red {
  border: 0;
  background: #e74c3c;
}

.account-shell .theme-btn.green {
  border: 0;
  background: var(--account-success);
}

.account-shell .theme-btn.red:not(:disabled):hover {
  border: 0;
  background: #c63d31;
  box-shadow: 0 9px 20px rgba(198, 61, 49, .2);
}

.account-shell .theme-btn.green:not(:disabled):hover {
  border: 0;
  background: #0f6e4b;
  box-shadow: 0 9px 20px rgba(15, 110, 75, .2);
}

.account-card-action {
  width: 100%;
  margin-top: 18px;
}

.account-card-action--dealer {
  width: fit-content;
  min-width: 0;
  padding-right: 22px;
  padding-left: 22px;
}

.subscription-summary {
  display: grid;
  gap: 15px;
}

.subscription-status-line {
  display: inline-flex;
  width: fit-content;
  gap: 8px;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(21, 132, 91, .1);
  color: #0f6e4b;
  font-size: 13px;
}

.subscription-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a36f;
  box-shadow: 0 0 0 4px rgba(22, 163, 111, .12);
}

.subscription-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.subscription-metric {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 13px;
  border-radius: 13px;
  background: var(--account-soft);
}

.subscription-metric > span,
.subscription-feature > div > span,
.subscription-packages__label {
  color: var(--account-muted);
  font-size: 12px;
  font-weight: 650;
}

.subscription-metric strong {
  overflow-wrap: anywhere;
  color: var(--account-ink);
  font-size: 14px;
  line-height: 1.35;
}

.subscription-feature {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  padding: 13px;
  border-radius: 14px;
  background: rgba(41, 182, 246, .08);
}

.subscription-feature__icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #087db3;
  box-shadow: 0 7px 16px rgba(8, 125, 179, .2);
  color: #fff;
  font-size: 16px;
  font-weight: 850;
}

.subscription-feature > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.subscription-feature strong {
  color: var(--account-ink);
  font-size: 13px;
  line-height: 1.45;
}

.subscription-connection-list {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.subscription-connection-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(8, 125, 179, .12);
  border-radius: 11px;
  background: rgba(255, 255, 255, .78);
}

.subscription-feature .subscription-connection-count {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(8, 125, 179, .11);
  color: #087db3;
  font-size: 15px;
  font-weight: 850;
}

.subscription-connection-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.subscription-connection-copy strong,
.subscription-connection-copy small {
  overflow-wrap: anywhere;
}

.subscription-connection-copy small {
  color: var(--account-muted);
  font-size: 11px;
  line-height: 1.4;
}

.subscription-packages {
  display: grid;
  gap: 8px;
}

.subscription-package-list {
  display: grid;
  gap: 8px;
}

.subscription-package-chip {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: start;
  padding: 11px 12px;
  border-radius: 13px;
  background: #eef5ff;
  color: #1268b3;
}

.subscription-package-chip > i {
  padding-top: 2px;
  color: #15845b;
}

.subscription-package-chip > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.subscription-package-chip strong {
  overflow-wrap: anywhere;
  color: #145a9b;
  font-size: 13px;
}

.subscription-package-chip small {
  color: #4c6f91;
  font-size: 11px;
}

.subscription-packages__heading {
  display: flex;
  gap: 8px;
  align-items: baseline;
  justify-content: space-between;
}

.subscription-packages__heading > small {
  max-width: 68%;
  color: var(--account-muted);
  font-size: 9px;
  font-weight: 650;
  line-height: 1.35;
  text-align: right;
}

.subscription-package-chip__autorenew {
  align-self: center;
}

.subscription-packages__autorenew-spinner {
  display: none;
  flex: 0 0 auto;
  color: var(--account-accent-strong);
}

.subscription-packages.is-submitting .subscription-packages__autorenew-spinner {
  display: inline-block;
  animation: subscription-autorenew-spin .75s linear infinite;
}

.subscription-packages.is-enabled .subscription-packages__heading > small {
  color: #15845b;
}

.subscription-packages.is-attention .subscription-packages__heading > small {
  color: #9b5d07;
}

.subscription-autorenew-optin,
.subscription-tariff-autorenew {
  display: flex;
  min-width: 0;
  gap: 10px;
  align-items: center;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--account-border);
  border-radius: 13px;
  background: var(--account-soft);
}

.subscription-autorenew-optin__copy,
.subscription-tariff-autorenew__copy {
  display: grid;
  flex: 1 1 auto;
  gap: 2px;
  min-width: 0;
}

.subscription-autorenew-optin__copy strong,
.subscription-tariff-autorenew__copy strong {
  color: var(--account-ink);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.3;
}

.subscription-autorenew-optin__copy small,
.subscription-tariff-autorenew__copy small {
  overflow-wrap: anywhere;
  color: var(--account-muted);
  font-size: 10px;
  line-height: 1.4;
}

.account-toggle {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  margin: 0;
  cursor: pointer;
}

.account-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.account-toggle__track {
  position: relative;
  display: inline-flex;
  width: 42px;
  height: 24px;
  padding: 3px;
  align-items: center;
  border: 1px solid var(--account-border);
  border-radius: 999px;
  background: #718294;
  transition: background .18s ease, border-color .18s ease, opacity .18s ease;
}

.account-toggle__track > span {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .22);
  transition: transform .18s ease;
}

.account-toggle input:checked + .account-toggle__track {
  border-color: #16946a;
  background: #16946a;
}

.account-toggle input:checked + .account-toggle__track > span {
  transform: translateX(18px);
}

.account-toggle input:focus-visible + .account-toggle__track {
  outline: 3px solid rgba(41, 182, 246, .28);
  outline-offset: 3px;
}

.account-toggle input:disabled + .account-toggle__track {
  cursor: not-allowed;
  opacity: .48;
}

.account-toggle--compact .account-toggle__track {
  width: 36px;
  height: 20px;
  padding: 2px;
}

.account-toggle--compact .account-toggle__track > span {
  width: 14px;
  height: 14px;
}

.account-toggle--compact input:checked + .account-toggle__track > span {
  transform: translateX(16px);
}

@keyframes subscription-autorenew-spin {
  to { transform: rotate(360deg); }
}

html.autorenew-consent-open,
body.autorenew-consent-open {
  overflow: hidden;
}

/* The support widget uses a high-z-index shadow root. Keep modal actions
   unobstructed while explicit billing consent is being reviewed. */
html.autorenew-consent-open #chatni-widget-root {
  visibility: hidden !important;
  pointer-events: none !important;
}

.autorenew-consent-overlay {
  --autorenew-modal-bg: #ffffff;
  --autorenew-modal-surface: #f4f8fc;
  --autorenew-modal-border: #c9d6e2;
  --autorenew-modal-border-soft: #dde6ee;
  --autorenew-modal-ink: #102334;
  --autorenew-modal-muted: #53697b;
  --autorenew-modal-accent: #087db3;
  --autorenew-modal-accent-hover: #066a98;
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 18px;
  box-sizing: border-box;
  background: rgba(2, 10, 17, .76);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity .16s ease;
}

html[data-theme="dark"] .autorenew-consent-overlay {
  --autorenew-modal-bg: #10212c;
  --autorenew-modal-surface: #172d3b;
  --autorenew-modal-border: #365266;
  --autorenew-modal-border-soft: #294657;
  --autorenew-modal-ink: #f5f8fb;
  --autorenew-modal-muted: #b3c4d0;
  --autorenew-modal-accent: #0c8fc6;
  --autorenew-modal-accent-hover: #18a7df;
  background: rgba(1, 8, 13, .84);
}

.autorenew-consent-overlay.is-open {
  opacity: 1;
}

.autorenew-consent-modal {
  width: min(100%, 600px);
  max-height: calc(100vh - 36px);
  overflow: auto;
  box-sizing: border-box;
  padding: 22px;
  border: 1px solid var(--autorenew-modal-border);
  border-radius: 20px;
  background: var(--autorenew-modal-bg);
  color: var(--autorenew-modal-ink);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .48), 0 0 0 1px rgba(255, 255, 255, .04);
  transform: translateY(10px) scale(.985);
  transition: transform .16s ease;
}

.autorenew-consent-overlay.is-open .autorenew-consent-modal {
  transform: none;
}

.autorenew-consent-modal__header {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.autorenew-consent-modal__header h2 {
  margin: 0;
  color: var(--autorenew-modal-ink);
  font-size: 20px;
  font-weight: 850;
  line-height: 1.25;
}

.autorenew-consent-modal__close {
  display: inline-flex;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--autorenew-modal-border);
  border-radius: 11px;
  background: var(--autorenew-modal-surface);
  color: var(--autorenew-modal-ink);
  cursor: pointer;
}

.autorenew-consent-modal__intro {
  margin: 9px 0 16px;
  color: var(--autorenew-modal-muted);
  font-size: 13px;
  line-height: 1.5;
}

.autorenew-consent-modal__summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 15px;
}

.autorenew-consent-modal__summary > div {
  display: grid;
  min-width: 0;
  gap: 5px;
  align-content: start;
  padding: 12px 13px;
  border: 1px solid var(--autorenew-modal-border-soft);
  border-radius: 13px;
  background: var(--autorenew-modal-surface);
}

.autorenew-consent-modal__summary small {
  color: var(--autorenew-modal-muted);
  font-size: 10px;
  font-weight: 750;
}

.autorenew-consent-modal__summary strong {
  color: var(--autorenew-modal-accent);
  font-size: 16px;
  white-space: nowrap;
}

.autorenew-consent-modal__bundle {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.autorenew-consent-modal__bundle li {
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(41, 182, 246, .11);
  color: var(--autorenew-modal-ink);
  font-size: 11px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.autorenew-consent-modal__terms {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 4px 14px;
  border: 1px solid var(--autorenew-modal-border-soft);
  border-radius: 14px;
  background: var(--autorenew-modal-surface);
  list-style: none;
}

.autorenew-consent-modal__terms li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid var(--autorenew-modal-border-soft);
  color: var(--autorenew-modal-muted);
  font-size: 12px;
  line-height: 1.5;
}

.autorenew-consent-modal__terms li:last-child {
  border-bottom: 0;
}

.autorenew-consent-modal__terms i {
  padding-top: 3px;
  color: #16946a;
  text-align: center;
}

.autorenew-consent-modal__actions {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 10px;
  margin-top: 18px;
}

.autorenew-consent-modal__cancel,
.autorenew-consent-modal__confirm {
  min-height: 44px;
  padding: 10px 15px;
  border-radius: 11px;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.autorenew-consent-modal__cancel {
  border: 1px solid var(--autorenew-modal-border);
  background: var(--autorenew-modal-surface);
  color: var(--autorenew-modal-ink);
}

.autorenew-consent-modal__confirm {
  border: 1px solid var(--autorenew-modal-accent);
  background: var(--autorenew-modal-accent);
  color: #fff;
}

.autorenew-consent-modal__cancel:hover {
  border-color: var(--autorenew-modal-accent);
}

.autorenew-consent-modal__confirm:hover {
  border-color: var(--autorenew-modal-accent-hover);
  background: var(--autorenew-modal-accent-hover);
}

.autorenew-consent-modal__cancel:active,
.autorenew-consent-modal__confirm:active {
  transform: translateY(1px);
}

.autorenew-consent-modal button:focus-visible {
  outline: 3px solid rgba(41, 182, 246, .28);
  outline-offset: 2px;
}

html[data-theme="dark"] .subscription-packages.is-enabled .subscription-packages__heading > small {
  color: #8ce2bf;
}

html[data-theme="dark"] .subscription-packages.is-attention .subscription-packages__heading > small {
  color: #ffd487;
}

@media (max-width: 575.98px) {
  .subscription-autorenew-optin,
  .subscription-tariff-autorenew {
    padding: 10px;
  }

  .subscription-packages__heading {
    display: grid;
    gap: 3px;
  }

  .subscription-packages__heading > small {
    max-width: none;
    text-align: left;
  }

  .autorenew-consent-overlay {
    align-items: end;
    padding: 10px;
  }

  .autorenew-consent-modal {
    max-height: calc(100vh - 20px);
    padding: 17px;
    border-radius: 18px;
  }

  .autorenew-consent-modal__summary,
  .autorenew-consent-modal__actions {
    grid-template-columns: 1fr;
  }

  .autorenew-consent-modal__cancel {
    order: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .autorenew-consent-overlay,
  .autorenew-consent-modal,
  .account-toggle__track,
  .account-toggle__track > span {
    transition: none;
  }
}

.account-key-panel {
  margin: 0;
  padding: 22px;
  border: 1px solid var(--account-border);
  border-radius: 21px;
  background: var(--account-surface);
  box-shadow: var(--account-shadow);
}

.account-key-heading {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--account-border);
  color: var(--account-ink);
  font-size: 17px;
}

.account-key-heading__icon {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(41, 182, 246, .13);
  color: var(--account-accent-strong);
}

.account-key-field {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: stretch;
}

.account-key-field .key-value {
  display: flex;
  min-width: 0;
  min-height: 54px;
  align-items: center;
  padding: 12px 16px;
  overflow: hidden;
  border: 0;
  border-radius: 11px;
  background: #f1f6fa;
  color: #1675bd;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .25px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-key-copy {
  display: inline-flex;
  width: 100%;
  min-height: 44px;
  gap: 7px;
  align-items: center;
  justify-content: center;
  padding: 9px 13px;
  border: 0;
  border-radius: 11px;
  background: #087db3;
  box-shadow: 0 8px 18px rgba(8, 125, 179, .18);
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.account-key-copy:hover,
.account-key-copy.is-copied {
  background: #066a98;
  color: #fff;
  transform: translateY(-1px);
}

.account-key-copy.is-copied {
  background: var(--account-success);
  color: #fff;
}

.account-key-copy:focus-visible {
  outline: 3px solid rgba(41, 182, 246, .28);
  outline-offset: 2px;
}

.account-key-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid rgba(17, 24, 39, .08);
}

.account-key-actions form {
  width: 100%;
  margin: 0;
}

.subscription-checklist {
  margin: 18px 0 13px;
  padding: 15px;
  border: 1px solid var(--account-border);
  border-radius: 15px;
  background: var(--account-soft);
}

.subscription-checklist-title {
  display: block;
  margin-bottom: 11px;
  color: var(--account-ink);
  font-size: 14px;
}

.subscription-checklist-items {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.subscription-checklist-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid rgba(17, 24, 39, .07);
  border-radius: 11px;
  background: #fff;
  list-style: none;
  transition: border-color .18s ease, background .18s ease;
}

.subscription-checklist-icon {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #eef2f6;
  color: #98a2b3;
}

.subscription-checklist-icon::before {
  content: "·";
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.subscription-checklist-label,
.subscription-checklist-value {
  display: block;
}

.subscription-checklist-label {
  color: var(--account-ink);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.subscription-checklist-value {
  margin-top: 2px;
  overflow: hidden;
  color: var(--account-muted);
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subscription-checklist-item.is-complete {
  border-color: rgba(21, 132, 91, .18);
  background: rgba(21, 132, 91, .045);
}

.subscription-checklist-item.is-complete .subscription-checklist-icon {
  background: rgba(21, 132, 91, .13);
  color: var(--account-success);
}

.subscription-checklist-item.is-complete .subscription-checklist-icon::before {
  content: "✓";
  font-size: 16px;
}

.subscription-checklist-item.is-complete .subscription-checklist-value {
  color: var(--account-success);
}

.account-shell .account-key-change {
  width: 100%;
  min-height: 42px;
  border: 0;
  background: #087db3;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(8, 125, 179, .18);
}

.account-shell .account-key-change:not(:disabled):hover {
  border: 0;
  background: #066a98;
  color: #fff !important;
  box-shadow: 0 11px 22px rgba(8, 125, 179, .24);
}

@media (max-width: 440px) {
  .account-key-field {
    grid-template-columns: 1fr;
  }

  .account-key-copy,
  .account-key-actions form,
  .account-key-change {
    width: 100%;
  }
}

.account-shell .theme-btn::before,
.account-shell .btn::before {
  display: none !important;
  content: none !important;
}

.account-shell .theme-btn:not(.red):not(.green):not(:disabled):hover,
.account-shell .btn-primary:not(:disabled):hover {
  border-color: var(--account-accent-strong);
  background: var(--account-accent-strong);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 9px 20px rgba(22, 155, 216, .22);
}

.account-shell .theme-btn:not(:disabled):active,
.account-shell .btn:not(:disabled):active {
  transform: translateY(0);
}

.account-shell .theme-btn:focus-visible,
.account-shell .btn:focus-visible {
  outline: 3px solid rgba(41, 182, 246, .3);
  outline-offset: 2px;
}

.account-shell code,
.account-shell pre,
.account-shell a,
.account-shell .copy-field,
.account-shell .profile-dd,
.account-shell .stalker-info,
.account-shell [class*="url"],
.account-shell [class*="link"] {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.account-empty-state {
  display: grid;
  justify-items: center;
  padding: 24px 16px;
  border: 1px dashed rgba(41, 182, 246, .3);
  border-radius: 16px;
  background: rgba(41, 182, 246, .045);
  text-align: center;
}

.account-empty-state__icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  border-radius: 15px;
  background: rgba(41, 182, 246, .12);
  color: var(--account-accent-strong);
  font-size: 21px;
}

.account-empty-state strong {
  color: var(--account-ink);
  font-size: 16px;
}

.account-empty-state p {
  max-width: 480px;
  margin: 7px 0 0;
  color: var(--account-muted);
  font-size: 13px;
  line-height: 1.5;
}

body.account-page #scroll-top {
  bottom: 88px;
}

@media (max-width: 1199.98px) {
  .account-hero {
    grid-template-columns: minmax(0, 1fr) 310px;
  }

  .account-workspace {
    grid-template-columns: 236px minmax(0, 1fr);
  }

  .account-subscription-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991.98px) {
  .account-shell {
    padding: 0 2px;
  }

  .account-hero {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .account-balance-panel {
    min-width: 0;
  }

  .account-balance-summary {
    display: block;
    white-space: normal;
  }

  .account-balance-summary .account-balance-value {
    margin-top: 3px;
  }

  .account-workspace {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .account-shell.is-loading,
  .account-shell.is-loading > .account-loading-skeleton {
    min-height: 780px;
  }

  .account-skeleton-hero {
    grid-template-columns: 58px minmax(0, 1fr);
    min-height: 230px;
  }

  .account-skeleton-hero span:last-child {
    grid-column: 1 / -1;
    height: 82px;
  }

  .account-skeleton-workspace {
    grid-template-columns: 1fr;
  }

  .account-skeleton-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-sidebar {
    position: static;
    padding: 10px;
  }

  .account-sidebar__label {
    margin: 3px 5px 9px;
  }

  .account-nav {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .account-nav .nav-link {
    min-height: 58px;
    padding: 8px !important;
  }

  .account-nav-hint {
    display: none;
  }

  .account-nav-logout {
    grid-column: 1 / -1;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .account-nav-logout .nav-link {
    min-height: 46px;
  }

  .account-card-grid {
    grid-template-columns: 1fr;
  }

  .account-card--wide {
    grid-column: auto;
  }

  .account-pane-heading {
    margin-bottom: 14px;
  }

  body.account-page {
    padding-bottom: 70px;
  }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .account-workspace,
  .account-skeleton-workspace {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 16px;
  }

  .account-sidebar {
    position: sticky;
    z-index: 15;
    top: calc(var(--site-header-height, 60px) + 22px);
    align-self: start;
    padding: 10px;
    overflow: visible;
    border-radius: 18px;
  }

  .account-sidebar__label {
    display: none;
  }

  .account-nav {
    display: flex !important;
    flex-direction: column;
    gap: 7px !important;
    overflow: visible !important;
  }

  .account-nav .nav-link,
  .account-nav-logout .nav-link {
    display: grid !important;
    grid-template-columns: 40px;
    gap: 0;
    justify-content: center;
    width: 100% !important;
    min-height: 58px;
    padding: 9px !important;
    overflow: visible;
    text-align: center !important;
  }

  .account-nav-copy {
    display: none;
  }

  .account-nav-logout {
    grid-column: auto;
    margin-top: 7px;
    padding-top: 12px;
    border-top: 1px solid var(--account-border);
  }

  .account-nav-logout .nav-link {
    min-height: 48px;
  }

  .account-skeleton-sidebar {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .account-nav .nav-link::after,
  .account-nav-logout .nav-link::after {
    position: absolute;
    z-index: 25;
    top: 50%;
    left: calc(100% + 12px);
    width: max-content;
    max-width: 230px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #111827;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .2);
    color: #fff;
    content: attr(aria-label);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    opacity: 0;
    pointer-events: none;
    text-align: left;
    transform: translate(-4px, -50%);
    transition: opacity .16s ease, transform .16s ease;
    visibility: hidden;
    white-space: normal;
  }

  .account-nav .nav-link:focus-visible::after,
  .account-nav-logout .nav-link:focus-visible::after {
    opacity: 1;
    transform: translate(0, -50%);
    visibility: visible;
  }
}

@media (hover: hover) and (min-width: 768px) and (max-width: 1199.98px) {
  .account-nav .nav-link:hover::after,
  .account-nav-logout .nav-link:hover::after {
    opacity: 1;
    transform: translate(0, -50%);
    visibility: visible;
  }
}

@media (max-width: 575.98px) {
  .account-shell.is-loading,
  .account-shell.is-loading > .account-loading-skeleton {
    min-height: 700px;
  }

  .account-skeleton-hero {
    gap: 12px;
    min-height: 210px;
    padding: 18px;
    border-radius: 19px;
  }

  .account-skeleton-hero span:first-child {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .account-skeleton-hero span:nth-child(2) {
    height: 66px;
  }

  .account-skeleton-sidebar,
  .account-skeleton-main {
    padding: 14px;
    border-radius: 17px;
  }

  .account-skeleton-main > div {
    grid-template-columns: 1fr;
  }

  .account-skeleton-main > div > span:last-child {
    display: none;
  }

  .account-hero {
    gap: 18px;
    padding: 18px;
    border-radius: 19px;
  }

  .account-identity {
    gap: 12px;
  }

  .account-avatar {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 21px;
  }

  .account-title {
    font-size: 23px;
  }

  .account-subtitle {
    font-size: 13px;
  }

  .account-id-row {
    margin-left: -60px;
  }

  .account-copy-button__text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .account-actions {
    grid-template-columns: 1fr;
  }

  .account-card-action--dealer {
    width: 100%;
  }

  .account-action {
    min-height: 46px;
  }

  .account-sidebar {
    border-radius: 17px;
  }

  .account-nav .nav-link {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
    min-height: 58px;
  }

  .account-nav-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 15px;
  }

  .account-nav-title {
    font-size: 12px;
  }

  .account-pane-heading__icon {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 18px;
  }

  .account-pane-heading h2 {
    font-size: 20px;
  }

  .account-pane-heading p {
    font-size: 13px;
  }

  .account-card,
  .account-shell .profile-menu-info {
    padding: 17px;
    border-radius: 17px;
  }

  .account-shell .device-list,
  .account-shell .tariff-list {
    grid-template-columns: 1fr;
  }

  .account-shell .period-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-shell .period-card {
    min-width: 0;
  }

  .account-shell .store-badges {
    gap: 9px !important;
  }

  .account-shell .store-badges .store-tile {
    min-height: 70px;
    gap: 9px;
    padding: 10px;
  }

  .account-shell .store-tile-icon {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    font-size: 19px;
  }

  .account-shell .store-tile-copy strong {
    font-size: 12px;
  }

  .account-shell .store-tile-copy small {
    font-size: 9px;
  }

  .stalker-status-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .stalker-status-value {
    max-width: none;
    text-align: left;
  }

  .account-shell .input-group {
    flex-wrap: wrap;
  }

  .account-shell .input-group > .form-control {
    min-width: 0;
  }

.account-shell .input-group > .btn {
    min-height: 44px;
  }
}

.playlist-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  margin: 0 !important;
}

.playlist-template-downloads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

.playlist-template-picker {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) minmax(190px, .55fr);
  align-items: center;
  gap: 11px;
  margin: 0;
  border: 1px solid var(--account-border);
  border-radius: 15px;
  background: var(--account-surface);
  padding: 13px;
}

.playlist-template-picker__icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: var(--account-button);
  background: rgba(8, 125, 179, .1);
}

.playlist-template-picker__copy,
.playlist-template-picker__copy strong,
.playlist-template-picker__copy small {
  display: block;
  min-width: 0;
}

.playlist-template-picker__copy strong {
  color: var(--account-ink);
  font-size: 15px;
}

.playlist-template-picker__copy small {
  margin-top: 3px;
  color: var(--account-muted);
  line-height: 1.4;
}

.playlist-template-picker .form-control {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 0 44px 0 15px;
  border: 1px solid var(--account-border);
  border-radius: 12px;
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--account-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23667085' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 15px center;
  background-repeat: no-repeat;
  background-size: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5);
  color: var(--account-ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.playlist-template-picker .form-control:hover {
  border-color: rgba(8, 125, 179, .42);
}

.playlist-template-picker .form-control:focus,
.playlist-template-picker .form-control:focus-visible {
  border-color: var(--account-accent-strong);
  outline: 0;
  background-color: var(--account-surface);
  box-shadow: 0 0 0 4px rgba(41, 182, 246, .16);
}

.playlist-template-picker .form-control:disabled {
  opacity: .62;
  cursor: not-allowed;
}

.playlist-template-picker .form-control option {
  background: var(--account-surface);
  color: var(--account-ink);
}

html[data-theme="dark"] .playlist-template-picker .form-control {
  border-color: rgba(255, 255, 255, .12);
  background-color: var(--account-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23a7b1ba' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
  color-scheme: dark;
}

html[data-theme="dark"] .playlist-template-picker .form-control:hover {
  border-color: rgba(85, 199, 244, .42);
  background-color: #1b2e3c;
}

html[data-theme="dark"] .playlist-template-picker .form-control:focus,
html[data-theme="dark"] .playlist-template-picker .form-control:focus-visible {
  border-color: #55c7f4;
  background-color: #142731;
  box-shadow: 0 0 0 4px rgba(85, 199, 244, .14);
}

.playlist-template-download {
  display: grid;
  align-content: start;
  gap: 11px;
  min-width: 0;
  border: 1px solid var(--account-border);
  border-radius: 16px;
  background: var(--account-surface);
  padding: 14px;
}

.playlist-template-download__heading {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.playlist-template-download__heading > div,
.playlist-template-download__heading strong,
.playlist-template-download__heading small {
  display: block;
  min-width: 0;
}

.playlist-template-download__heading strong {
  color: var(--account-ink);
  font-size: 15px;
}

.playlist-template-download__heading small {
  margin-top: 3px;
  color: var(--account-muted);
  line-height: 1.4;
}

.playlist-template-download__icon {
  display: inline-flex;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: var(--account-button);
  background: rgba(8, 125, 179, .1);
}

.playlist-template-download .playlist-entry {
  padding: 13px;
}

.playlist-entry {
  display: grid;
  gap: 11px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--account-border);
  border-radius: 15px;
  background: var(--account-soft);
}

.playlist-entry__heading {
  display: flex;
  gap: 9px;
  align-items: center;
  min-width: 0;
  color: var(--account-ink);
  font-size: 14px;
  line-height: 1.35;
}

.playlist-entry__icon {
  display: inline-flex;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(8, 125, 179, .1);
  color: var(--account-button);
  font-size: 15px;
}

.account-shell .playlist-input {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 12px 14px !important;
  border: 0;
  border-radius: 11px !important;
  background: #fff;
  color: #334155;
  font: 650 15px/1.45 Consolas, "SFMono-Regular", monospace;
  text-overflow: ellipsis;
}

.playlist-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.playlist-actions--single {
  grid-template-columns: 1fr;
}

.account-shell .playlist-action {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  text-align: center;
  text-transform: none;
}

/* Keep each format readable across the content area without stretching actions. */
.account-playlist-grid .playlist-template-downloads {
  grid-template-columns: minmax(0, 1fr);
}

.account-playlist-grid .playlist-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
}

.account-shell .account-playlist-grid .playlist-actions .playlist-action,
.account-shell .account-playlist-grid .account-card-action,
.account-shell .account-playlist-grid .playlist-pin-form__submit {
  flex: 0 1 auto;
  width: auto;
  max-width: 100%;
  justify-self: start;
  white-space: normal;
}

#wispLinksModule {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.wisp-section {
  min-width: 0;
}

.wisp-section + .wisp-section {
  padding-top: 22px;
  border-top: 1px solid var(--account-border);
}

.wisp-section-title {
  margin: 17px 0 12px;
  color: var(--account-ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}

.wisp-link-list {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.wisp-link-entry {
  margin: 0;
}

@media (min-width: 992px) {
  .account-card--portal-links .store-badges {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .account-card--portal-links .wisp-link-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.credential-list {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.credential-item {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.credential-label {
  color: var(--account-muted);
  font-size: 13px;
  font-weight: 750;
}

.credential-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(138px, auto);
  gap: 10px;
  align-items: stretch;
  min-width: 0;
}

.credential-value {
  display: flex;
  min-width: 0;
  min-height: 46px;
  align-items: center;
  padding: 11px 13px;
  overflow: hidden;
  border-radius: 11px;
  background: var(--account-soft);
  color: #1675bd;
  font: 700 14px/1.4 Consolas, "SFMono-Regular", monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-shell .credential-copy {
  width: 100%;
  min-height: 46px;
  margin: 0;
}

.sync-error-details {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 14px 15px;
  border: 1px solid rgba(220, 53, 69, .22);
  border-left: 4px solid #dc3545;
  border-radius: 13px;
  background: #fff7f8;
  color: #5f1d25;
}

.sync-error-details__header {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.sync-error-details__header > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.sync-error-details__icon {
  display: inline-flex;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(220, 53, 69, .1);
  color: #c93443;
}

.sync-error-details__header strong {
  color: #8f1f2c;
  font-size: 15px;
  line-height: 1.35;
}

.sync-error-details__code {
  color: #8b4b53;
  font-size: 12px;
  font-weight: 700;
}

.sync-error-details__code code {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 7px;
  background: rgba(220, 53, 69, .1);
  color: #a82232;
  font: 800 12px/1.4 Consolas, "SFMono-Regular", monospace;
}

.sync-error-details__message,
.sync-error-details__help {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.sync-error-details__message {
  color: #6f2029;
  font-weight: 750;
}

.sync-error-details__help {
  color: #7c5960;
}

.stalker-sync-result:empty {
  display: none;
}

.sync-success-details {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  padding: 13px 15px;
  border: 1px solid rgba(20, 143, 94, .22);
  border-radius: 13px;
  background: #f0fbf6;
  color: #126947;
  font-size: 14px;
  line-height: 1.45;
}

.sync-success-details__icon {
  display: inline-flex;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(20, 143, 94, .12);
  color: #148f5e;
}

@media (max-width: 575.98px) {
  .playlist-entry {
    padding: 13px;
  }

  .playlist-actions {
    grid-template-columns: 1fr;
  }

  .account-shell .playlist-input {
    min-height: 48px;
    font-size: 14px;
  }

  .credential-field {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .playlist-template-downloads {
    grid-template-columns: 1fr;
  }

  .playlist-template-picker {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .playlist-template-picker .form-control {
    grid-column: 1 / -1;
  }
}

.playlist-preview-launcher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--account-border);
  border-radius: 15px;
  background: var(--account-surface);
}

.playlist-preview-launcher strong,
.playlist-preview-launcher small {
  display: block;
}

.playlist-preview-launcher strong {
  color: var(--account-ink);
  font-size: 14px;
}

.playlist-preview-launcher small {
  margin-top: 3px;
  color: var(--account-muted);
  line-height: 1.4;
}

.playlist-preview-launcher .playlist-action {
  width: auto;
  flex: 0 0 auto;
}

body.playlist-preview-open {
  overflow: hidden;
}

.playlist-preview[hidden] {
  display: none;
}

.playlist-preview {
  position: fixed;
  z-index: 10070;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
}

.playlist-preview__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(5, 18, 29, .72);
  cursor: default;
}

.playlist-preview__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto auto auto auto auto minmax(120px, 1fr) auto auto;
  gap: 13px;
  width: min(1120px, 100%);
  max-height: calc(100dvh - 44px);
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--account-border);
  border-radius: 20px;
  outline: 0;
  background: var(--account-surface);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .34);
  color: var(--account-ink);
}

.playlist-preview__header,
.playlist-preview__toolbar,
.playlist-preview__summary,
.playlist-preview__pagination {
  display: flex;
  align-items: center;
  gap: 12px;
}

.playlist-preview__header {
  justify-content: space-between;
}

.playlist-preview__header h3 {
  margin: 2px 0 0;
  color: var(--account-ink);
  font-size: clamp(20px, 2.3vw, 28px);
}

.playlist-preview__eyebrow {
  color: var(--account-muted);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.playlist-preview__close,
.playlist-preview__pagination button {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  border: 1px solid var(--account-border);
  border-radius: 11px;
  background: var(--account-soft);
  color: var(--account-ink);
  cursor: pointer;
}

.playlist-preview__toolbar {
  flex-wrap: wrap;
}

.playlist-preview__toolbar label {
  display: grid;
  grid-template-columns: auto minmax(130px, 190px);
  align-items: center;
  gap: 8px;
  margin: 0 auto 0 0;
  color: var(--account-muted);
  font-size: 13px;
  font-weight: 750;
}

.playlist-preview__toolbar .playlist-action {
  width: auto;
}

.playlist-preview__status {
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid var(--account-border);
  border-radius: 12px;
  background: var(--account-soft);
  color: var(--account-muted);
  line-height: 1.45;
}

.playlist-preview__status.is-success {
  border-color: rgba(20, 143, 94, .4);
  background: rgba(20, 143, 94, .1);
  color: #14835a;
}

.playlist-preview__status.is-error {
  border-color: rgba(220, 53, 69, .4);
  background: rgba(220, 53, 69, .1);
  color: #bb3442;
}

.playlist-preview__status.is-warning,
.playlist-preview__status.is-empty {
  border-color: rgba(217, 146, 30, .45);
  background: rgba(217, 146, 30, .11);
  color: #8b5d13;
}

.playlist-preview__summary {
  align-items: flex-start;
  padding: 12px 13px;
  border: 1px solid var(--account-border);
  border-radius: 12px;
  background: var(--account-soft);
}

.playlist-preview__summary > strong {
  flex: 0 0 auto;
  padding-top: 5px;
  color: var(--account-ink);
}

.playlist-preview__summary ol {
  display: flex;
  min-width: 0;
  max-height: 92px;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.playlist-preview__summary li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border: 1px solid var(--account-border);
  border-radius: 999px;
  background: var(--account-surface);
  color: var(--account-muted);
  font-size: 12px;
}

.playlist-preview__summary li strong {
  color: var(--account-button);
}

.playlist-preview__search {
  position: relative;
  display: block;
  margin: 0;
}

.playlist-preview__search i {
  position: absolute;
  top: 50%;
  left: 14px;
  color: var(--account-muted);
  transform: translateY(-50%);
}

.playlist-preview__search .form-control {
  min-height: 44px;
  padding-left: 40px;
  border-color: var(--account-border);
  background: var(--account-soft);
  color: var(--account-ink);
}

.playlist-preview__list {
  min-height: 120px;
  overflow: auto;
  border: 1px solid var(--account-border);
  border-radius: 12px;
  background: var(--account-soft);
}

.playlist-preview-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 9px 13px;
  border-bottom: 1px solid var(--account-border);
}

.playlist-preview-row:last-child {
  border-bottom: 0;
}

.playlist-preview-row__order {
  color: var(--account-muted);
  font: 750 12px/1.3 Consolas, monospace;
}

.playlist-preview-row strong,
.playlist-preview-row small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playlist-preview-row strong {
  color: var(--account-ink);
  font-size: 14px;
}

.playlist-preview-row small {
  margin-top: 3px;
  color: var(--account-muted);
  font-size: 12px;
}

.playlist-preview__pagination {
  justify-content: center;
  color: var(--account-muted);
  font-size: 13px;
  font-weight: 740;
}

.playlist-preview__pagination button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.playlist-preview__raw {
  min-width: 0;
  color: var(--account-muted);
}

.playlist-preview__raw summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 740;
}

.playlist-preview__raw pre {
  max-height: 220px;
  margin: 10px 0 0;
  padding: 12px;
  overflow: auto;
  border: 1px solid var(--account-border);
  border-radius: 10px;
  background: var(--account-soft);
  color: var(--account-ink);
  font: 12px/1.5 Consolas, monospace;
  white-space: pre;
}

.playlist-preview[aria-busy="true"] .playlist-preview__status::before {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  content: "";
  vertical-align: -2px;
  animation: playlist-preview-spin .7s linear infinite;
}

.playlist-preview :is(button, a, input, select, summary):focus-visible {
  outline: 3px solid rgba(8, 125, 179, .35);
  outline-offset: 2px;
}

html[data-theme="dark"] .playlist-preview__status.is-success {
  color: #8be1bd;
}

html[data-theme="dark"] .playlist-preview__status.is-error {
  color: #ffadb5;
}

html[data-theme="dark"] .playlist-preview__status.is-warning,
html[data-theme="dark"] .playlist-preview__status.is-empty {
  color: #f5ca82;
}

html[data-theme="dark"] .playlist-preview__summary li strong {
  color: #70d2f7;
}

html[data-theme="dark"] .playlist-preview :is(button, a, input, select, summary):focus-visible {
  outline-color: rgba(112, 210, 247, .78);
}

@keyframes playlist-preview-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 767.98px) {
  .playlist-preview-launcher,
  .playlist-preview__header,
  .playlist-preview__summary {
    align-items: stretch;
    flex-direction: column;
  }

  .playlist-preview-launcher .playlist-action,
  .playlist-preview__toolbar .playlist-action {
    width: 100%;
  }

  .playlist-preview {
    align-items: end;
    padding: 8px;
  }

  .playlist-preview__dialog {
    width: 100%;
    max-height: calc(100dvh - 16px);
    padding: 15px;
    border-radius: 18px;
  }

  .playlist-preview__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
  }

  .playlist-preview__toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .playlist-preview__toolbar label {
    grid-template-columns: 1fr;
    width: 100%;
  }
}

.playlist-pin-intro {
  margin: 0 0 13px;
  color: var(--account-muted);
  font-size: 13px;
  line-height: 1.5;
}

.playlist-pin-help {
  padding-left: 13px;
  border-left: 3px solid rgba(8, 125, 179, .32);
}

.playlist-pin-help strong {
  display: block;
  margin: 0 0 6px;
  color: var(--account-ink);
  font-size: 13px;
  line-height: 1.35;
}

.playlist-pin-help ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 16px;
  color: var(--account-muted);
  font-size: 12px;
  line-height: 1.45;
}

.playlist-pin-form {
  display: block;
  width: 100%;
  margin-top: 13px;
}

.playlist-pin-form__field {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.playlist-pin-form__field input {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: 12px 16px;
  border: 0;
  border-radius: 11px;
  outline: 0;
  background: #eef3f8;
  color: var(--account-ink);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .22em;
  text-align: center;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.playlist-pin-form__field input:focus {
  border-color: var(--account-accent-strong);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(8, 125, 179, .16);
}

.playlist-pin-form__field small {
  color: var(--account-muted);
  font-size: 12px;
  line-height: 1.35;
}

.playlist-pin-toggle {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 13px 0 0;
  padding: 14px;
  border: 1px solid var(--account-border);
  border-radius: 14px;
  background: var(--account-soft);
  color: var(--account-ink);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.playlist-pin-toggle:hover {
  border-color: rgba(8, 125, 179, .28);
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .055);
}

.playlist-pin-toggle__copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.playlist-pin-toggle__copy strong {
  color: var(--account-ink);
  font-size: 14px;
  font-weight: 780;
  line-height: 1.35;
}

.playlist-pin-toggle__copy small {
  color: var(--account-muted);
  font-size: 12px;
  line-height: 1.45;
}

.playlist-pin-toggle__control {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 9px;
  align-items: center;
}

.playlist-pin-toggle__control input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.playlist-pin-toggle__track {
  position: relative;
  display: inline-flex;
  flex: 0 0 50px;
  width: 50px;
  height: 28px;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: #c7d2df;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, .08);
  transition: background .18s ease, box-shadow .18s ease;
}

.playlist-pin-toggle__track > span {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 7px rgba(15, 23, 42, .22);
  transform: translateX(0);
  transition: transform .18s ease;
}

.playlist-pin-toggle__control input:checked + .playlist-pin-toggle__track {
  background: var(--account-button);
  box-shadow: inset 0 0 0 1px rgba(6, 106, 152, .16), 0 5px 13px rgba(8, 125, 179, .18);
}

.playlist-pin-toggle__control input:checked + .playlist-pin-toggle__track > span {
  transform: translateX(22px);
}

.playlist-pin-toggle__control input:focus-visible + .playlist-pin-toggle__track {
  outline: 3px solid rgba(8, 125, 179, .3);
  outline-offset: 3px;
}

.playlist-pin-toggle__control input:disabled + .playlist-pin-toggle__track {
  cursor: wait;
  opacity: .72;
}

.playlist-pin-toggle__state {
  min-width: 68px;
  color: var(--account-muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-align: right;
}

.playlist-pin-toggle__state-on {
  display: none;
  color: var(--account-success);
}

.playlist-pin-toggle__control input:checked ~ .playlist-pin-toggle__state .playlist-pin-toggle__state-off {
  display: none;
}

.playlist-pin-toggle__control input:checked ~ .playlist-pin-toggle__state .playlist-pin-toggle__state-on {
  display: inline;
}

.account-shell .playlist-pin-form__submit {
  display: inline-flex !important;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  border-radius: 11px;
}

.playlist-pin-form .account-key-actions {
  width: 100%;
}

.playlist-pin-form[aria-busy="true"] {
  opacity: .72;
}

.playlist-pin-form[aria-busy="true"] .playlist-pin-form__submit {
  cursor: wait;
}

@media (max-width: 575.98px) {
  .playlist-pin-toggle {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .playlist-pin-toggle__control {
    width: 100%;
    justify-content: space-between;
  }
}

/* Google account linking: an explicit password-confirmation flow, shared by all skins. */
.google-auth-card__brand {
  display: inline-flex;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
}

.google-auth-card__brand svg {
  display: block;
  width: 21px;
  height: 21px;
}

.google-auth-status {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  margin: 0 0 15px;
  padding: 7px 11px;
  border: 1px solid var(--account-border);
  border-radius: 999px;
  background: var(--account-soft);
  color: var(--account-muted);
  font-size: 12px;
  font-weight: 780;
  line-height: 1.2;
}

.google-auth-status__dot {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8a99a8;
  box-shadow: 0 0 0 4px rgba(138, 153, 168, .12);
}

.google-auth-status--linked {
  border-color: rgba(21, 132, 91, .2);
  background: rgba(21, 132, 91, .08);
  color: var(--account-success);
}

.google-auth-status--linked .google-auth-status__dot {
  background: var(--account-success);
  box-shadow: 0 0 0 4px rgba(21, 132, 91, .12);
}

.google-auth-email {
  display: grid;
  gap: 3px;
  margin: 0 0 16px;
  padding: 13px 14px;
  border: 1px solid var(--account-border);
  border-radius: 12px;
  background: var(--account-soft);
}

.google-auth-email__label {
  color: var(--account-muted);
  font-size: 11px;
  font-weight: 730;
  letter-spacing: .03em;
  line-height: 1.25;
  text-transform: uppercase;
}

.google-auth-email strong {
  overflow-wrap: anywhere;
  color: var(--account-ink);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.4;
}

.google-auth-card__action {
  display: inline-flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 10px 15px;
  border: 1px solid var(--account-button);
  border-radius: 11px;
  background: var(--account-button);
  box-shadow: 0 8px 18px rgba(8, 125, 179, .2);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 780;
  line-height: 1.3;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.google-auth-card__action:hover {
  border-color: var(--account-button-hover);
  background: var(--account-button-hover);
  box-shadow: 0 11px 22px rgba(8, 106, 152, .26);
  transform: translateY(-1px);
}

.google-auth-card__action--danger {
  border-color: rgba(198, 54, 59, .42);
  background: transparent;
  box-shadow: none;
  color: #b52f35;
}

.google-auth-card__action--danger:hover {
  border-color: #b52f35;
  background: rgba(229, 72, 77, .1);
  box-shadow: none;
  color: #a1262b;
}

.google-auth-card__action:focus-visible {
  outline: 3px solid rgba(8, 125, 179, .32);
  outline-offset: 3px;
}

html.google-auth-dialog-open,
html.google-auth-dialog-open body {
  overflow: hidden;
}

html.google-auth-dialog-open #chatni-widget-root {
  visibility: hidden !important;
  pointer-events: none !important;
}

.google-auth-dialog[hidden] {
  display: none !important;
}

.google-auth-dialog {
  --google-dialog-bg: #fff;
  --google-dialog-soft: #f4f8fc;
  --google-dialog-border: #c9d6e2;
  --google-dialog-ink: #102334;
  --google-dialog-muted: #53697b;
  position: fixed;
  z-index: 2147483100;
  inset: 0;
  display: grid;
  align-items: center;
  justify-items: center;
  width: 100%;
  height: 100dvh;
  padding: 18px;
  overflow-x: hidden;
  overflow-y: auto;
  background: rgba(2, 10, 17, .76);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity .16s ease;
}

.google-auth-dialog.is-open {
  opacity: 1;
}

html[data-theme="dark"] .google-auth-dialog {
  --google-dialog-bg: #10212c;
  --google-dialog-soft: #172d3b;
  --google-dialog-border: #365266;
  --google-dialog-ink: #f5f8fb;
  --google-dialog-muted: #b3c4d0;
  background: rgba(1, 8, 13, .84);
}

.google-auth-dialog__surface {
  position: relative;
  width: min(100%, 500px);
  max-height: calc(100dvh - 36px);
  margin: auto;
  padding: 26px;
  overflow-y: auto;
  border: 1px solid var(--google-dialog-border);
  border-radius: 20px;
  background: var(--google-dialog-bg);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .48), 0 0 0 1px rgba(255, 255, 255, .04);
  color: var(--google-dialog-ink);
  transform: translateY(10px) scale(.985);
  transition: transform .16s ease;
}

.google-auth-dialog.is-open .google-auth-dialog__surface {
  transform: none;
}

.google-auth-dialog__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--google-dialog-border);
  border-radius: 11px;
  background: var(--google-dialog-soft);
  color: var(--google-dialog-muted);
  cursor: pointer;
  font: inherit;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}

.google-auth-dialog__close:hover {
  border-color: rgba(229, 72, 77, .45);
  background: rgba(229, 72, 77, .1);
  color: #c6363b;
}

.google-auth-dialog__icon {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  margin: 0 0 17px;
  border-radius: 14px;
  background: rgba(41, 182, 246, .12);
  color: var(--account-button);
  font-size: 19px;
}

.google-auth-dialog__icon--danger {
  background: rgba(229, 72, 77, .1);
  color: #c6363b;
}

.google-auth-dialog__surface h3 {
  margin: 0 48px 8px 0;
  color: var(--google-dialog-ink);
  font-size: 22px;
  font-weight: 820;
  letter-spacing: -.02em;
  line-height: 1.22;
}

.google-auth-dialog__surface > p {
  margin: 0 0 20px;
  color: var(--google-dialog-muted);
  font-size: 14px;
  line-height: 1.55;
}

.google-auth-dialog__form {
  display: grid;
  gap: 8px;
  margin: 0;
}

.google-auth-dialog__form label {
  color: var(--google-dialog-ink);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.35;
}

.google-auth-dialog__form input[type="password"] {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--google-dialog-border);
  border-radius: 11px;
  outline: 0;
  background: var(--google-dialog-soft);
  box-shadow: none;
  color: var(--google-dialog-ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.35;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.google-auth-dialog__form input[type="password"]:focus {
  border-color: var(--account-accent-strong);
  background: var(--google-dialog-bg);
  box-shadow: 0 0 0 3px rgba(41, 182, 246, .2);
}

.google-auth-dialog__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.google-auth-dialog__button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 11px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 780;
  line-height: 1.3;
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}

.google-auth-dialog__button--secondary {
  border-color: var(--google-dialog-border);
  background: var(--google-dialog-soft);
  color: var(--google-dialog-ink);
}

.google-auth-dialog__button--primary {
  border-color: var(--account-button);
  background: var(--account-button);
  color: #fff;
}

.google-auth-dialog__button--danger {
  border-color: #b52f35;
  background: #b52f35;
  color: #fff;
}

.google-auth-dialog__button:not(:disabled):hover {
  transform: translateY(-1px);
}

.google-auth-dialog__button--primary:not(:disabled):hover {
  border-color: var(--account-button-hover);
  background: var(--account-button-hover);
}

.google-auth-dialog__button--danger:not(:disabled):hover {
  border-color: #9f252b;
  background: #9f252b;
}

.google-auth-dialog__button:focus-visible,
.google-auth-dialog__close:focus-visible {
  outline: 3px solid rgba(41, 182, 246, .3);
  outline-offset: 3px;
}

.google-auth-dialog__button:disabled,
.google-auth-dialog__form[aria-busy="true"] input {
  cursor: wait;
  opacity: .7;
}

.google-auth-dialog__spinner {
  display: none;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, .42);
  border-top-color: #fff;
  border-radius: 50%;
  animation: google-auth-spin .7s linear infinite;
}

.google-auth-dialog__form[aria-busy="true"] .google-auth-dialog__spinner {
  display: inline-block;
}

@keyframes google-auth-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 575.98px) {
  .google-auth-dialog {
    align-items: end;
    padding: 10px;
  }

  .google-auth-dialog__surface {
    width: 100%;
    max-height: calc(100dvh - 20px);
    padding: 22px 18px 18px;
    border-radius: 18px;
  }

  .google-auth-dialog__close {
    top: 12px;
    right: 12px;
  }

  .google-auth-dialog__surface h3 {
    font-size: 20px;
  }

  .google-auth-dialog__actions {
    grid-template-columns: 1fr;
  }

  .google-auth-dialog__button--primary,
  .google-auth-dialog__button--danger {
    grid-row: 1;
  }
}

/* Customer two-factor settings. */
.account-twofactor-heading {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.account-twofactor-heading .account-card-title {
  flex: 1 1 auto;
}

.account-twofactor-status {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 7px;
  align-items: center;
  min-height: 30px;
  margin-top: -3px;
  padding: 5px 10px;
  border: 1px solid var(--account-border);
  border-radius: 999px;
  background: var(--account-soft);
  color: var(--account-muted);
  font-size: 12px;
  font-weight: 800;
}

.account-twofactor-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 14%, transparent);
}

.account-twofactor-status--active {
  border-color: color-mix(in srgb, var(--account-success) 35%, transparent);
  background: color-mix(in srgb, var(--account-success) 10%, var(--account-surface));
  color: var(--account-success);
}

.account-twofactor-form {
  display: grid;
  gap: 15px;
}

.account-twofactor-field {
  display: grid;
  gap: 7px;
  margin: 0;
  color: var(--account-muted);
  font-size: 13px;
  font-weight: 750;
}

.account-twofactor-field :is(input, select) {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--account-border);
  border-radius: 12px;
  background: var(--account-soft);
  color: var(--account-ink);
  box-shadow: none;
}

.account-twofactor-field input[type="password"],
.account-twofactor-field input[type="password"]:-webkit-autofill {
  color: var(--account-ink) !important;
  caret-color: var(--account-accent-strong);
  -webkit-text-fill-color: var(--account-ink) !important;
  opacity: 1;
}

.account-twofactor-field :is(input, select):focus {
  border-color: var(--account-accent);
  background: var(--account-surface);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--account-accent) 17%, transparent);
  outline: 0;
}

.account-twofactor-pin-fields,
.account-twofactor-fields-grid {
  display: grid;
  gap: 12px;
}

.account-twofactor-fields-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-twofactor-email-hint,
.account-twofactor-notice {
  margin: 0;
  padding: 11px 13px;
  border: 1px solid color-mix(in srgb, var(--account-accent) 22%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--account-accent) 8%, var(--account-surface));
  color: var(--account-muted);
  font-size: 13px;
  line-height: 1.5;
}

.account-twofactor-email-hint strong {
  color: var(--account-ink);
  overflow-wrap: anywhere;
}

.account-twofactor-notice--success {
  border-color: color-mix(in srgb, var(--account-success) 26%, transparent);
  background: color-mix(in srgb, var(--account-success) 8%, var(--account-surface));
  color: var(--account-success);
}

.account-twofactor-notice--warning {
  border-color: rgba(190, 126, 0, .28);
  background: rgba(245, 158, 11, .09);
  color: #9a6400;
}

.account-twofactor-submit {
  display: inline-flex;
  width: 100%;
  min-height: 46px;
  gap: 9px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.account-twofactor-spinner {
  display: none;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, .42);
  border-top-color: #fff;
  border-radius: 50%;
  animation: account-twofactor-spin .7s linear infinite;
}

.account-twofactor-form[aria-busy="true"] .account-twofactor-spinner {
  display: inline-block;
}

.account-twofactor-form[aria-busy="true"] :is(input, select, button) {
  cursor: wait;
}

@keyframes account-twofactor-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 575.98px) {
  .account-twofactor-heading {
    display: grid;
  }

  .account-twofactor-status {
    width: max-content;
    margin: -7px 0 11px;
  }

  .account-twofactor-fields-grid {
    grid-template-columns: 1fr;
  }
}

/* Active cabinet sessions. */
.account-sessions-heading {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.account-sessions-heading .account-card-title {
  flex: 1 1 auto;
}

.account-sessions-revoke-all,
.account-session-revoke {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border: 1px solid rgba(201, 54, 63, .28);
  border-radius: 10px;
  background: color-mix(in srgb, #c9363f 7%, var(--account-surface));
  color: #b4232d;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.account-sessions-revoke-all:hover,
.account-session-revoke:hover {
  border-color: #b4232d;
  background: #b4232d;
  color: #fff;
}

.account-sessions-revoke-all:focus-visible,
.account-session-revoke:focus-visible {
  outline: 3px solid rgba(201, 54, 63, .22);
  outline-offset: 2px;
}

.account-sessions-list {
  display: grid;
  gap: 10px;
}

.account-session-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--account-border);
  border-radius: 14px;
  background: var(--account-soft);
}

.account-session-item.is-current {
  border-color: color-mix(in srgb, var(--account-success) 27%, transparent);
  background: color-mix(in srgb, var(--account-success) 6%, var(--account-surface));
}

.account-session-item__icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--account-accent) 11%, var(--account-surface));
  color: var(--account-accent-strong);
}

.account-session-item__body {
  min-width: 0;
}

.account-session-item__title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--account-ink);
  font-size: 14px;
}

.account-session-item__title strong {
  overflow-wrap: anywhere;
}

.account-session-current {
  padding: 3px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--account-success) 12%, var(--account-surface));
  color: var(--account-success);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.account-session-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 5px;
  color: var(--account-muted);
  font-size: 11px;
  line-height: 1.45;
}

.account-sessions-empty {
  padding: 18px;
  border: 1px dashed var(--account-border);
  border-radius: 14px;
  color: var(--account-muted);
  text-align: center;
  font-size: 13px;
}

.account-sessions-card[aria-busy="true"] {
  cursor: wait;
  opacity: .72;
}

@media (max-width: 575.98px) {
  .account-sessions-heading {
    display: grid;
  }

  .account-sessions-revoke-all {
    width: 100%;
    margin: -7px 0 10px;
  }

  .account-session-item {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .account-session-revoke {
    grid-column: 1 / -1;
    width: 100%;
  }

  .account-session-item__meta {
    display: grid;
  }
}

/* Єдиний стиль звичайних дій кабінету. Небезпечні кнопки лишаються червоними. */
.account-shell .account-action,
.account-shell .theme-btn:not(.red):not(.green),
.account-shell .btn:not(.btn-danger):not(.btn-outline-danger),
.account-shell .account-copy-button,
.account-shell .account-key-copy,
.account-shell .account-key-change,
.account-shell .dl-link,
.account-shell .greens {
  border: 0 !important;
  background: var(--account-button) !important;
  box-shadow: 0 8px 18px rgba(8, 125, 179, .2) !important;
  color: #fff !important;
}

.account-shell .account-action:not([aria-disabled="true"]):hover,
.account-shell .theme-btn:not(.red):not(.green):not(:disabled):hover,
.account-shell .btn:not(.btn-danger):not(.btn-outline-danger):not(:disabled):hover,
.account-shell .account-copy-button:not(:disabled):hover,
.account-shell .account-key-copy:not(:disabled):hover,
.account-shell .account-key-change:not(:disabled):hover,
.account-shell .dl-link:hover,
.account-shell .greens:hover {
  border: 0 !important;
  background: var(--account-button-hover) !important;
  box-shadow: 0 11px 22px rgba(8, 106, 152, .26) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.account-shell .account-action:focus-visible,
.account-shell .theme-btn:focus-visible,
.account-shell .btn:focus-visible,
.account-shell .account-copy-button:focus-visible,
.account-shell .account-key-copy:focus-visible,
.account-shell .account-key-change:focus-visible,
.account-shell .dl-link:focus-visible,
.account-shell .greens:focus-visible {
  outline: 3px solid rgba(8, 125, 179, .34) !important;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .account-shell *,
  .account-shell *::before,
  .account-shell *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
