.account-dashboard-page .mto-auth-main {
  align-items: flex-start;
  padding-top: clamp(24px, 4vw, 52px);
  padding-bottom: clamp(44px, 7vw, 88px);
}

.account-dashboard {
  --account-red: #ee334d;
  --account-red-deep: #a7102b;
  --account-purple: #8655d9;
  --account-blue: #55b7e8;
  --account-green: #54d39a;
  --account-panel: rgb(255 255 255 / 0.045);
  --account-panel-strong: rgb(255 255 255 / 0.075);
  --account-line: rgb(255 255 255 / 0.11);
  width: min(100%, 1180px);
  min-height: 480px;
  padding: clamp(20px, 3.2vw, 38px);
  overflow: clip;
  border-radius: 26px;
  background:
    radial-gradient(circle at 96% 2%, rgb(134 85 217 / 0.17), transparent 32%),
    radial-gradient(circle at 4% 22%, rgb(238 51 77 / 0.1), transparent 28%),
    linear-gradient(155deg, rgb(28 28 38 / 0.98), rgb(16 16 23 / 0.99));
}

.account-dashboard::after {
  position: absolute;
  z-index: 0;
  right: -115px;
  bottom: -145px;
  width: 310px;
  height: 310px;
  border: 1px solid rgb(255 255 255 / 0.06);
  border-radius: 50%;
  box-shadow:
    0 0 0 36px rgb(255 255 255 / 0.018),
    0 0 0 78px rgb(255 255 255 / 0.012);
  content: "";
  pointer-events: none;
}

.account-dashboard > * {
  position: relative;
  z-index: 1;
}

.account-dashboard [hidden] {
  display: none !important;
}

.account-dashboard button,
.account-dashboard a {
  -webkit-tap-highlight-color: transparent;
}

.account-dashboard button:focus-visible,
.account-dashboard a:focus-visible,
.account-dashboard [tabindex]:focus-visible {
  outline: 3px solid rgb(111 205 255 / 0.68);
  outline-offset: 3px;
}

.account-boot {
  width: min(100%, 520px);
  margin: 34px auto;
  text-align: center;
}

.account-boot__pulse {
  display: flex;
  justify-content: center;
  gap: 7px;
  min-height: 20px;
  margin: 18px 0 4px;
}

.account-boot__pulse span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--account-red);
  animation: accountPulse 1.1s ease-in-out infinite;
}

.account-boot__pulse span:nth-child(2) { animation-delay: 120ms; }
.account-boot__pulse span:nth-child(3) { animation-delay: 240ms; }

@keyframes accountPulse {
  0%, 70%, 100% { opacity: 0.28; transform: translateY(0); }
  35% { opacity: 1; transform: translateY(-6px); }
}

.account-dashboard__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.account-dashboard__content > * {
  min-width: 0;
}

.account-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--account-line);
}

