:root {
  --bg: #07101a;
  --panel: #0e1723;
  --panel-light: #141e2c;
  --text: #f7f8fb;
  --text-soft: #a7b1c0;
  --text-muted: #718092;
  --line: rgba(255, 255, 255, 0.10);
  --line-light: rgba(255, 255, 255, 0.16);
  --yellow: #f4cf2c;
  --green: #42cf7c;
  --red: #ff6868;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}


html[data-theme="light"] {
  --bg: #f4f5f2;
  --panel: #ffffff;
  --panel-light: #f3f5f1;
  --text: #151a21;
  --text-soft: #596474;
  --text-muted: #7c8794;
  --line: rgba(18, 25, 34, 0.10);
  --line-light: rgba(18, 25, 34, 0.17);
  --shadow: 0 20px 50px rgba(35, 43, 51, 0.10);
}


* {
  box-sizing: border-box;
}


html {
  min-height: 100%;
  background: var(--bg);
}


body {
  min-height: 100vh;
  margin: 0;

  background:
    radial-gradient(circle at 50% -15%, rgba(244, 207, 44, 0.07), transparent 35%),
    var(--bg);

  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}


a {
  color: inherit;
  text-decoration: none;
}


button {
  font: inherit;
}


.progress-page {
  width: min(1080px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
}


.progress-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 82px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
}


.progress-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  font-size: 23px;
  font-weight: 950;
  letter-spacing: -0.07em;
}


.progress-brand b {
  width: 37px;
  height: 37px;

  display: inline-grid;
  place-items: center;

  border-radius: 50%;

  background: var(--yellow);
  color: #11151a;

  font-size: 22px;
  box-shadow: 0 8px 20px rgba(244, 207, 44, 0.22);
}


.progress-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}


.progress-nav {
  display: flex;
  align-items: center;
  gap: 4px;

  padding: 4px;

  border: 1px solid var(--line);
  border-radius: 14px;

  background: var(--panel);
}


.progress-nav a {
  min-height: 34px;
  padding: 0 12px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  border-radius: 10px;

  color: var(--text-muted);

  font-size: 11px;
  font-weight: 800;

  transition:
    background 0.16s ease,
    color 0.16s ease;
}


.progress-nav a:hover {
  color: var(--text);
  background: var(--panel-light);
}


.progress-nav a.is-active {
  color: #11151a;
  background: var(--yellow);
}


.progress-nav-icon {
  display: none;
  width: 17px;
  height: 17px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}


.progress-nav-icon .nav-icon-fill {
  fill: currentColor;
  stroke: none;
}


.progress-theme-toggle {
  min-height: 42px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--line-light);
  border-radius: 12px;

  background: var(--panel);
  color: var(--text);
}


.progress-theme-toggle {
  width: 42px;
  padding: 0;
  cursor: pointer;
  font-size: 18px;
}


.progress-intro {
  padding: 58px 0 34px;
  text-align: center;
}


.progress-kicker,
.section-heading span,
.series-card-head span {
  color: var(--yellow);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.progress-kicker {
  font-size: 9px;
}


.progress-intro h1 {
  margin: 9px 0 10px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1;
  letter-spacing: -0.055em;
}


.progress-intro p {
  width: min(100%, 600px);
  margin: 0 auto;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.6;
}


.account-panel {
  width: min(100%, 980px);
  margin-right: auto;
  margin-bottom: 18px;
  margin-left: auto;
  padding: 20px;

  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 420px);
  align-items: center;
  gap: 32px;

  border: 1px solid var(--line);
  border-radius: 18px;

  background: var(--panel);
  box-shadow: var(--shadow);
}


.account-copy h2 {
  margin: 7px 0 7px;
  font-size: 18px;
  letter-spacing: -0.035em;
}


.account-copy::before {
  content: "↻";

  width: 45px;
  height: 45px;
  margin-bottom: 16px;

  display: grid;
  place-items: center;

  border-radius: 50%;
  background: rgba(244, 207, 44, 0.11);
  color: var(--yellow);

  font-size: 21px;
  font-weight: 900;
}


