:root {
  --bg: #f4ede3;
  --bg-2: #ead8bc;
  --surface: rgba(255, 250, 245, 0.88);
  --surface-strong: #fff9f2;
  --surface-dark: #1f1a17;
  --ink: #201914;
  --muted: #6b5b4e;
  --line: rgba(78, 49, 24, 0.12);
  --line-strong: rgba(78, 49, 24, 0.2);
  --accent: #d66e47;
  --accent-2: #6f8f54;
  --accent-3: #d8a55d;
  --danger: #b94c4c;
  --shadow: 0 24px 60px rgba(71, 46, 23, 0.14);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Titillium Web", "Avenir Next", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.85), transparent 28%),
    radial-gradient(circle at bottom right, rgba(214, 110, 71, 0.12), transparent 24%),
    linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

#app {
  min-height: 100vh;
}

.screen {
  min-height: 100vh;
}

.auth-screen {
  display: grid;
  place-items: center;
  padding: 28px;
}

.auth-card {
  width: min(720px, 100%);
  display: grid;
  grid-template-columns: 1fr;
  background: rgba(255, 250, 245, 0.58);
  border: 1px solid rgba(82, 53, 28, 0.08);
  border-radius: 40px;
  overflow: hidden;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.auth-brand {
  padding: 44px 44px 18px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(31, 26, 23, 0.96), rgba(47, 36, 29, 0.96));
  color: #fff6ef;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.auth-brand-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.auth-brand-logo {
  width: min(220px, 48vw);
  max-height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 18px 34px rgba(12, 10, 8, 0.18));
  animation: authBrandFade 320ms ease;
}

.auth-brand-subtitle {
  margin: 10px 0 0;
  color: rgba(255, 246, 239, 0.84);
  font-size: 1rem;
  animation: authBrandFade 320ms ease;
}

.auth-brand .display {
  animation: authBrandFade 320ms ease;
}

@keyframes authBrandFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-form-wrap {
  padding: 26px 44px 44px;
  background: rgba(255, 249, 242, 0.92);
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
}

.auth-brand .eyebrow {
  color: rgba(255, 246, 239, 0.7);
}

.eyebrow.light {
  color: var(--muted);
}

h1,
h2,
h3,
h4 {
  margin: 0;
}

.display {
  font-family: "Prata", Georgia, serif;
  font-size: clamp(2.6rem, 4vw, 4.8rem);
  line-height: 0.98;
  font-weight: 400;
}

.subcopy,
.muted {
  color: var(--muted);
}

.brand-points,
.auth-stats,
.mini-list,
.inline-badges,
.nav-links,
.kpi-grid,
.card-grid,
.detail-stack,
.timeline,
.chat-thread,
.calendar-list {
  display: grid;
  gap: 14px;
}

.brand-point,
.auth-stat,
.panel,
.kpi,
.client-card,
.timeline-item,
.chat-bubble,
.meal-card,
.workout-card,
.schedule-item,
.summary-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.56);
  box-shadow: var(--shadow);
}

.brand-point,
.auth-stat,
.panel,
.kpi,
.client-card,
.timeline-item,
.chat-bubble,
.meal-card,
.workout-card,
.schedule-item,
.summary-card {
  padding: 18px;
}

