/* KairSun Web — Pantalla Home (mock 1:1, CSS puro, sin JS).
 *
 * Clon HTML/CSS de lib/features/home/presentation de KairSun-App.
 * Usa el contrato de assets/css/screens/ks-screens-base.css:
 * .phone/--u, .ks-view (Hoy|Tracking), .ks-pill/.ks-glass, .t-* y los tokens
 * --ks-* reales. Todo el interior mide calc(N * var(--u)) = N dp de la app
 * (iPhone base de 393 x 852 dp).
 *
 * Fuentes de verdad (app, READ-ONLY):
 *  - home_screen.dart (alturas: top bar 52, mensaje 330, grilla 2x2, dock)
 *  - widgets/home_top_bar.dart / home_message_area.dart / home_water_card.dart
 *  - widgets/home_routine_card.dart / home_skills_card.dart / home_mood_card.dart
 *  - widgets/home_gp_history_sheet.dart / gp_trend_chart.dart / gp_area_progress_row.dart
 *  - core/routing/widgets/shell_navigation_dock.dart
 *  - docs/features/home.md
 *
 * Simplificaciones honestas (detalladas en docs/screens/40_home.md):
 *  - El Lottie de racha (assets/Streak_Icon/Streak.json) se reemplaza por una
 *    llama CSS estática, en gris porque no hay Flow hoy.
 *  - El shader líquido de Water y los `CustomPainter` se aproximan con
 *    gradientes/olas CSS; la constelación del fondo, con radiales.
 *  - La mascota es el Golden Retriever real (elegible en la app; el gato
 *    también está copiado). Kitsune NO es la mascota por defecto.
 */

/* ── Página ─────────────────────────────────────────────────────────────── */
.home-toolbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 0 18px;
}
.home-view { display: flex; flex-direction: column; align-items: center; }
.home-toolbar .ks-view__tabs { margin-bottom: 16px; }
.home-toolbar .ks-view__tabs label { text-transform: uppercase; letter-spacing: 0.06em; }

.phone--home .phone__caption { margin-top: 10px; }

/* Raíz de cada cara del teléfono. Los tokens de módulo salen de la app
 * (home_internals.dart HomeC + water_tokens/app_theme). */
.ks-home,
.ks-gp {
  --hm-accent: #22C55E;          /* profilePrefs.accentColor por defecto */
  --hm-water: #2DC4ED;
  --hm-water-soft: #7CE3FF;
  --hm-water-deep: #1AA9D6;
  --hm-routine: #FFB800;
  --hm-routine-soft: #FFD17A;
  --hm-routine-deep: #E89A2B;
  --hm-skills: #5BF6FF;
  --hm-skills-deep: #2A2470;
  --hm-mood: #FFD600;            /* Happy colorDark; emoción de ejemplo */
  --hm-streak: #FFA12E;
  --hm-ink: #F8FAFC;
  --hm-ink-2: #CBD5E1;
  --hm-muted: #8B98B2;
  height: 100%;
  color: var(--hm-ink);
  font-family: var(--ks-font);
}

.ks-home :is(a, button, [tabindex]):focus-visible,
.ks-gp :is(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--ks-gold);
  outline-offset: 2px;
  border-radius: 6px;
}

.ks-home button,
.ks-gp button {
  appearance: none;
  border: 0;
  margin: 0;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: inherit;
}
.ks-home svg, .ks-gp svg { display: block; }
.ic { display: block; }
.ic--stroke path { fill: none; }

.sr-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ════════════════════════════════════════════════════════════════════════
 * CARA HOY — Home
 * ════════════════════════════════════════════════════════════════════════ */

.hm {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: calc(56 * var(--u)) 0 calc(91 * var(--u));
  overflow: hidden;
  background:
    radial-gradient(calc(275 * var(--u)) calc(275 * var(--u)) at 18% 20%,
      rgba(34, 197, 94, 0.10), transparent 70%),
    radial-gradient(calc(236 * var(--u)) calc(236 * var(--u)) at 85% 78%,
      rgba(34, 197, 94, 0.05), transparent 70%),
    linear-gradient(135deg, #0F1D17 0%, #05090D 48%, #071610 100%);
}
/* Malla/constelación del painter ambiental: dos trazos tenues como guiño. */
.hm::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 46%, rgba(139, 255, 190, 0.05) 46.4%, transparent 47%),
    linear-gradient(65deg, transparent 60%, rgba(139, 255, 190, 0.04) 60.4%, transparent 61%),
    linear-gradient(150deg, transparent 74%, rgba(139, 255, 190, 0.04) 74.35%, transparent 75%);
}

