:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: #111313;
  --panel-2: #181b1b;
  --text: #f4f6f5;
  --muted: #9da6a3;
  --line: #2a302e;
  --green: #18d27c;
  --green-2: #0c8b56;
  --red: #ff4d4d;
  --amber: #f4c430;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

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

body.login-screen-active {
  background: #f5f7f8;
  color: #101414;
}

button {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  padding: 14px 14px calc(92px + var(--safe-bottom));
  max-width: 620px;
  margin: 0 auto;
}

body.public-screen:not(.login-screen-active) .app-shell {
  padding-top: 18px;
}

body.has-offer-banner .app-shell {
  padding-top: 50px;
}

.public-mobile-page .topbar {
  display: none;
}

.offer-mobile-page .app-offer-banner,
.integration-mobile-page .app-offer-banner {
  display: none;
}

.public-mobile-page:not(.login-mobile-page) .app-shell {
  padding-top: 18px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0 14px;
  background: linear-gradient(180deg, #050505 78%, rgba(5, 5, 5, 0));
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.brand-button {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #fff;
  color: #050505;
  display: grid;
  place-items: center;
  font-weight: 900;
  overflow: hidden;
  flex: 0 0 auto;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 15px;
  letter-spacing: 0;
}

.brand span {
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 230px;
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  font-size: 20px;
}

.app-offer-banner {
  position: fixed;
  inset: 0 0 auto;
  z-index: 35;
  width: 100%;
  min-height: 36px;
  border: 0;
  border-radius: 0;
  background: rgba(22, 119, 255, 0.9);
  color: #fff;
  padding: 0 max(42px, env(safe-area-inset-left)) 0 max(12px, env(safe-area-inset-right));
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(22, 119, 255, 0.14);
  cursor: pointer;
}

.app-offer-banner strong {
  font-size: 12px;
}

.app-offer-banner span {
  font-size: 11px;
  font-weight: 900;
  opacity: 0.82;
}

.close-offer-banner {
  position: absolute;
  right: max(8px, env(safe-area-inset-right));
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
}

.screen {
  display: none;
}

.screen.active {
  display: block;
}

.login-panel {
  min-height: calc(100vh - 120px);
  display: grid;
  align-content: center;
  gap: 20px;
}

body.login-screen-active .login-panel {
  min-height: calc(100vh - 170px);
  padding-bottom: 12px;
  align-content: end;
}

body.login-screen-active .login-panel {
  color: #101414;
}

.offer-hero {
  min-height: 460px;
  border-radius: 24px;
  padding: 26px;
  display: grid;
  align-content: end;
  gap: 14px;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.08), rgba(5, 5, 5, 0.92)),
    radial-gradient(circle at top right, rgba(22, 119, 255, 0.65), transparent 45%),
    #07111f;
  box-shadow: 0 24px 80px rgba(22, 119, 255, 0.18);
}

.offer-hero p,
.offer-hero h1,
.offer-hero span {
  margin: 0;
}

.offer-hero p {
  color: #79b3ff;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.offer-hero h1 {
  max-width: 420px;
  font-size: 42px;
  line-height: 0.95;
}

.offer-hero span {
  max-width: 460px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.45;
}

.offer-hero a {
  width: fit-content;
  min-height: 50px;
  border-radius: 14px;
  background: var(--green);
  color: #04130b;
  display: inline-grid;
  place-items: center;
  padding: 0 18px;
  margin-top: 8px;
  font-weight: 950;
  text-decoration: none;
}

.offer-section,
.offer-grid article,
.integration-section {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  padding: 18px;
}

.offer-section {
  margin-top: 14px;
}

.offer-section h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.offer-section p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.offer-section p + p {
  margin-top: 10px;
}

.offer-grid {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.offer-grid article {
  display: grid;
  gap: 8px;
}

.offer-grid strong {
  color: var(--green);
  font-size: 16px;
}

.offer-grid span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.integration-hero {
  min-height: 280px;
  border-radius: 22px;
  padding: 24px;
  display: grid;
  align-content: end;
  gap: 10px;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.1), rgba(5, 5, 5, 0.9)),
    radial-gradient(circle at top right, rgba(24, 210, 124, 0.28), transparent 46%),
    #0b0c0c;
}

