/* ALEEY theme – 11.11.2026. Paper, graphite, black. No yellow. Loaded last; overrides older layers. */
:root {
  --bg: #f3f3f1;
  --top: #e3e3e0;
  --surface: #ffffff;
  --ink: #141414;
  --muted: #8a8a86;
  --line: #e8e8e5;
  --accent: #141414;
  --accent-light: #ececea;
  --shadow: 0 1px 2px #0000000a, 0 8px 24px #00000008;
}

/* ---------- Page shell: full-bleed, no card frame, no rubber-band look ---------- */
html, body { background: var(--bg); overscroll-behavior-y: none; }
body { color: var(--ink); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
.app { display: block; }
.main {
  width: 100% !important; max-width: none !important; margin: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  min-height: 100dvh;
  padding: calc(env(safe-area-inset-top) + 6px) 18px calc(112px + env(safe-area-inset-bottom)) !important;
  background: linear-gradient(180deg, var(--top) 0, var(--bg) 360px, var(--bg) 100%) !important;
}
@media (min-width: 560px) { #content { max-width: 460px; margin: 0 auto; } }
@media (max-width: 360px) { .main { padding-left: 14px !important; padding-right: 14px !important; } }

/* ---------- Arc date rail ---------- */
.date-section, .date-section.arc-section {
  position: relative; width: auto; max-width: none;
  margin: 0 -18px 4px !important; overflow: hidden;
}
.arc-month {
  text-align: center; font-size: 12px; font-weight: 650; letter-spacing: .02em; color: #6f6f6b;
  text-transform: capitalize; padding-top: 6px; margin-bottom: -18px; position: relative; z-index: 1;
}
.date-strip, .date-strip.arc-strip {
  display: flex; align-items: flex-end; gap: 0;
  height: 118px !important; padding: 0 calc(50% - 34px) 8px !important;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-padding-inline: 0 !important;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; touch-action: pan-x;
  -webkit-mask-image: none !important; mask-image: none !important;
}
.date-strip::-webkit-scrollbar { display: none; }
.date-day, .date-day.selected {
  position: relative; flex: 0 0 68px !important; width: 68px !important; height: 56px !important;
  display: grid; align-content: end; justify-items: center; gap: 3px;
  padding: 0 0 6px !important; border: 0 !important; border-radius: 0 !important;
  background: transparent !important; box-shadow: none !important; color: #9b9b97 !important;
  scroll-snap-align: center; transform-origin: 50% 100%;
  transform: translateY(var(--lift, 0px)) scale(var(--s, 1)) !important;
  transition: color .2s ease, opacity .08s linear;
  will-change: transform, opacity;
}
.date-day span { font-size: 11px; font-weight: 600; letter-spacing: .01em; color: inherit; }
.date-day strong { font-size: 21px !important; line-height: 1; font-weight: 600 !important; letter-spacing: -.03em; color: inherit !important; font-variant-numeric: tabular-nums; transition: font-size .2s ease; }
.date-day.selected { color: var(--ink) !important; }
.date-day.selected span { color: #5c5c58; }
.date-day.selected strong { font-size: 30px !important; font-weight: 750 !important; letter-spacing: -.05em; }
.date-day::after, .date-day.is-today::after { content: none; }
.date-day.is-today::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: currentColor;
}

/* ---------- Home hero: one soft field from the status bar down, no edge ---------- */
.home-hero {
  margin: calc(-1 * (env(safe-area-inset-top) + 6px)) -18px 6px;
  padding: calc(env(safe-area-inset-top) + 6px) 18px 22px;
  background: radial-gradient(75% 45% at 50% 34%, #ffffff94 0, #ffffff00 100%);
}
@media (max-width: 360px) { .home-hero { margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px; } }
.home-heading { margin: 14px 0 0; text-align: center; }
.home-heading h1 { margin: 0; color: var(--ink); font-size: clamp(30px, 8.6vw, 38px); line-height: 1.05; font-weight: 750; letter-spacing: -.055em; }
.home-heading span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; font-weight: 550; }

/* ---------- Overview cards ---------- */
.home-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.home-card {
  display: flex; flex-direction: column; align-items: flex-start; min-width: 0; min-height: 172px;
  padding: 16px 16px 15px; border: 0; border-radius: 28px;
  background: var(--surface); color: var(--ink); text-align: left; box-shadow: var(--shadow);
  transition: transform .15s ease;
}
.home-card:active, .hub-tile:active { transform: scale(.975); }
.home-card:focus-visible, .hub-tile:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.home-card-top { display: flex; align-items: center; justify-content: space-between; width: 100%; color: #7a7a76; font-size: 13px; font-weight: 600; }
.home-card-top svg { width: 19px; height: 19px; flex: none; stroke: currentColor; }
.home-big { display: block; margin: auto 0 0; font-size: clamp(28px, 8vw, 34px); line-height: 1; font-weight: 700; letter-spacing: -.06em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.home-big small { font-size: 14px; font-weight: 600; letter-spacing: -.01em; color: var(--muted); }
.home-card-sub { margin-top: 8px; color: var(--muted); font-size: 11.5px; line-height: 1.3; }
.home-card-dark { background: #161616; color: #fff; box-shadow: 0 10px 28px #0000001f; }
.home-card-dark .home-card-top, .home-card-dark .home-card-sub { color: #a4a4a0; }

.home-ring-wrap { position: relative; display: grid; place-items: center; margin: 10px 0 0; color: var(--ink); }
.home-ring { display: block; }
.home-ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.home-ring-label strong { font-size: 24px; line-height: 1; font-weight: 700; letter-spacing: -.05em; }
.home-ring-label small { font-size: 10px; color: var(--muted); margin-top: 2px; }

.home-ticks { display: flex; gap: 4px; align-items: flex-end; width: 100%; height: 22px; margin-top: 12px; }
.home-ticks i { flex: 1; height: 100%; border-radius: 3px; background: #ececea; }
.home-ticks i.on { background: var(--ink); }

.home-bars { display: flex; gap: 5px; align-items: flex-end; width: 100%; height: 30px; margin-top: 12px; }
.home-bars i { flex: 1; border-radius: 4px; background: #e6e6e3; }
.home-bars i.last { background: var(--ink); }

.home-section-title { margin: 28px 2px 10px; color: var(--ink); font-size: 17px; font-weight: 700; letter-spacing: -.035em; text-align: left; }
.hub-list { display: grid; gap: 1px; overflow: hidden; border-radius: 26px; background: var(--line); box-shadow: var(--shadow); margin-bottom: 8px; }
.hub-tile {
  display: flex; align-items: center; gap: 13px; width: 100%; min-height: 66px; padding: 12px 16px;
  border: 0; background: var(--surface); color: var(--ink); text-align: left; transition: transform .15s ease, background .15s ease;
}
.hub-tile:active { background: #f7f7f5; }
.hub-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 13px; background: #f2f2f0; color: var(--ink); }
.hub-icon svg { width: 20px; height: 20px; }
.hub-text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.hub-text b { font-size: 14.5px; font-weight: 650; letter-spacing: -.02em; }
.hub-text small { font-size: 11.5px; color: var(--muted); }
.hub-value { display: grid; place-items: center; min-width: 28px; color: #9a9a96; font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; }
.hub-value svg { width: 17px; height: 17px; }

/* ---------- Bottom navigation: one calm glass bar, nothing sticking out ---------- */
.mobile-nav {
  display: flex !important; position: fixed; z-index: 30;
  left: 50% !important; right: auto !important; transform: translateX(-50%) !important;
  bottom: max(10px, env(safe-area-inset-bottom)) !important;
  width: min(420px, calc(100% - 28px)) !important; height: 64px !important;
  padding: 0 8px !important; gap: 0; align-items: center; justify-content: space-between;
  border: 1px solid #ffffffb3 !important; border-radius: 32px !important;
  background: #fbfbfab8 !important;
  -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  box-shadow: 0 0 0 .5px #0000000f, 0 12px 32px #00000017 !important;
}
.mobile-nav .nav-item, .mobile-nav .nav-item[data-page=dashboard],
.mobile-nav .nav-item.active, .mobile-nav .nav-item[data-page=dashboard].active {
  flex: 1 1 0; width: auto !important; min-width: 0 !important; height: 52px !important;
  margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 26px !important;
  display: grid; place-content: center; justify-items: center; gap: 3px;
  background: transparent !important; box-shadow: none !important;
  color: #9a9a96 !important; font-size: 10px; font-weight: 600;
}
.mobile-nav .nav-item.active { color: var(--ink) !important; }
.mobile-nav .nav-icon svg, .mobile-nav .nav-item .nav-icon svg, .mobile-nav .nav-item.active .nav-icon svg { width: 21px; height: 21px; stroke: currentColor !important; }
.mobile-nav .nav-item[data-page=dashboard] .nav-icon {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: #e9e9e6; color: var(--ink);
}
.mobile-nav .nav-item[data-page=dashboard] .nav-label { display: none; }
.mobile-nav .nav-item[data-page=dashboard].active .nav-icon { background: var(--ink); color: #fff; }

/* ---------- Former yellow elements: graphite instead ---------- */
.diary-scan, .food-cta, .button.accent, .meal-plus, .scan-camera,
.weight-picker-controls button, .zip-form button, .all-offers-link, .offer-links a,
.save-meal-form button, .meal-template button,
.custom-exercise button, .training-form button, .set-form button {
  background: var(--ink) !important; color: #fff !important; box-shadow: none !important;
}
.intro-v2-mark, .product-placeholder, .pan-idea-mark, .roadmap-stage, .set-list b,
#onlineResults .database-result:first-of-type .result-glyph { background: #e9e9e6 !important; color: var(--ink) !important; }
.portion-options button.active, .favorite-toggle.active { background: var(--ink) !important; border-color: var(--ink) !important; color: #fff !important; }
.feature-progress i, .dash-macro .mini-track i, .step-track i, .home-track b { background: var(--ink) !important; }
.dash-tile-lilac .tile-line svg { stroke: #fff !important; }
.dash-tile-lilac>span:last-child b { color: #fff !important; }
.home-card-dark .home-card-top svg { stroke: currentColor !important; }

/* ---------- 11.11. v2: one card at a time, swipe sideways ---------- */
.arc-section { padding-top: 10px; }
.home-heading { margin: 8px 0 0; }
.home-hero { padding-bottom: 26px; }
.home-deck {
  display: flex; gap: 12px; margin: 0 -18px; padding: 4px 18px 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 18px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.home-deck::-webkit-scrollbar { display: none; }
.deck-card {
  flex: 0 0 calc(100% - 28px); scroll-snap-align: start; scroll-snap-stop: always;
  display: flex; flex-direction: column; min-height: 300px; padding: 20px 20px 18px;
  border: 0; border-radius: 32px; background: var(--surface); color: var(--ink);
  text-align: left; box-shadow: var(--shadow); transition: transform .15s ease;
}
.deck-card:active { transform: scale(.985); }
.deck-top { display: flex; align-items: center; gap: 10px; color: #6f6f6b; font-size: 14px; font-weight: 600; }
.deck-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: #f2f2f0; color: var(--ink); }
.deck-icon svg { width: 19px; height: 19px; }
.deck-body { flex: 1; display: grid; place-items: center; align-content: center; gap: 18px; width: 100%; padding: 10px 0; }
.deck-big { font-size: 64px; line-height: .95; font-weight: 700; letter-spacing: -.065em; font-variant-numeric: tabular-nums; text-align: center; }
.deck-big small { font-size: 18px; font-weight: 600; letter-spacing: -.01em; color: var(--muted); }
.deck-card .home-ring-label strong { font-size: 40px; }
.deck-card .home-ring-label small { font-size: 11px; }
.deck-card .home-ticks { width: 84%; height: 26px; margin: 0; }
.deck-card .home-bars { width: 70%; height: 40px; margin: 0; }
.deck-foot { display: flex; justify-content: space-between; gap: 10px; width: 100%; padding-top: 14px; border-top: 1px solid #f0f0ee; color: var(--muted); font-size: 12.5px; }
.deck-foot span:last-child { color: var(--ink); font-weight: 600; }
.deck-dots { display: flex; justify-content: center; gap: 6px; margin: 2px 0 6px; }
.deck-dots i { width: 6px; height: 6px; border-radius: 3px; background: #cfcfcc; transition: width .2s ease, background .2s ease; }
.deck-dots i.on { width: 18px; background: var(--ink); }

/* ---------- 11.11. v3: centred cards, quiet colour, daily line, expand ---------- */
.home-heading h1 { font-size: clamp(28px, 8vw, 34px); }
.home-line { max-width: 300px; margin: 10px auto 0; color: #5f5f5b; font-size: 13.5px; line-height: 1.45; font-weight: 500; text-wrap: balance; }
.home-line span { display: block; margin-bottom: 4px; color: #9a9a96; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.home-hero { position: relative; isolation: isolate; }
.home-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(70% 55% at 50% 30%, var(--glow, #f2c7b066) 0, transparent 100%);
  transition: background .6s ease;
}
.home-hero[data-tint=food] { --glow: #f3c3a85c; }
.home-hero[data-tint=train] { --glow: #a9b6d466; }
.home-hero[data-tint=steps] { --glow: #b9d4c45e; }
.home-hero[data-tint=weight] { --glow: #cdbfe05a; }

.home-deck { padding: 4px 34px 16px; scroll-padding-inline: 34px; margin: 0 -18px; }
.deck-card { flex: 0 0 calc(100% - 68px + 36px); flex-basis: calc(100vw - 68px); max-width: 420px; scroll-snap-align: center; position: relative; overflow: hidden; isolation: isolate; }
@media (min-width: 560px) { .deck-card { flex-basis: 392px; } }
.deck-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--mesh); opacity: 1;
}
.deck-food { --mesh: radial-gradient(80% 60% at 85% 0%, #ffd9c4 0, transparent 70%), radial-gradient(70% 60% at 0% 100%, #ffe9dc 0, transparent 70%), #fff; }
.deck-train { --mesh: radial-gradient(90% 70% at 100% 0%, #3a4766 0, transparent 70%), radial-gradient(80% 60% at 0% 100%, #2a2a2e 0, transparent 70%), #141416; color: #fff; }
.deck-steps { --mesh: radial-gradient(80% 60% at 90% 0%, #cfe6d8 0, transparent 70%), radial-gradient(70% 60% at 0% 100%, #e6f2ea 0, transparent 70%), #fff; }
.deck-weight { --mesh: radial-gradient(80% 60% at 90% 0%, #e2d9f0 0, transparent 70%), radial-gradient(70% 60% at 0% 100%, #efeaf6 0, transparent 70%), #fff; }
.deck-card .deck-icon { background: #ffffffb3; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.deck-card .deck-foot { border-top-color: #0000000d; }
.deck-train .deck-top { color: #b8bcc8; }
.deck-train .deck-icon { background: #ffffff1a; color: #fff; }
.deck-train .deck-foot { border-top-color: #ffffff1a; color: #9ea3b0; }
.deck-train .deck-foot span:last-child { color: #fff; }
.deck-train .deck-big { color: #fff; }

.deck-big, .deck-card .home-ring-label strong { font-family: 'Doto', -apple-system, sans-serif; font-weight: 800; letter-spacing: -.02em; }
.deck-big { font-size: 72px; }
.deck-card .home-ring-label strong { font-size: 48px; line-height: .9; }
.deck-big small { font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
.deck-train .deck-big { font-family: -apple-system, BlinkMacSystemFont, sans-serif; font-weight: 700; letter-spacing: -.06em; font-size: 60px; }

.expand-ghost { position: fixed; z-index: 60; pointer-events: none; box-shadow: 0 20px 60px #0000001f; }
.expand-ghost.deck-train { background: #141416 !important; }
.expand-ghost { background: var(--mesh, #fff); }

/* ---------- No page bounce: only the content scrolls, inside the gradient ---------- */
html { background: var(--top); height: 100%; overflow: hidden; }
body { height: 100%; overflow: hidden; background: var(--top); }
.main {
  height: 100dvh; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

/* ---------- 11.11. v4: full width, lower hero, centred icon-only cards ---------- */
.app { max-width: none !important; box-shadow: none !important; background: transparent !important; margin: 0 !important; }
.arc-section { padding-top: 0; }
.date-strip, .date-strip.arc-strip { height: 100px !important; }
.home-heading { margin-top: 4px; }
.home-hero { padding-bottom: 18px; }
.deck-card { align-items: center; text-align: center; min-height: 318px; padding: 18px 20px 20px; }
.deck-card > .deck-icon { width: 42px; height: 42px; border-radius: 14px; }
.deck-card > .deck-icon svg { width: 21px; height: 21px; }
.deck-body { gap: 14px; }
.deck-note { color: var(--muted); font-size: 12.5px; font-weight: 550; }
.deck-card .home-ring-label strong { font-size: 44px; }
.deck-card .home-ring-label small { font-size: 12px; margin-top: 4px; }
.deck-word { font-size: 56px; line-height: 1; font-weight: 700; letter-spacing: -.06em; }
.deck-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 20px; border-radius: 21px; background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 650; letter-spacing: -.01em; }
.deck-train { --mesh: radial-gradient(85% 65% at 90% 0%, #d4dcef 0, transparent 70%), radial-gradient(75% 60% at 0% 100%, #e4e8f3 0, transparent 70%), #fff; color: var(--ink); }
.deck-train .deck-icon { background: #ffffffb3; color: var(--ink); }
.deck-train .deck-big, .deck-train .deck-word { color: var(--ink); }
.expand-ghost.deck-train { background: var(--mesh) !important; }

/* ---------- 11.11. v5: higher rail, rotating lesson, no dot font ---------- */
.main { padding-top: env(safe-area-inset-top) !important; }
.home-hero { margin-top: calc(-1 * env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); }
.date-strip, .date-strip.arc-strip { height: 84px !important; padding-bottom: 4px !important; }
.home-heading { margin-top: 2px; }
.home-line-text { display: block !important; margin: 0 !important; color: #5f5f5b !important; font-size: 13.5px !important; font-weight: 500 !important; letter-spacing: 0 !important; text-transform: none !important; min-height: 2.9em; transition: opacity .4s ease, transform .4s ease; }
.home-line-text.out { opacity: 0; transform: translateY(4px); }
.deck-big, .deck-card .home-ring-label strong { font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif !important; font-weight: 700 !important; letter-spacing: -.055em !important; }
.deck-big { font-size: 64px; }
.deck-card .home-ring-label strong { font-size: 40px; }
.deck-macros { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; width: 100%; }
.deck-macros span { display: grid; gap: 2px; }
.deck-macros b { font-size: 14px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.deck-macros small { font-size: 10.5px; color: var(--muted); }
.home-ticks i, .home-bars i { transform-origin: 50% 100%; }

/* ---------- 11.11. v6: lesson as its own glass pill, single line; rail a touch higher ---------- */
.date-strip, .date-strip.arc-strip { height: 76px !important; }
.home-line {
  display: grid; gap: 3px; max-width: 360px; margin: 14px auto 0; padding: 10px 18px 11px;
  border-radius: 18px; background: #ffffff8c; border: 1px solid #ffffffb3;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 2px #0000000a;
}
.home-line > span:first-child { margin: 0; font-size: 9.5px; letter-spacing: .14em; }
.home-line-text { min-height: 0 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px !important; color: #3d3d3a !important; }

/* ---------- Dot-matrix numerals ---------- */
.dotnum { display: inline-flex; align-items: flex-end; line-height: 0; }
.dotnum svg { display: block; width: auto; height: var(--dot-h, 40px); }
.deck-card .home-ring-label strong { display: flex; justify-content: center; margin-bottom: 8px; --dot-h: 38px; }
.deck-card .deck-big { display: inline-flex; align-items: flex-end; gap: 8px; --dot-h: 52px; }
.deck-card .deck-big small { font-size: 17px; line-height: 1; padding-bottom: 2px; }

/* ---------- Below the cards: shopping list + pan formula ---------- */
.deck-card .home-ring-label strong { --dot-h: 40px; }
.w-card { margin: 14px 0 0; padding: 16px; border-radius: 28px; background: var(--surface); box-shadow: var(--shadow); }
.w-head { display: flex; align-items: center; gap: 12px; }
.w-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 13px; background: #f2f2f0; }
.w-icon svg { width: 20px; height: 20px; }
.w-title { display: grid; gap: 1px; flex: 1; min-width: 0; text-align: left; }
.w-title b { font-size: 16px; font-weight: 700; letter-spacing: -.03em; }
.w-title small { font-size: 12px; color: var(--muted); }
.w-link { display: inline-flex; align-items: center; gap: 3px; border: 0; background: #f2f2f0; color: var(--ink); border-radius: 15px; padding: 7px 10px 7px 12px; font-size: 12.5px; font-weight: 650; }
.w-link svg { width: 14px; height: 14px; }
.w-add { display: flex; gap: 8px; margin: 14px 0 4px; position: relative; }
.w-add .shopping-search { flex: 1; position: relative; }
.w-add input { width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 15px; background: #f7f7f5; padding: 0 14px; font-size: 15px; color: var(--ink); outline: none; }
.w-add input:focus { border-color: #c9c9c5; background: #fff; }
.w-add > button { flex: none; width: 46px; height: 46px; border: 0; border-radius: 15px; background: var(--ink); color: #fff; font-size: 22px; line-height: 1; }
.w-add .shopping-suggestions { position: absolute; left: 0; right: 0; top: 50px; z-index: 5; }
.w-list { list-style: none; margin: 6px 0 0; padding: 0; }
.w-list li { display: flex; align-items: center; gap: 12px; padding: 11px 2px; border-top: 1px solid #f0f0ee; }
.w-list li:first-child { border-top: 0; }
.w-check { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1.6px solid #c4c4c0; background: transparent; padding: 0; }
.w-check:active { background: var(--ink); border-color: var(--ink); }
.w-item { display: grid; gap: 2px; text-align: left; min-width: 0; }
.w-item b { font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.w-item small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-more { border: 0; background: none; color: var(--muted); font-size: 13px; font-weight: 600; padding: 6px 2px 0; }
.w-empty { margin: 8px 2px 2px; color: var(--muted); font-size: 13px; }
.w-pan { --mesh: radial-gradient(80% 70% at 100% 0%, #ffe3cf 0, transparent 70%), radial-gradient(70% 60% at 0% 100%, #f6efe6 0, transparent 70%), #fff; background: var(--mesh); margin-bottom: 10px; }
.w-steps { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; padding: 0; }
.w-steps li { display: grid; gap: 3px; padding: 12px; border-radius: 18px; background: #ffffffb8; text-align: left; }
.w-steps span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; margin-bottom: 4px; }
.w-steps b { font-size: 14px; font-weight: 650; letter-spacing: -.02em; }
.w-steps small { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.w-cta { width: 100%; height: 46px; border: 0; border-radius: 23px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 650; }
.w-steps li { background: #f7f4f1; border: 1px solid #efebe6; }
.toast { left: 50% !important; right: auto !important; transform: translateX(-50%); top: calc(env(safe-area-inset-top) + 10px) !important; bottom: auto !important; border-radius: 20px !important; padding: 10px 16px !important; background: #141414e6 !important; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 13px !important; font-weight: 600; z-index: 80 !important; box-shadow: 0 8px 24px #0000002e; }

/* ---------- Food card v2: big readable number, slim bars, wider cards ---------- */
.home-deck { padding-left: 20px; padding-right: 20px; scroll-padding-inline: 20px; }
.deck-card { flex-basis: calc(100vw - 40px); }
@media (min-width: 560px) { .deck-card { flex-basis: 400px; } }
.food-body { width: 100%; gap: 0; align-content: stretch; justify-items: stretch; padding: 14px 4px 18px; }
.food-hero { display: grid; justify-items: center; gap: 10px; margin-bottom: 22px; }
.food-hero strong { --dot-h: 58px; display: flex; }
.food-hero small { color: var(--muted); font-size: 13px; font-weight: 600; }
.food-track, .fm-track { position: relative; display: block; height: 8px; border-radius: 4px; background: #00000010; overflow: hidden; }
.bar-fill { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--ink); }
.food-meta { display: flex; justify-content: space-between; margin: 8px 0 20px; color: var(--muted); font-size: 12px; font-weight: 550; font-variant-numeric: tabular-nums; }
.food-macros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fm { display: grid; gap: 7px; text-align: left; }
.fm-top { display: grid; gap: 1px; }
.fm-top span { font-size: 11px; color: var(--muted); font-weight: 550; }
.fm-top b { font-size: 15px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.fm-track { height: 5px; }

/* ---------- 11.11. v7: calmer food card, step hint, full-bleed weight graph ---------- */
.food-meta span:last-child { color: var(--ink); font-weight: 600; }
.food-meta { margin-bottom: 4px; }
.food-hero { margin-bottom: 26px; }
.deck-hint { max-width: 250px; color: #3d3d3a; font-size: 14px; line-height: 1.4; font-weight: 550; text-wrap: balance; }
.deck-weight { position: relative; }
.weight-body { align-content: start; padding-top: 14px; z-index: 1; }
.w-graph-wrap { position: absolute; left: 0; right: 0; bottom: 74px; height: 46%; color: var(--ink); pointer-events: none; }
.w-graph { display: block; width: 100%; height: 100%; overflow: visible; }
.wg-dot { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px #ffffffcc; transform: translate(-50%,-50%); }
.deck-weight .deck-cta { position: relative; z-index: 1; }

.w-graph-wrap { left: 0; right: 22px; bottom: 76px; height: 34%; }
.weight-body { gap: 10px; }

/* ---------- Lesson pill is tappable; lesson sheet ---------- */
.home-line { cursor: pointer; transition: transform .15s ease; }
.home-line:active { transform: scale(.98); }
.lesson-sheet { position: fixed; inset: 0; z-index: 70; }
.ls-backdrop { position: absolute; inset: 0; background: #0000; transition: background .28s ease; }
.lesson-sheet.open .ls-backdrop { background: #00000038; }
.ls-panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-width: 520px; margin: 0 auto;
  padding: 10px 24px calc(24px + env(safe-area-inset-bottom)); border-radius: 30px 30px 0 0;
  background: #fbfbfa; box-shadow: 0 -10px 40px #0000001f; display: grid; gap: 10px;
  transform: translateY(105%); transition: transform .32s cubic-bezier(.32,.72,0,1);
}
.lesson-sheet.open .ls-panel { transform: none; }
.ls-grab { justify-self: center; width: 38px; height: 5px; border-radius: 3px; background: #d6d6d2; margin-bottom: 8px; }
.ls-cat { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ls-panel h2 { margin: 0; font-size: 26px; line-height: 1.12; font-weight: 750; letter-spacing: -.045em; }
.ls-panel p { margin: 0; color: #3d3d3a; font-size: 15.5px; line-height: 1.5; }
.ls-tip { display: grid; gap: 4px; margin-top: 6px; padding: 14px 16px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.ls-tip b { font-size: 12px; font-weight: 700; color: var(--muted); }
.ls-tip span { font-size: 15px; line-height: 1.4; font-weight: 550; }
.ls-src { color: #9a9a96; font-size: 11.5px; }
.ls-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.ls-actions button { height: 48px; border: 0; border-radius: 24px; font-size: 14.5px; font-weight: 650; background: #ececea; color: var(--ink); }
.ls-actions button[data-ls-close] { background: var(--ink); color: #fff; }

/* ---------- Below the deck: 2-column tiles ---------- */
.g-title { margin: 26px 4px 10px; font-size: 18px; font-weight: 750; letter-spacing: -.035em; color: var(--ink); }
.g-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.g-tile {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; min-height: 156px;
  padding: 16px; border: 0; border-radius: 26px; background: var(--surface); color: var(--ink);
  text-align: left; box-shadow: var(--shadow); overflow: hidden; isolation: isolate; transition: transform .15s ease;
}
.g-tile:active { transform: scale(.97); }
.g-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--mesh, none); }
.g-shop { --mesh: radial-gradient(90% 70% at 100% 0%, #e9eef8 0, transparent 70%), #fff; }
.g-recipe { --mesh: radial-gradient(90% 70% at 100% 0%, #ffe6d6 0, transparent 70%), #fff; }
.g-learn { --mesh: radial-gradient(90% 70% at 100% 0%, #efe8f7 0, transparent 70%), #fff; }
.g-check { --mesh: radial-gradient(90% 70% at 100% 0%, #e2f0e7 0, transparent 70%), #fff; }
.g-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: #ffffffc7; box-shadow: 0 0 0 1px #0000000a; }
.g-icon svg { width: 19px; height: 19px; }
.g-value { margin-top: auto; padding-top: 14px; font-size: 30px; line-height: 1; font-weight: 700; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.g-badge { font-size: 13px; font-weight: 650; letter-spacing: 0; padding: 5px 10px; border-radius: 12px; background: #00000010; }
.g-name { margin-top: 8px; font-size: 14.5px; font-weight: 650; letter-spacing: -.02em; }
.g-sub { margin-top: 2px; width: 100%; color: var(--muted); font-size: 11.5px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-soon { margin-bottom: 10px; }
.g-mini { min-height: 118px; background: #ffffff9c; box-shadow: 0 0 0 1px #0000000a; }
.g-mini .g-icon { background: #f2f2f0; box-shadow: none; color: #6f6f6b; }
.g-mini .g-name { margin-top: auto; padding-top: 12px; }
.g-mini .g-sub { white-space: normal; }
.g-soon-badge { position: absolute; top: 16px; right: 14px; padding: 4px 9px; border-radius: 10px; background: #ececea; color: #6f6f6b; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; }

/* ---------- 11.11. v8: frosted glass on soft colour field ---------- */
html, body {
  background:
    radial-gradient(55% 35% at 10% 6%, #f2d8c6 0, transparent 70%),
    radial-gradient(50% 35% at 95% 20%, #d3dbec 0, transparent 70%),
    radial-gradient(65% 40% at 20% 70%, #dde6de 0, transparent 70%),
    radial-gradient(55% 40% at 95% 92%, #e9e0f0 0, transparent 70%),
    #ecebe8 !important;
}
.main { background: transparent !important; }
.home-hero::before { opacity: .7; }
.deck-card, .g-tile, .w-week, .home-line {
  background: #ffffff8f !important;
  -webkit-backdrop-filter: blur(26px) saturate(160%); backdrop-filter: blur(26px) saturate(160%);
  border: 1px solid #ffffffb8 !important;
  box-shadow: inset 0 1px 0 #ffffffe6, 0 12px 32px #0000000d !important;
}
.deck-card::before, .g-tile::before { opacity: .55; }
.g-mini { background: #ffffff5c !important; }
.deck-icon, .g-icon { background: #ffffffb0 !important; }

.ruler { position: relative; display: flex; justify-content: space-between; align-items: flex-end; width: 86%; height: 30px; }
.ruler i { width: 1.5px; height: 14px; border-radius: 1px; background: #00000026; }
.ruler i.major { height: 22px; }
.ruler i.on { background: var(--ink); }
.ruler-mark { position: absolute; bottom: -12px; width: 0; height: 0; transform: translateX(-50%); border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 8px solid var(--ink); }

.w-week { margin-top: 16px; padding: 16px 16px 14px; border-radius: 26px; }
.w-week header { display: flex; justify-content: space-between; align-items: baseline; }
.w-week header span { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; color: var(--muted); }
.w-week header b { font-size: 14px; font-weight: 650; letter-spacing: -.02em; }
.wt-chart { position: relative; height: 110px; margin: 12px 0 6px; }
.wt-chart svg { width: 100%; height: 100%; overflow: visible; }
.wt-col { fill: #0000000d; }
.wt-goal { stroke: #00000024; stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.wt-today { stroke: #00000040; stroke-width: 1; vector-effect: non-scaling-stroke; }
.wt-line { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.wt-future { fill: none; stroke: #00000040; stroke-width: 1.6; stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; }
.wt-dot { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px #ffffffd9; transform: translate(-50%,-50%); }
.wt-days { display: grid; grid-template-columns: repeat(7,1fr); padding: 0 calc(18 / 300 * 100% - 2%); }
.wt-days span { position: relative; text-align: center; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.wt-days span.now { color: var(--ink); font-weight: 750; }
.wt-days span.later { color: #b6b6b2; }
.wt-days i { position: absolute; left: 50%; top: -6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: #00000040; }
.wt-legend { display: flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--muted); font-size: 11px; }
.wt-legend i { width: 8px; height: 12px; border-radius: 4px; background: #0000001a; }

.wt-days { position: relative; display: block; height: 18px; padding: 0; }
.wt-days span { position: absolute; top: 0; transform: translateX(-50%); }

/* ---------- 11.11. v9: grey gradient, fine numerals, Dashboard header, clear week bars ---------- */
html, body { background: linear-gradient(180deg, #c9c9c6 0%, #dcdbd8 34%, #e9e7e2 70%, #eeebe5 100%) fixed !important; }
.home-hero::before { opacity: .45; }
.home-heading h1 { font-size: clamp(32px, 9vw, 40px); font-weight: 700; letter-spacing: -.05em; }
.home-welcome { display: block; margin-top: 2px; color: #5f5f5b; font-size: 15px; font-weight: 550; letter-spacing: -.01em; }
.deck-card, .g-tile, .w-week, .home-line { background: #ffffffa6 !important; }
.deck-card::before, .g-tile::before { opacity: .35; }
.bignum { display: inline-block; font-weight: 300; letter-spacing: -.055em; line-height: .9; font-variant-numeric: tabular-nums; color: var(--ink); }
.food-hero strong .bignum { font-size: 76px; }
.deck-card .deck-big { align-items: baseline; }
.deck-card .deck-big .bignum { font-size: 72px; }
.deck-card .deck-big small { font-size: 18px; padding-bottom: 0; }

.w-week { display: block; width: 100%; margin-top: 16px; padding: 18px 18px 16px; border-radius: 26px; text-align: left; color: var(--ink); }
.ww-head { display: grid; gap: 2px; }
.ww-title { font-size: 16px; font-weight: 700; letter-spacing: -.03em; }
.ww-sub { font-size: 12.5px; color: var(--muted); }
.ww-chart { position: relative; display: grid; grid-template-columns: repeat(7,1fr); gap: 8px; height: 130px; margin-top: 16px; }
.ww-goal { position: absolute; left: 0; right: 0; bottom: calc(22px + (100% - 22px) * var(--goal) / 100%); border-top: 1px dashed #00000038; }
.ww-goal { bottom: calc(22px + (130px - 22px) * var(--g, .9)); }
.ww-goal em { position: absolute; right: 0; top: -16px; font-style: normal; font-size: 10px; color: var(--muted); }
.ww-col { display: grid; grid-template-rows: 1fr 22px; justify-items: center; }
.ww-bar { position: relative; width: 100%; max-width: 30px; height: 100%; border-radius: 9px; background: #0000000a; overflow: hidden; }
.bar-v { position: absolute; left: 0; right: 0; bottom: 0; height: var(--h); border-radius: 9px; background: #00000059; }
.ww-col.now .bar-v { background: var(--ink); }
.ww-col b { align-self: end; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.ww-col.now b { color: var(--ink); font-weight: 750; }
.ww-col.later b { color: #b0b0ac; }

/* ---------- 11.11. v10: white-to-grey top, avatar header, dial, training card ---------- */
html, body { background: linear-gradient(180deg, #ffffff 0, #f1f1ef 90px, #dddcd9 360px, #e6e4df 70%, #eeebe5 100%) fixed !important; }
.home-hero::before { opacity: .3; }
.main { padding-top: env(safe-area-inset-top) !important; }
.date-strip, .date-strip.arc-strip { height: 70px !important; padding-bottom: 2px !important; }
.home-hero { padding-bottom: 12px; }
.home-heading { margin-top: 6px; text-align: left; }
.hh-row { display: flex; align-items: center; gap: 14px; padding: 0 4px; }
.hh-avatar { flex: none; width: 58px; height: 58px; padding: 0; border: 0; border-radius: 50%; background: none; box-shadow: 0 0 0 2px #fff, 0 6px 18px #0000001a; overflow: hidden; }
.hh-avatar svg { display: block; width: 100%; height: 100%; }
.hh-text { display: grid; gap: 1px; }
.hh-text h1 { margin: 0; font-size: 30px !important; line-height: 1.05; }
.hh-text .home-welcome { margin: 0; font-size: 14px; }
.home-line { margin: 14px 0 0 !important; max-width: none !important; text-align: center; }

.dial { position: relative; display: block; width: 100%; max-width: 300px; margin: 6px auto 0; }
.dial svg { display: block; width: 100%; }
.dt { stroke: #0000001f; stroke-width: 2.2; stroke-linecap: round; }
.dt.on { stroke: var(--ink); }
.dial-center { position: absolute; left: 0; right: 0; bottom: 0; display: grid; justify-items: center; gap: 4px; }
.dial-center .bignum { font-size: 60px !important; }
.dial-center small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.food-body { padding-top: 4px; }
.food-macros2 { display: grid; grid-template-columns: repeat(4,1fr); width: 100%; margin-top: 20px; }
.food-macros2 span { display: grid; gap: 2px; text-align: center; }
.food-macros2 span + span { border-left: 1px solid #0000000f; }
.food-macros2 b { font-size: 15px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.food-macros2 small { font-size: 10.5px; color: var(--muted); }

.train-body { gap: 6px; padding-top: 8px; }
.tr-label { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tr-today { font-size: 52px; line-height: 1; font-weight: 300; letter-spacing: -.055em; }
.tr-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; width: 100%; margin-top: 18px; }
.tr-day { display: grid; justify-items: center; gap: 5px; }
.tr-day i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1.4px dashed #0000002e; font-style: normal; font-size: 11.5px; font-weight: 650; color: #9a9a96; }
.tr-day.on i { border: 0; background: var(--ink); color: #fff; }
.tr-day.now i { box-shadow: 0 0 0 2px #fff, 0 0 0 3.6px var(--ink); }
.tr-day b { font-size: 11px; font-weight: 600; color: var(--muted); }
.tr-day.now b { color: var(--ink); font-weight: 750; }
.tr-count { margin-top: 10px; font-size: 12px; color: var(--muted); }

.av-sheet .ls-panel { gap: 12px; max-height: 88dvh; overflow-y: auto; }
.av-preview { justify-self: center; width: 120px; height: 120px; border-radius: 50%; overflow: hidden; box-shadow: 0 8px 24px #0000001a; }
.av-preview svg { width: 100%; height: 100%; display: block; }
.av-row { display: grid; gap: 8px; }
.av-row > b { font-size: 12px; font-weight: 700; color: var(--muted); }
.av-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.av-opt { min-width: 38px; height: 38px; padding: 0 12px; border: 0; border-radius: 19px; background: #ececea; color: var(--ink); font-size: 13px; font-weight: 600; }
.av-opt[style] { width: 38px; padding: 0; background: var(--sw); box-shadow: inset 0 0 0 1px #00000014; }
.av-opt.sel { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink) !important; }
.av-opt:not([style]).sel { background: var(--ink); color: #fff; }

/* ---------- 11.11. v11: header without avatar, food mix bar, dark tab bar ---------- */
.hh-row { justify-content: flex-start; }
.food-body2 { width: 100%; gap: 6px; align-content: center; padding: 6px 2px 14px; }
.food-body2 .deck-big { justify-content: center; }
.mix { display: flex; gap: 3px; width: 100%; height: 14px; margin-top: 22px; border-radius: 7px; background: #0000000d; overflow: hidden; }
.mix i { display: block; height: 100%; width: var(--w); border-radius: 4px; }
.mix-p { background: var(--ink); }
.mix-c { background: #7d7d79; }
.mix-f { background: #bdbdb8; }
.mix-legend { display: flex; justify-content: space-between; width: 100%; margin-top: 12px; }
.mix-legend > span { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.mix-legend b { color: var(--ink); font-weight: 650; }
.mix-legend i { display: block; width: 8px; height: 8px; border-radius: 50%; }
.g-grid { margin-top: 12px; }
.g-grid:first-of-type { margin-top: 18px; }

/* Tab bar: dark floating pill, active item = light pill with label */
.mobile-nav {
  height: 62px !important; padding: 0 7px !important; gap: 4px;
  background: #161616e6 !important; border: 1px solid #ffffff14 !important;
  -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 14px 34px #0000003d, inset 0 1px 0 #ffffff12 !important;
  width: min(400px, calc(100% - 32px)) !important; border-radius: 31px !important;
}
.mobile-nav .nav-item, .mobile-nav .nav-item[data-page=dashboard], .mobile-nav .nav-item.active, .mobile-nav .nav-item[data-page=dashboard].active {
  flex: 0 0 auto !important; display: flex !important; align-items: center; justify-content: center; gap: 7px;
  height: 48px !important; min-width: 48px !important; padding: 0 14px !important; border-radius: 24px !important;
  color: #ffffff8c !important; background: transparent !important; transition: background .25s ease, color .25s ease, padding .25s ease;
}
.mobile-nav { justify-content: space-between !important; }
.mobile-nav .nav-item .nav-label { display: none !important; font-size: 13px; font-weight: 650; letter-spacing: -.01em; }
.mobile-nav .nav-item.active { background: #f4f4f2 !important; color: #141414 !important; padding: 0 16px !important; }
.mobile-nav .nav-item.active .nav-label { display: block !important; }
.mobile-nav .nav-item[data-page=dashboard] .nav-icon, .mobile-nav .nav-item[data-page=dashboard].active .nav-icon { width: auto; height: auto; background: none !important; border-radius: 0; color: inherit; }
.mobile-nav .nav-icon svg { width: 21px !important; height: 21px !important; }
.mobile-nav .nav-item[data-page=dashboard].active { background: #f4f4f2 !important; color: #141414 !important; padding: 0 16px !important; }

/* ---------- 11.11. v12: dreamy, washed-out background with film grain (refs: Sleep Score, Activity) ---------- */
html, body {
  background:
    radial-gradient(70% 38% at 18% 30%, #b7c4cf 0, transparent 70%),
    radial-gradient(60% 34% at 88% 44%, #d8c7b4 0, transparent 72%),
    radial-gradient(75% 40% at 30% 78%, #c9d0d2 0, transparent 70%),
    radial-gradient(60% 36% at 85% 92%, #d6c3b3 0, transparent 70%),
    linear-gradient(180deg, #ffffff 0, #f0f0ee 70px, #dfe1e1 260px, #d9d8d4 100%) fixed !important;
}
body::before {
  content: ""; position: fixed; inset: -10%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(28% 22% at 70% 22%, #9fb0bf88 0, transparent 70%),
    radial-gradient(30% 24% at 22% 58%, #e3d2bf99 0, transparent 70%),
    radial-gradient(26% 20% at 78% 70%, #a9b6bf77 0, transparent 70%);
  filter: blur(40px);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .16; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .5  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.deck-card, .g-tile, .home-line { background: #ffffff9e !important; }
.g-mini { background: #ffffff6b !important; }

/* ---------- 11.11. v13: grainier, milkier; Outfit numerals; data sheet ---------- */
html, body {
  background:
    linear-gradient(180deg, #ffffff 0, #ffffffee 50px, #ffffff00 240px),
    radial-gradient(70% 38% at 18% 32%, #aebccb 0, transparent 70%),
    radial-gradient(60% 34% at 88% 46%, #d6c2ad 0, transparent 72%),
    radial-gradient(75% 40% at 28% 80%, #c3cbcf 0, transparent 70%),
    radial-gradient(60% 36% at 85% 94%, #d4bfae 0, transparent 70%),
    #dcdcd9 fixed !important;
}
body::before { background:
    radial-gradient(28% 22% at 70% 24%, #97a9b9aa 0, transparent 70%),
    radial-gradient(30% 24% at 22% 60%, #e1ccb6aa 0, transparent 70%),
    radial-gradient(26% 20% at 78% 72%, #a2b0bb99 0, transparent 70%),
    linear-gradient(180deg, transparent 0, #ffffff40 60%, #ffffff55 100%);
  filter: blur(46px); }
body::after { opacity: .32 !important; mix-blend-mode: soft-light !important; }
.bignum, .g-value:not(.g-badge), .tr-today { font-family: 'Outfit', -apple-system, sans-serif !important; font-weight: 300 !important; letter-spacing: -.035em !important; }
.g-value:not(.g-badge) { font-weight: 400 !important; }
.ds-pick { display: grid; place-items: center; height: 52px; margin-top: 6px; border-radius: 18px; border: 1.5px dashed #00000026; font-size: 15px; font-weight: 650; cursor: pointer; background: #ffffff99; }
.ds-msg { min-height: 1.4em; font-size: 13.5px !important; color: #3d3d3a !important; }
.g-data { --mesh: radial-gradient(90% 70% at 100% 0%, #e6e9ee 0, transparent 70%), #fff; }
.g-data .g-icon svg { transform: rotate(90deg); }

/* ---------- 11.11. v14: seamless top, centred numbers, centred header, drifting background, dark mode ---------- */
html, body { background-color: #ffffff !important; }
.hh-row { position: relative; justify-content: center; }
.hh-text { text-align: center; justify-items: center; }
.hh-theme { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #ffffff8c; color: var(--ink); box-shadow: inset 0 0 0 1px #ffffffb3, 0 4px 14px #00000012; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.hh-theme svg { width: 19px; height: 19px; }
.home-line { text-align: center; }

/* number stays optically centred, unit hangs to the right */
.deck-card .deck-big { position: relative; display: inline-block; }
.deck-card .deck-big small { position: absolute; left: calc(100% + 6px); bottom: 6px; white-space: nowrap; }

/* slow, milky drift */
body::before { animation: aleeyDrift 38s ease-in-out infinite alternate; will-change: transform; }
@keyframes aleeyDrift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  33%  { transform: translate3d(-6%, 4%, 0) scale(1.08); }
  66%  { transform: translate3d(5%, -3%, 0) scale(1.04); }
  100% { transform: translate3d(-3%, 6%, 0) scale(1.1); }
}
@media (prefers-reduced-motion: reduce) { body::before { animation: none; } }

/* ---------- Dark mode (velvety, like the Activity reference) ---------- */
body.aleey-dark { --ink: #f2f2ef; --muted: #9b9c9f; --surface: #1c1d20; --line: #ffffff14; --shadow: 0 10px 30px #00000059; color: var(--ink); }
html:has(body.aleey-dark), body.aleey-dark {
  background:
    linear-gradient(180deg, #121315 0, #121315 60px, #12131500 260px),
    radial-gradient(70% 38% at 20% 32%, #3a4a5a 0, transparent 70%),
    radial-gradient(60% 34% at 86% 48%, #5a4636 0, transparent 72%),
    radial-gradient(75% 40% at 28% 82%, #2d3740 0, transparent 70%),
    radial-gradient(60% 36% at 85% 94%, #4a3a30 0, transparent 70%),
    #16171a fixed !important;
  background-color: #121315 !important;
}
body.aleey-dark::before { background:
    radial-gradient(28% 22% at 70% 24%, #5d7286aa 0, transparent 70%),
    radial-gradient(30% 24% at 22% 60%, #8a6a4c88 0, transparent 70%),
    radial-gradient(26% 20% at 78% 72%, #44566688 0, transparent 70%); }
body.aleey-dark::after { mix-blend-mode: overlay !important; opacity: .28 !important; }
body.aleey-dark .deck-card, body.aleey-dark .g-tile, body.aleey-dark .home-line, body.aleey-dark .w-week {
  background: #ffffff14 !important; border-color: #ffffff1f !important; color: var(--ink) !important;
  box-shadow: inset 0 1px 0 #ffffff1a, 0 16px 40px #00000040 !important;
}
body.aleey-dark .deck-card::before, body.aleey-dark .g-tile::before { opacity: .08; }
body.aleey-dark .g-mini { background: #ffffff0d !important; }
body.aleey-dark .deck-icon, body.aleey-dark .g-icon, body.aleey-dark .hh-theme { background: #ffffff1a !important; color: var(--ink); box-shadow: none; }
body.aleey-dark .deck-cta, body.aleey-dark .w-cta { background: #f2f2ef; color: #141414; }
body.aleey-dark .home-line-text, body.aleey-dark .deck-hint { color: #d6d6d3 !important; }
body.aleey-dark .home-welcome { color: #a9aaad; }
body.aleey-dark .date-day { color: #8d8e91 !important; }
body.aleey-dark .date-day.selected { color: #fff !important; }
body.aleey-dark .date-day.selected span { color: #c9c9c9; }
body.aleey-dark .mix { background: #ffffff14; }
body.aleey-dark .mix-c { background: #9a9a96; } body.aleey-dark .mix-f { background: #5c5c59; }
body.aleey-dark .ruler i { background: #ffffff2e; } body.aleey-dark .ruler i.on { background: #fff; }
body.aleey-dark .ruler-mark { border-bottom-color: #fff; }
body.aleey-dark .wg-dot { box-shadow: 0 0 0 4px #ffffff26; background: #fff; }
body.aleey-dark .w-graph-wrap { color: #f2f2ef; }
body.aleey-dark .tr-day i { border-color: #ffffff38; color: #8d8e91; }
body.aleey-dark .tr-day.on i { background: #f2f2ef; color: #141414; }
body.aleey-dark .tr-day.now i { box-shadow: 0 0 0 2px #121315, 0 0 0 3.6px #f2f2ef; }
body.aleey-dark .g-badge, body.aleey-dark .g-soon-badge { background: #ffffff1a; color: #c9c9c6; }
body.aleey-dark .deck-dots i { background: #ffffff33; } body.aleey-dark .deck-dots i.on { background: #fff; }
body.aleey-dark .home-hero::before { opacity: .15; }
body.aleey-dark .ls-panel { background: #1b1c1f; color: var(--ink); }
body.aleey-dark .ls-panel p, body.aleey-dark .ls-tip span { color: #d6d6d3; }
body.aleey-dark .ls-tip { background: #ffffff10; }
body.aleey-dark .ls-actions button { background: #ffffff1a; color: var(--ink); }
body.aleey-dark .ls-actions button[data-ls-close] { background: #f2f2ef; color: #141414; }
body.aleey-dark .home-hero { background: none !important; }
body.aleey-dark .home-hero::before { display: none; }

/* ---------- 11.11. v15: theme switch in Mehr; living, motion-blurred background ---------- */
.hh-theme { display: none !important; }
.set-card { margin: 4px 0 18px; padding: 16px; border-radius: 24px; background: #ffffff9e; border: 1px solid #ffffffb8; box-shadow: inset 0 1px 0 #ffffffe6, 0 10px 28px #0000000d; -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); }
.set-label { display: block; margin-bottom: 10px; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.set-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: 16px; background: #0000000d; }
.set-seg button { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 650; }
.set-seg button svg { width: 18px; height: 18px; }
.set-seg button.on { background: #fff; color: #141414; box-shadow: 0 2px 8px #00000014; }
body.aleey-dark .set-card { background: #ffffff14; border-color: #ffffff1f; box-shadow: none; }
body.aleey-dark .set-seg { background: #ffffff12; }
body.aleey-dark .set-seg button.on { background: #f2f2ef; color: #141414; }

body::before { display: none !important; }
.bg-motion { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.app, .mobile-nav { position: relative; z-index: 1; }
.mobile-nav { position: fixed !important; z-index: 30 !important; }
.bg-motion i { position: absolute; display: block; border-radius: 50%; will-change: transform; }
.bg-motion .m1 { width: 90vw; height: 90vw; left: -20vw; top: 18vh; background: radial-gradient(circle, #e9cfb1 0, #e9cfb100 70%); filter: blur(30px); animation: mv1 19s ease-in-out infinite alternate; }
.bg-motion .m2 { width: 110vw; height: 110vw; right: -40vw; top: 45vh; background: radial-gradient(circle, #a9bccd 0, #a9bccd00 70%); filter: blur(34px); animation: mv2 24s ease-in-out infinite alternate; }
.bg-motion .m3 { width: 46vw; height: 95vh; left: 30vw; top: 12vh; border-radius: 48% 52% 40% 60% / 30% 30% 70% 70%; background: linear-gradient(90deg, #6b737c00 0, #6b737c66 30%, #565e6799 55%, #6b737c44 80%, #6b737c00 100%); filter: blur(26px); opacity: .55; animation: mvFig 14s cubic-bezier(.45,0,.55,1) infinite alternate; }
.bg-motion .m3 b { position: absolute; left: 22%; top: 2%; width: 56%; height: 22%; border-radius: 50%; background: #5a626b99; filter: blur(14px); }
.bg-motion .m4 { width: 70vw; height: 30vh; left: 10vw; top: 55vh; border-radius: 40%; background: radial-gradient(ellipse, #fff3e2cc 0, #fff3e200 70%); filter: blur(24px); mix-blend-mode: screen; animation: mv4 11s ease-in-out infinite alternate; }
@keyframes mv1 { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(30vw, 22vh) scale(1.25); } }
@keyframes mv2 { 0% { transform: translate(0,0) scale(1.1); } 100% { transform: translate(-35vw, -28vh) scale(.9); } }
@keyframes mvFig {
  0%   { transform: translateX(-38vw) skewX(-8deg) scaleX(1.25) rotate(-4deg); }
  50%  { transform: translateX(0) skewX(4deg) scaleX(1) rotate(2deg); }
  100% { transform: translateX(34vw) skewX(10deg) scaleX(1.35) rotate(5deg); }
}
@keyframes mv4 { 0% { transform: translate(-10vw,0) rotate(-6deg); opacity: .5; } 100% { transform: translate(18vw,-14vh) rotate(8deg); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .bg-motion i { animation: none !important; } }
body.aleey-dark .bg-motion .m1 { background: radial-gradient(circle, #9a6a43cc 0, #9a6a4300 70%); }
body.aleey-dark .bg-motion .m2 { background: radial-gradient(circle, #3e5870 0, #3e587000 70%); }
body.aleey-dark .bg-motion .m3 { background: linear-gradient(90deg, #00000000 0, #0a0b0d99 30%, #050607cc 55%, #0a0b0d77 80%, #00000000 100%); opacity: .75; }
body.aleey-dark .bg-motion .m3 b { background: #050607aa; }
body.aleey-dark .bg-motion .m4 { background: radial-gradient(ellipse, #d9a46e88 0, #d9a46e00 70%); }

/* ---------- 11.11. v16: clearly visible motion ---------- */
.bg-motion .m3 { width: 52vw; height: 100vh; top: 6vh; opacity: .85; filter: blur(22px);
  background: linear-gradient(90deg, #4c545d00 0, #4c545d88 28%, #3d444bbb 52%, #4c545d77 78%, #4c545d00 100%);
  animation: mvFig 9s cubic-bezier(.45,0,.55,1) infinite alternate; }
.bg-motion .m3 b { background: #3e454dcc; }
.bg-motion .m1 { background: radial-gradient(circle, #e4c19c 0, #e4c19c00 70%); animation-duration: 12s; }
.bg-motion .m2 { background: radial-gradient(circle, #93aac0 0, #93aac000 70%); animation-duration: 15s; }
.bg-motion .m4 { animation-duration: 7s; }
@keyframes mvFig {
  0%   { transform: translateX(-55vw) skewX(-12deg) scaleX(1.5) rotate(-5deg); }
  50%  { transform: translateX(0) skewX(6deg) scaleX(1.05) rotate(2deg); }
  100% { transform: translateX(55vw) skewX(14deg) scaleX(1.6) rotate(6deg); }
}
/* let the motion show through the glass */
.deck-card, .g-tile, .home-line { background: #ffffff70 !important; -webkit-backdrop-filter: blur(18px) saturate(150%) !important; backdrop-filter: blur(18px) saturate(150%) !important; }
.g-mini { background: #ffffff52 !important; }
.home-hero { background: none !important; }
body.aleey-dark .deck-card, body.aleey-dark .g-tile, body.aleey-dark .home-line { background: #ffffff10 !important; }
/* keep a gentle version even with iOS "Bewegung reduzieren" */
@media (prefers-reduced-motion: reduce) {
  .bg-motion .m3 { animation: mvFig 18s ease-in-out infinite alternate !important; }
  .bg-motion .m1, .bg-motion .m2 { animation-duration: 30s !important; animation-name: mv1 !important; }
}