.account-copy p {
  margin: 0;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.55;
}


.account-form {
  padding: 16px;

  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;

  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel-light);
}


.account-form[hidden],
.account-connected[hidden] {
  display: none;
}


.account-form label {
  display: grid;
  gap: 5px;

  color: var(--text-muted);
  font-size: 9px;
  font-weight: 800;
}


.account-form input {
  width: 100%;
  min-height: 39px;
  padding: 0 11px;

  border: 1px solid var(--line-light);
  border-radius: 10px;
  outline: none;

  background: var(--panel);
  color: var(--text);

  font: inherit;
  font-size: 11px;
}


.account-form input:focus {
  border-color: var(--yellow);
}


.account-actions {
  grid-column: 1;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}


.account-forgot-password {
  grid-column: 1;
  justify-self: end;

  padding: 2px 0;
  border: 0;

  background: transparent;
  color: var(--text-muted);

  font-size: 9px;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}


.account-forgot-password:hover {
  color: var(--yellow);
}


.password-reset-form {
  padding: 16px;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;

  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel-light);
}


.password-reset-form[hidden] {
  display: none;
}


.password-reset-form > strong,
.password-reset-form > button {
  grid-column: 1 / -1;
}


.password-reset-form > strong {
  font-size: 12px;
}


.password-reset-form label {
  display: grid;
  gap: 5px;

  color: var(--text-muted);
  font-size: 9px;
  font-weight: 800;
}


.password-reset-form input {
  width: 100%;
  min-height: 39px;
  padding: 0 11px;

  border: 1px solid var(--line-light);
  border-radius: 10px;
  outline: none;

  background: var(--panel);
  color: var(--text);
}


.password-reset-form input:focus {
  border-color: var(--yellow);
}


.password-reset-form > button {
  min-height: 39px;
  border: 0;
  border-radius: 10px;

  background: var(--yellow);
  color: #11151a;

  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}


.account-actions button,
.account-connected button {
  min-height: 39px;
  padding: 0 13px;

  border: 1px solid var(--line-light);
  border-radius: 10px;

  background: var(--panel-light);
  color: var(--text);

  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}


#account-login {
  border-color: var(--yellow);
  background: var(--yellow);
  color: #11151a;
}


.account-form button:disabled,
.account-form input:disabled {
  cursor: wait;
  opacity: 0.65;
}


.account-connected {
  min-height: 70px;
  padding: 12px;

  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;

  border: 1px solid rgba(66, 207, 124, 0.3);
  border-radius: 13px;
  background: rgba(66, 207, 124, 0.07);
}


.account-panel.is-connected {
  width: 100%;
  padding: 16px 20px;

  grid-template-columns: minmax(220px, 1fr) minmax(420px, 520px);
  gap: 28px;
}


.account-panel.is-connected .account-copy::before,
.account-panel.is-connected .progress-kicker {
  display: none;
}


.account-panel.is-connected .account-copy h2 {
  margin: 0 0 5px;
  font-size: 16px;
}


.account-panel.is-connected .account-copy p {
  max-width: 420px;
  font-size: 10px;
}


.account-panel.is-connected .account-connected {
  width: 100%;
  justify-self: end;
}


.account-panel.is-connected .account-message.success {
  display: none;
}


.account-status-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(66, 207, 124, 0.1);
}


.account-connected div {
  min-width: 0;
  display: grid;
  gap: 3px;
}


.account-connected strong {
  font-size: 11px;
}


.account-connected small {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.account-message {
  grid-column: 1 / -1;
  min-height: 14px;
  margin: -12px 0 0;

  color: var(--text-muted);
  font-size: 9px;
  line-height: 1.4;
  text-align: right;
}


.account-message.success {
  color: var(--green);
}


.account-message.error {
  color: var(--red);
}


.global-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}