.account-profile {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.account-profile__avatar {
  position: relative;
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  border: 2px solid rgb(255 255 255 / 0.22);
  box-shadow:
    0 0 0 5px rgb(238 51 77 / 0.11),
    0 14px 34px rgb(0 0 0 / 0.28);
}

.account-profile__avatar::after {
  position: absolute;
  right: 8px;
  bottom: 7px;
  width: 10px;
  height: 10px;
  border: 2px solid #241a25;
  border-radius: 50%;
  background: var(--account-green);
  content: "";
}

.account-profile__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.account-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  color: var(--mto-text-faint);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.account-beta-badge {
  padding: 3px 7px;
  border: 1px solid rgb(238 51 77 / 0.38);
  border-radius: 999px;
  color: #ffdbe0;
  background: rgb(238 51 77 / 0.12);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.account-profile__name {
  max-width: 580px;
  margin: 0;
  color: #fff;
  font-size: clamp(27px, 4vw, 40px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.account-profile__state {
  margin: 7px 0 0;
  color: var(--mto-text-soft);
  font-size: 13px;
}

.account-hero__actions,
.account-data-card__actions,
.account-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.account-hero__actions form {
  margin: 0;
}

.account-button {
  width: auto;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #fff;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 820;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 140ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.account-button:hover { transform: translateY(-1px); }
.account-button:active { transform: translateY(0) scale(0.98); }
.account-button:disabled { opacity: 0.42; transform: none; cursor: not-allowed; }

.account-button--primary {
  background: linear-gradient(135deg, var(--account-red), var(--account-red-deep));
  box-shadow: 0 8px 22px rgb(181 20 47 / 0.23);
}

.account-button--primary:hover {
  box-shadow: 0 10px 26px rgb(238 51 77 / 0.34);
}

.account-button--secondary {
  border-color: var(--account-line);
  background: rgb(255 255 255 / 0.055);
}

.account-button--secondary:hover {
  border-color: rgb(255 255 255 / 0.2);
  background: rgb(255 255 255 / 0.09);
}

.account-button--quiet {
  min-height: 38px;
  padding: 7px 10px;
  color: var(--mto-text-soft);
}

.account-button--quiet:hover { color: #fff; background: rgb(255 255 255 / 0.06); }

.account-button--danger {
  border-color: rgb(238 51 77 / 0.38);
  color: #ffdce2;
  background: rgb(167 16 43 / 0.12);
}

.account-button--danger:hover {
  border-color: rgb(238 51 77 / 0.7);
  background: rgb(167 16 43 / 0.24);
}

.account-button--compact {
  min-height: 36px;
  padding: 7px 11px;
  border-radius: 9px;
  font-size: 12px;
}

.account-import-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  border: 1px solid rgb(85 183 232 / 0.28);
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgb(85 183 232 / 0.1), rgb(134 85 217 / 0.07)),
    rgb(255 255 255 / 0.025);
}

.account-import-banner__mark {
  position: relative;
  width: 34px;
  height: 34px;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 50%;
  background: radial-gradient(circle at center, var(--account-blue) 0 4px, transparent 5px);
}

.account-import-banner__mark::before,
.account-import-banner__mark::after {
  position: absolute;
  top: 15px;
  width: 8px;
  height: 3px;
  border-radius: 999px;
  background: var(--account-blue);
  content: "";
}

.account-import-banner__mark::before { left: 5px; }
.account-import-banner__mark::after { right: 5px; }

.account-import-banner__copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.account-import-banner__copy strong { color: #fff; font-size: 13px; }
.account-import-banner__copy span { color: var(--mto-text-soft); font-size: 12px; }

.account-tabs {
  min-width: 0;
  border-bottom: 1px solid var(--account-line);
}

.account-tabs__list {
  width: 100%;
  min-width: 0;
  display: flex;
  gap: 3px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}

.account-tab {
  position: relative;
  min-height: 49px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 11px;
  border: 0;
  color: var(--mto-text-faint);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 780;
  cursor: pointer;
}

.account-tab::after {
  position: absolute;
  right: 10px;
  bottom: -1px;
  left: 10px;
  height: 2px;
  border-radius: 999px 999px 0 0;
  background: var(--account-red);
  content: "";
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 160ms ease, transform 160ms ease;
}

.account-tab:hover {
  color: var(--mto-text-soft);
  background: rgb(255 255 255 / 0.03);
}

.account-tab[aria-selected="true"] { color: #fff; }
.account-tab[aria-selected="true"]::after { opacity: 1; transform: scaleX(1); }

.account-tab__dot {
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.account-tab[aria-selected="true"] .account-tab__dot {
  border-color: var(--account-red);
  background: var(--account-red);
  box-shadow: 0 0 0 4px rgb(238 51 77 / 0.12);
}

.account-tab__count {
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 999px;
  color: var(--mto-text-soft);
  background: rgb(255 255 255 / 0.08);
  font-size: 10px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.account-panels {
  min-height: 430px;
}

.account-panel {
  min-width: 0;
  outline: none;
}

.account-panel__heading,
.account-surface__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.account-panel__heading { margin-bottom: 20px; }

.account-panel__heading h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(22px, 3.2vw, 29px);
}

.account-panel__description {
  max-width: 720px;
  margin: 7px 0 0;
  color: var(--mto-text-soft);
  font-size: 13px;
  line-height: 1.55;
}

.account-kicker {
  margin: 0 0 5px;
  color: #ff96a5;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.account-sync-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 320px;
  padding: 6px 9px;
  border: 1px solid var(--account-line);
  border-radius: 999px;
  color: var(--mto-text-faint);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-sync-chip::before {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #ffb24c;
  content: "";
}

.account-sync-chip.is-synced::before {
  background: var(--account-green);
  box-shadow: 0 0 0 4px rgb(84 211 154 / 0.1);
}

.account-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.account-stat {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 3px 12px;
  padding: 16px;
  border: 1px solid var(--account-line);
  border-radius: 13px;
  background: var(--account-panel);
}

.account-stat__mark {
  position: relative;
  width: 38px;
  height: 38px;
  grid-row: 1 / 3;
  align-self: center;
  border: 1px solid var(--account-line);
  border-radius: 12px;
}

.account-stat__mark--progress::before {
  position: absolute;
  top: 11px;
  left: 13px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid #ff8798;
  content: "";
}

.account-stat__mark--complete::before {
  position: absolute;
  top: 9px;
  left: 13px;
  width: 8px;
  height: 14px;
  border-right: 2px solid #bde990;
  border-bottom: 2px solid #bde990;
  content: "";
  transform: rotate(42deg);
}

.account-stat__mark--total::before {
  position: absolute;
  inset: 9px;
  border: 2px solid #bc9df3;
  border-radius: 50%;
  content: "";
}

.account-stat__value {
  align-self: end;
  color: #fff;
  font-size: 25px;
  font-weight: 850;
  line-height: 1;
}

.account-stat__label {
  color: var(--mto-text-faint);
  font-size: 11px;
}

.account-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.8fr);
  gap: 16px;
}

.account-surface {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--account-line);
  border-radius: 14px;
  background: var(--account-panel);
}

.account-surface--featured {
  background:
    linear-gradient(120deg, rgb(238 51 77 / 0.11), transparent 42%),
    var(--account-panel);
}

.account-surface__heading { margin-bottom: 15px; }

.account-surface__heading h3,
.account-data-card h3,
.account-beta-note h3 {
  margin: 0;
  color: #fff;
  font-size: 17px;
}

.account-text-button {
  min-height: 34px;
  padding: 5px 8px;
  border: 0;
  border-radius: 7px;
  color: #ffb0bb;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.account-text-button:hover { color: #fff; background: rgb(255 255 255 / 0.06); }
.account-text-button--danger { color: #ff93a3; }

.account-beta-note {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 12%, rgb(134 85 217 / 0.22), transparent 9rem),
    var(--account-panel);
}

.account-beta-note > p:not(.account-kicker) {
  margin: 9px 0 0;
  color: var(--mto-text-soft);
  font-size: 13px;
  line-height: 1.55;
}

.account-beta-note .account-beta-note__footnote {
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid var(--account-line);
  color: var(--mto-text-faint);
  font-size: 11px;
}

.account-beta-note__orb {
  position: absolute;
  top: -36px;
  right: -30px;
  width: 116px;
  height: 116px;
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 50%;
}

.account-feature-slot { min-height: 145px; }

.account-toast {
  position: sticky;
  z-index: 20;
  top: 12px;
  padding: 11px 14px;
  border: 1px solid rgb(85 183 232 / 0.38);
  border-radius: 10px;
  color: #d8f1ff;
  background: rgb(30 54 71 / 0.96);
  box-shadow: 0 10px 34px rgb(0 0 0 / 0.32);
  font-size: 13px;
}

.account-toast--success {
  color: #d4f9e2;
  border-color: rgb(84 211 154 / 0.4);
  background: rgb(27 70 49 / 0.96);
}

.account-toast--error {
  color: #ffe0e5;
  border-color: rgb(255 92 115 / 0.48);
  background: rgb(89 28 39 / 0.97);
}

.account-episode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.account-episode-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--account-line);
  border-radius: 15px;
  background: rgb(10 10 16 / 0.44);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.account-episode-card:hover {
  border-color: rgb(255 255 255 / 0.2);
  box-shadow: 0 15px 38px rgb(0 0 0 / 0.26);
  transform: translateY(-2px);
}

.account-episode-card--compact {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1fr);
}

.account-episode-card__media {
  position: relative;
  min-height: 142px;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 28%, rgb(238 51 77 / 0.36) 0 8px, transparent 9px),
    radial-gradient(circle at 72% 65%, rgb(255 255 255 / 0.08) 0 5px, transparent 6px),
    linear-gradient(135deg, #2b1b2c, #171720 62%, #222039);
}

.account-episode-card:not(.account-episode-card--compact) .account-episode-card__media {
  aspect-ratio: 16 / 9;
  min-height: 0;
}

.account-episode-card__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.account-language-chip {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 33px;
  padding: 5px 8px;
  border: 1px solid rgb(255 255 255 / 0.3);
  border-radius: 999px;
  color: #fff;
  background: rgb(8 8 13 / 0.8);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  backdrop-filter: blur(5px);
}

.account-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: none;
  height: 5px;
  display: block;
  overflow: hidden;
  border: 0;
  background: rgb(255 255 255 / 0.18);
  appearance: none;
}

.account-progress::-webkit-progress-bar {
  background: rgb(255 255 255 / 0.18);
}

.account-progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--account-red), #ff8294);
}

.account-progress::-moz-progress-bar {
  background: linear-gradient(90deg, var(--account-red), #ff8294);
}

.account-episode-card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 15px;
}

.account-episode-card--compact .account-episode-card__body {
  align-self: stretch;
  justify-content: center;
}

.account-episode-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  color: #ff9dac;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.account-episode-card__title {
  margin: 0;
  color: #fff;
  font-size: 16px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.account-episode-card__detail,
.account-episode-card__date {
  margin: 7px 0 0;
  color: var(--mto-text-faint);
  font-size: 11px;
  line-height: 1.45;
}

.account-episode-card__date { margin-top: 4px; }

.account-episode-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.account-episode-card__actions .account-button {
  min-height: 36px;
  flex: 1 1 auto;
  padding: 7px 10px;
  font-size: 11px;
}

.account-history-list {
  display: grid;
  gap: 9px;
}

.account-history-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 11px;
  border: 1px solid var(--account-line);
  border-radius: 13px;
  background: var(--account-panel);
}

