/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
:root {
  --bg: #080b10;
  --bg-soft: #0e131b;
  --card: #151b24;
  --card-2: #1b222d;
  --line: #273241;
  --text: #f7fafc;
  --muted: #98a4b3;
  --blue: #2f80ed;
  --blue-soft: rgba(47, 128, 237, .16);
  --lime: #b8ff68;
  --green: #65d05f;
  --danger: #ff6b6b;
  --warning: #ffd166;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow: 0 24px 80px rgba(0, 0, 0, .34);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 10% -10%, rgba(47, 128, 237, .28), transparent 36%),
    radial-gradient(circle at 90% 10%, rgba(184, 255, 104, .12), transparent 30%),
    linear-gradient(180deg, #090d13 0%, #07090d 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.auth-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.auth-shell {
  width: min(1060px, 100%);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  grid-gap: 24px;
  gap: 24px;
  align-items: stretch;
}

.hero-card, .panel, .card, .metric-card, .table-card, .form-card {
  background: linear-gradient(180deg, rgba(27, 34, 45, .95), rgba(14, 19, 27, .96));
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
}

.hero-card {
  padding: 40px;
  overflow: hidden;
  position: relative;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(184, 255, 104, .45), transparent 62%);
  filter: blur(4px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -.04em;
  font-size: 24px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #071008;
  background: linear-gradient(135deg, var(--lime), var(--green));
  box-shadow: 0 12px 30px rgba(101, 208, 95, .28);
  font-weight: 900;
}

.hero-title {
  font-size: clamp(38px, 7vw, 76px);
  line-height: .9;
  letter-spacing: -.08em;
  margin: 72px 0 20px;
}

.hero-title span { color: var(--lime); }

.hero-text {
  color: var(--muted);
  max-width: 560px;
  font-size: 17px;
  line-height: 1.7;
}

.auth-panel { padding: 28px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--blue-soft);
  border: 1px solid rgba(47, 128, 237, .28);
  color: #d9eaff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.dot {
  width: 8px;
  height: 8px;
  background: var(--lime);
  border-radius: 999px;
  box-shadow: 0 0 0 5px rgba(184, 255, 104, .12);
}

.form-grid { display: grid; grid-gap: 16px; gap: 16px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.field { display: grid; grid-gap: 8px; gap: 8px; }
.field label { color: #d7dde7; font-weight: 800; font-size: 13px; }
.input, .textarea, .select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-md);
  color: var(--text);
  background: rgba(8, 11, 16, .74);
  outline: none;
  padding: 13px 14px;
  min-height: 48px;
}
.textarea { min-height: 110px; resize: vertical; }
.input:focus, .textarea:focus, .select:focus {
  border-color: rgba(184, 255, 104, .62);
  box-shadow: 0 0 0 4px rgba(184, 255, 104, .08);
}

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: var(--radius-md);
  padding: 0 16px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, opacity .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  color: #061006;
  background: linear-gradient(135deg, var(--lime), var(--green));
  box-shadow: 0 16px 32px rgba(101, 208, 95, .24);
}
.btn-blue {
  background: var(--blue);
  color: white;
  box-shadow: 0 16px 32px rgba(47, 128, 237, .24);
}
.btn-soft {
  background: rgba(255, 255, 255, .08);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, .08);
}
.btn-danger {
  background: rgba(255, 107, 107, .16);
  color: #ffd5d5;
  border: 1px solid rgba(255, 107, 107, .24);
}
.btn.full { width: 100%; }