.global-summary[hidden],
.series-section[hidden],
.mistakes-section[hidden],
.badges-section[hidden],
.progress-empty[hidden] {
  display: none;
}


.badges-section {
  margin-top: 34px;
  padding: 22px;

  border: 1px solid var(--line);
  border-radius: 18px;

  background: var(--panel);
  box-shadow: var(--shadow);
}


.badges-section .section-heading {
  margin-bottom: 15px;
}


.badges-tabs {
  width: fit-content;
  margin: 0 auto 15px;
  padding: 4px;

  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;

  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-light);
}


.badges-tabs button {
  min-height: 32px;
  padding: 0 15px;

  border: 0;
  border-radius: 999px;

  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 9px;
  font-weight: 850;
  cursor: pointer;
}


.badges-tabs button.is-active {
  background: var(--yellow);
  color: #11151a;
}


.badges-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}


.badge-card {
  position: relative;
  min-width: 0;
  min-height: 126px;
  padding: 15px 12px 12px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;

  border: 1px solid var(--line);
  border-radius: 14px;

  background: var(--panel-light);
  text-align: center;
}


.badge-card.is-unlocked {
  border-color: color-mix(in srgb, var(--yellow) 60%, var(--line));
  background: color-mix(in srgb, var(--yellow) 8%, var(--panel-light));
}


.badge-card.is-locked {
  opacity: 0.62;
  filter: grayscale(0.45);
}


.badge-icon {
  width: 40px;
  height: 40px;

  display: grid;
  place-items: center;

  border-radius: 50%;
  background: var(--panel);
  font-size: 21px;
}


.badge-card.is-unlocked .badge-icon {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--yellow) 13%, transparent);
}


.badge-card div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}


.badge-card strong {
  color: var(--text);
  font-size: 11px;
}


.badge-card small {
  color: var(--text-muted);
  font-size: 8px;
  line-height: 1.35;
}


.badge-status {
  color: var(--text-muted);
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}


.badge-card.is-unlocked .badge-status {
  color: var(--yellow);
}


.mistakes-section {
  margin-top: 34px;
  padding: 22px;

  border: 1px solid var(--line);
  border-radius: 18px;

  background: var(--panel);
  box-shadow: var(--shadow);
}


.mistakes-section .section-heading {
  margin-bottom: 15px;
}


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


.mistake-card {
  min-width: 0;
  min-height: 64px;
  padding: 10px 12px;

  display: flex;
  align-items: center;
  gap: 11px;

  border: 1px solid var(--line);
  border-radius: 12px;

  background: var(--panel-light);
}


.mistake-number {
  width: 32px;
  height: 32px;

  flex: 0 0 32px;
  display: grid;
  place-items: center;

  border-radius: 50%;
  background: color-mix(in srgb, var(--red) 14%, transparent);
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
}


.mistake-card div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}


.mistake-card strong {
  overflow: hidden;
  color: var(--text);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.mistake-card small {
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 750;
}


.mistakes-review-link {
  min-height: 40px;
  margin: 15px auto 0;
  padding: 0 16px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;

  border-radius: 12px;
  background: var(--yellow);
  color: #11151a;
  font-size: 11px;
  font-weight: 900;
}


.mistakes-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}


.mistakes-review-link:hover {
  transform: translateY(-1px);
}


.global-summary article {
  min-height: 102px;
  padding: 18px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;

  border: 1px solid var(--line);
  border-radius: 16px;

  background: var(--panel);
  box-shadow: var(--shadow);
}


.global-summary span {
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-align: center;
}


.global-summary strong {
  color: var(--yellow);
  font-size: 22px;
}


.global-best-card {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}


.global-score-ring,
.series-last-score {
  position: relative;

  border-radius: 50%;

  background:
    conic-gradient(
      var(--yellow) calc(var(--score-percent) * 1%),
      var(--panel-light) 0
    );
}


.global-score-ring::before,
.series-last-score::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: inherit;
  background: var(--panel);
}


