:root {
  --brand: #0b5d4b;
  --brand-dark: #084637;
  --brand-light: #e7f3ef;
  --ink: #17211f;
  --muted: #63716d;
  --line: #dce5e2;
  --surface: #ffffff;
  --background: #f4f7f6;
  --shadow: 0 18px 45px rgba(22, 56, 48, 0.10);
}

body {
  min-height: 100vh;
  color: var(--ink);
  background: var(--background);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-header {
  color: #fff;
  background: linear-gradient(120deg, var(--brand-dark), var(--brand));
  box-shadow: 0 6px 20px rgba(8, 70, 55, 0.18);
}

.app-nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  font-weight: 800;
}

.brand-mark-large {
  width: 52px;
  height: 52px;
  margin-bottom: 1rem;
  border: 0;
  border-radius: 16px;
  background: var(--brand);
  font-size: 1.35rem;
}

.app-main {
  max-width: 940px;
  padding-top: clamp(2rem, 6vw, 4.75rem);
  padding-bottom: 4rem;
}

.page-intro {
  max-width: 720px;
  margin-bottom: 2rem;
}

.page-intro.compact {
  margin-bottom: 1.5rem;
}

.page-intro h1,
.empty-state h1,
.empty-state h2 {
  letter-spacing: -0.035em;
}

.message-stack {
  margin-bottom: 1.25rem;
}

.summary-grid,
.action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.summary-grid {
  margin-bottom: 2rem;
}

.summary-card,
.action-card,
.list-card {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
  text-decoration: none;
}

.summary-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  border-radius: 18px;
}

.summary-value {
  color: var(--brand);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.summary-label {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.content-section {
  margin-top: 2rem;
}

.section-heading,
.detail-header,
.week-header,
.exercise-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.section-heading {
  margin-bottom: 1.2rem;
}

.page-heading {
  margin-bottom: 1.75rem;
}

.section-heading h1,
.section-heading h2,
.detail-header h1 {
  margin-bottom: 0.4rem;
  font-weight: 760;
  letter-spacing: -0.03em;
}

.section-heading p,
.detail-header p,
.week-header p {
  margin-bottom: 0;
  color: var(--muted);
}

.action-grid {
  margin-top: 1rem;
}

.action-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem;
  border-radius: 18px;
}

.action-card span,
.list-card small,
.muted-copy,
.detail-meta,
.exercise-header small,
.exercise-note {
  color: var(--muted);
}

.stack-list,
.week-stack,
.exercise-stack,
.workout-list {
  display: grid;
  gap: 0.75rem;
}

.list-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
}

.list-card > span:first-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.summary-card:hover,
.summary-card:focus-visible,
.action-card:hover,
.action-card:focus-visible,
.list-card:hover,
.list-card:focus-visible {
  border-color: #9fc7bc;
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(22, 56, 48, 0.07);
}

.status-pill {
  width: fit-content;
  display: inline-flex;
  flex: 0 0 auto;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 750;
}

.status-active {
  color: #07523f;
  background: #dff3ec;
}

.status-draft,
.status-muted {
  color: #58635f;
  background: #edf1f0;
}

.status-finished {
  color: #6a5110;
  background: #fff0bd;
}

.compact-empty {
  padding: 1.4rem;
}

.compact-empty p:last-child {
  margin-bottom: 0;
}

.form-card,
.week-card,
.exercise-card {
  padding: clamp(1rem, 4vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(22, 56, 48, 0.04);
}

.form-card {
  max-width: 720px;
}

.form-card textarea {
  resize: vertical;
}

.form-actions,
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.form-actions {
  justify-content: flex-end;
  margin-top: 1.5rem;
}

.detail-header {
  margin-bottom: 1rem;
}

.title-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.title-line .eyebrow {
  margin-bottom: 0;
}

.toolbar {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.week-header,
.exercise-header {
  margin-bottom: 1rem;
}

.week-header h3,
.exercise-header h3 {
  margin-bottom: 0.2rem;
  font-size: 1.05rem;
  font-weight: 750;
}

.workout-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem;
  border-radius: 12px;
  color: var(--ink);
  background: var(--background);
  text-decoration: none;
}

.week-card > .btn {
  margin-top: 1rem;
}

.exercise-header > div {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 0.7rem;
}

.exercise-header small {
  grid-column: 2;
}

.exercise-order {
  width: 34px;
  height: 34px;
  display: grid;
  grid-row: 1 / span 2;
  place-items: center;
  border-radius: 11px;
  color: var(--brand);
  background: var(--brand-light);
  font-weight: 800;
}

.exercise-note {
  margin-top: -0.35rem;
}

.set-table {
  min-width: 650px;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}

.set-table th {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.training-card-list,
.exercise-accordion-list,
.set-card-list {
  display: grid;
  gap: 0.75rem;
}

.week-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.55rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 7px 22px rgba(22, 56, 48, 0.04);
}

.week-calendar-link {
  display: block;
  margin-bottom: 1.5rem;
  color: var(--ink);
  text-decoration: none;
}

.week-calendar-link:hover .week-calendar,
.week-calendar-link:focus-visible .week-calendar {
  border-color: #9fc7bc;
  box-shadow: 0 12px 28px rgba(22, 56, 48, 0.09);
}

.calendar-open-label {
  display: flex;
  justify-content: flex-end;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 750;
}

.calendar-day {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.calendar-day strong {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--ink);
  background: #eef3f1;
  font-size: 1rem;
}

.calendar-day.is-today strong {
  border: 2px solid var(--brand);
}

.calendar-day.is-complete strong {
  color: #fff;
  background: var(--brand);
}

.calendar-codes {
  min-height: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem;
}

.calendar-codes b,
.month-day-codes b {
  display: inline-flex;
  padding: 0.08rem 0.28rem;
  border-radius: 999px;
  color: #fff;
  background: var(--brand-dark);
  font-size: 0.62rem;
  line-height: 1.35;
}

.month-calendar {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(22, 56, 48, 0.06);
}

.month-calendar-header {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--brand-light);
}

