/**
 * gZone desktop workspace — light main shell (≥900px).
 * Scoped to Personal hub, subpages (e.g. weight), settings, account; mobile uses base app.css.
 */
@media (min-width: 900px) {
  /* Global shell, header, main, typography: design-tokens.css */

  body[data-route="today"],
  body[data-route="dashboard"],
  body[data-route="food"],
  body[data-route="activity"],
  body[data-route="admin"],
  body[data-route="profile"],
  body[data-route="profile-personal"],
  body[data-route="profile-weight"],
  body[data-route="profile-bmi"],
  body[data-route="profile-goals"],
  body[data-route="nutrition"],
  body[data-route="settings"],
  body[data-route="account"],
  body[data-route="account-delete"] {
    --ws-input-bg: var(--gz-bg-card);
    --ws-accent-soft: rgba(0, 135, 90, 0.12);
    --ws-warning: #ea580c;
    --ws-danger: #dc2626;
    --ws-success: var(--gz-brand-green);
    --ws-shadow: 0 2px 4px rgba(15, 23, 42, 0.07), 0 12px 36px rgba(15, 23, 42, 0.09);
    --ws-radius: 12px;
  }

  /* —— Personal dashboard —— */
  body[data-route="profile"] .personal-command {
    align-items: stretch;
    width: 100%;
  }

  body[data-route="profile"] .personal-command-head {
    text-align: left;
    max-width: none;
    margin-bottom: 1.75rem;
  }

  body[data-route="profile"] .personal-eyebrow {
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    color: var(--ws-accent);
  }

  body[data-route="profile"] .personal-command-head h1::after {
    content: "";
    display: block;
    width: 2.75rem;
    height: 3px;
    margin-top: 0.45rem;
    border-radius: 2px;
    background: var(--ws-accent);
  }

  body[data-route="profile"] .personal-command-lead,
  body[data-route="profile"] .muted.small {
    color: var(--ws-text-secondary);
    text-align: left;
    max-width: 42rem;
  }

  body[data-route="profile"] .personal-modules {
    max-width: none;
    justify-content: stretch;
    justify-items: stretch;
    gap: 1.25rem;
  }

  body[data-route="profile"] .personal-module {
    width: 100%;
    max-width: none;
    min-height: 17.5rem;
    align-items: stretch;
    text-align: left;
    background: var(--ws-card);
    border: 1px solid var(--ws-border);
    border-radius: var(--ws-radius);
    box-shadow: var(--ws-shadow);
    color: var(--ws-text);
    padding: 1.35rem 1.5rem 1.25rem;
    border-top: 3px solid var(--ws-accent-soft);
  }

  body[data-route="profile"] .personal-module:hover {
    transform: translateY(-2px);
    border-color: rgba(5, 150, 105, 0.35);
    border-top-color: var(--ws-accent);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12);
  }

  body[data-route="profile"] .personal-module-num {
    color: var(--ws-text-secondary);
    font-size: 0.72rem;
    margin-bottom: 0.35rem;
  }

  body[data-route="profile"] .personal-module-title {
    text-align: left;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ws-text);
    margin-bottom: 0.75rem;
    padding: 0;
  }

  body[data-route="profile"] .personal-module-stats li {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    text-align: left;
    border-bottom-color: var(--ws-border);
    padding: 0.45rem 0;
    font-size: 0.95rem;
  }

  body[data-route="profile"] .personal-module-stats li span {
    color: var(--ws-text-secondary);
    font-size: 0.88rem;
  }

  body[data-route="profile"] .personal-module-stats li strong {
    color: var(--ws-text);
    font-size: 1.05rem;
    font-weight: 650;
    text-align: right;
    font-variant-numeric: tabular-nums;
  }

  body[data-route="profile"] .personal-module-cta {
    text-align: left;
    color: var(--ws-accent);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    padding-top: 0.85rem;
  }

  body[data-route="profile"] .personal-module--weight {
    background: var(--ws-card);
    border: 1px solid rgba(249, 115, 22, 0.45);
    box-shadow: var(--ws-shadow), inset 4px 0 0 var(--ws-warning);
  }

  body[data-route="profile"] .personal-module--weight:hover {
    border-color: rgba(249, 115, 22, 0.65);
  }

  body[data-route="profile"] .personal-module--weight .personal-module-num {
    color: var(--ws-warning);
  }

  body[data-route="profile"] .personal-module--weight .personal-module-cta {
    color: var(--ws-warning);
  }

  body[data-route="profile"] .panel,
  body[data-route="profile"] .error {
    background: transparent;
    border: none;
    box-shadow: none;
  }

  /* —— Personal data detail (reference layout) —— */
  body[data-route="profile-personal"] .ws-detail,
  body[data-route="profile-weight"] .ws-detail,
  body[data-route="profile-goals"] .ws-detail,
  body[data-route="profile-bmi"] .ws-detail,
  body[data-route="settings"] .ws-detail,
  body[data-route="account"] .ws-detail,
  body[data-route="account-delete"] .ws-detail {
    width: 100%;
    max-width: 44rem;
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }

  body[data-route="profile-personal"] .ws-back-btn,
  body[data-route="profile-weight"] .ws-back-btn,
  body[data-route="profile-goals"] .ws-back-btn,
  body[data-route="settings"] .ws-back-btn,
  body[data-route="profile-bmi"] .ws-back-btn {
    color: var(--ws-text);
    background: var(--ws-card);
    border: 1px solid var(--ws-border);
    box-shadow: var(--ws-shadow);
  }

  body[data-route="profile-personal"] .ws-back-btn:hover,
  body[data-route="profile-weight"] .ws-back-btn:hover,
  body[data-route="profile-goals"] .ws-back-btn:hover,
  body[data-route="settings"] .ws-back-btn:hover,
  body[data-route="profile-bmi"] .ws-back-btn:hover {
    color: var(--ws-accent);
    border-color: rgba(5, 150, 105, 0.45);
    background: var(--ws-accent-soft);
    box-shadow: 0 6px 18px rgba(5, 150, 105, 0.18);
  }

  body[data-route="profile-weight"] .ws-back-btn:hover {
    color: var(--ws-warning);
    border-color: rgba(234, 88, 12, 0.45);
    background: rgba(234, 88, 12, 0.1);
    box-shadow: 0 6px 18px rgba(234, 88, 12, 0.15);
  }

  body[data-route="profile-personal"] .ws-detail__crumb-sep,
  body[data-route="profile-weight"] .ws-detail__crumb-sep,
  body[data-route="profile-goals"] .ws-detail__crumb-sep,
  body[data-route="settings"] .ws-detail__crumb-sep,
  body[data-route="profile-bmi"] .ws-detail__crumb-sep {
    color: var(--ws-border);
  }

  body[data-route="profile-personal"] .ws-detail__crumb-current,
  body[data-route="profile-weight"] .ws-detail__crumb-current,
  body[data-route="profile-goals"] .ws-detail__crumb-current,
  body[data-route="settings"] .ws-detail__crumb-current,
  body[data-route="profile-bmi"] .ws-detail__crumb-current {
    color: var(--ws-text);
    font-weight: 600;
    font-size: 0.875rem;
  }

  body[data-route="profile-personal"] .ws-detail__head ,
  body[data-route="profile-weight"] .ws-detail__head,
  body[data-route="profile-goals"] .ws-detail__head,
  body[data-route="profile-bmi"] .ws-detail__head {
    margin-bottom: 1.25rem;
    max-width: 40rem;
  }

  body[data-route="profile-personal"] .ws-detail__title,
  body[data-route="profile-weight"] .ws-detail__title,
  body[data-route="profile-goals"] .ws-detail__title,
  body[data-route="profile-bmi"] .ws-detail__title {
    margin: 0 0 0.35rem;
  }

  body[data-route="profile-personal"] .ws-detail__title::after ,
  body[data-route="profile-weight"] .ws-detail__title::after,
  body[data-route="profile-goals"] .ws-detail__title::after,
  body[data-route="profile-bmi"] .ws-detail__title::after {
    content: "";
    display: block;
    width: 2.75rem;
    height: 3px;
    margin-top: 0.45rem;
    border-radius: 2px;
    background: var(--ws-accent);
  }

  body[data-route="profile-personal"] .ws-detail__lead ,
  body[data-route="profile-weight"] .ws-detail__lead,
  body[data-route="profile-goals"] .ws-detail__lead,
  body[data-route="profile-bmi"] .ws-detail__lead {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--ws-text-secondary);
  }

  body[data-route="profile-personal"] .ws-detail__status ,
  body[data-route="profile-weight"] .ws-detail__status,
  body[data-route="profile-goals"] .ws-detail__status,
  body[data-route="profile-bmi"] .ws-detail__status {
    margin: 0 0 1rem;
    color: var(--ws-text-secondary);
  }

  body[data-route="profile-personal"] .ws-toast ,
  body[data-route="profile-weight"] .ws-toast,
  body[data-route="profile-goals"] .ws-toast,
  body[data-route="profile-bmi"] .ws-toast {
    margin: 0 0 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    width: fit-content;
  }

  body[data-route="profile-personal"] .ws-toast--success ,
  body[data-route="profile-weight"] .ws-toast--success,
  body[data-route="profile-goals"] .ws-toast--success,
  body[data-route="profile-bmi"] .ws-toast--success {
    color: var(--ws-success);
    background: var(--ws-accent-soft);
    border: 1px solid rgba(5, 150, 105, 0.28);
  }

  body[data-route="profile-personal"] .ws-toast--error ,
  body[data-route="profile-weight"] .ws-toast--error,
  body[data-route="profile-goals"] .ws-toast--error,
  body[data-route="profile-bmi"] .ws-toast--error {
    color: var(--ws-danger);
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.22);
  }

  body[data-route="profile-personal"] .ws-card--form.panel {
    margin: 0;
    max-width: none;
    width: 100%;
    padding: 1.85rem 2rem 1.65rem;
  }

  body[data-route="profile-weight"] .ws-card--form.panel,
  body[data-route="profile-goals"] .ws-card--form.panel,
  body[data-route="settings"] .ws-card--form.panel,
  body[data-route="account"] .ws-card--form.panel,
  body[data-route="account-delete"] .ws-card--form.panel {
    margin: 0 auto;
    max-width: 44rem;
    padding: 1.65rem 1.75rem 1.5rem;
    background: var(--ws-card);
    border: 1px solid var(--ws-border);
    border-left: 4px solid var(--ws-accent);
    border-radius: var(--ws-radius);
    box-shadow: var(--ws-shadow);
    text-align: left;
  }

  body[data-route="profile-personal"] .ws-fields ,
  body[data-route="profile-weight"] .ws-fields,
  body[data-route="profile-goals"] .ws-fields,
  body[data-route="profile-bmi"] .ws-fields {
    display: grid;
    gap: 1rem 1.15rem;
  }

  body[data-route="profile-personal"] .ws-fields--row-gap ,
  body[data-route="profile-weight"] .ws-fields--row-gap,
  body[data-route="profile-goals"] .ws-fields--row-gap,
  body[data-route="profile-bmi"] .ws-fields--row-gap {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #dbe3ec;
  }

  body[data-route="profile-personal"] .ws-fields--triple ,
  body[data-route="profile-weight"] .ws-fields--triple,
  body[data-route="profile-goals"] .ws-fields--triple,
  body[data-route="profile-bmi"] .ws-fields--triple {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body[data-route="profile-personal"] .ws-field label ,
  body[data-route="profile-weight"] .ws-field label,
  body[data-route="profile-goals"] .ws-field label,
  body[data-route="profile-bmi"] .ws-field label,
  body[data-route="profile-personal"] .ws-label-row {
    display: block;
    margin: 0 0 0.45rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ws-text);
    text-transform: none;
    letter-spacing: normal;
  }

  body[data-route="profile-personal"] .ws-field-unit ,
  body[data-route="profile-weight"] .ws-field-unit,
  body[data-route="profile-goals"] .ws-field-unit,
  body[data-route="profile-bmi"] .ws-field-unit {
    font-weight: 500;
    color: var(--ws-text-secondary);
  }

  body[data-route="profile-personal"] .ws-field input,
  body[data-route="profile-weight"] .ws-field input,
  body[data-route="profile-goals"] .ws-field input,
  body[data-route="profile-personal"] .ws-field select ,
  body[data-route="profile-weight"] .ws-field select,
  body[data-route="profile-goals"] .ws-field select,
  body[data-route="profile-bmi"] .ws-field select {
    width: 100%;
    margin: 0;
    min-height: 2.85rem;
    padding: 0.6rem 0.85rem;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--ws-text);
    background: var(--ws-input-bg);
    border: 2px solid var(--ws-input-border);
    border-radius: 8px;
    box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.06);
  }

  body[data-route="profile-personal"] .ws-field input:focus,
  body[data-route="profile-weight"] .ws-field input:focus,
  body[data-route="profile-goals"] .ws-field input:focus,
  body[data-route="profile-personal"] .ws-field select:focus ,
  body[data-route="profile-weight"] .ws-field select:focus,
  body[data-route="profile-goals"] .ws-field select:focus,
  body[data-route="profile-bmi"] .ws-field select:focus {
    border-color: var(--ws-accent);
    outline: 2px solid rgba(5, 150, 105, 0.22);
    outline-offset: 0;
    box-shadow: none;
  }

  body[data-route="profile-personal"] .ws-form-actions ,
  body[data-route="profile-weight"] .ws-form-actions,
  body[data-route="profile-goals"] .ws-form-actions,
  body[data-route="profile-bmi"] .ws-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-top: 1.35rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--ws-border);
  }

  body[data-route="profile-personal"] .ws-btn ,
  body[data-route="profile-weight"] .ws-btn,
  body[data-route="profile-goals"] .ws-btn,
  body[data-route="profile-bmi"] .ws-btn {
    width: auto;
    min-width: 6.75rem;
    margin-top: 0;
    padding: 0.52rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    line-height: 1.25;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }

  body[data-route="profile-personal"] .ws-btn.primary ,
  body[data-route="profile-weight"] .ws-btn.primary,
  body[data-route="profile-goals"] .ws-btn.primary,
  body[data-route="profile-bmi"] .ws-btn.primary {
    background: var(--ws-accent);
    border: 1px solid var(--ws-accent);
    color: #fff;
  }

  body[data-route="profile-personal"] .ws-btn.primary:hover:not(:disabled) ,
  body[data-route="profile-weight"] .ws-btn.primary:hover:not(:disabled),
  body[data-route="profile-goals"] .ws-btn.primary:hover:not(:disabled),
  body[data-route="profile-bmi"] .ws-btn.primary:hover:not(:disabled) {
    background: var(--ws-accent-hover);
    border-color: var(--ws-accent-hover);
  }

  body[data-route="profile-personal"] .ws-btn.primary:disabled ,
  body[data-route="profile-weight"] .ws-btn.primary:disabled,
  body[data-route="profile-goals"] .ws-btn.primary:disabled,
  body[data-route="profile-bmi"] .ws-btn.primary:disabled {
    opacity: 0.42;
    cursor: not-allowed;
  }

  body[data-route="profile-personal"] .ws-btn--secondary ,
  body[data-route="profile-weight"] .ws-btn--secondary,
  body[data-route="profile-goals"] .ws-btn--secondary,
  body[data-route="profile-bmi"] .ws-btn--secondary {
    background: var(--ws-card);
    border: 1px solid var(--ws-border);
    color: var(--ws-text);
  }

  body[data-route="profile-personal"] .ws-btn--secondary:hover,
  body[data-route="profile-weight"] .ws-btn--secondary:hover,
  body[data-route="profile-goals"] .ws-btn--secondary:hover,
  body[data-route="settings"] .ws-btn--secondary:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
  }

  body[data-route="profile-personal"] .ws-label-row,
  body[data-route="profile-weight"] .ws-label-row,
  body[data-route="profile-goals"] .ws-label-row,
  body[data-route="settings"] .ws-field label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ws-text);
  }

  body[data-route="profile-personal"] .ws-label-icon ,
  body[data-route="profile-weight"] .ws-label-icon,
  body[data-route="profile-goals"] .ws-label-icon,
  body[data-route="profile-bmi"] .ws-label-icon {
    color: var(--ws-accent);
    flex-shrink: 0;
  }

  body[data-route="profile-personal"] .ws-sex-grid ,
  body[data-route="profile-weight"] .ws-sex-grid,
  body[data-route="profile-goals"] .ws-sex-grid,
  body[data-route="profile-bmi"] .ws-sex-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  body[data-route="profile-personal"] .ws-sex-card ,
  body[data-route="profile-weight"] .ws-sex-card,
  body[data-route="profile-goals"] .ws-sex-card,
  body[data-route="profile-bmi"] .ws-sex-card {
    margin: 0;
    min-height: 2.85rem;
    padding: 0.55rem 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ws-text);
    background: var(--ws-input-bg);
    border: 1.5px solid var(--ws-input-border);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
  }

  body[data-route="profile-personal"] .ws-sex-card:hover ,
  body[data-route="profile-weight"] .ws-sex-card:hover,
  body[data-route="profile-goals"] .ws-sex-card:hover,
  body[data-route="profile-bmi"] .ws-sex-card:hover {
    border-color: var(--ws-accent);
  }

  body[data-route="profile-personal"] .ws-sex-card.is-selected ,
  body[data-route="profile-weight"] .ws-sex-card.is-selected,
  body[data-route="profile-goals"] .ws-sex-card.is-selected,
  body[data-route="profile-bmi"] .ws-sex-card.is-selected {
    border-color: var(--ws-accent);
    box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.2);
    background: var(--ws-accent-soft);
  }

  body[data-route="profile-personal"] .ws-activity-block ,
  body[data-route="profile-weight"] .ws-activity-block,
  body[data-route="profile-goals"] .ws-activity-block,
  body[data-route="profile-bmi"] .ws-activity-block {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--ws-border);
  }

  body[data-route="profile-personal"] .ws-activity-heading ,
  body[data-route="profile-weight"] .ws-activity-heading,
  body[data-route="profile-goals"] .ws-activity-heading,
  body[data-route="profile-bmi"] .ws-activity-heading {
    margin: 0 0 0.85rem;
    font-size: 1rem;
    font-weight: 800;
    color: var(--ws-text);
    letter-spacing: -0.02em;
  }

  body[data-route="profile-personal"] .ws-activity-grid ,
  body[data-route="profile-weight"] .ws-activity-grid,
  body[data-route="profile-goals"] .ws-activity-grid,
  body[data-route="profile-bmi"] .ws-activity-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  body[data-route="profile-personal"] .ws-activity-card ,
  body[data-route="profile-weight"] .ws-activity-card,
  body[data-route="profile-goals"] .ws-activity-card,
  body[data-route="profile-bmi"] .ws-activity-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    margin: 0;
    padding: 0.85rem 0.9rem 0.85rem 0.85rem;
    text-align: left;
    background: var(--ws-card);
    border: 2px solid var(--ws-input-border);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  }

  body[data-route="profile-personal"] .ws-activity-card:hover ,
  body[data-route="profile-weight"] .ws-activity-card:hover,
  body[data-route="profile-goals"] .ws-activity-card:hover,
  body[data-route="profile-bmi"] .ws-activity-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  }

  body[data-route="profile-personal"] .ws-activity-card.is-selected ,
  body[data-route="profile-weight"] .ws-activity-card.is-selected,
  body[data-route="profile-goals"] .ws-activity-card.is-selected,
  body[data-route="profile-bmi"] .ws-activity-card.is-selected {
    border-width: 2px;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
  }

  body[data-route="profile-personal"] .ws-activity-card.ws-tone-gray.is-selected ,
  body[data-route="profile-weight"] .ws-activity-card.ws-tone-gray.is-selected,
  body[data-route="profile-goals"] .ws-activity-card.ws-tone-gray.is-selected,
  body[data-route="profile-bmi"] .ws-activity-card.ws-tone-gray.is-selected {
    border-color: #64748b;
  }

  body[data-route="profile-personal"] .ws-activity-card.ws-tone-blue.is-selected ,
  body[data-route="profile-weight"] .ws-activity-card.ws-tone-blue.is-selected,
  body[data-route="profile-goals"] .ws-activity-card.ws-tone-blue.is-selected,
  body[data-route="profile-bmi"] .ws-activity-card.ws-tone-blue.is-selected {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  }

  body[data-route="profile-personal"] .ws-activity-card.ws-tone-green.is-selected ,
  body[data-route="profile-weight"] .ws-activity-card.ws-tone-green.is-selected,
  body[data-route="profile-goals"] .ws-activity-card.ws-tone-green.is-selected,
  body[data-route="profile-bmi"] .ws-activity-card.ws-tone-green.is-selected {
    border-color: var(--ws-accent);
  }

  body[data-route="profile-personal"] .ws-activity-card.ws-tone-orange.is-selected ,
  body[data-route="profile-weight"] .ws-activity-card.ws-tone-orange.is-selected,
  body[data-route="profile-goals"] .ws-activity-card.ws-tone-orange.is-selected,
  body[data-route="profile-bmi"] .ws-activity-card.ws-tone-orange.is-selected {
    border-color: var(--ws-warning);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
  }

  body[data-route="profile-personal"] .ws-activity-card__icon ,
  body[data-route="profile-weight"] .ws-activity-card__icon,
  body[data-route="profile-goals"] .ws-activity-card__icon,
  body[data-route="profile-bmi"] .ws-activity-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 8px;
    background: #f8fafc;
    color: var(--ws-text-secondary);
  }

  body[data-route="profile-personal"] .ws-tone-blue .ws-activity-card__icon ,
  body[data-route="profile-weight"] .ws-tone-blue .ws-activity-card__icon,
  body[data-route="profile-goals"] .ws-tone-blue .ws-activity-card__icon,
  body[data-route="profile-bmi"] .ws-tone-blue .ws-activity-card__icon {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.1);
  }

  body[data-route="profile-personal"] .ws-tone-green .ws-activity-card__icon ,
  body[data-route="profile-weight"] .ws-tone-green .ws-activity-card__icon,
  body[data-route="profile-goals"] .ws-tone-green .ws-activity-card__icon,
  body[data-route="profile-bmi"] .ws-tone-green .ws-activity-card__icon {
    color: var(--ws-accent);
    background: var(--ws-accent-soft);
  }

  body[data-route="profile-personal"] .ws-tone-orange .ws-activity-card__icon ,
  body[data-route="profile-weight"] .ws-tone-orange .ws-activity-card__icon,
  body[data-route="profile-goals"] .ws-tone-orange .ws-activity-card__icon,
  body[data-route="profile-bmi"] .ws-tone-orange .ws-activity-card__icon {
    color: var(--ws-warning);
    background: rgba(234, 88, 12, 0.12);
  }

  body[data-route="profile-personal"] .ws-activity-card__title ,
  body[data-route="profile-weight"] .ws-activity-card__title,
  body[data-route="profile-goals"] .ws-activity-card__title,
  body[data-route="profile-bmi"] .ws-activity-card__title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--ws-text);
  }

  body[data-route="profile-personal"] .ws-activity-card__desc ,
  body[data-route="profile-weight"] .ws-activity-card__desc,
  body[data-route="profile-goals"] .ws-activity-card__desc,
  body[data-route="profile-bmi"] .ws-activity-card__desc {
    font-size: 0.78rem;
    line-height: 1.35;
    color: var(--ws-text-secondary);
  }

  body[data-route="profile-personal"] .ws-activity-card__check ,
  body[data-route="profile-weight"] .ws-activity-card__check,
  body[data-route="profile-goals"] .ws-activity-card__check,
  body[data-route="profile-bmi"] .ws-activity-card__check {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    display: none;
    color: var(--ws-accent);
  }

  body[data-route="profile-personal"] .ws-activity-card.is-selected .ws-activity-card__check ,
  body[data-route="profile-weight"] .ws-activity-card.is-selected .ws-activity-card__check,
  body[data-route="profile-goals"] .ws-activity-card.is-selected .ws-activity-card__check,
  body[data-route="profile-bmi"] .ws-activity-card.is-selected .ws-activity-card__check {
    display: flex;
  }

  body[data-route="account"] .ws-account-email-value {
    margin: 0.15rem 0 1.25rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ws-text);
  }

  body[data-route="account-delete"] .ws-btn--danger {
    background: var(--ws-danger);
    border: 1px solid var(--ws-danger);
    color: #fff;
  }

  body[data-route="account"] .ws-btn--danger-outline {
    border-color: rgba(220, 38, 38, 0.45);
    color: var(--ws-danger);
  }

  body[data-route="account-delete"] .ws-delete-step {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--ws-border);
  }

  body[data-route="account-delete"] .ws-delete-warn {
    color: var(--ws-danger);
    font-size: 0.9rem;
    font-weight: 600;
  }

  /* —— BMI & Metabolism —— */
  body[data-route="profile-bmi"] .ws-detail--bmi {
    max-width: 56rem;
  }

  body[data-route="profile-bmi"] .ws-detail__title::after {
    background: linear-gradient(90deg, #059669, #2563eb);
  }

  body[data-route="profile-bmi"] .ws-bmi-hero-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
    margin-bottom: 1.25rem;
  }

  body[data-route="profile-bmi"] .ws-metric-tile {
    --ws-metric-accent: var(--ws-accent);
    display: flex;
    flex-direction: column;
    min-height: 15.5rem;
    padding: 1.5rem 1.6rem 1.35rem;
    background: var(--ws-card);
    border: 1px solid var(--ws-border);
    border-left: 4px solid var(--ws-metric-accent);
    border-radius: var(--ws-radius);
    box-shadow: var(--ws-shadow);
  }

  body[data-route="profile-bmi"] .ws-metric-tile__head {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
  }

  body[data-route="profile-bmi"] .ws-metric-tile__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 10px;
    color: var(--ws-metric-accent);
    background: color-mix(in srgb, var(--ws-metric-accent) 14%, white);
    flex-shrink: 0;
  }

  body[data-route="profile-bmi"] .ws-metric-tile__title {
    flex: 1;
    margin: 0.15rem 0 0;
    font-size: 1rem;
    font-weight: 750;
    line-height: 1.3;
    color: var(--ws-text);
  }

  body[data-route="profile-bmi"] .ws-info-btn {
    width: 1.65rem;
    height: 1.65rem;
    padding: 0;
    font-size: 0.78rem;
    font-weight: 800;
    font-style: italic;
    line-height: 1.65rem;
    text-align: center;
    color: var(--ws-text-secondary);
    background: var(--ws-bg);
    border: 1px solid var(--ws-border);
    border-radius: 999px;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
  }

  body[data-route="profile-bmi"] .ws-info-btn:hover {
    color: var(--ws-accent);
    border-color: rgba(5, 150, 105, 0.45);
    background: var(--ws-accent-soft);
  }

  body[data-route="profile-bmi"] .ws-metric-tile__value {
    margin: 0;
    font-size: clamp(2.4rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
    color: var(--ws-text);
    line-height: 1.05;
  }

  body[data-route="profile-bmi"] .ws-metric-tile__badge {
    display: inline-block;
    margin: 0.65rem 0 0;
    padding: 0.35rem 0.7rem;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 999px;
    border: 1px solid transparent;
    width: fit-content;
  }

  body[data-route="profile-bmi"] .ws-metric-tile__unit {
    margin: 0.35rem 0 0;
    font-size: 0.95rem;
    font-weight: 650;
    color: var(--ws-text-secondary);
  }

  body[data-route="profile-bmi"] .ws-metric-tile__note {
    margin: auto 0 0;
    padding-top: 0.85rem;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--ws-text-secondary);
  }

  body[data-route="profile-bmi"] .ws-bmi-scale {
    position: relative;
    margin-top: auto;
    padding-top: 1.1rem;
  }

  body[data-route="profile-bmi"] .ws-bmi-scale__track {
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(
      90deg,
      #2563eb 0%,
      #2563eb 12%,
      #059669 12%,
      #059669 38%,
      #ea580c 38%,
      #ea580c 52%,
      #dc2626 52%,
      #991b1b 72%,
      #7f1d1d 100%
    );
    opacity: 0.92;
  }

  body[data-route="profile-bmi"] .ws-bmi-scale__marker {
    position: absolute;
    top: 0.55rem;
    width: 4px;
    height: 22px;
    margin-left: -2px;
    border-radius: 2px;
    background: var(--ws-text);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.28);
    transition: left 0.25s ease;
  }

  body[data-route="profile-bmi"] .ws-card__heading {
    margin: 0 0 0.65rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ws-text);
  }

  body[data-route="profile-bmi"] .ws-card__lead {
    margin: 0 0 1.1rem;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--ws-text-secondary);
  }

  body[data-route="profile-bmi"] .ws-card--bmi.panel {
    margin: 0 auto 1.15rem;
    max-width: 56rem;
    padding: 1.5rem 1.65rem 1.4rem;
    background: var(--ws-card);
    border: 1px solid var(--ws-border);
    border-radius: var(--ws-radius);
    box-shadow: var(--ws-shadow);
    text-align: left;
  }

  body[data-route="profile-bmi"] .ws-bmi-class-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
  }

  body[data-route="profile-bmi"] .ws-bmi-class-table th,
  body[data-route="profile-bmi"] .ws-bmi-class-table td {
    padding: 0.55rem 0.65rem;
    border-bottom: 1px solid var(--ws-border);
    text-align: left;
  }

  body[data-route="profile-bmi"] .ws-bmi-class-table th {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ws-text-secondary);
    font-weight: 700;
  }

  body[data-route="profile-bmi"] .ws-bmi-class-row.is-active {
    background: var(--ws-accent-soft);
    font-weight: 650;
  }

  body[data-route="profile-bmi"] .ws-bmi-class-row.is-active td {
    border-bottom-color: rgba(5, 150, 105, 0.28);
  }

  body[data-route="profile-bmi"] .ws-bmi-class-dot {
    display: inline-block;
    width: 0.55rem;
    height: 0.55rem;
    margin-right: 0.45rem;
    border-radius: 999px;
    vertical-align: middle;
  }

  body[data-route="profile-bmi"] .ws-bmi-progress-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  body[data-route="profile-bmi"] .ws-bmi-progress-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--ws-border);
    font-size: 0.95rem;
  }

  body[data-route="profile-bmi"] .ws-bmi-progress-label {
    color: var(--ws-text-secondary);
  }

  body[data-route="profile-bmi"] .ws-bmi-progress-value {
    font-variant-numeric: tabular-nums;
    color: var(--ws-text);
  }

  body[data-route="profile-bmi"] .ws-bmi-trend {
    margin-top: 1.15rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--ws-border);
  }

  body[data-route="profile-bmi"] .ws-bmi-trend__title {
    margin: 0 0 0.35rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ws-text);
  }

  body[data-route="profile-bmi"] .ws-bmi-trend__list {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem 1rem;
  }

  body[data-route="profile-bmi"] .ws-bmi-trend__list li {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    color: var(--ws-text-secondary);
  }

  body[data-route="profile-bmi"] .ws-bmi-energy-dl {
    margin: 0;
  }

  body[data-route="profile-bmi"] .ws-bmi-energy-row {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
    gap: 0.75rem 1.25rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--ws-border);
    align-items: baseline;
  }

  body[data-route="profile-bmi"] .ws-bmi-energy-row dt {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 650;
    color: var(--ws-text-secondary);
  }

  body[data-route="profile-bmi"] .ws-bmi-energy-row dd {
    margin: 0;
    font-size: 1rem;
    font-weight: 650;
    color: var(--ws-text);
    font-variant-numeric: tabular-nums;
  }

  body[data-route="profile-bmi"] .ws-bmi-energy-row--tdee dd {
    font-size: 1.15rem;
    color: var(--ws-accent);
  }

  body[data-route="profile-bmi"] .ws-bmi-activity {
    font-weight: 700;
  }

  body[data-route="profile-bmi"] .ws-bmi-activity.ws-tone-gray { color: #64748b; }
  body[data-route="profile-bmi"] .ws-bmi-activity.ws-tone-blue { color: #2563eb; }
  body[data-route="profile-bmi"] .ws-bmi-activity.ws-tone-green { color: #059669; }
  body[data-route="profile-bmi"] .ws-bmi-activity.ws-tone-orange { color: #ea580c; }

  /* —— Personal goals —— */
  body[data-route="profile-goals"] .ws-fields--pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-route="profile-goals"] .ws-card--limits.panel {
    margin-top: 1.25rem;
    border-left: 4px solid var(--ws-accent);
  }

  body[data-route="profile-goals"] .ws-card__heading {
    margin: 0 0 1rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ws-text);
  }

  body[data-route="profile-goals"] .ws-card__lead {
    margin: -0.35rem 0 1.15rem;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--ws-text-secondary);
  }

  body[data-route="profile-goals"] .ws-hint {
    margin: 0.35rem 0 0;
    color: var(--ws-text-secondary);
    font-size: 0.88rem;
    line-height: 1.45;
  }

  /* —— Weight Dashboard (green core module) —— */
  body[data-route="profile-weight"] .weight-dashboard {
    max-width: var(--gz-main-max);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

  body[data-route="profile-weight"] .weight-dashboard__motivation {
    margin: 0.35rem 0 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ws-accent);
  }

  body[data-route="profile-weight"] .ws-detail__title::after {
    background: var(--ws-accent);
  }

  body[data-route="profile-weight"] .weight-section-title {
    margin: 0 0 0.65rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--ws-text);
  }

  body[data-route="profile-weight"] .weight-hero {
    border-radius: calc(var(--ws-radius) + 4px);
    background: linear-gradient(145deg, #ecfdf5 0%, #ffffff 55%, #f0fdf4 100%);
    border: 1px solid rgba(5, 150, 105, 0.28);
    box-shadow: var(--ws-shadow);
    padding: 1.35rem 1.5rem 1.2rem;
    border-top: 4px solid #059669;
  }

  body[data-route="profile-weight"] .weight-hero__top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  body[data-route="profile-weight"] .weight-hero__title {
    margin: 0;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 800;
    color: #047857;
  }

  body[data-route="profile-weight"] .weight-hero__status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    background: rgba(15, 23, 42, 0.06);
    color: var(--ws-text-secondary);
  }

  body[data-route="profile-weight"] .weight-hero__status.is-logged {
    background: rgba(5, 150, 105, 0.12);
    color: #047857;
  }

  body[data-route="profile-weight"] .weight-hero__status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #94a3b8;
  }

  body[data-route="profile-weight"] .weight-hero__status-dot.is-logged {
    background: #059669;
  }

  body[data-route="profile-weight"] .weight-hero__form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.15rem;
  }

  body[data-route="profile-weight"] .weight-date-field {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-width: 220px;
    min-height: 52px;
    padding: 0 1rem;
    border-radius: 12px;
    border: 1px solid var(--ws-border);
    background: var(--ws-card);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
    cursor: pointer;
    user-select: none;
  }

  body[data-route="profile-weight"] .weight-date-field:focus-within {
    border-color: rgba(5, 150, 105, 0.45);
    outline: 2px solid rgba(5, 150, 105, 0.2);
    outline-offset: 2px;
  }

  body[data-route="profile-weight"] .weight-date-field__icon {
    display: flex;
    color: #059669;
    flex-shrink: 0;
  }

  body[data-route="profile-weight"] .weight-date-field__text {
    font-size: 20px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--ws-text);
    pointer-events: none;
  }

  body[data-route="profile-weight"] .weight-date-field__input {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    border: none;
    margin: 0;
    padding: 0;
  }

  body[data-route="profile-weight"] .weight-hero__input-wrap {
    width: 100%;
    max-width: 28rem;
    padding: 0.65rem 0.85rem;
    border-radius: 14px;
    border: 2px solid rgba(5, 150, 105, 0.35);
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  }

  body[data-route="profile-weight"] .weight-hero__value-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
  }

  body[data-route="profile-weight"] .weight-hero__kg-input {
    border: none;
    background: transparent;
    font-size: 56px;
    font-weight: 800;
    width: 4.5ch;
    text-align: center;
    color: var(--ws-text);
    font-variant-numeric: tabular-nums;
    outline: none;
    line-height: 1;
  }

  body[data-route="profile-weight"] .weight-hero__unit {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ws-text-secondary);
    align-self: flex-end;
    margin-bottom: 0.55rem;
  }

  body[data-route="profile-weight"] .weight-steppers {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-left: 0.35rem;
  }

  body[data-route="profile-weight"] .weight-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    min-height: 44px;
    padding: 0.25rem;
    border-radius: 10px;
    border: 1px solid rgba(5, 150, 105, 0.35);
    background: rgba(5, 150, 105, 0.08);
    color: #047857;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  }

  body[data-route="profile-weight"] .weight-stepper:hover {
    background: rgba(5, 150, 105, 0.16);
    border-color: rgba(5, 150, 105, 0.55);
  }

  body[data-route="profile-weight"] .weight-stepper:active {
    transform: scale(0.97);
    background: rgba(5, 150, 105, 0.22);
  }

  body[data-route="profile-weight"] .weight-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    width: 100%;
    max-width: 32rem;
  }

  body[data-route="profile-weight"] .weight-hero__save,
  body[data-route="profile-weight"] .weight-hero__reminder {
    min-height: 48px;
    flex: 1 1 12rem;
    justify-content: center;
    font-size: 0.95rem;
  }

  body[data-route="profile-weight"] .weight-hero__save {
    background: #059669;
    border-color: #059669;
    font-weight: 800;
    padding: 0.75rem 1.35rem;
  }

  body[data-route="profile-weight"] .weight-hero__save:hover:not(:disabled) {
    background: #047857;
    border-color: #047857;
  }

  body[data-route="profile-weight"] .weight-hero__reminder {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    padding: 0.75rem 1.15rem;
  }

  body[data-route="profile-weight"] .weight-hero__bell {
    flex-shrink: 0;
  }

  body[data-route="profile-weight"] .weight-hero__snapshot {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(5, 150, 105, 0.18);
  }

  body[data-route="profile-weight"] .weight-hero__snapshot div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
  }

  body[data-route="profile-weight"] .weight-hero__snapshot dt {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--ws-text-secondary);
    font-weight: 700;
  }

  body[data-route="profile-weight"] .weight-hero__snapshot dd {
    margin: 0;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--ws-text);
  }

  body[data-route="profile-weight"] .weight-summary__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
  }

  @media (max-width: 1000px) {
    body[data-route="profile-weight"] .weight-summary__grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  body[data-route="profile-weight"] .weight-stat-card {
    padding: 0.85rem 1rem;
    border-radius: var(--ws-radius);
    border: 1px solid var(--ws-border);
    background: var(--ws-card);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }

  body[data-route="profile-weight"] .weight-stat-card--wide {
    grid-column: 1 / -1;
  }

  body[data-route="profile-weight"] .weight-stat-card__label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: var(--ws-text-secondary);
  }

  body[data-route="profile-weight"] .weight-stat-card__value {
    font-size: 1.15rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--ws-text);
  }

  body[data-route="profile-weight"] .weight-summary__empty {
    margin: 0.65rem 0 0;
    font-size: 0.9rem;
    color: var(--ws-text-secondary);
    line-height: 1.45;
  }

  body[data-route="profile-weight"] .weight-trend__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
  }

  body[data-route="profile-weight"] .weight-trend__periods {
    display: flex;
    gap: 0.35rem;
  }

  body[data-route="profile-weight"] .weight-period-btn {
    border: 1px solid var(--ws-border);
    background: var(--ws-card);
    color: var(--ws-text-secondary);
    font-weight: 700;
    font-size: 0.78rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    cursor: pointer;
  }

  body[data-route="profile-weight"] .weight-period-btn.is-active {
    background: rgba(5, 150, 105, 0.12);
    border-color: rgba(5, 150, 105, 0.35);
    color: #047857;
  }

  body[data-route="profile-weight"] .weight-trend__chart,
  body[data-route="profile-weight"] .weight-recent__table-wrap {
    padding: 1rem 1.1rem;
    border-radius: var(--ws-radius);
    border: 1px solid var(--ws-border);
    background: var(--ws-card);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  }

  body[data-route="profile-weight"] .weight-trend__hint {
    margin: 0.55rem 0 0;
    font-size: 0.88rem;
    color: var(--ws-text-secondary);
  }

  body[data-route="profile-weight"] .weight-chart-svg {
    width: 100%;
    height: auto;
    display: block;
  }

  body[data-route="profile-weight"] .weight-chart-grid {
    stroke: rgba(15, 23, 42, 0.08);
    stroke-width: 1;
  }

  body[data-route="profile-weight"] .weight-chart-line {
    stroke: #059669;
    stroke-width: 2.5;
  }

  body[data-route="profile-weight"] .weight-chart-dot {
    fill: #34d399;
    stroke: #fff;
    stroke-width: 1.5;
  }

  body[data-route="profile-weight"] .weight-chart-dot.is-latest {
    fill: #059669;
    stroke-width: 2;
  }

  body[data-route="profile-weight"] .weight-chart-axis,
  body[data-route="profile-weight"] .weight-chart-label {
    fill: var(--ws-text-secondary);
    font-size: 11px;
    font-weight: 600;
  }

  body[data-route="profile-weight"] .weight-chart-label {
    fill: #047857;
    font-size: 12px;
    font-weight: 800;
  }

  body[data-route="profile-weight"] .weight-recent__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
  }

  body[data-route="profile-weight"] .weight-recent__table th,
  body[data-route="profile-weight"] .weight-recent__table td {
    padding: 0.55rem 0.45rem;
    border-bottom: 1px solid var(--ws-border);
    text-align: left;
    font-variant-numeric: tabular-nums;
  }

  body[data-route="profile-weight"] .weight-recent__table th {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ws-text-secondary);
    font-weight: 700;
  }

  body[data-route="profile-weight"] .weight-recent__table tbody th[scope="row"] {
    font-weight: 700;
    color: var(--ws-text);
  }

  body[data-route="profile-weight"] .weight-recent__empty {
    text-align: center;
    color: var(--ws-text-secondary);
    padding: 1rem !important;
  }

  body[data-route="profile-weight"] .weight-habit {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 1rem 1.15rem;
    border-radius: var(--ws-radius);
    border: 1px solid rgba(5, 150, 105, 0.22);
    background: linear-gradient(120deg, #f0fdf4 0%, #ffffff 70%);
  }

  body[data-route="profile-weight"] .weight-habit__icon {
    color: #059669;
    flex-shrink: 0;
  }

  body[data-route="profile-weight"] .weight-habit__title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 800;
  }

  body[data-route="profile-weight"] .weight-habit__text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--ws-text-secondary);
  }

  body[data-route="profile-weight"] .ws-btn.primary {
    background: #059669;
    border-color: #059669;
  }

  body[data-route="profile-weight"] .ws-btn.primary:hover:not(:disabled) {
    background: #047857;
    border-color: #047857;
  }

  /* —— Nutrition Intelligence Center (premium layout) —— */
  body[data-route="nutrition"] .nut-page-head {
    margin-bottom: var(--gz-gap-section);
    text-align: left;
  }

  body[data-route="nutrition"] .nut-intel-title::after {
    content: "";
    display: block;
    width: 3.5rem;
    height: 4px;
    margin-top: 0.5rem;
    border-radius: 2px;
    background: linear-gradient(90deg, #047857, #2563eb);
  }

  body[data-route="nutrition"] .nut-green-zone {
    margin: 0 0 2.5rem;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  body[data-route="nutrition"] .nut-gz-title {
    margin: 0 0 var(--gz-gap-card);
  }

  body[data-route="nutrition"] .nut-gz-section-lead {
    margin: 0 0 var(--gz-gap-card);
    color: var(--gz-text-muted);
    font-size: var(--gz-text-secondary-size);
    line-height: 1.45;
  }

  body[data-route="nutrition"] .nut-gz-status {
    margin: 0.75rem 0 1.25rem;
    color: var(--gz-brand-green);
    font-size: var(--gz-text-secondary-size);
    font-weight: 600;
  }

  body[data-route="nutrition"] .nut-gz-section {
    margin-top: 2rem;
  }

  body[data-route="nutrition"] .nut-gz-section-title {
    margin: 0 0 0.35rem;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ws-text);
  }

  body[data-route="nutrition"] .nut-gz-section--minerals .nut-gz-section-title {
    color: #0e7490;
  }

  body[data-route="nutrition"] .nut-gz-section--vitamins .nut-gz-section-title {
    color: #b45309;
  }

  /* Energy hero */
  body[data-route="nutrition"] .nut-gz-hero-card {
    padding: 1.75rem 1.85rem 1.65rem;
    border-radius: 20px;
    background: linear-gradient(135deg, #064e3b 0%, #047857 45%, #059669 100%);
    color: #f8fafc;
    box-shadow: 0 20px 50px rgba(4, 120, 87, 0.35);
  }

  body[data-route="nutrition"] .nut-gz-hero__top {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
  }

  body[data-route="nutrition"] .nut-ico-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 14px;
  }

  body[data-route="nutrition"] .nut-ico-wrap .nut-ico {
    width: 100%;
    height: 100%;
    display: block;
  }

  body[data-route="nutrition"] .nut-ico-wrap--hero {
    width: 3.75rem;
    height: 3.75rem;
    background: rgba(255, 255, 255, 0.14);
    color: #fef08a;
  }

  body[data-route="nutrition"] .nut-ico-wrap--macro {
    width: 2.75rem;
    height: 2.75rem;
    padding: 0.35rem;
  }

  body[data-route="nutrition"] .nut-ico-wrap--macro .nut-ico {
    width: 2.5rem;
    height: 2.5rem;
  }

  body[data-route="nutrition"] .nut-ico-wrap--limit-ico {
    width: 2.75rem;
    height: 2.75rem;
    padding: 0.3rem;
    color: #ea580c;
    background: rgba(234, 88, 12, 0.12);
  }

  body[data-route="nutrition"] .nut-ico-wrap--limit-ico .nut-ico {
    width: 2.25rem;
    height: 2.25rem;
  }

  body[data-route="nutrition"] .nut-ico-wrap--micro {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.25rem;
  }

  body[data-route="nutrition"] .nut-ico-wrap--micro .nut-ico {
    width: 1.75rem;
    height: 1.75rem;
  }

  @media (min-width: 900px) {
    body[data-route="nutrition"] .nut-ico-wrap--macro {
      width: 3rem;
      height: 3rem;
    }
    body[data-route="nutrition"] .nut-ico-wrap--macro .nut-ico {
      width: 2.875rem;
      height: 2.875rem;
    }
    body[data-route="nutrition"] .nut-ico-wrap--micro {
      width: 2.75rem;
      height: 2.75rem;
    }
    body[data-route="nutrition"] .nut-ico-wrap--micro .nut-ico {
      width: 2rem;
      height: 2rem;
    }
  }

  body[data-route="nutrition"] .nut-ico-wrap--protein { color: #2563eb; background: rgba(37, 99, 235, 0.14); }
  body[data-route="nutrition"] .nut-ico-wrap--carbs { color: #d97706; background: rgba(217, 119, 6, 0.14); }
  body[data-route="nutrition"] .nut-ico-wrap--fat { color: #7c3aed; background: rgba(124, 58, 237, 0.14); }
  body[data-route="nutrition"] .nut-ico-wrap--fiber { color: #15803d; background: rgba(21, 128, 61, 0.14); }
  body[data-route="nutrition"] .nut-ico-wrap--limit { color: #ea580c; background: rgba(234, 88, 12, 0.12); }
  body[data-route="nutrition"] .nut-ico-wrap--min { color: #0d9488; background: rgba(13, 148, 136, 0.14); }
  body[data-route="nutrition"] .nut-ico-wrap--vit { color: #ca8a04; background: rgba(202, 138, 4, 0.14); }
  body[data-route="nutrition"] .nut-ico-wrap--energy { color: #fef08a; }

  body[data-route="nutrition"] .nut-gz-hero__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
  }

  body[data-route="nutrition"] .nut-gz-hero__lead {
    margin: 0.25rem 0 0;
    font-size: 0.88rem;
    color: rgba(248, 250, 252, 0.82);
  }

  body[data-route="nutrition"] .nut-gz-hero__value {
    margin: 0.35rem 0 0;
    font-size: var(--gz-metric-hero);
    font-weight: var(--gz-weight-hero);
    font-variant-numeric: tabular-nums;
    line-height: 1;
    color: #ffffff;
  }

  body[data-route="nutrition"] .nut-gz-hero__unit {
    margin-left: 0.5rem;
    font-size: var(--gz-text-unit);
    font-weight: var(--gz-weight-unit);
    color: rgba(248, 250, 252, 0.85);
  }

  body[data-route="nutrition"] .nut-gz-hero__meta {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
    color: rgba(248, 250, 252, 0.9);
  }

  body[data-route="nutrition"] .nut-gz-hero__meta-k {
    font-weight: 700;
    margin-right: 0.35rem;
    color: #bbf7d0;
  }

  body[data-route="nutrition"] .nut-gz-hero__deficit {
    margin: 0.65rem 0 0;
    font-size: 0.85rem;
    color: #d9f99d;
  }

  body[data-route="nutrition"] .nut-gz-split {
    display: flex;
    height: 10px;
    margin-top: 1.25rem;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
  }

  body[data-route="nutrition"] .nut-gz-split__p {
    background: #2563eb;
  }

  body[data-route="nutrition"] .nut-gz-split__c {
    background: #d97706;
  }

  body[data-route="nutrition"] .nut-gz-split__f {
    background: #7c3aed;
  }

  body[data-route="nutrition"] .nut-gz-split-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.25rem;
    list-style: none;
    margin: 0.65rem 0 0;
    padding: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(248, 250, 252, 0.9);
  }

  body[data-route="nutrition"] .nut-gz-split-dot {
    display: inline-block;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    margin-right: 0.35rem;
    vertical-align: middle;
  }

  body[data-route="nutrition"] .nut-gz-split-dot--p { background: #60a5fa; }
  body[data-route="nutrition"] .nut-gz-split-dot--c { background: #fbbf24; }
  body[data-route="nutrition"] .nut-gz-split-dot--f { background: #c4b5fd; }

  body[data-route="nutrition"] .nut-gz-info {
    margin-left: auto;
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: inherit;
    cursor: help;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  body[data-route="nutrition"] .nut-gz-macro-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  @media (min-width: 900px) {
    body[data-route="nutrition"] .nut-gz-macro-grid {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
  }

  body[data-route="nutrition"] .nut-gz-macro {
    padding: 1.25rem 1.2rem;
    border-radius: 16px;
    border: 1px solid transparent;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  }

  body[data-route="nutrition"] .nut-gz-macro--protein {
    border-color: rgba(37, 99, 235, 0.35);
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 70%);
  }

  body[data-route="nutrition"] .nut-gz-macro--carbs {
    border-color: rgba(217, 119, 6, 0.35);
    background: linear-gradient(180deg, #fffbeb 0%, #ffffff 70%);
  }

  body[data-route="nutrition"] .nut-gz-macro--fat {
    border-color: rgba(124, 58, 237, 0.35);
    background: linear-gradient(180deg, #f5f3ff 0%, #ffffff 70%);
  }

  body[data-route="nutrition"] .nut-gz-macro--fiber {
    border-color: rgba(21, 128, 61, 0.35);
    background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 70%);
  }

  body[data-route="nutrition"] .nut-gz-macro__head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
  }

  body[data-route="nutrition"] .nut-gz-macro__label {
    margin: 0;
    flex: 1;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--ws-text);
  }

  body[data-route="nutrition"] .nut-gz-macro__value {
    margin: 0;
    font-size: var(--gz-metric-primary);
    font-weight: var(--gz-weight-metric-primary);
    font-variant-numeric: tabular-nums;
    color: var(--ws-text);
    line-height: 1.05;
  }

  body[data-route="nutrition"] .nut-gz-macro__unit {
    margin-left: 0.35rem;
    font-size: var(--gz-text-unit);
    font-weight: var(--gz-weight-unit);
    color: var(--gz-text-secondary);
  }

  body[data-route="nutrition"] .nut-gz-macro__per {
    font-size: 0.78rem;
    font-weight: 600;
    margin-left: 0.15rem;
  }

  body[data-route="nutrition"] .nut-gz-macro__expl {
    margin: 0.5rem 0 0;
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--ws-text-secondary);
  }

  body[data-route="nutrition"] .nut-gz-limits-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  @media (min-width: 768px) {
    body[data-route="nutrition"] .nut-gz-limits-row {
      flex-direction: row;
    }
    body[data-route="nutrition"] .nut-gz-limit {
      flex: 1;
    }
  }

  body[data-route="nutrition"] .nut-gz-limit {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    border: 1px solid rgba(234, 88, 12, 0.28);
    background: linear-gradient(90deg, rgba(255, 237, 213, 0.65), #ffffff);
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.08);
  }

  body[data-route="nutrition"] .nut-gz-limit__body {
    flex: 1;
    min-width: 0;
  }

  body[data-route="nutrition"] .nut-gz-limit__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
  }

  body[data-route="nutrition"] .nut-gz-limit__label {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--ws-text);
  }

  body[data-route="nutrition"] .nut-gz-limit__badge {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #c2410c;
    background: rgba(234, 88, 12, 0.12);
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
  }

  body[data-route="nutrition"] .nut-gz-limit__value {
    margin: 0.35rem 0 0;
    font-size: var(--gz-metric-secondary);
    font-weight: var(--gz-weight-metric-secondary);
    font-variant-numeric: tabular-nums;
    color: var(--ws-text);
  }

  body[data-route="nutrition"] .nut-gz-limit__unit {
    margin-left: 0.25rem;
    font-size: var(--gz-text-unit);
    font-weight: var(--gz-weight-unit);
    color: var(--gz-text-secondary);
  }

  body[data-route="nutrition"] .nut-gz-limit__ref {
    margin: 0.25rem 0 0;
    font-size: 0.78rem;
    color: var(--ws-text-secondary);
  }

  body[data-route="nutrition"] .nut-gz-micro-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  @media (min-width: 900px) {
    body[data-route="nutrition"] .nut-gz-micro-grid--minerals {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    body[data-route="nutrition"] .nut-gz-micro-grid--vitamins {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }

  body[data-route="nutrition"] .nut-gz-micro {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  }

  body[data-route="nutrition"] .nut-gz-micro__content {
    flex: 1;
    min-width: 0;
  }

  body[data-route="nutrition"] .nut-gz-micro--minerals {
    border-left: 3px solid #0d9488;
    background: linear-gradient(90deg, rgba(13, 148, 136, 0.08), #fff 40%);
  }

  body[data-route="nutrition"] .nut-gz-micro--vitamins {
    border-left: 3px solid #ca8a04;
    background: linear-gradient(90deg, rgba(202, 138, 4, 0.1), #fff 40%);
  }

  body[data-route="nutrition"] .nut-gz-micro__head {
    display: flex;
    align-items: center;
    gap: 0.35rem;
  }

  body[data-route="nutrition"] .nut-gz-micro__label {
    margin: 0;
    flex: 1;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ws-text);
  }

  body[data-route="nutrition"] .nut-gz-micro__value {
    margin: 0.15rem 0 0;
    font-size: var(--gz-text-h3);
    font-weight: var(--gz-weight-h3);
    font-variant-numeric: tabular-nums;
    color: var(--ws-text);
    line-height: 1.2;
  }

  body[data-route="nutrition"] .nut-gz-micro__unit {
    font-size: var(--gz-text-unit);
    font-weight: var(--gz-weight-unit);
    color: var(--gz-text-secondary);
    margin-left: 0.25rem;
    white-space: nowrap;
  }

  body[data-route="nutrition"] .nut-gz-tile__dash {
    color: #94a3b8;
    font-weight: 700;
  }

  body[data-route="nutrition"] .nut-gz-tile__empty-hint {
    margin: 0.35rem 0 0;
    font-size: 0.78rem;
    color: var(--ws-text-secondary);
  }

  body[data-route="nutrition"] .nut-gz-tile__empty-hint a {
    color: var(--ws-accent);
    font-weight: 650;
    text-decoration: none;
  }

  body[data-route="nutrition"] .nut-gz-missing {
    margin: 0 0 1rem;
    padding: 0.65rem 0.9rem;
    border-radius: 8px;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #9a3412;
    background: rgba(234, 88, 12, 0.08);
    border: 1px solid rgba(234, 88, 12, 0.22);
  }

  body[data-route="nutrition"] .nut-gz-missing a {
    color: #047857;
    font-weight: 650;
  }

  body[data-route="nutrition"] .nut-dashboard {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
  }

  body[data-route="nutrition"] .nut-dash-title {
    margin: 0 0 0.25rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--ws-text);
  }

  /* —— Today (desktop light, mobile stays dark in app.css) —— */
  body[data-route="today"] .today-panel.panel {
    background: var(--ws-card);
    border: 1px solid var(--ws-border);
    border-radius: var(--ws-radius);
    box-shadow: var(--ws-shadow);
    color: var(--ws-text);
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
  }

  body[data-route="today"] .legacy-dash {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  body[data-route="today"] .today-heading {
    margin-bottom: 0.25rem;
    color: var(--ws-text);
    text-align: center;
  }

  body[data-route="today"] .today-heading::after {
    content: "";
    display: block;
    width: 2.75rem;
    height: 3px;
    margin: 0.45rem auto 0;
    border-radius: 2px;
    background: var(--ws-accent);
  }

  body[data-route="today"] .dash-date {
    color: var(--ws-text);
  }

  body[data-route="today"] .dash-motto {
    color: var(--ws-text-secondary);
  }

  body[data-route="today"] .green-badge-neutral {
    color: var(--ws-text);
    border-color: var(--ws-border);
    background: #f8fafc;
  }

  body[data-route="today"] .green-badge-insufficient-data {
    color: var(--ws-text-muted);
  }

  body[data-route="today"] .mini-stat {
    background: #f8fafc;
    border-color: var(--ws-border);
  }

  body[data-route="today"] .mini-stat-k {
    color: var(--ws-text-secondary);
  }

  body[data-route="today"] .mini-stat-v {
    color: var(--ws-text);
    font-variant-numeric: tabular-nums;
  }

  body[data-route="today"] .surplus-alert {
    background: rgba(254, 226, 226, 0.65);
    border-color: rgba(220, 38, 38, 0.28);
  }

  body[data-route="today"] .surplus-title {
    color: #b91c1c;
  }

  body[data-route="today"] .surplus-text {
    color: var(--ws-text-secondary);
  }

  body[data-route="today"] #onboarding-panel {
    text-align: left;
    border-top-color: var(--ws-border);
  }

  body[data-route="today"] #onboarding-panel label {
    color: var(--ws-text-secondary);
  }

  body[data-route="today"] #onboarding-panel input,
  body[data-route="today"] #onboarding-panel select {
    background: var(--ws-input-bg);
    border-color: var(--ws-input-border);
    color: var(--ws-text);
  }

  /* —— Dashboard hub (desktop light) —— */
  /* —— Premium fitness dashboard —— */
  body[data-route="dashboard"] .dash-premium {
    width: 100%;
    max-width: var(--gz-main-max);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
  }

  body[data-route="dashboard"] .dash-prem-head h1 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 800;
    color: var(--ws-text);
    letter-spacing: -0.02em;
  }

  body[data-route="dashboard"] .dash-prem-head h1::after {
    content: "";
    display: block;
    width: 2.75rem;
    height: 3px;
    margin-top: 0.45rem;
    border-radius: 2px;
    background: var(--ws-accent);
  }

  body[data-route="dashboard"] .dash-prem-date {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ws-text-secondary);
  }

  body[data-route="dashboard"] .dash-prem-greeting {
    margin: 0;
    max-width: 40rem;
    font-size: 1.05rem;
    line-height: 1.45;
    color: var(--ws-text);
  }

  body[data-route="dashboard"] .dash-energy-hero {
    border-radius: calc(var(--ws-radius) + 4px);
    background: linear-gradient(145deg, #064e3b 0%, #047857 42%, #065f46 100%);
    color: #ecfdf5;
    box-shadow: 0 8px 28px rgba(4, 120, 87, 0.28);
  }

  body[data-route="dashboard"] .dash-energy-hero__inner {
    padding: 1.35rem 1.5rem 1.25rem;
  }

  body[data-route="dashboard"] .dash-energy-hero__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.1rem;
  }

  body[data-route="dashboard"] .dash-energy-hero__title {
    margin: 0;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 700;
    color: rgba(236, 253, 245, 0.85);
  }

  body[data-route="dashboard"] .dash-energy-hero__badge {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
  }

  body[data-route="dashboard"] .dash-energy-hero__badge.green-badge-green {
    background: rgba(0, 255, 157, 0.18);
    border-color: rgba(0, 255, 157, 0.45);
    color: #d1fae5;
  }

  body[data-route="dashboard"] .dash-energy-hero__badge.green-badge-over-target {
    background: rgba(254, 202, 202, 0.22);
    border-color: rgba(248, 113, 113, 0.5);
    color: #fee2e2;
  }

  body[data-route="dashboard"] .dash-energy-hero__badge.green-badge-insufficient-data {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(236, 253, 245, 0.9);
  }

  body[data-route="dashboard"] .dash-energy-hero__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem 1.25rem;
  }

  @media (max-width: 1100px) {
    body[data-route="dashboard"] .dash-energy-hero__grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  body[data-route="dashboard"] .dash-energy-stat__label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(236, 253, 245, 0.72);
    margin-bottom: 0.25rem;
  }

  body[data-route="dashboard"] .dash-energy-stat__value {
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
  }

  body[data-route="dashboard"] .dash-energy-stat--balance .dash-energy-stat__value.defizit {
    color: #6ee7b7;
  }

  body[data-route="dashboard"] .dash-energy-stat--balance .dash-energy-stat__value.ueberschuss {
    color: #fca5a5;
  }

  body[data-route="dashboard"] .dash-energy-progress {
    margin-top: 1.15rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  body[data-route="dashboard"] .dash-energy-progress__meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(236, 253, 245, 0.82);
    margin-bottom: 0.45rem;
  }

  body[data-route="dashboard"] .dash-energy-progress__track {
    height: 8px;
    border-radius: 99px;
    background: rgba(0, 0, 0, 0.22);
    overflow: hidden;
  }

  body[data-route="dashboard"] .dash-energy-progress__fill {
    display: block;
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, #34d399, #00ff9d);
    transition: width 0.35s ease;
  }

  body[data-route="dashboard"] .dash-energy-progress__fill.is-over {
    background: linear-gradient(90deg, #f87171, #fecaca);
  }

  body[data-route="dashboard"] .dash-energy-progress__fill.is-neutral {
    background: linear-gradient(90deg, #fbbf24, #fde68a);
  }

  body[data-route="dashboard"] .dash-energy-progress__note {
    margin: 0.5rem 0 0;
    font-size: 0.82rem;
    color: rgba(236, 253, 245, 0.78);
  }

  body[data-route="dashboard"] .dash-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
  }

  @media (max-width: 720px) {
    body[data-route="dashboard"] .dash-quick-actions {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  body[data-route="dashboard"] .dash-quick-action {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border-radius: var(--ws-radius);
    border: 1px solid var(--ws-border);
    background: var(--ws-card);
    color: var(--ws-text);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  }

  body[data-route="dashboard"] .dash-quick-action:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 135, 90, 0.35);
    box-shadow: var(--ws-shadow);
    color: var(--ws-text);
  }

  body[data-route="dashboard"] .dash-quick-action__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 10px;
    background: var(--ws-accent-soft);
    color: var(--ws-accent);
    flex-shrink: 0;
  }

  body[data-route="dashboard"] .dash-overview-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1rem;
  }

  body[data-route="dashboard"] .dash-module {
    grid-column: span 6;
    display: block;
    padding: 1.15rem 1.25rem 1.05rem;
    border-radius: var(--ws-radius);
    border: 1px solid var(--ws-border);
    background: var(--ws-card);
    color: var(--ws-text);
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  }

  body[data-route="dashboard"] .dash-module:hover {
    transform: translateY(-2px);
    box-shadow: var(--ws-shadow);
    color: var(--ws-text);
  }

  body[data-route="dashboard"] .dash-module--weight {
    border-top: 3px solid #059669;
  }

  body[data-route="dashboard"] .dash-module--nutrition {
    grid-column: span 6;
    border-top: 3px solid #0284c7;
  }

  body[data-route="dashboard"] .dash-module--activities {
    border-top: 3px solid #ea580c;
  }

  body[data-route="dashboard"] .dash-module--goals {
    border-top: 3px solid #7c3aed;
  }

  @media (min-width: 1200px) {
    body[data-route="dashboard"] .dash-module--weight,
    body[data-route="dashboard"] .dash-module--nutrition {
      grid-column: span 6;
    }
    body[data-route="dashboard"] .dash-module--activities,
    body[data-route="dashboard"] .dash-module--goals {
      grid-column: span 6;
    }
  }

  body[data-route="dashboard"] .dash-module__icon {
    display: inline-flex;
    margin-bottom: 0.55rem;
    color: inherit;
    opacity: 0.9;
  }

  body[data-route="dashboard"] .dash-module--weight .dash-module__icon { color: #059669; }
  body[data-route="dashboard"] .dash-module--nutrition .dash-module__icon { color: #0284c7; }
  body[data-route="dashboard"] .dash-module--activities .dash-module__icon { color: #ea580c; }
  body[data-route="dashboard"] .dash-module--goals .dash-module__icon { color: #7c3aed; }

  body[data-route="dashboard"] .dash-module__title {
    margin: 0 0 0.65rem;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.01em;
  }

  body[data-route="dashboard"] .dash-module__stats {
    margin: 0;
    display: grid;
    gap: 0.45rem;
  }

  body[data-route="dashboard"] .dash-module__stats > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    font-size: 0.9rem;
  }

  body[data-route="dashboard"] .dash-module__stats dt {
    margin: 0;
    font-weight: 600;
    color: var(--ws-text-secondary);
  }

  body[data-route="dashboard"] .dash-module__stats dd {
    margin: 0;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: right;
  }

  body[data-route="dashboard"] .dash-module__cta dd {
    color: var(--ws-accent);
    font-weight: 800;
  }

  body[data-route="dashboard"] .dash-meals {
    padding: 1.15rem 1.25rem;
    border-radius: var(--ws-radius);
    border: 1px solid var(--ws-border);
    background: var(--ws-card);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  }

  body[data-route="dashboard"] .dash-meals__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
  }

  body[data-route="dashboard"] .dash-meals__head h2 {
    margin: 0 0 0.2rem;
    font-size: 1.15rem;
    font-weight: 800;
  }

  body[data-route="dashboard"] .dash-meals__meta {
    margin: 0;
    font-size: 0.85rem;
    color: var(--ws-text-secondary);
  }

  body[data-route="dashboard"] .dash-meals__actions {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  body[data-route="dashboard"] .dash-meals__actions .btn.primary {
    background: var(--ws-accent);
    color: #fff;
    border-color: transparent;
  }

  body[data-route="dashboard"] .dash-meals__actions .btn.ghost {
    border-color: var(--ws-border);
    color: var(--ws-text);
    font-weight: 700;
  }

  body[data-route="dashboard"] .dash-meals__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
  }

  body[data-route="dashboard"] .dash-meals__table th {
    text-align: left;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ws-text-secondary);
    padding: 0.45rem 0.5rem;
    border-bottom: 1px solid var(--ws-border);
  }

  body[data-route="dashboard"] .dash-meals__table td {
    padding: 0.55rem 0.5rem;
    border-bottom: 1px solid var(--ws-border);
    font-variant-numeric: tabular-nums;
  }

  body[data-route="dashboard"] .dash-meals__table td:first-child {
    font-weight: 700;
    color: var(--ws-text);
  }

  body[data-route="dashboard"] .dash-meals__empty {
    text-align: center;
    padding: 1.25rem !important;
    color: var(--ws-text-secondary);
  }

  body[data-route="dashboard"] .dash-meals__cta {
    color: var(--ws-accent);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 2px;
  }

  body[data-route="dashboard"] .dash-meals__macros {
    margin: 0.65rem 0 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ws-text-secondary);
  }

  body[data-route="dashboard"] .dash-recent h2 {
    margin: 0 0 0.75rem;
    font-size: 1.15rem;
    font-weight: 800;
  }

  body[data-route="dashboard"] .dash-recent-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  @media (max-width: 900px) {
    body[data-route="dashboard"] .dash-recent-grid {
      grid-template-columns: 1fr;
    }
  }

  body[data-route="dashboard"] .dash-recent-card {
    padding: 1rem 1.15rem;
    border-radius: var(--ws-radius);
    border: 1px solid var(--ws-border);
    background: var(--ws-card);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  }

  body[data-route="dashboard"] .dash-recent-card h3 {
    margin: 0 0 0.65rem;
    font-size: 0.95rem;
    font-weight: 800;
  }

  body[data-route="dashboard"] .dash-recent-chart {
    min-height: 4.5rem;
  }

  body[data-route="dashboard"] .dash-spark {
    width: 100%;
    height: auto;
    display: block;
  }

  body[data-route="dashboard"] .dash-spark-line {
    fill: none;
    stroke: #059669;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  body[data-route="dashboard"] .dash-spark-dot {
    fill: #059669;
  }

  body[data-route="dashboard"] .dash-week-bar-row {
    display: grid;
    grid-template-columns: 3.5rem 1fr 4.5rem;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
  }

  body[data-route="dashboard"] .dash-week-bar-track {
    height: 6px;
    border-radius: 99px;
    background: rgba(15, 23, 42, 0.08);
    overflow: hidden;
  }

  body[data-route="dashboard"] .dash-week-bar-fill {
    display: block;
    height: 100%;
    border-radius: 99px;
  }

  body[data-route="dashboard"] .dash-week-bar-fill.deficit {
    background: #059669;
  }

  body[data-route="dashboard"] .dash-week-bar-fill.surplus {
    background: #dc2626;
  }

  body[data-route="dashboard"] .dash-chart-empty {
    margin: 0;
    font-size: 0.85rem;
    color: var(--ws-text-secondary);
    line-height: 1.45;
  }

  /* —— Food Intake dashboard —— */
  body[data-route="food"] .app-main {
    max-width: none;
    padding-left: clamp(1rem, 2vw, 1.75rem);
    padding-right: clamp(1rem, 2vw, 1.75rem);
  }

  body[data-route="food"] .food-intake-shell {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding-bottom: 2rem;
  }

  body[data-route="food"] .food-intake-title {
    margin: 0 0 0.35rem;
    font-size: clamp(1.6rem, 2.5vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ws-text);
  }

  body[data-route="food"] .food-intake-lead {
    margin: 0 0 1.25rem;
    color: var(--ws-text-secondary);
    max-width: 42rem;
  }

  body[data-route="food"] .food-intake-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
    gap: clamp(1rem, 2vw, 1.75rem);
    align-items: start;
  }

  body[data-route="food"] .food-method-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.1rem;
  }

  body[data-route="food"] .food-method-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 1rem 1.05rem;
    border: 2px solid var(--ws-border);
    border-radius: 14px;
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
  }

  body[data-route="food"] .food-method-card__icon {
    margin-bottom: 0.15rem;
  }

  body[data-route="food"] .food-method-card--manual .food-method-card__icon {
    color: #2563eb;
  }

  body[data-route="food"] .food-method-card--photo .food-method-card__icon {
    color: #0d9488;
  }

  body[data-route="food"] .food-method-card--favorites .food-method-card__icon {
    color: #ca8a04;
  }

  body[data-route="food"] .food-method-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.09);
  }

  body[data-route="food"] .food-method-card:hover:not(.is-active) {
    background: #f8fafc;
  }

  body[data-route="food"] .food-method-card--manual:hover:not(.is-active) {
    border-color: rgba(37, 99, 235, 0.5);
  }

  body[data-route="food"] .food-method-card--photo:hover:not(.is-active) {
    border-color: rgba(13, 148, 136, 0.55);
    background: linear-gradient(160deg, #f0fdfa 0%, #fff 85%);
  }

  body[data-route="food"] .food-method-card--favorites:hover:not(.is-active) {
    border-color: rgba(202, 138, 4, 0.55);
    background: linear-gradient(160deg, #fffbeb 0%, #fff 85%);
  }

  body[data-route="food"] .food-method-card.is-active {
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
  }

  body[data-route="food"] .food-method-card--manual.is-active {
    border-color: #2563eb;
    background: linear-gradient(160deg, #eff6ff 0%, #fff 72%);
  }

  body[data-route="food"] .food-method-card--photo.is-active {
    border-color: #0d9488;
    background: linear-gradient(160deg, #f0fdfa 0%, #fff 72%);
  }

  body[data-route="food"] .food-method-card--favorites.is-active {
    border-color: #ca8a04;
    background: linear-gradient(160deg, #fffbeb 0%, #fff 72%);
  }

  body[data-route="food"] .food-method-card__name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--ws-text);
  }

  body[data-route="food"] .food-method-card__hint {
    font-size: 0.82rem;
    color: var(--ws-text-muted);
  }

  body[data-route="food"] .food-entry-form {
    background: var(--ws-card);
    border: 1px solid var(--ws-border);
    border-radius: var(--ws-radius);
    padding: clamp(1rem, 2vw, 1.35rem);
    box-shadow: var(--ws-shadow);
  }

  body[data-route="food"] .food-field-grid--primary {
    display: grid;
    grid-template-columns: 1.4fr 0.7fr 0.85fr 0.85fr;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
  }

  body[data-route="food"] .food-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ws-text-secondary);
    margin-bottom: 0.25rem;
  }

  body[data-route="food"] .food-field input,
  body[data-route="food"] .food-field select,
  body[data-route="food"] .food-field textarea {
    width: 100%;
    background: var(--ws-input-bg);
    border: 1px solid var(--ws-input-border);
    border-radius: 10px;
    color: var(--ws-text);
    padding: 0.55rem 0.65rem;
    font: inherit;
  }

  body[data-route="food"] .food-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
  }

  body[data-route="food"] .food-btn-ai {
    background: linear-gradient(135deg, #0d9488, #0f766e);
    color: #fff;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
  }

  body[data-route="food"] .food-btn-ai:hover {
    filter: brightness(1.05);
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
  }

  body[data-route="food"] .food-ai-estimate-badge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #0f766e;
    background: #f0fdfa;
    border: 1px solid rgba(13, 148, 136, 0.35);
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    margin-bottom: 0.5rem;
  }

  body[data-route="food"] .food-live-card {
    position: sticky;
    top: 5.5rem;
    background: var(--ws-card);
    border: 1px solid var(--ws-border);
    border-radius: var(--ws-radius);
    padding: 1.15rem 1.2rem;
    box-shadow: var(--ws-shadow);
  }

  body[data-route="food"] .food-live-calories__value {
    margin: 0.15rem 0 0.75rem;
    font-size: clamp(1.85rem, 3vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ws-text);
  }

  body[data-route="food"] .food-macro-pills {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    margin-bottom: 0.85rem;
  }

  body[data-route="food"] .food-macro-pill {
    border-radius: 10px;
    padding: 0.45rem 0.55rem;
    font-size: 0.78rem;
    border: 1px solid transparent;
  }

  body[data-route="food"] .food-macro-pill__k {
    display: block;
    font-weight: 700;
    margin-bottom: 0.1rem;
  }

  body[data-route="food"] .food-macro-pill--protein {
    background: #eff6ff;
    color: #1d4ed8;
  }

  body[data-route="food"] .food-macro-pill--carbs {
    background: #fffbeb;
    color: #b45309;
  }

  body[data-route="food"] .food-macro-pill--fat {
    background: #f1f5f9;
    color: #475569;
  }

  body[data-route="food"] .food-macro-pill--sugar {
    background: #fff7ed;
    color: #c2410c;
  }

  body[data-route="food"] .food-macro-pill--salt {
    background: #ecfeff;
    color: #0e7490;
  }

  body[data-route="food"] .food-macro-pill--fiber {
    background: #ecfdf5;
    color: #047857;
  }

  body[data-route="food"] .food-today-table-wrap {
    overflow-x: auto;
    margin-top: 0.35rem;
  }

  body[data-route="food"] .food-today-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
  }

  body[data-route="food"] .food-today-table th,
  body[data-route="food"] .food-today-table td {
    padding: 0.4rem 0.35rem;
    border-bottom: 1px solid var(--ws-border);
    text-align: left;
  }

  body[data-route="food"] .fav-intake-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
    gap: 0.65rem;
  }

  body[data-route="food"] .fav-intake-card {
    border: 1px solid var(--ws-border);
    border-radius: 12px;
    padding: 0.75rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
  }

  body[data-route="food"] .photo-upload-area.is-dragover {
    border-color: #0d9488;
    background: #f0fdfa;
  }

  @media (max-width: 1024px) {
    body[data-route="food"] .food-intake-grid {
      grid-template-columns: 1fr;
    }

    body[data-route="food"] .food-live-card {
      position: static;
    }

    body[data-route="food"] .food-field-grid--primary {
      grid-template-columns: 1fr 1fr;
    }
  }

  @media (max-width: 640px) {
    body[data-route="food"] .food-method-cards {
      grid-template-columns: 1fr;
    }

    body[data-route="food"] .food-field-grid--primary {
      grid-template-columns: 1fr;
    }

    body[data-route="food"] .app-main {
      padding-bottom: env(safe-area-inset-bottom, 0);
    }
  }

  /* —— Food & Activity legacy / activity —— */
  body[data-route="food"] .food-intake-hub,
  body[data-route="activity"] .activity-panel {
    width: 100%;
    margin: 0 auto;
  }

  body[data-route="food"] .food-panel.panel,
  body[data-route="food"] .fav-hub-card.panel,
  body[data-route="activity"] .activity-panel.panel {
    background: var(--ws-card);
    border: 1px solid var(--ws-border);
    border-radius: var(--ws-radius);
    box-shadow: var(--ws-shadow);
    color: var(--ws-text);
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
  }

  body[data-route="food"] .food-panel h1,
  body[data-route="food"] .fav-page-title,
  body[data-route="activity"] .activity-panel h1 {
    color: var(--ws-text);
  }

  body[data-route="food"] .food-panel h1::after,
  body[data-route="activity"] .activity-panel h1::after {
    content: "";
    display: block;
    width: 2.75rem;
    height: 3px;
    margin-top: 0.45rem;
    border-radius: 2px;
    background: var(--ws-accent);
  }

  body[data-route="food"] .page-back a,
  body[data-route="food"] .fav-page-back a,
  body[data-route="activity"] .page-back a {
    color: var(--ws-text-secondary);
    font-weight: 600;
  }

  body[data-route="food"] .page-back a:hover,
  body[data-route="activity"] .page-back a:hover {
    color: var(--ws-accent);
  }

  body[data-route="food"] .food-tabs {
    border-bottom-color: var(--ws-border);
  }

  body[data-route="food"] .food-tab {
    color: var(--ws-text-muted);
  }

  body[data-route="food"] .food-tab:hover {
    color: var(--ws-text);
  }

  body[data-route="food"] .food-tab.active,
  body[data-route="food"] a.food-tab.food-tab-link {
    color: var(--ws-accent);
  }

  body[data-route="food"] .food-form-labeled label,
  body[data-route="activity"] .quick-form input::placeholder {
    color: var(--ws-text-secondary);
  }

  body[data-route="food"] .food-form-labeled input[type="text"],
  body[data-route="food"] .food-form-labeled input[type="number"],
  body[data-route="food"] .food-form-labeled textarea,
  body[data-route="activity"] .quick-form input {
    background: var(--ws-input-bg);
    border-color: var(--ws-input-border);
    color: var(--ws-text);
  }

  body[data-route="food"] .photo-upload-area {
    background: #f8fafc;
    border-color: var(--ws-border);
    color: var(--ws-text-secondary);
  }

  body[data-route="food"] .photo-upload-area:hover {
    border-color: var(--ws-accent);
    color: var(--ws-text);
  }

  body[data-route="food"] .photo-ai-block,
  body[data-route="food"] .photo-results {
    color: var(--ws-text);
  }

  body[data-route="food"] .fav-page-title {
    color: var(--ws-text);
  }

  body[data-route="food"] .fav-create-panel {
    background: linear-gradient(152deg, #fffbeb 0%, #ffffff 70%);
    border-color: rgba(180, 83, 9, 0.28);
  }

  body[data-route="food"] .fav-create-title {
    color: #b45309;
  }

  body[data-route="food"] .fav-empty {
    background: #f8fafc;
    border-color: var(--ws-border);
  }

  body[data-route="food"] .fav-empty-text {
    color: var(--ws-text-secondary);
  }

  body[data-route="food"] .fav-meal-card {
    background: var(--ws-card);
    border: 1px solid var(--ws-border);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    color: var(--ws-text);
  }

  body[data-route="food"] .fav-meal-card--amber {
    --fav-accent: #b45309;
    --fav-bg: linear-gradient(152deg, #fffbeb 0%, #ffffff 62%);
    --fav-border: rgba(180, 83, 9, 0.28);
    --fav-icon-bg: rgba(180, 83, 9, 0.1);
    --fav-icon-border: rgba(180, 83, 9, 0.2);
  }

  body[data-route="food"] .fav-meal-card--green {
    --fav-accent: #047857;
    --fav-bg: linear-gradient(152deg, #ecfdf5 0%, #ffffff 62%);
    --fav-border: rgba(5, 150, 105, 0.28);
    --fav-icon-bg: rgba(5, 150, 105, 0.1);
    --fav-icon-border: rgba(5, 150, 105, 0.2);
  }

  body[data-route="food"] .fav-meal-card--cyan {
    --fav-accent: #0369a1;
    --fav-bg: linear-gradient(152deg, #eff6ff 0%, #ffffff 62%);
    --fav-border: rgba(3, 105, 161, 0.26);
    --fav-icon-bg: rgba(3, 105, 161, 0.1);
    --fav-icon-border: rgba(3, 105, 161, 0.2);
  }

  body[data-route="food"] .fav-meal-card--rose {
    --fav-accent: #e11d48;
    --fav-bg: linear-gradient(152deg, #fff1f2 0%, #ffffff 62%);
    --fav-border: rgba(225, 29, 72, 0.26);
    --fav-icon-bg: rgba(225, 29, 72, 0.1);
    --fav-icon-border: rgba(225, 29, 72, 0.2);
  }

  body[data-route="food"] .fav-meal-card--violet {
    --fav-accent: #6d28d9;
    --fav-bg: linear-gradient(152deg, #f5f3ff 0%, #ffffff 62%);
    --fav-border: rgba(109, 40, 217, 0.26);
    --fav-icon-bg: rgba(109, 40, 217, 0.1);
    --fav-icon-border: rgba(109, 40, 217, 0.2);
  }

  body[data-route="food"] .fav-meal-name {
    color: var(--ws-text);
  }

  body[data-route="activity"] .section-label {
    color: var(--ws-text);
    font-weight: 700;
  }

  body[data-route="activity"] .entry-list li {
    border-bottom-color: var(--ws-border);
    color: var(--ws-text);
  }

  body[data-route="activity"] .entry-list li.empty {
    color: var(--ws-text-muted);
  }

  /* —— Platform admin (desktop light) —— */
  body[data-route="admin"] .app-main {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
  }

  body[data-route="admin"] .admin-platform {
    grid-template-columns: 300px minmax(0, 1fr);
    min-height: calc(100dvh - var(--gz-header-h));
  }

  body[data-route="admin"] .admin-side {
    width: 300px;
    background: var(--ws-card);
    border-right: 1px solid var(--ws-border);
    box-shadow: 2px 0 12px rgba(15, 23, 42, 0.04);
  }

  body[data-route="admin"] .admin-side-brand {
    border-bottom-color: var(--ws-border);
  }

  body[data-route="admin"] .admin-side-eyebrow {
    color: var(--gz-text-muted);
    font-size: 0.72rem;
  }

  body[data-route="admin"] .admin-side-title {
    color: var(--ws-text);
    font-size: 1.1rem;
  }

  body[data-route="admin"] .admin-side-group-head {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: var(--ws-accent);
    padding: 0.6rem 0.5rem;
  }

  body[data-route="admin"] .admin-side-group-head svg {
    width: 1.15rem;
    height: 1.15rem;
  }

  body[data-route="admin"] .admin-side-link {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ws-text-secondary);
    padding: 0.62rem 0.75rem;
  }

  body[data-route="admin"] .admin-side-sublink {
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--ws-text-secondary);
    padding: 0.58rem 0.75rem 0.58rem 1.4rem;
  }

  body[data-route="admin"] .admin-side-link svg {
    width: 1.2rem;
    height: 1.2rem;
  }

  body[data-route="admin"] .admin-side-link:hover,
  body[data-route="admin"] .admin-side-sublink:hover {
    background: #f8fafc;
    border-color: var(--ws-border);
    color: var(--ws-text);
  }

  body[data-route="admin"] .admin-side-link.active,
  body[data-route="admin"] .admin-side-sublink.active {
    background: var(--ws-accent-soft);
    border-color: rgba(0, 135, 90, 0.35);
    color: #047857;
  }

  body[data-route="admin"] .admin-main {
    padding: var(--gz-gap-header-main) var(--gz-main-pad-x) 3rem;
    background: transparent;
  }

  body[data-route="admin"] .admin-dash-hero {
    background: var(--ws-card);
    border: 1px solid var(--ws-border);
    box-shadow: var(--ws-shadow);
  }

  body[data-route="admin"] .admin-dash-title {
    color: var(--ws-text);
    font-size: var(--gz-text-h1);
    font-weight: var(--gz-weight-h1);
  }

  body[data-route="admin"] .admin-dash-sub {
    color: var(--ws-text-secondary);
    font-size: var(--gz-text-secondary-size);
  }

  body[data-route="admin"] .admin-prod-badge {
    color: #047857;
    background: var(--ws-accent-soft);
    border-color: rgba(0, 135, 90, 0.28);
    font-size: 0.8rem;
  }

  body[data-route="admin"] .admin-section-block {
    background: var(--ws-card);
    border-color: var(--ws-border);
    box-shadow: var(--ws-shadow);
  }

  body[data-route="admin"] .admin-section-block.priority {
    border-color: rgba(0, 135, 90, 0.3);
    background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 55%);
  }

  body[data-route="admin"] .admin-section-header h2 {
    color: var(--ws-text);
    font-size: var(--gz-text-h3);
  }

  body[data-route="admin"] .admin-section-sub {
    color: var(--ws-text-secondary);
  }

  body[data-route="admin"] .admin-stat-card {
    background: #f8fafc;
    border-color: var(--ws-border);
  }

  body[data-route="admin"] .admin-stat-card-contents strong {
    color: var(--ws-text);
  }

  body[data-route="admin"] .admin-stat-label {
    color: var(--ws-text-secondary);
  }

  body[data-route="admin"] .admin-stat-card-badge {
    color: var(--ws-text-muted);
    background: #fff;
    border-color: var(--ws-border);
  }

  body[data-route="admin"] .admin-block-title {
    color: var(--ws-text);
  }

  body[data-route="admin"] .admin-muted-panel {
    background: #f8fafc;
    border-color: var(--ws-border);
    color: var(--ws-text-secondary);
  }

  body[data-route="admin"] .admin-table-wrap {
    border-color: var(--ws-border);
    background: var(--ws-card);
  }

  body[data-route="admin"] .admin-table th {
    color: var(--ws-text-muted);
    background: #f8fafc;
  }

  body[data-route="admin"] .admin-table th,
  body[data-route="admin"] .admin-table td {
    border-bottom-color: var(--ws-border);
    color: var(--ws-text);
  }

  body[data-route="admin"] .admin-dim {
    color: var(--ws-text-muted);
  }

  body[data-route="admin"] .admin-message-success {
    background: #ecfdf5;
    border-color: rgba(0, 135, 90, 0.28);
    color: #047857;
  }

  body[data-route="admin"] .admin-message-error {
    background: #fef2f2;
    border-color: rgba(220, 38, 38, 0.25);
    color: #b91c1c;
  }

  body[data-route="admin"] .admin-message-info {
    background: #eff6ff;
    border-color: rgba(37, 99, 235, 0.25);
    color: #1d4ed8;
  }

}

@media (min-width: 1100px) {
  body[data-route="profile"] .personal-modules {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* —— Settings: units & timezone —— */
body[data-route="settings"] .settings-section + .settings-section {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--ws-border);
}

body[data-route="settings"] .settings-section__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ws-text);
}

body[data-route="settings"] .settings-section__lead {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--ws-text-secondary);
  max-width: 42rem;
}