.account-history-row__image {
  width: 92px;
  aspect-ratio: 16 / 9;
  display: block;
  border-radius: 8px;
  background: linear-gradient(135deg, #2b1b2c, #1a1924);
  object-fit: cover;
}

.account-history-row__copy {
  min-width: 0;
}

.account-history-row__copy h3 {
  display: block;
  margin: 0;
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.account-history-row__copy p {
  display: block;
  margin-top: 4px;
  margin-bottom: 0;
  color: var(--mto-text-faint);
  font-size: 11px;
}

.account-history-row__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.account-history-row__actions .account-text-button {
  min-height: 32px;
  font-size: 11px;
}

.account-empty {
  min-height: 158px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 25px;
  border: 1px dashed var(--account-line);
  border-radius: 14px;
  color: var(--mto-text-faint);
  text-align: center;
}

.account-empty__mark {
  position: relative;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 50%;
}

.account-empty__mark::before {
  position: absolute;
  top: 19px;
  left: 19px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--account-red);
  box-shadow: -9px -6px 0 rgb(255 255 255 / 0.22), 9px -6px 0 rgb(255 255 255 / 0.22);
  content: "";
}

.account-empty h3 {
  margin: 0;
  color: #fff;
  font-size: 16px;
}

.account-empty p {
  max-width: 480px;
  margin: 7px 0 0;
  font-size: 12px;
  line-height: 1.55;
}

.account-empty .account-button { margin-top: 14px; }

.account-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.account-data-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--account-line);
  border-radius: 14px;
  background: var(--account-panel);
}

