/* ==========================================================================
   Creole Course: shared page styles (lessons list, Learn Creole, account,
   certificate, survey). Built on the theme tokens in core.css.
   ========================================================================== */

[hidden].cc-cert-wrap, .cc-survey[hidden], .cc-share-panel[hidden], .cc-share-panel .btn[hidden] { display: none !important; }

/* ---------- "Free" chips ---------- */
.cc-chips { list-style: none; display: flex; flex-wrap: nowrap; gap: 0.35rem; margin: 1rem 0 0; padding: 0; }
.cc-chips li { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.28rem 0.7rem 0.28rem 0.55rem; border-radius: 99px; background: var(--lagoon-wash); color: var(--lagoon-deep); font-weight: 650; font-size: clamp(0.7rem, 3.2vw, 0.875rem); line-height: 1.2; white-space: nowrap; }
.cc-chips .icon { width: 0.85rem; height: 0.85rem; stroke-width: 2.6; flex: none; }
@media (max-width: 519px) { .cc-chips .icon { display: none; } .cc-chips li { padding: 0.3rem 0.6rem; } }
@media (max-width: 339px) { .cc-chips { flex-wrap: wrap; } }

/* ---------- Free certificate promo ---------- */
.cc-promo { display: grid; gap: 2rem; align-items: center; padding: clamp(1.5rem, 4vw, 3rem); border-radius: var(--r-lg); background: var(--lagoon-wash); overflow: hidden; }
@media (min-width: 860px) { .cc-promo { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 3rem; } }

.cc-promo h2 { font-size: var(--step-3); margin: 0 0 0.75rem; }
.cc-promo__lead { max-width: 36rem; color: var(--ink-soft); }
.cc-promo__points { list-style: none; margin: 1.1rem 0 1.4rem; padding: 0; display: grid; gap: 0.5rem; }
.cc-promo__points li { display: grid; grid-template-columns: 1.3rem 1fr; gap: 0.5rem; align-items: start; font-weight: 600; }
.cc-promo__points .icon { color: var(--lagoon); margin-top: 0.2em; stroke-width: 2.6; }
.cc-promo__state { display: flex; align-items: center; gap: 0.4rem; margin: 0 0 0.8rem; font-weight: 700; color: var(--lagoon-deep); }
.cc-promo__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; }
.cc-promo__actions .btn--ghost { background: var(--paper); }

