
:root {
  --green: #249653;
  --green-dark: #16743d;
  --green-light: #eaf5ed;
  --ink: #171c19;
  --muted: #727a75;
  --line: #e9ece9;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.site-header {
  width: min(1200px, calc(100% - 64px));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid #f1f2f0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.45px;
  white-space: nowrap;
}

.brand strong {
  color: var(--green);
}

.brand-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--green);
}

.brand-icon svg {
  width: 34px;
  height: 34px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  color: #656d67;
  font-size: 13px;
  font-weight: 600;
}

.main-nav a {
  transition: color 160ms ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--green);
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 700;
  transition: background 160ms ease, border-color 160ms ease;
}

.button-primary {
  background: var(--green);
  color: white;
}

.button-primary:hover {
  background: var(--green-dark);
}

.button-secondary {
  border-color: #e2e6e2;
  background: white;
  color: var(--ink);
}

.button-secondary:hover {
  border-color: #b9cdbf;
}

.header-button {
  min-height: 42px;
  padding-inline: 17px;
}

.section-wrap {
  width: min(1200px, calc(100% - 64px));
  margin-inline: auto;
}

.hero {
  min-height: 640px;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: 24px;
  padding-top: 46px;
  padding-bottom: 48px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 20px 0;
}

.eyebrow {
  margin: 0 0 21px;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.55px;
  line-height: 1.6;
}

.hero-copy > .eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
}

.hero-copy > .eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

.hero h1 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(46px, 5vw, 66px);
  font-weight: 800;
  letter-spacing: -3.6px;
  line-height: 1.1;
}

.hero h1 span,
.final-cta h2 span {
  color: var(--green);
}

.hero-description {
  max-width: 455px;
  margin: 23px 0 27px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.95;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 48px;
  padding-top: 23px;
  border-top: 1px solid var(--line);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.stat strong {
  font-family: "Manrope", sans-serif;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.7px;
}

.stat strong span {
  color: var(--green);
}

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

.hero-visual {
  position: relative;
  min-width: 0;
  height: 535px;
}

.hero-circle {
  position: absolute;
  width: min(420px, 78%);
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%);
  border-radius: 50%;
  background: var(--green-light);
}

.hero-athlete {
  position: absolute;
  z-index: 1;
  width: 82%;
  height: 100%;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  object-fit: contain;
  object-position: center bottom;
}

.floating-card {
  position: absolute;
  z-index: 2;
  background: #fff;
  border: 1px solid #edf0ed;
  border-radius: 9px;
  box-shadow: 0 10px 35px rgb(20 38 25 / 9%);
}

.activity-card {
  top: 28px;
  left: -2px;
  width: 220px;
  padding: 17px;
}

.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.card-label {
  margin: 0 0 5px;
  color: #828983;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1px;
}

.card-heading h3,
.goal-top h3 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.mini-icon {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: var(--green-light);
  color: var(--green);
  font-size: 14px;
}

.activity-total {
  margin-top: 15px;
  font-size: 20px;
  font-weight: 800;
}

.activity-total span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
}

.bar-chart {
  height: 84px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}

.bar-column {
  height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.bar-column > span {
  display: block;
  width: 100%;
  height: var(--bar);
  min-height: 8px;
  border-radius: 3px 3px 0 0;
  background: #8acaa0;
}

.bar-column:nth-child(4) > span {
  background: var(--green);
}

.bar-column small {
  color: #818881;
  font-size: 8px;
}

.workout-card {
  right: -4px;
  bottom: 40px;
  width: 235px;
  padding: 17px;
}

.workout-count {
  padding: 5px 7px;
  border-radius: 4px;
  background: #f1f7f2;
  color: var(--green-dark);
  font-size: 8px;
  white-space: nowrap;
}

.workout-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-top: 13px;
  margin-top: 11px;
  border-top: 1px solid #f0f2f0;
  font-size: 10px;
  font-weight: 600;
}

.exercise-icon {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: #f1f6f2;
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 800;
}

.exercise-check {
  margin-left: auto;
  color: var(--green);
  font-size: 13px;
}

.goal-card {
  top: 265px;
  left: -20px;
  width: 205px;
  padding: 15px;
}

.goal-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.goal-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
}

.goal-progress {
  height: 6px;
  overflow: hidden;
  margin-top: 17px;
  border-radius: 10px;
  background: #e9eee9;
}

.goal-progress span {
  display: block;
  width: 75%;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.goal-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 0;
  font-size: 10px;
}

.goal-caption strong {
  color: var(--green);
  font-size: 12px;
}

.goal-caption span {
  color: var(--muted);
  font-size: 9px;
}

