/*
 * Shared prototype components.
 * Selectors are scoped to .prototype-page so these explorations cannot leak into
 * WooCommerce, LearnDash, FunnelKit, or existing production templates.
 */

.prototype-page {
  min-height: 100vh;
  padding-block-start: 88px;
  background:
    radial-gradient(circle at 8% 7%, rgba(237, 168, 178, .18), transparent 27rem),
    radial-gradient(circle at 92% 20%, rgba(244, 187, 62, .12), transparent 24rem),
    var(--cream);
}

.prototype-page h1,
.prototype-page h2,
.prototype-page h3,
.prototype-page p {
  margin-block-start: 0;
}

.prototype-ribbon {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 20px;
  border-block: 1px solid rgba(97, 44, 73, .13);
  background: #f3e9ed;
  color: var(--plum-900);
  font-size: 14px;
  text-align: center;
}

.prototype-ribbon__dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--plum-600);
  box-shadow: 0 0 0 5px rgba(143, 68, 117, .12);
}

.prototype-ribbon--sample {
  background: #fff5d9;
  color: #694d0b;
}

.prototype-ribbon--sample .prototype-ribbon__dot {
  background: #bf8612;
  box-shadow: 0 0 0 5px rgba(191, 134, 18, .13);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-block: 28px 16px;
  color: var(--ink-soft);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--plum-700);
}

.prototype-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  padding-block: 10px 34px;
}

.prototype-heading h1,
.dashboard-welcome h1 {
  margin-block: 9px 10px;
  color: var(--plum-900);
  font-size: clamp(32px, 4.3vw, 52px);
  line-height: 1.25;
  letter-spacing: -.035em;
}

.prototype-heading p,
.dashboard-welcome p {
  max-width: 690px;
  margin-block-end: 0;
  color: var(--ink-soft);
  font-size: 18px;
}

.checkout-steps {
  display: flex;
  min-width: 350px;
  align-items: center;
  gap: 9px;
  padding-block-end: 8px;
}

.checkout-steps span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #998b92;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.checkout-steps span b {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  font-family: var(--font-latin);
}

.checkout-steps span.is-current {
  color: var(--plum-800);
}

.checkout-steps span.is-current b {
  border-color: var(--plum-700);
  background: var(--plum-700);
  color: var(--white);
}

.checkout-steps i {
  width: 25px;
  height: 1px;
  background: var(--line);
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(350px, .78fr);
  gap: 32px;
  align-items: start;
  padding-block-end: 110px;
}

.checkout-form {
  display: grid;
  gap: 18px;
}

.checkout-card,
.order-summary__card,
.support-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--shadow-sm);
}

.login-note {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 15px;
  padding: 19px 22px;
}

.icon-box,
.account-card__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: var(--rose-100);
  color: var(--plum-700);
  font-family: var(--font-latin);
  font-weight: 700;
}

.login-note strong,
.login-note span {
  display: block;
}

.login-note span {
  color: var(--ink-soft);
  font-size: 14px;
}

.text-button,
.coupon-toggle,
.course-filters button {
  border: 0;
  background: transparent;
  color: var(--plum-700);
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 700;
}