/* A small, decorative certificate preview */
.cc-mock { position: relative; max-width: 25rem; margin-inline: auto; transform: rotate(-2deg); transition: transform 0.3s ease; }
@media (hover: hover) { .cc-promo:hover .cc-mock { transform: rotate(0); } }
.cc-mock__frame { position: relative; text-align: center; padding: 1.4rem 1.2rem 1.6rem; border-radius: 14px; background: #FFFDF8; border: 3px solid var(--lagoon-deep); box-shadow: inset 0 0 0 5px #FFFDF8, inset 0 0 0 6.5px var(--cane), 0 18px 40px rgba(20, 35, 42, 0.18); }
.cc-mock__logo img { height: 2.6rem; width: auto; display: inline-block; }
.cc-mock__eyebrow { margin: 0.7rem 0 0.5rem; font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; color: var(--lagoon); }
.cc-mock__small { margin: 0; font-size: 0.78rem; color: var(--ink-soft); }
.cc-mock__name { margin: 0.3rem 0 0.4rem; font-family: var(--font-display); font-weight: 700; font-size: 1.55rem; line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); }
.cc-mock__seal { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; margin: 0.9rem auto 0; border-radius: 50%; background: var(--cane); box-shadow: inset 0 0 0 4px var(--lagoon-deep); color: #fff; }
.cc-mock__seal .icon { width: 1.1rem; height: 1.1rem; stroke-width: 3; }
.cc-mock__tag { position: absolute; top: -0.7rem; right: -0.4rem; padding: 0.3rem 0.85rem; border-radius: 99px; background: var(--cane); color: var(--ink); font-weight: 800; font-size: 0.8rem; transform: rotate(6deg); box-shadow: 0 4px 10px rgba(20, 35, 42, 0.2); }
.cc-mock.is-locked .cc-mock__frame { filter: grayscale(0.7); opacity: 0.65; }

/* ---------- The certificate itself ---------- */
.cc-cert-ui { margin: 0 0 1.5rem; }
.cc-cert-loading { padding: 3rem 1rem; text-align: center; color: var(--ink-mute); background: var(--surface); border-radius: var(--r-lg); }
.cc-cert { margin: 0; }
.cc-cert__img { display: block; width: 100%; height: auto; border-radius: 12px; background: #fff; box-shadow: 0 12px 40px rgba(20, 35, 42, 0.16); }
.cc-i { width: 1.2rem; height: 1.2rem; flex: none; }

/* Action buttons: Share first and prominent, then Download and Print */
.cc-cert-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; margin-top: 1.1rem; }
.cc-cert-actions .cc-act--primary { grid-column: 1 / -1; }
@media (min-width: 640px) { .cc-cert-actions { display: flex; flex-wrap: wrap; } }
.cc-cert-ui .cc-act { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 3.1rem; padding: 0.65rem 1.35rem; border: 1.5px solid var(--rule); border-radius: var(--radius); background: var(--paper); color: var(--ink) !important; font: inherit; font-weight: 650; line-height: 1.2; text-decoration: none !important; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s; }
.cc-cert-ui .cc-act .cc-i { color: var(--lagoon); }
.cc-cert-ui .cc-act:hover { border-color: var(--ink); background: var(--surface); }
.cc-cert-ui .cc-act:focus-visible { outline: 3px solid var(--lagoon-wash); outline-offset: 2px; border-color: var(--lagoon); }
.cc-cert-ui .cc-act--primary { border-color: var(--lagoon); background: var(--lagoon); color: #fff !important; font-size: 1.05rem; box-shadow: 0 6px 18px rgba(11, 122, 117, 0.28); }
.cc-cert-ui .cc-act--primary .cc-i { color: #fff; }
.cc-cert-ui .cc-act--primary:hover { border-color: var(--lagoon-deep); background: var(--lagoon-deep); }
.cc-cert-ui .cc-act[disabled] { opacity: 0.7; cursor: progress; }

/* Share panel */
.cc-share-panel { margin-top: 1rem; padding: clamp(1.1rem, 3vw, 1.6rem); border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--paper); box-shadow: 0 8px 30px rgba(20, 35, 42, 0.08); animation: cc-pop 0.25s ease; }
@keyframes cc-pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.cc-share-panel__title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); letter-spacing: -0.015em; }
.cc-share-panel__sub { margin: 0.25rem 0 1.1rem; color: var(--ink-mute); font-size: 0.93rem; }
.cc-share-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
@media (min-width: 640px) { .cc-share-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cc-tile { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; width: 100%; padding: 1rem 0.5rem 0.9rem; border: 1.5px solid var(--rule); border-radius: var(--r-lg); background: var(--paper); color: var(--ink) !important; font: inherit; font-weight: 650; font-size: 0.93rem; text-decoration: none !important; cursor: pointer; transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.cc-tile__icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--lagoon-wash); color: var(--lagoon-deep); transition: background-color 0.15s, color 0.15s; }
.cc-tile__icon .cc-i { width: 1.35rem; height: 1.35rem; }
.cc-tile:hover, .cc-tile:focus-visible { border-color: var(--lagoon); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(11, 122, 117, 0.14); }
.cc-tile:hover .cc-tile__icon, .cc-tile:focus-visible .cc-tile__icon { background: var(--lagoon); color: #fff; }
.cc-share-extra { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.cc-pill { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0.45rem 1.05rem; border: 1.5px solid var(--rule); border-radius: 99px; background: var(--paper); color: var(--ink) !important; font: inherit; font-weight: 600; font-size: 0.93rem; text-decoration: none !important; cursor: pointer; transition: border-color 0.15s, background-color 0.15s; }
.cc-pill .cc-i { width: 1.05rem; height: 1.05rem; color: var(--lagoon); }
.cc-pill:hover { border-color: var(--ink); background: var(--surface); }
@media (max-width: 519px) { .cc-pill { flex: 1 1 100%; justify-content: center; } }
.cc-share-panel__note { margin: 0.9rem 0 0; font-size: 0.85rem; color: var(--ink-mute); }
@media (prefers-reduced-motion: reduce) { .cc-share-panel { animation: none; } .cc-tile:hover, .cc-tile:focus-visible { transform: none; } }

.cc-locked { padding: 1.5rem; border-radius: var(--r-lg); background: var(--surface); }
.cc-locked__title { display: flex; align-items: center; gap: 0.45rem; margin: 0 0 0.4rem; font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); }
.cc-locked p { margin-bottom: 0.5rem; }
.cc-locked ul { margin: 0.6rem 0 0; padding-left: 1.2rem; }
.cc-locked .btn { margin-top: 0.9rem; }

@media print {
  body.cc-print-cert * { visibility: hidden !important; }
  body.cc-print-cert .cc-cert, body.cc-print-cert .cc-cert * { visibility: visible !important; }
  body.cc-print-cert .cc-cert { position: fixed; inset: 0; width: 100%; margin: 0; }
  body.cc-print-cert .cc-cert__img { width: 100%; border-radius: 0; box-shadow: none; }
}

/* ---------- Feedback survey (Fluent Forms) ---------- */
.cc-survey { margin: 2rem 0 0; padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--r-lg); background: var(--surface); }
.cc-survey h3 { margin-top: 0; }
.cc-survey > p { color: var(--ink-soft); }
.cc-survey .fluentform .ff-el-group { margin-bottom: 1.1rem; }
.cc-survey .ff-el-input--label label { margin-bottom: 0.35rem; font-weight: 650; color: var(--ink); }
.cc-survey .ff-el-form-control { min-height: 2.9rem; border: 1.5px solid var(--rule) !important; border-radius: var(--radius) !important; background-color: var(--paper) !important; color: var(--ink) !important; font: inherit; box-shadow: none !important; }
.cc-survey select.ff-el-form-control { padding-right: 2.2rem; }
.cc-survey textarea.ff-el-form-control { min-height: 6.5rem; }
.cc-survey .ff-el-form-control:focus { border-color: var(--lagoon) !important; box-shadow: 0 0 0 3px var(--lagoon-wash) !important; outline: 0; }
.cc-survey .cc-cols-2 .ff-el-input--content { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.2rem 1.25rem; }
@media (max-width: 519px) { .cc-survey .cc-cols-2 .ff-el-input--content { grid-template-columns: minmax(0, 1fr); } }
.cc-survey .ff-el-form-check { margin: 0; }
.cc-survey .ff-el-form-check label { display: flex; align-items: center; gap: 0.55rem; padding: 0.4rem 0.5rem; border-radius: 8px; font-weight: 500; cursor: pointer; }
.cc-survey .ff-el-form-check label:hover { background: var(--paper); }
.cc-survey .ff-el-form-check-input { width: 1.1rem; height: 1.1rem; margin: 0; accent-color: var(--lagoon); }
.cc-survey .ff-btn-submit, .cc-survey .ff-btn-submit.ff-btn-md { min-height: 3rem; padding: 0.6rem 1.6rem !important; border: 1.5px solid var(--ink) !important; border-radius: var(--radius) !important; background: var(--ink) !important; color: var(--paper) !important; font: inherit; font-weight: 650 !important; box-shadow: none !important; opacity: 1 !important; cursor: pointer; transition: background-color 0.15s, border-color 0.15s; }
.cc-survey .ff-btn-submit:hover { background: var(--lagoon-deep) !important; border-color: var(--lagoon-deep) !important; }
.cc-survey .ff-message-success { padding: 1rem 1.2rem; border: 0; border-radius: var(--radius); background: var(--lagoon-wash); color: var(--lagoon-deep); }
.cc-survey .ff-el-is-error .ff-el-form-control { border-color: var(--coral) !important; }
.cc-survey .error.text-danger { color: var(--coral); font-size: 0.88rem; }
@media (max-width: 719px) { .cc-survey .ff-btn-submit { width: 100%; } }

