/* Cáscara de MILO copiada de Zenly (index.html + rediseño ui2 de ui2-dash.css):
   menú lateral con grupos y color por sección, indicador con luz, barra de arriba translúcida,
   barra inferior en celular, modo claro y oscuro. Diferencias: fondo negro (pedido) y la página
   se desplaza con la ventana (no dentro de .content). */
:root { --bg3: #121218; --t1: #f5f5f5; }
body.light {
  --bg: #f0f4ff; --bg2: #ffffff; --bg3: #e5ecff; --card: #ffffff; --card2: #ebf0ff;
  --t: #0a1e3c; --t1: #0b1324; --t2: #1e3a8a; --t3: #3b5cb8; --brd: #c5d4f5; --brd2: #b5c6ee;
  --sh: 0 8px 32px rgba(67, 97, 238, .08); color-scheme: light;
}
.ui2 { --u2-spring: cubic-bezier(.34, 1.56, .64, 1); --u2-out: cubic-bezier(.16, 1, .3, 1); }

/* ── Menú lateral (Zenly) ── */
.sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 230px; z-index: 120; overflow-y: auto; background: linear-gradient(180deg, var(--bg2), var(--bg3)); border-right: 1px solid var(--brd); display: flex; flex-direction: column; }
body.light .sidebar { background: linear-gradient(180deg, #fff, #e5ecff); }
.logo { padding: 24px 18px 16px; display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, #f3e8ff, #c8a2ff); display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 0 18px -4px rgba(178, 92, 255, .7); }
.logo-icon img { width: 30px; height: 30px; object-fit: contain; }
.logo-text { font-size: 13px; font-weight: 700; color: var(--t); }
.logo-sub { font-size: 13px; font-weight: 600; color: var(--pl); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar .nav { flex: 1; padding: 8px 10px; min-height: 0; overflow-y: auto; position: relative; display: block; }
.ni { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; cursor: pointer; color: var(--t3); font-size: 13px; font-weight: 500; transition: all .15s; margin-bottom: 2px; position: relative; user-select: none; text-decoration: none; }
.ni-icon { width: 20px; height: 20px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.ni-icon svg { width: 18px; height: 18px; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ni-icon img { width: 20px; height: 20px; object-fit: contain; }
.ni.active { color: var(--t); z-index: 1; }
.nav-ind { position: absolute; left: 10px; right: 10px; top: 0; height: 0; border-radius: 10px; background: linear-gradient(135deg, rgba(177, 77, 255, .16), rgba(30, 167, 255, .16)); border: 1px solid rgba(177, 77, 255, .35); box-shadow: 0 2px 14px rgba(177, 77, 255, .18); transition: top .28s cubic-bezier(.4, 0, .2, 1), height .28s cubic-bezier(.4, 0, .2, 1); pointer-events: none; z-index: 0; }
.sf { padding: 14px 18px; padding-bottom: calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--brd); display: flex; align-items: center; gap: 10px; cursor: pointer; text-decoration: none; }
.sf-name { font-size: 13px; font-weight: 600; color: var(--t2); }
.sf-plan { font-size: 11px; color: var(--t3); }
/* ui2: cada sección brilla con su color */
.ui2 .ni { --nc: 107, 132, 245; transition: color .2s, background .25s; }
.ui2 .ni .ni-icon svg { stroke: rgb(var(--nc)); transition: transform .45s var(--u2-spring), filter .3s; }
@media (hover: hover) and (pointer: fine) {
  .ui2 .ni:hover { background: rgba(var(--nc), .10); color: var(--t1, var(--t)); }
  .ui2 .ni:hover .ni-icon svg { transform: scale(1.12); filter: drop-shadow(0 0 5px rgba(var(--nc), .65)); }
}
.ui2 .ni:active .ni-icon svg { transform: scale(.9); }
.ui2 .ni.active { color: #fff; font-weight: 650; }
body.light.ui2 .ni.active, .ui2 body.light .ni.active { color: var(--t1, #0b1324); }
.ui2 .ni.active .ni-icon svg { transform: scale(1.08); filter: drop-shadow(0 0 7px rgba(var(--nc), .95)); }
.ui2 .nav-ind { --nc: 107, 132, 245; background: linear-gradient(90deg, rgba(var(--nc), .26), rgba(var(--nc), .07)); border-color: rgba(var(--nc), .5); box-shadow: 0 0 0 1px rgba(var(--nc), .10), 0 0 26px -4px rgba(var(--nc), .6); transition: top .45s var(--u2-spring), height .3s var(--u2-out), background .35s, border-color .35s, box-shadow .35s; }
.ui2 .nav-ind::before { content: ""; position: absolute; left: -1px; top: 22%; bottom: 22%; width: 3px; border-radius: 0 3px 3px 0; background: rgb(var(--nc)); box-shadow: 0 0 10px rgba(var(--nc), .9); }
.ui2 .u2-grp { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--t3); padding: 14px 12px 6px; user-select: none; }

/* ── Contenido y barra de arriba (Zenly) ── */
.main { margin-left: 230px; min-width: 0; min-height: 100vh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(0, 0, 0, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--brd); padding: 14px 24px; display: flex; align-items: center; gap: 14px; transition: background .3s, box-shadow .3s; }
body.light .topbar { background: rgba(244, 240, 255, .96); }
.ui2 .topbar.u2-scrolled { background: rgba(0, 0, 0, .72); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); box-shadow: 0 8px 30px rgba(0, 0, 0, .25); }
.ui2 body.light .topbar.u2-scrolled, body.light.ui2 .topbar.u2-scrolled { background: rgba(244, 246, 251, .8); }
.topbar-title { font-size: 18px; font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: opacity .2s, transform .3s var(--u2-out, ease); }
.topbar-title.u2-swap { opacity: 0; transform: translateY(6px); }
.topbar-date { font-size: 12px; color: var(--t3); white-space: nowrap; }
.tb-btn { width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--brd); background: var(--card); color: var(--t2); display: grid; place-items: center; cursor: pointer; transition: transform .2s, border-color .2s, color .2s; flex: none; }
.tb-btn:hover { color: var(--t); border-color: var(--pl); transform: translateY(-1px); }
.tb-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tb-btn.t-sun { color: #f59e0b; } .tb-btn.t-bell { color: #10b981; }
.tb-new { padding: 9px 16px; border-radius: 11px; border: 0; color: #fff; font-weight: 700; font-size: 13.5px; background: linear-gradient(135deg, var(--p), var(--pd, #2d4ecc)); box-shadow: 0 4px 14px rgba(67, 97, 238, .4); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tb-new:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(67, 97, 238, .5); }
.hamburger { display: none; background: none; border: none; color: var(--t); cursor: pointer; padding: 6px 8px; border-radius: 8px; line-height: 1; flex-shrink: 0; }
.hamburger svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.sb-overlay { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 115; backdrop-filter: blur(2px); }
.sb-overlay.open { display: block; }
.content { padding: 20px 24px 150px; flex: 1; width: 100%; max-width: 1180px; }

/* menú de "+ Nuevo" */
.new-menu { position: fixed; z-index: 160; min-width: 220px; background: var(--bg2); border: 1px solid var(--brd); border-radius: 14px; padding: 6px; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .6); animation: zsu .18s ease; }
.new-menu button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 0; background: none; color: var(--t); font-size: 14px; font-weight: 600; cursor: pointer; text-align: left; }
.new-menu button:hover { background: rgba(var(--nc), .12); }
.new-menu .nm-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(var(--nc), .15); color: rgb(var(--nc)); }
.new-menu .nm-ic svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* Barra para escribirle a MILO */
.ask { position: fixed; left: 230px; right: 0; bottom: 0; z-index: 40; padding: 14px 24px 18px; background: linear-gradient(transparent, var(--bg) 40%); pointer-events: none; }
.ask form { pointer-events: auto; max-width: 1132px; display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid rgba(178, 92, 255, .45); border-radius: 24px; padding: 6px 6px 6px 8px; box-shadow: 0 0 0 1px rgba(178, 92, 255, .08), 0 0 30px -10px rgba(178, 92, 255, .7); }
.ask .ask-av { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(180deg, #f3e8ff, #d8b8ff); display: grid; place-items: center; flex: none; }
.ask .ask-av img { width: 22px; height: 22px; object-fit: contain; }
.ask input { flex: 1; background: none; border: 0; outline: none; min-width: 0; padding: 6px 0; color: var(--t); }
.ask input::placeholder { color: var(--t3); }

/* Barra inferior (solo celular), como el rediseño de Zenly */
.u2-tabbar { display: none; }
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); transition: transform .28s cubic-bezier(.4, 0, .2, 1); width: 250px; z-index: 130; padding-top: env(safe-area-inset-top, 0px); }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .hamburger { display: flex; align-items: center; justify-content: center; }
  .topbar { padding: 11px 12px; gap: 8px; padding-top: calc(11px + env(safe-area-inset-top, 0px)); }
  .topbar-title { font-size: 16px; }
  .topbar-date, .tb-new .lbl { display: none; }
  .tb-new { padding: 9px 11px; }
  .tb-btn { width: 36px; height: 36px; }
  .content { padding: 14px 12px calc(160px + env(safe-area-inset-bottom, 0px)); }
  .ask { left: 0; bottom: calc(62px + env(safe-area-inset-bottom, 0px)); padding: 8px 12px; }
  .ui2 .u2-tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 110; justify-content: space-around; padding: 7px 6px calc(7px + env(safe-area-inset-bottom, 0px)); background: rgba(10, 10, 14, .92); backdrop-filter: blur(18px) saturate(170%); -webkit-backdrop-filter: blur(18px) saturate(170%); border-top: 1px solid var(--brd); }
  .ui2 body.light .u2-tabbar, body.light.ui2 .u2-tabbar { background: rgba(255, 255, 255, .92); }
  .ui2 .u2-tabbar button { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: 0; font: 650 10.5px/1.1 inherit; color: var(--t3); padding: 4px 0; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color .2s; }
  .ui2 .u2-tabbar button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--u2-spring), filter .3s; }
  .ui2 .u2-tabbar button .tb-milo { width: 40px; height: 40px; margin-top: -20px; border-radius: 50%; background: linear-gradient(180deg, #f3e8ff, #d8b8ff); display: grid; place-items: center; box-shadow: 0 0 0 3px var(--bg), 0 0 20px -2px rgba(178, 92, 255, .9); transition: transform .4s var(--u2-spring); }
  .ui2 .u2-tabbar button .tb-milo img { width: 30px; height: 30px; object-fit: contain; }
  .ui2 .u2-tabbar button.on { color: rgb(var(--nc, 107, 132, 245)); }
  .ui2 .u2-tabbar button.on svg { transform: translateY(-1px) scale(1.08); filter: drop-shadow(0 0 6px rgba(var(--nc, 107, 132, 245), .8)); }
  .ui2 .u2-tabbar button.on .tb-milo { transform: scale(1.08); }
  .ui2 .u2-tabbar button:active svg { transform: scale(.88); }
  .ui2 .u2-tabind { position: absolute; top: 0; left: 0; height: 3px; width: 28px; border-radius: 0 0 3px 3px; background: rgb(var(--nc, 107, 132, 245)); box-shadow: 0 0 10px rgba(var(--nc, 107, 132, 245), .9); transition: transform .45s var(--u2-spring), background .3s; }
  .toast { bottom: calc(140px + env(safe-area-inset-bottom, 0px)) !important; }
}

/* ── Piezas base del Dashboard de Zenly ── */
.zen .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.zen .sc { background: var(--card); border: 1px solid var(--brd); border-radius: 14px; padding: 18px; position: relative; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; cursor: pointer; text-decoration: none; color: var(--t); }
.zen .sc:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.zen .sc::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 14px 14px 0 0; }
.zen .sc.pur::before { background: linear-gradient(90deg, #B14DFF, #1EA7FF); }
.zen .sc.grn::before { background: linear-gradient(90deg, #10b981, #84cc16); }
.zen .sc.org::before { background: linear-gradient(90deg, #f97316, #fbbf24); }
.zen .sc.pnk::before { background: linear-gradient(90deg, #ec4899, #8b5cf6); }
.zen .sc-icon { font-size: 22px; margin-bottom: 8px; display: flex; align-items: center; }
.zen .sc-icon svg { fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.zen .sc-val { font-size: 26px; font-weight: 800; margin-bottom: 3px; }
.zen .sc-val.txt { font-size: 18px !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zen .sc-lbl { font-size: 11px; color: var(--t3); }
.zen .sc-trend { font-size: 11.5px; color: var(--t3); margin-top: 5px; }
.zen .sc-trend.good { color: var(--grn); } .zen .sc-trend.bad { color: var(--red); }
.zen .ai { background: var(--card); border: 1px solid var(--brd); border-radius: 12px; padding: 14px 16px; display: flex; align-items: center; gap: 14px; transition: border-color .15s; }
.zen .at { min-width: 52px; text-align: center; } .zen .at-h { font-size: 15px; font-weight: 800; color: var(--pl); } .zen .at-d { font-size: 10px; color: var(--t3); }
.zen .adiv { width: 2px; height: 36px; background: var(--brd); border-radius: 2px; }
.zen .ainfo { flex: 1; min-width: 0; } .zen .an { font-size: 13px; font-weight: 700; margin-bottom: 1px; } .zen .as { font-size: 11px; color: var(--t3); }
.zen .aa { display: flex; gap: 6px; align-items: center; }
.zen .two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.zen .dash-w { position: relative; background: var(--card); border: 1px solid var(--brd); border-radius: 14px; padding: 18px; }
.zen .dash-w[data-span="2"] { grid-column: span 2; }
.zen .badge { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 20px; font-size: 10px; font-weight: 600; white-space: nowrap; }
.zen .bg { background: rgba(16, 185, 129, .15); color: #6ee7b7; } .zen .br { background: rgba(239, 68, 68, .15); color: #fca5a5; }
.zen .by { background: rgba(245, 158, 11, .15); color: #fcd34d; } .zen .bp { background: rgba(67, 97, 238, .2); color: var(--pl); }
.zen .bb { background: rgba(59, 130, 246, .15); color: #93c5fd; }
body.light .zen .bg { color: #047857; } body.light .zen .br { color: #b91c1c; } body.light .zen .by { color: #92400e; } body.light .zen .bb { color: #1d4ed8; }
.zen .empty { text-align: center; padding: 26px 16px; color: var(--t3); font-size: 13px; }
.zen .sec .more { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--pl); text-decoration: none; }
.zen .qa { display: flex; gap: 10px; flex-wrap: wrap; }
.zen .qa button { --nc: 107, 132, 245; flex: 1 1 140px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--bg3); border: 1px solid var(--brd); color: var(--t); font-weight: 650; font-size: 13.5px; cursor: pointer; transition: transform .45s var(--u2-spring), border-color .25s, box-shadow .3s; }
.zen .qa button:hover { transform: translateY(-2px); border-color: rgba(var(--nc), .55); box-shadow: 0 0 22px -6px rgba(var(--nc), .55); }
.zen .qa .qi { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(var(--nc), .15); color: rgb(var(--nc)); box-shadow: inset 0 0 0 1px rgba(var(--nc), .3); }
.zen .qa .qi svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) {
  .zen .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .zen .two { grid-template-columns: 1fr; }
  .zen .dash-w[data-span="2"] { grid-column: span 1; }
  .zen .qa button { flex: 1 1 calc(50% - 10px); padding: 10px; }
}

/* Botones de MILO con el estilo de Zenly (las pantallas viven dentro de .zen) */
.zen .btn:not([class*="btn-"]) { font-size: 13.5px; padding: 9px 16px; border: 1px solid var(--brd); background: var(--card); color: var(--t2); }
.zen .btn:not([class*="btn-"]):hover { border-color: var(--pl); color: var(--t); }
.zen .btn.primary { background: linear-gradient(135deg, var(--p), var(--pd, #2d4ecc)); color: #fff; border: 0; box-shadow: 0 4px 14px rgba(67, 97, 238, .4); }
.zen .btn.primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(67, 97, 238, .5); }
.zen .btn.danger { background: rgba(239, 68, 68, .12); color: var(--red); border: 1px solid rgba(239, 68, 68, .25); }
.zen .btn.block { width: 100%; justify-content: center; padding: 12px; }
.btn.round, .zen .btn.round { width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 0; justify-content: center; background: linear-gradient(135deg, #b25cff, var(--p)); color: #fff; box-shadow: 0 0 16px -2px rgba(178, 92, 255, .8); display: inline-flex; align-items: center; }
/* Tarjetas de MILO con el borde y brillo de Zenly */
.zen .card { border-radius: 14px; }
.zen .card.top-bar { border-top: 1px solid var(--brd); position: relative; overflow: hidden; }
.zen .card.top-bar::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--c, var(--p)), #8b5cf6); box-shadow: 0 0 14px var(--c, var(--p)); }

/* ── Secciones (Tareas, Recordatorios, Listas, Notas, Hábitos, Ajustes) con los componentes de Zenly ── */
/* Tarjetas = bloques .dash-w del Dashboard */
.zen .card { background: var(--card); border: 1px solid var(--brd); border-radius: 14px; padding: 18px; margin-bottom: 14px; transition: border-color .25s, box-shadow .3s; }
@media (hover: hover) and (pointer: fine) { .zen .card:hover { border-color: color-mix(in srgb, var(--c, var(--p)) 45%, var(--brd)); box-shadow: 0 0 26px -12px var(--c, var(--p)); } }
.zen .card h3 { font-size: 14px; font-weight: 700; margin: 0 0 12px; display: flex; align-items: center; gap: 7px; }
.zen .card h3 .i { width: 16px; height: 16px; color: var(--c, var(--p)); filter: drop-shadow(0 0 5px color-mix(in srgb, var(--c, var(--p)) 60%, transparent)); }
.zen .card h3 .more { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--pl); text-decoration: none; }
/* Pestañas = .inc-tabs de Zenly con el brillo morado-azul en la activa */
.zen .pills { display: inline-flex; gap: 0; padding: 3px; background: var(--card); border: 1px solid var(--brd); border-radius: 10px; margin-bottom: 16px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.zen .pills::-webkit-scrollbar { display: none; }
.zen .pills button { position: relative; padding: 7px 18px; border-radius: 7px; border: 1px solid transparent; background: none; color: var(--t3); font-size: 12.5px; font-weight: 600; white-space: nowrap; transition: color .15s, background .26s, box-shadow .26s; }
.zen .pills button:hover { color: var(--t2); }
.zen .pills button.on { color: var(--t); background: linear-gradient(135deg, rgba(177, 77, 255, .28), rgba(30, 167, 255, .28)); border-color: rgba(177, 77, 255, .45); box-shadow: 0 2px 10px rgba(177, 77, 255, .22); }
@media (max-width: 600px) { .zen .pills { display: flex; } .zen .pills button { flex: 1; padding: 8px 10px !important; font-size: 12.5px !important; } }
/* Filas = filas .ai del Dashboard: al pasar, brillo del color de la sección y barra a la izquierda */
.zen .row { border-bottom: 0; border-top: 1px solid var(--brd); border-radius: 10px; padding: 11px 8px; margin: 0 -8px; transition: background .25s, box-shadow .3s; }
.zen .row:first-child, .zen h3 + .row, .zen .add-line + .row { border-top: 0; }
@media (hover: hover) and (pointer: fine) { .zen .row.tap:hover, .zen .row:hover { background: color-mix(in srgb, var(--c, var(--p)) 9%, transparent); box-shadow: inset 3px 0 0 var(--c, var(--p)), 0 0 22px -10px var(--c, var(--p)); } }
.zen .row .title { font-size: 13.5px; font-weight: 650; }
.zen .row .meta { font-size: 11.5px; color: var(--t3); }
.zen .row .time { font-weight: 700; color: var(--t2); }
/* Etiquetas = .badge de Zenly */
.zen .tag { font-size: 10.5px; font-weight: 600; padding: 2px 9px; border-radius: 20px; }
/* Casillas con brillo al marcar */
.zen .check.on { box-shadow: 0 0 12px -2px var(--c, var(--p)); }
.zen .check { transition: transform .45s var(--u2-spring, ease), background .2s, box-shadow .3s; }
.zen .check:active { transform: scale(.85); }
/* Chips */
.zen .chip { border-radius: 20px; font-weight: 600; font-size: 12.5px; padding: 6px 12px; transition: border-color .2s, box-shadow .25s, transform .3s var(--u2-spring, ease); }
.zen .chip:hover { border-color: var(--pl); color: var(--t); }
.zen .chip.on { box-shadow: 0 0 16px -6px var(--c, var(--p)); }
/* Campos = .fi de Zenly */
.zen input[type=text], .zen input[type=email], .zen input[type=password], .zen input[type=number], .zen input[type=date], .zen input[type=time], .zen select, .zen textarea,
.sheet input[type=text], .sheet input[type=number], .sheet input[type=date], .sheet input[type=time], .sheet select, .sheet textarea { background: var(--bg3); border: 1px solid var(--brd); border-radius: 9px; color: var(--t); font-size: 16px; padding: 10px 12px; }
.zen input:focus, .zen select:focus, .zen textarea:focus, .sheet input:focus, .sheet select:focus, .sheet textarea:focus { border-color: var(--pl); box-shadow: 0 0 0 3px rgba(67, 97, 238, .15); }
.zen .field label, .sheet .field label { font-size: 11px; font-weight: 600; color: var(--t3); text-transform: uppercase; letter-spacing: .5px; }
/* Ventana para crear y editar = .modal de Zenly */
.sheet-bg { background: rgba(0, 0, 0, .72); backdrop-filter: blur(5px); }
.sheet { background: var(--bg2); border: 1px solid var(--brd); box-shadow: var(--sh, 0 8px 32px rgba(67, 97, 238, .2)); animation: zsu .22s ease; }
.sheet .head h2 { font-size: 16px; font-weight: 700; }
.sheet .head .icon-btn { background: var(--card2); width: 30px; height: 30px; border-radius: 8px; }
.sheet .actions { border-top: 1px solid var(--brd); padding-top: 16px; margin-top: 14px; }
.sheet .btn { border-radius: 9px; padding: 9px 16px; font-weight: 600; font-size: 13.5px; }
.sheet .btn.primary { background: linear-gradient(135deg, var(--p), var(--pd, #2d4ecc)); border: 0; color: #fff; box-shadow: 0 4px 14px rgba(67, 97, 238, .4); }
.sheet .btn.danger { background: rgba(239, 68, 68, .12); color: var(--red); border: 1px solid rgba(239, 68, 68, .25); }
.sheet .chip.day-chip.on { background: linear-gradient(135deg, rgba(245, 158, 11, .35), rgba(249, 115, 22, .25)); border-color: rgba(245, 158, 11, .6); color: var(--t); }
/* Pantallas vacías con MILO */
.zen .empty::before { content: ''; display: block; width: 62px; height: 56px; margin: 0 auto 10px; background: url(/brand/mascot.png) center / contain no-repeat; filter: drop-shadow(0 8px 18px rgba(178, 92, 255, .45)); animation: milo-bob 3.2s ease-in-out infinite; }
.zen .empty > .i { display: none; }
@keyframes milo-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-5px) rotate(-3deg); } }
@media (prefers-reduced-motion: reduce) { .zen .empty::before { animation: none; } }
/* Notas como tarjetas que se elevan */
.zen .grid2 > .card.tap { cursor: pointer; transition: transform .45s var(--u2-spring, ease), border-color .25s, box-shadow .3s; }
.zen .grid2 > .card.tap:hover { transform: translateY(-3px); }
/* Hábitos: celdas de la semana con brillo */
.zen .hweek .cell.full { box-shadow: 0 0 12px -2px var(--c); }
.zen .counter.met { box-shadow: 0 0 14px -4px var(--c); }
/* Entrada suave de las secciones */
.zen > div > .card, .zen > div > .grid2, .zen > div > .pills { animation: u2enter .55s var(--u2-out, ease) both; }
.zen > div > .card:nth-of-type(2) { animation-delay: .05s; } .zen > div > .card:nth-of-type(3) { animation-delay: .1s; } .zen > div > .card:nth-of-type(4) { animation-delay: .15s; }
@keyframes u2enter { from { opacity: 0; transform: translateY(14px) scale(.99); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .zen > div > .card, .zen > div > .grid2, .zen > div > .pills { animation: none; } }
