:root {
  --canvas:#f8fafc; --surface:#ffffff; --surface-soft:#f8fafc; --ink:#111827; --muted:#667085;
  --line:#e5e7eb; --line-strong:#d1d5db; --accent:#111827; --accent-ink:#111827;
  --green:#334155; --gold:#64748b; --nav-h:76px; --safe-bottom:env(safe-area-inset-bottom,0px); --safe-top:env(safe-area-inset-top,0px);
  font-family:Inter,"SF Pro Text",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; color-scheme:light;
}
:root[data-theme="dark"] { --canvas:#101214; --surface:#191c20; --surface-soft:#15181b; --ink:#f4f4f5; --muted:#a1a1aa; --line:#30343a; --line-strong:#444951; --accent:#f4f4f5; --accent-ink:#ffffff; --green:#cbd5e1; --gold:#94a3b8; color-scheme:dark; }
@media (prefers-color-scheme:dark) { :root[data-theme="auto"] { --canvas:#101214; --surface:#191c20; --surface-soft:#15181b; --ink:#f4f4f5; --muted:#a1a1aa; --line:#30343a; --line-strong:#444951; --accent:#f4f4f5; --accent-ink:#ffffff; --green:#cbd5e1; --gold:#94a3b8; color-scheme:dark; } }
* { box-sizing:border-box; } html,body { height:100%; min-height:100%; margin:0; overflow:hidden; overscroll-behavior:none; background:var(--canvas); color:var(--ink); touch-action:pan-y; } body { font-size:15px; line-height:1.45; } button,input,textarea { font:inherit; } button { cursor:pointer; -webkit-tap-highlight-color:transparent; } button:focus-visible,input:focus-visible,textarea:focus-visible { outline:3px solid color-mix(in srgb,var(--accent) 38%,transparent); outline-offset:2px; } [hidden] { display:none!important; }

.app-shell { position:fixed; inset:0; height:100%; min-height:0; display:flex; flex-direction:column; overflow:hidden; background:var(--canvas); }
.topbar { height:calc(68px + var(--safe-top)); padding:var(--safe-top) 20px 0; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); background:color-mix(in srgb,var(--surface) 92%,transparent); }
.wordmark { display:flex; align-items:center; gap:10px; color:var(--ink); font-size:17px; font-weight:750; letter-spacing:-.035em; text-decoration:none; }.wordmark img { width:27px;height:27px; }.theme-button,.icon-button { display:grid; place-items:center; width:44px; height:44px; padding:0; border:1px solid var(--line); border-radius:12px; background:var(--surface); color:var(--ink); font-size:18px; }.theme-button:active,.icon-button:active { transform:scale(.96); }
main { overflow-y:auto; flex:1; min-height:0; width:min(100%,720px); margin:auto; padding:22px 16px calc(var(--nav-h) + var(--safe-bottom) + 24px); -webkit-overflow-scrolling:touch; }.connection-note { margin:0 0 14px; padding:11px 13px; border:1px solid color-mix(in srgb,var(--gold) 45%,var(--line)); border-radius:12px; background:color-mix(in srgb,var(--gold) 10%,var(--surface)); color:var(--ink); font-size:13px; }.loading,.empty { margin:0; padding:28px 8px; color:var(--muted); text-align:center; }

.eyebrow { margin:0 0 7px; color:var(--accent); font-size:11px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }.hero { margin:3px 0 21px; }.hero h1 { max-width:18ch; margin:0; font-size:clamp(30px,8vw,43px); line-height:1.08; letter-spacing:-.055em; text-wrap:balance; }.hero p { max-width:46ch; margin:9px 0 0; color:var(--muted); }.today-date { color:var(--accent); font-size:13px; font-weight:750; }
.card { margin:12px 0; padding:18px; border:1px solid var(--line); border-radius:16px; background:var(--surface); box-shadow:0 1px 1px rgb(16 24 23 / 2%); }.card-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; }.card h2,.card h3 { margin:0; letter-spacing:-.035em; }.card h2 { font-size:18px; }.card h3 { font-size:15px; }.section-link,.text-button { min-height:34px; padding:5px 0; border:0; background:transparent; color:var(--accent-ink); font-size:13px; font-weight:760; text-decoration:none; }.button { min-height:46px; padding:0 16px; border:1px solid var(--line-strong); border-radius:11px; background:var(--surface); color:var(--ink); font-weight:750; }.button.primary { border-color:var(--accent); background:var(--accent); color:white; }.button.quiet { width:100%; }.button:disabled { cursor:wait; opacity:.6; }

.quick-capture { display:grid; grid-template-columns:1fr auto; gap:8px; }.quick-capture input { min-width:0; }.quick-capture .button { width:46px; padding:0; font-size:23px; }.list { margin:0; padding:0; list-style:none; }.row { display:flex; gap:12px; align-items:flex-start; padding:13px 0; border-top:1px solid var(--line); }.row:first-child { padding-top:0; border-top:0; }.row:last-child { padding-bottom:0; }.check { flex:0 0 21px; width:21px; height:21px; margin-top:1px; border:1.5px solid var(--line-strong); border-radius:50%; }.row strong,.row span { display:block; }.row > div { flex:1; min-width:0; }.delete-task { flex:0 0 auto; min-height:38px; padding:5px 2px 5px 10px; border:0; background:transparent; color:var(--ink); font-size:13px; font-weight:800; text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:3px; }.delete-task:hover,.delete-task:focus-visible { color:var(--ink); background:color-mix(in srgb,var(--ink) 8%,transparent); border-radius:6px; }.row strong { font-size:14px; line-height:1.35; }.row span { margin-top:3px; color:var(--muted); font-size:13px; }.agenda-time { flex:0 0 48px; color:var(--accent); font-size:12px; font-weight:800; }.metric { display:flex; align-items:baseline; justify-content:space-between; gap:12px; }.metric strong { font-size:34px; letter-spacing:-.065em; }.metric span { color:var(--muted); font-size:13px; }.split { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }.mini-card { min-width:0; padding:15px; border:1px solid var(--line); border-radius:14px; background:var(--surface-soft); }.mini-card:nth-child(2) { background:color-mix(in srgb,var(--green) 10%,var(--surface)); }.mini-card p { margin:0 0 8px; color:var(--muted); font-size:12px; }.mini-card strong { display:block; font-size:18px; letter-spacing:-.045em; line-height:1.15; }.pill { display:inline-block; margin-top:9px; padding:4px 8px; border-radius:6px; background:color-mix(in srgb,var(--accent) 12%,var(--surface)); color:var(--accent-ink); font-size:11px; font-weight:800; }.progress { height:6px; margin-top:13px; overflow:hidden; border-radius:99px; background:color-mix(in srgb,var(--green) 18%,var(--surface)); }.progress i { display:block; height:100%; border-radius:inherit; background:var(--green); }

.timeline { display:grid; gap:10px; }.trip { padding:14px; border:1px solid var(--line); border-radius:12px; background:var(--surface-soft); }.trip > strong { display:block; font-size:15px; }.trip > small { display:block; margin-top:3px; color:var(--muted); font-size:13px; }.trip-empty { margin:10px 0 0; color:var(--muted); font-size:12px; }.flight-details { display:grid; gap:9px; margin-top:13px; padding-top:12px; border-top:1px solid var(--line); }.flight-segment { display:grid; grid-template-columns:54px 1fr; column-gap:8px; align-items:baseline; }.flight-segment > span { color:var(--muted); font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.06em; }.flight-segment > strong { font-size:15px; letter-spacing:-.015em; }.flight-segment > small { grid-column:2; color:var(--muted); font-size:12px; }

.bottom-nav { position:fixed; z-index:5; right:0; bottom:0; left:0; height:calc(var(--nav-h) + var(--safe-bottom)); display:grid; grid-template-columns:repeat(5,1fr); gap:2px; padding:8px 8px var(--safe-bottom); border-top:1px solid var(--line); background:var(--surface); }.bottom-nav button { min-width:0; border:0; border-radius:10px; background:transparent; color:var(--muted); font-size:10px; font-weight:700; }.bottom-nav button span { display:block; }.bottom-nav button span:first-child { height:25px; font-size:18px; line-height:22px; }.bottom-nav button[aria-current="page"] { background:color-mix(in srgb,var(--accent) 11%,var(--surface)); color:var(--accent-ink); }

dialog { width:min(calc(100% - 28px),500px); max-height:calc(100dvh - 28px); padding:0; overflow:auto; border:1px solid var(--line); border-radius:18px; background:var(--surface); color:var(--ink); box-shadow:0 20px 70px rgb(16 27 26 / 24%); }dialog::backdrop { background:rgb(22 29 28 / 48%); }dialog form { display:grid; gap:14px; padding:22px; }.day-details { display:grid; gap:21px; padding:22px; }.day-details h3 { margin:0 0 10px; font-size:15px; }.dialog-head { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }.dialog-head h2 { margin:0; font-size:24px; letter-spacing:-.05em; line-height:1.1; }label { display:grid; gap:6px; color:var(--muted); font-size:13px; font-weight:700; }input,textarea,select { font-size:16px; width:100%; border:1px solid var(--line-strong); border-radius:10px; background:var(--surface-soft); color:var(--ink); padding:12px; }textarea { resize:vertical; }.form-note { margin:0; color:var(--muted); font-size:12px; }.toast { position:fixed; z-index:10; left:50%; bottom:calc(var(--nav-h) + var(--safe-bottom) + 15px); max-width:calc(100% - 32px); padding:10px 14px; border-radius:10px; background:var(--ink); color:var(--surface); box-shadow:0 10px 24px rgb(0 0 0 / 20%); transform:translateX(-50%); }.toast:empty { display:none; }

.auth-gate { min-height:100dvh; display:grid; place-items:center; padding:24px; background:var(--canvas); }.auth-card { width:min(100%,400px); padding:25px; border:1px solid var(--line); border-radius:18px; background:var(--surface); box-shadow:0 16px 45px rgb(21 30 29 / 9%); }.brand-icon { width:48px; height:48px; }.auth-card h1 { margin:0; font-size:32px; letter-spacing:-.06em; line-height:1.05; }.auth-card > p:not(.eyebrow):not(.form-note) { color:var(--muted); }.auth-actions { display:grid; gap:9px; margin-top:22px; }.auth-actions .text-button { width:max-content; margin:auto; }

.month-card { overflow:hidden; }.weekdays,.month-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:5px; }.weekdays { margin-bottom:8px; color:var(--muted); font-size:11px; font-weight:800; text-align:center; }.month-day { aspect-ratio:1; min-height:42px; padding:4px 2px; border:1px solid transparent; border-radius:10px; background:transparent; color:var(--ink); text-align:center; }.month-day b,.month-day span { display:block; }.month-day span { min-height:7px; margin-top:4px; white-space:nowrap; }.month-day:active { background:var(--surface-soft); }.today-day { border-color:var(--accent); background:var(--accent); color:var(--surface); }.empty-day { min-height:42px; }.dot { display:inline-block; width:5px; height:5px; margin:0 1px; border-radius:50%; background:var(--accent); }.dot.run { background:var(--green); }.dot.task { background:var(--accent); }.dot.trip { background:var(--gold); }.calendar-legend { margin:15px 0 0; color:var(--muted); font-size:12px; }.calendar-legend .dot { vertical-align:middle; margin-left:7px; }