.text-button {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.form-section {
  padding: clamp(23px, 4vw, 34px);
}

.form-section__heading {
  display: flex;
  align-items: start;
  gap: 16px;
  margin-block-end: 28px;
}

.section-number {
  display: grid;
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  background: var(--plum-700);
  color: var(--white);
  font-family: var(--font-latin);
  font-size: 13px;
  font-weight: 700;
}

.form-section__heading h2,
.summary-topline h2,
.dashboard-section h2,
.account-card h2 {
  margin-block-end: 2px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.45;
}

.form-section__heading p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

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

.field {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.field--full {
  grid-column: 1 / -1;
}

.field span em {
  color: #b43d57;
  font-style: normal;
}

.field span small {
  color: var(--ink-soft);
  font-weight: 400;
}

.field input {
  width: 100%;
  min-height: 53px;
  padding: 10px 15px;
  border: 1px solid #ded4d8;
  border-radius: 14px;
  outline: none;
  background: #fffdfb;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.field input::placeholder {
  color: #aaa0a5;
}

.field input:focus {
  border-color: var(--plum-600);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(143, 68, 117, .11);
}

.field input.is-invalid {
  border-color: #b93d55;
  background: #fff8f8;
  box-shadow: 0 0 0 4px rgba(185, 61, 85, .09);
}

.field small {
  color: var(--ink-soft);
  font-weight: 400;
}

.phone-field {
  display: grid;
  grid-template-columns: auto 1fr;
  overflow: hidden;
  border: 1px solid #ded4d8;
  border-radius: 14px;
  background: #fffdfb;
}

.phone-field > span {
  display: flex;
  align-items: center;
  padding-inline: 15px;
  border-inline-end: 1px solid #e9e0e3;
  color: var(--ink-soft);
  font-family: var(--font-latin);
  font-size: 13px;
}

.phone-field input {
  border: 0;
  border-radius: 0;
}

.phone-field:focus-within {
  border-color: var(--plum-600);
  box-shadow: 0 0 0 4px rgba(143, 68, 117, .11);
}

.phone-field input:focus {
  box-shadow: none;
}

.account-hint {
  display: flex;
  align-items: start;
  gap: 12px;
  margin-block-start: 22px;
  padding: 14px 16px;
  border-radius: 15px;
  background: #f7f2f4;
}

.account-hint > span {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--plum-700);
  color: var(--white);
  font-size: 12px;
}

.account-hint p,
.account-hint strong,
.account-hint small {
  display: block;
  margin: 0;
}

.account-hint small {
  margin-block-start: 2px;
  color: var(--ink-soft);
}

.payment-method {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--plum-600);
  border-radius: 17px;
  background: #fbf6f8;
  cursor: pointer;
}

.payment-method input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-mark {
  width: 20px;
  height: 20px;
  border: 5px solid var(--white);
  border-radius: 50%;
  background: var(--plum-700);
  box-shadow: 0 0 0 2px var(--plum-700);
}

.payment-copy strong,
.payment-copy small {
  display: block;
}

.payment-copy small {
  color: var(--ink-soft);
  font-weight: 400;
}

.paypal-mark {
  color: #143b7d;
  font-size: 18px;
  font-style: italic;
  font-weight: 700;
}

.paypal-mark span {
  color: #1684c7;
}

.payment-disclaimer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 4px 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.coupon-section {
  padding-block: 7px;
}

.coupon-toggle {
  display: flex;
  width: 100%;
  min-height: 65px;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
  text-align: start;
}

.coupon-toggle b,
.coupon-toggle small {
  display: block;
}

.coupon-toggle small {
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-weight: 400;
}

.coupon-toggle > span:last-child {
  font-size: 22px;
  transition: transform .2s ease;
}

.coupon-toggle[aria-expanded="true"] > span:last-child {
  transform: rotate(45deg);
}

.coupon-panel {
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
  padding-block: 8px 18px;
}

.coupon-panel:not([hidden]) {
  display: grid;
}

.coupon-panel p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.button--secondary {
  min-height: 53px;
  border-radius: 14px;
}

.preview-feedback {
  display: none;
  padding: 14px 17px;
  border: 1px solid transparent;
  border-radius: 15px;
  font-size: 14px;
}

.preview-feedback.is-visible {
  display: block;
}

.preview-feedback.is-error {
  border-color: rgba(185, 61, 85, .24);
  background: #fff0f2;
  color: #8b253a;
}

.preview-feedback.is-success {
  border-color: rgba(76, 132, 90, .25);
  background: #eff8f1;
  color: #315d3c;
}

.purchase-button {
  position: relative;
  width: 100%;
  min-height: 61px;
  border-radius: 17px;
  font-size: 16px;
}

.purchase-button.is-loading .button-loader {
  display: block;
}