.features {
  padding-top: 62px;
  padding-bottom: 70px;
  border-top: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading .eyebrow {
  margin-bottom: 9px;
}

.section-heading h2,
.how-section h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -1.3px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-item {
  padding: 27px 28px 27px 0;
}

.feature-item + .feature-item {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.feature-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 17px;
  border-radius: 7px;
  background: var(--green-light);
  color: var(--green);
  font-size: 20px;
  font-weight: 700;
}

.feature-item h3 {
  margin: 0 0 9px;
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  font-weight: 800;
}

.feature-item p,
.how-section > p:last-child {
  max-width: 310px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.how-section {
  padding-top: 22px;
  padding-bottom: 82px;
}

.how-section .eyebrow {
  margin-bottom: 10px;
}

.how-section > p:last-child {
  max-width: 600px;
  margin-top: 14px;
}

.final-cta {
  padding: 47px 24px;
  margin-bottom: 45px;
  background: #f3f8f3;
  text-align: center;
}

.final-cta .eyebrow {
  margin-bottom: 12px;
}

.final-cta h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -1.7px;
}

.final-cta > p:not(.eyebrow) {
  margin: 13px 0 22px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  min-height: 80px;
  width: min(1200px, calc(100% - 64px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  font-size: 12px;
}

.site-footer p {
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 980px) {
  .site-header,
  .section-wrap,
  .site-footer {
    width: min(100% - 40px, 760px);
  }

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

  .hero h1 {
    font-size: clamp(42px, 6vw, 56px);
    letter-spacing: -2.7px;
  }

  .hero-visual {
    height: 480px;
  }

  .activity-card {
    left: -3px;
    width: 190px;
  }

  .workout-card {
    right: -3px;
    width: 210px;
  }

  .goal-card {
    left: -5px;
    width: 185px;
  }

  .hero-stats {
    gap: 18px;
  }

  .stat strong {
    font-size: 20px;
  }

  .main-nav {
    gap: 20px;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 72px;
    width: calc(100% - 32px);
    gap: 10px;
  }

  .brand {
    gap: 5px;
    font-size: 12px;
  }

  .brand-icon,
  .brand-icon svg {
    width: 29px;
    height: 29px;
  }

  .main-nav {
    display: none;
  }

  .header-button {
    min-height: 38px;
    padding-inline: 12px;
    font-size: 11px;
  }

  .section-wrap,
  .site-footer {
    width: calc(100% - 32px);
  }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    padding-top: 45px;
    padding-bottom: 35px;
  }

  .hero-copy {
    padding: 0;
  }

  .hero h1 {
    font-size: clamp(43px, 12vw, 59px);
    letter-spacing: -2.8px;
  }

  .hero-description {
    margin-top: 18px;
    font-size: 13px;
    line-height: 1.8;
  }

  .hero-stats {
    justify-content: space-between;
    gap: 12px;
    margin-top: 31px;
  }

  .stat strong {
    font-size: 19px;
  }

  .stat small {
    font-size: 9px;
  }

  .hero-visual {
    width: 100%;
    height: 430px;
    margin-top: 24px;
  }

  .hero-circle {
    width: 76%;
  }

  .hero-athlete {
    width: 88%;
  }

  .activity-card {
    top: 5px;
    left: 0;
    width: 176px;
    padding: 12px;
  }

  .activity-total {
    font-size: 17px;
  }

  .bar-chart {
    height: 65px;
  }

  .workout-card {
    right: 0;
    bottom: 10px;
    width: 194px;
    padding: 12px;
  }

  .workout-item {
    gap: 7px;
    font-size: 9px;
  }

  .workout-item:nth-of-type(n+5) {
    display: none;
  }

  .goal-card {
    top: 222px;
    left: 0;
    width: 165px;
    padding: 12px;
  }

  .goal-caption span {
    font-size: 8px;
  }

  .features {
    padding-top: 40px;
    padding-bottom: 45px;
  }

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

  .feature-item,
  .feature-item + .feature-item {
    padding: 22px 0;
    border-left: 0;
  }

  .feature-item + .feature-item {
    border-top: 1px solid var(--line);
  }

  .feature-icon {
    margin-bottom: 12px;
  }

  .how-section {
    padding-top: 5px;
    padding-bottom: 48px;
  }

  .final-cta {
    padding: 35px 17px;
    margin-bottom: 28px;
  }

  .site-footer {
    min-height: 75px;
  }

  .site-footer p {
    max-width: 145px;
    text-align: right;
    line-height: 1.6;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}


/* Login and sign-up page */

.auth-header {
  min-height: 76px;
}

.auth-back-link {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.auth-back-link:hover {
  color: var(--green);
}

.auth-layout {
  width: min(1050px, calc(100% - 48px));
  min-height: calc(100vh - 77px);
  margin: 0 auto;
  padding: 65px 0;
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  gap: 80px;
}

.auth-intro h1 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(36px, 4.5vw, 52px);
  line-height: 1.17;
  letter-spacing: -2.5px;
}

.auth-intro h1 span {
  color: var(--green);
}

.auth-intro > p:not(.eyebrow) {
  max-width: 430px;
  margin: 20px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.auth-benefits {
  margin-top: 28px;
}

.auth-benefits p {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #505951;
  font-size: 13px;
}

.auth-benefits p span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green);
  font-weight: 800;
}

.auth-form-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.auth-tab {
  min-height: 54px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: white;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.auth-tab.active {
  border-bottom-color: var(--green);
  color: var(--green);
}

.auth-form-content {
  padding: 29px;
}

.auth-form-content h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 25px;
  letter-spacing: -0.8px;
}

.auth-subtitle {
  margin: 9px 0 24px;
  color: var(--muted);
  font-size: 12px;
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
}

.form-field input {
  width: 100%;
  min-height: 45px;
  padding: 0 12px;
  border: 1px solid #dfe5df;
  border-radius: 5px;
  outline: none;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
}

.form-field input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgb(36 150 83 / 9%);
}

.form-field input::placeholder {
  color: #a1a8a2;
}

.auth-submit {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.auth-switch-copy {
  margin: 20px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
}

.auth-switch-copy button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.auth-note {
  margin: 19px 0 0;
  color: #899089;
  font-size: 10px;
  line-height: 1.7;
  text-align: center;
}

.form-message {
  margin: 0 0 12px;
  color: #b42318;
  font-size: 11px;
  line-height: 1.6;
}

.form-message:empty {
  display: none;
}

@media (max-width: 760px) {
  .auth-layout {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 42px 0;
  }

  .auth-intro h1 {
    font-size: 39px;
  }

  .auth-form-content {
    padding: 23px;
  }
}

@media (max-width: 420px) {
  .auth-header {
    width: calc(100% - 32px);
  }

  .auth-back-link {
    font-size: 10px;
  }

  .auth-layout {
    width: calc(100% - 32px);
  }
}


/* Dashboard */

.dashboard-page {
  background: #fafbf9;
  min-height: 100vh;
}

.dashboard-header {
  width: min(1200px, calc(100% - 64px));
  background: #fff;
}

.dashboard-nav {
  display: flex;
  gap: 30px;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.dashboard-nav a:hover,
.dashboard-nav a.active {
  color: var(--green);
}

.profile-button {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.profile-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 13px;
}

.dashboard-main {
  width: min(1120px, calc(100% - 64px));
  margin: 0 auto;
  padding-top: 48px;
}

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

.dashboard-welcome .eyebrow {
  margin-bottom: 9px;
}

.dashboard-welcome h1 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -1.7px;
  line-height: 1.2;
}

.dashboard-welcome h1 span {
  color: var(--green);
}

.dashboard-welcome > div > p:last-child {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.dashboard-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 25px;
}

.summary-card,
.dashboard-panel {
  border: 1px solid #e9ede8;
  border-radius: 7px;
  background: white;
}

.summary-card {
  min-height: 135px;
  padding: 20px;
}

.summary-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.summary-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 12px;
}

.summary-value strong {
  font-family: "Manrope", sans-serif;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -1px;
}

.summary-unit {
  color: var(--muted);
  font-size: 10px;
}

.summary-card > p {
  margin: 9px 0 0;
  color: #8a918a;
  font-size: 10px;
}

.summary-progress {
  height: 5px;
  overflow: hidden;
  margin-top: 14px;
  border-radius: 5px;
  background: #edf0ec;
}

.summary-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width 180ms ease;
}