.auth-form-wrap h2 {
  font-family: "Titillium Web", sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.role-switch,
.segmented {
  display: inline-flex;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
}

.pill-btn,
.ghost-btn,
.primary-btn,
.secondary-btn,
.nav-btn,
.role-chip,
.mini-btn {
  border: 0;
  border-radius: 999px;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.pill-btn,
.nav-btn,
.role-chip {
  padding: 11px 16px;
  background: transparent;
  color: var(--muted);
}

.pill-btn.active,
.nav-btn.active,
.role-chip.active {
  background: var(--surface-dark);
  color: white;
}

.form-stack {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

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

.day-selector-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.check-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 700;
  color: var(--ink);
}

.check-chip input {
  margin: 0;
}

.material-selector-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.material-option-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.material-check-chip {
  justify-content: flex-start;
}

.material-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.material-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.material-remove-btn {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.resource-toggle-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.training-tools-row {
  margin-top: 18px;
  margin-bottom: 8px;
  align-items: center;
}

.active-resource-toggle {
  background: rgba(214, 110, 71, 0.14);
  color: #854222;
  box-shadow: inset 0 0 0 1px rgba(214, 110, 71, 0.12);
}

.form-section {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.section-title {
  font-family: "Prata", Georgia, serif;
  font-size: 1.15rem;
  color: var(--ink);
}

.field,
.stack-field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label,
.stack-field label,
.client-meta strong,
.small-label {
  font-size: 0.92rem;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
}

input[type="file"] {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.88);
}

input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(214, 110, 71, 0.12);
  color: #854222;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

textarea {
  resize: vertical;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.mini-btn {
  padding: 13px 18px;
  font-weight: 700;
}

.primary-btn {
  background: var(--accent);
  color: white;
}

.secondary-btn {
  background: var(--surface-dark);
  color: white;
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  border: 1px solid var(--line);
}

.small-profile-btn {
  align-self: start;
  padding: 10px 14px;
  font-size: 0.9rem;
}

.mini-btn {
  background: rgba(214, 110, 71, 0.12);
  color: #834121;
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover,
.pill-btn:hover,
.nav-btn:hover,
.mini-btn:hover {
  transform: translateY(-1px);
}

.auth-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.auth-error {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(185, 76, 76, 0.2);
  background: rgba(185, 76, 76, 0.1);
  color: #8d3838;
  font-weight: 700;
}

.workspace {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  padding: 24px;
  background: rgba(31, 26, 23, 0.95);
  color: #fff6ef;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-brand {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.sidebar-brand-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.brand-logo-wrap {
  width: 84px;
  height: 84px;
  margin-bottom: 12px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 246, 239, 0.14);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.sidebar-brand-logo {
  margin-bottom: 0;
  flex: 0 0 auto;
}

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

.professional-card-logo {
  width: 64px;
  height: 64px;
  margin-bottom: 10px;
}

.brand-title {
  font-family: "Prata", Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
}

.profile-block {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 246, 239, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.profile-block strong,
.profile-block span {
  display: block;
}

.profile-block span,
.sidebar .muted {
  color: rgba(255, 246, 239, 0.74);
}

.nav-links {
  gap: 10px;
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 12px;
}

.sidebar .ghost-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #fff6ef;
  border-color: rgba(255, 246, 239, 0.12);
}

.content {
  padding: 24px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.topbar h2 {
  font-family: "Prata", Georgia, serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 400;
}

.topbar-actions,
.toolbar,
.filter-row,
.card-actions,
.panel-actions,
.composer-actions,
.client-hero,
.status-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.workspace-logo-chip {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(82, 53, 28, 0.08);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.workspace-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-panel {
  margin-bottom: 18px;
  padding: 24px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(82, 53, 28, 0.08);
  background:
    linear-gradient(120deg, rgba(255, 249, 242, 0.96), rgba(245, 229, 210, 0.92)),
    var(--surface-strong);
  box-shadow: var(--shadow);
}

.hero-panel h3 {
  font-family: "Prata", Georgia, serif;
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 8px;
}

.kpi-grid {
  margin-top: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kpi strong {
  display: block;
  margin-top: 10px;
  font-size: 1.9rem;
}

.view {
  display: grid;
  gap: 18px;
}

.card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-span-full {
  grid-column: 1 / -1;
}

.compact-grid {
  gap: 12px;
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.client-detail-grid {
  margin-bottom: 18px;
}

.client-profile-panel .card-grid,
.client-profile-panel .card-grid.two,
.client-profile-panel .card-grid.three {
  gap: 22px;
  align-items: start;
}

.client-profile-panel .card-grid + .card-grid {
  margin-top: 26px;
}

.client-profile-panel .client-detail-grid {
  margin-bottom: 22px;
}

.chart-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.metric-chart {
  width: 100%;
  height: auto;
  display: block;
}

.chart-axis {
  stroke: rgba(32, 25, 20, 0.18);
  stroke-width: 1.5;
}

.chart-label,
.chart-value {
  fill: var(--muted);
  font-family: "Titillium Web", sans-serif;
  font-size: 11px;
}

.chart-point-value {
  fill: rgba(53, 37, 27, 0.82);
  font-family: "Titillium Web", sans-serif;
  font-size: 10px;
  font-weight: 700;
}

.progress-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
  max-width: 420px;
}

.progress-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 170px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.food-ai-result-form {
  margin-top: 18px;
}

.food-ai-photo-preview {
  display: flex;
  justify-content: flex-start;
}

.food-ai-photo,
.food-log-photo {
  width: 108px;
  height: 108px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #eef3f6;
}

.food-log-list {
  margin-top: 18px;
}

.food-log-card {
  gap: 10px;
}

.food-group-card,
.food-week-card,
.food-day-card,
.food-log-entry {
  display: grid;
  gap: 12px;
}

.food-week-stack,
.food-day-stack,
.food-day-items {
  display: grid;
  gap: 12px;
}

.food-week-card,
.food-day-card {
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  box-shadow: 0 14px 28px rgba(84, 56, 38, 0.06);
}

.food-log-entry {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 20px rgba(84, 56, 38, 0.04);
}

.food-meal-group,
.progress-panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  position: relative;
}

.food-meal-group {
  display: grid;
  gap: 12px;
  padding: 14px;
  box-shadow: 0 16px 28px rgba(84, 56, 38, 0.06);
}

.food-meal-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(84, 56, 38, 0.08);
}

.food-meal-group-head strong {
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.food-meal-group-head span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.food-meal-group-items {
  display: grid;
  gap: 12px;
}

.food-meal-group::before,
.progress-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  opacity: 0.9;
}

.meal-type-breakfast {
  background: linear-gradient(180deg, rgba(248, 236, 218, 0.94), rgba(255, 250, 244, 0.98));
  border-color: rgba(214, 157, 87, 0.24);
}

.meal-type-breakfast::before {
  background: linear-gradient(90deg, rgba(214, 157, 87, 0.92), rgba(232, 192, 119, 0.85));
}

.meal-type-lunch {
  background: linear-gradient(180deg, rgba(233, 241, 232, 0.94), rgba(249, 252, 248, 0.98));
  border-color: rgba(111, 143, 84, 0.24);
}

.meal-type-lunch::before {
  background: linear-gradient(90deg, rgba(111, 143, 84, 0.92), rgba(153, 182, 126, 0.85));
}

.meal-type-snack {
  background: linear-gradient(180deg, rgba(243, 234, 220, 0.94), rgba(252, 247, 241, 0.98));
  border-color: rgba(181, 139, 83, 0.24);
}

.meal-type-snack::before {
  background: linear-gradient(90deg, rgba(181, 139, 83, 0.92), rgba(214, 171, 111, 0.85));
}

.meal-type-dinner {
  background: linear-gradient(180deg, rgba(234, 239, 247, 0.94), rgba(249, 251, 255, 0.98));
  border-color: rgba(126, 143, 175, 0.24);
}

.meal-type-dinner::before {
  background: linear-gradient(90deg, rgba(126, 143, 175, 0.92), rgba(162, 176, 206, 0.82));
}

.meal-type-other {
  background: linear-gradient(180deg, rgba(241, 238, 234, 0.94), rgba(252, 250, 247, 0.98));
  border-color: rgba(160, 147, 132, 0.22);
}

.meal-type-other::before {
  background: linear-gradient(90deg, rgba(160, 147, 132, 0.92), rgba(198, 187, 173, 0.82));
}

.progress-panel {
  box-shadow: 0 20px 38px rgba(84, 56, 38, 0.06);
}

.progress-panel-evolution {
  background: linear-gradient(180deg, rgba(234, 239, 247, 0.94), rgba(249, 251, 255, 0.98));
  border-color: rgba(126, 143, 175, 0.24);
}

.progress-panel-evolution::before {
  background: linear-gradient(90deg, rgba(126, 143, 175, 0.92), rgba(162, 176, 206, 0.82));
}

.progress-panel-body {
  background: linear-gradient(180deg, rgba(248, 239, 232, 0.94), rgba(255, 251, 247, 0.98));
  border-color: rgba(214, 110, 71, 0.22);
}

.progress-panel-body::before {
  background: linear-gradient(90deg, rgba(214, 110, 71, 0.92), rgba(231, 149, 107, 0.85));
}

.progress-panel-checkin {
  background: linear-gradient(180deg, rgba(239, 233, 241, 0.94), rgba(250, 248, 252, 0.98));
  border-color: rgba(142, 127, 151, 0.22);
}

.progress-panel-checkin::before {
  background: linear-gradient(90deg, rgba(142, 127, 151, 0.92), rgba(177, 161, 188, 0.82));
}

.progress-panel-food {
  background: linear-gradient(180deg, rgba(241, 238, 228, 0.94), rgba(251, 250, 245, 0.98));
  border-color: rgba(149, 128, 95, 0.22);
}

.progress-panel-food::before {
  background: linear-gradient(90deg, rgba(149, 128, 95, 0.92), rgba(188, 165, 130, 0.82));
}

.progress-panel-metrics {
  background: linear-gradient(180deg, rgba(233, 240, 236, 0.94), rgba(248, 252, 250, 0.98));
  border-color: rgba(119, 148, 130, 0.22);
}

.progress-panel-metrics::before {
  background: linear-gradient(90deg, rgba(119, 148, 130, 0.92), rgba(152, 184, 165, 0.82));
}

.progress-panel-professional {
  background: linear-gradient(180deg, rgba(247, 242, 235, 0.95), rgba(255, 252, 248, 0.99));
  border-color: rgba(179, 153, 128, 0.22);
}

.progress-panel-professional::before {
  background: linear-gradient(90deg, rgba(179, 153, 128, 0.92), rgba(210, 190, 168, 0.82));
}

.progress-panel .panel-head {
  margin-bottom: 18px;
  padding-top: 4px;
}

.progress-panel .panel-head h3 {
  font-size: 1.55rem;
}

.progress-panel .panel-head p,
.progress-panel > p {
  color: rgba(80, 63, 49, 0.78);
}

.food-line-items {
  display: grid;
  gap: 12px;
}

.food-line-item {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 0.9fr 0.9fr;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
}

.food-line-items-readonly {
  margin-top: 8px;
}

.food-line-item-readonly {
  grid-template-columns: minmax(0, 1.4fr) repeat(2, auto);
  align-items: center;
}

.config-check-chip {
  justify-content: flex-start;
  width: 100%;
}

.internal-service-grid {
  margin-top: 6px;
}

.progress-evolution-actions {
  margin-top: 14px;
}

.progress-evolution-panel {
  margin-top: 18px;
  display: grid;
  gap: 20px;
}

.photo-evolution-stack {
  display: grid;
  gap: 22px;
}

.photo-evolution-group {
  display: grid;
  gap: 14px;
}

.photo-evolution-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 116px));
  gap: 12px;
  justify-content: start;
}

.photo-evolution-card {
  display: grid;
  gap: 6px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.66);
}

.photo-evolution-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 138px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.photo-evolution-card small {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.7rem;
  line-height: 1.2;
  text-align: center;
}

.panel {
  background: var(--surface);
  backdrop-filter: blur(14px);
}

.compact-panel {
  padding-bottom: 16px;
}

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

.panel h3 {
  font-family: "Prata", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 400;
}

.client-card.active {
  outline: 2px solid rgba(214, 110, 71, 0.28);
}

.client-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1.5px solid rgba(214, 188, 164, 0.72);
  background:
    radial-gradient(circle at top right, rgba(214, 110, 71, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 250, 245, 0.98), rgba(250, 244, 236, 0.94));
}

.client-card-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.client-card-eyebrow {
  margin-bottom: 8px;
  letter-spacing: 0.12em;
}

.client-card-name {
  margin: 0;
  font-family: "Prata", Georgia, serif;
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 1.05;
}

.client-card-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.client-card-alert {
  min-width: 36px;
  height: 36px;
  font-size: 1rem;
}

.client-card-objective {
  padding: 10px 18px;
  background: rgba(214, 110, 71, 0.12);
}

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

.client-card-kpi {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(214, 188, 164, 0.5);
  background: rgba(255, 255, 255, 0.52);
}

.client-card-kpi.highlight {
  background: linear-gradient(180deg, rgba(214, 110, 71, 0.12), rgba(255, 255, 255, 0.6));
  border-color: rgba(214, 110, 71, 0.22);
}

.client-card-kpi-label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.client-card-kpi strong {
  font-size: 1.02rem;
  line-height: 1.3;
}

.client-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.client-card-meta-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(122, 160, 142, 0.12);
  color: #476255;
  font-size: 0.88rem;
  font-weight: 700;
}