.button-loader {
  display: none;
  width: 19px;
  height: 19px;
  border: 2px solid rgba(255, 255, 255, .4);
  border-block-start-color: var(--white);
  border-radius: 50%;
  animation: prototype-spin .7s linear infinite;
}

@keyframes prototype-spin {
  to { transform: rotate(1turn); }
}

.purchase-note {
  margin: -10px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  text-align: center;
}

.order-summary {
  position: sticky;
  inset-block-start: 112px;
  display: grid;
  gap: 15px;
}

.order-summary__card {
  overflow: hidden;
  padding: clamp(22px, 3vw, 30px);
}

.summary-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-block-end: 22px;
}

.summary-topline h2 {
  margin: 0;
}

.summary-topline > span,
.sample-badge,
.integration-tag {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--rose-100);
  color: var(--plum-700);
  font-size: 11px;
  font-weight: 700;
}

.summary-product {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 17px;
  align-items: center;
  padding-block-end: 22px;
  border-block-end: 1px solid var(--line);
}

.summary-product__image {
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 20px;
  background: #ecdce2;
}

.summary-product__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-label,
.course-kicker {
  color: var(--plum-600);
  font-size: 12px;
  font-weight: 700;
}

.summary-product h3 {
  margin-block: 3px 5px;
  font-size: 18px;
  line-height: 1.45;
}

.summary-product p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.65;
}

.included-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 21px 0;
  border-block-end: 1px solid var(--line);
  list-style: none;
}

.included-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #4d4147;
  font-size: 14px;
}

.included-list li span {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  background: #eaf3ec;
  color: #447653;
  font-size: 11px;
}

.summary-totals {
  display: grid;
  gap: 13px;
  padding-block-start: 20px;
}

.summary-totals > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.summary-totals del {
  margin-inline-end: 6px;
  color: #a3989d;
}

.summary-total {
  padding-block-start: 15px;
  border-block-start: 1px dashed #d9ced2;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
}

.summary-total strong {
  color: var(--plum-700);
  font-size: 28px;
}

.price-source {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.65;
}

.support-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px;
  box-shadow: none;
}

.support-card__icon {
  display: grid;
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--sun-soft);
  color: #6d4e0c;
  font-family: var(--font-heading);
  font-weight: 800;
}

.support-card strong,
.support-card span {
  display: block;
}

.support-card span {
  color: var(--ink-soft);
  font-size: 12px;
}

.truth-row {
  display: flex;
  justify-content: center;
  gap: 13px;
  color: var(--ink-soft);
  font-size: 10px;
}

/* Learner dashboard */
.dashboard-shell {
  padding-block: 52px 110px;
}

.dashboard-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-block-end: 35px;
}

.dashboard-welcome h1 {
  font-size: clamp(31px, 4vw, 48px);
}

.dashboard-welcome h1 em {
  color: var(--plum-600);
  font-style: normal;
}

.profile-chip {
  display: flex;
  min-width: 285px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, .8);
}

.profile-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--plum-700), var(--rose-300));
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
}

.profile-chip strong,
.profile-chip small {
  display: block;
}

.profile-chip small {
  color: var(--ink-soft);
  font-size: 12px;
}

.profile-chip button {
  margin-inline-start: auto;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.dashboard-nav {
  position: sticky;
  inset-block-start: 112px;
  overflow: hidden;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--shadow-sm);
}

.dashboard-nav__title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 7px 17px;
  border-block-end: 1px solid var(--line);
  font-family: var(--font-heading);
}

.mini-logo {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  background: var(--plum-700);
  color: var(--white);
  font-weight: 800;
}

.dashboard-nav nav {
  display: grid;
  gap: 5px;
  padding-block: 16px;
}

.dashboard-nav nav a {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 11px;
  padding: 8px 12px;
  border-radius: 12px;
  color: #61565b;
  font-size: 14px;
  font-weight: 700;
  transition: background-color .2s ease, color .2s ease;
}