.account-data-card--wide { grid-column: 1 / -1; }

.account-data-card__heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.account-data-card__heading > div { min-width: 0; }

.account-data-card__heading h3 {
  margin: 0;
  color: #fff;
  font-size: 17px;
}

.account-data-card__heading p {
  margin: 5px 0 0;
  color: var(--mto-text-faint);
  font-size: 11px;
}

.account-data-card__icon {
  position: relative;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid var(--account-line);
  border-radius: 12px;
  background: rgb(255 255 255 / 0.02);
}

.account-data-card__icon--device::before {
  position: absolute;
  inset: 9px 10px 10px;
  border: 2px solid #b9dff5;
  border-radius: 3px;
  content: "";
}

.account-data-card__icon--device::after {
  position: absolute;
  right: 13px;
  bottom: 6px;
  left: 13px;
  height: 2px;
  background: #b9dff5;
  content: "";
}

.account-data-card__icon--account::before {
  position: absolute;
  top: 8px;
  left: 14px;
  width: 9px;
  height: 9px;
  border: 2px solid #ff9caa;
  border-radius: 50%;
  content: "";
}

.account-data-card__icon--account::after {
  position: absolute;
  right: 9px;
  bottom: 7px;
  left: 9px;
  height: 10px;
  border: 2px solid #ff9caa;
  border-radius: 10px 10px 4px 4px;
  content: "";
}