.global-score-ring {
  width: 66px;
  height: 66px;

  display: grid;
  place-content: center;
  gap: 0;

  text-align: center;
}


.global-score-ring > *,
.series-last-score > * {
  position: relative;
  z-index: 1;
}


.global-score-ring strong {
  font-size: 14px;
  line-height: 1;
}


.score-ring-icon {
  color: var(--yellow) !important;
  font-size: 11px !important;
  line-height: 1;
}


.series-section {
  padding: 48px 0 20px;
}


.section-heading {
  margin-bottom: 18px;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}


.section-heading h2 {
  margin: 6px 0 0;
  font-size: 24px;
  letter-spacing: -0.04em;
}


.section-heading small {
  color: var(--text-muted);
  font-size: 10px;
}


.series-filter-panel {
  margin-bottom: 16px;
  padding: 14px 16px;

  border: 1px solid var(--line);
  border-radius: 15px;

  background: var(--panel);
}


.series-filter-heading {
  margin-bottom: 10px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}


.series-filter-heading strong {
  color: var(--text);
  font-size: 11px;
}


.series-filter-heading span {
  color: var(--text-muted);
  font-size: 9px;
}


.series-filter {
  display: flex;
  align-items: center;
  gap: 7px;

  overflow-x: auto;
  scrollbar-width: thin;
}


.series-filter button {
  min-height: 34px;
  padding: 0 13px;

  flex: 0 0 auto;

  border: 1px solid var(--line-light);
  border-radius: 999px;

  background: var(--panel-light);
  color: var(--text-soft);

  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}


.series-filter button:hover:not(:disabled) {
  border-color: var(--yellow);
  color: var(--text);
}


.series-filter button.is-active {
  border-color: var(--yellow);
  background: var(--yellow);
  color: #11151a;
}


.series-filter button:disabled {
  cursor: default;
}


.series-filter-note {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 9px;
  line-height: 1.45;
}


.series-filter-note[hidden] {
  display: none;
}


.series-list {
  display: grid;
  gap: 14px;
}


.series-card {
  padding: 22px;

  border: 1px solid var(--line);
  border-radius: 18px;

  background: var(--panel);
  box-shadow: var(--shadow);
}


.series-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}


.series-card-head h3 {
  margin: 6px 0 0;
  font-size: 18px;
}


.series-last-score {
  width: 76px;
  height: 76px;

  flex: 0 0 76px;

  display: grid;
  place-content: center;
  gap: 2px;

  color: var(--yellow);
  font-size: 21px;
  text-align: center;
  line-height: 1;
}


.series-last-score small {
  color: var(--text-muted);
  font-size: 13px;
}


.series-metrics {
  margin: 18px 0;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}


.series-metrics > span {
  min-height: 62px;
  padding: 9px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;

  border-radius: 11px;
  background: var(--panel-light);
}


.series-metrics small {
  color: var(--text-muted);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}


.series-metrics strong {
  color: var(--text);
  font-size: 13px;
}


.series-metrics strong.positive {
  color: var(--green);
}


.series-metrics strong.negative {
  color: var(--red);
}


.series-chart {
  min-height: 92px;
  padding: 12px 14px;

  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;

  border-top: 1px solid var(--line);
}


.series-bar-item {
  display: grid;
  grid-template-rows: 52px auto auto;
  justify-items: center;
  gap: 4px;
}


.series-bar-track {
  position: relative;

  width: 16px;
  height: 52px;

  overflow: hidden;

  display: block;

  border-radius: 999px;
  background: var(--panel-light);
}


.series-bar-track b {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;

  height: max(4px, calc(var(--bar-value) * 1%));

  border-radius: inherit;
  background: var(--yellow);
}


.series-bar-item small {
  color: var(--text);
  font-size: 9px;
  font-weight: 800;
}


.series-bar-item em {
  color: var(--text-muted);
  font-size: 8px;
  font-style: normal;
}