.dashboard-nav nav a span {
  width: 20px;
  color: var(--plum-600);
  font-family: var(--font-latin);
  text-align: center;
}

.dashboard-nav nav a:hover,
.dashboard-nav nav a.is-active {
  background: var(--rose-100);
  color: var(--plum-800);
}

.dashboard-help {
  padding: 16px;
  border-radius: 17px;
  background: linear-gradient(150deg, #fbeced, #fff6df);
}

.dashboard-help > span {
  display: inline-block;
  color: var(--plum-600);
  margin-block-end: 6px;
}

.dashboard-help strong,
.dashboard-help p {
  display: block;
}

.dashboard-help p {
  margin-block: 4px 11px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.55;
}

.dashboard-help button,
.logout-link {
  border: 0;
  background: transparent;
  color: var(--plum-700);
  font-size: 12px;
  font-weight: 700;
}

.logout-link {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  margin-block-start: 13px;
  padding: 10px 12px;
  color: #9a4355;
  text-align: start;
}

.dashboard-content {
  min-width: 0;
}

.dashboard-section {
  scroll-margin-top: 120px;
}

.section-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-block-end: 18px;
}

.section-title-row h2 {
  margin: 2px 0 0;
  font-size: 25px;
}

.sample-badge {
  background: #fff4cf;
  color: #71520d;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-block-end: 37px;
}

.stat-card {
  display: flex;
  min-height: 135px;
  align-items: center;
  gap: 16px;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, .85);
  box-shadow: 0 13px 35px rgba(66, 39, 52, .06);
}

.stat-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 16px;
  font-family: var(--font-latin);
  font-size: 20px;
  font-weight: 700;
}

.stat-card--plum .stat-icon { background: #eadde4; color: var(--plum-700); }
.stat-card--gold .stat-icon { background: #fff0c5; color: #8b650e; }
.stat-card--rose .stat-icon { background: #fae5e7; color: #a04458; }

.stat-card strong,
.stat-card span,
.stat-card small {
  display: block;
}

.stat-card strong {
  color: var(--plum-900);
  font-size: 28px;
  line-height: 1.1;
}

.stat-card span {
  margin-block: 4px 1px;
  font-family: var(--font-heading);
  font-weight: 700;
}

.stat-card small {
  color: var(--ink-soft);
  font-size: 10px;
}

.courses-panel {
  margin-block-end: 38px;
}

.course-filters {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .75);
}

.course-filters button {
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 11px;
}

.course-filters button.is-active {
  background: var(--plum-700);
  color: var(--white);
}

.learning-course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}

.learning-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 15px 42px rgba(66, 39, 52, .08);
  transition: transform .3s var(--ease), box-shadow .3s ease;
}

.learning-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 23px 55px rgba(66, 39, 52, .13);
}

.learning-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.45;
  background: #eadde3;
}

.learning-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}

.learning-card:hover .learning-card__media img {
  transform: scale(1.04);
}

.status-pill {
  position: absolute;
  inset-block-start: 13px;
  inset-inline-start: 13px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--plum-700);
  font-size: 10px;
  font-weight: 700;
  box-shadow: 0 5px 15px rgba(40, 25, 32, .1);
}

.status-pill--complete { color: #38704b; }
.status-pill--new { color: #88600b; }

.learning-card__body {
  padding: 18px;
}

.learning-card h3 {
  min-height: 52px;
  margin-block: 3px 14px;
  font-size: 18px;
  line-height: 1.45;
}

.progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-block-end: 7px;
  color: var(--ink-soft);
  font-size: 11px;
}

.progress-label strong {
  color: var(--plum-700);
  font-size: 12px;
}

.progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee7ea;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--plum-700), var(--rose-300));
}

.progress-track.is-complete span {
  background: linear-gradient(90deg, #568467, #9fb9a7);
}

.learning-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-block: 9px 14px;
  color: #8b7f85;
  font-size: 9px;
}