body[data-route="settings"] .settings-unit-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr));
  gap: 0.85rem;
}

body[data-route="settings"] .settings-unit-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  text-align: left;
  border: 2px solid var(--ws-border);
  border-radius: 12px;
  background: #fff;
  color: var(--ws-text);
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

body[data-route="settings"] .settings-unit-card:hover {
  border-color: rgba(0, 135, 90, 0.45);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

body[data-route="settings"] .settings-unit-card.is-active {
  border-color: var(--ws-accent, #00875a);
  background: linear-gradient(180deg, #ecfdf5 0%, #fff 70%);
  box-shadow: 0 0 0 1px rgba(0, 135, 90, 0.2);
}

body[data-route="settings"] .settings-unit-card__icon {
  color: var(--ws-accent, #00875a);
  opacity: 0.9;
}

body[data-route="settings"] .settings-unit-card__name {
  font-weight: 600;
  font-size: 1rem;
}

body[data-route="settings"] .settings-unit-card__examples {
  font-size: 0.82rem;
  color: var(--ws-text-muted);
}

body[data-route="settings"] .settings-tz-list-wrap {
  margin-top: 0.5rem;
}

body[data-route="settings"] .settings-tz-list {
  width: 100%;
  max-width: 28rem;
  font-family: inherit;
  font-size: 0.9rem;
  border: 1px solid var(--ws-border);
  border-radius: 10px;
  padding: 0.35rem;
  background: #fff;
  color: var(--ws-text);
}

body[data-route="settings"] .settings-tz-list:focus {
  outline: 2px solid rgba(0, 135, 90, 0.35);
  outline-offset: 1px;
}

body[data-route="settings"] .settings-tz-list option {
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
}

.height-input-imperial {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem;
}

.height-input-imperial .ws-field {
  flex: 1 1 5rem;
  min-width: 4.5rem;
}

.height-input-imperial .height-sep {
  align-self: center;
  color: var(--ws-text-muted);
  font-size: 0.9rem;
  padding-bottom: 0.55rem;
}