/* ---------- /lessons/ and the course banner on small screens ---------- */
@media (max-width: 719px) {
  /* Page header */
  .hub-head--lessons { padding-block: 1.5rem 1.25rem; }
  .hub-head--lessons .hub-head__intro { font-size: 1rem; line-height: 1.5; }
  .hub-head--lessons .learn-head__actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.5rem; margin-top: 1.1rem; }
  .hub-head--lessons .learn-head__actions .btn { justify-content: center; min-height: 3rem; }

  /* Course banner: text first, the preview card is dropped so the lessons stay in reach */
  .section.cc-promo-band { padding-block: 1.25rem 0.25rem; }
  .cc-promo { gap: 0; padding: 1.25rem; border-radius: 14px; }
  .cc-promo h2 { margin-bottom: 0.6rem; font-size: 1.45rem; line-height: 1.15; }
  .cc-promo__lead { margin-bottom: 0; font-size: 0.97rem; }
  .cc-promo__points { gap: 0.4rem; margin: 0.9rem 0 1.1rem; font-size: 0.93rem; }
  .cc-promo__actions .btn { justify-content: center; width: 100%; min-height: 3rem; }
  .cc-promo__visual { display: none; }

  /* Lesson list: denser rows */
  .hub-head--lessons ~ .section:not(.cc-promo-band) { padding-block: 1.5rem; }
  .lesson-list { display: grid; gap: 0.6rem; }
  .lesson-list .lesson-row a { grid-template-columns: 2rem minmax(0, 1fr); gap: 0.1rem 0.7rem; padding: 0.9rem 1rem; }
  .lesson-list .lesson-row__num { padding-top: 0.1rem; font-size: 1.45rem; }
  .lesson-list .lesson-row__body strong { font-size: 1.04rem; line-height: 1.25; }
  .lesson-list .lesson-row__body span { display: -webkit-box; margin-top: 0.2rem; overflow: hidden; font-size: 0.88rem; line-height: 1.4; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .lesson-list .lesson-row__meta { gap: 0.2rem 0.8rem; margin-top: 0.35rem; font-size: 0.78rem; }
  .lesson-list .lesson-row__account { display: none; }

  /* Questions */
  .hub-head--lessons ~ .section .faq summary { align-items: center; min-height: 2.75rem; padding: 0.8rem 0; font-size: 1.02rem; }
  .hub-head--lessons ~ .section .faq p { font-size: 0.95rem; }
}