.dashboard-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.8fr);
  align-items: start;
  gap: 20px;
}

.dashboard-panel {
  padding: 23px;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.panel-heading .eyebrow {
  margin-bottom: 6px;
  font-size: 9px;
}

.panel-heading h2,
.quick-tips h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  letter-spacing: -0.6px;
}

.panel-tag {
  padding: 7px 9px;
  border-radius: 4px;
  background: #f2f7f2;
  color: var(--green-dark);
  font-size: 9px;
  font-weight: 700;
}

.workout-form {
  margin-top: 23px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.workout-form .form-field {
  margin-bottom: 15px;
}

.workout-form .form-field label,
.goal-selector label {
  font-size: 11px;
}

.workout-form .form-field input,
.workout-form .form-field select,
.goal-selector select {
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid #dfe5df;
  border-radius: 5px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 11px;
}

.workout-form .form-field input:focus,
.workout-form .form-field select:focus,
.goal-selector select:focus {
  border-color: var(--green);
  outline: 2px solid rgb(36 150 83 / 10%);
}

.workout-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.workout-submit {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.workout-list-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 23px;
}

.workout-list-heading h3 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
}

.workout-list-heading > span {
  color: var(--muted);
  font-size: 10px;
}

.workout-list {
  margin-top: 13px;
}

.empty-state {
  padding: 25px 12px;
  text-align: center;
}

.empty-state-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin: 0 auto 13px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green);
  font-size: 19px;
}

.empty-state h3 {
  margin: 0 0 7px;
  font-size: 13px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.workout-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f2ef;
}

.workout-entry:last-child {
  border-bottom: 0;
}

.entry-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
}

.entry-details {
  flex: 1;
  min-width: 0;
}

.entry-details h4 {
  margin: 0 0 5px;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.entry-details p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.entry-duration {
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.entry-delete {
  padding: 5px;
  border: 0;
  background: transparent;
  color: #858d86;
  font-size: 15px;
  cursor: pointer;
}

.entry-delete:hover {
  color: #b42318;
}

.dashboard-side {
  display: grid;
  gap: 18px;
}

.goal-symbol {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green);
  font-weight: 800;
}

.goal-description {
  margin: 16px 0 20px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.goal-selector {
  display: grid;
  gap: 9px;
}

.large-progress-track {
  height: 8px;
  overflow: hidden;
  margin-top: 23px;
  border-radius: 10px;
  background: #e9eee9;
}

.large-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width 180ms ease;
}

.goal-progress-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}

.goal-progress-labels strong {
  color: var(--green);
  font-family: "Manrope", sans-serif;
  font-size: 20px;
}

.goal-progress-labels span {
  color: var(--muted);
  font-size: 10px;
}

.quick-tips {
  background: #f3f8f3;
}

.quick-tips .eyebrow {
  margin-bottom: 10px;
}

.quick-tips h2 {
  font-size: 17px;
  line-height: 1.5;
}

.quick-tips > p:last-child {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.dashboard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 45px;
  padding: 22px 0;
  border-top: 1px solid #e7ebe6;
  color: var(--muted);
  font-size: 10px;
}

.dashboard-footer > span:first-child {
  color: var(--green-dark);
  font-weight: 800;
  letter-spacing: 0.5px;
}

.dashboard-footer a {
  color: var(--green-dark);
  font-weight: 700;
}

@media (max-width: 760px) {
  .dashboard-header {
    width: calc(100% - 32px);
    flex-wrap: wrap;
    padding: 13px 0;
    gap: 12px;
  }

  .dashboard-nav {
    order: 3;
    width: 100%;
    gap: 24px;
    padding: 8px 0 2px;
  }

  .profile-button {
    margin-left: auto;
  }

  .dashboard-main {
    width: calc(100% - 32px);
    padding-top: 32px;
  }

  .dashboard-welcome {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-summary {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .summary-card {
    min-height: auto;
    padding: 17px;
  }

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

  .dashboard-panel {
    padding: 18px;
  }

  .dashboard-footer {
    flex-wrap: wrap;
  }
}

@media (max-width: 400px) {
  .workout-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .dashboard-welcome h1 {
    font-size: 31px;
  }
}
/* =========================
   WORKOUT SEARCH & FILTER
========================= */

.workout-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 12px;
  margin-top: 22px;
}

.workout-tools input,
.workout-tools select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #dfe5df;
  border-radius: 5px;
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 12px;
  outline: none;
  transition: border-color 160ms ease;
}

.workout-tools input::placeholder {
  color: #929a93;
}

.workout-tools input:focus,
.workout-tools select:focus {
  border-color: var(--green);
  outline: 2px solid rgb(36 150 83 / 10%);
}

/* =========================
   EDIT & DELETE BUTTONS
========================= */

.workout-entry-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.entry-edit,
.entry-delete {
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid #e2e6e2;
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.entry-edit:hover {
  border-color: var(--green);
  background: var(--green-light);
  color: var(--green-dark);
}

.entry-delete {
  min-width: 32px;
  padding: 0 8px;
  color: #8a918a;
  font-size: 16px;
}

.entry-delete:hover {
  border-color: #e7caca;
  background: #fff5f5;
  color: #b42318;
}

.entry-edit:disabled,
.entry-delete:disabled,
.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* =========================
   CANCEL EDIT BUTTON
========================= */

#cancelWorkoutEdit {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #dfe5df;
  border-radius: 5px;
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

#cancelWorkoutEdit:hover {
  border-color: var(--green);
  background: var(--green-light);
}

/* =========================
   MOBILE RESPONSIVENESS
========================= */