.progress-empty {
  width: min(100%, 540px);
  margin: 30px auto 0;
  padding: 38px 24px;

  border: 1px solid var(--line);
  border-radius: 20px;

  background: var(--panel);
  text-align: center;
  box-shadow: var(--shadow);
}


.progress-empty > span {
  width: 54px;
  height: 54px;
  margin: 0 auto 15px;

  display: grid;
  place-items: center;

  border-radius: 50%;
  background: rgba(244, 207, 44, 0.11);
  color: var(--yellow);
  font-size: 24px;
}


.progress-empty h2 {
  margin: 0 0 8px;
  font-size: 20px;
}


.progress-empty p {
  margin: 0 0 20px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.5;
}


.progress-empty a {
  min-height: 43px;
  padding: 0 17px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;

  background: var(--yellow);
  color: #11151a;
  font-size: 11px;
  font-weight: 900;
}


.footer-road-message {
  min-height: 68px;
  margin-top: 42px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  border-bottom: 1px solid var(--line);

  color: var(--text);
  font-size: 14px;
}


.footer-road-message strong {
  font-weight: 800;
}


.footer-road-line {
  min-width: 80px;
  height: 26px;
  padding: 0 12px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  border-radius: 999px;
  background: var(--panel-light);
}


.footer-road-line span {
  width: 13px;
  height: 2px;
  border-radius: 999px;
  background: var(--yellow);
}


.site-footer {
  min-height: 94px;
  padding: 24px 0 30px;

  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;

  color: var(--text-muted);
  font-size: 12px;
}


.footer-brand {
  justify-self: start;
}


.footer-logo-main {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}


.footer-logo-text {
  color: var(--text);
  font-size: 17px;
  font-weight: 950;
  letter-spacing: -0.07em;
}


.footer-logo-badge {
  width: 26px;
  height: 26px;

  display: inline-grid;
  place-items: center;

  border-radius: 50%;
  background: var(--yellow);
  color: #11151a;

  font-size: 15px;
  font-weight: 950;
}


.site-footer p {
  margin: 0;
  text-align: center;
}


.footer-credit {
  justify-self: end;
  text-align: right !important;
}


.footer-credit a {
  color: var(--yellow);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}


@media (max-width: 950px) {
  .progress-header-actions {
    gap: 6px;
  }

  .progress-nav {
    gap: 2px;
    padding: 3px;
    border-radius: 12px;
  }

  .progress-nav a {
    width: 34px;
    min-height: 30px;
    padding: 0;
    border-radius: 9px;
  }

  .progress-nav-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .progress-nav-icon {
    display: block;
  }

  .progress-theme-toggle {
    width: 36px;
    min-height: 36px;
    border-radius: 10px;
  }

  .account-panel.is-connected {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.95fr);
    gap: 14px;
  }
}