.integration-hero p,
.integration-hero h1,
.integration-hero span {
  margin: 0;
}

.integration-hero p {
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.integration-hero h1 {
  font-size: 36px;
  line-height: 0.98;
}

.integration-hero span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.integration-section {
  margin-top: 12px;
}

.integration-section h2 {
  margin: 0 0 10px;
  font-size: 21px;
}

.integration-section p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.integration-section p + p {
  margin-top: 10px;
}

.offer-final {
  border: 1px solid rgba(24, 210, 124, 0.4);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(24, 210, 124, 0.16), rgba(22, 119, 255, 0.08)),
    var(--panel);
  padding: 20px;
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.offer-final h2,
.offer-final p {
  margin: 0;
}

.offer-final h2 {
  font-size: 24px;
  line-height: 1.05;
}

.offer-final p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.offer-actions {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.offer-actions a {
  min-height: 52px;
  border-radius: 14px;
  background: var(--green);
  color: #04130b;
  display: grid;
  place-items: center;
  font-weight: 950;
  text-decoration: none;
}

.offer-actions a.secondary {
  border: 1px solid rgba(22, 119, 255, 0.55);
  background: rgba(22, 119, 255, 0.13);
  color: #8ec1ff;
}

.login-mark {
  width: 82px;
  height: 72px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 950;
}

.login-panel p,
.login-panel h1,
.login-panel span {
  margin: 0;
}

.login-panel p {
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.login-panel h1 {
  margin-top: 6px;
  font-size: 38px;
  line-height: 1;
}

.login-panel span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.mobile-login-form {
  display: grid;
  gap: 14px;
}

.mobile-login-form label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  display: grid;
  gap: 8px;
}

body.login-screen-active .mobile-login-form label {
  color: #5e6865;
}

.mobile-login-form input {
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  padding: 0 14px;
}

body.login-screen-active .mobile-login-form input {
  border-color: #d5dcdf;
  background: #ffffff;
  color: #101414;
  box-shadow: 0 1px 0 rgba(16, 20, 20, 0.03);
}

.mobile-login-form button {
  min-height: 58px;
  border: 0;
  border-radius: 16px;
  background: var(--green);
  color: #04130b;
  font-size: 18px;
  font-weight: 950;
}

.mobile-login-form button:disabled {
  opacity: 0.65;
}

.login-status {
  min-height: 22px;
  color: var(--muted);
  font-size: 13px;
}

body.login-screen-active .login-status {
  color: #65706c;
}

.login-integrations {
  display: grid;
  gap: 12px;
  overflow: hidden;
}

body.login-screen-active .login-integrations {
  border-top-color: transparent;
}

.login-integrations > span {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

body.login-screen-active .login-integrations > span {
  color: #5e6865;
}

.login-logo-carousel {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.login-logo-track {
  display: flex;
  width: max-content;
  gap: 18px;
  animation: login-logo-marquee 22s linear infinite;
}

.login-logo-track img {
  width: 104px;
  height: 88px;
  flex: 0 0 auto;
  object-fit: contain;
  padding: 0;
}

@keyframes login-logo-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 9px));
  }
}

.login-nav-hint {
  margin: 2px 0 0;
  color: #65706c;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  text-transform: none;
}

.hero {
  min-height: 190px;
  border-radius: 22px;
  padding: 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  background:
    linear-gradient(135deg, rgba(24, 210, 124, 0.95), rgba(12, 139, 86, 0.7)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.35), transparent 40%),
    #0c8b56;
  box-shadow: 0 20px 50px rgba(24, 210, 124, 0.18);
}

.hero p,
.hero h1,
.hero span {
  margin: 0;
}

.hero p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  margin-top: 8px;
  font-size: 36px;
  line-height: 0.95;
  max-width: 250px;
}

.hero span {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
}

.hero-ring {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  border: 8px solid rgba(255, 255, 255, 0.35);
  display: grid;
  place-items: center;
  align-content: center;
  background: rgba(0, 0, 0, 0.18);
  flex: 0 0 auto;
}

.hero-ring strong {
  font-size: 22px;
}