@media (max-width: 520px) {
  .workout-tools {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .workout-entry {
    flex-wrap: wrap;
    gap: 9px;
  }

  .entry-details {
    flex: 1 1 calc(100% - 55px);
  }

  .entry-duration {
    margin-left: 47px;
  }

  .workout-entry-actions {
    margin-left: auto;
  }
}

/* Cancel Edit Button */
#cancel-edit,
#cancelEdit,
.cancel-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  margin-top: 8px;

  background: #171d19;
  color: #42f5a1;
  border: 1px solid #00d68f;
  border-radius: 6px;

  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

#cancel-edit:hover,
#cancelEdit:hover,
.cancel-edit:hover {
  background: #203b2c;
  border-color: #42f5a1;
}

#cancel-edit:focus-visible,
#cancelEdit:focus-visible,
.cancel-edit:focus-visible {
  outline: 2px solid #42f5a1;
  outline-offset: 3px;
}

/* Cancel Edit Button — Fitness Tracker */
#cancelWorkoutEdit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  min-height: 40px;
  padding: 0 16px;
  margin: 8px 0 0 8px !important;

  background: #171d19 !important;
  color: #42f5a1 !important;
  border: 1px solid #00d68f !important;
  border-radius: 6px !important;

  font-family: inherit;
  font-size: 12px;
  font-weight: 600;

  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

#cancelWorkoutEdit:hover {
  background: #203b2c !important;
  border-color: #42f5a1 !important;
}

#cancelWorkoutEdit:focus-visible {
  outline: 2px solid #42f5a1;
  outline-offset: 3px;
}
/* Premium dashboard refinements */
.dashboard-page {
  background: #f7f9f6;
  color: #18251c;
}
.dashboard-header {
  min-height: 76px;
  border-bottom: 1px solid #e7ece6;
}
.dashboard-main {
  padding-top: 42px;
}
.dashboard-welcome h1 {
  letter-spacing: -1.9px;
  font-weight: 700;
}
.dashboard-summary {
  gap: 14px;
}
.summary-card,
.dashboard-panel {
  border-color: #e4eae3;
  border-radius: 9px;
  box-shadow: 0 2px 8px rgb(21 45 27 / 3%);
}
.summary-card {
  position: relative;
  overflow: hidden;
  padding: 21px 22px;
}
.summary-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: #287849;
  content: "";
}
.summary-value strong {
  color: #173c27;
}
.dashboard-panel {
  padding: 24px;
}
.panel-heading h2,
.quick-tips h2 {
  color: #17271c;
}
.workout-tools {
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 10px;
  margin-top: 20px;
}
.workout-tools input,
.workout-tools select,
.workout-form .form-field input,
.workout-form .form-field select,
.goal-selector select,
.schedule-form .form-field input {
  border-color: #dce5dc;
  border-radius: 6px;
  background: #fff;
}
.workout-tools input:focus,
.workout-tools select:focus,
.workout-form .form-field input:focus,
.workout-form .form-field select:focus,
.goal-selector select:focus,
.schedule-form .form-field input:focus {
  border-color: #287849;
  outline: 3px solid rgb(40 120 73 / 9%);
}
.workout-entry {
  gap: 10px;
  border-bottom-color: #edf1ec;
}
.entry-icon {
  border-radius: 8px;
  background: #edf5ed;
  color: #246b40;
}
.entry-edit,
.entry-delete {
  border-radius: 6px;
}
#cancelWorkoutEdit {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid #287849 !important;
  border-radius: 6px !important;
  background: #17231b !important;
  color: #8ce5aa !important;
  font-weight: 700;
}
#cancelWorkoutEdit:hover {
  background: #203b2c !important;
  border-color: #45a96a !important;
}
.workout-status,
.entry-status-select {
  font: inherit;
  font-size: 10px;
}
.entry-status-select {
  max-width: 105px;
  min-height: 30px;
  padding: 0 6px;
  border: 1px solid #dce5dc;
  border-radius: 5px;
  background: #fff;
  color: #31553b;
}
.schedule-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.schedule-form .form-field {
  display: grid;
  gap: 7px;
}
.schedule-form .form-field label {
  font-size: 11px;
  font-weight: 600;
}
.schedule-form .form-field input {
  width: 100%;
  min-height: 41px;
  padding: 0 10px;
  color: var(--ink);
  font: inherit;
  font-size: 11px;
}
.schedule-submit {
  width: 100%;
  min-height: 40px;
  border-radius: 6px;
  cursor: pointer;
}
.schedule-list {
  margin-top: 16px;
}
.schedule-empty {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}
.schedule-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #edf1ec;
}
.schedule-item:last-child {
  border-bottom: 0;
}
.schedule-item-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.schedule-item-copy strong {
  overflow-wrap: anywhere;
  font-size: 12px;
}
.schedule-item-copy span {
  color: var(--muted);
  font-size: 10px;
}
.schedule-remove {
  flex: 0 0 auto;
  padding: 6px 8px;
  border: 1px solid #e0e7df;
  border-radius: 5px;
  background: #fff;
  color: #647065;
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}
.schedule-remove:hover {
  border-color: #d5a8a8;
  background: #fff5f5;
  color: #a12828;
}
.quick-tips {
  border-color: #dce9dc;
  background: #f0f6ef;
  box-shadow: none;
}
@media (max-width: 760px) {
  .dashboard-main { padding-top: 28px; }
  .dashboard-panel { padding: 18px; }
  .workout-entry { flex-wrap: wrap; }
  .entry-status-select { margin-left: 47px; }
}
@media (max-width: 520px) {
  .workout-tools { grid-template-columns: 1fr; }
  .entry-status-select { margin-left: 0; }
}

/* ===== Final dashboard redesign: Minimal Premium ===== */
.dashboard-page {
  --premium-green: #174d32;
  --premium-green-2: #2c7650;
  --premium-paper: #f6f8f5;
  --premium-line: #e2e8e1;
  --premium-muted: #778078;
  background: var(--premium-paper);
  color: #1b251e;
}

.dashboard-header {
  width: 100%;
  min-height: 78px;
  padding: 0 max(32px, calc((100% - 1240px) / 2));
  margin: 0;
  background: #fff;
  border-bottom: 1px solid var(--premium-line);
  gap: 26px;
}