.client-card-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  overflow: visible;
  padding-bottom: 0;
}

.client-card-notes .badge {
  max-width: 100%;
  padding: 8px 12px;
  font-size: 0.9rem;
  line-height: 1.25;
  white-space: normal;
  word-break: break-word;
}

.client-card-notification-line {
  border: 1px solid rgba(214, 110, 71, 0.1);
  background: linear-gradient(180deg, rgba(214, 110, 71, 0.1), rgba(255, 244, 236, 0.78));
}

.client-card-calm {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px dashed rgba(181, 158, 138, 0.42);
  background: rgba(255, 255, 255, 0.38);
  color: #7d6b5c;
  text-align: center;
  font-weight: 600;
}

.client-card-actions {
  margin-top: 2px;
}

.client-card-open-btn {
  padding: 12px 18px;
  background: linear-gradient(180deg, rgba(214, 110, 71, 0.16), rgba(214, 110, 71, 0.08));
  color: #854222;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(214, 110, 71, 0.08);
}

@media (max-width: 1180px) {
  .client-card-summary {
    grid-template-columns: 1fr;
  }

  .client-card-top {
    align-items: start;
  }
}

.client-profile-panel {
  position: relative;
  margin-top: 16px;
  padding-top: 26px;
  border: 2px solid rgba(126, 165, 187, 0.5);
  background:
    linear-gradient(180deg, rgba(126, 165, 187, 0.22), rgba(255, 255, 255, 0.92) 34%),
    rgba(240, 248, 250, 0.99);
  box-shadow: 0 24px 50px rgba(78, 109, 128, 0.2);
}