.error-box {
  color: #ffd7d7;
  border: 1px solid rgba(255, 107, 107, .26);
  background: rgba(255, 107, 107, .12);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.app-shell { min-height: 100svh; padding-bottom: 36px; }
.topbar {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 10;
  -webkit-backdrop-filter: blur(18px);
          backdrop-filter: blur(18px);
  background: rgba(8, 11, 16, .78);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.topbar-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.dashboard-menu {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}
.dashboard-menu-panel {
  display: flex;
  align-items: center;
  gap: 16px;
}
.dashboard-menu-panel-desktop { display: flex; }
.dashboard-menu-panel-mobile,
.dashboard-menu-backdrop { display: none; }
.dashboard-logout { display: flex; }
.hamburger-btn {
  width: 46px;
  height: 46px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border-radius: var(--radius-md);
  color: var(--text);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .1);
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.hamburger-btn:hover {
  background: rgba(255, 255, 255, .12);
  transform: translateY(-1px);
}
.hamburger-btn.is-open {
  background: rgba(184, 255, 104, .14);
  border-color: rgba(184, 255, 104, .34);
}
.hamburger-btn span {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
}
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #d4dbe5;
  font-size: 14px;
  font-weight: 800;
  background: rgba(255, 255, 255, .04);
  border: 1px solid transparent;
}
.nav a:hover { border-color: rgba(255, 255, 255, .1); }
.nav a[aria-current="page"] {
  color: #071008;
  background: linear-gradient(135deg, var(--lime), var(--green));
  border-color: transparent;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 34px 0 20px;
}
.eyebrow {
  color: var(--lime);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 900;
}
.h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1;
  letter-spacing: -.06em;
  margin: 8px 0 0;
}
.subtitle { margin: 10px 0 0; color: var(--muted); line-height: 1.6; }

.grid { display: grid; grid-gap: 18px; gap: 18px; }
.grid.metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.two { grid-template-columns: 1fr 1fr; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.metric-card, .card, .table-card, .form-card { padding: 22px; }
.metric-value { font-size: 38px; font-weight: 950; letter-spacing: -.06em; margin-top: 8px; }
.metric-label, .muted { color: var(--muted); }
.metric-label { font-size: 13px; font-weight: 800; }

.card h3, .form-card h2, .table-card h2 { margin: 0 0 14px; letter-spacing: -.03em; }
.card p { color: var(--muted); line-height: 1.6; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
  text-align: left;
  padding: 14px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  vertical-align: top;
}
.table th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.table td { color: #edf2f7; }

.mobile-list { display: none; gap: 12px; }
.list-card {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .07);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 900;
  font-size: 12px;
  color: #071008;
  background: var(--lime);
}
.pill.blue { color: white; background: var(--blue); }
.pill.dark { color: #dce4ee; background: rgba(255, 255, 255, .08); }

.exercise-list { display: grid; grid-gap: 12px; gap: 12px; }
.exercise-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-gap: 14px;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .07);
}
.exercise-number {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--blue);
  font-weight: 950;
}

.share-box {
  display: flex;
  gap: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, .05);
  border: 1px dashed rgba(184, 255, 104, .34);
  border-radius: var(--radius-lg);
  align-items: center;
}
.share-box input { flex: 1 1; }

.install-card {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: rgba(21, 27, 36, .94);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px);
          backdrop-filter: blur(18px);
}
.install-card p { margin: 4px 0 0; color: var(--muted); }

.public-shell { padding: 28px 0 54px; }
.public-routine { max-width: 840px; margin: 0 auto; }