.learning-card__action {
  width: 100%;
  min-height: 44px;
  padding: 7px 14px;
  border-radius: 13px;
  font-size: 12px;
}

.prototype-page button:disabled {
  cursor: not-allowed;
}

.learning-card__action:disabled,
.dashboard-help button:disabled,
.logout-link:disabled,
.profile-chip button:disabled {
  opacity: 1;
}

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

.account-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 15px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, .82);
}

.account-card h2 {
  margin: 0;
  font-size: 17px;
}

.account-card p {
  margin-block: 3px 8px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.6;
}

.integration-tag {
  display: inline-flex;
  background: #f3edf0;
  font-family: var(--font-latin);
  font-size: 9px;
}

.account-card > button {
  border: 0;
  background: transparent;
  color: var(--plum-700);
  font-weight: 700;
}

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

.account-card--wide > button {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
}

@media (max-width: 1080px) {
  .checkout-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(310px, .9fr);
    gap: 22px;
  }

  .checkout-steps {
    display: none;
  }

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

  .learning-card:last-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: .72fr 1fr;
  }

  .learning-card:last-child .learning-card__media {
    aspect-ratio: auto;
  }

  .stat-grid {
    gap: 10px;
  }

  .stat-card {
    padding: 16px;
  }
}

@media (max-width: 860px) {
  .prototype-page {
    padding-block-start: 76px;
  }

  .prototype-ribbon {
    flex-wrap: wrap;
  }

  .prototype-heading,
  .dashboard-welcome {
    align-items: start;
  }

  .checkout-layout {
    display: flex;
    flex-direction: column-reverse;
  }

  .order-summary,
  .checkout-form {
    width: 100%;
  }

  .order-summary {
    position: static;
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-nav {
    position: static;
    overflow-x: auto;
    padding: 10px;
    border-radius: 18px;
  }

  .dashboard-nav__title,
  .dashboard-help,
  .logout-link {
    display: none;
  }

  .dashboard-nav nav {
    display: flex;
    min-width: max-content;
    padding: 0;
  }

  .dashboard-nav nav a {
    min-height: 40px;
    padding-inline: 13px;
  }
}

@media (max-width: 680px) {
  .prototype-ribbon {
    gap: 5px 8px;
    padding: 9px 14px;
    font-size: 11px;
    line-height: 1.45;
  }

  .prototype-heading {
    padding-block-end: 24px;
  }

  .prototype-heading h1,
  .dashboard-welcome h1 {
    font-size: 31px;
  }

  .prototype-heading p,
  .dashboard-welcome p {
    font-size: 16px;
    line-height: 1.75;
  }

  .checkout-layout {
    padding-block-end: 75px;
  }

  .login-note {
    grid-template-columns: auto 1fr;
  }

  .login-note .text-button {
    grid-column: 2;
    justify-self: start;
  }

  .form-section {
    padding: 21px 17px;
    border-radius: 21px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .field--full {
    grid-column: auto;
  }

  .payment-method {
    grid-template-columns: auto 1fr;
  }

  .paypal-mark {
    grid-column: 2;
  }

  .summary-product {
    grid-template-columns: 91px 1fr;
  }

  .truth-row {
    flex-wrap: wrap;
  }

  .dashboard-shell {
    padding-block: 35px 75px;
  }

  .dashboard-welcome {
    display: block;
  }

  .profile-chip {
    min-width: 0;
    margin-block-start: 20px;
  }

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

  .stat-card {
    min-height: 108px;
  }

  .learning-card:last-child {
    grid-column: auto;
    display: block;
  }

  .learning-card:last-child .learning-card__media {
    aspect-ratio: 1.45;
  }

  .section-title-row {
    align-items: start;
  }

  .courses-panel .section-title-row {
    display: block;
  }

  .course-filters {
    width: max-content;
    margin-block-start: 12px;
  }

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

  .account-card > button {
    grid-column: 2;
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button-loader {
    animation: none;
  }
}