.hero-ring span {
  margin: 0;
  font-size: 10px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.week-sequence {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  padding: 14px;
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

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

.week-head span,
.week-head strong {
  display: block;
}

.week-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.week-head strong {
  margin-top: 3px;
  font-size: 15px;
}

.week-head button {
  min-height: 34px;
  border: 1px solid rgba(24, 210, 124, 0.45);
  border-radius: 999px;
  background: rgba(24, 210, 124, 0.12);
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  padding: 0 12px;
}

.week-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.week-day {
  min-height: 70px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0b0c0c;
  color: var(--text);
  padding: 8px 4px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
}

.week-day span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.week-day strong {
  font-size: 18px;
}

.week-day small {
  min-width: 22px;
  min-height: 18px;
  border-radius: 999px;
  color: transparent;
  font-size: 10px;
  font-weight: 950;
  display: grid;
  place-items: center;
}

.week-day.today {
  border-color: rgba(244, 196, 48, 0.45);
  background: rgba(244, 196, 48, 0.05);
}

.week-day.done {
  border-color: rgba(24, 210, 124, 0.55);
  background: rgba(24, 210, 124, 0.11);
}

.week-day.done small {
  background: var(--green);
  color: #04130b;
}

.quick-grid article {
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  padding: 12px;
  display: grid;
  gap: 6px;
}

.quick-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.quick-grid strong {
  font-size: 22px;
}

.section-block {
  margin-top: 22px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.sticky-title {
  position: sticky;
  top: 66px;
  z-index: 8;
  padding: 10px 0;
  background: var(--bg);
}

.section-title h2 {
  margin: 0;
  font-size: 22px;
}

.section-title span {
  color: var(--muted);
  font-size: 13px;
}

.section-title button,
.done-button,
.primary-button {
  border: 0;
  border-radius: 12px;
  background: var(--green);
  color: #04130b;
  font-weight: 900;
  min-height: 40px;
  padding: 0 14px;
}

.text-danger-button {
  border: 1px solid rgba(255, 77, 77, 0.35) !important;
  background: rgba(255, 77, 77, 0.08) !important;
  color: var(--red) !important;
}

.complete-workout-section {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 18px;
  display: grid;
  gap: 14px;
}

.complete-workout-section h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.08;
}

.complete-workout-section p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.complete-workout-section button {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 16px;
  background: var(--green);
  color: #04130b;
  font-size: 16px;
  font-weight: 950;
  padding: 0 16px;
}

.complete-workout-section.done button {
  border: 1px solid rgba(24, 210, 124, 0.55);
  background: rgba(24, 210, 124, 0.15);
  color: var(--green);
}

.stack,
.series-list {
  display: grid;
  gap: 12px;
}

.large-card,
.agenda-card,
.finance-card,
.serie-card,
.profile-card,
.raw-status {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  padding: 16px;
}

.agenda-card h3,
.finance-card h3,
.large-card h3,
.serie-card h3 {
  margin: 0 0 8px;
}

.agenda-card p,
.finance-card p,
.large-card p,
.serie-card p,
.profile-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.finance-card {
  display: grid;
  gap: 12px;
}

.finance-card.featured {
  border-color: rgba(24, 210, 124, 0.45);
  background:
    linear-gradient(145deg, rgba(24, 210, 124, 0.16), rgba(24, 210, 124, 0.03)),
    var(--panel);
}

.finance-card > span,
.finance-card div > span,
.finance-heading span {
  color: var(--green);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.finance-card.money-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.finance-card.money-card > strong {
  color: var(--green);
  font-size: 20px;
  white-space: nowrap;
}

.money-main h3 {
  font-size: 22px;
  line-height: 1.08;
}

.money-main p {
  font-size: 14px;
}

.finance-kv {
  display: grid;
  gap: 8px;
  padding-top: 4px;
}

.finance-kv.compact,
.finance-kv.money-details {
  grid-column: 1 / -1;
}

.finance-kv.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.finance-kv.money-details {
  grid-template-columns: 1fr;
  gap: 10px;
}

.finance-kv span {
  display: grid;
  grid-template-columns: minmax(112px, 0.42fr) minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 9px;
  color: var(--muted);
  font-size: 12px;
  min-width: 0;
  text-transform: none;
}

.finance-kv strong {
  color: var(--text);
  text-align: left;
  max-width: none;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
}

.finance-section {
  display: grid;
  gap: 10px;
}

.finance-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.finance-heading h3 {
  margin: 0;
  font-size: 18px;
}

.chip-row,
.serie-card-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.chip-row button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  white-space: nowrap;
  min-height: 40px;
  padding: 0 14px;
}

.chip-row button.active {
  border-color: var(--green);
  background: rgba(24, 210, 124, 0.16);
}

.serie-card-nav {
  gap: 10px;
  margin: 0 -14px 12px;
  padding: 0 14px 12px;
}

.serie-card-nav::-webkit-scrollbar {
  display: none;
}

.serie-nav-card {
  width: 158px;
  min-width: 158px;
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  color: var(--text);
  display: grid;
  gap: 6px;
  align-content: start;
  text-align: left;
  padding: 14px;
  scroll-snap-align: start;
}

.serie-nav-card span {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #0b0c0c;
  color: var(--green);
  font-size: 18px;
  font-weight: 950;
}

.serie-nav-card strong {
  font-size: 13px;
  line-height: 1.15;
  min-height: 30px;
}

.serie-nav-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.serie-nav-card.active {
  border-color: var(--green);
  background:
    linear-gradient(145deg, rgba(24, 210, 124, 0.22), rgba(24, 210, 124, 0.04)),
    var(--panel);
}

.serie-nav-card.done {
  border-color: rgba(24, 210, 124, 0.42);
}

.serie-nav-card.done span {
  background: var(--green);
  color: #04130b;
}

.calendar-toggle {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  color: var(--text);
  padding: 0 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.calendar-toggle span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: capitalize;
}

.calendar-toggle strong {
  color: var(--green);
  font-size: 13px;
}

.calendar-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  padding: 14px;
  margin-bottom: 12px;
}

.calendar-card.collapsed {
  display: none;
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.calendar-head button,
.carousel-controls button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b0c0c;
  color: var(--text);
  font-size: 24px;
  font-weight: 900;
}

.calendar-head div {
  min-width: 0;
  text-align: center;
}

.calendar-head strong,
.calendar-head span {
  display: block;
}

.calendar-head strong {
  font-size: 16px;
  text-transform: capitalize;
}

.calendar-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: capitalize;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.calendar-weekday {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}

.calendar-empty {
  min-height: 54px;
}

.calendar-day {
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b0c0c;
  color: var(--text);
  padding: 6px 4px;
  display: grid;
  gap: 5px;
  align-content: start;
}

.calendar-day strong {
  font-size: 13px;
  line-height: 1;
}

.calendar-day span {
  display: flex;
  justify-content: center;
  gap: 2px;
  flex-wrap: wrap;
}

.calendar-day small {
  min-width: 13px;
  height: 13px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #232927;
  color: #68716e;
  font-size: 8px;
  font-weight: 950;
}

.calendar-day small.on {
  background: var(--green);
  color: #04130b;
}

.calendar-day.today {
  border-color: rgba(244, 196, 48, 0.6);
}

.calendar-day.active {
  border-color: var(--green);
  background: rgba(24, 210, 124, 0.12);
}

.serie-card {
  padding: 0;
  overflow: hidden;
}

.serie-cover {
  min-height: 230px;
  background: var(--panel-2);
  position: relative;
}

.serie-cover img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}

