:root {
  --olive: #425239;
  --olive-dark: #2f3b2a;
  --coral: #cf846f;
  --paper: #fffdf8;
  --cream: #f4efe4;
  --ink: #272b25;
  --line: rgba(66, 82, 57, .22);
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background: var(--cream);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 10%, rgba(207,132,111,.12), transparent 25rem),
    radial-gradient(circle at 88% 88%, rgba(66,82,57,.11), transparent 28rem),
    var(--cream);
}
button, select, input, a { font: inherit; }

.topbar {
  min-height: 74px;
  padding: 12px clamp(16px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(255,253,248,.94);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(47,59,42,.06);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 43px; height: 43px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--paper); background: var(--olive);
  font: 700 13px/1 Arial, sans-serif;
  letter-spacing: .08em;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.3);
}
.brand p { margin: 0; color: var(--olive-dark); font-weight: 700; font-size: 18px; }
.brand span { color: #756f65; font: 12px/1.3 Arial, sans-serif; letter-spacing: .11em; text-transform: uppercase; }
.top-actions { display: flex; gap: 9px; }
.phone-reading { display: none; }
.button {
  min-height: 42px; padding: 10px 15px; border-radius: 999px;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
  font: 700 14px/1 Arial, sans-serif;
  transition: transform .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button.primary { color: white; background: var(--olive); }
.button.quiet { color: var(--olive); border: 1px solid var(--line); background: white; }

.reset-home {
  width: min(100% - 24px, 980px); margin: 20px auto 0; padding: clamp(20px, 4vw, 34px);
  border: 1px solid rgba(255,255,255,.88); border-radius: 24px;
  background: rgba(255,253,248,.88); box-shadow: 0 18px 48px rgba(47,59,42,.11);
}
.reset-home-intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.home-kicker { margin: 0 0 7px; color: var(--coral); font: 700 12px/1 Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.reset-home h1 { margin: 0; color: var(--olive-dark); font-size: clamp(28px, 5vw, 44px); line-height: 1.05; }
.reset-home-intro div > p:last-child { max-width: 650px; margin: 12px 0 0; color: #67635c; font: 16px/1.55 Arial, sans-serif; }
.reset-home-intro button {
  flex: 0 0 auto; min-height: 44px; padding: 11px 17px; border: 0; border-radius: 999px;
  color: white; background: var(--coral); cursor: pointer; font: 700 14px/1 Arial, sans-serif;
}
.reset-sections { margin-top: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.section-card {
  min-height: 150px; padding: 18px; border: 1px solid var(--line); border-radius: 17px;
  display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  color: var(--ink); background: white; text-decoration: none; cursor: pointer;
  box-shadow: 0 8px 20px rgba(47,59,42,.06); transition: transform .18s ease, box-shadow .18s ease;
}
.section-card:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(47,59,42,.12); }
.section-card .section-number { color: var(--coral); font: 700 11px/1 Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.section-card strong { margin-top: 10px; color: var(--olive-dark); font-size: 22px; }
.section-card small { margin-top: 8px; color: #67635c; font: 14px/1.45 Arial, sans-serif; }
.start-card { background: linear-gradient(145deg, #fffdf8, #f5e7e0); border-color: rgba(207,132,111,.4); }
.nutrition-card { background: linear-gradient(145deg, #fffdf8, #edf0e8); border-color: rgba(66,82,57,.3); }
.nutrition-resources { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.nutrition-resources a {
  min-height: 145px; padding: 18px; border: 1px solid var(--line); border-radius: 16px;
  display: flex; flex-direction: column; color: var(--ink); background: white;
  text-decoration: none; box-shadow: 0 8px 20px rgba(47,59,42,.06);
}
.nutrition-resources a.sample-plan-link { background: linear-gradient(145deg, #fffdf8, #edf0e8); border-color: rgba(66,82,57,.34); }
.nutrition-resources span { color: var(--coral); font: 700 11px/1 Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.nutrition-resources strong { margin-top: 10px; color: var(--olive-dark); font-size: 19px; }
.nutrition-resources small { margin-top: 8px; color: #67635c; font: 14px/1.45 Arial, sans-serif; }
.nutrition-reminder { margin: 16px 0 0 !important; padding: 14px 16px; border-left: 4px solid var(--coral); background: var(--cream); font: 14px/1.5 Arial, sans-serif !important; }
.protein-pinch { margin-top: 18px; padding: 18px; border: 1px solid rgba(66,82,57,.25); border-radius: 16px; background: #f6f7f1; }
.protein-pinch h3 { margin: 0 0 8px; color: var(--olive-dark); font-size: 22px; }
.protein-pinch p { margin: 0 0 14px; font: 16px/1.5 Arial, sans-serif; }
.protein-pinch ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.protein-pinch li { padding: 8px 0; border-bottom: 1px solid rgba(66,82,57,.16); display: flex; justify-content: space-between; gap: 12px; font: 14px/1.35 Arial, sans-serif; }
.protein-pinch li span { color: var(--olive-dark); white-space: nowrap; }
.protein-pinch > small { display: block; margin-top: 14px; color: #67635c; font: 14px/1.45 Arial, sans-serif; }
.progress-card { grid-column: span 2; min-height: 115px; background: var(--olive); border-color: var(--olive); }
.progress-card .section-number, .progress-card strong, .progress-card small { color: white; }
.progress-card small { color: rgba(255,255,255,.78); }
.return-card { min-height: 115px; color: white; background: var(--coral); border-color: var(--coral); }
.return-card .section-number, .return-card strong { color: white; }
.return-card small { color: rgba(255,255,255,.84); }
.complete-reader { width: min(100% - 24px, 980px); margin: 18px auto 0; }
.complete-reader > summary {
  padding: 15px 20px; border: 1px solid var(--line); border-radius: 16px; cursor: pointer;
  color: var(--olive); background: rgba(255,253,248,.9); text-align: center;
  font: 700 15px/1.3 Arial, sans-serif; list-style-position: inside;
}
.complete-reader[open] > summary { border-radius: 16px 16px 0 0; }

.beginner-entry {
  width: min(100% - 24px, 980px); margin: 16px auto 0; padding: 15px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  color: var(--olive-dark); background: linear-gradient(110deg, #fffdf8, #f4e5de);
  border: 1px solid rgba(207,132,111,.38); border-radius: 18px;
  box-shadow: 0 10px 24px rgba(47,59,42,.08);
}
.beginner-entry strong, .beginner-entry span { display: block; }
.beginner-entry strong { font-size: 19px; }
.beginner-entry span { margin-top: 3px; color: #716b61; font: 14px/1.35 Arial, sans-serif; }
.beginner-entry button {
  flex: 0 0 auto; min-height: 44px; padding: 11px 17px; border: 0; border-radius: 999px;
  color: white; background: var(--coral); cursor: pointer; font: 700 14px/1 Arial, sans-serif;
}

.support-bar {
  width: min(100% - 24px, 760px); margin: 16px auto 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.support-button {
  min-height: 62px; padding: 10px 18px; border-radius: 16px; cursor: pointer;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  border: 1px solid var(--line); box-shadow: 0 9px 22px rgba(47,59,42,.08);
  transition: transform .18s ease, box-shadow .18s ease;
}
.support-button:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(47,59,42,.13); }
.support-button span { font: 700 17px/1.2 Georgia, serif; }
.support-button small { margin-top: 4px; font: 12px/1.25 Arial, sans-serif; }
.path-button { color: var(--olive-dark); background: rgba(255,253,248,.96); }
.path-button small { color: #716b61; }
.help-button { color: white; background: var(--olive); border-color: var(--olive); }
.help-button small { color: rgba(255,255,255,.78); }
.terms-button { color: var(--olive-dark); background: rgba(255,253,248,.96); }
.terms-button small { color: #716b61; }
.movement-button { color: var(--olive-dark); background: rgba(255,253,248,.96); }
.movement-button small { color: #716b61; }

.reader-shell { padding: clamp(16px, 3vw, 34px); }
.reader {
  width: min(100%, 980px); margin: 0 auto;
  background: rgba(255,253,248,.78);
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 24px;
  box-shadow: 0 22px 60px rgba(47,59,42,.13);
  padding: clamp(12px, 2vw, 22px);
}
.reader-tools { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 14px; }
.reader-tools label { font: 700 13px/1 Arial, sans-serif; color: var(--olive); }
select, .icon-button {
  min-height: 40px; border: 1px solid var(--line); border-radius: 10px;
  background: white; color: var(--ink); padding: 8px 12px;
  font: 15px/1 Arial, sans-serif;
}
.print-current {
  min-height: 40px; padding: 10px 13px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  color: white; background: var(--coral); text-decoration: none;
  font: 700 13px/1 Arial, sans-serif; box-shadow: 0 5px 14px rgba(207,132,111,.2);
}
.print-current:hover { background: #bd715d; }
.movement-help { border: 0; cursor: pointer; background: var(--olive); }
.movement-help:hover { background: var(--olive-dark); }
.icon-button { width: 42px; cursor: pointer; padding: 0; color: var(--olive); font-size: 20px; }

.book-stage { display: grid; grid-template-columns: 54px minmax(0, 1fr) 54px; align-items: center; gap: 12px; }
.book {
  position: relative; margin: auto; perspective: 1600px;
  width: min(100%, 590px); aspect-ratio: 8.5 / 11;
  filter: drop-shadow(0 18px 24px rgba(31,39,28,.18));
}
.book img {
  width: 100%; height: 100%; display: block; object-fit: contain;
  background: white; border-radius: 3px 8px 8px 3px;
  transform-origin: left center;
  backface-visibility: hidden;
}
.book.turn-next img { animation: turnNext .48s ease both; }
.book.turn-previous img { animation: turnPrevious .48s ease both; }
.page-edge { position: absolute; inset: 4px -5px -4px 5px; background: #e6dfd0; border-radius: 4px 10px 10px 4px; z-index: -1; }
.page-sheen { pointer-events: none; position: absolute; inset: 0; border-radius: 3px 8px 8px 3px; box-shadow: inset 14px 0 18px rgba(31,39,28,.04); }
.page-contents { position: absolute; inset: 0; z-index: 3; }
.page-contents button {
  position: absolute; left: 8.4%; top: var(--top); width: 82.6%; height: var(--height);
  border: 1px solid transparent; border-radius: 6px; background: transparent;
  cursor: pointer; transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.page-contents button:hover,
.page-contents button:focus-visible {
  background: rgba(207,132,111,.12); border-color: rgba(207,132,111,.65);
  box-shadow: 0 2px 10px rgba(47,59,42,.08);
}
@keyframes turnNext {
  0% { transform: rotateY(0); filter: brightness(1); }
  48% { transform: rotateY(-54deg); filter: brightness(.8); opacity: .55; }
  49% { transform: rotateY(48deg); opacity: .55; }
  100% { transform: rotateY(0); filter: brightness(1); opacity: 1; }
}
@keyframes turnPrevious {
  0% { transform: rotateY(0); filter: brightness(1); }
  48% { transform: rotateY(48deg); filter: brightness(.86); opacity: .55; }
  49% { transform: rotateY(-44deg); opacity: .55; }
  100% { transform: rotateY(0); filter: brightness(1); opacity: 1; }
}
.page-arrow {
  width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255,255,255,.9); color: var(--olive); font: 36px/1 Arial, sans-serif;
  cursor: pointer; box-shadow: 0 8px 20px rgba(47,59,42,.11);
}
.page-arrow:disabled { opacity: .25; cursor: default; }
.page-arrow:not(:disabled):hover { background: var(--olive); color: white; }
.reader-footer { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 17px; }
.progress-wrap { width: min(420px, 62%); text-align: center; }
#pageLabel { display: block; margin-bottom: 7px; color: var(--olive); font: 700 14px/1 Arial, sans-serif; }
#pageSlider { width: 100%; accent-color: var(--coral); }
.mobile-nav { display: none; min-height: 42px; border: 1px solid var(--line); background: white; color: var(--olive); border-radius: 999px; padding: 8px 13px; font: 700 14px/1 Arial, sans-serif; }
.swipe-note { margin: 9px 0 0; text-align: center; color: #777166; font: italic 14px/1.4 Georgia, serif; }
.swipe-note.contents-active { color: var(--coral); font-weight: 700; }

.reset-dialog {
  width: min(92vw, 760px); max-height: 90vh; padding: 0;
  border: 0; border-radius: 22px; color: var(--ink); background: var(--paper);
  box-shadow: 0 28px 80px rgba(31,39,28,.3);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  max-height: 90dvh;
}
.reset-dialog:not([open]) { display: none; }
.reset-dialog .dialog-card { max-height: none; overflow: visible; }
.reset-dialog::backdrop { background: rgba(26,32,24,.64); backdrop-filter: blur(4px); }
.dialog-card { position: relative; padding: clamp(24px, 5vw, 42px); }
.dialog-close {
  position: sticky; top: 8px; float: right; margin: -10px -5px 0 8px; z-index: 2; width: 40px; height: 40px;
  border: 0; border-radius: 50%; color: var(--olive); background: var(--cream);
  cursor: pointer; font: 28px/1 Arial, sans-serif;
}
.dialog-kicker { margin: 0 0 7px; color: var(--coral); font: 700 12px/1 Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.dialog-card h2 { margin: 0 42px 9px 0; color: var(--olive); font-size: clamp(25px, 4vw, 36px); }
.dialog-card > p:not(.dialog-kicker) { margin: 0 0 20px; font-size: 16px; line-height: 1.55; }
.path-options { display: grid; gap: 10px; }
.path-option {
  display: grid; grid-template-columns: 23px 1fr; gap: 11px; align-items: start;
  padding: 14px; border: 1px solid var(--line); border-radius: 13px;
  background: white; cursor: pointer;
}
.path-option:has(input:checked) { border-color: var(--coral); background: rgba(207,132,111,.08); box-shadow: 0 0 0 2px rgba(207,132,111,.12); }
.path-option input { margin-top: 3px; accent-color: var(--coral); }
.path-option strong, .path-option small { display: block; }
.path-option strong { color: var(--olive-dark); font-size: 16px; }
.path-option small { margin-top: 4px; color: #67635c; font: 14px/1.4 Arial, sans-serif; }
.dialog-action, .class-invitation a, .help-actions a, .help-actions button {
  min-height: 44px; padding: 11px 16px; border: 0; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  color: white; background: var(--olive); text-decoration: none; cursor: pointer;
  font: 700 14px/1 Arial, sans-serif;
}
.dialog-action { justify-self: start; margin-top: 3px; }
.saved-message { min-height: 18px; margin: 0; color: var(--olive); font: 700 13px/1.4 Arial, sans-serif; }
.class-invitation { margin-top: 18px; padding: 17px; border-left: 4px solid var(--coral); background: var(--cream); }
.class-invitation h3 { margin: 0 0 5px; color: var(--olive); font-size: 18px; }
.class-invitation p { margin: 0 0 12px; font-size: 15px; line-height: 1.45; }
.class-invitation a { background: var(--coral); }
.help-layout { display: grid; grid-template-columns: minmax(210px, .9fr) minmax(260px, 1.1fr); gap: 16px; }
.help-choices { display: grid; gap: 8px; }
.help-choices button {
  min-height: 45px; padding: 10px 12px; text-align: left; border: 1px solid var(--line);
  border-radius: 11px; color: var(--olive-dark); background: white; cursor: pointer;
  font: 700 14px/1.25 Arial, sans-serif;
}
.help-choices button:hover, .help-choices button.active { color: white; background: var(--olive); border-color: var(--olive); }
.help-response { min-height: 250px; padding: 22px; border-radius: 16px; background: var(--cream); }
.response-mark { width: 45px; height: 45px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--coral); font: 700 12px/1 Arial, sans-serif; }
.help-response h3 { margin: 15px 0 8px; color: var(--olive); font-size: 22px; }
.help-response p { margin: 0; font-size: 16px; line-height: 1.5; }
.help-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.help-actions .secondary-action { color: var(--olive); background: white; border: 1px solid var(--line); }

.beginner-steps { margin: 0; padding: 0; list-style: none; counter-reset: beginner; display: grid; gap: 11px; }
.beginner-steps li {
  counter-increment: beginner; position: relative; padding: 15px 15px 15px 58px;
  border: 1px solid var(--line); border-radius: 14px; background: white;
}
.beginner-steps li::before {
  content: counter(beginner); position: absolute; left: 14px; top: 14px;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  color: white; background: var(--olive); font: 700 14px/1 Arial, sans-serif;
}
.beginner-steps strong, .beginner-steps span { display: block; }
.beginner-steps strong { color: var(--olive-dark); font-size: 16px; }
.beginner-steps span { margin-top: 4px; color: #67635c; font: 14px/1.45 Arial, sans-serif; }
.beginner-note { margin: 15px 0 !important; padding: 14px; border-left: 4px solid var(--coral); background: var(--cream); }
.quick-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-actions button, .print-all {
  min-height: 44px; padding: 11px 15px; border: 0; border-radius: 999px;
  color: white; background: var(--olive); text-decoration: none; cursor: pointer;
  font: 700 14px/1 Arial, sans-serif;
}
.quick-actions button:nth-child(n+2) { color: var(--olive); background: white; border: 1px solid var(--line); }

.printables-card, .movement-card { max-height: 88vh; overflow-y: auto; }
.print-all { display: inline-flex; align-items: center; margin-bottom: 18px; background: var(--coral); }
.print-all.full-guide { margin-right: 8px; background: var(--olive); }
.ipad-print-help { margin: 4px 0 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; color: var(--olive-dark); background: var(--cream); font: 14px/1.5 Arial, sans-serif; }
.ipad-print-help strong { font-size: 16px; }
.ipad-print-help ol { margin: 8px 0 6px; padding-left: 22px; }
.ipad-print-help p { margin: 8px 0 0; }
.printable-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.printable-groups section { padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.printable-groups section.printable-wide { grid-column: 1 / -1; }
.printable-groups h3 { margin: 0 0 9px; color: var(--olive-dark); font-size: 17px; }
.printable-groups a { display: block; padding: 8px 0; color: var(--olive); font: 700 14px/1.35 Arial, sans-serif; }

.movement-dialog { width: min(94vw, 900px); }
.movement-search { display: block; position: sticky; top: 0; z-index: 2; padding: 10px 0 14px; background: var(--paper); }
.movement-search span { display: block; margin-bottom: 6px; color: var(--olive); font: 700 13px/1 Arial, sans-serif; }
.movement-search input { width: 100%; min-height: 46px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: white; font: 16px/1.2 Arial, sans-serif; }
.movement-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.movement-list section { padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.movement-list section.weighted { background: rgba(244,239,228,.7); }
.movement-list h3 { margin: 0 0 5px; color: var(--olive-dark); font-size: 16px; }
.movement-list p { margin: 0; color: #55534e; font: 14px/1.45 Arial, sans-serif; }
.movement-empty { padding: 18px; text-align: center; color: #716b61; font: 15px/1.5 Arial, sans-serif; }
.safety-reminder { margin-top: 15px; padding: 14px; border-left: 4px solid var(--coral); background: var(--cream); font: 14px/1.5 Arial, sans-serif; }

.legal-dialog { width: min(94vw, 850px); }
.legal-card { max-height: 88vh; overflow-y: auto; }
.legal-updated { color: #716b61; font: 13px/1.4 Arial, sans-serif; }
.legal-section { padding: 17px 0; border-top: 1px solid var(--line); }
.legal-section h3, .checkout-preview h3 { margin: 0 0 8px; color: var(--olive-dark); font-size: 19px; }
.legal-section p { margin: 0 0 10px; font: 15px/1.58 Arial, sans-serif; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section a { color: var(--olive); font-weight: 700; }
.checkout-preview { margin-top: 8px; padding: 20px; border: 1px solid rgba(207,132,111,.45); border-radius: 16px; background: rgba(207,132,111,.08); }
.agreement-example { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font: 14px/1.5 Arial, sans-serif; }
.agreement-example input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--olive); }
.agreement-example button { padding: 0; border: 0; color: var(--olive); background: transparent; text-decoration: underline; cursor: pointer; }
.checkout-preview > small { display: block; margin: 11px 0 0 32px; color: #716b61; font: 12px/1.45 Arial, sans-serif; }
.site-footer { padding: 3px 18px 24px; text-align: center; color: #716b61; font: 12px/1.5 Arial, sans-serif; }
.site-footer p { margin: 0 0 4px; }
.site-footer button { padding: 4px 8px; border: 0; color: var(--olive); background: transparent; text-decoration: underline; cursor: pointer; font: 700 12px/1.4 Arial, sans-serif; }

:focus-visible { outline: 3px solid rgba(207,132,111,.55); outline-offset: 3px; }

@media (max-width: 720px) {
  .topbar { align-items: flex-start; }
  .brand span { display: none; }
  .button { min-height: 40px; padding: 9px 11px; font-size: 12px; }
  .phone-reading { display: inline-flex; }
  .reader-shell { padding: 10px; }
  .reader { padding: 10px; border-radius: 16px; }
  .reader-tools { margin: 2px 0 10px; }
  .reader-tools { flex-wrap: wrap; }
  .reader-tools label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .book-stage { display: block; }
  .page-arrow { display: none; }
  .book { width: min(100%, 520px); }
  .mobile-nav { display: inline-flex; align-items: center; }
  .reader-footer { gap: 8px; }
  .progress-wrap { width: 48%; }
  .support-bar { margin-top: 10px; gap: 8px; }
  .support-bar { grid-template-columns: 1fr 1fr; }
  .support-button { min-height: 58px; padding: 9px 12px; }
  .support-button span { font-size: 15px; }
  .help-layout { grid-template-columns: 1fr; }
  .help-response { min-height: 0; }
  .beginner-entry { align-items: stretch; flex-direction: column; gap: 11px; }
  .beginner-entry button { width: 100%; }
  .movement-list { grid-template-columns: 1fr; }
  .nutrition-resources { grid-template-columns: 1fr; }
  .protein-pinch ul { grid-template-columns: 1fr; }
  .print-all { width: 100%; margin-right: 0; justify-content: center; }
  .reset-home { margin-top: 12px; padding: 18px 14px; border-radius: 18px; }
  .reset-home-intro { align-items: stretch; flex-direction: column; gap: 14px; }
  .reset-home-intro button { width: 100%; }
  .reset-sections { margin-top: 18px; grid-template-columns: 1fr 1fr; gap: 9px; }
  .section-card { min-height: 142px; padding: 14px; }
  .section-card strong { font-size: 19px; }
  .section-card small { font-size: 13px; }
  .progress-card { min-height: 106px; }
  .progress-card { grid-column: 1 / -1; }
  .return-card { grid-column: 1 / -1; min-height: 106px; }
  .complete-reader { margin-top: 12px; }
}

@media (max-width: 480px) {
  .reset-sections { grid-template-columns: 1fr; }
  .section-card { min-height: 118px; }
  .topbar { padding: 10px 11px; }
  .brand-mark { width: 37px; height: 37px; font-size: 11px; }
  .brand p { font-size: 14px; }
  .topbar { flex-wrap: wrap; }
  .top-actions { width: 100%; }
  .top-actions .button { flex: 1; }
  .button.primary { font-size: 12px; }
  select { width: min(230px, 72vw); }
  .print-current { order: 3; width: min(230px, 72vw); }
  .support-button small { display: none; }
  .support-button { align-items: center; text-align: center; min-height: 48px; }
  .dialog-card { padding: 25px 17px; }
  .legal-card { padding: 28px 18px; }
  .printable-groups { grid-template-columns: 1fr; }
  .printable-groups section.printable-wide { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