.dashboard-header .brand {
  font-size: 14px;
  letter-spacing: .4px;
}
.dashboard-header .brand-icon {
  width: 38px;
  height: 38px;
  border: 1px solid #dce8dd;
  border-radius: 10px;
  background: #f4f8f3;
}
.dashboard-header .brand-icon svg { width: 29px; height: 29px; }
.dashboard-header .brand strong { color: var(--premium-green); }
.dashboard-nav {
  align-self: stretch;
  gap: 27px;
  color: #737d74;
  font-size: 12px;
}
.dashboard-nav a {
  display: inline-flex;
  align-items: center;
  position: relative;
  transition: color .18s ease;
}
.dashboard-nav a.active,
.dashboard-nav a:hover { color: var(--premium-green); }
.dashboard-nav a.active::after {
  position: absolute;
  content: "";
  height: 2px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--premium-green);
}
.dashboard-header .profile-button {
  min-height: 42px;
  padding: 5px 11px 5px 6px;
  border: 1px solid var(--premium-line);
  border-radius: 8px;
  background: #fff;
  color: #29362c;
  font-size: 11px;
  gap: 9px;
}
.dashboard-header .profile-avatar {
  width: 29px;
  height: 29px;
  border-radius: 7px;
  background: var(--premium-green);
  color: #fff;
  font-size: 12px;
}