.client-profile-panel::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 20px;
  right: 20px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7ea5bb, #d66e47);
}

.client-profile-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(214, 110, 71, 0.16);
  color: #854222;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.client-card h4,
.timeline-item h4,
.meal-card h4,
.workout-card h4,
.schedule-item h4,
.summary-card h4 {
  margin-bottom: 8px;
}

.badge,
.metric-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.badge {
  background: rgba(214, 110, 71, 0.14);
  color: #854222;
}

.badge.success,
.metric-chip.good {
  background: rgba(111, 143, 84, 0.16);
  color: #486436;
}

.badge.warn,
.metric-chip.warn {
  background: rgba(216, 165, 93, 0.2);
  color: #845b19;
}

.badge.dark {
  background: rgba(31, 26, 23, 0.08);
  color: var(--ink);
}

.detail-stack {
  gap: 12px;
}

.client-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.client-meta strong {
  display: block;
  margin-bottom: 4px;
}

.timeline-item,
.chat-bubble,
.schedule-item,
.summary-card {
  background: rgba(255, 255, 255, 0.66);
}

.profile-section-card {
  position: relative;
  overflow: hidden;
  border-width: 1.5px;
}

.profile-section-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  border-radius: 24px;
  opacity: 0.95;
}

.profile-notifications {
  background: linear-gradient(180deg, rgba(248, 239, 232, 0.92), rgba(255, 252, 249, 0.98));
  border-color: rgba(214, 110, 71, 0.22);
}