@media (min-width:700px) { .app-shell { padding-bottom:112px; }.topbar { height:76px; padding:0 30px; }.topbar,main { width:min(100%,860px); margin:auto; }.topbar { border:0; }.app-shell::before { position:fixed; z-index:-1; top:0; right:0; left:0; height:76px; border-bottom:1px solid var(--line); background:var(--surface); content:""; } main { padding:34px 24px; }.bottom-nav { right:auto; left:50%; bottom:18px; width:min(610px,calc(100% - 32px)); height:66px; padding:6px; border:1px solid var(--line); border-radius:15px; box-shadow:0 12px 34px rgb(16 27 26 / 12%); transform:translateX(-50%); }.bottom-nav button { font-size:11px; }.bottom-nav button span:first-child { height:23px; }.split { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (prefers-reduced-motion:reduce) { * { scroll-behavior:auto!important; transition:none!important; } }

/* v16: agenda as an operational calendar, not a stack of decorative cards */
:root { --canvas:#f3f4f6; --surface:#ffffff; --surface-soft:#f8f8f9; --ink:#17181c; --muted:#6b7079; --line:#dedfe3; --line-strong:#b9bdc5; --accent:#17181c; --accent-ink:#17181c; --green:#373b43; --gold:#737984; }
html,body { background:var(--canvas); }
.topbar { height:calc(60px + var(--safe-top)); padding:var(--safe-top) 16px 0; border-bottom:1px solid var(--line); background:var(--surface); }
.wordmark { gap:8px; font-size:18px; letter-spacing:-.045em; }.wordmark img { width:28px; height:28px; }.theme-button { width:40px; height:40px; border-radius:10px; box-shadow:none; }
main { width:100%; padding:16px 16px calc(var(--nav-h) + var(--safe-bottom) + 16px); }.hero { margin:2px 0 16px; }.hero h1 { max-width:none; font-size:32px; letter-spacing:-.055em; }.hero p { margin-top:4px; font-size:15px; }.eyebrow { margin-bottom:4px; font-size:10px; letter-spacing:.14em; }
.card { margin:10px 0; padding:16px; border-radius:14px; box-shadow:none; }.card-head { margin-bottom:10px; }.card h2 { font-size:16px; }
.month-card { padding:12px; overflow:visible; border-radius:14px; }.weekdays { margin:0 0 5px; padding:0 2px; font-size:10px; }.month-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:2px; }.month-day { min-height:48px; height:48px; aspect-ratio:auto; display:grid; grid-template-rows:1fr 14px; place-items:center; padding:3px 1px; border-radius:8px; font-size:15px; }.month-day b { line-height:1; }.month-day span { display:flex; min-height:4px; height:4px; margin:0; align-items:center; justify-content:center; }.empty-day { min-height:44px; }.today-day { border-color:var(--ink); background:var(--ink); color:#fff; }.dot { display:inline-block; box-sizing:border-box; width:4px; height:4px; min-width:4px; min-height:4px; margin:0 1px; padding:0; border:0; border-radius:50%; background:#17181c; }.dot.run { background:#454b55; }.dot.task { background:#17181c; }.dot.travel { background:#8b919b; }.calendar-legend { display:flex; align-items:center; gap:9px; flex-wrap:wrap; margin:12px 2px 0; color:var(--muted); font-size:11px; }.calendar-legend .dot { margin:0 3px 0 0; }.month-day span { min-height:12px; height:12px; gap:2px; }.calendar-mark,.legend-mark { display:inline-grid; place-items:center; box-sizing:border-box; width:12px; height:12px; margin:0; border-radius:3px; border:1px solid currentColor; font:800 8px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; font-style:normal; letter-spacing:0; }.calendar-mark.run,.legend-mark.run { color:#525861; }.calendar-mark.task,.legend-mark.task { color:#17181c; background:#17181c; }.calendar-mark.task { color:#fff; }.calendar-mark.travel,.legend-mark.travel { color:#8a9099; border-style:dashed; }.today-day .calendar-mark { color:#fff; border-color:rgba(255,255,255,.78); background:transparent; }.today-day .calendar-mark.task { background:#fff; color:#17181c; }
.row { gap:10px; padding:12px 0; }.check { width:18px; height:18px; flex-basis:18px; border-radius:6px; }.agenda-time { flex-basis:38px; font-size:11px; }.row strong { font-size:14px; }.row span { font-size:12px; }.delete-task { min-height:36px; }
.bottom-nav { height:calc(64px + var(--safe-bottom)); gap:0; padding:5px 6px var(--safe-bottom); border-top:1px solid var(--line); background:var(--surface); }.bottom-nav button { border-radius:8px; font-size:10px; }.bottom-nav button span:first-child { height:22px; font-size:17px; line-height:20px; }.bottom-nav button[aria-current="page"] { background:#eceef1; color:var(--ink); }
@media (min-width:700px) { .topbar,main { width:min(100%,760px); }.topbar { height:68px; padding:0 24px; }.app-shell::before { height:68px; } main { padding:24px 22px 96px; }.month-grid { gap:4px; }.month-day { height:54px; } }

/* v17: agenda semanal — oscuro, funcional y sin copy decorativo */
:root { --canvas:#101114; --surface:#18191c; --surface-soft:#151619; --ink:#f1f1ed; --muted:#a6a6a1; --line:#303136; --line-strong:#47484d; --accent:#f1f1ed; --accent-ink:#f1f1ed; --green:#c5c5bf; --gold:#888984; color-scheme:dark; }
:root[data-theme="light"] { --canvas:#f4f4f1; --surface:#ffffff; --surface-soft:#f7f7f5; --ink:#161616; --muted:#6c6c67; --line:#ddddD8; --line-strong:#b8b8b1; --accent:#161616; --accent-ink:#161616; --green:#4e4f4b; --gold:#7c7d78; color-scheme:light; }
.topbar { border:0; background:var(--canvas); }.wordmark { font-family:inherit; font-size:19px; font-style:normal; font-weight:750; letter-spacing:-.035em; }.wordmark img { display:none; }.theme-button { width:auto; min-width:76px; height:31px; padding:0 11px; border-radius:99px; background:transparent; font-size:13px; }
main { padding:15px 16px calc(var(--nav-h) + var(--safe-bottom) + 18px); }.today-dashboard { display:grid; grid-template-columns:78px 1fr; gap:14px; align-items:end; margin:7px 0 17px; }.dashboard-date { display:flex; align-items:flex-end; gap:8px; }.dashboard-date strong { font-family:inherit; font-weight:750; font-size:48px; line-height:.86; letter-spacing:-.065em; }.dashboard-date span { padding-bottom:2px; color:var(--muted); font-size:10px; font-weight:800; letter-spacing:.1em; line-height:1.35; text-transform:uppercase; }.daily-overview { min-height:62px; padding:12px 13px; border:1px solid var(--line); border-radius:5px; background:var(--surface); }.daily-overview p { margin:0 0 5px; color:var(--muted); font-size:9px; font-weight:800; letter-spacing:.13em; }.daily-overview strong { display:block; font-size:13px; line-height:1.3; letter-spacing:-.02em; }.quick-card { margin:0 0 10px; padding:10px; border-radius:5px; background:var(--surface); }.card { margin:10px 0; padding:15px; border-color:var(--line); border-radius:5px; background:var(--surface); }.card-head { margin-bottom:12px; }.card h2 { font-family:inherit; font-size:18px; font-weight:750; letter-spacing:-.035em; }.section-link { color:var(--ink); font-size:11px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }.section-link:hover { color:var(--ink); }.quick-capture input { border:0; background:transparent; padding:10px 5px; }.quick-capture .button { width:40px; min-height:40px; border-radius:4px; }.button.primary { background:var(--ink); color:var(--canvas); }.row { gap:11px; padding:12px 0; }.row strong { font-size:13px; font-weight:700; }.row span { font-size:11px; }.check { width:18px; height:18px; flex-basis:18px; border-radius:50%; }.agenda-time { flex-basis:36px; color:var(--muted); font-size:10px; }.today-columns { display:grid; gap:10px; }.today-columns > .card { margin:0; }.split { gap:10px; }.mini-card { padding:13px; border-radius:5px; background:var(--surface); }.mini-card:nth-child(2) { background:var(--surface-soft); }.mini-card p { font-size:10px; text-transform:uppercase; letter-spacing:.1em; }.mini-card strong { font-size:15px; }.pill { border-radius:4px; background:#2a2b2f; color:var(--ink); }
.bottom-nav { background:#101114; border-color:var(--line); }.bottom-nav button { border-radius:4px; color:#969792; font-weight:600; }.bottom-nav button[aria-current="page"] { background:#25262a; color:var(--ink); }.bottom-nav button span:first-child { font-size:15px; }.month-card { background:var(--surface); }.today-day { background:var(--ink); color:var(--canvas); }.dot { background:var(--ink); }.dot.run { background:#c5c5bf; }.dot.trip { background:#868780; }
.auth-gate { background:var(--canvas); }.auth-card { border-radius:5px; box-shadow:none; }.auth-card h1 { font-family:inherit; font-size:30px; font-weight:750; letter-spacing:-.05em; }
@media (min-width:700px) { main { max-width:760px; }.today-columns { grid-template-columns:1fr 1fr; align-items:start; }.topbar { background:var(--canvas); } }
/* v19 mobile geometry: date and summary never share an undersized column. */
.today-dashboard { grid-template-columns:1fr; gap:10px; align-items:stretch; }.dashboard-date { min-width:0; align-items:baseline; gap:11px; }.dashboard-date strong { flex:0 0 auto; font-size:48px; line-height:.9; }.dashboard-date span { min-width:0; padding:0; font-size:10px; line-height:1.35; }.daily-overview { min-height:0; }.split { grid-template-columns:1fr; }.goal-card { margin:10px 0; }.goal-card .card-head { align-items:flex-start; }.goal-meta { margin:4px 0 0; color:var(--muted); font-size:12px; }.goal-actions { display:flex; gap:10px; flex:0 0 auto; }.danger-link { color:#d9a6a6; }.progress { background:#303136; }.progress i { background:var(--ink); }
@media (min-width:700px) { .split { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.check-option { display:flex; align-items:center; gap:10px; padding:11px 0; border-top:1px solid var(--line); color:var(--ink); font-size:14px; }
.check-option input { width:19px; height:19px; margin:0; accent-color:var(--ink); }

/* One training state per calendar day: planned, completed, or missed. */
.calendar-mark.run.completed,.legend-mark.run.completed { color:#fff; border-color:#17181c; background:#17181c; }
.calendar-mark.run.missed { color:#a4a8ae; border-style:dashed; opacity:.78; }
.today-day .calendar-mark.run.completed { color:#17181c; border-color:#fff; background:#fff; }

.confirm-panel { display:grid; gap:14px; padding:22px; }.confirm-panel h2 { margin:0; font-size:20px; font-weight:750; letter-spacing:-.035em; }.confirm-panel > p:not(.eyebrow) { margin:0; color:var(--muted); }.confirm-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:4px; }.confirm-actions .button { min-width:108px; }

/* v31 — referencia visual: agenda de papel, niebla azul y capas suaves. */
:root {
  --daybyday-paper:#f7f5ef;
  --daybyday-mist:#dce9f6;
  --daybyday-sage:#d9efe3;
  --daybyday-sky:#c9ddf4;
  --daybyday-night:#a9c5da;
  --canvas:var(--daybyday-paper);
  --surface:rgba(255,255,255,.82);
  --surface-soft:rgba(255,255,255,.62);
  --ink:#151719;
  --muted:#798087;
  --line:rgba(41,51,58,.10);
  --line-strong:rgba(41,51,58,.18);
  --accent:#151719;
  --accent-ink:#151719;
  color-scheme:light;
  font-family:"SF Pro Display","SF Pro Text",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
:root[data-theme="dark"] { --canvas:#131a20; --surface:rgba(25,35,43,.87); --surface-soft:rgba(31,43,51,.74); --ink:#f6f5f0; --muted:#b7c0c7; --line:rgba(255,255,255,.12); --line-strong:rgba(255,255,255,.22); --accent:#f6f5f0; --accent-ink:#f6f5f0; color-scheme:dark; }
html,body,.app-shell { background:radial-gradient(circle at 12% 5%,rgba(255,255,255,.86),transparent 35%),linear-gradient(145deg,var(--daybyday-mist),var(--daybyday-paper) 50%,#f3eedf); }
.topbar { height:calc(74px + var(--safe-top)); padding:var(--safe-top) 24px 0; border:0; background:transparent; }
.wordmark { font-size:17px; font-weight:780; letter-spacing:-.055em; }.wordmark img { display:none; }
.theme-button { width:38px; min-width:38px; height:38px; border:0; border-radius:50%; background:rgba(255,255,255,.62); box-shadow:0 8px 24px rgba(41,51,58,.08); }
main { width:min(100%,510px); padding:12px 18px calc(var(--nav-h) + var(--safe-bottom) + 28px); }
.today-dashboard { grid-template-columns:1fr; gap:13px; margin:2px 0 18px; align-items:start; }.dashboard-date { gap:12px; align-items:baseline; }.dashboard-date strong { font-size:53px; line-height:.9; font-weight:780; letter-spacing:-.075em; }.dashboard-date span { font-size:11px; letter-spacing:.04em; text-transform:none; }.daily-overview { min-height:0; padding:15px 16px; border:0; border-radius:25px; background:rgba(255,255,255,.66); box-shadow:0 14px 34px rgba(47,66,78,.08); backdrop-filter:blur(18px); }.daily-overview p { font-size:10px; letter-spacing:.08em; }.daily-overview strong { font-size:15px; }
.quick-card,.card { border:0; border-radius:24px; background:var(--surface); box-shadow:0 14px 34px rgba(47,66,78,.075); backdrop-filter:blur(18px); }.quick-card { padding:12px; }.card { margin:12px 0; padding:17px; }.card h2 { font-size:18px; font-weight:760; }.section-link { font-size:11px; letter-spacing:.04em; text-transform:none; }.row { padding:13px 0; border-color:var(--line); }.row strong { font-size:14px; }.row span { font-size:12px; }.check { border-radius:50%; background:rgba(255,255,255,.7); }
.reference-calendar-surface { overflow:hidden; border-radius:28px; background:linear-gradient(155deg,rgba(255,255,255,.88),rgba(244,249,252,.64)); box-shadow:0 18px 40px rgba(57,78,90,.11); backdrop-filter:blur(18px); }
.reference-day-band { display:grid; gap:9px; padding:15px; border-radius:25px; }.reference-day-band.morning { background:linear-gradient(145deg,var(--daybyday-sage),rgba(255,255,255,.7)); }.reference-day-band.afternoon { background:linear-gradient(145deg,var(--daybyday-sky),rgba(255,255,255,.62)); }.reference-day-band.night { background:linear-gradient(145deg,var(--daybyday-night),rgba(233,240,235,.76)); }.reference-day-band h3 { margin:0; font-size:14px; font-weight:760; }.reference-day-band .row { padding:10px 0; border-top:0; border-radius:14px; background:rgba(255,255,255,.78); }.reference-day-band .row + .row { margin-top:3px; }
.month-card { overflow:hidden; padding:16px; border-radius:28px; background:rgba(255,255,255,.83); }.month-grid { gap:5px; }.month-day { min-height:49px; height:49px; border-radius:50%; }.today-day { border:0; background:#131516; color:#fff; box-shadow:0 7px 17px rgba(0,0,0,.17); }.calendar-mark,.legend-mark { border-radius:50%; }.calendar-legend { padding-top:6px; }
.bottom-nav { right:12px; bottom:calc(12px + var(--safe-bottom)); left:12px; width:auto; height:64px; padding:6px; border:1px solid rgba(255,255,255,.62); border-radius:24px; background:rgba(255,255,255,.70); box-shadow:0 14px 34px rgba(47,66,78,.16); backdrop-filter:blur(18px); }.bottom-nav button { border-radius:17px; color:#656e74; }.bottom-nav button[aria-current="page"] { background:rgba(255,255,255,.9); color:var(--ink); box-shadow:0 4px 13px rgba(47,66,78,.09); }
dialog { border:0; border-radius:28px; background:rgba(255,255,255,.96); box-shadow:0 24px 70px rgba(35,47,55,.26); }.button { border:0; border-radius:15px; background:rgba(255,255,255,.8); }.button.primary { background:#151719; color:#fff; }
@media (min-width:700px) { .topbar,main { width:min(100%,650px); }.topbar { height:78px; padding:0 30px; }.app-shell::before { display:none; } main { padding:22px 28px 118px; }.bottom-nav { left:50%; bottom:20px; width:min(550px,calc(100% - 36px)); transform:translateX(-50%); } }

/* Composición de la vista diaria: réplica estructural de la referencia móvil. */
.reference-day-screen { display:grid; gap:14px; min-height:calc(100dvh - 172px); padding:16px 0 8px; }
.reference-phone-head { display:flex; align-items:start; justify-content:space-between; padding:0 2px 8px; }
.reference-phone-head h1 { margin:0; color:#111214; font-size:38px; line-height:.98; font-weight:780; letter-spacing:-.075em; }
.reference-phone-head p { margin:6px 0 0; color:#8d9291; font-size:12px; }
.reference-close { display:grid; place-items:center; width:34px; height:34px; border:0; border-radius:50%; color:#777d7b; background:rgba(255,255,255,.72); font:300 25px/1 -apple-system,BlinkMacSystemFont,sans-serif; box-shadow:0 5px 15px rgba(34,48,53,.06); }
.reference-day-screen .reference-calendar-surface { display:grid; gap:10px; padding:0; min-height:0; border-radius:28px; background:transparent; box-shadow:none; }
.reference-day-screen .reference-day-band { min-height:116px; padding:15px 13px; border-radius:25px; align-content:start; }
.reference-day-screen .reference-day-band h3 { padding:0 3px 3px; font-size:14px; font-weight:780; letter-spacing:-.035em; }
.reference-day-screen .reference-day-band .list { display:grid; gap:7px; margin:0; }.reference-day-screen .reference-day-band .row { min-height:51px; padding:8px 10px; border-radius:14px; align-items:center; background:rgba(255,255,255,.84); box-shadow:0 3px 10px rgba(75,91,95,.035); }.reference-day-screen .reference-day-band .row strong { font-size:13px; }.reference-day-screen .reference-day-band .row span { font-size:10px; }.reference-day-screen .reference-day-band .agenda-time { padding:0; color:#8f9895; background:transparent; font-size:10px; }
.reference-day-screen .reference-day-band.morning { background:linear-gradient(135deg,#dcefe2,#d8ece3 54%,#c6e9e2); }.reference-day-screen .reference-day-band.afternoon { background:linear-gradient(135deg,#c9ddf4,#b9d5ed 55%,#a9cde7); }.reference-day-screen .reference-day-band.night { background:linear-gradient(135deg,#abc7d9,#96b9d0 54%,#b8d2ce); }
.reference-week-strip { display:grid; grid-template-columns:repeat(7,1fr); align-items:center; min-height:69px; margin-top:auto; padding:8px 12px; border-radius:25px; background:rgba(255,255,255,.73); box-shadow:0 12px 30px rgba(48,72,79,.12); backdrop-filter:blur(18px); }.reference-week-strip span { display:grid; place-items:center; gap:5px; min-width:0; color:#9aa09e; }.reference-week-strip b { font-size:10px; font-weight:720; text-transform:uppercase; }.reference-week-strip i { display:grid; place-items:center; width:27px; height:27px; border-radius:50%; font-size:11px; font-style:normal; }.reference-week-strip .active { color:#181a1b; }.reference-week-strip .active i { color:#fff; background:#161819; box-shadow:0 5px 12px rgba(0,0,0,.18); }
@media (min-width:700px) { .reference-day-screen { min-height:620px; padding:22px 18px; }.reference-phone-head h1 { font-size:48px; }.reference-day-screen .reference-day-band { min-height:130px; } }

.reference-goals-screen { display:grid; gap:16px; padding:16px 0 8px; }.reference-goals-screen time { display:grid; place-items:center; min-width:48px; min-height:48px; border-radius:13px; background:rgba(255,255,255,.73); color:#303435; font-size:11px; font-weight:760; text-transform:uppercase; }.reference-goal { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:15px 16px; border-radius:20px; background:rgba(255,255,255,.72); box-shadow:0 8px 22px rgba(47,66,78,.06); }.reference-goal.primary { min-height:128px; align-items:start; border-radius:26px; background:linear-gradient(135deg,rgba(230,240,248,.95),rgba(255,255,255,.87) 72%,rgba(249,239,213,.8)); }.reference-goal small { color:#8b9292; font-size:11px; }.reference-goal h2 { max-width:260px; margin:5px 0 0; color:#16191a; font-size:18px; line-height:1.1; letter-spacing:-.045em; }.reference-goal .progress { width:min(220px,55vw); height:5px; margin-top:18px; background:rgba(20,27,29,.10); }.reference-goal .progress i { background:#16191a; }.reference-recent { display:grid; gap:8px; padding-top:3px; }.reference-recent-head { display:flex; justify-content:space-between; align-items:center; padding:0 4px; color:#89908e; font-size:11px; }.reference-recent > p { margin:5px 4px; color:#89908e; font-size:12px; }.empty-goal { display:grid; gap:14px; }.empty-goal .button { width:max-content; }

/* Densidad real: no huecos artificiales ni un segundo calendario encima de la navegación. */
.reference-day-screen { min-height:0; align-content:start; gap:18px; padding-top:10px; }.reference-day-screen .reference-calendar-surface { gap:12px; }.reference-day-screen .reference-day-band { min-height:96px; padding:15px; }.reference-day-screen .reference-day-band:has(.reference-band-empty) { min-height:70px; }.reference-band-empty { height:8px; }.reference-week-strip { display:none; }
.bottom-nav { height:72px; padding:8px 7px; border:1px solid rgba(255,255,255,.78); border-radius:26px; background:rgba(255,255,255,.88); box-shadow:0 13px 30px rgba(47,66,78,.13); }.bottom-nav button { display:grid; place-items:center; align-content:center; gap:4px; min-height:54px; border-radius:18px; font-size:10px; letter-spacing:-.01em; }.bottom-nav button span:first-child { height:18px; font-size:0; line-height:1; }.bottom-nav button span:first-child::before { display:block; width:15px; height:15px; border:1.6px solid currentColor; border-radius:50%; content:""; }.bottom-nav button:nth-child(2) span:first-child::before { border-radius:2px; background:linear-gradient(90deg,transparent 45%,currentColor 46% 54%,transparent 55%),linear-gradient(0deg,transparent 45%,currentColor 46% 54%,transparent 55%); }.bottom-nav button:nth-child(3) span:first-child::before { width:14px; height:8px; border-width:0 0 2px 2px; border-radius:0; transform:rotate(-45deg); }.bottom-nav button:nth-child(4) span:first-child::before { width:12px; height:12px; border-radius:2px; transform:rotate(45deg); }.bottom-nav button:nth-child(5) span:first-child::before { width:13px; height:13px; border-radius:50% 50% 45% 45%; }.bottom-nav button[aria-current="page"] { background:transparent; box-shadow:none; }.bottom-nav button[aria-current="page"] span:first-child::before { color:#fff; border-color:#17191a; background:#17191a; box-shadow:0 4px 9px rgba(0,0,0,.16); }

/* Agenda mensual: retícula despejada y marcadores mínimos, como la pantalla central. */
.reference-agenda-screen { display:grid; gap:18px; padding:10px 0 8px; }.reference-agenda-screen .reference-phone-head { padding-bottom:2px; }.reference-agenda-screen .reference-phone-head h1 { font-size:47px; }.reference-month-nav { display:grid; grid-template-columns:40px 1fr 40px; align-items:center; gap:8px; margin-top:-8px; text-align:center; color:#39464a; }.reference-month-nav strong { font-size:14px; text-transform:capitalize; }.reference-month-nav button { width:40px; height:34px; border:0; border-radius:13px; background:rgba(255,255,255,.72); color:#334348; font:700 25px/1 system-ui,sans-serif; cursor:pointer; box-shadow:0 6px 15px rgba(49,72,80,.07); }.reference-month-nav button:active { transform:scale(.96); }.reference-month-card { padding:16px 12px 18px; border-radius:28px; background:rgba(255,255,255,.76); box-shadow:0 15px 34px rgba(49,72,80,.08); }.reference-weekdays,.reference-month-grid { display:grid; grid-template-columns:repeat(7,1fr); text-align:center; }.reference-weekdays { margin-bottom:12px; color:#333; font-size:10px; font-weight:750; }.reference-month-grid { row-gap:8px; }.reference-month-day { display:grid; place-items:center; gap:3px; min-width:0; min-height:39px; padding:0; border:0; border-radius:50%; color:#333; background:transparent; font:inherit; }.reference-month-day b { display:grid; place-items:center; width:27px; height:27px; font-size:11px; font-weight:600; }.reference-month-day span { display:flex; justify-content:center; gap:2px; height:5px; }.reference-month-day .calendar-mark { display:block; width:5px; height:5px; border:0; border-radius:50%; font-size:0; background:#82aee5; }.reference-month-day .calendar-mark.task { background:#5bb7a2; }.reference-month-day .calendar-mark.travel { background:#ec9c45; }.reference-month-day .calendar-mark.run.completed { background:#558ee0; }.reference-month-day.today-day { position:relative; background:transparent; color:#333; box-shadow:none; }.reference-month-day.today-day b { color:#fff; border:0; border-radius:50%; background:#17191a; box-shadow:none; font-weight:800; }.reference-month-day.today-day span { position:absolute; top:27px; right:0; left:0; z-index:1; }.reference-month-day.blank { pointer-events:none; }.reference-month-summary { display:grid; gap:5px; min-height:92px; padding:17px 18px; border-radius:27px; color:#142024; background:linear-gradient(135deg,rgba(180,212,217,.92),rgba(232,237,219,.89)); box-shadow:0 12px 28px rgba(49,72,80,.08); }.reference-month-summary p { margin:0; font-size:11px; }.reference-month-summary strong { font-size:16px; font-weight:720; letter-spacing:-.035em; }

.reference-calendar-legend { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:8px 13px; min-height:22px; padding:0 4px; color:#6a7478; font-size:10px; font-weight:650; }.reference-calendar-legend span { display:inline-flex; align-items:center; gap:5px; white-space:nowrap; }.reference-calendar-legend .calendar-mark { display:block; width:5px; height:5px; border-radius:50%; background:#82aee5; }.reference-calendar-legend .calendar-mark.run { background:#82aee5; }.reference-calendar-legend .calendar-mark.task { background:#5bb7a2; }.reference-calendar-legend .calendar-mark.travel { background:#ec9c45; }

/* Edición inequívoca, plan único y tarjeta meteorológica con datos reales. */
.reference-edit { display:grid; place-items:center; width:42px; height:42px; border:0; border-radius:50%; color:#252a2b; background:rgba(255,255,255,.78); box-shadow:0 8px 20px rgba(36,55,61,.08); }.reference-edit svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.75; stroke-linecap:round; stroke-linejoin:round; }.reference-plan { display:grid; gap:11px; padding:16px; border-radius:28px; background:linear-gradient(135deg,rgba(221,241,231,.95),rgba(201,229,236,.94)); box-shadow:0 12px 28px rgba(48,73,79,.08); }.reference-plan > header { display:flex; align-items:center; justify-content:space-between; color:#172126; font-size:15px; font-weight:760; letter-spacing:-.03em; }.reference-plan .section-link { color:#4c6466; }.reference-plan .list { display:grid; gap:8px; }.reference-plan .row { min-height:56px; margin:0; padding:10px 12px; border:0; border-radius:16px; background:rgba(255,255,255,.88); box-shadow:0 3px 11px rgba(51,83,86,.04); }.reference-plan .row strong { font-size:14px; }.reference-plan .row span { margin-top:3px; font-size:11px; }.reference-plan-empty { margin:0; min-height:58px; padding:18px 12px; border-radius:16px; color:#607176; background:rgba(255,255,255,.58); font-size:13px; }.reference-cost-alert { display:grid; gap:8px; padding:16px; border:1px solid rgba(139,71,30,.2); border-radius:24px; color:#2d2118; background:linear-gradient(135deg,#f5dfc3,#f8ecd7); box-shadow:0 12px 28px rgba(91,62,33,.1); }.reference-cost-alert p { margin:0; color:#805029; font-size:11px; font-weight:800; letter-spacing:.07em; text-transform:uppercase; }.reference-cost-alert ul { display:grid; gap:8px; margin:0; padding:0; list-style:none; }.reference-cost-alert li { display:grid; gap:2px; padding:10px 12px; border-radius:15px; background:rgba(255,255,255,.72); }.reference-cost-alert strong { font-size:14px; line-height:1.25; }.reference-cost-alert span { color:#745a45; font-size:12px; font-weight:650; }.reference-weather-card { display:grid; gap:3px; min-height:100px; padding:18px; border-radius:28px; color:#102024; background:linear-gradient(135deg,#c0dbe0,#dce5cb 72%,#f0e5c9); box-shadow:0 12px 28px rgba(49,72,80,.08); }.reference-weather-card p { margin:0; font-size:11px; }.reference-weather-card strong { font-size:30px; line-height:1; font-weight:760; letter-spacing:-.07em; }.reference-weather-card span { font-size:12px; }

/* Mi espacio: un único sistema compacto, operativo y medido. */
.space-screen { display:grid; gap:12px; padding:8px 0 10px; }.space-header { padding:4px 2px 8px; }.space-header h1 { margin:0; color:var(--ink); font-size:34px; line-height:1.04; font-weight:780; letter-spacing:-.065em; }.space-header p:not(.eyebrow) { max-width:34ch; margin:7px 0 0; color:var(--muted); font-size:13px; line-height:1.45; }.space-summary-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }.space-summary-card,.space-section-card { min-width:0; border:1px solid rgba(41,51,58,.10); background:rgba(255,255,255,.78); box-shadow:0 10px 25px rgba(47,66,78,.06); backdrop-filter:blur(18px); }.space-summary-card { min-height:136px; padding:15px; border-radius:20px; }.space-summary-head { display:flex; align-items:center; justify-content:space-between; gap:8px; color:var(--muted); font-size:11px; font-weight:760; }.space-inline-action { min-height:30px; padding:4px 7px; border:0; border-radius:9px; background:rgba(21,23,25,.07); color:var(--ink); font-size:11px; font-weight:760; }.space-summary-card > strong { display:block; margin-top:20px; color:var(--ink); font-size:31px; line-height:.9; font-weight:780; letter-spacing:-.075em; }.space-summary-card > strong small { font-size:14px; letter-spacing:-.03em; }.space-summary-card > p { min-height:30px; margin:10px 0 0; overflow:hidden; color:var(--muted); font-size:11px; line-height:1.35; }.space-training-value { font-size:23px!important; letter-spacing:-.06em!important; }.space-section-card { padding:16px; border-radius:20px; }.space-section-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:13px; }.space-section-head p { margin:0 0 3px; color:var(--muted); font-size:10px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }.space-section-head h2 { margin:0; color:var(--ink); font-size:17px; line-height:1.15; font-weight:760; letter-spacing:-.04em; }.space-list { margin:0; padding:0; list-style:none; }.space-list .row { padding:11px 0; }.space-list .row:last-child { padding-bottom:0; }.space-list .row strong { font-size:13px; }.space-list .row span { font-size:11px; }.space-empty { margin:0; padding:6px 0 2px; color:var(--muted); font-size:13px; }.space-trips { display:grid; gap:8px; }.space-trips .trip { padding:12px; border-radius:14px; background:rgba(255,255,255,.55); }.space-trips .trip > strong { font-size:13px; }.space-trips .trip > small { font-size:11px; }.space-tools { padding-bottom:14px; }.space-actions { display:grid; gap:8px; }.space-action { display:grid; grid-template-columns:1fr auto; align-items:center; gap:3px 10px; width:100%; min-height:58px; padding:11px 13px; border:1px solid rgba(41,51,58,.12); border-radius:14px; background:rgba(255,255,255,.62); color:var(--ink); text-align:left; }.space-action span { font-size:13px; font-weight:760; letter-spacing:-.02em; }.space-action small { grid-column:1; color:var(--muted); font-size:11px; }.space-action::after { grid-column:2; grid-row:1 / span 2; content:'›'; color:var(--muted); font-size:22px; font-weight:350; }.space-action.primary { border-color:#151719; background:#151719; color:#fff; }.space-action.primary small,.space-action.primary::after { color:rgba(255,255,255,.68); }.space-screen > .card { margin:0; border-radius:20px; }
@media (min-width:700px) { .space-screen { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; padding:18px 0; }.space-header,.space-summary-grid,.space-tools,.space-screen > .card { grid-column:1 / -1; }.space-header { padding:3px 2px 9px; }.space-header h1 { font-size:42px; }.space-summary-grid { gap:14px; }.space-summary-card { min-height:148px; padding:18px; }.space-section-card { padding:18px; }.space-screen > .card { width:auto; }.space-tools .space-actions { grid-template-columns:repeat(2,minmax(0,1fr)); } }

/* Tareas: misma jerarquía, densidad y acciones que Mi espacio. */
.tasks-screen { display:grid; gap:12px; padding:8px 0 10px; }.tasks-header { padding:4px 2px 8px; }.tasks-header h1 { margin:0; color:var(--ink); font-size:34px; line-height:1.04; font-weight:780; letter-spacing:-.065em; }.tasks-header > p:not(.eyebrow) { margin:7px 0 0; color:var(--muted); font-size:13px; }.tasks-capture-card,.tasks-push-card,.tasks-section-card { min-width:0; border:1px solid rgba(41,51,58,.10); background:rgba(255,255,255,.78); box-shadow:0 10px 25px rgba(47,66,78,.06); backdrop-filter:blur(18px); }.tasks-capture-card { padding:8px; border-radius:18px; }.tasks-capture { display:grid; grid-template-columns:1fr auto; gap:8px; }.tasks-capture input { min-width:0; height:46px; padding:0 10px; border:0; background:transparent; color:var(--ink); font-size:14px; }.tasks-capture input:focus { outline:0; }.tasks-add,.tasks-push-action,.tasks-new-action { min-height:38px; border:0; border-radius:11px; color:var(--ink); font-size:12px; font-weight:760; }.tasks-add { padding:0 13px; background:#151719; color:#fff; }.tasks-push-card { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:14px 15px; border-radius:18px; }.tasks-push-card p { margin:0 0 3px; color:var(--ink); font-size:13px; font-weight:760; letter-spacing:-.02em; }.tasks-push-card span { display:block; color:var(--muted); font-size:11px; line-height:1.35; }.tasks-push-action { flex:0 0 auto; padding:0 11px; background:rgba(21,23,25,.07); }.tasks-section-card { padding:16px; border-radius:20px; }.tasks-section-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:13px; }.tasks-section-head p { margin:0 0 3px; color:var(--muted); font-size:10px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }.tasks-section-head h2 { margin:0; color:var(--ink); font-size:17px; line-height:1.15; font-weight:760; letter-spacing:-.04em; }.tasks-new-action { padding:0 9px; background:rgba(21,23,25,.07); }.tasks-list { margin:0; padding:0; list-style:none; }.tasks-list .row { padding:11px 0; }.tasks-list .row:last-child { padding-bottom:0; }.tasks-list .row strong { font-size:13px; }.tasks-list .row span { font-size:11px; }.tasks-empty { margin:0; padding:6px 0 2px; color:var(--muted); font-size:13px; }
@media (min-width:700px) { .tasks-screen { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; padding:18px 0; }.tasks-header,.tasks-capture-card,.tasks-section-card { grid-column:1 / -1; }.tasks-header { padding:3px 2px 9px; }.tasks-header h1 { font-size:42px; }.tasks-push-card { align-self:stretch; }.tasks-section-card { padding:18px; } }
