/* ==========================================================================
   MOBILE / RESPONSIVE
   ========================================================================== */

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

  .foods-toolbar,
  .food-entry-form,
  .print-template-grid,
  .print-template-form {
    grid-template-columns: 1fr;
  }

  .foods-add-btn {
    justify-self: stretch;
    width: 100%;
  }

  .auth-layout,
  .workspace,
  .admin-layout,
  .admin-workspace,
  .hero-strip,
  .about-profile-section,
  .about-story-grid,
  .split-section,
  .service-row,
  .science-article,
  .scientific-services,
  .service-grid,
  .article-list {
    grid-template-columns: 1fr;
  }

  .service-photo {
    width: min(150px, 58vw);
  }

  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
  }

  .dashboard-menu-toggle {
    display: inline-flex;
  }

  .topbar .top-actions {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
  }

  .topbar.is-open .top-actions {
    display: grid;
    gap: 10px;
  }

  .topbar.is-open .dashboard-menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .topbar.is-open .dashboard-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .topbar.is-open .dashboard-menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .topbar .top-menu {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .topbar .top-menu .ghost-btn,
  .topbar .top-actions > .ghost-btn,
  .topbar .top-actions > .primary-btn {
    width: 100%;
    justify-content: flex-start;
  }

  .diet-builder-head,
  .diet-food-form {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .diet-meal-modal-backdrop {
    align-items: start;
    padding: 14px;
  }

  .diet-macro-summary,
  .food-library-controls {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .admin-detail-tabs {
    flex-wrap: nowrap;
  }

  .services-title,
  .scientific-services article {
    grid-template-columns: 1fr;
  }

  .scientific-services::before,
  .scientific-services article::after {
    display: none;
  }

  .scientific-services small {
    justify-self: start;
    max-width: 100%;
    text-align: left;
  }

  .public-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-media-panel {
    min-height: 360px;
    order: -1;
  }

  .contact-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-contact-section .primary-btn {
    width: 100%;
  }

  .admin-heading,
  .admin-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar-spacer {
    display: none;
  }

  .brand-panel {
    min-height: 42vh;
  }

  .sidebar {
    position: static;
  }

  .stat-row,
  .compare-grid,
  .session-layout {
    grid-template-columns: 1fr;
  }

  .messages-workspace,
  .conversation-form {
    grid-template-columns: 1fr;
  }

  .message-bubble {
    width: 100%;
  }

  .auth-modal-backdrop {
    place-items: start center;
    padding: 12px;
  }

  .auth-modal .public-auth-section {
    padding: 18px;
  }
}

@media (max-width: 1100px) {
  .public-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 74px;
    padding: 12px clamp(16px, 5vw, 26px);
  }

  .public-nav.nav-hidden {
    transform: translateY(-105%);
  }

  .public-nav.is-open {
    transform: translateY(0);
    box-shadow: 0 22px 58px rgba(23, 33, 43, 0.14);
  }

  .public-nav .brand-mark {
    min-width: 0;
  }

  .public-nav .brand-name strong {
    font-size: clamp(26px, 8vw, 42px);
  }

  .public-nav .brand-name small {
    font-size: clamp(10px, 3vw, 14px);
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .public-nav nav,
  .public-nav .public-actions {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
  }

  .public-nav.is-open nav,
  .public-nav.is-open .public-actions {
    display: grid;
  }

  .public-nav nav {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-top: 10px;
  }

  .public-nav a,
  .public-nav .ghost-btn,
  .public-nav .primary-btn,
  .public-nav .secondary-btn {
    width: 100%;
    justify-content: flex-start;
    min-height: 48px;
  }

  .public-actions,
  .signed-in-actions {
    grid-template-columns: 1fr;
    align-items: stretch;
    justify-content: stretch;
    gap: 10px;
    padding-top: 8px;
  }

  .signed-in-actions .user-chip {
    width: 100%;
  }

  .signed-in-actions .primary-btn,
  .signed-in-actions .ghost-btn {
    justify-content: center;
  }

  .user-chip {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }

  .user-chip strong,
  .user-chip small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 620px) {
  .public-nav {
    padding: 12px 16px;
  }

  .public-nav .mark-logo-frame {
    width: 68px;
    height: 68px;
    border-radius: 14px;
  }

  .public-hero {
    padding: 28px 16px 44px;
  }

  .hero-media-panel {
    width: 100%;
    max-width: 100%;
  }

  .article-deck {
    gap: 18px;
  }

  .science-article {
    display: block;
    padding: 14px;
    overflow: hidden;
  }

  .science-article img {
    display: block;
    height: 220px;
    min-height: 0;
    margin: 0 0 18px;
    border-radius: 8px;
    object-fit: cover;
  }

  .science-article > div {
    display: block;
  }

  .science-article span {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
  }

  .science-article h3 {
    font-size: 24px;
    line-height: 1.15;
  }

  .science-article p {
    font-size: 15px;
    line-height: 1.65;
  }

  .article-sources a {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .brand-panel,
  .auth-panel,
  .questionnaire-shell,
  .workspace {
    padding: 18px;
  }

  .top-menu .ghost-btn {
    padding: 0 10px;
  }

  .form-grid,
  .stat-row,
  .compare-grid,
  .compare-controls,
  .before-after-grid,
  .appointment-coming-soon,
  .measurement-chart-grid,
  .session-layout,
  .measurement-chart {
    grid-template-columns: 1fr;
  }

  .measurement-category-grid,
  .basic-measurement-summary,
  .skinfold-hero-grid,
  .skinfold-report-summary,
  .skinfold-report-grid,
  .skinfold-report-grid.wide,
  .skinfold-admin-snapshot,
  .skinfold-visual-grid,
  .skinfold-site-grid,
  .skinfold-equation-grid,
  .skinfold-history-list {
    grid-template-columns: 1fr;
  }

  .basic-measurements-card {
    padding: 14px;
    border-radius: 18px;
  }

  .basic-measurements-head {
    display: grid;
  }

  .basic-measurement-summary strong {
    font-size: 22px;
  }

  .basic-measurement-form {
    padding: 14px;
  }

  .skinfold-admin-card,
  .skinfold-form {
    padding: 14px;
  }

  .skinfold-report-panel {
    gap: 16px;
    overflow: hidden;
  }

  .skinfold-report-header {
    display: grid;
    grid-template-columns: 1fr;
  }

  .skinfold-report-actions,
  .skinfold-report-actions .compact-select,
  .skinfold-report-actions .primary-btn,
  .skinfold-report-actions .secondary-btn {
    width: 100%;
    min-width: 0;
  }

  .skinfold-report-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .skinfold-body-card,
  .skinfold-bars-card,
  .skinfold-progress-card,
  .skinfold-result-table-card {
    min-width: 0;
  }

  .skinfold-admin-history article {
    grid-template-columns: 1fr 42px;
  }

  .skinfold-admin-history article > div {
    grid-column: 1 / -1;
  }

  .body-map {
    min-height: 280px;
  }

  .body-map-legend {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .body-map-legend span {
    min-width: 0;
  }

  .rich-file-list article,
  .file-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .file-card-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .file-preview {
    width: 72px;
  }

  .form-actions {
    flex-direction: column;
  }

  .upload-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .upload-submit {
    width: 100%;
    min-width: 0;
  }

  .client-detail-header,
  .admin-heading,
  .profile-editor-head,
  .biochemical-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .biochemical-intro,
  .biochemical-value-row,
  .biochemical-result-row {
    grid-template-columns: 1fr;
  }

  .biochemical-grid {
    grid-template-columns: 1fr;
    padding: 0 12px 12px;
  }

  .biochemical-group summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-client-grid {
    grid-template-columns: 1fr;
  }

  .session-list-item {
    grid-template-columns: minmax(0, 1fr) 40px;
  }
}

/* ==========================================================================
   LEGACY / OVERRIDES
   Cascade-sensitive redesign layers below must remain in their current order.
   ========================================================================== */

/* Polished application skin */
:root {
  --bg: #f3f6f7;
  --surface: #ffffff;
  --surface-soft: #eef5f3;
  --ink: #17212b;
  --muted: #6d7887;
  --line: #dde5ec;
  --primary: #27745d;
  --primary-dark: #1f5e4b;
  --accent: #c88442;
  --blue: #3d5da9;
  --danger: #c74f4f;
  --shadow: 0 18px 48px rgba(23, 33, 43, 0.1);
  --shadow-soft: 0 10px 28px rgba(23, 33, 43, 0.07);
}

body {
  background:
    linear-gradient(180deg, #eef3f5 0, #f7f9f8 340px, #f4f6f7 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.brand-mark {
  font-size: 16px;
}

.mark-icon {
  border-radius: 8px;
  background: linear-gradient(135deg, #2a8065, #3d5da9);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.brand-panel {
  padding: 54px;
  background:
    linear-gradient(135deg, rgba(14, 42, 36, 0.92), rgba(42, 78, 119, 0.78)),
    url("https://images.unsplash.com/photo-1498837167922-ddd27525d352?auto=format&fit=crop&w=1600&q=85");
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.18);
}

.brand-copy h1 {
  max-width: 680px;
  font-size: clamp(44px, 6.6vw, 82px);
}

.brand-copy p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.9);
}

.auth-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.34)),
    #f3f6f7;
}

.auth-card,
.questionnaire-card,
.panel,
.sidebar,
.metric-card,
.appointment-slot,
.plan-item,
.photo-card,
.admin-toolbar,
.admin-client-card {
  border-color: rgba(123, 142, 158, 0.22);
  box-shadow: var(--shadow-soft);
}

.auth-card {
  padding: 34px;
}

.tab-row,
.section-tabs {
  border: 0;
  background: #eef3f5;
}

.tab-row button.active,
.section-tabs button.active {
  box-shadow: 0 8px 22px rgba(23, 33, 43, 0.09);
}