.month-calendar-header h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 780;
  text-align: center;
}

.month-calendar-header a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--brand);
  background: #fff;
  font-size: 1.6rem;
  line-height: 1;
  text-decoration: none;
}

.month-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  padding: 0.75rem;
}

.month-weekday {
  padding: 0.45rem 0.2rem 0.7rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 750;
  text-align: center;
}

.month-day {
  min-height: 84px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.45rem 0.2rem;
  border-top: 1px solid #edf1ef;
}

.month-day-number {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.85rem;
}

.month-day.is-today .month-day-number {
  border: 2px solid var(--brand);
  font-weight: 800;
}

.month-day.has-workout .month-day-number {
  color: #fff;
  background: var(--brand);
  font-weight: 800;
}

.month-day.outside-month {
  opacity: 0.35;
}

.month-day-codes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem;
}

.training-nav-card {
  min-height: 94px;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 7px 22px rgba(22, 56, 48, 0.04);
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.training-nav-card:hover,
.training-nav-card:focus-visible {
  border-color: #9fc7bc;
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(22, 56, 48, 0.09);
  transform: translateY(-2px);
}

.training-card-badge,
.training-header-badge,
.workout-code {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid #a8d0c5;
  color: var(--brand);
  background: var(--brand-light);
  font-weight: 800;
}

.training-card-badge,
.workout-code {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  font-size: 1.2rem;
}

.training-card-copy {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.22rem;
}

.training-card-copy strong {
  font-size: 1.05rem;
  line-height: 1.3;
}

.training-card-copy small,
.previous-record,
.training-page-header p,
.set-panel-header > span,
.next-step-note {
  color: var(--muted);
}

.training-card-arrow,
.training-card-action {
  flex: 0 0 auto;
  color: var(--brand);
  font-weight: 750;
}

.training-card-arrow {
  font-size: 1.85rem;
  line-height: 1;
}

.training-card-action span {
  margin-left: 0.15rem;
  font-size: 1.35rem;
}

.screen-back {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.35rem;
  color: var(--brand);
  font-weight: 750;
  text-decoration: none;
}

.screen-back span {
  font-size: 1.75rem;
  line-height: 0.8;
}

.training-page-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: clamp(1rem, 4vw, 1.5rem);
  border: 1px solid #bad9d1;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff, var(--brand-light));
}

.training-page-header > div {
  min-width: 0;
}

.training-page-header h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 780;
  letter-spacing: -0.035em;
}

.training-page-header p {
  margin-bottom: 0;
}

.compact-training-header {
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 17px;
}

.compact-training-header .workout-code-large {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 1.15rem;
}

.compact-training-header h1 {
  margin-bottom: 0.12rem;
  font-size: 1.45rem;
}

.compact-training-header p {
  font-size: 0.82rem;
}

.compact-week-header .training-header-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 1.15rem;
}

.training-header-badge,
.workout-code-large,
.exercise-order-large {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  font-size: 1.65rem;
}

.exercise-nav-card {
  align-items: flex-start;
}

.exercise-nav-card .exercise-order {
  grid-row: auto;
}

.previous-record {
  margin-top: 0.25rem;
  font-size: 0.8rem;
}

.exercise-accordion {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 7px 22px rgba(22, 56, 48, 0.04);
}

.exercise-accordion > summary {
  min-height: 94px;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  cursor: pointer;
  list-style: none;
}

.exercise-accordion > summary::-webkit-details-marker {
  display: none;
}