@media (max-width: 900px) {
  .auth-shell, .grid.metrics, .grid.two, .grid.three, .form-grid.two, .form-grid.three { grid-template-columns: 1fr; }
  .hero-card { padding: 28px; }
  .hero-title { margin-top: 42px; }
  .topbar-inner {
    align-items: center;
    flex-direction: row;
    padding: 12px 0;
    min-height: 70px;
    position: relative;
  }
  .dashboard-menu { position: relative; }
  .dashboard-menu-panel-desktop { display: none; }
  .hamburger-btn {
    display: inline-flex;
    position: relative;
    z-index: 42;
  }
  .dashboard-menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 40;
    border: 0;
    padding: 0;
    background: rgba(0, 0, 0, .32);
    -webkit-backdrop-filter: blur(2px);
            backdrop-filter: blur(2px);
    cursor: pointer;
  }
  .dashboard-menu-panel-mobile {
    display: flex;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 41;
    width: min(320px, calc(100vw - 32px));
    padding: 14px;
    border-radius: var(--radius-lg);
    background: rgba(21, 27, 36, .98);
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: var(--shadow);
    -webkit-backdrop-filter: blur(18px);
            backdrop-filter: blur(18px);
    flex-direction: column;
    align-items: stretch;
    transform-origin: top right;
  }
  .dashboard-menu-panel-mobile .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    flex-wrap: nowrap;
  }
  .dashboard-menu-panel-mobile .nav a {
    width: 100%;
    display: flex;
    justify-content: center;
    border-radius: var(--radius-md);
    padding: 12px 14px;
  }
  .dashboard-menu-panel-mobile .dashboard-logout,
  .dashboard-menu-panel-mobile .btn { width: 100%; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .table { display: none; }
  .mobile-list { display: grid; }
  .share-box { flex-direction: column; align-items: stretch; }
  .exercise-item { grid-template-columns: auto 1fr; }
  .exercise-item > .pill { grid-column: 1 / -1; justify-content: center; }
}