.account-data-card__icon--privacy::before {
  position: absolute;
  top: 8px;
  left: 11px;
  width: 15px;
  height: 19px;
  border: 2px solid #c8aff7;
  border-radius: 10px 10px 12px 12px;
  content: "";
}

.account-data-card__body {
  min-height: 60px;
  margin: 15px 0;
  color: var(--mto-text-soft);
  font-size: 12px;
  line-height: 1.58;
}

.account-data-card__note {
  margin: 13px 0 0;
  padding-top: 11px;
  border-top: 1px solid var(--account-line);
  color: var(--mto-text-faint);
  font-size: 10px;
  line-height: 1.45;
}

.account-data-card__note--danger { color: #ff9dac; }

.account-privacy-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.account-privacy-list li {
  position: relative;
  padding: 11px 11px 11px 29px;
  border: 1px solid var(--account-line);
  border-radius: 10px;
  color: var(--mto-text-soft);
  font-size: 11px;
  line-height: 1.5;
}

.account-privacy-list li::before {
  position: absolute;
  top: 15px;
  left: 12px;
  width: 8px;
  height: 8px;
  border: 2px solid #bde990;
  border-radius: 50%;
  content: "";
}

.account-dialog {
  width: min(92vw, 440px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 17px;
  color: var(--mto-text);
  background: #24242f;
  box-shadow: 0 28px 90px rgb(0 0 0 / 0.66);
}

.account-dialog::backdrop {
  background: rgb(3 3 7 / 0.72);
  backdrop-filter: blur(5px);
}

.account-dialog form { padding: 24px; }

.account-dialog__mark {
  position: relative;
  width: 40px;
  height: 40px;
  display: block;
  margin-bottom: 14px;
  border: 1px solid rgb(255 92 115 / 0.42);
  border-radius: 50%;
  background: rgb(167 16 43 / 0.18);
}

.account-dialog__mark::before {
  width: 5px;
  height: 5px;
  display: block;
  margin: 17px auto;
  border-radius: 50%;
  background: #ff8798;
  box-shadow: 0 -8px 0 -1px #ff8798;
  content: "";
}

.account-dialog h2 {
  margin: 0;
  color: #fff;
  font-size: 20px;
}

.account-dialog p {
  margin: 8px 0 0;
  color: var(--mto-text-soft);
  font-size: 13px;
  line-height: 1.55;
}

.account-dialog__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 21px;
}

@media (max-width: 920px) {
  .account-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-hero__actions {
    width: 100%;
    justify-content: flex-start;
  }

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

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

@media (max-width: 680px) {
  .account-dashboard-page .mto-auth-main { padding-top: 18px; }

  .auth-card.account-dashboard { padding: 18px 14px; }

  .account-stat-grid,
  .account-data-grid { grid-template-columns: 1fr; }

  .account-data-card--wide { grid-column: auto; }
  .account-privacy-list { grid-template-columns: 1fr; }

  .account-import-banner { grid-template-columns: auto minmax(0, 1fr); }

  .account-import-banner .account-button {
    width: 100%;
    grid-column: 1 / -1;
  }

  .account-panel__heading--actions {
    align-items: stretch;
    flex-direction: column;
  }

  .account-panel__heading--actions > .account-button { align-self: flex-start; }

  .account-history-row {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .account-history-row__image { width: 76px; }

  .account-history-row__actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .account-profile__avatar {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }

  .account-hero__actions,
  .account-hero__actions form,
  .account-hero__actions .account-button { width: 100%; }

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

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

  .account-history-row__image {
    width: 100%;
    max-height: 180px;
  }

  .account-history-row__actions { grid-column: auto; }

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

@media (prefers-reduced-motion: reduce) {
  .account-boot__pulse span,
  .account-button[aria-busy=true]::after {
    animation: none;
  }

  .account-episode-card,
  .account-button,
  .account-tab::after {
    transition: none;
  }
}

@media (forced-colors: active) {
  .account-stat,
  .account-surface,
  .account-episode-card,
  .account-history-row,
  .account-import-banner,
  .account-data-card,
  .account-dialog,
  .account-button {
    border: 1px solid CanvasText;
  }
}
