/**
 * gZone authenticated web app — global desktop design tokens (≥900px).
 * Landing page unchanged; mobile uses base app.css.
 */
@media (min-width: 900px) {
  :root {
  --gz-bg-main: #f1f5f9;
  --gz-bg-card: #ffffff;
  --gz-text-primary: #0f172a;
  --gz-text-secondary: #334155;
  --gz-text-muted: #64748b;
  --gz-brand-green: #00875a;
  --gz-neon-green: #00ff9d;
  --gz-header-title-color: var(--gz-neon-green);
  --gz-border: #cbd5e1;

  --gz-font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gz-text-h1: 32px;
  --gz-weight-h1: 800;
  --gz-text-h2: 24px;
  --gz-weight-h2: 700;
  --gz-text-h3: 18px;
  --gz-weight-h3: 700;
  --gz-text-card-title: 16px;
  --gz-weight-card-title: 600;
  --gz-text-body: 15px;
  --gz-weight-body: 400;
  --gz-text-secondary-size: 14px;
  --gz-weight-secondary: 400;
  --gz-text-label: 14px;
  --gz-weight-label: 600;
  --gz-metric-hero: 56px;
  --gz-weight-hero: 800;
  --gz-metric-primary: 36px;
  --gz-weight-metric-primary: 700;
  --gz-metric-secondary: 26px;
  --gz-weight-metric-secondary: 700;
  --gz-text-unit: 14px;
  --gz-weight-unit: 500;

  --gz-header-h: 88px;
  --gz-header-logo-max-h: 80px;
  --gz-header-pad-x: 24px;
  --gz-header-title: 24px;
  --gz-header-tagline: 13px;

  --gz-main-max: 1440px;
  --gz-main-pad-x: 32px;
  --gz-gap-header-main: 32px;
  --gz-gap-section: 32px;
  --gz-gap-card: 20px;
  }

  /* —— Global app header (all /app routes) —— */
  .app-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    width: 100%;
    max-width: none;
    min-height: var(--gz-header-h);
    height: var(--gz-header-h);
    padding: 0 var(--gz-header-pad-x);
    box-sizing: border-box;
    background: #000000;
    border-bottom: 1px solid rgba(16, 185, 129, 0.25);
    box-shadow: none;
  }

  .app-header .header-logo-link {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    max-height: var(--gz-header-logo-max-h);
  }

  .app-header .header-logo {
    display: block;
    width: auto;
    max-height: var(--gz-header-logo-max-h);
    height: var(--gz-header-logo-max-h);
    max-width: min(280px, 34vw);
    object-fit: contain;
    filter: none;
    border-radius: 0;
  }

  .app-header .header-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    min-width: 0;
    padding: 0;
    width: max-content;
    max-width: min(100vw - 11rem, 26rem);
    pointer-events: none;
  }

  .app-header .header-title {
    margin: 0;
    font-family: var(--gz-font);
    font-size: var(--gz-header-title);
    font-weight: 700;
    line-height: 1.15;
    color: var(--gz-header-title-color);
    letter-spacing: 0.02em;
    text-shadow: 0 0 18px rgba(0, 255, 157, 0.35);
  }

  .app-header .header-tagline {
    margin: 0.15rem 0 0;
    font-family: var(--gz-font);
    font-size: var(--gz-header-tagline);
    font-weight: 500;
    line-height: 1.25;
    color: var(--gz-brand-green);
    letter-spacing: 0.02em;
  }

  .app-header .header-toolbar {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    padding-right: 0;
    min-width: 0;
  }

  .app-header .header-center {
    z-index: 1;
  }

  .app-header .nav-menu,
  .app-header .nav-actions {
    flex-shrink: 0;
  }

  .app-header .nav-menu-btn,
  .app-header .avatar-btn {
    flex-shrink: 0;
  }

  /* —— Authenticated light workspace shell —— */
  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-bg: var(--gz-bg-main);
    --ws-card: var(--gz-bg-card);
    --ws-text: var(--gz-text-primary);
    --ws-text-secondary: var(--gz-text-secondary);
    --ws-border: var(--gz-border);
    --ws-input-border: var(--gz-border);
    --ws-accent: var(--gz-brand-green);
    --ws-accent-hover: #047857;
    --ws-font: var(--gz-font);
    --accent: var(--gz-brand-green);

    background: var(--gz-bg-main);
    color: var(--gz-text-primary);
    font-family: var(--gz-font);
    font-size: var(--gz-text-body);
    font-weight: var(--gz-weight-body);
    overflow-x: clip;
  }

  body[data-route="today"] .app-main,
  body[data-route="dashboard"] .app-main,
  body[data-route="food"] .app-main,
  body[data-route="activity"] .app-main,
  body[data-route="profile"] .app-main,
  body[data-route="profile-personal"] .app-main,
  body[data-route="profile-weight"] .app-main,
  body[data-route="profile-goals"] .app-main,
  body[data-route="profile-bmi"] .app-main,
  body[data-route="nutrition"] .app-main,
  body[data-route="settings"] .app-main,
  body[data-route="account"] .app-main,
  body[data-route="account-delete"] .app-main {
    width: 100%;
    max-width: var(--gz-main-max);
    margin: 0 auto;
    padding: var(--gz-gap-header-main) var(--gz-main-pad-x) 3.5rem;
    box-sizing: border-box;
    background: transparent;
  }

  .nut-gz-hero__value,
  .nut-gz-macro__value,
  .nut-gz-limit__value,
  .nut-gz-micro__value,
  .personal-module-stats strong {
    font-variant-numeric: tabular-nums;
  }

  /* —— Typography scale (workspace) —— */
  body[data-route="today"] h1,
  body[data-route="dashboard"] h1,
  body[data-route="food"] h1,
  body[data-route="activity"] h1,
  body[data-route="profile"] h1,
  body[data-route="profile-personal"] h1,
  body[data-route="profile-weight"] h1,
  body[data-route="profile-bmi"] h1,
  body[data-route="profile-goals"] h1,
  body[data-route="nutrition"] h1,
  body[data-route="settings"] h1,
  body[data-route="account"] h1,
  body[data-route="account-delete"] h1 {
    font-size: var(--gz-text-h1);
    font-weight: var(--gz-weight-h1);
    color: var(--gz-text-primary);
    line-height: 1.15;
    letter-spacing: -0.02em;
  }

  body[data-route="today"] h2,
  body[data-route="dashboard"] h2,
  body[data-route="food"] h2,
  body[data-route="activity"] h2,
  body[data-route="profile"] h2,
  body[data-route="profile-personal"] h2,
  body[data-route="profile-weight"] h2,
  body[data-route="profile-bmi"] h2,
  body[data-route="profile-goals"] h2,
  body[data-route="nutrition"] h2,
  body[data-route="settings"] h2,
  body[data-route="account"] h2,
  body[data-route="account-delete"] h2 {
    font-size: var(--gz-text-h2);
    font-weight: var(--gz-weight-h2);
    color: var(--gz-text-primary);
    line-height: 1.2;
  }

  body[data-route="today"] h3,
  body[data-route="dashboard"] h3,
  body[data-route="food"] h3,
  body[data-route="activity"] h3,
  body[data-route="profile"] h3,
  body[data-route="profile-personal"] h3,
  body[data-route="profile-weight"] h3,
  body[data-route="profile-bmi"] h3,
  body[data-route="profile-goals"] h3,
  body[data-route="nutrition"] h3,
  body[data-route="settings"] h3,
  body[data-route="account"] h3,
  body[data-route="account-delete"] h3 {
    font-size: var(--gz-text-h3);
    font-weight: var(--gz-weight-h3);
    color: var(--gz-text-primary);
  }

  body[data-route="today"] .muted,
  body[data-route="dashboard"] .muted,
  body[data-route="food"] .muted,
  body[data-route="activity"] .muted,
  body[data-route="profile"] .muted,
  body[data-route="profile-personal"] .muted,
  body[data-route="profile-weight"] .muted,
  body[data-route="profile-bmi"] .muted,
  body[data-route="profile-goals"] .muted,
  body[data-route="nutrition"] .muted,
  body[data-route="settings"] .muted,
  body[data-route="account"] .muted,
  body[data-route="account-delete"] .muted,
  body[data-route="profile"] .muted.small,
  body[data-route="profile-personal"] .muted.small,
  body[data-route="nutrition"] .muted.small {
    color: var(--gz-text-muted);
    font-size: var(--gz-text-secondary-size);
  }

  /* —— Breadcrumb —— */
  .gz-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin: 0 0 var(--gz-gap-section);
    font-size: var(--gz-text-secondary-size);
    font-weight: var(--gz-weight-label);
  }

  .gz-breadcrumb a,
  .gz-breadcrumb a.ws-back-btn {
    display: inline;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    font-size: inherit;
    font-weight: 600;
    line-height: inherit;
    color: var(--gz-text-secondary);
    text-decoration: none;
  }

  .gz-breadcrumb a:hover,
  .gz-breadcrumb a.ws-back-btn:hover {
    color: var(--gz-brand-green);
    text-decoration: underline;
    background: transparent;
    border: none;
    box-shadow: none;
    transform: none;
  }

  .gz-breadcrumb .ws-back-btn__icon {
    display: none;
  }

  .gz-breadcrumb__sep {
    color: var(--gz-text-muted);
    font-weight: 400;
    user-select: none;
  }

  .gz-breadcrumb__current {
    color: var(--gz-text-primary);
    font-weight: 600;
  }

  .nut-intelligence__inner,
  .ws-detail,
  .personal-command {
    width: 100%;
    max-width: var(--gz-main-max);
    margin-left: auto;
    margin-right: auto;
  }
}