/* ---------- Learn Creole hub on small screens ---------- */
.cc-hub-more { display: none; margin: 0.9rem 0 0; }
@media (max-width: 719px) {
  /* Hero */
  .learn-head { padding-block: 1.5rem 1.25rem; }
  .learn-head .hub-head__grid { gap: 1.25rem; }
  .learn-head .hub-head__intro { font-size: 1rem; line-height: 1.5; }
  .learn-head .learn-head__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; margin-top: 1.1rem; }
  .learn-head .learn-head__actions .btn { justify-content: center; min-height: 3rem; padding-inline: 0.75rem; }
  .learn-head .hub-head__media img { aspect-ratio: 2 / 1; border-radius: 14px; }

  /* Sections after the banner */
  .learn-head ~ .section:not(.cc-promo-band):not(.wotd-band) { padding-block: 1.5rem; }
  .learn-head ~ .wotd-band { padding-block: 1.25rem; }
  .learn-head ~ .section .section-head { margin-bottom: 0.9rem; }

  /* Course: preview of the first four lessons, then one clear button */
  .cc-hub-all { display: none; }
  .cc-hub-course .lesson-row:nth-child(n+5) { display: none; }
  .cc-hub-more { display: block; }
  .cc-hub-more .btn { justify-content: center; width: 100%; min-height: 3rem; }

  /* Reading: two stories are plenty on a phone */
  .cc-hub-reading > :nth-child(n+3) { display: none; }
}
@media (max-width: 599px) {
  /* The four tools become compact rows instead of four tall cards */
  .learn-tools { gap: 0.5rem; }
  .learn-tool { grid-template-columns: 2.75rem minmax(0, 1fr); align-items: center; column-gap: 0.85rem; row-gap: 0.05rem; padding: 0.85rem 1rem; }
  .learn-tool .icon--lg { grid-row: span 2; width: 2.75rem; height: 2.75rem; margin: 0; padding: 0.65rem; border-radius: 12px; background: var(--lagoon-wash); }
  .learn-tool strong { align-self: end; font-size: 1.05rem; }
  .learn-tool span { align-self: start; font-size: 0.88rem; line-height: 1.35; }
}