.dashboard-main {
  width: min(1240px, calc(100% - 64px));
  padding: 38px 0 24px;
  margin: 0 auto;
}
.dashboard-welcome {
  align-items: flex-end;
  margin-bottom: 28px;
  gap: 24px;
}
.dashboard-welcome .eyebrow,
.dashboard-page .eyebrow {
  color: #58735e;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.7px;
}
.dashboard-welcome h1 {
  margin: 10px 0 8px;
  color: #1a2a20;
  font-size: clamp(29px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -1.6px;
  font-weight: 750;
}
.dashboard-welcome h1 span { color: var(--premium-green-2); }
.dashboard-welcome > div > p:last-child {
  margin: 0;
  color: #778078;
  font-size: 12px;
}
.dashboard-welcome > .button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 7px;
  background: var(--premium-green);
  font-size: 11px;
  box-shadow: none;
}
.dashboard-welcome > .button:hover { background: #22633f; }

.dashboard-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid var(--premium-line);
  border-radius: 10px;
  background: #fff;
}
.dashboard-summary .summary-card {
  min-height: 120px;
  padding: 20px 24px 18px;
  border: 0;
  border-right: 1px solid var(--premium-line);
  border-radius: 0;
  box-shadow: none;
  background: #fff;
}
.dashboard-summary .summary-card:last-child { border-right: 0; }
.dashboard-summary .summary-card::before { width: 3px; background: #d4e4d5; }
.dashboard-summary .summary-label {
  color: #737e75;
  font-size: 10px;
  font-weight: 650;
}
.dashboard-summary .summary-value {
  margin-top: 11px;
  gap: 8px;
  align-items: baseline;
}
.dashboard-summary .summary-value strong {
  color: #193e29;
  font-size: 30px;
  font-weight: 750;
  letter-spacing: -1.2px;
}
.dashboard-summary .summary-unit { color: #7e887f; font-size: 10px; }
.dashboard-summary .summary-card > p {
  margin-top: 5px;
  color: #8a938b;
  font-size: 10px;
}
.dashboard-summary .summary-progress {
  height: 4px;
  margin-top: 8px;
  border-radius: 10px;
  background: #eaf0e9;
}
.dashboard-summary .summary-progress span {
  border-radius: inherit;
  background: var(--premium-green-2);
}

.dashboard-columns {
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, .8fr);
  gap: 20px;
  align-items: start;
}
.dashboard-panel {
  padding: 25px;
  border: 1px solid var(--premium-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 12px rgb(28 54 34 / 2.5%);
}
.panel-heading {
  align-items: center;
  margin-bottom: 22px;
}
.panel-heading h2,
.quick-tips h2 {
  margin-top: 7px;
  color: #1c2d22;
  font-size: 19px;
  letter-spacing: -.55px;
  font-weight: 750;
}
.panel-tag {
  padding: 7px 10px;
  border: 1px solid #e1e9e0;
  border-radius: 5px;
  background: #f8faf7;
  color: #5c705f;
  font-size: 9px;
  font-weight: 650;
}
.workout-form {
  padding: 18px;
  border: 1px solid #e7ece6;
  border-radius: 8px;
  background: #fafbf9;
}
.form-field label,
.schedule-form .form-field label,
.goal-selector label {
  color: #4f5d52;
  font-size: 10px;
  font-weight: 700;
}
.workout-form .form-field input,
.workout-form .form-field select,
.workout-tools input,
.workout-tools select,
.goal-selector select,
.schedule-form .form-field input {
  min-height: 41px;
  border: 1px solid #dfe6de;
  border-radius: 6px;
  background: #fff;
  color: #27352a;
  font-size: 11px;
  box-shadow: none;
}
.workout-form .form-field input:focus,
.workout-form .form-field select:focus,
.workout-tools input:focus,
.workout-tools select:focus,
.goal-selector select:focus,
.schedule-form .form-field input:focus {
  border-color: #6b9a77;
  outline: 3px solid rgb(44 118 80 / 9%);
}
.workout-submit {
  min-height: 42px;
  border-radius: 6px;
  background: var(--premium-green);
  font-size: 11px;
}
.workout-submit:hover { background: #22633f; }
.workout-tools {
  grid-template-columns: minmax(0, 1fr) 175px;
  gap: 9px;
  margin: 23px 0 20px;
}
.workout-list-heading {
  padding-bottom: 12px;
  border-bottom: 1px solid #e8ede7;
}
.workout-list-heading h3 { color: #27372b; font-size: 13px; }
.workout-list-heading span { color: #89928a; font-size: 10px; }
.workout-entry {
  padding: 15px 0;
  border-bottom: 1px solid #edf1ec;
}
.entry-icon {
  width: 37px;
  height: 37px;
  border-radius: 8px;
  background: #edf4ec;
  color: var(--premium-green);
}
.entry-copy strong { color: #26362a; font-size: 12px; }
.entry-copy span { color: #879087; font-size: 10px; }
.entry-edit,
.entry-delete,
.schedule-remove {
  border-radius: 5px;
  font-size: 10px;
}
.entry-edit:hover { background: #edf4ec; color: var(--premium-green); }
.entry-delete:hover { background: #fff3f1; color: #a33830; }
.empty-state { padding: 30px 12px; }
.empty-state-icon {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 10px;
  background: #edf4ec;
  color: var(--premium-green);
}
.empty-state h3 { color: #344438; font-size: 13px; }
.empty-state p { color: #89928a; font-size: 11px; }

.dashboard-side { gap: 16px; }
.goal-panel .goal-symbol,
.schedule-panel .goal-symbol {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #e0e9df;
  border-radius: 8px;
  background: #f4f8f2;
  color: var(--premium-green);
  font-size: 14px;
}
.goal-description {
  margin: -5px 0 19px;
  color: #788279;
  font-size: 11px;
  line-height: 1.7;
}
.goal-selector select { width: 100%; margin-top: 8px; }
.large-progress-track {
  height: 7px;
  margin-top: 24px;
  border-radius: 10px;
  background: #eaf0e8;
}
.large-progress-track span {
  border-radius: inherit;
  background: var(--premium-green-2);
}
.goal-progress-labels { margin-top: 10px; }
.goal-progress-labels strong { color: var(--premium-green); font-size: 20px; }
.goal-progress-labels span { color: #7c877e; font-size: 10px; }
.schedule-form { gap: 12px; }
.schedule-submit {
  border-color: #d8e4d8;
  background: #f5f8f3;
  color: var(--premium-green);
}
.schedule-submit:hover { background: #eaf2e8; }
.schedule-item { border-bottom-color: #edf1ec; }
.schedule-item-copy strong { color: #2b3a2e; }
.schedule-remove { border-color: #e2e8e0; }
.quick-tips {
  border-color: #dfe9dc;
  background: #f0f5ed;
}
.quick-tips h2 { max-width: 240px; line-height: 1.35; }
.quick-tips > p:last-child { color: #68786b; font-size: 11px; line-height: 1.8; }
.dashboard-footer {
  padding-top: 23px;
  color: #879087;
  font-size: 10px;
}
.dashboard-footer span:first-child { color: #4c6651; font-weight: 800; letter-spacing: 1px; }

@media (max-width: 900px) {
  .dashboard-header { padding: 0 24px; gap: 16px; }
  .dashboard-nav { gap: 16px; }
  .dashboard-main { width: calc(100% - 40px); }
  .dashboard-columns { grid-template-columns: minmax(0, 1fr) minmax(250px, .75fr); gap: 14px; }
  .dashboard-panel { padding: 19px; }
  .dashboard-summary .summary-card { padding: 18px; }
}
@media (max-width: 700px) {
  .dashboard-header { min-height: auto; padding: 15px 20px; flex-wrap: wrap; }
  .dashboard-header .brand { margin-right: auto; }
  .dashboard-nav { order: 3; width: 100%; min-height: 38px; justify-content: space-between; gap: 12px; overflow-x: auto; }
  .dashboard-nav a { white-space: nowrap; }
  .dashboard-nav a.active::after { bottom: -1px; }
  .dashboard-main { width: calc(100% - 32px); padding-top: 28px; }
  .dashboard-welcome { align-items: flex-start; flex-direction: column; gap: 17px; }
  .dashboard-summary { grid-template-columns: 1fr; }
  .dashboard-summary .summary-card { min-height: auto; padding: 15px 19px; border-right: 0; border-bottom: 1px solid var(--premium-line); }
  .dashboard-summary .summary-card:last-child { border-bottom: 0; }
  .dashboard-summary .summary-value { margin-top: 5px; }
  .dashboard-summary .summary-value strong { font-size: 25px; }
  .dashboard-columns { grid-template-columns: 1fr; }
  .dashboard-panel { padding: 18px; }
  .workout-form { padding: 14px; }
  .workout-tools { grid-template-columns: minmax(0, 1fr); }
  .dashboard-footer { flex-wrap: wrap; gap: 10px; }
}

/* ===== Dashboard visual refresh: compact sidebar + premium workspace ===== */
.dashboard-page {
  --premium-green: #155b3c;
  --premium-green-2: #27835a;
  --premium-paper: #f5f7f4;
  --premium-line: #e1e8e2;
  --premium-muted: #68766d;
  background: var(--premium-paper);
  color: #172b22;
}
.dashboard-header {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: 242px;
  min-height: 100vh;
  padding: 25px 14px 16px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  background: #123d2d;
  color: #fff;
  border: 0;
  border-radius: 0 8px 8px 0;
  box-shadow: 4px 0 24px rgb(18 61 45 / 7%);
}
.dashboard-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 12px;
  letter-spacing: .5px;
  line-height: 1.35;
  white-space: nowrap;
}
.dashboard-header .brand > span:last-child { display: flex; flex-direction: column; }
.dashboard-header .brand strong { color: #c8f0d8; }
.dashboard-header .brand small { margin-top: 3px; color: #c1d7cb; font-size: 9px; font-weight: 400; letter-spacing: 0; }
.dashboard-header .brand-icon { width: 38px; height: 38px; flex: 0 0 38px; border: 1px solid #4d7862; border-radius: 10px; background: #1b523b; color: #d8f6e2; }
.dashboard-header .brand-icon svg { width: 28px; height: 28px; }
.sidebar-label { margin: 34px 10px 12px; color: #94b7a2; font-size: 9px; font-weight: 800; letter-spacing: 1.6px; }
.dashboard-nav { display: flex; flex-direction: column; align-items: stretch; gap: 5px; color: #e4eee8; font-size: 12px; }
.dashboard-nav a { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border-radius: 7px; color: #e0ece4; transition: background .18s ease, color .18s ease; }
.dashboard-nav a > span { width: 20px; text-align: center; font-size: 19px; line-height: 1; }
.dashboard-nav a.active, .dashboard-nav a:hover { color: #10452f; background: #c9ebd6; }
.dashboard-nav a.active::after { display: none; }
.sidebar-bottom { margin-top: auto; }
.sidebar-photo { min-height: 178px; border-radius: 8px; background: linear-gradient(180deg, rgb(13 37 28 / 10%), rgb(13 37 28 / 65%)), url("images/fitness_motivation_card.jpg") center/cover; }
.sidebar-bottom > p { margin: 12px 10px 20px; color: #fff; font-size: 15px; line-height: 1.5; font-weight: 750; letter-spacing: .4px; }
.sidebar-bottom > p strong { color: #a7e6bd; }
.dashboard-header .profile-button { width: 100%; min-height: 54px; margin-top: 14px; padding: 7px; display: flex; align-items: center; gap: 9px; text-align: left; background: #1a4a36; color: #fff; border: 1px solid #38654e; border-radius: 8px; font-size: 11px; }
.dashboard-header .profile-avatar { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 50%; background: #d1efdc; color: #155b3c; font-weight: 800; }
.profile-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 3px; }
.profile-copy strong { overflow: hidden; text-overflow: ellipsis; }
.profile-copy small { color: #bad5c4; font-size: 9px; }
.dashboard-main { width: auto; max-width: none; margin: 0 0 0 242px; padding: 28px clamp(22px, 3vw, 48px) 24px; }
.dashboard-welcome { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, 34%); align-items: stretch; gap: 22px; margin-bottom: 22px; }
.welcome-copy { align-self: center; padding: 8px 0; }
.dashboard-welcome .eyebrow, .dashboard-page .eyebrow { color: #46785a; font-size: 9px; font-weight: 800; letter-spacing: 1.5px; }
.dashboard-welcome h1 { margin: 9px 0 8px; color: #173326; font-size: clamp(28px, 3vw, 38px); line-height: 1.12; letter-spacing: -1.3px; font-weight: 760; }
.dashboard-welcome h1 span { color: var(--premium-green-2); }
.dashboard-welcome .welcome-copy > p:last-of-type { color: #6b7b70; font-size: 12px; }
.dashboard-welcome .button { width: fit-content; min-height: 39px; margin-top: 14px; padding: 0 15px; border-radius: 7px; background: var(--premium-green); font-size: 11px; box-shadow: none; }
.welcome-photo { min-height: 145px; position: relative; display: flex; align-items: flex-end; padding: 18px; overflow: hidden; border-radius: 10px; background: linear-gradient(90deg, rgb(14 48 34 / 68%), rgb(14 48 34 / 5%)), url("images/fitness_dashboard_banner.jpg") center 45%/cover; }
.welcome-photo > div { display: flex; flex-direction: column; color: #fff; font-size: 20px; line-height: 1.15; letter-spacing: .3px; text-shadow: 0 1px 8px rgb(0 0 0 / 20%); }
.welcome-photo > div span { font-size: 11px; font-weight: 750; letter-spacing: 2px; }
.welcome-photo > div strong { font-size: 24px; }
.dashboard-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; overflow: visible; border: 0; background: transparent; }
.dashboard-summary .summary-card { min-height: 112px; padding: 18px 20px; border: 1px solid var(--premium-line); border-radius: 9px; background: #fff; box-shadow: 0 2px 8px rgb(28 61 40 / 3%); }
.dashboard-summary .summary-card:last-child { border-right: 1px solid var(--premium-line); }
.dashboard-summary .summary-card::before { display: none; }
.dashboard-summary .summary-label { color: #64756a; }
.dashboard-summary .summary-value { margin-top: 8px; }
.dashboard-summary .summary-value strong { color: #173e2c; font-size: 28px; }
.dashboard-summary .summary-card > p { color: #829087; }
.dashboard-summary .summary-progress { background: #e8efe9; }
.dashboard-summary .summary-progress span { background: var(--premium-green-2); }
.dashboard-columns { grid-template-columns: minmax(0, 1.65fr) minmax(275px, .9fr); gap: 18px; align-items: start; }
.dashboard-panel { border: 1px solid var(--premium-line); border-radius: 10px; background: #fff; box-shadow: 0 3px 12px rgb(25 57 38 / 3%); }
.dashboard-columns > .dashboard-panel { padding: 22px; }
.dashboard-side { gap: 16px; }
.dashboard-side .dashboard-panel { padding: 20px; }
.panel-heading h2 { color: #1c3528; font-size: 17px; letter-spacing: -.3px; }
.panel-tag, .goal-symbol { border: 1px solid #dce8dd; background: #f1f7f2; color: #246342; }
.workout-form { padding: 0; margin-top: 20px; border: 0; background: transparent; }
.form-field label, .goal-selector label { color: #52685a; font-size: 10px; font-weight: 700; }
.form-field input, .form-field select, .goal-selector select, .workout-tools input, .workout-tools select { min-height: 41px; border: 1px solid #dbe4dc; border-radius: 6px; background: #fff; color: #24392d; font-size: 11px; }
.form-field input:focus, .form-field select:focus, .goal-selector select:focus, .workout-tools input:focus, .workout-tools select:focus { border-color: #4d936a; outline: 2px solid rgb(39 131 90 / 10%); }
.button-primary, .workout-submit { background: var(--premium-green); border-radius: 6px; box-shadow: none; }
.button-primary:hover, .workout-submit:hover { background: #20734d; }
.button-secondary { background: #edf5ef; color: #1a5b3b; border: 1px solid #d3e6d7; }
.workout-tools { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 9px; margin-top: 20px; }
.workout-list-heading { margin-top: 22px; }
.workout-entry { border-bottom: 1px solid #e8eee9; }
.entry-icon { background: #e9f4ec; color: #1d7048; border-radius: 7px; }
.entry-edit { border: 1px solid #cfe3d4; color: #1b6843; background: #fff; border-radius: 6px; }
.entry-edit:hover { background: #eef7f0; }
.entry-delete { border-radius: 6px; }
.schedule-item { border-bottom: 1px solid #e9efea; }
.schedule-item-date { background: #edf6ef; color: #1b6843; border-radius: 7px; }
.quick-tips { background: #f0f6f0; }
.quick-tips h2 { color: #214c34; }
.dashboard-footer { margin-top: 28px; padding-top: 16px; border-color: #dfe7e0; color: #7a897e; }
.dashboard-footer > span:first-child, .dashboard-footer a { color: #1b6843; }

@media (max-width: 980px) {
  .dashboard-header { width: 205px; padding-inline: 11px; }
  .dashboard-main { margin-left: 205px; padding-inline: 20px; }
  .dashboard-columns { grid-template-columns: minmax(0, 1fr); }
  .dashboard-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schedule-panel { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .dashboard-header { position: relative; inset: auto; width: 100%; min-height: 0; padding: 12px 14px; border-radius: 0; }
  .dashboard-header .brand { margin-bottom: 12px; }
  .sidebar-label { display: none; }
  .dashboard-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .dashboard-nav a { flex-direction: column; justify-content: center; gap: 3px; min-height: 54px; padding: 5px 2px; text-align: center; font-size: 9px; }
  .dashboard-nav a > span { font-size: 17px; }
  .sidebar-bottom { display: flex; align-items: center; margin-top: 10px; }
  .sidebar-photo, .sidebar-bottom > p { display: none; }
  .dashboard-header .profile-button { width: auto; margin: 0 0 0 auto; min-height: 40px; }
  .dashboard-main { margin: 0; padding: 20px 14px; }
  .dashboard-welcome { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .welcome-photo { min-height: 130px; }
  .dashboard-summary { grid-template-columns: 1fr; gap: 9px; }
  .dashboard-summary .summary-card { min-height: 90px; }
  .dashboard-columns > .dashboard-panel, .dashboard-side .dashboard-panel { padding: 16px; }
  .dashboard-side { display: grid; grid-template-columns: 1fr; }
  .schedule-panel { grid-column: auto; }
  .workout-form-row { grid-template-columns: minmax(0, 1fr); }
  .workout-tools { grid-template-columns: minmax(0, 1fr); }
  .dashboard-footer { flex-wrap: wrap; gap: 8px; }
}


/* Functional off-canvas sidebar navigation */
.dashboard-page {
  --drawer-width: 252px;
}

.sidebar-toggle {
  position: fixed;
  z-index: 50;
  top: 16px;
  left: 16px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  border: 1px solid #d9e5dc;
  border-radius: 10px;
  background: #155b3c;
  box-shadow: 0 5px 18px rgb(17 65 43 / 14%);
  cursor: pointer;
  transition: left .24s ease, background .2s ease, transform .2s ease;
}
.sidebar-toggle:hover { background: #20734d; }
.sidebar-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform .2s ease, opacity .2s ease;
}
.sidebar-toggle[aria-expanded="true"] { left: calc(var(--drawer-width) - 58px); }
.sidebar-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
.sidebar-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.sidebar-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }

.dashboard-header {
  transform: translateX(-105%);
  transition: transform .26s ease;
  overflow-y: auto;
  padding-top: 76px;
}
.dashboard-header.is-open { transform: translateX(0); }
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 18;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgb(13 31 22 / 38%);
  opacity: 0;
  visibility: hidden;
  cursor: pointer;
  transition: opacity .22s ease, visibility .22s ease;
}
.sidebar-backdrop.is-visible { opacity: 1; visibility: visible; }
.dashboard-main {
  margin-left: 0;
  padding-top: 82px;
  transition: filter .2s ease;
}
.dashboard-header .brand { margin-bottom: 0; }
.sidebar-nav-action,
.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #e0ece4;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.sidebar-nav-action > span,
.sidebar-logout > span { width: 20px; text-align: center; font-size: 19px; }
.sidebar-nav-action:hover,
.sidebar-logout:hover { background: #c9ebd6; color: #10452f; }
.sidebar-logout {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgb(221 242 228 / 18%);
  border-radius: 0;
}
.sidebar-photo {
  background-image: linear-gradient(180deg, rgb(13 37 28 / 5%), rgb(13 37 28 / 35%)), url("images/fitness_motivation_card.jpg");
  background-position: center;
  background-size: cover;
}
.welcome-photo {
  background-image: linear-gradient(90deg, rgb(14 48 34 / 45%), rgb(14 48 34 / 0%)), url("images/fitness_dashboard_banner.jpg");
  background-position: center;
  background-size: cover;
}

@media (max-width: 640px) {
  .dashboard-header {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(var(--drawer-width), 86vw);
    min-height: 100vh;
    padding: 76px 14px 16px;
    border-radius: 0 10px 10px 0;
    display: flex;
    flex-direction: column;
  }
  .dashboard-header .brand { margin-bottom: 0; }
  .dashboard-header .dashboard-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
  }
  .dashboard-header .dashboard-nav a,
  .dashboard-header .sidebar-nav-action {
    flex-direction: row;
    justify-content: flex-start;
    min-height: 42px;
    padding: 0 12px;
    text-align: left;
    font-size: 12px;
  }
  .dashboard-header .sidebar-bottom { display: block; margin-top: auto; }
  .dashboard-header .sidebar-photo { display: block; min-height: 115px; }
  .dashboard-header .sidebar-bottom > p { display: block; }
  .dashboard-header .profile-button { width: 100%; margin: 0; }
  .dashboard-main { margin: 0; padding: 76px 14px 20px; }
}


/* Trusted role label: presentation only; authorization is enforced by Firebase Rules. */
#profileRoleLabel { display: inline-block; margin-top: 3px; font-size: 11px; color: #527064; }
#profileRoleLabel[data-role="admin"] { color: #166534; font-weight: 700; }
#profileRoleLabel[data-role="staff"] { color: #276749; font-weight: 600; }
.role-access-panel { border-left: 4px solid #2d7a53; }
.role-access-panel[hidden] { display: none !important; }


/* Role-based shared record list — inherits the existing white/deep-green design. */
.role-record-list { display: grid; gap: 10px; margin-top: 16px; }
.role-record-row { border: 1px solid #e5e9e5; border-radius: 10px; padding: 12px 14px; background: #fff; }
.role-record-row strong { display: block; color: #173f2b; font-size: 14px; }
.role-record-row p { margin: 5px 0 0; color: #66736a; font-size: 12px; overflow-wrap: anywhere; }
.role-security-note { margin-top: 14px; color: #66736a; font-size: 12px; }
body.read-only-role #workoutForm, body.read-only-role #scheduleForm { display: none !important; }


/* Chrome repaint fix: keep homepage CTA buttons visibly painted on first load. */
.site-header {
  position: relative;
  z-index: 20;
  isolation: isolate;
}
.site-header .header-button {
  position: relative;
  z-index: 21;
  display: inline-flex;
  visibility: visible !important;
  opacity: 1 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  background-color: #176b46;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.hero-actions .button,
.final-cta > .button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  visibility: visible !important;
  opacity: 1 !important;
  transform: translateZ(0);
  backface-visibility: hidden;
}