.serie-cover.empty-cover {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 44px;
  font-weight: 900;
}

.serie-body {
  padding: 16px;
  display: grid;
  gap: 14px;
}

.serie-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.serie-top h3 {
  font-size: 20px;
}

.pill {
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(24, 210, 124, 0.16);
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
  white-space: nowrap;
}

.exercise-list {
  display: grid;
  gap: 10px;
}

.exercise-row {
  border-radius: 14px;
  background: var(--panel-2);
  padding: 12px;
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 8px;
  align-items: stretch;
  overflow: hidden;
}

.exercise-row strong,
.exercise-panel strong {
  font-size: 15px;
}

.equipment-photo {
  min-height: 128px;
  border-radius: 12px;
  overflow: hidden;
  background: #0b0c0c;
}

.equipment-photo img {
  width: 100%;
  height: 100%;
  min-height: 128px;
  object-fit: cover;
  display: block;
}

.equipment-photo.large {
  width: 100%;
  min-height: 280px;
  border-radius: 18px;
}

.equipment-photo.large img {
  min-height: 280px;
}

.empty-equipment {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 30px;
  font-weight: 900;
}

.exercise-content {
  display: grid;
  gap: 8px;
  align-content: start;
}

.exercise-panel {
  display: grid;
  gap: 14px;
}