.field label,
.field legend {
  color: #2c3947;
  letter-spacing: 0;
}

.field input,
.field textarea,
.field select {
  border-color: #d8e2ea;
  background: #fbfcfd;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.field input:hover,
.field textarea:hover,
.field select:hover {
  border-color: #bfd0dc;
  background: #ffffff;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: #5d8d7a;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(39, 116, 93, 0.12);
  outline: 0;
}

.choice,
.scale-choice {
  background: #fbfcfd;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.choice:hover,
.scale-choice:hover {
  border-color: #b9c9d5;
  background: #ffffff;
}

.choice:has(input:checked),
.scale-choice:has(input:checked) {
  border-color: rgba(39, 116, 93, 0.55);
  background: #eef8f3;
  box-shadow: 0 0 0 3px rgba(39, 116, 93, 0.08);
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.danger-btn {
  min-height: 46px;
  border-radius: 8px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.primary-btn {
  background: linear-gradient(135deg, #27745d, #2f647f);
  box-shadow: 0 12px 24px rgba(39, 116, 93, 0.2);
}

.primary-btn:hover {
  background: linear-gradient(135deg, #1f5e4b, #28556d);
  transform: translateY(-1px);
}

.secondary-btn {
  background: #e7f1ed;
  box-shadow: inset 0 0 0 1px rgba(39, 116, 93, 0.12);
}

.notice {
  border: 1px solid rgba(39, 116, 93, 0.16);
  background: #edf7f2;
}

.topbar {
  min-height: 76px;
  border-bottom-color: rgba(123, 142, 158, 0.18);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 8px 28px rgba(23, 33, 43, 0.05);
}

.topbar .mark-icon {
  width: 38px;
  height: 38px;
}

.workspace {
  gap: 28px;
  padding: 30px;
}

.sidebar {
  padding: 18px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
}

.avatar {
  border-radius: 8px;
  background: linear-gradient(135deg, #3d5da9, #27745d);
}

.nav button {
  min-height: 46px;
  color: #536173;
}

.nav button.active,
.nav button:hover {
  color: #17212b;
  background: #edf4f2;
}

.content {
  gap: 24px;
}

.hero-strip {
  min-height: 178px;
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(27, 85, 68, 0.94), rgba(46, 86, 128, 0.86)),
    url("https://images.unsplash.com/photo-1490645935967-10de6ba17061?auto=format&fit=crop&w=1600&q=85");
  box-shadow: var(--shadow);
}

.hero-strip h2 {
  font-size: 30px;
}

.stat-row {
  gap: 18px;
}

.metric-card {
  padding: 22px;
  background: linear-gradient(180deg, #ffffff, #fbfcfd);
}

.metric-card h3 {
  font-size: 28px;
}

.panel {
  padding: 26px;
  background: rgba(255, 255, 255, 0.94);
}

.panel-header {
  padding-bottom: 4px;
}

.page-title h2,
.panel h3 {
  color: #17212b;
}

.questionnaire-shell {
  background:
    linear-gradient(180deg, rgba(61, 93, 169, 0.08), rgba(39, 116, 93, 0.04)),
    #f4f7f7;
}

.questionnaire-card {
  max-width: 1040px;
  padding: 32px;
}

.progress {
  height: 12px;
  background: #e1e8ee;
}

.progress div {
  background: linear-gradient(90deg, #27745d, #3d5da9);
}

.step-heading {
  margin: 26px 0;
}

.step-heading h1 {
  font-size: 34px;
}

.table {
  border-collapse: separate;
  border-spacing: 0;
}

.table th,
.table td {
  border-bottom-color: #e8eef2;
  padding: 14px 10px;
  vertical-align: top;
}

.summary-section th {
  border-radius: 6px;
  background: #eef5f3;
}

.plan-item,
.appointment-slot,
.photo-card {
  background: linear-gradient(180deg, #ffffff, #fbfcfd);
}

.badge {
  color: #1f5e4b;
  background: #e8f4ee;
}

.admin-heading {
  padding: 4px 2px 0;
}

.admin-heading h2 {
  font-size: 34px;
}

.admin-toolbar {
  gap: 14px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.94);
}

.view-toggle,
.admin-search,
.compact-select {
  border-color: #d8e2ea;
  background: #fbfcfd;
}

.view-toggle button.active {
  background: linear-gradient(135deg, #3d5da9, #2f647f);
}

.icon-btn {
  border: 1px solid #d8e2ea;
  border-radius: 8px;
  color: #3d5da9;
}

.admin-client-grid {
  gap: 22px;
}

.admin-client-card {
  min-height: 260px;
  border-color: rgba(123, 142, 158, 0.26);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 253, 0.98));
}

.admin-client-card:hover,
.admin-client-card.selected {
  border-color: rgba(61, 93, 169, 0.34);
  box-shadow: 0 18px 42px rgba(46, 66, 96, 0.13);
}

.client-avatar-lg {
  background: linear-gradient(135deg, #edf2fb, #e9f5ef);
  color: #315196;
}

.phone-pill {
  background: #f0f4fb;
}

.client-card-stats {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #edf1f4;
}

.client-card-stats strong {
  color: #17212b;
}

.note {
  border-left-color: #c88442;
  background: #fff7ed;
}

@media (max-width: 620px) {
  .admin-heading h2,
  .step-heading h1 {
    font-size: 28px;
  }

  .admin-toolbar {
    padding: 16px;
  }

  .admin-client-card {
    min-height: 230px;
  }
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

.workspace,
.admin-workspace,
.content,
.panel,
.admin-client-detail,
.admin-client-detail > *,
.admin-toolbar,
.admin-client-grid,
.session-editor,
.table,
.admin-table {
  min-width: 0;
  max-width: 100%;
}

.workspace,
.app-shell {
  overflow-x: hidden;
}

.table {
  width: 100%;
}

@media (max-width: 900px) {
  .food-library-row-actions {
    grid-template-columns: 1fr 1fr 40px 40px;
  }

  .active-food-row {
    grid-template-columns: 1fr 80px 90px 38px;
  }

  .active-food-row small {
    grid-column: 1 / -1;
  }

  .workspace {
    padding: 18px;
  }

  .admin-toolbar,
  .top-actions,
  .public-actions {
    width: 100%;
  }
}

.brand-panel .brand-name strong,
.brand-panel .brand-name small {
  color: #ffffff;
}

.app-shell .workspace {
  align-items: start;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  padding: 30px 24px;
}

.app-shell .sidebar {
  position: static;
  top: auto;
  align-self: start;
  height: fit-content;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  margin-top: 0;
}

.app-shell .content {
  align-self: start;
}

@media (max-width: 900px) {
  .app-shell .workspace {
    grid-template-columns: 1fr;
  }

  .app-shell .sidebar {
    position: static;
    max-height: none;
  }
}

.file-modal,
.file-modal > *,
.file-modal header > div:first-child {
  min-width: 0;
}

.viewer-zoom-stage {
  max-width: 100%;
  touch-action: none;
  -webkit-overflow-scrolling: touch;
}

.food-library-row[hidden] {
  display: none !important;
}

.diet-meal-modal .diet-food-form {
  grid-template-columns: minmax(0, 1.3fr) minmax(440px, 0.85fr);
  gap: 24px;
}

.diet-meal-modal .diet-food-left {
  order: 2;
}

.diet-meal-modal .active-meal-card {
  order: 1;
}

.diet-meal-modal .diet-builder-head {
  align-items: start;
}

.meal-progress-list {
  display: grid;
  min-width: 300px;
  gap: 10px;
}

.meal-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.meal-progress-track {
  position: relative;
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9edf0;
}

.meal-progress-track span {
  position: absolute;
  inset: 0 auto 0 0;
}

.meal-progress-track b {
  position: relative;
  display: block;
  text-align: center;
  color: #ffffff;
  font-size: 11px;
  line-height: 14px;
}

.meal-progress.energy .meal-progress-track span { background: #4565ac; }
.meal-progress.carbs .meal-progress-track span { background: #62bea6; }
.meal-progress.protein .meal-progress-track span { background: #e7b850; }
.meal-progress.fat .meal-progress-track span { background: #df718c; }

.food-library-row {
  border-left: 4px solid transparent;
}

.food-library-row.green { border-left-color: #62bea6; }
.food-library-row.blue { border-left-color: #4565ac; }
.food-library-row.purple { border-left-color: #c46ca0; }
.food-library-row.yellow { border-left-color: #e7b850; }
.food-library-row.gray { border-left-color: #aeb8bf; }

@media (max-width: 900px) {
  .diet-meal-modal .diet-food-form {
    grid-template-columns: 1fr;
  }

  .diet-meal-modal .diet-food-left,
  .diet-meal-modal .active-meal-card {
    order: initial;
  }
}

@media (max-width: 700px) {
  .modal-backdrop {
    padding: 8px;
  }

  .file-modal {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
  }

  .file-modal header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .file-modal header > div:first-child {
    grid-column: 1 / -1;
  }

  .viewer-tools {
    grid-column: 1;
    max-width: 100%;
    overflow-x: auto;
    margin-left: 0;
  }

  .file-modal header > .icon-btn:last-child {
    grid-column: 2;
    grid-row: 2;
  }

  .viewer-zoom-stage,
  .viewer-frame,
  .viewer-pdf-stage {
    height: calc(100dvh - 180px);
  }

  .viewer-image {
    max-width: none;
  }
}

/* Dietomenos premium light theme */
:root {
  --bg: #f7faf8;
  --surface: #ffffff;
  --surface-soft: #edf7f3;
  --surface-mint: #dff3ec;
  --ink: #1f2937;
  --muted: #6b7786;
  --line: #e5ece8;
  --primary: #2e7d68;
  --primary-dark: #236451;
  --blue: #4f8fbf;
  --accent: #d99145;
  --danger: #c95757;
  --shadow: 0 18px 46px rgba(31, 66, 54, 0.08);
  --shadow-soft: 0 8px 24px rgba(31, 66, 54, 0.06);
}

body {
  color: var(--ink);
  background: #f7faf8;
  letter-spacing: 0;
}

body,
button,
input,
textarea,
select {
  font-family: Inter, Arial, sans-serif;
}

h1,
h2,
h3,
h4,
p {
  letter-spacing: 0;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.danger-btn,
.icon-btn {
  border-radius: 12px;
}

.primary-btn {
  min-height: 46px;
  padding: 0 20px;
  color: #ffffff;
  background: linear-gradient(135deg, #2e7d68, #256b58);
  box-shadow: 0 10px 24px rgba(46, 125, 104, 0.2);
}

.primary-btn:hover {
  background: linear-gradient(135deg, #256b58, #1f5c4b);
  box-shadow: 0 14px 30px rgba(46, 125, 104, 0.26);
  transform: translateY(-1px);
}

.secondary-btn {
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid #d9e7e1;
  color: #286b59;
  background: #ffffff;
  box-shadow: 0 7px 18px rgba(31, 66, 54, 0.05);
}

.secondary-btn:hover {
  border-color: #bcd8ce;
  color: #205a4b;
  background: #f7fcfa;
}

.ghost-btn {
  color: #5d6876;
  background: transparent;
}

.ghost-btn:hover {
  color: var(--primary-dark);
  background: #edf7f3;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border: 1px solid #e0e9e5;
  color: #426b60;
  background: #ffffff;
  box-shadow: 0 5px 14px rgba(31, 66, 54, 0.05);
}

.icon-btn:hover {
  border-color: #bfd7cf;
  color: var(--primary-dark);
  background: #f4faf7;
  transform: translateY(-1px);
}

.field input,
.field textarea,
.field select,
.compact-select,
.admin-search,
.view-toggle {
  border-color: #e0e9e5;
  border-radius: 12px;
  background: #fbfdfc;
  box-shadow: none;
}

.field input,
.field select {
  min-height: 48px;
}

.field textarea {
  min-height: 112px;
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.compact-select:focus-within,
.admin-search:focus-within {
  border-color: #6aa891;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(46, 125, 104, 0.1);
}

.badge,
.nav-badge,
.status-pill,
.phone-pill {
  border: 0;
  color: #256653;
  background: #e5f5ef;
}

.panel,
.metric-card,
.sidebar,
.admin-toolbar,
.admin-client-card,
.appointment-slot,
.plan-item,
.photo-card,
.file-card,
.questionnaire-card,
.auth-card,
.skinfold-summary-card,
.skinfold-body-card,
.skinfold-bars-card,
.skinfold-progress-card,
.skinfold-result-table-card {
  border-color: rgba(213, 226, 220, 0.85);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.panel,
.questionnaire-card,
.auth-card {
  border-radius: 22px;
}

.metric-card,
.admin-client-card,
.appointment-slot,
.plan-item,
.photo-card,
.file-card {
  border-radius: 18px;
}

.public-site {
  color: #1f2937;
  background: #ffffff;
}

.public-nav {
  min-height: 84px;
  padding: 0 5vw;
  border-bottom: 1px solid rgba(220, 231, 226, 0.8);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 28px rgba(31, 66, 54, 0.04);
}

.public-nav .mark-logo-frame {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
}

.public-nav .brand-name strong {
  color: #286f5d;
  font-size: 18px;
}

.public-nav .brand-name small {
  color: #7b8793;
  font-size: 10px;
}

.public-nav nav {
  gap: 4px;
}

.public-nav a {
  min-height: 42px;
  padding: 0 13px;
  border-radius: 10px;
  color: #586473;
  font-size: 13px;
  font-weight: 700;
}

.public-nav a.active,
.public-nav a:hover {
  color: #256653;
  background: #edf7f3;
  box-shadow: none;
  transform: none;
}

.public-hero {
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
  gap: 64px;
  min-height: calc(100svh - 126px);
  padding: 72px 5vw 84px;
  background:
    linear-gradient(115deg, rgba(247, 250, 248, 0.98), rgba(238, 248, 244, 0.9)),
    #f7faf8;
}

.public-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d8e9e2, transparent);
}

.public-hero-copy {
  max-width: 660px;
}

.public-hero .eyebrow,
.public-section .eyebrow {
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid #d6ebe3;
  border-radius: 999px;
  color: #2e7d68;
  background: #edf8f4;
  font-size: 11px;
  font-weight: 800;
  text-transform: none;
}

.public-hero h1 {
  max-width: 650px;
  color: #142431;
  font-size: 64px;
  line-height: 1.08;
  font-weight: 800;
}

.public-hero h1::first-line {
  color: #142431;
}

.public-hero p {
  max-width: 590px;
  margin-top: 24px;
  color: #65717e;
  font-size: 18px;
  line-height: 1.75;
}

.hero-actions {
  gap: 12px;
  margin-top: 32px;
}

.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 28px;
  color: #66727f;
  font-size: 12px;
}

.hero-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-trust-row span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #76b89f;
}

.hero-trust-row b {
  color: #2e7d68;
}

.hero-media-panel {
  min-height: 590px;
  border: 1px solid #e1ebe7;
  border-radius: 24px;
  overflow: visible;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(41, 83, 68, 0.13);
}

.hero-media-panel::after {
  display: none;
}

.home-dashboard-mockup {
  display: grid;
  gap: 16px;
  min-height: 590px;
  padding: 24px;
}

.mockup-head,
.mockup-chart-card > div,
.mockup-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mockup-head span,
.mockup-chart-card span,
.mockup-kpis span,
.mockup-bottom span,
.mockup-bottom small {
  display: block;
  color: #76828e;
  font-size: 11px;
}

.mockup-head strong {
  display: block;
  margin-top: 4px;
  color: #1f2937;
  font-size: 22px;
}

.mockup-status {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  color: #276a57 !important;
  background: #e7f5ef;
  font-weight: 700;
}

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

.mockup-kpis article,
.mockup-chart-card,
.mockup-bottom article {
  border: 1px solid #e5ece8;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(31, 66, 54, 0.055);
}

.mockup-kpis article {
  padding: 16px;
}

.mockup-kpis strong {
  display: block;
  margin-top: 9px;
  color: #1f2937;
  font-size: 25px;
}

.mockup-kpis strong small {
  color: #66727f;
  font-size: 12px;
}

.mockup-kpis em {
  display: block;
  margin-top: 8px;
  color: #2e7d68;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.mockup-chart-card {
  padding: 18px 20px 10px;
}

.mockup-chart-card > div strong {
  font-size: 14px;
}

.mockup-chart-card svg {
  width: 100%;
  height: 190px;
  margin-top: 10px;
  overflow: visible;
}

.mockup-chart-grid {
  fill: none;
  stroke: #e8efec;
  stroke-width: 1;
}

.mockup-chart-area {
  fill: none;
  stroke: rgba(75, 143, 191, 0.13);
  stroke-width: 24;
  stroke-linecap: round;
}

.mockup-chart-line {
  fill: none;
  stroke: #2e7d68;
  stroke-width: 4;
  stroke-linecap: round;
}

.mockup-chart-card circle {
  fill: #ffffff;
  stroke: #2e7d68;
  stroke-width: 4;
}

.mockup-bottom {
  align-items: stretch;
}

.mockup-bottom article {
  flex: 1;
  padding: 16px;
}

.mockup-bottom strong {
  display: block;
  margin: 6px 0 4px;
  font-size: 14px;
}

.public-section {
  padding: 96px 5vw;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 38px;
}

.section-heading h2,
.home-benefits-section h2 {
  margin: 0;
  color: #172632;
  font-size: 42px;
  line-height: 1.14;
}

.section-heading p,
.home-benefits-section p {
  max-width: 680px;
  margin-top: 16px;
  color: #6a7683;
  font-size: 16px;
  line-height: 1.7;
}

.home-services-section {
  background: #ffffff;
}

.home-service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.home-service-grid article {
  min-height: 250px;
  padding: 26px;
  border: 1px solid #e6edea;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(31, 66, 54, 0.055);
}

.home-service-grid article:hover {
  border-color: #cce2da;
  box-shadow: 0 18px 42px rgba(31, 66, 54, 0.09);
  transform: translateY(-3px);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 28px;
  border-radius: 12px;
  color: #2b705d;
  background: #e7f5ef;
  font-size: 12px;
  font-weight: 800;
}

.service-icon.accent {
  color: #a66323;
  background: #fff0df;
}

.home-service-grid h3 {
  margin: 0 0 12px;
  color: #1f2937;
  font-size: 19px;
}

.home-service-grid p {
  margin: 0;
  color: #6c7885;
  font-size: 14px;
  line-height: 1.7;
}

.home-process-section {
  background: #f1f8f5;
}

.home-process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.home-process-grid article {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
  padding: 26px;
  border-top: 1px solid #d8e8e1;
}

.home-process-grid b {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #ffffff;
  background: #2e7d68;
  box-shadow: 0 8px 20px rgba(46, 125, 104, 0.2);
}

.home-process-grid h3 {
  margin: 3px 0 10px;
  font-size: 19px;
}

.home-process-grid p {
  margin: 0;
  color: #697582;
  font-size: 14px;
  line-height: 1.65;
}

.home-benefits-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  gap: 70px;
  align-items: center;
  background: #ffffff;
}

.benefit-list {
  display: grid;
  gap: 12px;
}

.benefit-list span {
  position: relative;
  min-height: 58px;
  padding: 18px 18px 18px 52px;
  border: 1px solid #e2ebe7;
  border-radius: 14px;
  color: #394552;
  background: #fbfdfc;
  font-size: 14px;
  font-weight: 700;
}

.benefit-list span::before {
  content: "✓";
  position: absolute;
  left: 18px;
  top: 16px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #ffffff;
  background: #2e7d68;
  font-size: 12px;
}

.home-contact-section {
  margin: 0 5vw 72px;
  padding: 38px 42px;
  border: 1px solid #dcebe5;
  border-radius: 22px;
  color: #1f2937;
  background: linear-gradient(120deg, #edf8f4, #f8fbfa);
  box-shadow: var(--shadow-soft);
}

.home-contact-section::after {
  display: none;
}

.home-contact-section h2 {
  color: #172632;
  font-size: 32px;
}

.home-contact-section p {
  color: #66727f;
}

.topbar {
  min-height: 78px;
  padding: 0 26px;
  border-bottom: 1px solid #e4ece8;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 26px rgba(31, 66, 54, 0.045);
}

.topbar .mark-logo-frame {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
}

.topbar .brand-name strong {
  color: #286f5d;
}

.topbar .brand-name small {
  color: #829088;
}

.top-actions {
  gap: 10px;
}

.top-menu {
  gap: 2px;
  padding-right: 14px;
  border-right: 1px solid #e6edea;
}

.top-menu .ghost-btn {
  min-height: 38px;
  padding: 0 11px;
  font-size: 12px;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 8px;
}

.topbar-user strong,
.topbar-user small {
  display: block;
}

.topbar-user strong {
  color: #263440;
  font-size: 13px;
}

.topbar-user small {
  margin-top: 2px;
  color: #85918c;
  font-size: 10px;
}

.topbar-avatar {
  width: 36px;
  height: 36px;
  border: 2px solid #ffffff;
  border-radius: 11px;
  box-shadow: 0 4px 12px rgba(31, 66, 54, 0.12);
}

.app-shell {
  background: #f7faf8;
}

.app-shell .workspace {
  grid-template-columns: 244px minmax(0, 1fr);
  gap: 24px;
  max-width: 1760px;
  margin: 0 auto;
  padding: 24px;
}

.app-shell .sidebar {
  position: sticky;
  top: 102px;
  padding: 16px;
  border: 1px solid #e2ebe7;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 36px rgba(31, 66, 54, 0.06);
}

.profile-mini {
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px;
  border-bottom: 1px solid #edf2ef;
}

.profile-mini .avatar {
  border-radius: 12px;
}

.profile-mini strong {
  color: #23313d;
  font-size: 13px;
}

.profile-mini span {
  margin-top: 3px;
  color: #87928d;
  font-size: 10px;
  overflow-wrap: anywhere;
}

.nav {
  gap: 5px;
}

.nav button {
  min-height: 45px;
  padding: 0 13px;
  border-radius: 11px;
  color: #697582;
  font-size: 13px;
  font-weight: 650;
}

.nav button > span,
.nav button {
  align-items: center;
}

.nav button.active,
.nav button:hover {
  color: #276b58;
  background: #eaf6f1;
  box-shadow: none;
}

.nav button.active {
  font-weight: 800;
}

.nav-submenu {
  gap: 4px;
  margin: 3px 0 8px 16px;
  padding-left: 12px;
  border-left: 1px solid #dbe8e2;
}

.nav-submenu button {
  min-height: 38px;
  font-size: 11px;
}

.app-shell .content {
  gap: 20px;
}

.hero-strip {
  min-height: 170px;
  padding: 30px 32px;
  border: 1px solid #d9e9e2;
  border-radius: 22px;
  color: #1f2937;
  background:
    linear-gradient(118deg, rgba(229, 246, 239, 0.98), rgba(245, 250, 248, 0.95)),
    #edf7f3;
  box-shadow: var(--shadow-soft);
}

.hero-strip h2 {
  color: #183429;
  font-size: 30px;
}

.hero-strip p {
  max-width: 760px;
  color: #617068;
}

.hero-strip .secondary-btn {
  color: #ffffff;
  background: #2e7d68;
}

.stat-row {
  gap: 14px;
}

.metric-card {
  min-height: 132px;
  padding: 22px;
}

.metric-card h3 {
  margin-bottom: 10px;
  color: #21313c;
  font-size: 29px;
}

.metric-card span {
  color: #7b878f;
  font-size: 12px;
}

.panel {
  padding: 24px;
}

.panel-header {
  gap: 18px;
}

.page-title h2,
.admin-heading h2 {
  color: #1d2c37;
  font-size: 30px;
}

.page-title p,
.admin-heading p {
  color: #73808a;
}

.admin-workspace {
  align-items: start;
}

.admin-heading {
  padding: 4px 2px;
}

.admin-toolbar {
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
}

.admin-search {
  min-height: 44px;
}

.admin-client-grid {
  gap: 16px;
}

.admin-client-card {
  min-height: 230px;
  padding: 20px;
}

.admin-client-card:hover,
.admin-client-card.selected {
  border-color: #c2ddd3;
  box-shadow: 0 16px 36px rgba(31, 66, 54, 0.1);
  transform: translateY(-2px);
}

.admin-client-card.selected {
  background: linear-gradient(180deg, #ffffff, #f4fbf8);
}

.client-avatar-lg {
  color: #2d6f5e;
  background: #e7f5ef;
}

.section-tabs,
.tab-row {
  padding: 4px;
  border: 0;
  border-radius: 12px;
  background: #eff5f2;
}

.section-tabs button,
.tab-row button {
  border-radius: 9px;
}

.section-tabs button.active,
.tab-row button.active {
  color: #286b59;
  background: #ffffff;
  box-shadow: 0 5px 14px rgba(31, 66, 54, 0.08);
}

.table {
  overflow: hidden;
  border: 1px solid #e6edea;
  border-radius: 14px;
  background: #ffffff;
}

.table th {
  color: #54636d;
  background: #f3f8f6;
}

.table th,
.table td {
  border-bottom-color: #edf2ef;
}

.choice,
.scale-choice {
  border-color: #e2ebe7;
  border-radius: 12px;
  background: #fbfdfc;
}

.choice:has(input:checked),
.scale-choice:has(input:checked) {
  border-color: #94c2b0;
  background: #ecf8f3;
}

.skinfold-report-panel,
.basic-measurements-card,
.skinfold-admin-card {
  border-color: #e2ebe7;
  background: #ffffff;
}

.skinfold-summary-card,
.skinfold-body-card,
.skinfold-bars-card,
.skinfold-progress-card,
.skinfold-result-table-card {
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(31, 66, 54, 0.055);
}

.file-card,
.plan-item,
.photo-card {
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.file-card:hover,
.plan-item:hover,
.photo-card:hover {
  border-color: #cadfd6;
  box-shadow: 0 14px 34px rgba(31, 66, 54, 0.09);
  transform: translateY(-2px);
}

.modal-backdrop {
  background: rgba(20, 34, 29, 0.46);
  backdrop-filter: blur(10px);
}

.file-modal,
.diet-meal-modal {
  border: 1px solid #dde8e3;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 30px 90px rgba(20, 34, 29, 0.22);
}

@media (max-width: 1180px) {
  .public-hero {
    grid-template-columns: minmax(0, 0.85fr) minmax(440px, 1.15fr);
    gap: 38px;
  }

  .public-hero h1 {
    font-size: 52px;
  }

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

  .top-menu {
    display: none;
  }
}

@media (max-width: 900px) {
  .public-nav {
    min-height: 72px;
    padding: 0 18px;
  }

  .public-hero {
    grid-template-columns: 1fr;
    gap: 34px;
    min-height: auto;
    padding: 54px 22px 72px;
  }

  .public-hero-copy {
    max-width: 720px;
  }

  .public-hero h1 {
    font-size: 46px;
  }

  .hero-media-panel,
  .home-dashboard-mockup {
    min-height: 540px;
  }

  .home-process-grid {
    grid-template-columns: 1fr;
  }

  .home-process-grid article {
    border-top: 1px solid #d8e8e1;
  }

  .home-benefits-section {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .app-shell .workspace {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .app-shell .sidebar {
    position: static;
    top: auto;
    display: none;
    border-radius: 16px;
  }

  .topbar.is-open + .workspace .sidebar {
    display: block;
  }

  .topbar {
    min-height: 70px;
    padding: 0 16px;
  }

  .top-actions {
    position: absolute;
    top: 70px;
    left: 12px;
    right: 12px;
    z-index: 50;
    display: none;
    padding: 12px;
    border: 1px solid #e0e9e5;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(31, 66, 54, 0.14);
  }

  .topbar.is-open .top-actions {
    display: grid;
  }

  .topbar-user {
    justify-content: flex-start;
  }

  .topbar .dashboard-menu-toggle {
    display: flex;
  }

  .hero-strip {
    min-height: 0;
  }

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

@media (max-width: 620px) {
  .public-nav .brand-name small,
  .topbar .brand-name small {
    display: none;
  }

  .public-nav .brand-name strong,
  .topbar .brand-name strong {
    font-size: 15px;
  }

  .public-hero {
    padding: 40px 18px 58px;
  }

  .public-hero .eyebrow {
    max-width: 100%;
    margin-bottom: 16px;
    white-space: normal;
  }

  .public-hero h1 {
    font-size: 36px;
    line-height: 1.12;
  }

  .public-hero p {
    font-size: 16px;
    line-height: 1.65;
  }

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

  .hero-actions .primary-btn,
  .hero-actions .secondary-btn {
    width: 100%;
  }

  .hero-trust-row {
    display: grid;
  }

  .hero-media-panel {
    min-height: 0;
    border-radius: 18px;
  }

  .home-dashboard-mockup {
    min-height: 0;
    gap: 12px;
    padding: 14px;
  }

  .mockup-kpis {
    grid-template-columns: 1fr;
  }

  .mockup-kpis article:nth-child(3) {
    display: none;
  }

  .mockup-chart-card svg {
    height: 145px;
  }

  .mockup-bottom {
    display: grid;
    grid-template-columns: 1fr;
  }

  .public-section {
    padding: 68px 18px;
  }

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

  .section-heading h2,
  .home-benefits-section h2 {
    font-size: 32px;
  }

  .home-service-grid {
    grid-template-columns: 1fr;
  }

  .home-service-grid article {
    min-height: 0;
  }

  .home-process-grid article {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 22px 0;
  }

  .home-contact-section {
    margin: 0 18px 42px;
    padding: 28px 22px;
  }

  .home-contact-section .primary-btn {
    width: 100%;
  }

  .topbar .brand-mark {
    min-width: 0;
  }

  .topbar-user {
    padding: 4px;
  }

  .topbar-user strong {
    font-size: 12px;
  }

  .workspace,
  .app-shell .workspace {
    padding: 12px;
  }

  .app-shell .sidebar {
    margin: 0;
  }

  .content,
  .app-shell .content {
    gap: 14px;
  }

  .hero-strip {
    display: grid;
    gap: 20px;
    padding: 24px 20px;
    border-radius: 18px;
  }

  .hero-strip h2 {
    font-size: 25px;
  }

  .stat-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .metric-card {
    min-height: 0;
    padding: 18px;
  }

  .panel {
    padding: 18px;
    border-radius: 18px;
  }

  .panel-header,
  .admin-heading {
    display: grid;
    grid-template-columns: 1fr;
  }

  .page-title h2,
  .admin-heading h2 {
    font-size: 26px;
  }

  .admin-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .admin-search,
  .compact-select,
  .admin-toolbar .primary-btn {
    width: 100%;
  }

  .admin-client-card {
    min-height: 0;
  }

  .section-tabs {
    overflow-x: auto;
    white-space: nowrap;
  }

  .field input,
  .field select,
  .primary-btn,
  .secondary-btn,
  .ghost-btn {
    min-height: 48px;
  }

  .file-modal,
  .diet-meal-modal {
    border-radius: 16px;
  }
}

/* Reference-faithful dashboard and mobile presentation */
.ui-icon {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
}

.public-nav .mark-logo-frame,
.topbar .mark-logo-frame {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.public-nav .mark-logo,
.topbar .mark-logo {
  width: 50px;
  height: 50px;
  max-width: 50px;
  object-fit: contain;
  object-position: center;
}

.public-nav .brand-mark,
.topbar .brand-mark {
  flex: 0 0 auto;
  min-width: 224px;
  padding: 7px 0;
  overflow: visible;
}

.public-nav .brand-name,
.topbar .brand-name {
  flex: 0 0 auto;
  min-width: 0;
  overflow: visible;
  line-height: 1.15;
}

.public-nav .brand-name strong,
.topbar .brand-name strong {
  line-height: 1.15;
  white-space: nowrap;
}

.public-nav .brand-name small,
.topbar .brand-name small {
  line-height: 1.2;
  white-space: nowrap;
}

.public-nav,
.topbar {
  overflow: visible;
}

.nav button .ui-icon {
  margin-right: 10px;
}

.home-floating-stage {
  position: relative;
  min-height: 600px;
  padding: 0;
  overflow: visible;
  background: transparent;
}

.hero-media-panel:has(.home-floating-stage) {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.floating-health-card {
  position: absolute;
  z-index: 3;
  border: 1px solid rgba(221, 233, 228, 0.95);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 54px rgba(38, 82, 66, 0.13);
}

.floating-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.floating-card-head .ui-icon {
  width: 15px;
  height: 15px;
  color: #66766f;
}

.floating-weight-card {
  top: 50px;
  left: 5%;
  width: 55%;
  min-width: 330px;
  padding: 24px 24px 18px;
}

.floating-weight-card span,
.floating-composition-card > span {
  color: #53635c;
  font-size: 12px;
  font-weight: 750;
}

.floating-weight-card > strong {
  display: block;
  margin-top: 14px;
  color: #45a47f;
  font-size: 34px;
}

.floating-weight-card > strong small {
  font-size: 16px;
}

.floating-weight-card > p {
  margin: 3px 0 0;
  color: #69766f;
  font-size: 12px;
}

.floating-weight-card svg {
  width: 100%;
  height: 185px;
  margin-top: 8px;
  overflow: visible;
}

.floating-weight-card svg polyline {
  fill: none;
  stroke: #50ad88;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.floating-weight-card svg circle {
  fill: #ffffff;
  stroke: #50ad88;
  stroke-width: 3;
}

.floating-grid {
  fill: none;
  stroke: #e9f0ed;
  stroke-width: 1;
}

.floating-chart-dates {
  display: flex;
  justify-content: space-between;
  color: #8a9690;
  font-size: 9px;
}

.floating-composition-card {
  top: 95px;
  right: 0;
  width: 39%;
  padding: 24px 22px;
}

.composition-donut {
  position: relative;
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  margin: 20px auto;
  border-radius: 50%;
  background: conic-gradient(#77bea3 0 31%, #f3ad5c 31% 48%, #dfe8e4 48% 77%, #5d91cb 77% 100%);
}

.composition-donut::after {
  content: "";
  position: absolute;
  width: 94px;
  height: 94px;
  border-radius: 50%;
  background: #ffffff;
}

.composition-donut span {
  position: relative;
  z-index: 1;
  display: grid;
  color: #69766f;
  font-size: 9px;
  text-align: center;
}

.composition-donut b {
  color: #1f2937;
  font-size: 22px;
}

.composition-legend {
  display: grid;
  gap: 8px;
}

.composition-legend span,
.dashboard-chart-legend span,
.macro-legend span {
  position: relative;
  padding-left: 17px;
  color: #64716b;
  font-size: 10px;
}

.composition-legend span::before,
.dashboard-chart-legend span::before,
.macro-legend span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: #77bea3;
}

.composition-legend .gray::before {
  background: #dfe8e4;
}

.composition-legend .blue::before,
.dashboard-chart-legend .blue::before,
.macro-legend .blue::before {
  background: #5d91cb;
}

.dashboard-chart-legend .orange::before,
.macro-legend .orange::before {
  background: #ef9f49;
}

.floating-today-card {
  right: 15%;
  bottom: 36px;
  width: 38%;
  padding: 20px;
}

.floating-today-card > div:not(.floating-card-head) {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
  color: #526059;
  font-size: 10px;
}

.floating-today-card i {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #ffffff;
  background: #73bea1;
  font-size: 10px;
  font-style: normal;
}

.floating-today-card i.blue {
  background: #70a2d6;
}

.floating-today-card i.orange {
  background: #efaa61;
}

.floating-today-card b {
  color: #85918b;
  font-size: 9px;
}

.leaf-cluster {
  position: absolute;
  z-index: 1;
  width: 150px;
  height: 180px;
  opacity: 0.65;
}

.leaf-cluster::before,
.leaf-cluster::after {
  content: "";
  position: absolute;
  width: 42px;
  height: 88px;
  border-radius: 90% 10% 90% 10%;
  background: linear-gradient(145deg, #9cd3bd, #d7eee5);
  transform: rotate(28deg);
}

.leaf-cluster::after {
  left: 54px;
  top: 48px;
  transform: rotate(62deg) scale(0.82);
}

.leaf-one {
  top: 10px;
  right: 25%;
}

.leaf-two {
  left: 13%;
  bottom: -5px;
  transform: rotate(205deg) scale(0.8);
}

.dashboard-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 4px 4px 10px;
}

.dashboard-kicker {
  display: block;
  margin-bottom: 6px;
  color: #7a8781;
  font-size: 11px;
  font-weight: 700;
}

.dashboard-welcome h2 {
  margin: 0;
  color: #1d2a35;
  font-size: 30px;
}

.dashboard-welcome h2 span {
  font-size: 22px;
}

.dashboard-welcome p {
  margin: 8px 0 0;
  color: #77837d;
  font-size: 13px;
}

.dashboard-date {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #e2ebe7;
  border-radius: 12px;
  color: #5c6963;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(31, 66, 54, 0.045);
  font-size: 11px;
  font-weight: 700;
}

.dashboard-date .ui-icon {
  width: 16px;
  height: 16px;
}

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

.dashboard-kpi-card,
.dashboard-chart-card,
.dashboard-mini-card,
.dashboard-list-card,
.dashboard-donut-card,
.dashboard-actions-card {
  border: 1px solid #e4ece8;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 26px rgba(31, 66, 54, 0.05);
}

.dashboard-kpi-card {
  min-height: 142px;
  padding: 20px;
}

.dashboard-kpi-card > span {
  display: block;
  color: #74817b;
  font-size: 11px;
}

.dashboard-kpi-card > strong {
  display: block;
  margin-top: 12px;
  color: #1d2a35;
  font-size: 28px;
}

.dashboard-kpi-card > em {
  display: block;
  margin-top: 10px;
  color: #2e9a71;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.dashboard-kpi-card.orange > em {
  color: #db7f32;
}

.dashboard-kpi-card.blue > em {
  color: #4f8fbf;
}

.dashboard-kpi-card > small {
  display: block;
  margin-top: 5px;
  color: #9aa39f;
  font-size: 9px;
}

.bmi-badge {
  display: inline-flex !important;
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  color: #27735d !important;
  background: #e9f6f1;
}

.dashboard-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 14px;
}

.dashboard-chart-card,
.dashboard-list-card,
.dashboard-donut-card,
.dashboard-actions-card {
  padding: 20px;
}

.dashboard-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.dashboard-card-head strong {
  display: block;
  color: #26343f;
  font-size: 13px;
}

.dashboard-card-head span {
  display: block;
  margin-top: 4px;
  color: #8a9590;
  font-size: 9px;
}

.dashboard-period {
  width: fit-content;
  margin: 0 !important;
  padding: 7px 10px;
  border: 1px solid #e3ebe7;
  border-radius: 9px;
  color: #6e7b75 !important;
  background: #fbfdfc;
}

.dashboard-chart-legend {
  display: flex;
  gap: 20px;
  margin-top: 22px;
}

.dashboard-measurement-chart {
  width: 100%;
  height: 245px;
  margin-top: 10px;
  overflow: visible;
}

.dashboard-chart-plot {
  position: relative;
  height: 245px;
  margin-top: 10px;
  padding: 0 38px;
}

.dashboard-chart-plot .dashboard-measurement-chart {
  position: absolute;
  inset: 0 38px;
  height: 100%;
  width: calc(100% - 76px);
  margin-top: 0;
}

.dashboard-chart-data-layer {
  position: absolute;
  inset: 0 38px;
}

.dashboard-chart-axis {
  position: absolute;
  inset-block: 0;
  width: 34px;
  color: #718078;
  font-size: 10px;
  font-weight: 800;
  pointer-events: none;
}

.dashboard-chart-axis.left {
  left: 0;
  text-align: right;
}

.dashboard-chart-axis.right {
  right: 0;
  text-align: left;
}

.dashboard-chart-axis b {
  position: absolute;
  top: 2px;
  color: #43554d;
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.dashboard-chart-axis.left b {
  right: 0;
}

.dashboard-chart-axis.right b {
  left: 0;
}

.dashboard-chart-axis span {
  position: absolute;
  transform: translateY(-50%);
}

.dashboard-chart-axis.left span {
  right: 0;
}

.dashboard-chart-axis.right span {
  left: 0;
}

.dashboard-measurement-chart .grid {
  fill: none;
  stroke: #ebf0ee;
  stroke-width: 0.4;
}

.dashboard-measurement-chart polyline {
  fill: none;
  stroke-width: 1.3;
  vector-effect: non-scaling-stroke;
}

.dashboard-measurement-chart circle {
  stroke-width: 0.7;
  vector-effect: non-scaling-stroke;
}

.dashboard-measurement-chart .green {
  stroke: #48a47e;
  fill: #ffffff;
}

.dashboard-measurement-chart .blue {
  stroke: #5d91cb;
  fill: #ffffff;
}

.dashboard-measurement-chart .orange {
  stroke: #ef9f49;
  fill: #ffffff;
}

.dashboard-chart-dot {
  position: absolute;
  z-index: 2;
  width: 9px;
  height: 9px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  box-shadow: 0 0 0 1px currentColor, 0 6px 14px rgba(31, 66, 54, 0.16);
  color: #48a47e;
  background: currentColor;
  cursor: default;
  transform: translate(-50%, -50%);
}

.dashboard-chart-dot.blue {
  color: #5d91cb;
}

.dashboard-chart-dot.orange {
  color: #ef9f49;
}

.dashboard-chart-dot > span {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  min-width: max-content;
  padding: 7px 9px;
  border-radius: 9px;
  color: #ffffff;
  background: #26343f;
  box-shadow: 0 10px 24px rgba(31, 66, 54, 0.18);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity .14s ease, transform .14s ease;
}

.dashboard-chart-dot > span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  border: 5px solid transparent;
  border-top-color: #26343f;
  transform: translateX(-50%);
}

.dashboard-chart-dot:hover > span,
.dashboard-chart-dot:focus > span {
  opacity: 1;
  transform: translate(-50%, 0);
}

.dashboard-chart-labels {
  display: flex;
  justify-content: space-between;
  padding: 0 4%;
  color: #89958f;
  font-size: 9px;
}

.dashboard-chart-empty {
  display: grid;
  min-height: 240px;
  place-items: center;
  color: #8c9792;
  font-size: 12px;
}

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

.dashboard-mini-card {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.dashboard-mini-card .ui-icon {
  width: 20px;
  height: 20px;
  color: #4f8fbf;
}

.dashboard-mini-card b {
  color: #293741;
  font-size: 12px;
}

.dashboard-mini-card > span {
  color: #84908a;
  font-size: 10px;
}

.dashboard-mini-card .primary-btn,
.dashboard-mini-card .secondary-btn {
  min-height: 38px;
  margin-top: 7px;
  font-size: 10px;
}

.dashboard-lower-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.9fr;
  gap: 14px;
}

.dashboard-card-head button {
  padding: 0;
  color: #2e7d68;
  background: transparent;
  font-size: 9px;
  font-weight: 800;
}

.dashboard-measurement-list {
  display: grid;
  gap: 4px;
  margin-top: 15px;
}

.dashboard-measurement-list > div {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto 54px;
  gap: 9px;
  align-items: center;
  min-height: 38px;
  color: #68756f;
  font-size: 10px;
}

.dashboard-measurement-list .ui-icon {
  width: 18px;
  height: 18px;
  padding: 3px;
  border-radius: 50%;
  color: #558f7c;
  background: #eef7f3;
}

.dashboard-measurement-list strong {
  color: #2a3741;
  font-size: 11px;
}

.dashboard-measurement-list em {
  color: #2f9a71;
  font-size: 9px;
  font-style: normal;
  text-align: right;
}

.macro-donut-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
}

.macro-donut {
  position: relative;
  display: grid;
  place-items: center;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: conic-gradient(
    #72b99e 0 var(--protein-share, 0%),
    #5d91cb var(--protein-share, 0%) calc(var(--protein-share, 0%) + var(--carbs-share, 0%)),
    #ef9f49 calc(var(--protein-share, 0%) + var(--carbs-share, 0%)) 100%
  );
}

.macro-donut::after {
  content: "";
  position: absolute;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #ffffff;
}

.macro-donut span {
  position: relative;
  z-index: 1;
  display: grid;
  color: #89938e;
  font-size: 9px;
  text-align: center;
}

.macro-donut b {
  color: #24323d;
  font-size: 18px;
}

.macro-legend {
  display: grid;
  gap: 12px;
}

.macro-legend b {
  display: block;
  margin-top: 2px;
  color: #334139;
  font-size: 9px;
}

.dashboard-quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.dashboard-quick-actions button {
  display: grid;
  min-height: 80px;
  place-items: center;
  gap: 7px;
  padding: 12px;
  border: 1px solid #e5ece8;
  border-radius: 12px;
  color: #49564f;
  background: #ffffff;
  font-size: 9px;
  font-weight: 700;
}

.dashboard-quick-actions button:hover {
  border-color: #cce0d8;
  background: #f6fbf9;
}

.dashboard-quick-actions .ui-icon {
  width: 28px;
  height: 28px;
  padding: 6px;
  border-radius: 50%;
  color: #2e7d68;
  background: #e7f5ef;
}

.mobile-bottom-nav {
  display: none;
}

.mobile-nav-shell {
  display: none;
}

.mobile-nav-submenu {
  display: none;
}

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

.recipe-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid #e3ece8;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(31, 66, 54, 0.055);
}

.recipe-card-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: #2e7d68;
  background: #e8f5f0;
}

.recipe-card strong,
.recipe-card span {
  display: block;
}

.recipe-card > div > span {
  margin-top: 4px;
  color: #84908a;
  font-size: 11px;
}

.recipe-macros {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.recipe-macros span {
  padding: 9px;
  border-radius: 10px;
  color: #68756f;
  background: #f4f8f6;
  font-size: 9px;
}

.recipe-macros b {
  color: #26343f;
  font-size: 12px;
}

.recipe-card details {
  border-top: 1px solid #edf2ef;
  padding-top: 12px;
}

.recipe-card summary {
  color: #2e7d68;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.recipe-card ul {
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.recipe-card li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #68756f;
  font-size: 10px;
}

.dashboard-chart-empty.compact {
  min-height: 130px;
}

.body-map {
  background: linear-gradient(180deg, #fbfefd, #f0f8f5);
}

.body-map svg {
  inset: 12px 23% 12px;
  width: 54%;
  filter: drop-shadow(0 14px 20px rgba(46, 125, 104, 0.08));
}

.body-shadow {
  fill: rgba(46, 125, 104, 0.08);
}

.body-shape {
  stroke: #6eb194;
}

.body-limb,
.body-detail {
  stroke: #77b99e;
}

.body-site-callout {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #527067;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.body-site-callout i {
  width: 8px;
  height: 8px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #b8c8c2;
  box-shadow: 0 0 0 1px #a9c3b8;
}

.body-site-callout.has-value i {
  background: #42a47d;
  box-shadow: 0 0 0 1px #42a47d, 0 4px 10px rgba(46, 125, 104, 0.2);
}

.body-site-triceps { left: 70%; top: 30%; }
.body-site-subscapular { left: 17%; top: 29%; }
.body-site-biceps { left: 17%; top: 37%; }
.body-site-iliacCrest { left: 68%; top: 50%; }
.body-site-suprailiac { left: 16%; top: 51%; }
.body-site-supraspinale { left: 15%; top: 59%; }
.body-site-abdominal { left: 68%; top: 44%; }
.body-site-thigh { left: 66%; top: 70%; }
.body-site-calf { left: 67%; top: 86%; }
.body-site-chest { left: 68%; top: 36%; }
.body-site-midaxillary { left: 69%; top: 42%; }

/* Final ISAK skinfold board overrides */
.skinfold-isak-entry-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 28px;
  align-items: start;
}

.skinfold-isak-fields-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 16px 28px;
}

.skinfold-mm-field .unit-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 66px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
}

.skinfold-mm-field .unit-input input {
  min-height: 46px;
  border: 0;
  border-radius: 0;
  color: #3d5da9;
  font-weight: 800;
  box-shadow: none;
}

.skinfold-mm-field .unit-input span {
  display: grid;
  place-items: center;
  border-left: 1px solid var(--line);
  color: #24364d;
  background: #edf1f6;
  font-weight: 800;
}

.isak-board-card {
  position: sticky;
  top: 18px;
  padding: 18px;
  background: #ffffff;
}

.isak-board-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.isak-board-badge {
  min-width: 92px;
  padding: 9px 11px;
  border: 1px solid #dbe6ec;
  border-radius: 14px;
  text-align: center;
  background: #f8fafc;
}

.isak-board-badge b {
  display: block;
  color: #3d5da9;
  font-size: 18px;
}

.isak-board-badge span {
  margin: 2px 0 0;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.isak-body-map {
  min-height: 520px;
  background: #ffffff;
}

.isak-body-map svg {
  inset: 14px 26% 34px;
  width: 48%;
  height: calc(100% - 46px);
}

.isak-body-map .body-shape {
  stroke: #d2d9e3;
  stroke-width: 1.6;
}

.isak-human-svg .isak-center-line {
  stroke-dasharray: 6 5;
  stroke-width: 1.4;
  opacity: .65;
}

.isak-body-map .body-site-callout {
  display: grid;
  gap: 2px;
  max-width: 190px;
  color: #293343;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}

.isak-body-map .body-site-callout::before {
  content: "";
  position: absolute;
  top: 10px;
  width: 76px;
  height: 1px;
  background: #d9e2ee;
}

.isak-body-map .body-site-callout i {
  position: absolute;
  top: 7px;
  width: 11px;
  height: 11px;
  border: 1px solid #3d5da9;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(61, 93, 169, 0.08);
}

.isak-body-map .body-site-callout.has-value i {
  background: #3d5da9;
}

.isak-body-map .body-site-callout b {
  font: inherit;
}

.isak-body-map .body-site-callout em {
  display: none;
}

.isak-body-map .body-site-triceps,
.isak-body-map .body-site-subscapular,
.isak-body-map .body-site-calf {
  left: 74%;
  right: auto;
  text-align: left;
}

.isak-body-map .body-site-triceps::before,
.isak-body-map .body-site-subscapular::before,
.isak-body-map .body-site-calf::before {
  right: calc(100% + 8px);
  left: auto;
}

.isak-body-map .body-site-triceps i,
.isak-body-map .body-site-subscapular i,
.isak-body-map .body-site-calf i {
  right: calc(100% + 78px);
  left: auto;
}

.isak-body-map .body-site-biceps,
.isak-body-map .body-site-abdominal,
.isak-body-map .body-site-iliacCrest,
.isak-body-map .body-site-suprailiac,
.isak-body-map .body-site-thigh {
  right: 72%;
  left: auto;
  text-align: right;
}

.isak-body-map .body-site-biceps::before,
.isak-body-map .body-site-abdominal::before,
.isak-body-map .body-site-iliacCrest::before,
.isak-body-map .body-site-suprailiac::before,
.isak-body-map .body-site-thigh::before {
  left: calc(100% + 8px);
  right: auto;
}

.isak-body-map .body-site-biceps i,
.isak-body-map .body-site-abdominal i,
.isak-body-map .body-site-iliacCrest i,
.isak-body-map .body-site-suprailiac i,
.isak-body-map .body-site-thigh i {
  left: calc(100% + 78px);
  right: auto;
}

.isak-body-map .body-site-subscapular { top: 19%; }
.isak-body-map .body-site-triceps { top: 31%; }
.isak-body-map .body-site-biceps { top: 38%; }
.isak-body-map .body-site-abdominal { top: 49%; }
.isak-body-map .body-site-iliacCrest { top: 58%; }
.isak-body-map .body-site-suprailiac { top: 66%; }
.isak-body-map .body-site-thigh { top: 75%; }
.isak-body-map .body-site-calf { top: 86%; }

.isak-side-label {
  position: absolute;
  bottom: 16px;
  color: #aab4c2;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}

.isak-side-label.front { left: 43%; }
.isak-side-label.back { right: 29%; }

/* Original Dietomenos ISAK SVG body map module.
   Kept near the end of the cascade to override the older inline-SVG callout map safely. */
.isak-body-map {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  min-height: 0;
  padding: 18px;
  background: #ffffff;
  overflow: visible;
}

.isak-body-view {
  position: relative;
  min-width: 0;
  width: min(100%, 760px);
  margin: 0 auto;
  border: 1px solid #edf2f4;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 24%, rgba(61, 93, 169, .05), transparent 34%),
    linear-gradient(180deg, #ffffff, #fbfdfc);
  overflow: visible;
}

.isak-body-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.isak-svg-bg {
  fill: #ffffff;
}

.isak-svg-body {
  filter: drop-shadow(0 18px 22px rgba(31, 66, 54, .08));
}

.isak-svg-body-single {
  opacity: .98;
}

.isak-svg-line {
  stroke: #d7e1eb;
  stroke-width: 2;
  stroke-linecap: round;
}

.isak-svg-point {
  fill: #ffffff;
  stroke: #3d5da9;
  stroke-width: 3;
  filter: drop-shadow(0 8px 11px rgba(61, 93, 169, .18));
}

.isak-svg-callout.has-value .isak-svg-point {
  fill: #3d5da9;
}

.isak-svg-label {
  fill: #273343;
  font-family: Inter, Arial, sans-serif;
  font-size: 17px;
  font-weight: 850;
  line-height: 1.15;
}

.isak-svg-label-en {
  fill: #64748b;
  font-size: 15px;
  font-weight: 700;
}

.isak-svg-label-value {
  fill: #3d5da9;
  font-size: 18px;
  font-weight: 900;
}

.isak-svg-view-label {
  fill: #9aa7b5;
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 2px;
}

@media (max-width: 1180px) {
  .dashboard-main-grid {
    grid-template-columns: 1fr 220px;
  }

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

  .dashboard-actions-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .dashboard-kpi-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

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

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

  .dashboard-actions-card {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .public-nav .mark-logo-frame,
  .topbar .mark-logo-frame {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .public-nav .mark-logo,
  .topbar .mark-logo {
    width: 43px;
    height: 43px;
    max-width: 43px;
  }

  .public-nav .brand-mark,
  .topbar .brand-mark {
    min-width: 0;
    gap: 8px;
    padding: 5px 0;
  }

  .app-shell {
    padding-bottom: 78px;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 80;
  }

  .topbar .dashboard-menu-toggle {
    display: flex;
    margin-left: auto;
  }

  .topbar .brand-name small {
    display: block;
    margin-top: 3px;
    font-size: 7px;
    letter-spacing: 0.08em;
  }

  .topbar .brand-name strong {
    font-size: 14px;
  }

  .topbar .top-actions {
    top: 70px;
  }

  .topbar.is-open .top-menu {
    display: grid;
    width: 100%;
    padding: 0 0 10px;
    border-right: 0;
    border-bottom: 1px solid #e7eeea;
  }

  .topbar.is-open .top-menu .ghost-btn {
    width: 100%;
    justify-content: flex-start;
  }

  .topbar.is-open + .workspace .sidebar {
    display: none;
  }

  .public-nav .brand-name small {
    display: block;
    font-size: 7px;
    letter-spacing: 0.08em;
  }

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

  .dashboard-welcome h2 {
    font-size: 24px;
  }

  .dashboard-date {
    display: none;
  }

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

  .dashboard-kpi-card {
    min-height: 118px;
    padding: 16px;
  }

  .dashboard-kpi-card > strong {
    font-size: 23px;
  }

  .dashboard-kpi-card > small {
    display: none;
  }

  .dashboard-chart-card,
  .dashboard-list-card,
  .dashboard-donut-card,
  .dashboard-actions-card {
    padding: 16px;
  }

  .dashboard-chart-legend {
    flex-wrap: wrap;
    gap: 8px 15px;
  }

  .dashboard-measurement-chart {
    height: 190px;
  }

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

  .dashboard-mini-card {
    padding: 15px;
  }

  .dashboard-mini-card .primary-btn,
  .dashboard-mini-card .secondary-btn {
    width: 100%;
    padding: 0 8px;
  }

  .macro-donut-wrap {
    justify-content: flex-start;
  }

  .mobile-nav-shell {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: 8px;
    z-index: 100;
    display: block;
  }

  .mobile-bottom-nav {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: 62px;
    padding: 6px;
    border: 1px solid rgba(217, 230, 224, 0.95);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 45px rgba(31, 66, 54, 0.18);
    backdrop-filter: blur(16px);
  }

  .mobile-nav-submenu {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 10px);
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 10px;
    border: 1px solid rgba(217, 230, 224, 0.98);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 20px 52px rgba(31, 66, 54, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.97);
    transform-origin: bottom center;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    backdrop-filter: blur(18px);
  }

  .mobile-nav-submenu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }

  .mobile-nav-submenu button {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 11px;
    color: #52615a;
    background: #f7faf8;
    font-size: 12px;
    font-weight: 750;
    text-align: left;
  }

  .mobile-nav-submenu button:hover,
  .mobile-nav-submenu button:active {
    color: #276b58;
    background: #eaf6f1;
  }

  .mobile-nav-submenu .ui-icon {
    width: 20px;
    height: 20px;
    color: #2e7d68;
  }

  .mobile-bottom-nav button {
    position: relative;
    display: grid;
    place-items: center;
    gap: 3px;
    min-width: 0;
    border-radius: 12px;
    color: #85918b;
    background: transparent;
    font-size: 8px;
    font-weight: 700;
  }

  .mobile-bottom-nav button.active {
    color: #2e7d68;
    background: #eaf6f1;
  }

  .mobile-bottom-nav .ui-icon {
    width: 20px;
    height: 20px;
  }

  .mobile-bottom-nav em {
    position: absolute;
    top: 2px;
    right: 12px;
    display: grid;
    width: 16px;
    height: 16px;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: #d99145;
    font-size: 8px;
    font-style: normal;
  }

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

  .home-floating-stage {
    min-height: 535px;
  }

  .floating-weight-card {
    top: 10px;
    left: 2%;
    width: 70%;
    min-width: 0;
    padding: 16px;
  }

  .floating-weight-card svg {
    height: 145px;
  }

  .floating-composition-card {
    top: 58px;
    right: 0;
    width: 43%;
    padding: 15px;
  }

  .composition-donut {
    width: 105px;
    height: 105px;
    margin: 14px auto;
  }

  .composition-donut::after {
    width: 66px;
    height: 66px;
  }

  .composition-donut b {
    font-size: 16px;
  }

  .floating-today-card {
    right: 8%;
    bottom: 12px;
    width: 58%;
    padding: 15px;
  }

  .leaf-cluster {
    transform: scale(0.65);
  }

  .body-map {
    min-height: 330px;
  }

  .body-map svg {
    inset: 15px 20% 15px;
    width: 60%;
  }

  .body-site-callout {
    font-size: 8px;
  }

  .body-site-triceps { left: 69%; }
  .body-site-subscapular,
  .body-site-biceps,
  .body-site-suprailiac,
  .body-site-supraspinale { left: 4%; }
}

body .auth-modal-backdrop {
  place-items: center;
  overflow-y: auto;
  padding: clamp(20px, 4vh, 44px) 18px;
  background:
    radial-gradient(circle at 12% 22%, rgba(143, 207, 184, 0.2), transparent 28%),
    radial-gradient(circle at 88% 82%, rgba(79, 143, 191, 0.12), transparent 26%),
    rgba(241, 248, 245, 0.78);
  backdrop-filter: blur(14px);
}

body .auth-modal {
  width: min(640px, 100%);
  max-height: calc(100svh - 40px);
  overflow: auto;
  border: 1px solid rgba(218, 232, 226, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 32px 90px rgba(29, 67, 55, 0.18);
}

.body-map .isak-body-svg {
  inset: auto;
  width: 100%;
  height: auto;
}

.isak-body-map {
  overflow: visible;
}

@media (max-width: 900px) {
  .topbar.is-open .dashboard-menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .topbar.is-open .dashboard-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .topbar.is-open .dashboard-menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .topbar.is-open .top-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    animation: dashboardMenuIn 0.2s ease both;
  }

  .topbar.is-open .top-menu {
    display: grid;
    grid-column: 1 / -1;
    width: 100%;
    gap: 6px;
    padding: 0 0 10px;
    border-right: 0;
    border-bottom: 1px solid #e7eeea;
  }

  .topbar.is-open .top-menu .ghost-btn {
    width: 100%;
    min-height: 46px;
    justify-content: flex-start;
    border-radius: 10px;
    padding: 0 14px;
  }

  .topbar.is-open .topbar-user {
    min-width: 0;
  }

  .topbar.is-open [data-logout] {
    align-self: center;
    min-height: 42px;
  }
}

@keyframes dashboardMenuIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 620px) {
  body .auth-modal-backdrop {
    place-items: start center;
    padding: 10px;
  }

  body .auth-modal {
    max-height: calc(100svh - 20px);
    border-radius: 20px;
  }
}

/* Compact auth controls and dashboard mobile navigation */
body .auth-modal {
  width: min(560px, 100%);
}

body .auth-modal .public-auth-section.auth-experience {
  padding: clamp(28px, 4vw, 40px);
}

body .auth-modal .auth-heading {
  margin-bottom: 22px;
}

body .auth-modal .auth-heading h2 {
  margin-top: 14px;
  font-size: clamp(27px, 4vw, 36px);
}

body .auth-modal .auth-tabs {
  margin-bottom: 23px;
}

body .auth-modal .auth-tabs button {
  min-height: 44px;
  font-size: 14px;
}

body .auth-modal .auth-form {
  gap: 14px;
}

body .auth-modal .auth-input-shell,
body .auth-modal .password-field {
  min-height: 50px;
  border-radius: 12px;
}

body .auth-modal .auth-input-shell input,
body .auth-modal .password-field input,
body .auth-modal .field input {
  min-height: 48px;
  border: 0 !important;
  border-radius: 0;
  padding: 10px 12px;
  background: transparent !important;
  box-shadow: none !important;
  outline: 0;
}

body .auth-modal .auth-input-shell > .ui-icon,
body .auth-modal .password-field > .ui-icon {
  width: 18px;
  height: 18px;
  margin-left: 14px;
}

body .auth-modal .auth-name-inputs {
  gap: 8px;
}

body .auth-modal .auth-submit {
  min-height: 50px;
  border-radius: 12px;
  font-size: 14px;
}

body .auth-modal .auth-footer-switch {
  margin-top: 19px;
  padding-top: 18px;
  font-size: 13px;
}

@media (max-width: 900px) {
  .app-shell > .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    height: auto;
    min-height: 68px;
    padding: 8px 16px;
  }

  .app-shell > .topbar .top-actions {
    position: static;
    inset: auto;
    z-index: auto;
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    margin: 6px 0 2px;
    padding: 8px 0 4px;
    border: 0;
    border-top: 1px solid #e7eeea;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .app-shell > .topbar.is-open .top-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
  }

  .app-shell > .topbar.is-open .top-menu {
    grid-column: 1 / -1;
    gap: 3px;
    padding: 0 0 8px;
  }

  .app-shell > .topbar.is-open .top-menu .ghost-btn {
    min-height: 40px;
    border-radius: 9px;
    padding: 0 12px;
    font-size: 13px;
  }

  .app-shell > .topbar.is-open .top-menu .ghost-btn:first-child {
    color: #2e7d68;
    background: #edf7f3;
  }

  .app-shell > .topbar.is-open .topbar-user {
    gap: 8px;
    padding: 3px 0;
  }

  .app-shell > .topbar.is-open .topbar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .app-shell > .topbar.is-open .topbar-user strong {
    font-size: 12px;
  }

  .app-shell > .topbar.is-open .topbar-user small {
    font-size: 9px;
  }

  .app-shell > .topbar.is-open [data-logout] {
    min-height: 38px;
    padding: 0 10px;
    font-size: 12px;
  }
}

@media (max-width: 620px) {
  body .auth-modal {
    width: 100%;
  }

  body .auth-modal .public-auth-section.auth-experience {
    padding: 24px 18px 21px;
  }

  body .auth-modal .auth-heading {
    margin-bottom: 18px;
  }

  body .auth-modal .auth-heading h2 {
    max-width: 270px;
    margin-top: 12px;
    font-size: 25px;
  }

  body .auth-modal .auth-badge {
    min-height: 31px;
    padding: 6px 10px;
    font-size: 10px;
  }

  body .auth-modal .auth-tabs {
    margin-bottom: 19px;
  }

  body .auth-modal .auth-form {
    gap: 12px;
  }

  body .auth-modal .auth-input-shell,
  body .auth-modal .password-field {
    min-height: 48px;
  }

  body .auth-modal .auth-name-inputs {
    grid-template-columns: 1fr 1fr;
  }

  .app-shell > .topbar {
    min-height: 64px;
    padding: 6px 12px;
  }

  .app-shell > .topbar .dashboard-menu-toggle {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .app-shell > .topbar.is-open .top-actions {
    margin-top: 4px;
  }

  .app-shell .workspace {
    padding: 10px;
  }

  .dashboard-welcome h2 {
    font-size: 21px;
  }

  .dashboard-kpi-card {
    min-height: 104px;
    padding: 13px;
  }

  .dashboard-kpi-card > strong {
    margin-top: 8px;
    font-size: 20px;
  }

  .dashboard-chart-card,
  .dashboard-list-card,
  .dashboard-donut-card,
  .dashboard-actions-card {
    padding: 13px;
  }

  .dashboard-measurement-chart {
    height: 165px;
  }

  .mobile-nav-shell {
    left: 6px;
    right: 6px;
    bottom: 6px;
  }

  .mobile-bottom-nav {
    min-height: 56px;
    padding: 5px;
    border-radius: 16px;
  }

  .mobile-bottom-nav button {
    border-radius: 10px;
    font-size: 7px;
  }

  .mobile-bottom-nav .ui-icon {
    width: 18px;
    height: 18px;
  }
}

/* Consistent page ending and dashboard sidebar alignment */
.public-site {
  padding-bottom: 0;
}

.public-site > .page-section,
.public-site > .home-contact-section {
  margin-bottom: 28px;
}

.public-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 58px;
  padding: 14px 5vw;
  border-top: 1px solid #dfeae5;
  color: #68766f;
  background: #edf5f2;
}

.public-footer span {
  color: #2e7562;
  font-size: 14px;
  font-weight: 800;
}

.public-footer small {
  font-size: 11px;
}

.app-shell .workspace,
.app-shell .admin-workspace {
  padding-top: 20px;
}

.app-shell .sidebar {
  position: static;
  top: auto;
  align-self: start;
  margin-top: 0;
}

@media (max-width: 900px) {
  .public-site {
    padding-bottom: 0;
  }

  .isak-body-map {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 12px;
  }

  .isak-body-view {
    min-height: 0;
  }

  .isak-svg-label {
    font-size: 14px;
  }

  .isak-svg-label-en {
    font-size: 12px;
  }

  .isak-svg-label-value {
    font-size: 14px;
  }

  .isak-svg-view-label {
    font-size: 13px;
  }

  .app-shell .workspace,
  .app-shell .admin-workspace {
    padding-top: 14px;
  }
}

@media (max-width: 620px) {
  .public-site {
    padding-bottom: 0;
  }

  .public-site > .page-section,
  .public-site > .home-contact-section {
    margin-bottom: 18px;
  }

  .public-footer {
    display: grid;
    justify-items: center;
    min-height: 64px;
    padding: 13px 18px;
    text-align: center;
  }

  .app-shell .workspace,
  .app-shell .admin-workspace {
    padding-top: 12px;
  }
}
