/* NEXIVA Active — single light-mode refinement */
:root,
body.theme-light {
  --bg: #f7f4f8;
  --surface: #ffffff;
  --surface2: #f2eef4;
  --surface3: #eae4ed;
  --line: #e3dde6;
  --text: #211c26;
  --muted: #746d78;
  --acid: #7250c7;
  --purple: #7250c7;
  --cyan: #168d86;
  --orange: #c86b56;
  --shadow: 0 14px 42px rgba(58, 42, 71, .075);
  color-scheme: light;
}

html { background: var(--bg); }

body,
body.theme-light {
  color: var(--text);
  background:
    radial-gradient(circle at 5% 4%, rgba(114,80,199,.07), transparent 25rem),
    radial-gradient(circle at 94% 18%, rgba(22,141,134,.055), transparent 24rem),
    var(--bg);
}

body.theme-light .app { max-width: 1180px; padding-inline: 28px; }
body.theme-light .appearance-trigger { display: none !important; }

body.theme-light .topbar {
  background: rgba(247,244,248,.9);
  border-bottom: 1px solid rgba(227,221,230,.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body.theme-light .brand,
body.theme-light h1,
body.theme-light h2,
body.theme-light h3,
body.theme-light h4,
body.theme-light strong { color: var(--text); }

body.theme-light .brand i,
body.theme-light .brand small,
body.theme-light .eyebrow.acid { color: var(--purple); }

body.theme-light .location,
body.theme-light .icon-btn,
body.theme-light .avatar {
  color: var(--text);
  background: rgba(255,255,255,.92);
  border-color: var(--line);
  box-shadow: none;
}

body.theme-light .btn {
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  color: #fff;
  border: 1px solid var(--purple);
  background: var(--purple);
  box-shadow: none;
  font-weight: 780;
}

body.theme-light .btn:hover { transform: translateY(-1px); filter: brightness(.98); box-shadow: 0 8px 20px rgba(114,80,199,.16); }
body.theme-light .btn.ghost { color: var(--text); border-color: var(--line); background: #fff; }
body.theme-light .btn.ghost:hover { border-color: #cfc4d5; background: #fbf9fc; box-shadow: var(--shadow); }
body.theme-light .text-btn { color: var(--purple); }

body.theme-light .view { padding-top: 28px; }
body.theme-light .section { margin-top: 42px; }
body.theme-light .section-head { gap: 20px; align-items: flex-end; }
body.theme-light .section-head h2 { letter-spacing: -.045em; line-height: 1.03; }
body.theme-light .meta,
body.theme-light .muted,
body.theme-light .simple-note { color: var(--muted); }

body.theme-light .hero {
  min-height: 330px;
  padding: clamp(32px, 6vw, 74px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    radial-gradient(circle at 84% 28%, rgba(114,80,199,.13), transparent 22%),
    radial-gradient(circle at 77% 54%, rgba(22,141,134,.09), transparent 26%),
    linear-gradient(135deg, #fff 0%, #f6f1f8 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

body.theme-light .hero-top { display: none; }
body.theme-light .hero > .eyebrow { display: none; }
body.theme-light .hero-copy { color: var(--muted); max-width: 610px; font-size: 16px; line-height: 1.55; }
body.theme-light .hero h1 { max-width: 760px; font-size: clamp(40px, 5.2vw, 62px); line-height: 1; letter-spacing: -.055em; }
body.theme-light .nx-hero-greeting { display: block; margin-bottom: 16px; color: var(--purple); font-size: 12px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
body.theme-light .hero .accent { color: var(--purple); }
body.theme-light .hero-visual { opacity: .72; filter: saturate(.62); }

body.theme-light .quick-dock {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.theme-light .quick-action {
  min-height: 126px;
  padding: 18px;
  display: grid;
  grid-template-columns: 42px 1fr;
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 13px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--text);
  background: #fff;
  box-shadow: 0 8px 26px rgba(58,42,71,.045);
}

body.theme-light .quick-action:hover { transform: translateY(-2px); border-color: #d2c7d8; box-shadow: var(--shadow); }
body.theme-light .quick-action .icon { grid-row: 1 / span 2; width: 42px; height: 42px; padding: 10px; border-radius: 13px; color: var(--purple); background: #f0eafa; }
body.theme-light .quick-action strong { align-self: end; font-size: 15px; line-height: 1.2; }
body.theme-light .quick-action span { align-self: start; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.35; }
body.theme-light .nx-home-legacy-hidden { display: none !important; }
body.theme-light .nx-home-overview { margin-top: 46px; }
body.theme-light .nx-home-focus-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 20px; }
body.theme-light .nx-home-focus-card { min-height: 245px; padding: 24px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 10px 34px rgba(58,42,71,.04); }
body.theme-light .nx-home-focus-icon { width: 48px; height: 48px; display: grid; place-items: center; color: var(--purple); border-radius: 15px; background: #eee8f7; font-size: 14px; font-weight: 900; }
body.theme-light .nx-home-focus-icon svg { width: 22px; height: 22px; }
body.theme-light .nx-home-focus-card.nearby .nx-home-focus-icon { color: #126e69; background: #eaf6f4; }
body.theme-light .nx-home-focus-card.challenge .nx-home-focus-icon { color: #fff; background: var(--purple); }
body.theme-light .nx-home-focus-card > div { margin: 24px 0 18px; }
body.theme-light .nx-home-focus-card > div > span { color: var(--muted); font-size: 11px; font-weight: 780; letter-spacing: .08em; text-transform: uppercase; }
body.theme-light .nx-home-focus-card h3 { margin: 6px 0 8px; font-size: 21px; letter-spacing: -.035em; }
body.theme-light .nx-home-focus-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
body.theme-light .nx-home-focus-card .text-btn { width: max-content; display: inline-flex; align-items: center; gap: 5px; margin-top: auto; }
body.theme-light .nx-home-focus-card .text-btn svg { width: 14px; height: 14px; }
body.theme-light .nx-home-recent { width: 100%; margin-top: 14px; padding: 17px 20px; display: grid; grid-template-columns: 42px 1fr auto; gap: 14px; align-items: center; text-align: left; color: var(--text); border: 1px solid var(--line); border-radius: 19px; background: #fff; font: inherit; cursor: pointer; }
body.theme-light .nx-home-recent > span { width: 42px; height: 42px; display: grid; place-items: center; color: var(--cyan); border-radius: 13px; background: #edf6f5; }
body.theme-light .nx-home-recent > span svg { width: 22px; height: 22px; }
body.theme-light .nx-home-recent > div { display: grid; gap: 2px; }
body.theme-light .nx-home-recent small { color: var(--muted); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; }
body.theme-light .nx-home-recent strong { font-size: 15px; }
body.theme-light .nx-home-recent em { color: var(--muted); font-size: 12px; font-style: normal; }
body.theme-light .nx-home-recent > svg { width: 18px; height: 18px; color: var(--muted); }

body.theme-light .nx-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; margin-top: auto; }
body.theme-light .nx-card-actions .text-btn { margin-top: 0; }
body.theme-light .nx-home-dashboard { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(290px,.45fr); gap: 14px; margin-top: 14px; }
body.theme-light .nx-home-food,
body.theme-light .nx-home-progress-card { min-width: 0; padding: 27px; border: 1px solid var(--line); border-radius: 25px; background: #fff; box-shadow: 0 10px 34px rgba(58,42,71,.04); }
body.theme-light .nx-home-food { display: grid; grid-template-columns: 168px minmax(0,1fr); gap: 28px; align-items: center; background: linear-gradient(135deg,#fff 15%,#f5effa); }
body.theme-light .nx-home-food-ring { width: 158px; height: 158px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--purple) var(--food-progress),#e9e2ef 0); position: relative; }
body.theme-light .nx-home-food-ring::after { content: ""; position: absolute; inset: 12px; border-radius: inherit; background: #fff; box-shadow: inset 0 0 0 1px rgba(111,59,213,.06); }
body.theme-light .nx-home-food-ring > span { position: relative; z-index: 1; display: grid; text-align: center; }
body.theme-light .nx-home-food-ring strong { font-size: 31px; letter-spacing: -.05em; }
body.theme-light .nx-home-food-ring small { color: var(--muted); font-size: 11px; }
body.theme-light .nx-home-food-copy h2 { margin: 6px 0 7px; font-size: 29px; }
body.theme-light .nx-home-food-copy > p { margin-bottom: 17px; color: var(--muted); line-height: 1.55; }
body.theme-light .nx-home-macros { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-bottom: 19px; }
body.theme-light .nx-home-macros span { display: grid; gap: 2px; padding: 11px 12px; color: var(--muted); border: 1px solid #e4dce9; border-radius: 14px; background: rgba(255,255,255,.78); font-size: 10px; }
body.theme-light .nx-home-macros strong { color: var(--text); font-size: 14px; }
body.theme-light .nx-home-progress-card { display: flex; flex-direction: column; color: #fff; border-color: #30283a; background: linear-gradient(155deg,#23202a,#17131e); }
body.theme-light .nx-home-progress-card .eyebrow,
body.theme-light .nx-home-progress-card p { color: #bcb3c4; }
body.theme-light .nx-home-progress-card h2 { margin: 8px 0 6px; font-size: 29px; }
body.theme-light .nx-home-progress-visual { height: 104px; display: grid; grid-template-columns: repeat(7,1fr); align-items: end; gap: 7px; margin: 17px 0 12px; }
body.theme-light .nx-home-progress-visual span { height: var(--h); min-height: 8px; border-radius: 99px; background: linear-gradient(180deg,#9b77e8,#6f3bd5); }
body.theme-light .nx-home-progress-card .text-btn { width: max-content; margin: auto 0 0; padding-left: 0; display: inline-flex; align-items: center; gap: 5px; color: #b79af2; }
body.theme-light .nx-home-progress-card .text-btn svg { width: 14px; height: 14px; }
body.theme-light .nx-home-places { margin-top: 45px; }
body.theme-light .nx-home-places .nx-business-card { min-height: 245px; }
body.theme-light .nx-home-places + .nx-professional-section { margin-top: 54px; padding-top: 42px; border-top: 1px solid var(--line); }

body.theme-light .card,
body.theme-light .nx-block,
body.theme-light .today-card,
body.theme-light .recommendation,
body.theme-light .integration,
body.theme-light .requested-block {
  color: var(--text);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 10px 34px rgba(58,42,71,.045);
}

body.theme-light .today-card.primary,
body.theme-light .recommendation:first-child { background: linear-gradient(140deg, #f1ebf9, #fff); border-color: #dcd0e9; }
body.theme-light .card-media { filter: saturate(.58) brightness(1.25); }
body.theme-light .pill,
body.theme-light .tag,
body.theme-light .chip { color: #5d5562; border-color: var(--line); background: #f5f2f6; }
body.theme-light .chip.active,
body.theme-light .pill.active { color: var(--purple); border-color: #d4c6e7; background: #eee7f7; }
body.theme-light .rating { color: #7d5d2c; }

body.theme-light .bottom-nav {
  min-width: min(760px, calc(100vw - 24px));
  padding: 8px;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 16px 40px rgba(44,31,54,.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

body.theme-light .nav { min-width: 0; flex: 1; min-height: 54px; color: #716a75; border-radius: 15px; background: transparent; }
body.theme-light .nav .icon { width: 20px; height: 20px; }
body.theme-light .nav.active { color: var(--purple); background: #efe9f7; }

body.theme-light .nx-active-tabs {
  gap: 5px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: none;
}

body.theme-light .nx-active-tab { color: var(--muted); border-radius: 13px; background: transparent; }
body.theme-light .nx-active-tab.active { color: var(--purple); background: #eee8f6; }

body.theme-light .nx-page-heading { margin-top: 18px; }
body.theme-light .nx-page-heading h2 { margin: 5px 0 8px; }
body.theme-light .nx-meal-summary { gap: 12px; margin-top: 24px; }
body.theme-light .nx-macro { min-height: 104px; padding: 20px; border: 1px solid var(--line); border-radius: 19px; background: #fff; box-shadow: none; }
body.theme-light .nx-macro strong { font-size: clamp(24px, 3vw, 34px); letter-spacing: -.04em; }
body.theme-light .nx-macro span { margin-top: 5px; color: var(--muted); }

body.theme-light .nx-nutrition-layout { display: grid; grid-template-columns: minmax(320px,.82fr) minmax(0,1.18fr); gap: 28px; align-items: start; }
body.theme-light .nx-food-capture { position: sticky; top: 96px; padding: 28px; border-radius: 25px; }
body.theme-light .nx-food-capture-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 16px; color: var(--purple); background: #eee8f7; }
body.theme-light .nx-food-capture-icon svg { width: 24px; height: 24px; }
body.theme-light .nx-food-capture h3 { margin: 8px 0 7px; font-size: 27px; letter-spacing: -.035em; }
body.theme-light .nx-food-context { margin-top: 22px; }
body.theme-light .nx-food-context textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
body.theme-light .nx-context-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
body.theme-light .nx-context-chips button { padding: 8px 11px; color: #61586a; border: 1px solid var(--line); border-radius: 10px; background: #f8f5f9; font: inherit; font-size: 12px; cursor: pointer; }
body.theme-light .nx-context-chips button:hover { color: var(--purple); border-color: #d2c4e0; background: #f0e9f7; }
body.theme-light .nx-photo-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 18px; }
body.theme-light .nx-photo-label { display: flex; justify-content: center; gap: 8px; margin: 0; cursor: pointer; }
body.theme-light .nx-photo-label svg { width: 18px; height: 18px; }
body.theme-light .nx-food-footnote { margin: 14px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
body.theme-light .nx-food-diary { min-width: 0; }
body.theme-light .nx-meal-group { margin-top: 10px; padding: 21px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
body.theme-light .nx-meal-group:first-of-type { margin-top: 16px; }
body.theme-light .nx-meal-item { border-top-color: var(--line); }
body.theme-light .nx-analysis-preview.active { margin-top: 22px; }
body.theme-light .nx-food-photo { width: 100%; max-height: 290px; object-fit: cover; border-radius: 18px; }
body.theme-light .nx-analysis-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 18px; }
body.theme-light .nx-analysis-heading strong { display: block; margin-top: 4px; font-size: 34px; letter-spacing: -.045em; }
body.theme-light .nx-analysis-heading > span { color: var(--muted); font-size: 12px; }
body.theme-light .nx-analysis-macros { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-top: 12px; }
body.theme-light .nx-analysis-macros span { padding: 10px; color: var(--muted); border-radius: 12px; background: #f5f2f6; font-size: 11px; }
body.theme-light .nx-analysis-macros strong { display: block; margin-bottom: 2px; font-size: 15px; }
body.theme-light .nx-context-used { display: grid; gap: 3px; margin-top: 12px; padding: 12px; color: var(--muted); border-left: 3px solid var(--cyan); border-radius: 8px; background: #f0f7f6; font-size: 12px; }
body.theme-light .nx-estimated-food { margin-top: 9px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fbfafc; }

body.theme-light .nx-field label { color: #69616f; }
body.theme-light .nx-field input,
body.theme-light .nx-field select,
body.theme-light .nx-field textarea,
body.theme-light input,
body.theme-light select,
body.theme-light textarea {
  color: var(--text);
  border-color: var(--line);
  background: #fff;
  box-shadow: none;
}
body.theme-light .nx-field input:focus,
body.theme-light .nx-field select:focus,
body.theme-light .nx-field textarea:focus { border-color: #a993c7; box-shadow: 0 0 0 3px rgba(114,80,199,.09); }

body.theme-light .nx-muscle-grid { gap: 11px; margin-top: 25px; }
body.theme-light .nx-muscle { min-height: 132px; padding: 18px; color: var(--text); border-color: var(--line); border-radius: 20px; background: #fff; }
body.theme-light .nx-muscle:hover { border-color: #d3c7da; box-shadow: var(--shadow); }
body.theme-light .nx-muscle.active { color: var(--purple); border-color: #bca8d5; background: #f1ebf8; box-shadow: none; }
body.theme-light .nx-muscle span { color: var(--muted); }
body.theme-light .nx-zone-icon { color: var(--cyan); }
body.theme-light .nx-exercise-list { gap: 11px; }
body.theme-light .nx-exercise { padding: 19px; color: var(--text); border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: none; }
body.theme-light .nx-exercise-head { align-items: flex-start; }
body.theme-light .nx-exercise-art { color: var(--cyan); background: #edf6f5; }
body.theme-light .nx-routine { position: sticky; top: 96px; border-radius: 22px; }
body.theme-light .nx-exercise-media { display: grid; grid-template-columns: 86px 1fr auto; gap: 18px; align-items: center; margin-bottom: 26px; padding: 20px; border: 1px solid #dcd2e4; border-radius: 22px; background: linear-gradient(135deg,#f2ecf8,#f7f4f8); }
body.theme-light .nx-exercise-media-art { width: 86px; height: 86px; display: grid; place-items: center; color: var(--cyan); border-radius: 20px; background: #fff; }
body.theme-light .nx-exercise-hero-icon { width: 54px; height: 54px; }
body.theme-light .nx-exercise-media-copy { display: grid; gap: 4px; }
body.theme-light .nx-exercise-media-copy span { color: var(--purple); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
body.theme-light .nx-exercise-media-copy strong { font-size: 21px; }
body.theme-light .nx-exercise-media-copy small { color: var(--muted); line-height: 1.4; }
body.theme-light .nx-media-status { padding: 8px 11px; color: #756d79; border: 1px solid var(--line); border-radius: 99px; background: #fff; font-size: 11px; white-space: nowrap; }
body.theme-light .nx-error-mark { color: var(--orange); font-size: 22px; font-weight: 700; }

body.theme-light .nx-business-card { color: var(--text); border-color: var(--line); background: #fff; box-shadow: none; }
body.theme-light .nx-business-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
body.theme-light #explorar > .section-head { display: none; }
body.theme-light .nx-collab { color: #27736f; background: #edf7f5; }
body.theme-light .nx-collab.quiet { color: #766d7a; background: #f3eff4; }
body.theme-light .nx-directory-modes { padding: 4px; border-color: var(--line); background: #eee9f0; }
body.theme-light .nx-directory-modes button { color: var(--muted); }
body.theme-light .nx-directory-modes button.active { color: var(--purple); background: #fff; }
body.theme-light .nx-nearby-actions { display: flex; align-items: center; gap: 9px; }
body.theme-light .nx-nearby-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
body.theme-light .nx-nearby-filters .chip { display: inline-flex; align-items: center; gap: 7px; }
body.theme-light .nx-nearby-filters .nx-vector-icon { width: 18px; height: 18px; }
body.theme-light .nx-nearby-filtered-out { display: none !important; }
body.theme-light #nxNearbyLocation { display: inline-flex; align-items: center; gap: 7px; }
body.theme-light #nxNearbyLocation .nx-ui-icon { width: 17px; height: 17px; }
body.theme-light #nxNearbyLocation.is-ready { color: #126e69; border-color: #b9dcd8; background: #eef8f7; }
body.theme-light .nx-directory-map { border-color: var(--line); background: #eeeaf0; }
body.theme-light .nx-directory-map svg rect { fill: #eeeaf0; }
body.theme-light .nx-directory-map svg g path { stroke: #d6cfd9; }
body.theme-light .nx-directory-map svg .river { stroke: rgba(22,141,134,.25); }
body.theme-light .nx-map-results { border-color: var(--line); background: #fff; }
body.theme-light .nx-map-results button { color: var(--text); border-bottom-color: var(--line); }

body.theme-light .nx-nearby-combined { margin-top: 22px; }
body.theme-light .nx-directory-map-layout { overflow: hidden; border: 1px solid var(--line); border-radius: 25px; background: #fff; box-shadow: var(--shadow); }
body.theme-light .nx-directory-map { min-height: 510px; border: 0; border-radius: 0; }
body.theme-light #nxNearbyLeaflet { position: absolute; inset: 0; z-index: 1; }
body.theme-light .nx-map-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); background: #eeeaf0; font-weight: 750; }
body.theme-light .leaflet-control-zoom a { color: var(--text); }
body.theme-light .leaflet-control-attribution { font-size: 9px; }
body.theme-light .nx-map-caption { z-index: 500; pointer-events: none; }
body.theme-light .nx-place-map-icon { border: 0; background: transparent; }
body.theme-light .nx-place-map-icon > span { width: 42px; height: 42px; display: grid; place-items: center; margin: auto; color: #fff; border: 3px solid #fff; border-radius: 14px 14px 14px 4px; background: linear-gradient(135deg,var(--purple),var(--cyan)); box-shadow: 0 8px 22px rgba(39,28,47,.25); transform: rotate(-45deg); font-size: 11px; font-weight: 920; }
body.theme-light .nx-place-map-icon > span::first-line { transform: rotate(45deg); }
body.theme-light .nx-place-map-icon > strong { display: block; width: max-content; max-width: 120px; margin: 7px 0 0 50%; padding: 4px 7px; color: var(--text); border: 1px solid var(--line); border-radius: 99px; background: rgba(255,255,255,.94); box-shadow: 0 5px 14px rgba(39,28,47,.12); transform: translateX(-50%); font-size: 9px; text-align: center; white-space: nowrap; }
body.theme-light .nx-user-map-icon { border: 0; background: transparent; }
body.theme-light .nx-user-map-icon span { width: 22px; height: 22px; display: block; border: 4px solid #fff; border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 7px rgba(114,80,199,.18),0 5px 15px rgba(0,0,0,.2); }
body.theme-light .nx-map-results { border: 0; border-left: 1px solid var(--line); border-radius: 0; box-shadow: none; }
body.theme-light .nx-map-results button { padding: 17px 18px; }
body.theme-light .nx-professional-section { margin-top: 48px; }
body.theme-light .nx-professional-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 20px; }
body.theme-light .nx-professional-card { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 23px; background: #fff; box-shadow: 0 10px 34px rgba(58,42,71,.04); }
body.theme-light .nx-professional-card > div > span { display: block; margin-top: 22px; color: var(--purple); font-size: 11px; font-weight: 820; letter-spacing: .08em; text-transform: uppercase; }
body.theme-light .nx-professional-card h3 { margin: 6px 0 8px; font-size: 22px; letter-spacing: -.035em; }
body.theme-light .nx-professional-card p { min-height: 58px; margin: 0 0 18px; color: var(--muted); line-height: 1.5; }
body.theme-light .nx-professional-avatar { width: 54px; height: 54px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; border-radius: 18px; background: linear-gradient(135deg,#7250c7,#9578dc); font-weight: 900; letter-spacing: -.03em; }
body.theme-light .nx-professional-card.teal .nx-professional-avatar,
body.theme-light .nx-professional-avatar.teal { background: linear-gradient(135deg,#168d86,#4cb9ae); }
body.theme-light .nx-professional-card.blue .nx-professional-avatar,
body.theme-light .nx-professional-avatar.blue { background: linear-gradient(135deg,#446fa8,#74a4d1); }
body.theme-light .nx-professional-profile { display: flex; gap: 18px; align-items: flex-start; }
body.theme-light .nx-professional-profile .eyebrow { margin-top: 14px; }

body.theme-light .nx-saved-routines { margin: 32px 0 26px; }
body.theme-light .nx-saved-routine-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 16px; }
body.theme-light .nx-saved-routine-card,
body.theme-light .nx-empty-routine { min-height: 142px; padding: 19px; display: flex; gap: 14px; align-items: flex-start; text-align: left; color: var(--text); border: 1px solid var(--line); border-radius: 21px; background: #fff; font: inherit; }
body.theme-light .nx-saved-routine-card > div:nth-child(2) { min-width: 0; flex: 1; }
body.theme-light .nx-saved-routine-card h3 { margin: 2px 0 6px; font-size: 17px; }
body.theme-light .nx-saved-routine-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
body.theme-light .nx-saved-routine-card .actions { margin-top: auto; align-self: flex-end; }
body.theme-light .nx-saved-routine-icon,
body.theme-light .nx-empty-routine > span { width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 auto; color: var(--cyan); border-radius: 14px; background: #edf6f5; }
body.theme-light .nx-saved-routine-icon svg { width: 30px; height: 30px; }
body.theme-light .nx-empty-routine { width: 100%; flex-direction: column; cursor: pointer; }
body.theme-light .nx-empty-routine strong { margin-top: 4px; }
body.theme-light .nx-empty-routine small { color: var(--muted); }
body.theme-light .nx-routine-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }

body.theme-light .nx-progress-overview { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(260px,.55fr); gap: 16px; margin-top: 28px; }
body.theme-light .nx-progress-chart { padding: 26px; margin: 0; }
body.theme-light .nx-streak-pill { padding: 8px 11px; color: var(--purple); border-radius: 99px; background: #eee7f7; font-size: 12px; font-weight: 780; }
body.theme-light .nx-progress-bars { height: 190px; display: grid; grid-template-columns: repeat(7,1fr); gap: 10px; align-items: end; margin-top: 26px; }
body.theme-light .nx-progress-bars > div { height: 100%; display: grid; grid-template-rows: 1fr auto auto; gap: 5px; text-align: center; }
body.theme-light .nx-progress-bar { width: min(34px,100%); height: 100%; display: flex; align-items: flex-end; justify-self: center; overflow: hidden; border-radius: 99px; background: #f1edf3; }
body.theme-light .nx-progress-bar i { width: 100%; min-height: 3px; display: block; border-radius: 99px; background: linear-gradient(180deg,#8a67d4,#7250c7); }
body.theme-light .nx-progress-bars strong { font-size: 11px; text-transform: capitalize; }
body.theme-light .nx-progress-bars small { color: var(--muted); font-size: 10px; }
body.theme-light .nx-progress-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
body.theme-light .nx-progress-kpis > div { padding: 20px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
body.theme-light .nx-progress-kpis strong { font-size: 27px; letter-spacing: -.05em; }
body.theme-light .nx-progress-kpis span { color: var(--muted); font-size: 11px; line-height: 1.4; }
body.theme-light .nx-progress-section { margin-top: 44px; }
body.theme-light .nx-challenge-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; margin-top: 18px; }
body.theme-light .nx-challenge-card { min-height: 255px; padding: 23px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 23px; background: linear-gradient(145deg,#fff,#f5f0f8); }
body.theme-light .nx-challenge-distance { width: 58px; height: 58px; display: grid; place-items: center; color: #fff; border-radius: 18px; background: var(--purple); font-weight: 920; font-size: 18px; }
body.theme-light .nx-challenge-card > div { margin: 22px 0 18px; }
body.theme-light .nx-challenge-card > div > span { color: var(--cyan); font-size: 11px; font-weight: 820; letter-spacing: .08em; text-transform: uppercase; }
body.theme-light .nx-challenge-card h3 { margin: 5px 0 8px; font-size: 19px; }
body.theme-light .nx-challenge-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
body.theme-light .nx-challenge-card .btn { margin-top: auto; align-self: flex-start; }

body.theme-light .nx-share-controls { padding: 28px; }
body.theme-light .nx-share-step { display: grid; grid-template-columns: 30px 1fr; gap: 12px; margin-top: 24px; align-items: start; }
body.theme-light .nx-share-step > span { width: 26px; height: 26px; display: grid; place-items: center; color: var(--purple); border-radius: 99px; background: #eee7f7; font-size: 12px; font-weight: 850; }
body.theme-light .nx-share-step > div { min-width: 0; }
body.theme-light .nx-share-step > div > strong { display: block; margin: 3px 0 11px; }
body.theme-light .nx-share-template { min-height: 68px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 9px; }
body.theme-light .nx-share-template i { width: 28px; height: 20px; display: block; border-radius: 6px; background: linear-gradient(135deg,#ddd2ea,#faf8fc); }
body.theme-light .nx-share-template[data-style="dark"] i { background: linear-gradient(135deg,#11131a,#7250c7); }
body.theme-light .nx-share-template[data-style="route"] i { background: linear-gradient(135deg,#0e2627,#36b2a8); }
body.theme-light .nx-share-template[data-style="photo"] i { background: linear-gradient(135deg,#51754c,#d7c3ad); }
body.theme-light .nx-share-options { margin: 24px 0 0 42px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
body.theme-light .nx-share-options summary { padding: 16px 0; color: var(--text); cursor: pointer; font-weight: 760; }
body.theme-light .nx-share-options .nx-toggle-grid { padding-bottom: 16px; }

body.theme-light .modal { background: rgba(43,34,48,.34); backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); }
body.theme-light .modal-panel { color: var(--text); border-color: var(--line); background: #f8f6f9; box-shadow: 0 30px 80px rgba(37,28,42,.2); }
body.theme-light .close { color: var(--text); border-color: var(--line); background: #fff; }

@media (max-width: 980px) {
  body.theme-light .quick-dock { grid-template-columns: repeat(3, 1fr); }
  body.theme-light .nx-nutrition-layout { grid-template-columns: 1fr; }
  body.theme-light .nx-food-capture,
  body.theme-light .nx-routine { position: static; }
  body.theme-light .nx-professional-grid,
  body.theme-light .nx-challenge-grid,
  body.theme-light .nx-saved-routine-row { grid-template-columns: 1fr 1fr; }
  body.theme-light .nx-progress-overview { grid-template-columns: 1fr; }
  body.theme-light .nx-home-focus-grid { grid-template-columns: 1fr 1fr; }
  body.theme-light .nx-home-dashboard { grid-template-columns: 1fr; }
  body.theme-light .nx-home-progress-card { min-height: 265px; }
}

@media (max-width: 680px) {
  body.theme-light .app { padding-inline: 16px; }
  body.theme-light .view { padding-top: 18px; }
  body.theme-light .hero { min-height: 290px; padding: 29px 23px; border-radius: 26px; }
  body.theme-light .hero h1 { font-size: clamp(38px, 13vw, 56px); }
  body.theme-light .quick-dock { grid-template-columns: 1fr 1fr; gap: 9px; }
  body.theme-light .quick-action { min-height: 105px; padding: 14px; grid-template-columns: 36px 1fr; column-gap: 10px; border-radius: 17px; }
  body.theme-light .quick-action .icon { width: 36px; height: 36px; padding: 8px; }
  body.theme-light .section { margin-top: 32px; }
  body.theme-light .bottom-nav { left: 10px; right: 10px; bottom: 10px; width: auto; min-width: 0; transform: none; border-radius: 19px; }
  body.theme-light .nav { min-width: 0; padding: 7px 2px; font-size: 9px; }
  body.theme-light .nav .icon { width: 18px; height: 18px; }
  body.theme-light .nx-meal-summary { grid-template-columns: 1fr 1fr; }
  body.theme-light .nx-photo-actions { grid-template-columns: 1fr; }
  body.theme-light .nx-analysis-macros { grid-template-columns: 1fr 1fr 1fr; }
  body.theme-light .nx-exercise-media { grid-template-columns: 68px 1fr; }
  body.theme-light .nx-exercise-media-art { width: 68px; height: 68px; }
  body.theme-light .nx-media-status { grid-column: 1 / -1; width: max-content; }
  body.theme-light .nx-nearby-actions { width: 100%; align-items: stretch; flex-direction: column; }
  body.theme-light .nx-directory-map-layout { display: block; }
  body.theme-light .nx-directory-map { min-height: 430px; }
  body.theme-light .nx-map-results { border-left: 0; border-top: 1px solid var(--line); }
  body.theme-light .nx-professional-grid,
  body.theme-light .nx-challenge-grid,
  body.theme-light .nx-saved-routine-row { grid-template-columns: 1fr; }
  body.theme-light .nx-progress-kpis { grid-template-columns: 1fr 1fr; }
  body.theme-light .nx-progress-chart { padding: 20px 15px; }
  body.theme-light .nx-progress-bars { gap: 4px; }
  body.theme-light .nx-progress-bars small { font-size: 8px; }
  body.theme-light .nx-streak-pill { display: none; }
  body.theme-light .nx-routine-actions { grid-template-columns: 1fr; }
  body.theme-light .nx-share-options { margin-left: 0; }
  body.theme-light .nx-home-focus-grid { grid-template-columns: 1fr; }
  body.theme-light .nx-home-focus-card { min-height: 210px; }
  body.theme-light .nx-card-actions { justify-content: space-between; }
  body.theme-light .nx-home-food { grid-template-columns: 1fr; padding: 22px; }
  body.theme-light .nx-home-food-ring { width: 132px; height: 132px; }
  body.theme-light .nx-home-food-ring strong { font-size: 27px; }
  body.theme-light .nx-home-food-copy h2 { font-size: 25px; }
  body.theme-light .nx-home-macros { gap: 6px; }
  body.theme-light .nx-home-macros span { padding: 9px; }
  body.theme-light .nx-home-food .actions { display: grid; grid-template-columns: 1fr; }
  body.theme-light .nx-home-progress-card { min-height: 245px; padding: 22px; }
  body.theme-light .nx-home-places .section-head,
  body.theme-light .nx-professional-section .section-head { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  body.theme-light *, body.theme-light *::before, body.theme-light *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* NEXIVA Active — mobile performance and clarity pass */
html,
body { width: 100%; max-width: 100%; overflow-x: hidden; overscroll-behavior-x: none; }
body.theme-light .app,
body.theme-light main,
body.theme-light .view,
body.theme-light .section,
body.theme-light .section-head,
body.theme-light .nx-panel,
body.theme-light .nx-block,
body.theme-light .modal-panel { min-width: 0; max-width: 100%; }
body.theme-light .view { animation-duration: .16s; }
body.theme-light img,
body.theme-light svg,
body.theme-light video { max-width: 100%; }
body.theme-light .chips { max-width: 100%; overscroll-behavior-inline: contain; }

body.theme-light .nx-nearby-status {
  min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 14px 0 0; padding: 10px 12px 10px 15px; color: #514759; border: 1px solid #ded2e6;
  border-radius: 14px; background: #f5eff8; font-size: 12px; transition: opacity .18s, transform .18s;
}
body.theme-light .nx-nearby-status.is-hidden { display: none; }
body.theme-light .nx-nearby-status button { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; padding: 0; color: #6c6172; border: 0; border-radius: 50%; background: rgba(255,255,255,.72); }
body.theme-light .nx-nearby-status .nx-ui-icon { width: 17px; height: 17px; }
body.theme-light .nx-directory-map-layout { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(260px,.65fr); }
body.theme-light .nx-directory-map { position: relative; isolation: isolate; overflow: hidden; min-width: 0; }
body.theme-light .nx-map-placeholder { position: absolute; inset: 0; overflow: hidden; z-index: 0; background: #ebe8ee; }
body.theme-light .nx-map-placeholder i { position: absolute; width: 145%; height: 2px; left: -20%; top: 28%; background: #d7d1db; transform: rotate(-16deg); box-shadow: 0 96px #d7d1db,0 210px #d7d1db; }
body.theme-light .nx-map-placeholder i:nth-child(2) { top: 7%; transform: rotate(62deg); box-shadow: 0 112px #d7d1db,0 245px #d7d1db; }
body.theme-light .nx-map-placeholder i:nth-child(3) { top: 48%; height: 18px; opacity: .7; background: #cde4e3; transform: rotate(8deg); box-shadow: none; }
body.theme-light .nx-map-placeholder span { position: absolute; width: 16px; height: 16px; left: 52%; top: 44%; border: 4px solid #fff; border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 7px rgba(114,80,199,.16); }
body.theme-light #nxNearbyLeaflet,
body.theme-light #nxNearbyMap { position: absolute; inset: 0; z-index: 1; background: transparent; }
body.theme-light .nx-map-loading { z-index: 2; gap: 8px; align-content: center; padding: 24px; background: rgba(247,244,248,.72); backdrop-filter: blur(2px); transition: opacity .2s; }
body.theme-light .nx-map-loading.is-ready { opacity: 0; pointer-events: none; }
body.theme-light .nx-map-loading strong { color: var(--text); font-size: 14px; }
body.theme-light .nx-map-loading small { color: var(--muted); font-size: 11px; }
body.theme-light .nx-map-loader { width: 26px; height: 26px; margin: 0 auto 3px; border: 3px solid #ddd3e5; border-top-color: var(--purple); border-radius: 50%; animation: nxSpin .75s linear infinite; }
@keyframes nxSpin { to { transform: rotate(360deg); } }
body.theme-light .nx-map-caption { left: 12px; right: auto; bottom: 12px; width: auto; max-width: calc(100% - 84px); padding: 9px 12px; border: 1px solid rgba(225,218,230,.92); border-radius: 14px; background: rgba(255,255,255,.92); box-shadow: 0 7px 22px rgba(43,35,49,.1); backdrop-filter: blur(10px); }
body.theme-light .nx-map-caption strong,
body.theme-light .nx-map-caption span { display: block; }
body.theme-light .nx-map-caption span { margin-top: 2px; color: var(--muted); font-size: 10px; }
body.theme-light .leaflet-tile-pane { filter: saturate(.82) contrast(.96) hue-rotate(3deg); }
body.theme-light .leaflet-bar { overflow: hidden; border: 1px solid var(--line) !important; border-radius: 13px; box-shadow: 0 8px 20px rgba(42,33,47,.1) !important; }
body.theme-light .leaflet-bar a { width: 38px; height: 38px; line-height: 38px; border: 0; background: rgba(255,255,255,.96); }
body.theme-light .nx-place-map-icon > span { transform: none; border-radius: 15px; }
body.theme-light .nx-place-map-icon > strong { margin-top: 5px; }
body.theme-light .nx-map-results { min-width: 0; max-height: 510px; overflow-y: auto; overscroll-behavior: contain; }
body.theme-light .nx-map-results button { width: 100%; min-width: 0; grid-template-columns: auto minmax(0,1fr) auto; text-align: left; }
body.theme-light .nx-map-results button > span:nth-child(2) { min-width: 0; }
body.theme-light .nx-map-results button strong,
body.theme-light .nx-map-results button small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.theme-light .nx-map-results button > .nx-ui-icon { width: 17px; height: 17px; color: #aaa0af; }
body.theme-light .nx-map-results button em { display: block; margin-top: 4px; overflow: hidden; color: #7a55bd; font-size: 9px; font-style: normal; font-weight: 780; text-overflow: ellipsis; white-space: nowrap; }
body.theme-light .nx-map-pin-v2 { position: relative; width: 48px; height: 48px; display: grid; place-items: center; padding: 0; color: #fff; border: 4px solid #fff; border-radius: 17px 17px 17px 5px; background: linear-gradient(135deg,#7650ca,#198f88); box-shadow: 0 10px 26px rgba(39,28,47,.28); cursor: pointer; transform: rotate(-8deg); }
body.theme-light .nx-map-pin-v2 span { font-size: 11px; font-weight: 920; }
body.theme-light .nx-map-pin-v2 strong { position: absolute; top: 49px; left: 50%; width: max-content; max-width: 126px; padding: 4px 7px; overflow: hidden; color: #281f30; border: 1px solid #ddd3e4; border-radius: 999px; background: rgba(255,255,255,.96); box-shadow: 0 5px 15px rgba(39,28,47,.12); font-size: 9px; text-overflow: ellipsis; transform: translateX(-50%) rotate(8deg); white-space: nowrap; }
body.theme-light .nx-map-pin-v2.promoted { background: linear-gradient(135deg,#e38a56,#c55d78); }
body.theme-light .nx-user-map-dot { width: 24px; height: 24px; display: block; border: 4px solid #fff; border-radius: 50%; background: #7250c7; box-shadow: 0 0 0 8px rgba(114,80,199,.18),0 5px 15px rgba(0,0,0,.24); }
body.theme-light .maplibregl-ctrl-group { overflow: hidden; border: 1px solid #ddd3e4; border-radius: 13px; box-shadow: 0 8px 22px rgba(42,33,47,.12); }
body.theme-light .maplibregl-ctrl-group button { background-color: rgba(255,255,255,.97); }
body.theme-light .maplibregl-ctrl-attrib { color: #756a7b; background: rgba(255,255,255,.86); font-size: 8px; }
body.theme-light .nx-benefit { width: max-content; max-width: 100%; display: inline-flex; align-items: center; gap: 6px; margin: 9px 0 4px; padding: 7px 9px; color: #7a4772; border: 1px solid #eccfe2; border-radius: 999px; background: #fff4fa; font-size: 10px; font-weight: 800; }
body.theme-light .nx-benefit .nx-ui-icon { width: 15px; height: 15px; }
body.theme-light .nx-collab.member { color: #8b4e2e; border-color: #e6b991; background: #fff3e7; }

body.theme-light .nx-food-capture { border: 0; color: #fff; background: linear-gradient(150deg,#7651c9 0%,#5c3ba7 58%,#315d76 130%); box-shadow: 0 20px 50px rgba(87,57,142,.22); }
body.theme-light .nx-food-capture h3,
body.theme-light .nx-food-capture .eyebrow,
body.theme-light .nx-food-capture .meta,
body.theme-light .nx-food-capture .nx-food-footnote { color: #fff; }
body.theme-light .nx-food-capture .meta,
body.theme-light .nx-food-capture .nx-food-footnote { opacity: .76; }
body.theme-light .nx-food-capture-icon { color: #fff; background: rgba(255,255,255,.15); }
body.theme-light .nx-food-steps { display: flex; gap: 6px; margin: 20px 0 14px; }
body.theme-light .nx-food-steps span { padding: 7px 9px; border-radius: 99px; color: rgba(255,255,255,.7); background: rgba(255,255,255,.1); font-size: 10px; }
body.theme-light .nx-food-steps span.active { color: #53369a; background: #fff; font-weight: 800; }
body.theme-light .nx-food-capture .nx-field label,
body.theme-light .nx-food-capture .nx-field small { color: rgba(255,255,255,.85); }
body.theme-light .nx-food-capture .nx-field small { display: block; margin-top: 7px; font-size: 10px; line-height: 1.4; }
body.theme-light .nx-food-capture .nx-field textarea { color: #211c26; border: 0; background: #fff; }
body.theme-light .nx-food-capture .btn { color: var(--purple); border-color: #fff; background: #fff; }
body.theme-light .nx-food-capture .btn.ghost { color: #fff; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.08); }
body.theme-light .nx-photo-actions.is-locked { opacity: .48; }
body.theme-light .nx-photo-actions.is-locked::before { content: "Escribe el contexto para activar la cámara"; grid-column: 1 / -1; color: rgba(255,255,255,.88); font-size: 11px; }
body.theme-light .nx-photo-actions.is-locked label { pointer-events: none; }
body.theme-light .nx-meal-group { overflow: hidden; border-left: 4px solid #bea8d7; }
body.theme-light .nx-meal-group:nth-child(3) { border-left-color: #77b8b2; }
body.theme-light .nx-meal-group:nth-child(4) { border-left-color: #e1a776; }
body.theme-light .nx-meal-group:nth-child(5) { border-left-color: #e38c9f; }
body.theme-light .nx-meal-empty { margin-top: 10px; padding: 14px; color: var(--muted); border-radius: 13px; background: #f8f5f9; font-size: 12px; }
body.theme-light .nx-add-snack { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; color: #8b4660; border: 1px dashed #e5b8c8; border-radius: 13px; background: #fff5f8; font: inherit; font-weight: 760; }
body.theme-light .nx-add-snack .nx-ui-icon { width: 18px; height: 18px; }
body.theme-light .nx-meal-summary { align-items: stretch; }
body.theme-light .nx-meal-summary .nx-macro { min-height: 112px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px 12px; text-align: center; }
body.theme-light .nx-meal-summary .nx-macro strong,
body.theme-light .nx-meal-summary .nx-macro span { width: 100%; text-align: center; }

body.theme-light .nx-muscle { position: relative; text-align: left; }
body.theme-light .nx-muscle > .nx-ui-icon { position: absolute; right: 15px; bottom: 17px; width: 18px; height: 18px; color: #93899a; }
body.theme-light .nx-muscle.has-selected { border-color: #8664cf; background: linear-gradient(145deg,#fff,#f2ebfb); box-shadow: inset 0 0 0 1px rgba(114,80,199,.18); }
body.theme-light .nx-muscle-picker { padding-bottom: 105px; }
body.theme-light .nx-muscle-picker-head { display: flex; align-items: center; gap: 18px; }
body.theme-light .nx-muscle-picker-head > .nx-zone-icon { width: 74px; height: 74px; flex: 0 0 auto; padding: 9px; color: #7250c7; border-radius: 22px; background: #f0e9fa; }
body.theme-light .nx-muscle-picker-head h2 { margin: 4px 0; }
body.theme-light .nx-muscle-picker .nx-exercise-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
body.theme-light .nx-muscle-picker-dock { position: sticky; z-index: 8; bottom: -1px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 24px -17px -105px; padding: 13px 18px calc(13px + env(safe-area-inset-bottom)); border-top: 1px solid #ddd3e4; background: rgba(255,255,255,.95); box-shadow: 0 -12px 35px rgba(50,38,60,.1); backdrop-filter: blur(14px); }
body.theme-light .nx-muscle-picker-dock span { color: var(--muted); font-size: 12px; }
body.theme-light .nx-muscle-picker-dock strong { color: var(--purple); font-size: 20px; }
body.theme-light .nx-routine-standalone > .nx-routine { max-width: 760px; margin-inline: auto; }

/* Text-only exercise library: compact, searchable, and usable on a phone. */
body.theme-light .nx-catalog-source { display: block; margin-top: 10px; color: #756d7e; font-size: 12px; line-height: 1.45; }
body.theme-light .nx-catalog-source a,
body.theme-light .nx-catalog-credit a { color: #6643bc; text-decoration: underline; text-underline-offset: 3px; }
body.theme-light .nx-catalog-tools { display: grid; grid-template-columns: minmax(0,1fr) 185px; gap: 10px; align-items: end; }
body.theme-light .nx-catalog-search { min-width: 0; min-height: 48px; display: flex; align-items: center; gap: 9px; border: 1px solid #d9d0e0; border-radius: 14px; padding: 0 13px; color: #65577a; background: #fff; }
body.theme-light .nx-catalog-search:focus-within { border-color: #7957c7; box-shadow: 0 0 0 3px rgba(114,80,199,.12); }
body.theme-light .nx-catalog-search .nx-ui-icon { width: 20px; height: 20px; flex: none; }
body.theme-light .nx-catalog-search input { width: 100%; min-width: 0; height: 46px; border: 0; outline: 0; background: transparent; color: #25212b; font: inherit; }
body.theme-light .nx-catalog-equipment { display: grid; gap: 4px; color: #655b70; font-size: 11px; font-weight: 700; }
body.theme-light .nx-catalog-equipment select { min-width: 0; min-height: 46px; border: 1px solid #d9d0e0; border-radius: 14px; padding: 0 11px; background: #fff; color: #25212b; font: inherit; }
body.theme-light .nx-catalog-subgroups { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 7px; padding: 3px 0 11px; scrollbar-width: thin; }
body.theme-light .nx-catalog-subgroups .chip { flex: none; min-height: 38px; }
body.theme-light .nx-catalog-count { padding: 7px 0 2px; color: #6e6478; font-size: 12px; font-weight: 700; }
body.theme-light .nx-catalog-more { display: block; margin: 0 auto 22px; }
body.theme-light .nx-catalog-quick-note,
body.theme-light .nx-catalog-credit { margin: 0; padding: 0 13px 14px; color: #756d7e; font-size: 12px; }
body.theme-light .nx-catalog-review { margin-top: 15px; padding: 13px 15px; border: 1px solid #e8dcc2; border-radius: 14px; background: #faf7ef; color: #594d34; font-size: 13px; line-height: 1.5; }
body.theme-light .nx-exercise { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; min-width: 0; }
body.theme-light .nx-exercise-head > div { min-width: 0; }
body.theme-light .nx-exercise-head strong { line-height: 1.3; overflow-wrap: anywhere; }
body.theme-light .nx-exercise-actions { margin-top: 0; align-items: center; flex-wrap: wrap; }
body.theme-light .nx-exercise-actions .text-btn { min-height: 40px; }
@media (max-width: 620px) {
  body.theme-light .nx-catalog-tools { grid-template-columns: 1fr; }
  body.theme-light .nx-catalog-equipment { grid-template-columns: auto minmax(0,1fr); align-items: center; }
  body.theme-light .nx-muscle-picker-head > .nx-zone-icon { width: 54px; height: 54px; border-radius: 16px; }
  body.theme-light .nx-exercise { padding: 14px; }
  body.theme-light .nx-exercise-list { gap: 8px; }
}

body.theme-light .nx-plan-builder { background: radial-gradient(circle at 92% 8%,rgba(22,141,134,.08),transparent 28rem); }
body.theme-light .nx-plan-preview { display: flex; align-items: center; gap: 12px; padding: 15px; color: #4f4660; border: 1px solid #d8cbea; border-radius: 16px; background: #f1ebf8; }
body.theme-light .nx-plan-preview > span { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; color: var(--purple); border-radius: 12px; background: #fff; }
body.theme-light .nx-plan-preview strong,
body.theme-light .nx-plan-preview small { display: block; }
body.theme-light .nx-plan-preview small { margin-top: 3px; color: var(--muted); line-height: 1.35; }
body.theme-light .nx-plan-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
body.theme-light .nx-plan-row:last-child { border-bottom: 0; }
body.theme-light .nx-plan-row > div { min-width: 0; }
body.theme-light .nx-plan-row strong,
body.theme-light .nx-plan-row span,
body.theme-light .nx-plan-row small { display: block; }
body.theme-light .nx-plan-row > div span,
body.theme-light .nx-plan-row > div small { margin-top: 3px; color: var(--muted); font-size: 11px; }

body.theme-light .nx-body-progress { margin-top: 44px; padding: 26px; border: 1px solid var(--line); border-radius: 25px; background: linear-gradient(135deg,#fff,#f5eff9); }
body.theme-light .nx-body-progress-grid { display: grid; grid-template-columns: minmax(220px,.55fr) minmax(0,1.45fr); gap: 14px; }
body.theme-light .nx-body-current { min-height: 185px; display: flex; flex-direction: column; justify-content: center; padding: 24px; color: #fff; border-radius: 21px; background: linear-gradient(145deg,#7250c7,#4f3a83); }
body.theme-light .nx-body-current > span,
body.theme-light .nx-body-current small { color: rgba(255,255,255,.72); }
body.theme-light .nx-body-current strong { margin: 7px 0 4px; color: #fff; font-size: 34px; letter-spacing: -.05em; }
body.theme-light .nx-body-current em { width: max-content; margin-top: 18px; padding: 6px 9px; border-radius: 99px; background: rgba(255,255,255,.14); font-size: 11px; font-style: normal; }
body.theme-light .nx-weight-chart { min-width: 0; min-height: 185px; padding: 18px; border: 1px solid var(--line); border-radius: 21px; background: #fff; }
body.theme-light .nx-weight-bars { height: 150px; display: flex; align-items: stretch; gap: 8px; }
body.theme-light .nx-weight-bars > span { min-width: 0; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
body.theme-light .nx-weight-bars i { width: min(30px,100%); height: var(--h); min-height: 8px; border-radius: 99px; background: linear-gradient(180deg,#55b5ac,#168d86); }
body.theme-light .nx-weight-bars small { color: var(--muted); font-size: 8px; white-space: nowrap; }
body.theme-light .nx-inbody-upload { min-height: 116px; display: grid; place-items: center; gap: 5px; padding: 20px; color: #60449b; border: 1px dashed #bda9da; border-radius: 20px; background: #f5effb; text-align: center; cursor: pointer; }
body.theme-light .nx-inbody-upload input { display: none; }
body.theme-light .nx-inbody-upload .nx-ui-icon { width: 28px; height: 28px; }
body.theme-light .nx-inbody-upload small { color: var(--muted); }
body.theme-light .nx-inbody-summary { display: grid; grid-template-columns: 1.1fr repeat(4,1fr); gap: 1px; margin-top: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 19px; background: var(--line); }
body.theme-light .nx-inbody-summary > div { min-width: 0; padding: 16px; background: #fff; }
body.theme-light .nx-inbody-summary strong,
body.theme-light .nx-inbody-summary span { display: block; }
body.theme-light .nx-inbody-summary strong { font-size: 16px; }
body.theme-light .nx-inbody-summary span { margin-top: 3px; color: var(--muted); font-size: 9px; }

body.theme-light .nx-profile-wellness { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
body.theme-light .nx-profile-card { min-width: 0; min-height: 220px; display: flex; flex-direction: column; padding: 22px; overflow: hidden; border-radius: 23px; }
body.theme-light .nx-profile-card > span { width: 48px; height: 48px; display: grid; place-items: center; color: #fff; border-radius: 15px; background: rgba(255,255,255,.16); }
body.theme-light .nx-profile-card > span svg { width: 28px; height: 28px; }
body.theme-light .nx-profile-card > div { margin-top: 28px; }
body.theme-light .nx-profile-card small,
body.theme-light .nx-profile-card strong,
body.theme-light .nx-profile-card p { display: block; color: #fff; }
body.theme-light .nx-profile-card small { opacity: .68; text-transform: uppercase; letter-spacing: .08em; }
body.theme-light .nx-profile-card strong { margin-top: 5px; font-size: 22px; }
body.theme-light .nx-profile-card p { margin: 7px 0 18px; opacity: .75; font-size: 12px; line-height: 1.45; }
body.theme-light .nx-profile-card .text-btn { width: max-content; margin: auto 0 0; padding-left: 0; color: #fff; }
body.theme-light .nx-profile-card.purple { background: linear-gradient(145deg,#7451c8,#4f387c); }
body.theme-light .nx-profile-card.teal { background: linear-gradient(145deg,#198f88,#17645f); }
body.theme-light .nx-profile-card.coral { background: linear-gradient(145deg,#d77867,#a34d57); }
body.theme-light .nx-profile-badges { grid-column: 1 / -1; padding: 22px; border: 1px solid var(--line); border-radius: 23px; background: #fff; }
body.theme-light .nx-badge-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 9px; }
body.theme-light .nx-badge { min-width: 0; display: grid; gap: 6px; padding: 15px 10px; border: 1px solid var(--line); border-radius: 16px; text-align: center; }
body.theme-light .nx-badge > span { width: 38px; height: 38px; display: grid; place-items: center; margin: auto; color: #7250c7; border-radius: 50%; background: #eee7f9; }
body.theme-light .nx-badge strong { font-size: 11px; }
body.theme-light .nx-badge small { color: var(--muted); font-size: 8px; }
body.theme-light .nx-badge.locked { opacity: .46; filter: grayscale(.7); }
body.theme-light .nx-profile-photo-picker { display: grid; place-items: center; gap: 9px; padding: 26px; border: 1px dashed #bba8d4; border-radius: 23px; background: #f4eef9; cursor: pointer; }
body.theme-light .nx-profile-photo-picker img,
body.theme-light .nx-profile-photo-picker > span { width: 120px; height: 120px; display: grid; place-items: center; object-fit: cover; border-radius: 50%; background: #fff; box-shadow: 0 10px 30px rgba(58,43,69,.14); }
body.theme-light .nx-profile-photo-picker input { display: none; }
body.theme-light .nx-passport-stats { display: grid; grid-template-columns: repeat(3,1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 20px; }
body.theme-light .nx-passport-stats > div { padding: 20px; text-align: center; border-right: 1px solid var(--line); }
body.theme-light .nx-passport-stats > div:last-child { border-right: 0; }
body.theme-light .nx-passport-stats strong,
body.theme-light .nx-passport-stats span { display: block; }
body.theme-light .nx-passport-stats strong { color: var(--purple); font-size: 30px; }
body.theme-light .nx-passport-stats span { color: var(--muted); font-size: 10px; }
body.theme-light .nx-passport-stamps { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 12px; }
body.theme-light .nx-passport-stamps article { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 3px 10px; padding: 13px; border: 1px solid var(--line); border-radius: 16px; }
body.theme-light .nx-passport-stamps article .nx-business-mark { grid-row: 1 / 3; }
body.theme-light .nx-passport-stamps article strong,
body.theme-light .nx-passport-stamps article small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.theme-light .nx-passport-stamps article small { color: var(--muted); }
body.theme-light .nx-passport-stamps article.locked { opacity: .38; filter: grayscale(1); }

body.theme-light .nx-more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
body.theme-light .nx-more-grid button { min-height: 150px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 6px; padding: 20px; color: var(--text); border: 1px solid var(--line); border-radius: 21px; background: linear-gradient(145deg,#fff,#f4eef9); text-align: left; }
body.theme-light .nx-more-grid button > span { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: auto; color: #7250c7; border-radius: 13px; background: #eee7f8; }
body.theme-light .nx-more-grid small { color: var(--muted); }
body.theme-light .nx-admin-list { display: grid; gap: 8px; margin-top: 22px; }
body.theme-light .nx-admin-place { display: grid; grid-template-columns: auto minmax(0,1fr) 150px 42px; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
body.theme-light .nx-admin-place > div { min-width: 0; }
body.theme-light .nx-admin-place strong,
body.theme-light .nx-admin-place span,
body.theme-light .nx-admin-place small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.theme-light .nx-admin-place span { color: var(--muted); font-size: 10px; }
body.theme-light .nx-admin-place small { margin-top: 3px; color: #8a4e75; }
body.theme-light .nx-admin-place select { min-width: 0; padding: 9px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
body.theme-light .nx-admin-star { width: 42px; height: 42px; display: grid; place-items: center; color: #928998; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
body.theme-light .nx-admin-star.active { color: #fff; border-color: #d0745e; background: #d0745e; }
body.theme-light .nx-admin-check { display: flex; align-items: center; gap: 9px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: #f8f5f9; }

/* Profile: one clear identity area, circular photo and colorful interests. */
body.theme-light .profile-main .avatar { width: 76px; height: 76px; min-width: 76px; aspect-ratio: 1; overflow: hidden; border: 4px solid #fff; border-radius: 50% !important; box-shadow: 0 8px 26px rgba(61,42,79,.16); background-repeat: no-repeat; }
body.theme-light .profile-head { padding: 18px 20px; border: 1px solid var(--line); border-radius: 23px; background: #fff; }
body.theme-light .nx-profile-preferences { padding: 23px; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(145deg,#fff,#f8f4fa); }
body.theme-light .nx-profile-interest-title { margin: 18px 0 9px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
body.theme-light .nx-profile-sport-bubbles,
body.theme-light .nx-profile-goal-bubbles { display: flex; flex-wrap: wrap; gap: 9px; }
body.theme-light .nx-profile-sport-bubbles span,
body.theme-light .nx-profile-goal-bubbles span,
body.theme-light .nx-profile-sport-bubbles button,
body.theme-light .nx-profile-goal-bubbles button { min-height: 42px; display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; color: #43374e; border: 1px solid transparent; border-radius: 999px; background: #efe8f7; font: inherit; font-size: 11px; font-weight: 780; }
body.theme-light .nx-profile-sport-bubbles .nx-vector-icon { width: 20px; height: 20px; }
body.theme-light .nx-profile-sport-bubbles .tone-0,
body.theme-light .nx-profile-goal-bubbles .tone-0 { color: #5b3b96; border-color: #d7c7eb; background: #f1eafa; }
body.theme-light .nx-profile-sport-bubbles .tone-1,
body.theme-light .nx-profile-goal-bubbles .tone-1 { color: #126d67; border-color: #bee2de; background: #eaf7f5; }
body.theme-light .nx-profile-sport-bubbles .tone-2,
body.theme-light .nx-profile-goal-bubbles .tone-2 { color: #965341; border-color: #efd0c6; background: #fff0eb; }
body.theme-light .nx-profile-sport-bubbles .tone-3,
body.theme-light .nx-profile-goal-bubbles .tone-3 { color: #38648f; border-color: #c9daea; background: #edf5fb; }
body.theme-light .nx-profile-sport-bubbles .tone-4,
body.theme-light .nx-profile-goal-bubbles .tone-4 { color: #7b6230; border-color: #ead9aa; background: #fff8df; }

/* Tape measurements and nutrition goals. */
body.theme-light .nx-measure-divider { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0 5px; border-top: 1px solid var(--line); }
body.theme-light .nx-measure-divider span { color: var(--muted); font-size: 11px; }
body.theme-light .nx-tape-summary { display: grid; grid-template-columns: repeat(6,1fr); gap: 8px; margin-top: 14px; }
body.theme-light .nx-tape-summary span { padding: 13px 9px; color: var(--muted); border: 1px solid var(--line); border-radius: 15px; background: #fff; text-align: center; font-size: 9px; }
body.theme-light .nx-tape-summary strong { display: block; margin-bottom: 3px; color: var(--text); font-size: 14px; }
body.theme-light .nx-nutrition-target { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 18px; align-items: center; margin-top: 22px; padding: 20px; color: #fff; border-radius: 22px; background: linear-gradient(135deg,#6f4abc,#3d6e82); }
body.theme-light .nx-nutrition-target h3 { margin: 5px 0; font-size: 24px; }
body.theme-light .nx-nutrition-target p { margin: 0; color: rgba(255,255,255,.75); font-size: 11px; }
body.theme-light .nx-nutrition-target .eyebrow { color: rgba(255,255,255,.7); }
body.theme-light .nx-goal-bubbles { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; max-width: 340px; }
body.theme-light .nx-goal-bubbles button { padding: 9px 11px; color: rgba(255,255,255,.78); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(255,255,255,.08); font: inherit; font-size: 10px; }
body.theme-light .nx-goal-bubbles button.active { color: #573890; background: #fff; font-weight: 850; }
body.theme-light .nx-nutrition-empty-target { width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin-top: 22px; padding: 16px; color: var(--text); border: 1px dashed #bba6d5; border-radius: 19px; background: #f5effa; text-align: left; }
body.theme-light .nx-nutrition-empty-target > span:first-child { width: 40px; height: 40px; display: grid; place-items: center; color: var(--purple); border-radius: 13px; background: #fff; }
body.theme-light .nx-nutrition-empty-target strong,
body.theme-light .nx-nutrition-empty-target small { display: block; }
body.theme-light .nx-nutrition-empty-target small { margin-top: 3px; color: var(--muted); }

/* Local challenge hub and route detail. */
body.theme-light .nx-home-challenges { margin-top: 46px; padding: 26px; overflow: hidden; border-radius: 27px; background: linear-gradient(145deg,#211b2a,#312547); box-shadow: 0 20px 55px rgba(52,36,74,.18); }
body.theme-light .nx-home-challenges h2 { color: #fff; }
body.theme-light .nx-home-challenges .eyebrow,
body.theme-light .nx-home-challenges .muted { color: rgba(255,255,255,.62); }
body.theme-light .nx-challenge-lightning { width: 48px; height: 48px; display: grid; place-items: center; color: #fff; border-radius: 17px; background: linear-gradient(135deg,#8d65df,#35aaa0); }
body.theme-light .nx-challenge-lightning svg { width: 24px; height: 24px; }
body.theme-light .nx-home-challenge-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 9px; }
body.theme-light .nx-home-challenge { min-width: 0; display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; align-items: center; gap: 11px; padding: 14px; color: #fff; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; background: rgba(255,255,255,.07); text-align: left; }
body.theme-light .nx-home-challenge.joined { border-color: rgba(95,230,213,.55); background: rgba(95,230,213,.12); }
body.theme-light .nx-challenge-bolt { width: 38px; height: 38px; display: grid; place-items: center; color: #f6d66d; border-radius: 12px; background: rgba(255,255,255,.1); }
body.theme-light .nx-home-challenge div { min-width: 0; }
body.theme-light .nx-home-challenge small,
body.theme-light .nx-home-challenge strong,
body.theme-light .nx-home-challenge em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.theme-light .nx-home-challenge small { color: rgba(255,255,255,.58); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
body.theme-light .nx-home-challenge strong { margin: 4px 0; font-size: 14px; }
body.theme-light .nx-home-challenge em { color: rgba(255,255,255,.66); font-size: 9px; font-style: normal; }
body.theme-light .nx-home-challenge .nx-challenge-distance { color: #fff; background: rgba(255,255,255,.12); }
body.theme-light .nx-challenge-hero { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 17px; padding: 22px; color: #fff; border-radius: 24px; background: linear-gradient(135deg,#7250c7,#315f76); }
body.theme-light .nx-challenge-hero > span { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 17px; background: rgba(255,255,255,.15); }
body.theme-light .nx-challenge-hero h2 { color: #fff; }
body.theme-light .nx-challenge-hero p { margin: 5px 0 0; color: rgba(255,255,255,.72); }
body.theme-light .nx-challenge-hero > strong { font-size: 30px; }
body.theme-light .nx-challenge-map,
body.theme-light .nx-directions-map { min-height: 330px; margin-top: 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #e9e5ec; }
body.theme-light .nx-challenge-map-point { padding: 6px 8px; color: #fff; border: 3px solid #fff; border-radius: 10px; background: #7250c7; box-shadow: 0 6px 18px rgba(44,31,57,.25); font-size: 8px; font-weight: 900; }
body.theme-light .nx-challenge-map-point.finish { background: #168d86; }
body.theme-light .nx-challenge-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin-top: 13px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--line); }
body.theme-light .nx-challenge-metrics span { padding: 16px; color: var(--muted); background: #fff; text-align: center; font-size: 9px; }
body.theme-light .nx-challenge-metrics strong { display: block; margin-bottom: 4px; color: var(--text); font-size: 18px; }
body.theme-light .nx-challenge-columns { display: grid; grid-template-columns: 1.2fr .8fr; gap: 14px; }
body.theme-light .nx-challenge-leaders > div { display: grid; grid-template-columns: 24px 34px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 11px 0; border-bottom: 1px solid var(--line); }
body.theme-light .nx-challenge-leaders i { width: 34px; height: 34px; display: grid; place-items: center; color: #fff; border-radius: 50%; background: linear-gradient(135deg,#7250c7,#2f968e); font-size: 9px; font-style: normal; }
body.theme-light .nx-challenge-leaders b { color: var(--purple); }

/* Professionals, sample shop and in-app direction preview. */
body.theme-light .nx-professional-directory { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
body.theme-light .nx-professional-directory button { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; padding: 16px; color: var(--text); border: 1px solid var(--line); border-radius: 19px; background: #fff; text-align: left; }
body.theme-light .nx-professional-directory button > div { min-width: 0; }
body.theme-light .nx-professional-directory small,
body.theme-light .nx-professional-directory strong { display: block; }
body.theme-light .nx-professional-directory small { color: var(--purple); font-size: 9px; text-transform: uppercase; }
body.theme-light .nx-professional-directory p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
body.theme-light .nx-professional-note { margin-top: 15px; padding: 13px; color: #65536f; border-radius: 15px; background: #f3edf8; font-size: 11px; }
body.theme-light .nx-shop-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 11px; }
body.theme-light .nx-shop-grid article { min-height: 210px; display: flex; flex-direction: column; padding: 21px; color: #fff; border-radius: 22px; background: linear-gradient(145deg,#7451c8,#4f387c); }
body.theme-light .nx-shop-grid article.teal { background: linear-gradient(145deg,#198f88,#17645f); }
body.theme-light .nx-shop-grid article.coral { background: linear-gradient(145deg,#d77867,#a34d57); }
body.theme-light .nx-shop-grid article.blue { background: linear-gradient(145deg,#4779aa,#31536f); }
body.theme-light .nx-shop-grid article > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: rgba(255,255,255,.15); }
body.theme-light .nx-shop-grid article small { margin-top: 25px; opacity: .7; }
body.theme-light .nx-shop-grid article h3 { color: #fff; }
body.theme-light .nx-shop-grid article strong { margin-bottom: 15px; }
body.theme-light .nx-shop-grid article .btn { width: max-content; margin-top: auto; color: #fff; border-color: rgba(255,255,255,.3); }
body.theme-light .nx-map-pin-v2 span img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; background: #fff; }

/* Story editor: drag with one finger; size is controlled with a slider, not pinch zoom. */
body.theme-light .nx-share-size { margin-top: 18px; padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: #f7f3f9; }
body.theme-light .nx-share-size label { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; font-weight: 800; }
body.theme-light .nx-share-size input { width: 100%; margin: 12px 0 7px; accent-color: var(--purple); }
body.theme-light .nx-share-size small { color: var(--muted); line-height: 1.4; }
body.theme-light .nx-story-stage { touch-action: none !important; user-select: none !important; }
body.theme-light .nx-stage-item { cursor: grab !important; transform: translate(-50%,-50%) scale(var(--nx-studio-scale,1)) !important; transform-origin: center; transition: transform .14s, top .14s, left .14s; }
body.theme-light .nx-stage-item:active { cursor: grabbing !important; }

@media (max-width: 780px) {
  body.theme-light .nx-directory-map-layout { grid-template-columns: 1fr; }
  body.theme-light .nx-map-results { max-height: none; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
  body.theme-light .nx-map-results button { border-right: 1px solid var(--line); }
  body.theme-light .nx-profile-wellness { grid-template-columns: 1fr; }
  body.theme-light .nx-profile-card { min-height: 190px; }
  body.theme-light .nx-body-progress-grid { grid-template-columns: 1fr; }
  body.theme-light .nx-inbody-summary { grid-template-columns: 1fr 1fr; }
  body.theme-light .nx-inbody-summary > div:first-child { grid-column: 1 / -1; }
  body.theme-light .nx-badge-grid { grid-template-columns: repeat(3,1fr); }
  body.theme-light .nx-tape-summary { grid-template-columns: repeat(3,1fr); }
  body.theme-light .nx-nutrition-target { grid-template-columns: 1fr; }
  body.theme-light .nx-goal-bubbles { justify-content: flex-start; max-width: none; }
  body.theme-light .nx-home-challenge-list,
  body.theme-light .nx-challenge-columns,
  body.theme-light .nx-professional-directory { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  body.theme-light .app { width: 100%; padding-inline: 14px; }
  body.theme-light .topbar { width: 100%; }
  body.theme-light .top-actions { min-width: 0; gap: 5px; }
  body.theme-light .top-actions .location { max-width: 132px; padding-inline: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body.theme-light .nx-directory-map { min-height: 390px; }
  body.theme-light .nx-map-results { grid-template-columns: 1fr; }
  body.theme-light .nx-map-results button { border-right: 0; }
  body.theme-light .nx-nearby-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 7px; }
  body.theme-light .nx-body-progress { padding: 19px 14px; }
  body.theme-light .nx-weight-bars { gap: 4px; }
  body.theme-light .nx-plan-row { grid-template-columns: auto minmax(0,1fr); }
  body.theme-light .nx-plan-row > .nx-placement { grid-column: 2; width: max-content; }
  body.theme-light .modal { padding: 8px; }
  body.theme-light .modal-panel { width: 100%; max-height: calc(100dvh - 16px); border-radius: 23px; }
  body.theme-light .detail-body { padding: 22px 17px; }
  body.theme-light .nx-muscle-picker .nx-exercise-list { grid-template-columns: 1fr; }
  body.theme-light .nx-admin-place { grid-template-columns: auto minmax(0,1fr) 42px; }
  body.theme-light .nx-admin-place select { grid-column: 2 / 4; width: 100%; }
  body.theme-light .nx-passport-stamps { grid-template-columns: 1fr; }
  body.theme-light .nx-badge-grid { grid-template-columns: 1fr 1fr; }
  body.theme-light .bottom-nav .nav { font-size: 8px; }
  body.theme-light .nx-home-challenges { padding: 20px 14px; }
  body.theme-light .nx-home-challenge { grid-template-columns: auto minmax(0,1fr) auto; }
  body.theme-light .nx-home-challenge > .nx-ui-icon:last-child { display: none; }
  body.theme-light .nx-challenge-metrics { grid-template-columns: 1fr; }
  body.theme-light .nx-shop-grid { grid-template-columns: 1fr; }
  body.theme-light .nx-profile-preferences { padding: 18px 14px; }
}

/* Roadmap phase 1 — stable mobile shell */
html { max-width: 100%; overflow-x: clip; overscroll-behavior-x: none; }
body { min-width: 0; max-width: 100%; overflow-x: clip; }
html.nx-modal-visible,
html.nx-modal-visible body { height: 100%; overflow: hidden; }
body.theme-light .app { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
body.theme-light .bottom-nav {
  bottom: max(10px, env(safe-area-inset-bottom));
  max-width: calc(100vw - 20px);
}
body.theme-light .bottom-nav .nav { min-width: 0; }
body.theme-light .modal-panel { overscroll-behavior: contain; }

@supports not (overflow: clip) {
  html,
  body { overflow-x: hidden; }
}

@media (max-width: 680px) {
  body.theme-light .bottom-nav { gap: 2px; padding: 6px; }
  body.theme-light .bottom-nav .nav { min-height: 52px; padding: 7px 3px; font-size: 9px; }
  body.theme-light .bottom-nav .nav span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* Roadmap phase 1.2 — Running-first visual foundation */
body.theme-light .hero.nx-running-focus {
  min-height: 410px;
  justify-content: center;
  background:
    radial-gradient(circle at 88% 22%, rgba(22,141,134,.13), transparent 20rem),
    radial-gradient(circle at 72% 70%, rgba(114,80,199,.1), transparent 24rem),
    linear-gradient(135deg,#fff 0%,#f6f2f8 100%);
}
body.theme-light .hero.nx-running-focus::after {
  right: -110px;
  top: 34px;
  width: 430px;
  height: 250px;
  border: 24px solid rgba(114,80,199,.055);
  border-radius: 50%;
  box-shadow: 0 0 0 32px rgba(22,141,134,.025),0 0 0 64px rgba(114,80,199,.02);
  transform: rotate(-13deg);
}
body.theme-light .nx-running-accent { color: var(--purple); }
body.theme-light .hero.nx-running-focus .hero-copy { max-width: 675px; margin-bottom: 19px; }
body.theme-light .hero.nx-running-focus .actions { margin-top: 22px; }
body.theme-light .hero.nx-running-focus .btn { min-height: 52px; }
body.theme-light .hero.nx-running-focus .btn svg { width: 20px; height: 20px; }
body.theme-light .nx-running-status { display: flex; flex-wrap: wrap; gap: 8px; }
body.theme-light .nx-running-status span { min-width: 116px; display: grid; gap: 1px; padding: 10px 13px; color: var(--muted); border: 1px solid rgba(227,221,230,.86); border-radius: 14px; background: rgba(255,255,255,.72); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
body.theme-light .nx-running-status strong { font-size: 15px; letter-spacing: -.02em; text-transform: none; }

body.theme-light .quick-action.nx-primary-action { color: #fff; border-color: #6a48bb; background: linear-gradient(145deg,#7855ca,#5e3da7); }
body.theme-light .quick-action.nx-primary-action strong { color: #fff; }
body.theme-light .quick-action.nx-primary-action span { color: rgba(255,255,255,.7); }
body.theme-light .quick-action.nx-primary-action .icon { color: #fff; background: rgba(255,255,255,.14); }
body.theme-light .quick-action.nx-route-action .icon { color: #087f78; background: #e7f5f3; }

body.theme-light .nx-running-section-head { margin-bottom: 18px; }
body.theme-light .nx-running-focus-grid { display: grid; grid-template-columns: 1.18fr .91fr .91fr; gap: 13px; }
body.theme-light .nx-running-card { min-width: 0; min-height: 250px; display: flex; flex-direction: column; padding: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 25px; background: #fff; box-shadow: 0 10px 32px rgba(57,42,70,.045); }
body.theme-light .nx-running-card > div { margin: 24px 0 18px; }
body.theme-light .nx-running-card small { color: var(--muted); font-size: 9px; font-weight: 820; letter-spacing: .11em; }
body.theme-light .nx-running-card h3 { margin: 7px 0 8px; font-size: 23px; line-height: 1.04; }
body.theme-light .nx-running-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.48; }
body.theme-light .nx-running-card .btn,
body.theme-light .nx-running-card .text-btn { width: max-content; margin-top: auto; }
body.theme-light .nx-running-card-icon,
body.theme-light .nx-running-card-distance { width: 50px; height: 50px; display: grid; place-items: center; color: var(--purple); border-radius: 16px; background: #eee8f8; }
body.theme-light .nx-running-card-icon svg { width: 28px; height: 28px; }
body.theme-light .nx-running-card.route-card .nx-running-card-icon { color: #087f78; background: #e8f6f4; }
body.theme-light .nx-running-card-distance { color: #fff; background: var(--purple); font-size: 14px; font-weight: 900; }
body.theme-light .nx-running-card.primary { color: #fff; border-color: #463164; background: linear-gradient(150deg,#2d2339,#1c1723); }
body.theme-light .nx-running-card.primary small,
body.theme-light .nx-running-card.primary p { color: rgba(255,255,255,.64); }
body.theme-light .nx-running-card.primary h3 { color: #fff; }
body.theme-light .nx-running-card.primary .nx-running-card-icon { color: #fff; background: linear-gradient(135deg,#8763dd,#2b9e95); }
body.theme-light .nx-running-card.primary .btn { color: #2c1e3d; border-color: #fff; background: #fff; }

body.theme-light .nx-running-week { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 24px; align-items: center; margin-top: 14px; padding: 26px; color: #fff; border-radius: 25px; background: linear-gradient(125deg,#7250c7,#3c6478); }
body.theme-light .nx-running-week h2 { margin: 7px 0 5px; color: #fff; }
body.theme-light .nx-running-week p,
body.theme-light .nx-running-week .eyebrow { margin: 0; color: rgba(255,255,255,.7); }
body.theme-light .nx-running-week-stats { display: grid; grid-template-columns: repeat(3,1fr); overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: 18px; }
body.theme-light .nx-running-week-stats span { min-width: 100px; display: grid; gap: 2px; padding: 15px; color: rgba(255,255,255,.66); border-right: 1px solid rgba(255,255,255,.14); font-size: 9px; text-align: center; text-transform: uppercase; }
body.theme-light .nx-running-week-stats span:last-child { border-right: 0; }
body.theme-light .nx-running-week-stats strong { color: #fff; font-size: 19px; text-transform: none; }
body.theme-light .nx-running-recent { margin-top: 13px; }
body.theme-light .nx-running-places .nx-business-grid { grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); }
body.theme-light .nx-running-empty-place { min-height: 180px; display: grid; place-items: center; gap: 6px; padding: 24px; color: var(--text); border: 1px dashed #bdaed0; border-radius: 23px; background: #f8f4fa; }
body.theme-light .nx-running-empty-place svg { width: 28px; height: 28px; color: var(--purple); }
body.theme-light .nx-running-empty-place span { color: var(--muted); }
body.theme-light .nx-running-secondary { margin-top: 46px; padding-top: 36px; border-top: 1px solid var(--line); }
body.theme-light .nx-running-secondary > div:last-child { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
body.theme-light .nx-running-secondary button { min-height: 118px; display: grid; grid-template-columns: 40px minmax(0,1fr); grid-template-rows: auto auto; align-content: center; gap: 2px 12px; padding: 17px; color: var(--text); border: 1px solid var(--line); border-radius: 20px; background: #fff; text-align: left; }
body.theme-light .nx-running-secondary button > svg { grid-row: 1 / 3; width: 40px; height: 40px; padding: 9px; color: var(--purple); border-radius: 13px; background: #f0eafa; }
body.theme-light .nx-running-secondary button strong { align-self: end; }
body.theme-light .nx-running-secondary button span { align-self: start; color: var(--muted); font-size: 11px; }
body.theme-light #nxHomeLab { display: none !important; }

@media (max-width: 760px) {
  body.theme-light .nx-running-focus-grid { grid-template-columns: 1fr; }
  body.theme-light .nx-running-card { min-height: 220px; }
  body.theme-light .nx-running-week { grid-template-columns: 1fr; }
  body.theme-light .nx-running-week-stats span { min-width: 0; }
}

@media (max-width: 520px) {
  body.theme-light .hero.nx-running-focus { min-height: 500px; padding: 31px 21px; justify-content: flex-end; }
  body.theme-light .hero.nx-running-focus h1 { font-size: 42px; }
  body.theme-light .hero.nx-running-focus h1 { line-height: 1.03; }
  body.theme-light .hero.nx-running-focus::after { right: -250px; top: 16px; }
  body.theme-light .nx-running-status { display: grid; grid-template-columns: repeat(3,1fr); width: 100%; }
  body.theme-light .nx-running-status span { min-width: 0; padding: 9px 7px; }
  body.theme-light .nx-running-status strong { font-size: 13px; }
  body.theme-light .hero.nx-running-focus .actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  body.theme-light .hero.nx-running-focus .btn { width: 100%; }
  body.theme-light .quick-dock { grid-template-columns: 1fr 1fr; gap: 9px; }
  body.theme-light .quick-action { min-height: 106px; padding: 14px; grid-template-columns: 36px 1fr; column-gap: 10px; }
  body.theme-light .quick-action:first-child { grid-column: 1 / -1; }
  body.theme-light .quick-action .icon { width: 36px; height: 36px; padding: 8px; }
  body.theme-light .quick-action strong { font-size: 13px; }
  body.theme-light .quick-action span { font-size: 10px; }
  body.theme-light .nx-running-week { padding: 21px 16px; }
  body.theme-light .nx-running-week-stats span { padding: 12px 7px; }
  body.theme-light .nx-running-secondary > div:last-child { grid-template-columns: 1fr; }
}

/* Running phase 1.3 — focused session recorder */
.modal-panel:has(.nx-run-session) { width: min(100%,1080px); }
.nx-run-session { padding: 25px; }
.nx-run-session-head { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:15px; padding-right:58px; }
.nx-run-session-title { min-width:0; display:flex; align-items:center; gap:13px; }
.nx-run-session-title h2 { margin:3px 0 2px; font-size:clamp(25px,3vw,34px); }
.nx-run-session-title p { margin:0; color:var(--muted); font-size:12px; }
.nx-run-session-icon { width:50px; height:50px; flex:none; display:grid; place-items:center; color:#fff; border-radius:17px; background:linear-gradient(145deg,#7550d0,#138f86); box-shadow:0 10px 24px rgba(89,57,150,.2); }
.nx-run-session-icon svg { width:27px; height:27px; }
.nx-run-session-grid { display:grid; grid-template-columns:minmax(0,1.22fr) minmax(315px,.78fr); gap:12px; }
.nx-run-map-panel { min-height:590px; position:relative; overflow:hidden; border:1px solid #d9d2dd; border-radius:27px; background:#ece8ef; }
.nx-run-map-panel::before,.nx-run-map-panel::after { content:""; position:absolute; inset:-18%; pointer-events:none; }
.nx-run-map-panel::before { opacity:.55; background:repeating-linear-gradient(24deg,transparent 0 54px,rgba(106,94,116,.12) 55px 57px); }
.nx-run-map-panel::after { opacity:.34; background:repeating-linear-gradient(112deg,transparent 0 76px,rgba(106,94,116,.13) 77px 79px); }
.nx-run-map-canvas { position:absolute; z-index:2; inset:0; }
.nx-run-map-canvas svg { width:100%; height:100%; padding:75px 45px 112px; }
.nx-run-map-canvas path { fill:none; stroke:#6f3bd5; stroke-width:6; stroke-linecap:round; stroke-linejoin:round; filter:drop-shadow(0 5px 9px rgba(81,43,156,.25)); }
.nx-run-map-empty { position:absolute; inset:0; display:grid; place-content:center; justify-items:center; gap:7px; padding:40px; color:#514a56; text-align:center; }
.nx-run-map-empty > span { width:62px; height:62px; display:grid; place-items:center; margin-bottom:7px; color:#6f3bd5; border-radius:21px; background:rgba(255,255,255,.82); box-shadow:0 12px 34px rgba(48,36,57,.1); }
.nx-run-map-empty svg { width:28px; height:28px; padding:0; }
.nx-run-map-empty strong { font-size:18px; }
.nx-run-map-empty small { max-width:275px; color:#756d79; line-height:1.45; }
.nx-run-map-badge { position:absolute; z-index:4; top:17px; left:17px; display:flex; align-items:center; gap:7px; padding:8px 11px; color:#3f3944; border:1px solid rgba(115,102,124,.18); border-radius:999px; background:rgba(255,255,255,.8); backdrop-filter:blur(14px); font-size:9px; font-weight:850; letter-spacing:.09em; text-transform:uppercase; }
.nx-run-map-badge span { width:7px; height:7px; border-radius:50%; background:#138f86; box-shadow:0 0 0 5px rgba(19,143,134,.1); }
.nx-run-gps-pill { position:absolute; z-index:4; left:17px; right:17px; bottom:17px; display:grid; gap:3px; padding:14px 15px; color:#fff; border:1px solid rgba(255,255,255,.12); border-radius:17px; background:rgba(30,25,35,.88); backdrop-filter:blur(18px); }
.nx-run-gps-pill strong { font-size:12px; }
.nx-run-gps-pill span { color:rgba(255,255,255,.62); font-size:10px; line-height:1.4; }
.nx-run-console { min-height:590px; display:flex; flex-direction:column; padding:24px; border:1px solid var(--line); border-radius:27px; background:#fff; }
.nx-run-time-block { padding:10px 0 22px; text-align:center; }
.nx-run-time-block span { display:block; margin-bottom:7px; color:var(--muted); font-size:9px; font-weight:800; letter-spacing:.14em; text-transform:uppercase; }
.nx-run-time-block strong { display:block; color:var(--text); font-size:clamp(54px,6vw,76px); font-weight:900; line-height:.92; letter-spacing:-.075em; font-variant-numeric:tabular-nums; }
.nx-run-live-metrics { display:grid; grid-template-columns:repeat(3,1fr); overflow:hidden; border:1px solid var(--line); border-radius:18px; }
.nx-run-live-metrics > div { min-width:0; padding:14px 9px; border-right:1px solid var(--line); text-align:center; }
.nx-run-live-metrics > div:last-child { border-right:0; }
.nx-run-live-metrics span { display:block; min-height:22px; color:var(--muted); font-size:8px; line-height:1.3; letter-spacing:.05em; text-transform:uppercase; }
.nx-run-live-metrics strong { display:flex; align-items:baseline; justify-content:center; gap:3px; margin-top:4px; }
.nx-run-live-metrics b { font-size:22px; font-weight:900; letter-spacing:-.04em; font-variant-numeric:tabular-nums; }
.nx-run-live-metrics small { color:var(--muted); font-size:8px; font-weight:800; text-transform:uppercase; }
.nx-run-splits { margin-top:13px; padding:14px; border-radius:17px; background:#f5f1f7; }
.nx-run-splits > div,.nx-run-splits p { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.nx-run-splits > div { margin-bottom:6px; color:var(--muted); font-size:9px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.nx-run-splits p { margin:0; padding:8px 0; border-top:1px solid #e2dce6; }
.nx-run-splits p b { font-size:10px; color:var(--muted); }
.nx-run-splits p strong { font-size:15px; }
.nx-run-note { margin-top:13px; border-top:1px solid var(--line); }
.nx-run-note summary { padding:14px 1px; color:var(--muted); font-size:11px; font-weight:800; cursor:pointer; }
.nx-run-note .nx-field { padding-bottom:11px; }
.nx-run-note textarea { min-height:70px; background:#f8f6f9; }
.nx-run-controls { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin-top:auto; padding-top:15px; }
.nx-run-start { grid-column:1/-1; min-height:76px; display:grid; grid-template-columns:46px 1fr; grid-template-rows:auto auto; align-content:center; gap:1px 12px; padding:13px 17px; color:#fff; border:0; border-radius:21px; background:linear-gradient(135deg,#6f3bd5,#4d3894); box-shadow:0 13px 30px rgba(91,53,166,.22); text-align:left; cursor:pointer; }
.nx-run-start > span { grid-row:1/3; width:46px; height:46px; display:grid; place-items:center; border-radius:50%; background:rgba(255,255,255,.16); }
.nx-run-start svg { width:21px; height:21px; }
.nx-run-start strong { align-self:end; font-size:16px; }
.nx-run-start small { align-self:start; color:rgba(255,255,255,.68); font-size:9px; }
.nx-run-round { min-height:76px; display:flex; align-items:center; justify-content:center; gap:9px; color:#27212c; border:1px solid #ded7e3; border-radius:21px; background:#f5f2f6; font-weight:850; cursor:pointer; }
.nx-run-round > span { width:31px; height:31px; display:grid; place-items:center; border-radius:50%; background:#fff; }
.nx-run-round svg { width:15px; height:15px; }
.nx-run-round.finish { color:#fff; border-color:#31263d; background:#31263d; }
.nx-run-round.finish > span { background:rgba(255,255,255,.12); }
.nx-run-round.resume { color:#fff; border-color:#6f3bd5; background:#6f3bd5; }
.nx-run-cancel { align-self:center; margin-top:12px; padding:8px; color:var(--muted); border:0; background:transparent; font-size:10px; font-weight:750; cursor:pointer; }
.nx-run-privacy { max-width:690px; margin:13px auto 0; color:var(--muted); font-size:9px; line-height:1.5; text-align:center; }

@media (max-width: 780px) {
  .modal-panel:has(.nx-run-session) { width:100%; }
  .nx-run-session { padding:18px 15px 105px; }
  .nx-run-session-head { padding-right:50px; }
  .nx-run-session-icon { width:45px; height:45px; border-radius:15px; }
  .nx-run-session-grid { grid-template-columns:1fr; }
  .nx-run-map-panel { min-height:350px; }
  .nx-run-console { min-height:0; padding:20px 16px; }
  .nx-run-time-block strong { font-size:64px; }
  .nx-run-controls { margin-top:12px; }
}

@media (max-width: 430px) {
  .nx-run-session-head { align-items:flex-start; }
  .nx-run-session-head .nx-recording-dot { margin-top:8px; font-size:8px; }
  .nx-run-session-title h2 { font-size:24px; }
  .nx-run-map-panel { min-height:310px; border-radius:23px; }
  .nx-run-map-empty { padding:30px; }
  .nx-run-time-block strong { font-size:58px; }
  .nx-run-live-metrics b { font-size:19px; }
  .nx-run-round { min-height:70px; flex-direction:column; gap:3px; font-size:12px; }
}