/* ---------- Account page ---------- */
.acct-tabbar { position: sticky; top: calc(var(--header-h) + var(--admin-offset, 0px)); z-index: 20; border-bottom: 1px solid var(--rule); background: color-mix(in srgb, var(--paper) 96%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.acct-tablist { display: none; gap: 0.25rem; margin: 0 calc(var(--gutter) * -0.5); overflow-x: auto; scrollbar-width: none; }
.acct-tablist::-webkit-scrollbar { display: none; }
.acct-js .acct-tablist { display: flex; }
.acct-tab { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3.4rem; padding: 0.6rem 0.9rem; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--ink-soft); font: inherit; font-weight: 650; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color 0.15s, border-color 0.15s, background-color 0.15s; }
@media (min-width: 720px) { .acct-tab { flex: 0 0 auto; padding-inline: 1.5rem; } }
.acct-tab .icon { width: 1.1rem; height: 1.1rem; }
.acct-tab:hover { color: var(--ink); background: var(--surface); }
.acct-tab:focus-visible { outline: 3px solid var(--lagoon-wash); outline-offset: -3px; }
.acct-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--lagoon); }
.acct-tab[aria-selected="true"] .icon { color: var(--lagoon); }
.acct-tab__badge { padding: 0.1rem 0.55rem; border-radius: 99px; background: var(--surface); color: var(--ink-soft); font-size: 0.75rem; font-weight: 700; }
.acct-tab__badge--ok { display: inline-grid; place-items: center; width: 1.2rem; height: 1.2rem; padding: 0; background: var(--lagoon); color: #fff; }
.acct-tab__badge--ok .icon { width: 0.75rem; height: 0.75rem; stroke-width: 3.2; color: #fff; }
@media (max-width: 519px) { .acct-tab__badge:not(.acct-tab__badge--ok) { display: none; } .acct-tab { padding-inline: 0.5rem; gap: 0.4rem; } }
.acct-panels { max-width: 56rem; margin-inline: auto; }
.acct-panel[hidden] { display: none; }
.acct-panel:focus { outline: none; }
.acct-panel > .acct-card + .acct-card { margin-top: 1.5rem; }
.acct-card--form { max-width: 36rem; }
.acct-quick { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.acct-quick__title { margin: 0 0 0.7rem; font-family: var(--font-display); font-weight: 650; }
.acct-quick__row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
@media (max-width: 519px) { .acct-quick .cc-pill { flex: 1 1 calc(50% - 0.25rem); justify-content: center; padding-inline: 0.6rem; } }
.acct-logout { margin: 1.25rem 0 0; }
.acct-id { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.acct-id__text { flex: 1; min-width: 0; }

.acct-id h1 { margin: 0; font-size: var(--step-3); }
.acct-email { margin: 0.15rem 0 0; color: var(--ink-mute); overflow-wrap: anywhere; }
.acct-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; margin: 1.4rem 0 0; }
@media (min-width: 720px) { .acct-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.acct-stat { padding: 0.9rem 1rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); }
.acct-stat dt { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-mute); }
.acct-stat dd { display: flex; align-items: center; gap: 0.35rem; margin: 0.15rem 0 0; font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); }
.acct-stat dd a { color: inherit; }
.acct-stat dd .icon { color: var(--cane); }

.acct-grid { display: grid; gap: 1.5rem; }
@media (min-width: 960px) { .acct-grid { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 2rem; align-items: start; } }
.acct-col { display: grid; gap: 1.5rem; min-width: 0; }
.acct-card { padding: clamp(1.1rem, 3vw, 1.75rem); border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--paper); scroll-margin-top: calc(var(--header-h) + 1rem); }
.acct-card h2 { margin: 0 0 0.25rem; font-size: var(--step-2); }
.acct-card__sub { margin: 0 0 1.1rem; color: var(--ink-mute); }

.acct-overall { margin: 0 0 1.25rem; }
.acct-overall__row { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 0.45rem; font-weight: 650; }
.acct-bar { height: 8px; border-radius: 99px; background: var(--lagoon-wash); overflow: hidden; }
.acct-bar span { display: block; height: 100%; border-radius: inherit; background: var(--lagoon); }
.acct-cta { margin: 0 0 1.25rem; }