.accordion-indicator {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  color: var(--brand);
  background: var(--brand-light);
  font-size: 1.25rem;
  font-weight: 750;
  transition: transform 160ms ease;
}

.exercise-accordion[open] > summary .accordion-indicator {
  transform: rotate(45deg);
}

.exercise-accordion.is-completed {
  border-color: #91c5b7;
}

.exercise-complete-badge {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  background: var(--brand);
  font-weight: 800;
}

.exercise-accordion-body {
  padding: 1rem;
  border-top: 1px solid var(--line);
  background: #fbfcfc;
}

.technique-note {
  margin: 0 0 1rem;
  color: var(--muted);
}

.workout-set-card {
  align-items: stretch;
  flex-direction: column;
}

.workout-set-card.is-completed {
  border-color: #a8d0c5;
  background: #f7fbfa;
}

.set-number-and-values {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.series-action-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem;
}

.series-start-form,
.series-completion-form {
  min-width: 0;
}

.series-action-button {
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
  padding: 0.32rem 0.38rem;
  border: 1px solid #a8d0c5;
  border-radius: 10px;
  color: var(--brand);
  background: var(--brand-light);
  font-size: 0.74rem;
  font-weight: 750;
}

.series-action-button .chronometer-label {
  white-space: nowrap;
}

.series-action-button > span[aria-hidden="true"] {
  flex: 0 0 auto;
  font-size: 0.7rem;
}

.series-action-button.is-saving {
  color: var(--muted);
  background: #edf1f0;
}

.series-action-button.is-running {
  color: #fff;
  background: var(--brand);
}

.series-action-button.is-complete {
  border-color: #9bc6ba;
  color: var(--brand);
  background: #e8f4f1;
}

.series-action-button.is-finished {
  border-color: #d7b65c;
  color: #604a0b;
  background: #fff3c8;
}

.series-action-button:disabled {
  cursor: default;
  opacity: 1;
}

.workout-footer-spacer {
  height: 96px;
}

.workout-footer-bar {
  position: fixed;
  z-index: 20;
  bottom: 12px;
  left: 50%;
  width: min(calc(100% - 24px), 916px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid #9bc6ba;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 40px rgba(8, 70, 55, 0.2);
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
}

.workout-footer-bar > div {
  display: flex;
  flex-direction: column;
}

.workout-footer-bar small {
  color: var(--muted);
}

.set-panel {
  padding: clamp(1rem, 4vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(22, 56, 48, 0.04);
}

.set-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.set-panel-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 760;
}

.set-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid #e1e9e6;
  border-radius: 15px;
  background: #f9fbfa;
}

.set-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(74px, 1fr));
  gap: 0.5rem;
}

.set-values span,
.set-input-box {
  display: flex;
  flex-direction: column;
  padding: 0.45rem 0.7rem;
  border-radius: 11px;
  background: var(--surface);
  text-align: center;
}

.set-values small,
.set-input-box small {
  color: var(--muted);
  font-size: 0.7rem;
}

.set-values b {
  color: var(--brand);
}

.set-entry-input {
  width: 100%;
  min-width: 0;
  padding: 0.15rem 0.2rem;
  border: 0;
  border-bottom: 1px solid #bad9d1;
  border-radius: 0;
  outline: 0;
  color: var(--brand);
  background: transparent;
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
}

.set-entry-input:focus {
  border-color: var(--brand);
  box-shadow: 0 2px 0 rgba(11, 93, 75, 0.12);
}

.set-entry-input:disabled {
  opacity: 1;
  -webkit-text-fill-color: var(--brand);
}

.set-input-box em {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.62rem;
  font-style: normal;
  white-space: nowrap;
}

