.nav > .nav-mobile-only {
  display: none;
}

@media (max-width: 820px) {
  .nav > .nav-mobile-only {
    display: block;
  }

  .nav > .nav-account-menu {
    display: none;
  }
}

.mobile-account {
  --account-ink: #293934;
  --account-muted: #586961;
  --account-line: #e4e8e2;
  --account-sage: #e5eee5;
  --account-clay: #f6e7df;
  display: grid;
  gap: 16px;
  max-width: 520px;
  min-width: 0;
  margin: 16px auto 24px;
  padding-inline: 4px;
  color: var(--account-ink);
}

.mobile-account-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 2px 2px 0;
}

.mobile-account-avatar,
.mobile-account-shortcut-icon,
.mobile-account-row-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #3d6552;
  background: var(--account-sage);
}

.mobile-account-avatar {
  width: 48px;
  height: 48px;
  border-radius: 15px 15px 15px 5px;
}

.mobile-account-avatar .library-icon {
  width: 25px;
  height: 25px;
}

.mobile-account-person {
  min-width: 0;
}

.mobile-account-person h1 {
  margin: 0;
  color: var(--account-ink);
  font-size: 23px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.mobile-account-person p,
.mobile-account-course-copy p {
  margin: 4px 0 0;
  color: var(--account-muted);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.mobile-account-courses {
  padding: 14px;
  border: 1px solid #eadfce;
  border-radius: 16px;
  background: #fff7e9;
}

.mobile-account-course-copy h2 {
  margin: 0;
  color: var(--account-ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
}

.mobile-account-course-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-top: 8px;
}

.mobile-account-courses-opened {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}

.mobile-account-courses-opened .mobile-account-course-actions {
  margin-top: 0;
}

.mobile-account-primary,
.mobile-account-text-action {
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.mobile-account-primary {
  color: #fff;
  background: #385e4d;
}

.mobile-account-text-action {
  color: #4f5b50;
  background: transparent;
}

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

.mobile-account-shortcut {
  display: flex;
  min-width: 0;
  min-height: 75px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 4px;
  border: 1px solid var(--account-line);
  border-radius: 12px;
  color: var(--account-ink);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.mobile-account-shortcut:only-child {
  grid-column: 1 / -1;
  min-height: 54px;
  flex-direction: row;
  justify-content: flex-start;
  gap: 10px;
  padding-inline: 11px;
  text-align: left;
}

.mobile-account-shortcut-icon,
.mobile-account-row-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.mobile-account-shortcut-icon .library-icon,
.mobile-account-row-icon .library-icon {
  width: 17px;
  height: 17px;
}

.mobile-account .tone-clay {
  color: #854a3a;
  background: var(--account-clay);
}

.mobile-account .tone-ochre {
  color: #765c33;
  background: #f5edda;
}

.mobile-account-shortcut small {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--account-muted);
  font-size: 11px;
  font-weight: 600;
}

.mobile-account-services {
  min-width: 0;
  border: 1px solid var(--account-line);
  border-radius: 14px;
  background: #fff;
}

.mobile-account-services > * + * {
  border-top: 1px solid var(--account-line);
}

.mobile-account-row,
.mobile-account-services .video-account-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 49px;
  margin: 0;
  padding: 6px 11px;
  border: 0;
  border-radius: 0;
  color: var(--account-ink);
  background: transparent;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  text-align: left;
}

.mobile-account-services > .mobile-account-row:not(:first-child),
.mobile-account-services > .video-account-link:not(:first-child) {
  border-top: 1px solid var(--account-line);
}

.mobile-account-row-label,
.mobile-account-services .video-account-copy {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.mobile-account-chevron,
.mobile-account-services .video-account-arrow {
  flex-shrink: 0;
  margin-left: auto;
  color: #65756c;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

.mobile-account-disclosure {
  min-width: 0;
}

.mobile-account-disclosure > summary {
  cursor: pointer;
  list-style: none;
}

.mobile-account-disclosure > summary::-webkit-details-marker {
  display: none;
}

.mobile-account-disclosure[open] > summary .mobile-account-chevron {
  transform: rotate(90deg);
}

.mobile-account-detail {
  min-width: 0;
  padding: 4px 11px 12px;
  color: var(--account-muted);
  overflow-wrap: anywhere;
}

.mobile-account-detail .panel-form,
.mobile-account-detail .device-panel,
.mobile-account-detail .account-purchase-strip {
  min-width: 0;
  margin: 0 0 8px;
  padding: 11px;
  border-radius: 10px;
}

.mobile-account-detail .panel-form input {
  width: 100%;
  min-width: 0;
}

.mobile-account-detail button,
.mobile-account-detail summary {
  min-height: 44px;
}

.mobile-account-detail summary {
  align-content: center;
  cursor: pointer;
}

.mobile-account-services .video-account-icon {
  flex: 0 0 30px;
  height: 30px;
  border-radius: 9px;
  color: #854a3a;
  background: var(--account-clay);
}

.mobile-account-services .video-account-icon svg {
  width: 17px;
  height: 17px;
}

.mobile-account-services .video-account-copy {
  gap: 2px;
}

.mobile-account-services .video-account-copy strong {
  font-size: 14px;
  font-weight: 650;
}

.mobile-account-services .video-account-copy > span {
  color: var(--account-muted);
  font-size: 11px;
  line-height: 1.35;
}

.mobile-account [data-payment-upgrade-notice],
.mobile-account .mobile-account-video-return {
  margin: 0;
  padding: 10px 11px;
  border-radius: 10px;
  color: #385e4d;
  background: var(--account-sage);
  font-size: 13px;
  line-height: 1.45;
}

.mobile-account-video-return a,
a.mobile-account-video-return {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #385e4d;
}

.mobile-account button:focus-visible,
.mobile-account summary:focus-visible,
.mobile-account a:focus-visible {
  outline: 2px solid #386854;
  outline-offset: -3px;
}