/* ── Top bar (home_top_bar.dart) ─────────────────────────────────────── */
.hm__top {
  position: relative;
  flex: 0 0 auto;
  height: calc(52 * var(--u));
  margin: 0 calc(14 * var(--u));
  display: flex;
  align-items: center;
}
.squircle {
  flex: 0 0 auto;
  width: calc(48 * var(--u));
  height: calc(48 * var(--u));
  border-radius: calc(22 * var(--u));
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(26, 38, 33, 0.90), rgba(16, 26, 21, 0.95));
  border: calc(0.8 * var(--u)) solid rgba(255, 255, 255, 0.15);
  box-shadow:
    inset 0 calc(1 * var(--u)) 0 rgba(255, 255, 255, 0.04),
    inset 0 calc(-1 * var(--u)) 0 rgba(0, 0, 0, 0.10),
    0 calc(4 * var(--u)) calc(12 * var(--u)) rgba(0, 0, 0, 0.15);
}
.squircle--menu .bars { display: grid; gap: calc(3.4 * var(--u)); }
.squircle--menu .bars i {
  display: block;
  width: calc(16 * var(--u));
  height: calc(2.2 * var(--u));
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.90);
}
.squircle--profile { position: relative; overflow: visible; }
.squircle--profile svg { fill: #FFFFFF; width: calc(25 * var(--u)); height: calc(25 * var(--u)); }

.seed-dot {
  position: absolute;
  top: calc(-2 * var(--u));
  right: calc(-2 * var(--u));
  width: calc(18 * var(--u));
  height: calc(18 * var(--u));
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #2FBF71;
  border: calc(1.5 * var(--u)) solid #0B1116;
}
.seed-dot i {
  width: calc(8 * var(--u));
  height: calc(8 * var(--u));
  background: #FFFFFF;
  border-radius: 0 100% 0 100%;
  transform: rotate(-8deg);
}

/* ── Flow: 4 segmentos (home_top_bar.dart _FlowPillarPainter) ────────── */
.hm__flow {
  flex: 1 1 auto;
  height: calc(48 * var(--u));
  margin: 0 calc(10 * var(--u));
  display: flex;
  align-items: stretch;
  position: relative;
}
.pillar {
  flex: 1 1 0;
  display: grid;
  place-items: center;
  border-radius: calc(16.8 * var(--u));
  background: rgba(255, 255, 255, 0.065);
  border: calc(0.7 * var(--u)) solid rgba(255, 255, 255, 0.14);
}
.pillar svg {
  width: calc(24 * var(--u));
  height: calc(24 * var(--u));
  fill: rgba(255, 255, 255, 0.46);
}
.pillar--on svg {
  width: calc(28.8 * var(--u));
  height: calc(28.8 * var(--u));
  fill: #FFFFFF;
}
.pillar--on { border-color: rgba(255, 255, 255, 0.30); }
.pillar--water { background: linear-gradient(180deg, #7CE3FF, #1AA9D6); }
.pillar--mind  { background: linear-gradient(180deg, #C9A8FF, #6E48E0); }
.pillar--routine { background: linear-gradient(180deg, #FFD17A, #E89A2B); }
.pillar--skills { background: linear-gradient(180deg, #FFE56A, #38E0FF); }
.pillar--water.pillar--on { box-shadow: 0 0 calc(8 * var(--u)) rgba(26, 169, 214, 0.35); }
.pillar--mind.pillar--on  { box-shadow: 0 0 calc(8 * var(--u)) rgba(110, 72, 224, 0.35); }
.pillar--routine.pillar--on { box-shadow: 0 0 calc(8 * var(--u)) rgba(232, 154, 43, 0.35); }
.pillar--skills.pillar--on { box-shadow: 0 0 calc(8 * var(--u)) rgba(56, 224, 255, 0.35); }
/* Unión de pilares activos adyacentes: el lado compartido pierde radio. */
.pillar--join-r { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.pillar--join-l { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.pillar--routine.pillar--on svg { fill: #140A00; }
.pillar--skills.pillar--on svg { fill: #140A00; }

/* ── Message Area (home_message_area.dart) ───────────────────────────── */
.msg {
  position: relative;
  flex: 0 0 auto;
  height: calc(330 * var(--u));
  margin: calc(3 * var(--u)) calc(14 * var(--u)) 0;
  border-radius: calc(30 * var(--u));
  overflow: hidden;
  border: calc(1.5 * var(--u)) solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, rgba(19, 28, 26, 0.96), rgba(8, 13, 18, 0.98));
  box-shadow:
    0 calc(8 * var(--u)) calc(24 * var(--u)) calc(-6 * var(--u)) rgba(34, 197, 94, 0.15),
    0 calc(20 * var(--u)) calc(40 * var(--u)) calc(-8 * var(--u)) rgba(0, 0, 0, 0.55),
    inset 0 calc(1.5 * var(--u)) calc(3 * var(--u)) rgba(255, 255, 255, 0.04);
}
.msg::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 74% at 6% 4%, rgba(34, 197, 94, 0.11), transparent 72%),
    radial-gradient(52% 56% at 100% 96%, rgba(34, 197, 94, 0.08), transparent 72%);
}
.msg__body {
  position: relative;
  height: 100%;
  display: flex;
  align-items: stretch;
  gap: calc(12 * var(--u));
  padding: calc(10 * var(--u)) calc(12 * var(--u));
}

.msg__req {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.msg__head {
  flex: 0 0 auto;
  height: calc(28 * var(--u));
  display: flex;
  align-items: center;
  gap: calc(8 * var(--u));
}
.msg__head::before {
  content: "";
  width: calc(6 * var(--u));
  height: calc(23 * var(--u));
  border-radius: 999px;
  background: var(--hm-accent);
  box-shadow: 0 0 calc(9 * var(--u)) rgba(34, 197, 94, 0.38);
}
.msg__head h2 {
  margin: 0;
  font-size: calc(20 * var(--u));
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: calc(-0.25 * var(--u));
  color: var(--hm-ink);
  white-space: nowrap;
}

.msg__blocks {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: calc(10 * var(--u));
  display: flex;
  flex-direction: column;
  gap: calc(6 * var(--u));
}
.blk {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  align-items: center;
  gap: calc(9 * var(--u));
  padding: 0 calc(9 * var(--u));
  border-radius: calc(24 * var(--u));
  border: calc(0.7 * var(--u)) solid;
  box-shadow: 0 calc(4 * var(--u)) calc(12 * var(--u)) calc(-6 * var(--u)) rgba(0, 0, 0, 0.28);
}
.blk--routine {
  background: linear-gradient(135deg, rgba(42, 37, 18, 0.78), rgba(22, 19, 12, 0.66));
  border-color: rgba(255, 186, 40, 0.20);
}
.blk--skills {
  background: linear-gradient(135deg, rgba(24, 40, 46, 0.78), rgba(10, 18, 22, 0.66));
  border-color: rgba(91, 246, 255, 0.20);
}
.blk__badge {
  flex: 0 0 auto;
  width: calc(48 * var(--u));
  height: calc(48 * var(--u));
  position: relative;
  display: grid;
  place-items: center;
}
.blk__ring {
  width: calc(42 * var(--u));
  height: calc(42 * var(--u));
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: calc(1.5 * var(--u)) solid;
  box-shadow: 0 0 calc(8 * var(--u)) calc(1 * var(--u));
}
.blk--routine .blk__ring {
  color: var(--hm-routine);
  border-color: rgba(255, 184, 0, 0.60);
  background: radial-gradient(circle at 50% 42%, rgba(255, 184, 0, 0.15), rgba(255, 184, 0, 0));
  box-shadow: 0 0 calc(8 * var(--u)) rgba(255, 184, 0, 0.20);
}
.blk--skills .blk__ring {
  color: var(--hm-skills);
  border-color: rgba(91, 246, 255, 0.60);
  background: radial-gradient(circle at 50% 42%, rgba(91, 246, 255, 0.15), rgba(91, 246, 255, 0));
  box-shadow: 0 0 calc(8 * var(--u)) rgba(91, 246, 255, 0.20);
}
.blk__ring svg { width: calc(22 * var(--u)); height: calc(22 * var(--u)); fill: currentColor; }
.blk__num {
  position: absolute;
  bottom: 0;
  left: 50%;
  translate: -50% 0;
  width: calc(20 * var(--u));
  height: calc(20 * var(--u));
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #151A22;
  font-size: calc(12 * var(--u));
  font-weight: 900;
  line-height: 1;
}
.blk--routine .blk__num { color: var(--hm-routine); }
.blk--skills .blk__num { color: var(--hm-skills); }
.blk__txt { flex: 1 1 auto; min-width: 0; }
.blk__txt b {
  display: block;
  font-size: calc(17 * var(--u));
  line-height: 1;
  font-weight: 800;
  color: #F4F7FA;
}
.blk__txt small {
  display: block;
  margin-top: calc(2 * var(--u));
  font-size: calc(12.2 * var(--u));
  line-height: 1.18;
  font-weight: 600;
  color: #ABB5C0;
}
.blk__chev { flex: 0 0 auto; width: calc(20 * var(--u)); display: grid; place-items: center; }
.blk__chev svg { width: calc(21 * var(--u)); height: calc(21 * var(--u)); stroke: rgba(255, 255, 255, 0.5); }

/* Racha + GP HOY: media fila cada uno dentro del contenedor de requisitos. */
.msg__stats {
  flex: 0 0 auto;
  height: calc(64 * var(--u));
  margin-top: calc(8 * var(--u));
  display: flex;
  gap: calc(10 * var(--u));
}
.stat {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  border-radius: calc(18 * var(--u));
  display: flex;
  align-items: center;
  padding: 0 calc(12 * var(--u));
  gap: calc(8 * var(--u));
  border: calc(1 * var(--u)) solid;
}
.stat--streak {
  background: linear-gradient(135deg, #181E23, rgba(8, 12, 16, 0.90));
  border-color: rgba(255, 255, 255, 0.17);
  box-shadow: 0 calc(6 * var(--u)) calc(12 * var(--u)) calc(-5 * var(--u)) rgba(0, 0, 0, 0.40);
}
.stat--gp {
  background: linear-gradient(135deg, rgba(23, 40, 31, 0.92), rgba(8, 12, 16, 0.90));
  border-color: rgba(34, 197, 94, 0.55);
  box-shadow:
    0 0 calc(18 * var(--u)) calc(-5 * var(--u)) rgba(34, 197, 94, 0.16),
    0 calc(6 * var(--u)) calc(12 * var(--u)) calc(-5 * var(--u)) rgba(0, 0, 0, 0.40);
}
.stat__mark { flex: 0 0 auto; width: calc(36 * var(--u)); height: calc(36 * var(--u)); display: grid; place-items: center; }
.stat--streak .stat__mark { filter: grayscale(1); opacity: 0.78; }
.flame {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #FFD98A 0%, #FFA12E 52%, #E4570B 100%);
  clip-path: polygon(50% 0%, 72% 26%, 66% 34%, 84% 56%, 78% 84%, 50% 100%, 22% 84%, 16% 56%, 34% 34%, 28% 26%);
}
.gp-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(from -90deg, #22C55E 0 42%, rgba(34, 197, 94, 0.14) 42% 100%);
  mask: radial-gradient(farthest-side, transparent calc(100% - calc(2.4 * var(--u))), #000 calc(100% - calc(2.3 * var(--u))));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - calc(2.4 * var(--u))), #000 calc(100% - calc(2.3 * var(--u))));
}
.gp-ring__core {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.gp-ring__core svg { width: calc(16.5 * var(--u)); height: calc(16.5 * var(--u)); fill: #4ADE80; }
.stat__value {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.stat__value strong {
  font-size: calc(28 * var(--u));
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: calc(-0.5 * var(--u));
  color: #FFFFFF;
}
.stat--gp .stat__value strong { color: #86EFAC; }
.stat__value span {
  margin-top: calc(3 * var(--u));
  font-size: calc(9 * var(--u));
  font-weight: 900;
  letter-spacing: calc(0.25 * var(--u));
  color: #8D969E;
}
.stat--gp .stat__value span { color: #A7F3C9; }
.stat__chev {
  flex: 0 0 auto;
  width: calc(24 * var(--u));
  height: calc(24 * var(--u));
  border-radius: calc(8 * var(--u));
  display: grid;
  place-items: center;
  border: calc(0.8 * var(--u)) solid;
}
.stat--streak .stat__chev {
  background: rgba(125, 135, 144, 0.07);
  border-color: rgba(125, 135, 144, 0.14);
}
.stat--gp .stat__chev {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.34);
}
.stat__chev svg { width: calc(21 * var(--u)); height: calc(21 * var(--u)); }
.stat--streak .stat__chev svg { stroke: rgba(125, 135, 144, 0.58); }
.stat--gp .stat__chev svg { stroke: rgba(34, 197, 94, 0.92); }

/* ── Mascota + globo (home_message_area.dart _CompanionAndProgress) ──── */
.msg__pet {
  flex: 0 0 auto;
  width: calc(128 * var(--u));
  display: flex;
  flex-direction: column;
}
.pet__hero {
  flex: 0 0 auto;
  height: calc(190 * var(--u));
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.pet__hero::before {
  content: "";
  position: absolute;
  left: calc(-8 * var(--u));
  right: calc(-8 * var(--u));
  bottom: calc(4 * var(--u));
  height: calc(26 * var(--u));
  border-radius: 999px;
  background: radial-gradient(closest-side, rgba(255, 184, 0, 0.28), transparent);
}
.pet__aura {
  position: absolute;
  left: 50%;
  bottom: calc(-6 * var(--u));
  width: calc(112 * var(--u));
  height: calc(112 * var(--u));
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 184, 0, 0.16), rgba(255, 184, 0, 0.05) 55%, transparent 72%);
}
.pet__sprite {
  position: relative;
  height: calc(110 * var(--u));
  width: auto;
  transform: scale(1.14);
  transform-origin: bottom center;
  filter: drop-shadow(0 calc(10 * var(--u)) calc(14 * var(--u)) rgba(0, 0, 0, 0.45));
}
.pet__bubble {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  margin-top: calc(4 * var(--u));
  border-radius: calc(16 * var(--u));
  background: #0F1720;
  border: calc(1 * var(--u)) solid rgba(255, 184, 0, 0.40);
  box-shadow: 0 calc(6 * var(--u)) calc(12 * var(--u)) calc(-2 * var(--u)) rgba(0, 0, 0, 0.20);
  padding: calc(17 * var(--u)) calc(8 * var(--u)) calc(16 * var(--u));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.pet__name {
  position: absolute;
  top: calc(-10 * var(--u));
  left: 50%;
  translate: -50% 0;
  max-width: calc(148 * var(--u));
  padding: calc(3 * var(--u)) calc(8 * var(--u));
  border-radius: 999px;
  background: #0C1218;
  border: calc(1 * var(--u)) solid rgba(34, 197, 94, 0.38);
  box-shadow: 0 0 calc(8 * var(--u)) rgba(34, 197, 94, 0.14);
  font-size: calc(9.5 * var(--u));
  font-weight: 800;
  letter-spacing: calc(0.15 * var(--u));
  color: #FFFFFF;
  white-space: nowrap;
}
.pet__msg {
  margin: 0;
  font-size: calc(11.5 * var(--u));
  line-height: 1.22;
  font-weight: 600;
  text-align: center;
  color: rgba(255, 255, 255, 0.95);
}
.pet__msg b { color: var(--hm-routine); font-weight: 900; }
.pet__chip {
  position: absolute;
  left: 50%;
  bottom: calc(-0.5 * var(--u));
  translate: -50% 0;
  min-height: calc(28 * var(--u));
  max-width: calc(116 * var(--u));
  display: inline-flex;
  align-items: center;
  gap: calc(2 * var(--u));
  padding: calc(3 * var(--u)) calc(11 * var(--u));
  border-radius: 999px;
  background: #0C1218;
  border: calc(1 * var(--u)) solid rgba(255, 184, 0, 0.68);
  box-shadow: 0 calc(2 * var(--u)) calc(9 * var(--u)) calc(-2 * var(--u)) rgba(255, 184, 0, 0.18);
  color: var(--hm-routine);
  font-size: calc(9.8 * var(--u));
  font-weight: 900;
  letter-spacing: calc(0.35 * var(--u));
  white-space: nowrap;
}
.pet__chip svg { width: calc(16 * var(--u)); height: calc(16 * var(--u)); stroke: currentColor; }

/* ── Grilla 2x2 (home_screen.dart) ───────────────────────────────────── */
.hm__grid {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: calc(8 * var(--u));
  margin-top: calc(7 * var(--u));
  padding: 0 calc(12 * var(--u)) calc(10 * var(--u));
}
.card {
  position: relative;
  min-width: 0;
  min-height: 0;
  border-radius: calc(28 * var(--u));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: calc(7 * var(--u)) calc(9 * var(--u));
}
.card__head {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(4 * var(--u));
}
.card__title {
  font-size: calc(20 * var(--u));
  font-weight: 900;
  letter-spacing: calc(2 * var(--u));
  color: #FFFFFF;
  white-space: nowrap;
}
.card--routine .card__title,
.card--mood .card__title { text-shadow: 0 calc(1 * var(--u)) 0 rgba(255, 255, 255, 0.25); }
.card__chip {
  flex: 0 0 auto;
  max-width: calc(76 * var(--u));
  min-height: calc(26 * var(--u));
  display: inline-flex;
  align-items: center;
  gap: calc(5 * var(--u));
  padding: calc(4 * var(--u)) calc(9 * var(--u));
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.07));
  border: calc(0.7 * var(--u)) solid rgba(255, 255, 255, 0.28);
  font-size: calc(10 * var(--u));
  font-weight: 900;
  letter-spacing: calc(1.1 * var(--u));
  color: #FFFFFF;
  white-space: nowrap;
}
.card__chip svg { width: calc(14 * var(--u)); height: calc(14 * var(--u)); flex: 0 0 auto; fill: currentColor; }
.card__chip--cyan svg,
.card__chip--mood svg { stroke: currentColor; fill: none; }
.card__chip--cyan {
  background: linear-gradient(180deg, rgba(91, 246, 255, 0.22), rgba(91, 246, 255, 0.09));
  border-color: rgba(91, 246, 255, 0.45);
  color: #CFF8FF;
}
.card__chip--mood {
  background: linear-gradient(180deg, rgba(255, 214, 0, 0.24), rgba(255, 214, 0, 0.10));
  border-color: rgba(255, 214, 0, 0.50);
  color: #FFF3BF;
}

/* Agua (home_water_card.dart + _WavePainter) */
.card--water {
  background: linear-gradient(180deg, rgba(184, 232, 255, 0.20), rgba(160, 220, 255, 0.10) 45%, rgba(140, 213, 250, 0.05));
  border: calc(1 * var(--u)) solid rgba(0, 0, 0, 0.60);
  box-shadow:
    inset 0 calc(8 * var(--u)) calc(18 * var(--u)) calc(1 * var(--u)) rgba(0, 0, 0, 0.75),
    inset calc(6 * var(--u)) 0 calc(14 * var(--u)) rgba(0, 0, 0, 0.35),
    inset calc(-6 * var(--u)) 0 calc(14 * var(--u)) rgba(0, 0, 0, 0.35),
    inset 0 calc(-2 * var(--u)) calc(4 * var(--u)) rgba(255, 255, 255, 0.08);
}
.card--water::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -20%;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle at 72% 18%, rgba(45, 196, 237, 0.22), transparent 60%);
}
.water__liquid {
  position: absolute;
  left: -50%;
  top: 38%;
  width: 200%;
  aspect-ratio: 1;
  border-radius: 45%;
  background: linear-gradient(180deg, rgba(124, 227, 255, 0.40), rgba(45, 196, 237, 0.85));
  animation: hm-spin calc(9 * var(--u)) linear infinite;
}
.water__liquid--back {
  top: 40%;
  background: rgba(45, 196, 237, 0.30);
  animation-duration: calc(13 * var(--u));
  animation-direction: reverse;
}
@keyframes hm-spin { to { rotate: 360deg; } }
.water__center {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: calc(4 * var(--u));
}
.water__big {
  display: flex;
  align-items: baseline;
  gap: calc(3 * var(--u));
  text-shadow: 0 calc(1 * var(--u)) 0 rgba(255, 255, 255, 0.85), 0 calc(-1 * var(--u)) 0 rgba(0, 0, 0, 0.35);
}
.water__big strong {
  font-size: calc(42 * var(--u));
  line-height: 0.8;
  font-weight: 900;
  letter-spacing: calc(-1.2 * var(--u));
  color: #FFFFFF;
}
.water__big span {
  font-size: calc(18 * var(--u));
  font-weight: 800;
  color: rgba(255, 255, 255, 0.85);
}
.card--water .capsule {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  min-height: calc(27 * var(--u));
}
.capsule {
  width: 100%;
  border-radius: calc(32 * var(--u));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(8 * var(--u));
  padding: calc(3 * var(--u)) calc(8 * var(--u));
  border: calc(0.7 * var(--u)) solid;
  font-size: calc(10 * var(--u));
  font-weight: 900;
  letter-spacing: calc(0.5 * var(--u));
}
.capsule svg { width: calc(14 * var(--u)); height: calc(14 * var(--u)); flex: 0 0 auto; }
.capsule--water {
  background: linear-gradient(180deg, rgba(45, 196, 237, 0.22), rgba(26, 169, 214, 0.12));
  border-color: rgba(45, 196, 237, 0.55);
  box-shadow: 0 calc(5 * var(--u)) calc(12 * var(--u)) calc(-5 * var(--u)) rgba(0, 0, 0, 0.45);
  color: #FFFFFF;
}
.capsule--water svg { fill: #2DC4ED; filter: drop-shadow(0 0 calc(4 * var(--u)) rgba(45, 196, 237, 0.8)); }
.capsule--skills {
  min-height: calc(30 * var(--u));
  background: linear-gradient(180deg, rgba(91, 246, 255, 0.22), rgba(56, 224, 255, 0.10));
  border-color: rgba(91, 246, 255, 0.55);
  color: #CFF8FF;
  text-shadow: 0 0 calc(12 * var(--u)) rgba(91, 246, 255, 0.45);
}
.capsule--skills svg { stroke: #7CEFFF; filter: drop-shadow(0 0 calc(8 * var(--u)) rgba(91, 246, 255, 0.8)); }

/* Rutina (home_routine_card.dart): base neumórfica y tubos líquidos */
.card--routine {
  background: #1E1E20;
  border: calc(0.8 * var(--u)) solid rgba(255, 255, 255, 0.05);
  box-shadow:
    calc(8 * var(--u)) calc(14 * var(--u)) calc(26 * var(--u)) rgba(0, 0, 0, 0.45),
    calc(-6 * var(--u)) calc(-6 * var(--u)) calc(22 * var(--u)) rgba(255, 255, 255, 0.05);
}
.routine__body {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 0;
  margin-top: calc(6 * var(--u));
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: calc(6 * var(--u));
}
.tube {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  align-items: center;
  gap: calc(7 * var(--u));
  padding: calc(2 * var(--u)) calc(3 * var(--u));
  border-radius: calc(18 * var(--u));
  background: #22242A;
  border: calc(0.7 * var(--u)) solid rgba(255, 255, 255, 0.06);
  box-shadow:
    calc(3 * var(--u)) calc(5 * var(--u)) calc(10 * var(--u)) rgba(0, 0, 0, 0.48),
    calc(-1 * var(--u)) calc(-1 * var(--u)) calc(5 * var(--u)) rgba(255, 255, 255, 0.05);
}
.tube__tile {
  flex: 0 0 auto;
  width: calc(24 * var(--u));
  height: calc(24 * var(--u));
  border-radius: calc(9 * var(--u));
  display: grid;
  place-items: center;
  border: calc(0.8 * var(--u)) solid;
}
.tube__tile svg { width: calc(14 * var(--u)); height: calc(14 * var(--u)); }
.tube--habits .tube__tile {
  background: linear-gradient(135deg, rgba(255, 209, 122, 0.22), rgba(232, 154, 43, 0.16));
  border-color: rgba(232, 154, 43, 0.45);
  box-shadow: 0 0 calc(10 * var(--u)) calc(-3 * var(--u)) rgba(232, 154, 43, 0.18);
}
.tube--habits .tube__tile svg { fill: #FFD17A; }
.tube--tasks .tube__tile {
  background: linear-gradient(135deg, rgba(103, 226, 182, 0.22), rgba(31, 174, 130, 0.16));
  border-color: rgba(31, 174, 130, 0.45);
}
.tube--tasks .tube__tile svg { fill: #67E2B6; }
.tube--limits .tube__tile {
  background: linear-gradient(135deg, rgba(201, 168, 255, 0.22), rgba(110, 72, 224, 0.16));
  border-color: rgba(110, 72, 224, 0.45);
}
.tube--limits .tube__tile svg { stroke: #C9A8FF; fill: none; }
.tube__lane {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border-radius: 999px;
  overflow: hidden;
  background: #111319;
  box-shadow:
    inset calc(2 * var(--u)) calc(2 * var(--u)) calc(5 * var(--u)) rgba(0, 0, 0, 0.72),
    inset calc(-2 * var(--u)) calc(-2 * var(--u)) calc(5 * var(--u)) rgba(255, 255, 255, 0.05);
}
.tube__fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
}
.tube--habits .tube__fill { width: 50%; background: linear-gradient(90deg, #FFD17A, #E89A2B); }
.tube--tasks .tube__fill { width: 0%; background: linear-gradient(90deg, #67E2B6, #1FAE82); }
.tube--limits .tube__fill { width: 50%; background: linear-gradient(90deg, #C9A8FF, #6E48E0); }
.tube__shade { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.20); }
.tube__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 calc(11 * var(--u));
  font-size: calc(10.5 * var(--u));
  font-weight: 800;
  color: #FFFFFF;
}
.tube__label em { font-style: normal; font-weight: 900; color: rgba(255, 255, 255, 0.88); }

/* Skills (home_skills_card.dart): vidrio cian + rayo SVG real */
.card--skills {
  background: linear-gradient(135deg, rgba(34, 38, 46, 0.62), rgba(20, 22, 28, 0.58) 45%, rgba(10, 11, 14, 0.62));
  border: calc(1 * var(--u)) solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 calc(22 * var(--u)) rgba(91, 246, 255, 0.16);
}
.card--skills::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -20%;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle at 74% 20%, rgba(91, 246, 255, 0.22), transparent 60%);
}
.skills__bolt {
  position: absolute;
  left: 0;
  right: 0;
  top: 5%;
  bottom: 5%;
  display: grid;
  place-items: center;
  opacity: 0.45;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 260'%3E%3Cdefs%3E%3ClinearGradient id='b' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0%25' stop-color='%23A8FBFF'/%3E%3Cstop offset='55%25' stop-color='%235BF6FF'/%3E%3Cstop offset='100%25' stop-color='%230FB6E8'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M140 0 L40 130 H100 L60 260 L180 110 H110 Z' fill='url(%23b)'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.skills__center {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.skills__num {
  font-size: calc(58 * var(--u));
  line-height: 0.85;
  font-weight: 900;
  letter-spacing: calc(-2 * var(--u));
  background: linear-gradient(180deg, #B8BBC2 0%, #6E7178 18%, #3C3E44 48%, #1F2126 68%, #4A4D54 88%, #7A7D85 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 calc(12 * var(--u)) calc(18 * var(--u)) rgba(0, 0, 0, 0.35));
}
.card--skills .capsule { position: relative; z-index: 2; flex: 0 0 auto; }

/* Mood (home_mood_card.dart): color de la emoción real */
.card--mood {
  background: linear-gradient(135deg, rgba(255, 214, 0, 0.78), rgba(255, 214, 0, 0.42) 42%, #060810 100%);
  border: calc(0.5 * var(--u)) solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 calc(30 * var(--u)) calc(-3 * var(--u)) rgba(255, 214, 0, 0.22);
}
.card--mood::before {
  content: "";
  position: absolute;
  left: -20%;
  bottom: -20%;
  width: 150%;
  height: 120%;
  background: radial-gradient(circle at 38% 72%, rgba(255, 214, 0, 0.40), transparent 62%);
}
.mood__center {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mood__squircle {
  position: relative;
  width: calc(88 * var(--u));
  height: calc(88 * var(--u));
  border-radius: 36%;
  display: grid;
  place-items: center;
  background: rgba(255, 214, 0, 0.30);
  border: calc(1.5 * var(--u)) solid rgba(255, 214, 0, 0.80);
  box-shadow: inset 0 calc(-8 * var(--u)) calc(14 * var(--u)) rgba(0, 0, 0, 0.18);
  overflow: hidden;
}
.mood__squircle::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 40% 30%, rgba(255, 214, 0, 0.60), rgba(255, 214, 0, 0.20) 70%);
}
.mood__squircle img {
  position: relative;
  width: 88%;
  height: 88%;
  object-fit: contain;
  filter: drop-shadow(0 calc(3 * var(--u)) calc(5 * var(--u)) rgba(0, 0, 0, 0.35));
}
.card--mood .capsule {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  min-height: calc(30 * var(--u));
  background: linear-gradient(180deg, rgba(255, 214, 0, 0.22), rgba(255, 214, 0, 0.10));
  border-color: rgba(255, 214, 0, 0.55);
}
.capsule--mood { min-height: calc(30 * var(--u)); }
.mood__meters {
  display: flex;
  gap: calc(2.4 * var(--u));
  width: 100%;
  height: calc(12 * var(--u));
  padding: 0 calc(2 * var(--u));
}
.mood__meters i {
  flex: 1 1 0;
  border-radius: calc(5 * var(--u));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 214, 0, 0.16));
  border: calc(0.45 * var(--u)) solid rgba(255, 255, 255, 0.07);
}
.mood__meters i.is-on {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), #FFD600 45%, rgba(255, 214, 0, 0.54));
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 calc(7 * var(--u)) calc(-2 * var(--u)) rgba(255, 214, 0, 0.44);
}

/* ── Dock de 5 grupos (shell_navigation_dock.dart) ───────────────────── */
.dock {
  position: absolute;
  left: calc(12 * var(--u));
  right: calc(12 * var(--u));
  bottom: calc(42 * var(--u));
  height: calc(49 * var(--u));
  display: flex;
  gap: calc(4 * var(--u));
  z-index: 4;
}
.dock__rail {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: calc(20.6 * var(--u));
  background: linear-gradient(180deg, rgba(35, 48, 44, 0.94), rgba(27, 36, 34, 0.94) 34%, rgba(24, 31, 30, 0.94));
  border: calc(0.75 * var(--u)) solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 calc(6 * var(--u)) calc(14 * var(--u)) calc(-6 * var(--u)) rgba(0, 0, 0, 0.55);
}
.dock__group {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(2 * var(--u));
  position: relative;
  width: 100%;
  height: 100%;
}
.dock__group svg { width: calc(21 * var(--u)); height: calc(21 * var(--u)); fill: #CBD5E1; }
.dock__group span {
  font-size: calc(9.2 * var(--u));
  font-weight: 700;
  letter-spacing: calc(0.15 * var(--u));
  line-height: 1;
  color: #CBD5E1;
  white-space: nowrap;
}
.dock__island {
  flex: 0 0 auto;
  width: calc(110 * var(--u));
  position: relative;
  border-radius: calc(20.6 * var(--u));
  background: linear-gradient(180deg, rgba(44, 74, 58, 0.94), rgba(30, 51, 40, 0.94) 34%, rgba(26, 44, 35, 0.94));
  border: calc(1.05 * var(--u)) solid rgba(34, 197, 94, 0.72);
  box-shadow: 0 0 calc(18 * var(--u)) calc(-4 * var(--u)) rgba(34, 197, 94, 0.32);
  display: flex;
}
.dock__island::before,
.dock__island::after {
  content: "";
  position: absolute;
  left: calc(8 * var(--u));
  right: calc(8 * var(--u));
  height: calc(2.4 * var(--u));
  background: linear-gradient(90deg, transparent, #22C55E, transparent);
  box-shadow: 0 0 calc(8 * var(--u)) rgba(34, 197, 94, 0.82);
}
.dock__island::before { top: 0; border-radius: 999px; }
.dock__island::after { bottom: 0; border-radius: 999px; }
.dock__dest {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(2 * var(--u));
  position: relative;
}
.dock__dest + .dock__dest { border-left: calc(1 * var(--u)) solid rgba(255, 255, 255, 0.10); }
.dock__dest svg { width: calc(23 * var(--u)); height: calc(23 * var(--u)); }
.dock__dest span {
  font-size: calc(9.2 * var(--u));
  font-weight: 800;
  letter-spacing: calc(0.15 * var(--u));
  line-height: 1;
  white-space: nowrap;
}
.dock__dest--on { color: #6EE7A0; text-shadow: 0 0 calc(8 * var(--u)) rgba(34, 197, 94, 0.42); }
.dock__dest--on svg { fill: #6EE7A0; filter: drop-shadow(0 0 calc(5 * var(--u)) rgba(34, 197, 94, 0.72)); }
.dock__dest--off { color: #9FB0A8; }
.dock__dest--off svg { fill: #9FB0A8; }
.dock__dot {
  position: absolute;
  bottom: calc(2 * var(--u));
  left: calc(25% - 3 * var(--u));
  width: calc(6 * var(--u));
  height: calc(6 * var(--u));
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 calc(9 * var(--u)) calc(1 * var(--u)) rgba(34, 197, 94, 0.88);
}
.dock__rails { flex: 1 1 auto; display: flex; gap: calc(4 * var(--u)); min-width: 0; }
.dock__rails .dock__rail { flex: 1 1 0; min-width: 0; }
.dock__rail--mid { position: relative; }
.dock__rail--mid + .dock__rail--mid::before {
  content: "";
  position: absolute;
  left: calc(-2.5 * var(--u));
  top: calc(10 * var(--u));
  bottom: calc(10 * var(--u));
  width: calc(0.75 * var(--u));
  background: rgba(255, 255, 255, 0.10);
}

/* ════════════════════════════════════════════════════════════════════════
 * CARA TRACKING — Historial de GP (home_gp_history_sheet.dart)
 * ════════════════════════════════════════════════════════════════════════ */

.gp {
  display: flex;
  flex-direction: column;
  padding-top: calc(56 * var(--u));
  background:
    linear-gradient(180deg, rgba(34, 197, 94, 0.09), rgba(10, 12, 16, 0) 28%),
    #0A0C10;
}
.gp__bar {
  flex: 0 0 auto;
  min-height: calc(76 * var(--u));
  display: flex;
  align-items: center;
  gap: calc(8 * var(--u));
  padding: calc(8 * var(--u)) calc(8 * var(--u)) calc(8 * var(--u)) calc(12 * var(--u));
  background: rgba(29, 32, 41, 0.94);
  border-bottom: calc(1 * var(--u)) solid rgba(34, 197, 94, 0.32);
  box-shadow: 0 calc(8 * var(--u)) calc(22 * var(--u)) calc(-9 * var(--u)) rgba(34, 197, 94, 0.12);
}
.gp__back {
  flex: 0 0 auto;
  width: calc(48 * var(--u));
  height: calc(48 * var(--u));
  display: grid;
  place-items: center;
  border-radius: calc(14 * var(--u));
}
.gp__back svg { width: calc(24 * var(--u)); height: calc(24 * var(--u)); stroke: #F8FAFC; }
.gp__mark {
  flex: 0 0 auto;
  width: calc(48 * var(--u));
  height: calc(48 * var(--u));
  display: grid;
  place-items: center;
  border-radius: calc(16 * var(--u));
  background: rgba(34, 197, 94, 0.13);
  border: calc(1 * var(--u)) solid rgba(34, 197, 94, 0.48);
  box-shadow: 0 0 calc(14 * var(--u)) calc(-5 * var(--u)) rgba(34, 197, 94, 0.15);
}
.gp__mark svg { width: calc(24 * var(--u)); height: calc(24 * var(--u)); fill: #22C55E; }
.gp__title {
  margin: 0;
  font-size: calc(18 * var(--u));
  font-weight: 800;
  letter-spacing: calc(-0.2 * var(--u));
  color: #F8FAFC;
}
.gp__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
  padding: calc(12 * var(--u)) calc(16 * var(--u)) calc(24 * var(--u));
}
.gp__body::-webkit-scrollbar { display: none; }
.surface {
  border-radius: calc(20 * var(--u));
  background: rgba(255, 255, 255, 0.06);
  border: calc(1 * var(--u)) solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 calc(6 * var(--u)) calc(12 * var(--u)) rgba(0, 0, 0, 0.35),
    calc(-2 * var(--u)) calc(-2 * var(--u)) calc(5 * var(--u)) rgba(255, 255, 255, 0.05);
}
.gp__stack { display: flex; flex-direction: column; gap: calc(12 * var(--u)); }

/* Héroe: mascota + globo (misma pieza que Racha) */
.gp-hero { display: flex; align-items: center; gap: calc(8 * var(--u)); padding: calc(8 * var(--u)) calc(12 * var(--u)); }
.gp-hero__mascot {
  position: relative;
  flex: 0 0 auto;
  height: calc(126 * var(--u));
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.gp-hero__mascot::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(6 * var(--u));
  height: calc(18 * var(--u));
  background: radial-gradient(closest-side, rgba(34, 197, 94, 0.30), transparent);
}
.gp-hero__mascot img {
  position: relative;
  height: calc(125 * var(--u));
  width: auto;
  filter: drop-shadow(0 calc(8 * var(--u)) calc(12 * var(--u)) rgba(0, 0, 0, 0.4));
}
.gp-bubble {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  border-radius: calc(4 * var(--u)) calc(16 * var(--u)) calc(16 * var(--u)) calc(4 * var(--u));
  background: linear-gradient(180deg, rgba(29, 32, 41, 0.9), rgba(20, 23, 29, 0.94));
  border: calc(1 * var(--u)) solid rgba(45, 196, 237, 0.55);
  box-shadow: 0 0 calc(18 * var(--u)) calc(-6 * var(--u)) rgba(45, 196, 237, 0.16);
  padding: calc(8 * var(--u)) calc(12 * var(--u)) calc(8 * var(--u)) calc(16 * var(--u));
}
.gp-bubble::before {
  content: "";
  position: absolute;
  left: calc(-9 * var(--u));
  top: 50%;
  translate: 0 -50%;
  border: calc(9 * var(--u)) solid transparent;
  border-left: 0;
  border-right-color: rgba(20, 23, 29, 0.94);
}
.gp-bubble__row { display: flex; align-items: center; gap: calc(8 * var(--u)); min-width: 0; }
.gp-bubble__name {
  flex: 0 1 auto;
  min-width: 0;
  max-width: calc(148 * var(--u));
  overflow: hidden;
  text-overflow: ellipsis;
  padding: calc(2 * var(--u)) calc(8 * var(--u));
  border-radius: 999px;
  background: rgba(45, 196, 237, 0.12);
  border: calc(1 * var(--u)) solid rgba(45, 196, 237, 0.36);
  color: #7CE3FF;
  font-size: calc(11 * var(--u));
  font-weight: 800;
  white-space: nowrap;
}
.gp-bubble__eyebrow {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #7CE3FF;
  font-size: calc(11 * var(--u));
  font-weight: 800;
  letter-spacing: calc(1 * var(--u));
  white-space: nowrap;
}
.gp-bubble p {
  margin: calc(5 * var(--u)) 0 0;
  font-size: calc(15 * var(--u));
  line-height: 1.4;
  font-weight: 600;
  color: #F8FAFC;
}
.gp-bubble p b { color: #7CE3FF; font-weight: 800; }

/* Hoy: total + barra 0..100 */
.gp-today { padding: calc(16 * var(--u)); }
.gp-areas { padding: calc(16 * var(--u)); }
.gp-areas .area-row:first-child { margin-top: 0; }
.gp-today__line {
  display: flex;
  align-items: baseline;
  gap: calc(4 * var(--u));
  white-space: nowrap;
}
.gp-today__line strong {
  font-size: calc(34 * var(--u));
  font-weight: 900;
  letter-spacing: calc(-0.8 * var(--u));
  color: #22C55E;
  text-shadow: 0 0 calc(18 * var(--u)) rgba(34, 197, 94, 0.45);
}
.gp-today__line em {
  font-style: normal;
  font-size: calc(13 * var(--u));
  font-weight: 800;
  letter-spacing: calc(1.6 * var(--u));
  color: #22C55E;
}
.gp-today__line i {
  font-style: normal;
  font-size: calc(13 * var(--u));
  font-weight: 700;
  letter-spacing: calc(0.6 * var(--u));
  color: #8B98B2;
}
.gp-bar {
  position: relative;
  height: calc(14 * var(--u));
  margin-top: calc(8 * var(--u));
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  border: calc(1 * var(--u)) solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 calc(2 * var(--u)) calc(5 * var(--u)) rgba(0, 0, 0, 0.30);
  overflow: hidden;
}
.gp-bar__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  border-radius: 999px;
  background: linear-gradient(180deg, #6EE7A0, #22C55E);
  box-shadow: 0 0 calc(12 * var(--u)) calc(-2 * var(--u)) rgba(34, 197, 94, 0.42);
}
.gp-bar__fill::after {
  content: "";
  position: absolute;
  inset: 0 0 45% 0;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0));
}
.gp-bar__ticks {
  position: absolute;
  inset: 0;
  display: flex;
}
.gp-bar__ticks i {
  flex: 1 1 0;
  display: flex;
  justify-content: flex-end;
}
.gp-bar__ticks i::after {
  content: "";
  width: calc(1 * var(--u));
  height: calc(8 * var(--u));
  align-self: center;
  background: rgba(139, 152, 178, 0.30);
}

/* Filas de área: rótulo / cilindro / valor (gp_area_progress_row.dart) */
.area-row {
  display: flex;
  align-items: center;
  gap: calc(8 * var(--u));
  margin-top: calc(12 * var(--u));
}
.area-pill {
  flex: 0 0 auto;
  width: calc(68 * var(--u));
  height: calc(26 * var(--u));
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: calc(1 * var(--u)) solid;
  font-size: calc(11 * var(--u));
  font-weight: 800;
  letter-spacing: calc(0.4 * var(--u));
  white-space: nowrap;
}
.area-pill--water { background: linear-gradient(180deg, rgba(45, 196, 237, 0.30), rgba(26, 169, 214, 0.16)); border-color: rgba(45, 196, 237, 0.48); color: #7CE3FF; }
.area-pill--mood { background: linear-gradient(180deg, rgba(255, 214, 0, 0.30), rgba(255, 214, 0, 0.16)); border-color: rgba(255, 214, 0, 0.48); color: #FFE566; }
.area-pill--routine { background: linear-gradient(180deg, rgba(255, 184, 0, 0.30), rgba(232, 154, 43, 0.16)); border-color: rgba(255, 184, 0, 0.48); color: #FFD17A; }
.area-pill--skills { background: linear-gradient(180deg, rgba(91, 246, 255, 0.30), rgba(56, 224, 255, 0.16)); border-color: rgba(91, 246, 255, 0.48); color: #5BF6FF; }
.area-lane {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: calc(19 * var(--u));
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: calc(0.7 * var(--u)) solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 calc(3 * var(--u)) calc(16 * var(--u)) calc(-6 * var(--u)) rgba(45, 196, 237, 0.32),
    inset 0 calc(2 * var(--u)) calc(4 * var(--u)) rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.area-lane span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
}
.area-lane span::after {
  content: "";
  position: absolute;
  inset: 0 0 50% 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.30);
}
.area-lane--water span { width: 100%; background: linear-gradient(90deg, #7CE3FF, #2DC4ED); }
.area-lane--mood span { width: 100%; background: linear-gradient(90deg, #FFE566, #FFD600); }
.area-lane--routine span { width: 48%; background: linear-gradient(90deg, #FFD17A, #FFB800); }
.area-lane--skills span { width: 10%; background: linear-gradient(90deg, #A8FBFF, #5BF6FF); }
.area-pill--value {
  width: calc(60 * var(--u));
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.14);
  color: #F8FAFC;
  font-weight: 600;
}
.area-pill--value.is-full {
  background: linear-gradient(180deg, rgba(45, 196, 237, 0.30), rgba(26, 169, 214, 0.16));
  border-color: rgba(45, 196, 237, 0.48);
  color: #7CE3FF;
  font-weight: 900;
}
.area-pill--value.is-full--mood {
  background: linear-gradient(180deg, rgba(255, 214, 0, 0.30), rgba(255, 214, 0, 0.16));
  border-color: rgba(255, 214, 0, 0.48);
  color: #FFE566;
}
.area-pill--value .check {
  display: inline-grid;
  place-items: center;
  width: calc(16 * var(--u));
  height: calc(16 * var(--u));
  margin-right: calc(4 * var(--u));
  border-radius: 50%;
  background: linear-gradient(180deg, #A7F3D0, #10B981);
  box-shadow: 0 0 calc(8 * var(--u)) calc(-2 * var(--u)) rgba(16, 185, 129, 0.45);
  color: #FFFFFF;
}
.area-pill--value .check svg { width: calc(11 * var(--u)); height: calc(11 * var(--u)); stroke: #FFFFFF; }

/* Selector de período */
.period {
  display: flex;
  padding: calc(4 * var(--u));
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: calc(1 * var(--u)) solid rgba(255, 255, 255, 0.14);
}
.period button {
  flex: 1 1 0;
  min-height: calc(44 * var(--u));
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: calc(11 * var(--u));
  font-weight: 700;
  letter-spacing: calc(0.8 * var(--u));
  color: #CBD5E1;
}
.period button.is-on {
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.34), rgba(34, 197, 94, 0.18));
  border: calc(1 * var(--u)) solid rgba(34, 197, 94, 0.55);
  box-shadow:
    0 0 calc(16 * var(--u)) calc(-4 * var(--u)) rgba(34, 197, 94, 0.24),
    inset 0 calc(1 * var(--u)) 0 rgba(255, 255, 255, 0.18);
  color: #BBF7D0;
  font-weight: 900;
}

/* Chart 7D */
.chart { padding: calc(12 * var(--u)); }
.chart__head { display: flex; align-items: center; justify-content: space-between; gap: calc(8 * var(--u)); }
.chart__title { font-size: calc(15 * var(--u)); font-weight: 700; color: #F8FAFC; }
.chart__mode {
  display: inline-flex;
  align-items: center;
  gap: calc(6 * var(--u));
  min-height: calc(32 * var(--u));
  padding: 0 calc(12 * var(--u));
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.10);
  border: calc(1 * var(--u)) solid rgba(34, 197, 94, 0.36);
  color: #86EFAC;
  font-size: calc(11 * var(--u));
  font-weight: 800;
}
.chart__mode svg { width: calc(18 * var(--u)); height: calc(18 * var(--u)); stroke: #86EFAC; }
.chart__pill {
  display: block;
  align-self: center;
  margin: calc(8 * var(--u)) auto 0;
  width: max-content;
  padding: calc(4 * var(--u)) calc(10 * var(--u));
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.10);
  border: calc(1 * var(--u)) solid rgba(34, 197, 94, 0.34);
  color: #F8FAFC;
  font-size: calc(11 * var(--u));
  font-weight: 800;
}
.chart__plot {
  position: relative;
  margin-top: calc(6 * var(--u));
  padding-left: calc(26 * var(--u));
}
.chart__axis {
  position: absolute;
  left: 0;
  top: calc(14 * var(--u));
  bottom: calc(26 * var(--u));
  width: calc(26 * var(--u));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  font-size: calc(9 * var(--u));
  font-weight: 700;
  color: #8B98B2;
}
.chart__axis i { font-style: normal; }
.chart__days {
  position: relative;
  height: calc(172 * var(--u));
  display: flex;
  align-items: flex-end;
  gap: calc(3 * var(--u));
  padding: calc(14 * var(--u)) 0 calc(26 * var(--u));
}
.chart__day {
  position: relative;
  flex: 1 1 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}
.chart__lane {
  position: absolute;
  inset: 0;
  border-radius: calc(7 * var(--u)) calc(7 * var(--u)) 0 0;
  background: rgba(255, 255, 255, 0.05);
}
.chart__val {
  position: absolute;
  top: 0;
  font-size: calc(11 * var(--u));
  font-weight: 800;
  color: #8B98B2;
  white-space: nowrap;
}
.chart__day.is-today .chart__val,
.chart__day.is-peak .chart__val { color: #86EFAC; }
.chart__bar {
  position: relative;
  width: 100%;
  border-radius: calc(7 * var(--u)) calc(7 * var(--u)) 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 calc(14 * var(--u)) calc(-2 * var(--u)) rgba(34, 197, 94, 0.42);
}
.chart__bar i { display: block; flex: 1 1 0; }
.chart__bar .f3 { flex: 3 1 0; }
.chart__bar .f5 { flex: 5 1 0; }
.chart__bar .f10 { flex: 10 1 0; }
.chart__bar .f11 { flex: 11 1 0; }
.chart__bar .f12 { flex: 12 1 0; }
.chart__bar .f15 { flex: 15 1 0; }
.chart__bar .f20 { flex: 20 1 0; }
.chart__bar .f25 { flex: 25 1 0; }
.chart__bar .f36 { flex: 36 1 0; }
.chart__bar i + i { border-top: calc(1.5 * var(--u)) solid rgba(10, 12, 16, 0.85); }
.chart__bar .s-water { background: #2DC4ED; }
.chart__bar .s-mood { background: #FFD600; }
.chart__bar .s-routine { background: #FFB800; }
.chart__bar .s-skills { background: #5BF6FF; }
.chart__bar--h58 { height: calc(58 * var(--u)); }
.chart__bar--h29 { height: calc(29 * var(--u)); }
.chart__bar--h111 { height: calc(111 * var(--u)); }
.chart__bar--h74 { height: calc(74 * var(--u)); }
.chart__bar--h81 { height: calc(81 * var(--u)); }
.chart__bar--none {
  height: calc(7 * var(--u));
  background: rgba(255, 255, 255, 0.07);
  box-shadow: none;
}
.chart__day.is-future .chart__bar--none { background: rgba(255, 255, 255, 0.035); }
.chart__day.is-today .chart__lane { background: rgba(34, 197, 94, 0.07); }
.chart__day.is-today::after {
  content: "";
  position: absolute;
  bottom: calc(-4 * var(--u));
  left: 50%;
  translate: -50% 0;
  width: calc(14 * var(--u));
  height: calc(3 * var(--u));
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.95);
  box-shadow: 0 0 calc(6 * var(--u)) calc(-1 * var(--u)) rgba(34, 197, 94, 0.5);
}
.chart__day.is-halo .chart__bar {
  outline: calc(1.4 * var(--u)) solid rgba(34, 197, 94, 0.62);
  outline-offset: calc(2 * var(--u));
  border-radius: calc(8 * var(--u));
}
.chart__record {
  position: absolute;
  left: calc(26 * var(--u));
  right: 0;
  top: calc(14 * var(--u) + (172 - 14 - 26) * 0.14);
  height: 0;
  border-top: calc(1.5 * var(--u)) dashed rgba(34, 197, 94, 0.75);
  pointer-events: none;
}
.chart__record::after {
  content: "Mejor día +86";
  position: absolute;
  left: calc(100% * 2.5 / 7);
  translate: -50% 0;
  top: calc(-22 * var(--u));
  padding: calc(2 * var(--u)) calc(8 * var(--u));
  border-radius: 999px;
  background: rgba(12, 18, 14, 0.94);
  border: calc(1 * var(--u)) solid rgba(34, 197, 94, 0.55);
  color: #86EFAC;
  font-size: calc(9.5 * var(--u));
  font-weight: 800;
  white-space: nowrap;
}
.chart__dates {
  display: flex;
  gap: calc(3 * var(--u));
  margin-top: calc(2 * var(--u));
}
.chart__dates span {
  flex: 1 1 0;
  text-align: center;
  font-size: calc(9 * var(--u));
  font-weight: 700;
  color: #8B98B2;
}
.chart__note {
  margin: calc(8 * var(--u)) 0 0;
  font-size: calc(11 * var(--u));
  font-weight: 600;
  letter-spacing: calc(0.4 * var(--u));
  color: #8B98B2;
}

/* Snapshot del día (home_gp_history_sheet + gp_day_snapshot_sheet) */
.snap { padding: calc(14 * var(--u)) calc(16 * var(--u)); }
.snap__date {
  margin: 0;
  font-family: var(--ks-display);
  font-size: calc(15 * var(--u));
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #BBF7D0;
}
.snap__total {
  margin: calc(4 * var(--u)) 0 0;
  font-size: calc(28 * var(--u));
  font-weight: 900;
  color: #F8FAFC;
}
.snap__total span { font-size: calc(12 * var(--u)); font-weight: 700; color: #8B98B2; }
.snap__eyebrow {
  margin: calc(12 * var(--u)) 0 0;
  font-size: calc(11 * var(--u));
  font-weight: 800;
  letter-spacing: calc(1 * var(--u));
  color: #8B98B2;
}
.snap .area-row { margin-top: calc(10 * var(--u)); }

/* Métricas del período */
.gp-metrics {
  display: flex;
  align-items: stretch;
  padding: calc(10 * var(--u)) calc(12 * var(--u));
}
.gp-metric {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(2 * var(--u));
}
.gp-metric + .gp-metric { border-left: calc(1 * var(--u)) solid rgba(255, 255, 255, 0.10); }
.gp-metric strong { font-size: calc(18 * var(--u)); font-weight: 600; color: #22C55E; }
.gp-metric span { font-size: calc(11 * var(--u)); font-weight: 600; letter-spacing: calc(0.4 * var(--u)); color: #CBD5E1; }
.gp-best {
  display: flex;
  align-items: center;
  gap: calc(12 * var(--u));
  padding: calc(10 * var(--u)) calc(12 * var(--u));
}
.gp-best__medal {
  flex: 0 0 auto;
  width: calc(34 * var(--u));
  height: calc(34 * var(--u));
  display: grid;
  place-items: center;
  border-radius: calc(12 * var(--u));
  background: rgba(34, 197, 94, 0.14);
  border: calc(1 * var(--u)) solid rgba(34, 197, 94, 0.46);
}
.gp-best__medal svg { width: calc(18 * var(--u)); height: calc(18 * var(--u)); fill: #22C55E; }
.gp-best p { margin: 0; font-size: calc(15 * var(--u)); font-weight: 700; color: #F8FAFC; }

/* ── Calma y motion ──────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .water__liquid { animation: none; }
}