@media (max-width: 700px) {
  .progress-page {
    width: calc(100% - 20px);
  }

  .progress-header {
    min-height: 58px;
  }

  .progress-brand {
    font-size: 16px;
  }

  .progress-brand b {
    width: 30px;
    height: 30px;
    font-size: 17px;
  }

  .progress-intro {
    padding: 42px 8px 24px;
  }

  .progress-intro h1 {
    font-size: 34px;
  }

  .progress-intro p {
    font-size: 12px;
  }

  .account-panel {
    margin-bottom: 14px;
    padding: 15px;

    grid-template-columns: 1fr;
    gap: 14px;
  }

  .account-copy {
    text-align: center;
  }

  .account-copy::before {
    margin-right: auto;
    margin-left: auto;
  }

  .account-copy h2 {
    font-size: 16px;
  }

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

  .account-panel.is-connected {
    width: 100%;
    padding: 12px;
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .account-panel.is-connected .account-copy {
    display: none;
  }

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

  .password-reset-form > strong,
  .password-reset-form > button {
    grid-column: 1;
  }

  .account-actions {
    grid-column: 1;
  }

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

  .account-connected button {
    grid-column: 1 / -1;
  }

  .account-message {
    margin: -5px 0 0;
    text-align: center;
  }

  .global-summary {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .global-summary article {
    min-height: 82px;
    padding: 11px;
    border-radius: 13px;
  }

  .global-summary strong {
    font-size: 18px;
  }

  .series-section {
    padding-top: 34px;
  }

  .mistakes-section {
    margin-top: 22px;
    padding: 15px;
    border-radius: 15px;
  }

  .badges-section {
    margin-top: 22px;
    padding: 15px;
    border-radius: 15px;
  }

  .badges-list {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .badges-tabs {
    width: 100%;
  }

  .badges-tabs button {
    padding: 0 10px;
  }

  .badge-card {
    min-height: 116px;
    padding: 12px 8px 10px;
  }

  .mistakes-list {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

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

  .series-filter-panel {
    padding: 12px;
  }

  .series-filter-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .series-filter button {
    min-height: 32px;
    padding: 0 11px;
    font-size: 9px;
  }

  .series-card {
    padding: 15px;
    border-radius: 15px;
  }

  .series-card-head h3 {
    font-size: 14px;
  }

  .series-last-score {
    font-size: 22px;
  }

  .series-metrics {
    grid-template-columns: 1fr 1fr;
    margin: 14px 0;
  }

  .series-metrics > span {
    min-height: 52px;
  }

  .series-chart {
    gap: 11px;
  }

  .site-footer {
    min-height: 0;
    padding: 22px 0 28px;

    flex-direction: column;
    display: flex;
    align-items: center;
    gap: 6px;
    text-align: center;
  }

  .footer-brand,
  .footer-credit {
    justify-self: auto;
    text-align: center !important;
  }
}


@media (max-width: 390px) {
  .progress-brand span {
    font-size: 0;
  }

  .progress-brand span::after {
    content: "ET SI";
    font-size: 16px;
  }

  .progress-nav a {
    width: 30px;
  }
}


@media
(orientation: landscape)
and (max-height: 500px)
and (min-width: 500px) {
  .progress-header {
    min-height: 54px;
  }

  .progress-intro {
    padding: 22px 0 16px;
  }

  .progress-intro h1 {
    margin: 5px 0 6px;
    font-size: 27px;
  }

  .progress-intro p {
    font-size: 10px;
  }

  .global-summary article {
    min-height: 70px;
    padding: 8px;
  }

  .series-section {
    padding-top: 25px;
  }
}


@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================
   MODE RÉINITIALISATION DU MOT DE PASSE
========================================================= */

.is-password-recovery .progress-intro,
.is-password-recovery .account-copy,
.is-password-recovery .global-summary,
.is-password-recovery .series-section,
.is-password-recovery .mistakes-section,
.is-password-recovery .badges-section,
.is-password-recovery .progress-empty {
  display: none !important;
}

.is-password-recovery main {
  min-height: calc(100vh - 82px);
  padding: 48px 0;
  display: grid;
  place-items: center;
}

.is-password-recovery .account-panel {
  width: min(100%, 620px);
  margin: 0;
  padding: 22px;
  display: block;
}

.is-password-recovery .password-reset-form {
  padding: 24px;
}

.is-password-recovery .password-reset-form > strong {
  margin-bottom: 5px;
  font-size: 20px;
  letter-spacing: -0.025em;
}

.is-password-recovery .account-message {
  margin: 14px 0 0;
  text-align: center;
}

@media (max-width: 620px) {
  .is-password-recovery main {
    min-height: calc(100vh - 72px);
    padding: 28px 0;
  }

  .is-password-recovery .account-panel {
    padding: 12px;
  }

  .is-password-recovery .password-reset-form {
    padding: 18px;
    grid-template-columns: 1fr;
  }

  .is-password-recovery .password-reset-form > strong,
  .is-password-recovery .password-reset-form > button {
    grid-column: 1;
  }
}