.acct-lessons { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.acct-lesson a { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) auto; gap: 0.75rem; align-items: center; padding: 0.75rem 0.85rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); color: var(--ink); text-decoration: none; transition: background-color 0.15s, border-color 0.15s; }
.acct-lesson a:hover { background: var(--surface); border-color: var(--ink-mute); color: var(--ink); }
.acct-lesson__num { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border: 1.5px solid var(--rule); border-radius: 50%; background: var(--paper); font-family: var(--font-display); font-weight: 700; }
.acct-lesson__num .icon { width: 1.05rem; height: 1.05rem; stroke-width: 3; }
.acct-lesson.is-done .acct-lesson__num { border-color: var(--lagoon); background: var(--lagoon); color: var(--on-lagoon); }
.acct-lesson.is-progress .acct-lesson__num { border-color: var(--cane); background: var(--cane-wash); }
.acct-lesson__title { display: block; font-weight: 650; line-height: 1.3; }
.acct-lesson__meta { display: block; font-size: 0.85rem; color: var(--ink-mute); }
.acct-lesson .acct-bar { max-width: 12rem; height: 5px; margin-top: 0.45rem; }
.acct-pill { padding: 0.2rem 0.7rem; border-radius: 99px; background: var(--surface); color: var(--ink-soft); font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.acct-lesson.is-done .acct-pill { background: var(--lagoon-wash); color: var(--lagoon-deep); }
.acct-lesson.is-progress .acct-pill { background: var(--cane-wash); color: var(--ink); }
@media (max-width: 519px) {
  .acct-lesson a { grid-template-columns: 2.2rem minmax(0, 1fr); gap: 0.65rem; }
  .acct-lesson__num { width: 2.2rem; height: 2.2rem; }
  .acct-lesson .acct-pill { grid-column: 2; justify-self: start; }
}

.acct-lock { display: grid; gap: 1.25rem; align-items: center; }
@media (min-width: 640px) { .acct-lock { grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); } }
.acct-checks { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.55rem; }
.acct-checks li { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); gap: 0.55rem; align-items: start; }
.acct-checks .tick { display: grid; place-items: center; width: 1.3rem; height: 1.3rem; margin-top: 0.1rem; border: 2px solid var(--rule); border-radius: 50%; color: #fff; }
.acct-checks .tick .icon { width: 0.8rem; height: 0.8rem; stroke-width: 3.2; }
.acct-checks li.is-ok .tick { border-color: var(--lagoon); background: var(--lagoon); }

.acct-form label { display: block; margin-bottom: 0.3rem; font-weight: 600; }
.acct-form .field { width: 100%; }
.acct-form p { margin: 0 0 1rem; }
.acct-form__hint { margin: 0.3rem 0 0; font-size: 0.85rem; color: var(--ink-mute); }
.acct-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.acct-links { list-style: none; margin: 0; padding: 0; }
.acct-links a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.8rem 0.1rem; border-bottom: 1px solid var(--rule); color: var(--ink); font-weight: 600; text-decoration: none; }
.acct-links li:last-child a { border-bottom: 0; }
.acct-links a:hover { color: var(--lagoon); }

/* ---------- Account page on small screens ---------- */
@media (max-width: 719px) {
  /* Hero: greeting on the left, a compact Log out on the right, stats in a single row */
  .acct-head { padding-block: 1.25rem 1rem; }
  .acct-id { gap: 0.75rem; }
  .acct-id h1 { font-size: 1.5rem; line-height: 1.15; }
  .acct-email { overflow: hidden; font-size: 0.9rem; text-overflow: ellipsis; white-space: nowrap; }
  .acct-id .btn { flex: none; min-height: 2.5rem; padding: 0.35rem 0.9rem; font-size: 0.92rem; }
  .acct-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.4rem; margin-top: 1rem; }
  .acct-stat { padding: 0.6rem 0.35rem; border-radius: 12px; text-align: center; }
  .acct-stat dt { font-size: 0.64rem; letter-spacing: 0.04em; }
  .acct-stat dd { justify-content: center; gap: 0.2rem; margin-top: 0.1rem; font-size: 1.3rem; }
  .acct-stat dd .icon { width: 1rem; height: 1rem; }

  /* Panels */
  .acct-tabs .section { padding-block: 1.25rem 2rem; }
  .acct-card { padding: 1rem; border-radius: 14px; }
  .acct-card h2 { font-size: 1.3rem; }
  .acct-card__sub { margin-bottom: 0.9rem; font-size: 0.93rem; }
  .acct-cta .btn { justify-content: center; width: 100%; min-height: 3rem; }
  .acct-lesson__title { font-size: 0.95rem; }
  .acct-form__actions { flex-direction: column; align-items: stretch; text-align: center; }
  .acct-form__actions .btn { justify-content: center; width: 100%; min-height: 3rem; }
}
@media (max-width: 359px) {
  .acct-stat dt { font-size: 0.58rem; letter-spacing: 0.02em; }
  .acct-id h1 { font-size: 1.35rem; }
}