.workout-tracker {
  display: grid;
  grid-gap: 16px;
  gap: 16px;
}
.tracker-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(27, 34, 45, .95), rgba(14, 19, 27, .96));
  border: 1px solid rgba(255, 255, 255, .08);
}
.tracker-head h2 { margin: 12px 0 0; }
.tracker-progress {
  min-width: 150px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(184, 255, 104, .1);
  border: 1px solid rgba(184, 255, 104, .24);
  text-align: center;
}
.tracker-progress strong { display: block; font-size: 30px; letter-spacing: -.04em; }
.tracker-progress span { color: var(--muted); font-size: 12px; font-weight: 800; }
.set-report-list { display: grid; grid-gap: 14px; gap: 14px; }
.set-report-card {
  padding: 16px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .07);
}
.set-report-title {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-gap: 12px;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}
.set-report-table { display: grid; grid-gap: 8px; gap: 8px; }
.set-report-row {
  display: grid;
  grid-template-columns: 72px 1fr 1fr 76px;
  grid-gap: 10px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: var(--radius-lg);
  background: rgba(8, 11, 16, .48);
  border: 1px solid rgba(255, 255, 255, .06);
}
.set-report-row.header {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.set-report-row.done {
  border-color: rgba(184, 255, 104, .32);
  background: rgba(184, 255, 104, .07);
}
.set-number { font-weight: 950; color: var(--lime); }
.input.compact { min-height: 42px; padding: 9px 10px; }
.check-btn {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 15px;
  color: #061006;
  background: linear-gradient(135deg, var(--lime), var(--green));
  box-shadow: 0 12px 24px rgba(101, 208, 95, .12);
  font-weight: 950;
  font-size: 22px;
  cursor: pointer;
}
.check-btn.checked {
  color: #dfffe0;
  background: rgba(8, 11, 16, .72);
  border: 1px solid rgba(184, 255, 104, .34);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04), 0 12px 24px rgba(0, 0, 0, .22);
}
.check-btn:disabled { opacity: .72; cursor: not-allowed; }
.rest-timer {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 40;
  min-width: min(420px, calc(100% - 32px));
  display: grid;
  place-items: center;
  grid-gap: 2px;
  gap: 2px;
  padding: 16px 18px;
  border-radius: 24px;
  background: rgba(8, 11, 16, .92);
  border: 1px solid rgba(184, 255, 104, .32);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .46);
  -webkit-backdrop-filter: blur(18px);
          backdrop-filter: blur(18px);
}
.rest-timer span {
  color: var(--lime);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.rest-timer strong {
  font-size: 44px;
  line-height: 1;
  letter-spacing: -.06em;
}
.rest-timer small { color: var(--muted); text-align: center; }

@media (max-width: 700px) {
  .set-report-row { grid-template-columns: 52px 1fr 1fr 54px; gap: 8px; padding: 8px; }
  .set-report-row.header { font-size: 10px; }
  .check-btn { width: 42px; height: 42px; }
}

.dashboard-client-list-shell {
  padding: 16px 0 30px;
}

.client-chat-list {
  display: grid;
  grid-gap: 2px;
  gap: 2px;
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(17, 19, 21, .72);
  border: 1px solid rgba(255, 255, 255, .04);
}

.client-chat-row {
  min-height: 72px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  grid-gap: 14px;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 14px;
  transition: background .18s ease, transform .18s ease;
}

.client-chat-row:hover {
  background: rgba(255, 255, 255, .09);
  transform: translateX(2px);
}

.client-chat-avatar {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  color: #071008;
  background: linear-gradient(135deg, var(--lime), var(--green));
  font-size: 15px;
  font-weight: 950;
  letter-spacing: -.04em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
}

.client-chat-content {
  min-width: 0;
  display: grid;
  grid-gap: 6px;
  gap: 6px;
}

.client-chat-top,
.client-chat-bottom {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.client-chat-top strong {
  min-width: 0;
  overflow: hidden;
  color: #f3f5f7;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-chat-top time {
  color: #a7adb5;
  font-size: 12px;
  white-space: nowrap;
}

.client-chat-preview {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  color: #aeb4bc;
  font-size: 14px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-chat-checks {
  color: #a7adb5;
  font-size: 13px;
  letter-spacing: -.14em;
}

.client-chat-badges {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.client-chat-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #dce4ee;
  background: rgba(255, 255, 255, .08);
  font-size: 11px;
  font-weight: 800;
}

.client-chat-empty {
  padding: 26px 18px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 700px) {
  .dashboard-client-list-shell {
    padding: 8px 0 24px;
  }

  .client-chat-list {
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .client-chat-row {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 0;
    border-radius: 0;
  }

  .client-chat-row:hover {
    transform: none;
  }

  .client-chat-avatar {
    width: 48px;
    height: 48px;
    font-size: 14px;
  }

  .client-chat-badges span:first-child {
    display: none;
  }
}

.client-detail-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.client-detail-metrics .metric-card {
  min-height: 112px;
  padding: 16px 18px;
  border-radius: 22px;
}

.client-detail-metrics .metric-value {
  font-size: 30px;
  margin-top: 4px;
}

.client-detail-metrics .muted {
  margin: 6px 0 0;
}

@media (max-width: 900px) {
  .grid.client-detail-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .client-detail-metrics .metric-card {
    min-height: 92px;
    padding: 12px;
    border-radius: 18px;
  }

  .client-detail-metrics .metric-label {
    font-size: 11px;
  }

  .client-detail-metrics .metric-value {
    font-size: clamp(24px, 8vw, 30px);
  }

  .client-detail-metrics .muted {
    font-size: 12px;
  }
}

.client-page-head {
  align-items: stretch;
  flex-direction: column;
  gap: 18px;
}

.client-page-head > div:first-child {
  min-width: 0;
}

.client-submenu {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.client-actions-left,
.client-actions-menu {
  display: inline-flex;
  align-items: center;
}

.client-actions-left {
  min-width: 0;
}

.client-actions-menu {
  position: relative;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
}

.client-actions-label {
  color: #dbe5ef;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.client-menu-button {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border-radius: 16px;
  color: var(--text);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(0, 0, 0, .18);
  transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.client-menu-button:hover,
.client-menu-button.is-open {
  transform: translateY(-1px);
  background: rgba(184, 255, 104, .14);
  border-color: rgba(184, 255, 104, .34);
  box-shadow: 0 16px 32px rgba(101, 208, 95, .12);
}

.client-menu-button span {
  width: 22px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
}

.client-menu-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 35;
  width: min(340px, calc(100vw - 32px));
  padding: 10px;
  border-radius: 24px;
  color: var(--text);
  background: rgba(11, 15, 22, .96);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .48);
  -webkit-backdrop-filter: blur(18px);
          backdrop-filter: blur(18px);
  transform-origin: top right;
}

.client-menu-header {
  display: grid;
  grid-gap: 4px;
  gap: 4px;
  padding: 10px 10px 12px;
}

.client-menu-header strong {
  font-size: 15px;
  font-weight: 950;
  letter-spacing: -.02em;
}

.client-menu-header small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.client-menu-link {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  color: #eaf0f7;
  background: transparent;
  border: 1px solid transparent;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.client-menu-link:hover,
.client-menu-link.is-active {
  transform: translateX(2px);
  background: rgba(255, 255, 255, .075);
  border-color: rgba(255, 255, 255, .08);
}

.client-menu-link.is-active {
  background: rgba(184, 255, 104, .12);
  border-color: rgba(184, 255, 104, .24);
}

.client-menu-link span:first-child {
  min-width: 0;
  display: grid;
  grid-gap: 4px;
  gap: 4px;
}

.client-menu-link strong {
  font-size: 14px;
  font-weight: 950;
}

.client-menu-link small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-menu-arrow {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  color: #071008;
  background: linear-gradient(135deg, var(--lime), var(--green));
  font-size: 16px;
  font-weight: 950;
}

.client-routines-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}

.client-routines-title h2 {
  margin: 6px 0 0;
  font-size: clamp(24px, 4vw, 34px);
  letter-spacing: -.05em;
}

.client-routines-shell {
  padding-top: 12px;
}

.routine-chat-avatar {
  background: linear-gradient(135deg, #dfffb9, var(--lime));
}

.client-form-route-shell {
  max-width: 860px;
  margin-top: 18px;
}

.client-form-route-grid {
  align-items: start;
  margin-top: 18px;
}

@media (max-width: 900px) {
  .client-submenu {
    gap: 12px;
  }

  .client-actions-label {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .client-menu-dropdown {
    right: 0;
  }

  .client-routines-title {
    margin-top: 20px;
  }

  .client-form-route-shell {
    max-width: none;
  }
}

@media (max-width: 430px) {
  .client-actions-label {
    max-width: 116px;
    font-size: 10px;
  }

  .client-menu-button {
    width: 46px;
    height: 46px;
    border-radius: 15px;
  }

  .client-menu-dropdown {
    width: calc(100vw - 32px);
  }
}

/* Routine detail UX */
.routine-page-head {
  display: grid;
  grid-gap: 18px;
  gap: 18px;
  margin-bottom: 18px;
}

.routine-head-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.routine-back-button {
  min-height: 46px;
}

.routine-head-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
}

.routine-head-actions > span {
  color: #dbe5ef;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.routine-share-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.routine-icon-button {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  color: #eef5f9;
  background: rgba(255, 255, 255, .075);
  border: 1px solid rgba(255, 255, 255, .12);
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(0, 0, 0, .18);
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.routine-icon-button svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.routine-icon-button:hover,
.routine-icon-button:focus-visible {
  transform: translateY(-1px);
  background: rgba(184, 255, 104, .14);
  border-color: rgba(184, 255, 104, .34);
  box-shadow: 0 16px 32px rgba(101, 208, 95, .12);
  outline: none;
}

.routine-icon-button.is-success,
.routine-icon-button.add {
  color: #071008;
  background: linear-gradient(135deg, var(--lime), var(--green));
  border-color: transparent;
}

.routine-icon-button.whatsapp {
  color: #061006;
  background: linear-gradient(135deg, #9eff6d, #30d366);
  border-color: transparent;
}

.routine-title-block {
  min-width: 0;
}

.routine-inline-note {
  max-width: 820px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.routine-exercises-compact {
  margin-top: 8px;
}

.routine-exercises-list {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.routine-exercise-row {
  min-height: 72px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  grid-gap: 12px;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .07);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.routine-exercise-row:hover {
  transform: translateX(2px);
  background: rgba(255, 255, 255, .07);
  border-color: rgba(184, 255, 104, .16);
}

.routine-exercise-index {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: var(--blue);
  font-weight: 950;
}

.routine-exercise-main {
  min-width: 0;
}

.routine-exercise-main strong {
  display: block;
  overflow: hidden;
  color: #f5f8fb;
  font-size: 15px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.routine-exercise-main p,
.routine-exercise-main small {
  display: block;
  overflow: hidden;
  margin: 4px 0 0;
  color: #aebbd0;
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.routine-exercise-main small {
  color: var(--muted);
}

.routine-tempo-badge {
  min-width: 76px;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 10px;
  color: #071008;
  background: var(--lime);
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.routine-empty-state {
  padding: 16px;
  text-align: center;
}

.routine-tracker-card {
  margin-top: 12px;
  padding: 14px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(27, 34, 45, .82), rgba(14, 19, 27, .88));
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: var(--shadow);
}

.routine-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, .58);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.routine-modal-dismiss {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: default;
}

.routine-modal-card {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: calc(100svh - 36px);
  overflow: auto;
  padding: 20px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(27, 34, 45, .98), rgba(12, 17, 24, .98));
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .58);
}

.routine-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.routine-modal-head h2 {
  margin: 10px 0 6px;
  font-size: clamp(24px, 4vw, 34px);
  letter-spacing: -.05em;
}

.routine-modal-head p {
  margin: 0;
}

.routine-modal-close {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  color: #eaf0f7;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.routine-exercise-form .textarea {
  min-height: 90px;
}

.workout-tracker {
  gap: 10px;
}

.tracker-head {
  align-items: center;
  padding: 12px;
  border-radius: 20px;
}

.tracker-summary {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.tracker-summary .pill {
  flex: 0 0 auto;
}

.tracker-head h2 {
  margin: 0;
  font-size: clamp(19px, 4vw, 26px);
  letter-spacing: -.04em;
}

.tracker-head p {
  margin: 3px 0 0;
  font-size: 13px;
  line-height: 1.35;
}

.tracker-progress {
  min-width: 104px;
  padding: 10px 12px;
  border-radius: 18px;
}

.tracker-progress strong {
  font-size: 24px;
}

.set-report-list {
  gap: 10px;
}

.set-report-card {
  padding: 12px;
  border-radius: 20px;
}

.set-report-title {
  gap: 10px;
  margin-bottom: 10px;
}

.set-report-title .exercise-number {
  width: 34px;
  height: 34px;
  border-radius: 12px;
}

.set-report-row {
  grid-template-columns: 56px 1fr 1fr 58px;
  gap: 8px;
  padding: 8px;
  border-radius: 16px;
}

.set-report-row.header {
  padding-top: 2px;
  padding-bottom: 2px;
  font-size: 10px;
}

.input.compact {
  min-height: 38px;
}

.check-btn {
  width: 40px;
  height: 40px;
  border-radius: 14px;
}

@media (max-width: 700px) {
  .routine-page-head {
    gap: 14px;
  }

  .routine-head-actions-row {
    align-items: center;
  }

  .routine-head-actions {
    gap: 8px;
  }

  .routine-head-actions > span {
    max-width: 92px;
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
  }

  .routine-icon-button {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .routine-icon-button svg {
    width: 20px;
    height: 20px;
  }

  .routine-exercise-row {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .routine-tempo-badge {
    grid-column: 2;
    width: -moz-fit-content;
    width: fit-content;
    min-width: 0;
    padding: 6px 10px;
  }

  .routine-tracker-card {
    padding: 10px;
  }

  .tracker-head {
    align-items: stretch;
    gap: 10px;
  }

  .tracker-summary {
    align-items: flex-start;
  }

  .tracker-progress {
    width: 100%;
    min-width: 0;
  }

  .set-report-card {
    padding: 10px;
  }

  .set-report-row {
    grid-template-columns: 42px 1fr 1fr 44px;
    gap: 6px;
    padding: 7px;
  }

  .input.compact {
    min-height: 36px;
    padding: 8px;
  }

  .check-btn {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
}