.exercise-panel .exercise-content {
  padding: 0 2px;
}

.exercise-panel strong {
  font-size: 22px;
  line-height: 1.08;
}

.exercise-kicker {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.set-block {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.set-title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.set-line {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.set-line button {
  min-height: 34px;
  border: 1px solid rgba(24, 210, 124, 0.45);
  border-radius: 999px;
  background: rgba(24, 210, 124, 0.12);
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  padding: 0 12px;
  white-space: nowrap;
}

.duration-helper {
  flex: 1 1 100%;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.set-dots {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.set-dots button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #0b0c0c;
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
}

.set-dots button.done {
  border-color: var(--green);
  background: var(--green);
  color: #04130b;
}

.exercise-content a {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.exercise-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.exercise-meta span {
  color: var(--muted);
  background: #0b0c0c;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  padding: 5px 7px;
}

.exercise-carousel {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  padding: 12px;
  display: grid;
  gap: 14px;
  overflow: hidden;
}

.exercise-nav-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin: 0 -14px;
  padding: 2px 14px 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.exercise-nav-strip::-webkit-scrollbar {
  display: none;
}

.exercise-nav-card {
  width: 132px;
  min-width: 132px;
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  color: var(--text);
  padding: 12px;
  display: grid;
  gap: 8px;
  align-content: start;
  text-align: left;
  scroll-snap-align: start;
}

.exercise-nav-card span {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #0b0c0c;
  color: var(--green);
  font-weight: 950;
}

.exercise-nav-card strong {
  min-height: 34px;
  font-size: 11px;
  line-height: 1.12;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.exercise-nav-card small {
  justify-self: start;
  border-radius: 999px;
  background: #0b0c0c;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  padding: 5px 8px;
}

.exercise-nav-card.active {
  border-color: var(--green);
  background:
    linear-gradient(145deg, rgba(24, 210, 124, 0.18), rgba(24, 210, 124, 0.03)),
    var(--panel);
}

.exercise-nav-card.complete {
  border-color: rgba(24, 210, 124, 0.55);
}

.exercise-nav-card.complete span,
.exercise-nav-card.complete small {
  background: var(--green);
  color: #04130b;
}

.carousel-controls {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 116px;
  gap: 10px;
  align-items: center;
}

.carousel-controls span {
  min-height: 42px;
  border-radius: 12px;
  background: var(--panel-2);
  color: var(--muted);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 14px;
}

.carousel-controls .next-exercise {
  width: auto;
  min-width: 116px;
  padding: 0 14px;
  background: var(--green);
  color: #04130b;
  font-size: 14px;
}

@media (max-width: 390px) {
  .exercise-row {
    grid-template-columns: 96px 1fr;
  }

  .equipment-photo,
  .equipment-photo img {
    min-height: 112px;
  }

  .equipment-photo.large,
  .equipment-photo.large img {
    min-height: 230px;
  }
}

.done-button.done {
  background: #232927;
  color: var(--green);
  border: 1px solid rgba(24, 210, 124, 0.5);
}

.profile-card {
  display: grid;
  gap: 16px;
  padding: 0;
  overflow: hidden;
}

.profile-hero {
  min-height: 238px;
  padding: 22px;
  display: grid;
  align-content: end;
  gap: 16px;
  background:
    linear-gradient(180deg, rgba(24, 210, 124, 0.08), rgba(5, 5, 5, 0.92)),
    radial-gradient(circle at top right, rgba(24, 210, 124, 0.28), transparent 48%),
    #0b0c0c;
}

.profile-avatar {
  width: 132px;
  height: 132px;
  border-radius: 32px;
  border: 2px solid rgba(24, 210, 124, 0.45);
  background: var(--panel-2);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar span {
  color: var(--green);
  font-size: 38px;
  font-weight: 950;
}

.profile-hero h2,
.profile-hero p {
  margin: 0;
}

.profile-hero h2 {
  font-size: 30px;
  line-height: 1;
}

.profile-hero p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.profile-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 16px;
}

.profile-badges span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #0b0c0c;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  padding: 8px 10px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 16px 16px;
}

.profile-grid span {
  min-height: 82px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0b0c0c;
  padding: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  display: grid;
  align-content: space-between;
  gap: 8px;
}

.profile-grid strong {
  color: var(--text);
  text-align: left;
  font-size: 14px;
  text-transform: none;
  overflow-wrap: anywhere;
}

.raw-status {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  white-space: pre-wrap;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(620px, 100%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 8px 10px calc(8px + var(--safe-bottom));
  background: rgba(5, 5, 5, 0.92);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(18px);
  z-index: 20;
}

.bottom-nav button {
  min-height: 58px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--muted);
  display: grid;
  gap: 3px;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
}

.bottom-nav button span {
  font-size: 20px;
}

.bottom-nav button.active {
  background: rgba(24, 210, 124, 0.14);
  color: var(--green);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.72);
  display: grid;
  place-items: end center;
  padding: 18px 14px calc(18px + var(--safe-bottom));
}

.modal-backdrop[hidden] {
  display: none;
}

.confirm-modal {
  width: min(592px, 100%);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  padding: 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.confirm-modal h2 {
  margin: 0;
  font-size: 24px;
}

.confirm-modal p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.modal-actions button {
  min-height: 50px;
  border-radius: 14px;
  font-weight: 950;
}

.modal-actions button:first-child {
  border: 1px solid var(--line);
  background: #0b0c0c;
  color: var(--text);
}

.modal-actions button:last-child {
  border: 0;
  background: var(--green);
  color: #04130b;
}

.day-modal {
  display: grid;
  gap: 14px;
}

.day-options {
  display: grid;
  gap: 10px;
}

.day-options button {
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0b0c0c;
  color: var(--text);
  padding: 12px;
  text-align: left;
  display: grid;
  gap: 4px;
}

.day-options button span {
  color: var(--green);
  font-size: 20px;
  font-weight: 950;
}

.day-options button strong {
  font-size: 13px;
  line-height: 1.15;
}

.day-options button.active {
  border-color: var(--green);
  background: rgba(24, 210, 124, 0.14);
}

.day-options button.no-training {
  min-height: 58px;
  border-style: dashed;
  opacity: 0.82;
}

.day-options button.no-training span {
  font-size: 14px;
}

.day-options button.no-training strong {
  color: var(--muted);
}

.day-options button.no-training.active {
  opacity: 1;
}

.day-options button.no-training.active strong {
  color: var(--text);
}

.day-actions button:first-child {
  color: var(--red);
}

.modal-link-button {
  min-height: 42px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 20px;
}

.loading-overlay[hidden] {
  display: none;
}

.loading-box {
  min-width: 180px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  padding: 22px;
  display: grid;
  justify-items: center;
  gap: 14px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.loading-box strong {
  font-size: 14px;
}

.update-banner {
  position: fixed;
  left: 50%;
  bottom: calc(86px + var(--safe-bottom));
  transform: translateX(-50%);
  z-index: 55;
  width: min(592px, calc(100% - 24px));
  border: 1px solid rgba(24, 210, 124, 0.45);
  border-radius: 18px;
  background: rgba(17, 19, 19, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.45);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.update-banner[hidden] {
  display: none;
}

.update-banner strong,
.update-banner span {
  display: block;
}

.update-banner strong {
  font-size: 14px;
}

.update-banner span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.update-banner button {
  min-height: 40px;
  border: 0;
  border-radius: 12px;
  background: var(--green);
  color: #04130b;
  font-size: 13px;
  font-weight: 950;
  padding: 0 13px;
}

.spinner {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 4px solid rgba(24, 210, 124, 0.18);
  border-top-color: var(--green);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.skeleton {
  min-height: 110px;
  background: linear-gradient(90deg, #111313 25%, #1b2020 50%, #111313 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite linear;
}

@keyframes shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

@media (min-width: 760px) {
  .app-shell {
    padding-top: 82px;
  }

  body:not(.has-offer-banner) .app-shell {
    padding-top: 28px;
  }

  body.has-offer-banner .app-shell {
    padding-top: 58px;
  }

  body.public-screen .app-shell {
    padding-top: 28px;
  }

  .public-mobile-page .app-shell {
    padding-top: 28px;
  }
}