.series-form-error {
  min-height: 0;
  margin: 0;
  color: #a23b2a;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

.series-form-error:not(:empty) {
  margin-top: 0.45rem;
}

.next-step-note {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  text-align: center;
}

.page-intro h1 {
  margin-bottom: 0.6rem;
  font-size: clamp(2rem, 5vw, 3.15rem);
  font-weight: 750;
}

.page-intro p:last-child,
.empty-state p,
.login-heading p,
.privacy-note {
  color: var(--muted);
}

.eyebrow {
  margin-bottom: 0.45rem;
  color: var(--brand) !important;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.module-card {
  min-height: 180px;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(22, 56, 48, 0.05);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.module-card:hover,
.module-card:focus-visible {
  border-color: #9fc7bc;
  color: var(--ink);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.module-card-active {
  border-color: #b3d7ce;
}

.module-icon {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 15px;
  font-weight: 800;
}

.module-icon-workout {
  color: #7b3a11;
  background: #fff0e2;
}

.module-icon-finance {
  color: #1551a2;
  background: #e7f0ff;
}

.module-content {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.4rem;
}

.module-label {
  font-size: 1.2rem;
  font-weight: 750;
}

.module-description {
  color: var(--muted);
}

.module-arrow {
  color: var(--brand);
  font-size: 1.5rem;
}

.status-badge {
  width: fit-content;
  display: inline-flex;
  margin-top: 0.45rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  color: #665216;
  background: #fff5c7;
  font-size: 0.78rem;
  font-weight: 750;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background:
    radial-gradient(circle at 12% 15%, rgba(11, 93, 75, 0.13), transparent 32%),
    radial-gradient(circle at 88% 82%, rgba(64, 112, 176, 0.10), transparent 30%),
    var(--background);
}

.login-card {
  width: min(100%, 440px);
  padding: clamp(1.5rem, 5vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.login-heading {
  margin-bottom: 1.75rem;
}

.login-heading h1 {
  margin-bottom: 0.5rem;
  font-size: 2rem;
  font-weight: 760;
  letter-spacing: -0.035em;
}

.form-control {
  border-color: #cbd8d4;
  border-radius: 12px;
}

.form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 0.22rem rgba(11, 93, 75, 0.13);
}

.btn-primary {
  border-color: var(--brand);
  background: var(--brand);
}

.btn-primary:hover,
.btn-primary:focus {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
}

.privacy-note {
  margin: 1.25rem 0 0;
  font-size: 0.84rem;
  text-align: center;
}

.login-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.1rem;
  font-size: 0.9rem;
}

.login-actions a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.login-actions a:hover,
.login-actions a:focus {
  color: var(--brand-dark);
  text-decoration: underline;
}

.login-actions-single {
  justify-content: center;
  text-align: center;
}

.recovery-note {
  padding: 1rem;
  border: 1px solid #cbd8d4;
  border-radius: 14px;
  color: var(--muted);
  background: #f6faf9;
}

.recovery-note p:last-child {
  margin-bottom: 0;
}

.breadcrumb-nav {
  display: flex;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumb-nav a {
  color: var(--brand);
  font-weight: 650;
  text-decoration: none;
}

.empty-state {
  padding: clamp(1.5rem, 5vw, 3rem);
  border: 1px dashed #afc7c1;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.empty-state .module-icon,
.empty-state .status-badge {
  margin: 0 auto 1rem;
}

.empty-state h1,
.empty-state h2 {
  margin-bottom: 0.65rem;
  font-weight: 750;
}

@media (max-width: 700px) {
  .module-grid {
    grid-template-columns: 1fr;
  }

  .module-card {
    min-height: 150px;
  }

  .app-nav {
    min-height: 62px;
  }

  .summary-grid,
  .action-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .detail-header {
    align-items: stretch;
    flex-direction: column;
  }

  .section-heading > .btn,
  .detail-header > .btn {
    width: 100%;
  }

  .form-actions > * {
    flex: 1;
  }

  .workout-row {
    align-items: flex-start;
  }

  .app-main {
    padding-top: 1.35rem;
  }

  .training-nav-card {
    min-height: 88px;
    padding: 0.9rem;
  }

  .week-calendar {
    gap: 0.25rem;
    padding: 0.8rem 0.55rem;
  }

  .calendar-day {
    font-size: 0.72rem;
  }

  .calendar-day strong {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .calendar-codes b {
    padding-right: 0.2rem;
    padding-left: 0.2rem;
    font-size: 0.56rem;
  }

  .month-calendar-grid {
    padding: 0.4rem;
  }

  .month-day {
    min-height: 68px;
    padding-right: 0.08rem;
    padding-left: 0.08rem;
  }

  .month-day-codes b {
    padding-right: 0.18rem;
    padding-left: 0.18rem;
    font-size: 0.55rem;
  }

  .training-card-action {
    font-size: 0;
  }

  .training-card-action span {
    font-size: 1.65rem;
  }

  .training-page-header {
    align-items: flex-start;
  }

  .training-header-badge,
  .workout-code-large,
  .exercise-order-large {
    width: 60px;
    height: 60px;
    border-radius: 17px;
    font-size: 1.35rem;
  }

  .compact-training-header .workout-code-large {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    font-size: 1.05rem;
  }

  .compact-week-header {
    align-items: center;
  }

  .compact-week-header .training-header-badge {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    font-size: 1.05rem;
  }

  .exercise-page-header {
    flex-direction: column;
  }

  .set-card {
    align-items: stretch;
    flex-direction: column;
  }

  .exercise-accordion > summary {
    min-height: 88px;
    gap: 0.75rem;
    padding: 0.9rem;
  }

  .exercise-accordion-body {
    padding: 0.8rem;
  }

  .workout-footer-bar > div {
    font-size: 0.88rem;
  }

  .set-values {
    width: 100%;
  }
}

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