.profile-notifications::before {
  background: linear-gradient(180deg, #d6906c, #efc5af);
}

.profile-status {
  background: linear-gradient(180deg, rgba(240, 231, 221, 0.94), rgba(251, 248, 244, 0.98));
  border-color: rgba(166, 131, 104, 0.22);
}

.profile-status::before {
  background: linear-gradient(180deg, #b28d6d, #e5d2bf);
}

.profile-latest-record {
  background: linear-gradient(180deg, rgba(233, 240, 236, 0.94), rgba(248, 252, 250, 0.98));
  border-color: rgba(119, 148, 130, 0.22);
}

.profile-latest-record::before {
  background: linear-gradient(180deg, #789986, #c9ddd1);
}

.profile-next-session {
  background: linear-gradient(180deg, rgba(238, 233, 241, 0.94), rgba(250, 248, 252, 0.98));
  border-color: rgba(142, 127, 151, 0.2);
}

.profile-next-session::before {
  background: linear-gradient(180deg, #9583a1, #d9cfdf);
}

.profile-observations {
  background: linear-gradient(180deg, rgba(241, 238, 228, 0.94), rgba(251, 250, 245, 0.98));
  border-color: rgba(149, 128, 95, 0.2);
}

.profile-observations::before {
  background: linear-gradient(180deg, #b79c73, #ddd1ba);
}

.profile-checkin {
  background: linear-gradient(180deg, rgba(239, 233, 229, 0.94), rgba(252, 249, 247, 0.98));
  border-color: rgba(162, 121, 103, 0.22);
}

.profile-checkin::before {
  background: linear-gradient(180deg, #b9826c, #e4c3b5);
}

.profile-training-summary {
  background: linear-gradient(180deg, rgba(235, 239, 247, 0.94), rgba(249, 251, 255, 0.98));
  border-color: rgba(119, 132, 168, 0.2);
}

.profile-training-summary::before {
  background: linear-gradient(180deg, #7e8faf, #cfd8ea);
}

.profile-actions {
  background: linear-gradient(180deg, rgba(235, 242, 239, 0.94), rgba(248, 252, 250, 0.98));
  border-color: rgba(113, 143, 122, 0.22);
}

.profile-actions::before {
  background: linear-gradient(180deg, #7aa08e, #c7ddd2);
}

.profile-followup-note {
  background: linear-gradient(180deg, rgba(247, 242, 235, 0.95), rgba(255, 252, 248, 0.99));
  border-color: rgba(179, 153, 128, 0.22);
}

.profile-followup-note::before {
  background: linear-gradient(180deg, #ba9a78, #e1d0bf);
}

.profile-config {
  background: linear-gradient(180deg, rgba(239, 244, 241, 0.95), rgba(251, 253, 252, 0.99));
  border-color: rgba(125, 156, 140, 0.24);
}

.profile-config::before {
  background: linear-gradient(180deg, #88a695, #d1e0d8);
}

.profile-section-card small {
  display: inline-block;
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(53, 37, 27, 0.88);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(120, 90, 64, 0.12);
  min-width: 100%;
}

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

.section-title-row small {
  margin-bottom: 0;
  min-width: 0;
  flex: 1 1 auto;
}

.edit-toggle-btn {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(136, 166, 149, 0.28);
  border-radius: 999px;
  background: rgba(255, 246, 239, 0.9);
  color: #7f5138;
  font-size: 1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(88, 62, 42, 0.08);
  flex: 0 0 auto;
}

.edit-toggle-btn:hover {
  transform: translateY(-1px);
  background: rgba(249, 232, 221, 0.98);
}

.profile-config input:disabled,
.profile-config select:disabled {
  color: rgba(63, 49, 39, 0.72);
  background: rgba(255, 255, 255, 0.52);
  border-color: rgba(125, 156, 140, 0.16);
  cursor: not-allowed;
}

.client-account-stack {
  gap: 16px;
}

.status-note {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 246, 239, 0.95);
  border: 1px solid rgba(214, 110, 71, 0.2);
  color: #7f5138;
  font-weight: 600;
}

.status-note.success-note {
  background: rgba(236, 246, 231, 0.96);
  border-color: rgba(111, 143, 84, 0.24);
  color: #486436;
}

.inline-link-btn {
  margin-top: 8px;
  padding: 9px 12px;
  font-size: 0.88rem;
}

.privacy-policy-content p {
  margin: 0;
  line-height: 1.6;
}

.field-lock-note {
  margin-top: 4px;
}

.training-summary-list {
  margin-top: 12px;
}

.training-summary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(126, 143, 175, 0.12);
  background: rgba(255, 255, 255, 0.56);
}

.nutrition-editor-actions {
  justify-content: flex-start;
  gap: 10px;
  margin-top: 18px;
}

.rich-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.rich-editor {
  min-height: 180px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  outline: none;
  line-height: 1.6;
}

.rich-editor:empty::before {
  content: attr(data-placeholder);
  color: var(--muted);
}

.rich-editor h3,
.plan-notes-view h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.rich-editor p,
.plan-notes-view p {
  margin: 0 0 10px;
}

.plan-notes-view {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.66);
  line-height: 1.65;
}

.profile-section-card .empty-state {
  background: rgba(255, 255, 255, 0.62);
}

.observations-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.observation-column {
  display: grid;
  gap: 12px;
  align-content: start;
}

.alert-list {
  gap: 10px;
}

.alert-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(214, 188, 164, 0.36);
}

.alert-item .badge {
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
}

.alert-item-actions {
  margin-left: auto;
}

.compact-form {
  margin-top: 14px;
}

.compact-actions {
  margin-top: -4px;
}

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

  .day-selector-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.message-head-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.timeline-item small,
.chat-bubble small {
  color: var(--muted);
}

.chat-bubble.coach {
  border-left: 6px solid var(--accent);
}

.chat-bubble.client {
  border-left: 6px solid var(--accent-2);
}

.chat-bubble.unread-message {
  box-shadow: inset 0 0 0 2px rgba(216, 165, 93, 0.32);
}

.chat-thread {
  max-height: 440px;
  overflow: auto;
}

.inline-badges {
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  overflow: auto;
  padding-bottom: 4px;
}

.client-switcher {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.client-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.client-chip-tooltip {
  position: relative;
}

.client-chip-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translateX(-50%) translateY(6px);
  width: min(320px, calc(100vw - 48px));
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(35, 28, 23, 0.96);
  color: #fff7f0;
  border: 1px solid rgba(255, 239, 225, 0.14);
  box-shadow: 0 18px 36px rgba(47, 31, 18, 0.22);
  white-space: pre-line;
  line-height: 1.45;
  font-size: 0.9rem;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 40;
}

.client-chip-tooltip::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  transform: translateX(-50%) translateY(6px);
  border-width: 8px 8px 0;
  border-style: solid;
  border-color: rgba(35, 28, 23, 0.96) transparent transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 41;
}

.client-chip-tooltip:hover::after,
.client-chip-tooltip:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.client-chip.active {
  background: var(--surface-dark);
  color: white;
  border-color: var(--surface-dark);
}

.chip-alert,
.alert-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 0.78rem;
  font-weight: 800;
}

.notification-preview {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.notification-line {
  display: block;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(214, 110, 71, 0.08);
  color: #7e4428;
  font-size: 0.9rem;
}

.line-item {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.line-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.line-item strong {
  display: block;
  margin-bottom: 4px;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.editor-stack {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.editor-card {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.exercise-picker-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) max-content;
  gap: 10px;
}

.exercise-list,
.draft-exercise-list,
.exercise-library-grid {
  display: grid;
  gap: 12px;
}

.exercise-library-grid {
  margin-top: 18px;
}

.collapsed-note {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, 0.52);
  color: var(--muted);
}

.exercise-head-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.exercise-inline-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.exercise-note {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(126, 165, 187, 0.12);
  color: #325166;
  font-size: 0.92rem;
}

.collapsed-day-note {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
}

.exercise-card,
.exercise-library-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.exercise-library-card {
  align-items: start;
  grid-template-columns: 92px minmax(0, 1fr) max-content;
}

.draft-card {
  grid-template-columns: 92px minmax(0, 1fr) max-content;
}

.library-actions {
  display: grid;
  gap: 8px;
}

.exercise-thumb {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #eef3f6;
}

.small-thumb {
  width: 68px;
  height: 68px;
  border-radius: 14px;
}

.exercise-image-preview-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.exercise-library-card strong {
  display: block;
  margin-bottom: 4px;
}

.day-head-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.day-head-row strong {
  font-size: 1.02rem;
  line-height: 1.35;
}

.week-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
  justify-content: flex-end;
}

.hidden-weeks-wrap {
  display: grid;
  gap: 14px;
}

.is-hidden-week {
  opacity: 0.82;
  border-style: dashed;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(31, 26, 23, 0.42);
  backdrop-filter: blur(6px);
  z-index: 20;
}

.modal-card {
  width: min(100%, 520px);
  max-height: calc(100vh - 40px);
  padding: 24px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 245, 0.98);
  box-shadow: var(--shadow);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.training-exercise-modal-card {
  width: min(100%, 680px);
}

.effort-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.split-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

.plans-split-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.single-plan-layout {
  grid-template-columns: minmax(0, 1fr);
}

.nutrition-days,
.training-days {
  display: grid;
  gap: 14px;
}

.nutrition-card {
  display: grid;
  gap: 16px;
}

.nutrition-sheet {
  gap: 22px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(249, 242, 233, 0.9));
}

.nutrition-sheet-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.nutrition-sheet-head h4 {
  font-size: 1.5rem;
  margin: 0 0 6px;
}

.sheet-kcal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 12px 16px;
  border-radius: 18px;
  background: #7ea5bb;
  color: white;
  font-weight: 800;
}

.nutrition-zone {
  display: grid;
  gap: 12px;
}

.nutrition-zone-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
}

.nutrition-zone-head h5 {
  margin: 0;
  font-size: 1.35rem;
  color: #183449;
}

.nutrition-section-grid {
  display: grid;
  gap: 16px;
}

.nutrition-sheet-group {
  display: grid;
  gap: 0;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.76);
}

.sheet-group-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #7ea5bb;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.84rem;
  font-weight: 800;
}

.block-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.sheet-group-body {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  gap: 0;
}

.sheet-options {
  display: grid;
}

.sheet-option-card {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  border-top: 1px solid var(--line);
}

.sheet-option-card:first-child {
  border-top: 0;
}

.sheet-option-index {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 10px;
  background: rgba(31, 26, 23, 0.04);
  border-right: 1px solid var(--line);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.78rem;
  font-weight: 800;
}

.sheet-option-main {
  padding: 18px;
}

.option-head-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 8px;
}

.option-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
  justify-content: flex-end;
}

.icon-action-btn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(120, 90, 64, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #6f5543;
  font-size: 1rem;
  line-height: 1;
}

.icon-action-btn:hover {
  transform: translateY(-1px);
  background: rgba(249, 240, 233, 0.98);
}

.icon-action-btn.danger {
  color: #9b4d4d;
  background: rgba(255, 243, 243, 0.88);
}

.sheet-option-main strong {
  display: block;
  font-size: 1rem;
}

.sheet-option-items {
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.sheet-notes {
  padding: 18px;
  border-left: 1px solid var(--line);
  background: rgba(245, 237, 227, 0.72);
}

.sheet-notes strong {
  display: block;
  margin-bottom: 8px;
}

.sheet-notes ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--ink);
}

.sheet-group-footer {
  padding: 14px 18px 18px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.small-btn {
  padding: 8px 12px;
  font-size: 0.82rem;
}

.invert-btn {
  background: rgba(255, 255, 255, 0.18);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.danger-soft-btn {
  background: rgba(185, 76, 76, 0.16);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.icon-dismiss {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
}

.danger-btn {
  background: rgba(185, 76, 76, 0.1);
  color: var(--danger);
  border: 1px solid rgba(185, 76, 76, 0.16);
}

.nutrition-groups {
  display: grid;
  gap: 16px;
}

.nutrition-group {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

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

.nutrition-group h5 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.nutrition-notes {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.note-chip {
  display: inline-flex;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(111, 143, 84, 0.12);
  color: #476135;
  font-size: 0.84rem;
  font-weight: 700;
}

.nutrition-options {
  display: grid;
  gap: 12px;
}

.nutrition-option {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
}

.option-index {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 10px 8px;
  border-radius: 14px;
  background: rgba(31, 26, 23, 0.08);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--ink);
}

.option-items {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  color: var(--muted);
}

.workout-blocks,
.meal-items {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.workout-blocks {
  padding: 16px;
  border-radius: 24px;
  border: 1px solid rgba(214, 188, 164, 0.42);
}

.workout-tone-0 {
  background: linear-gradient(180deg, rgba(248, 240, 232, 0.9), rgba(255, 252, 248, 0.98));
  box-shadow: inset 4px 0 0 rgba(214, 110, 71, 0.32);
}

.workout-tone-1 {
  background: linear-gradient(180deg, rgba(237, 243, 239, 0.92), rgba(250, 253, 251, 0.98));
  box-shadow: inset 4px 0 0 rgba(122, 160, 142, 0.34);
}

.workout-tone-2 {
  background: linear-gradient(180deg, rgba(240, 236, 244, 0.9), rgba(251, 249, 253, 0.98));
  box-shadow: inset 4px 0 0 rgba(149, 131, 161, 0.32);
}

.mini-list {
  margin-top: 10px;
}

.mini-list li {
  color: var(--muted);
}

.empty-state {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  text-align: center;
}

.schedule-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.schedule-time {
  min-width: 92px;
  font-weight: 800;
}

.composer {
  display: grid;
  gap: 14px;
}

.footer-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.forum-layout {
  align-items: start;
}

.forum-topic-list {
  margin-top: 18px;
}

.forum-topic-card {
  width: 100%;
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 24px;
  border: 1px solid rgba(166, 124, 82, 0.18);
  background: rgba(255, 251, 246, 0.82);
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.forum-topic-card:hover,
.forum-topic-card.active {
  transform: translateY(-1px);
  border-color: rgba(166, 124, 82, 0.32);
  box-shadow: 0 14px 26px rgba(116, 89, 63, 0.08);
}

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

.forum-topic-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.forum-topic-card p,
.forum-author-role {
  margin: 0;
  color: var(--muted);
}

.forum-thread {
  margin-bottom: 18px;
}

.forum-message-item {
  gap: 10px;
}

.forum-message-unread {
  background: linear-gradient(180deg, rgba(214, 110, 71, 0.12), rgba(255, 255, 255, 0.7));
  border-color: rgba(214, 110, 71, 0.28);
}

.forum-create-row {
  margin-top: 22px;
  justify-content: flex-end;
}

.hide {
  display: none;
}

@media (max-width: 1180px) {
  .workspace,
  .auth-card,
  .card-grid.three,
  .card-grid.two,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    gap: 16px;
  }

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

@media (max-width: 760px) {
  .auth-screen,
  .content,
  .sidebar,
  .auth-brand,
  .auth-form-wrap {
    padding: 18px;
  }

  .topbar {
    flex-direction: column;
  }

  .field-grid,
  .client-meta,
  .auth-stats,
  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .progress-photo-grid {
    grid-template-columns: 1fr;
  }

  .quick-actions {
    grid-template-columns: 1fr;
  }

  .sheet-group-body,
  .nutrition-option,
  .exercise-picker-row,
  .exercise-card,
  .exercise-library-card,
  .draft-card,
  .effort-actions {
    grid-template-columns: 1fr;
  }

  .nutrition-sheet-head,
  .nutrition-zone-head {
    flex-direction: column;
    align-items: start;
  }

  .sheet-group-bar,
  .option-head-row,
  .day-head-row,
  .exercise-head-row {
    flex-direction: column;
    align-items: start;
  }

  .line-item {
    grid-template-columns: 1fr;
  }

  .sheet-kcal {
    min-width: 0;
  }

  .role-switch,
  .segmented,
  .topbar-actions,
  .toolbar {
    width: 100%;
  }

  .pill-btn,
  .nav-btn,
  .role-chip {
    flex: 1 1 0;
    text-align: center;
  }
}
