/* Mi Espacio — identidad visual: tu día como un cielo.
   Tinta índigo, papel frío, y los colores del cielo (amanecer, día, tarde, noche). */
/* Banderas en emoji también en Windows (Twemoji Country Flags, CC-BY 4.0 Twitter; solo cubre las banderas). */
@font-face { font-family: 'Banderas'; src: url(fonts/flags.woff2) format('woff2'); unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E007F; font-display: swap; }
@font-face { font-family: 'Bricolage'; src: url(fonts/bricolage.woff2) format('woff2'); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url(fonts/figtree.woff2) format('woff2'); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url(fonts/figtree-italic.woff2) format('woff2'); font-weight: 300 900; font-style: italic; font-display: swap; }

:root {
  --bg: #F4F6FB; --card: #FFFFFF; --ink: #1B1F3B; --muted: #6B7090; --line: #E3E7F2;
  --accent: #2FA98C; --accent-soft: #DDF3EC; --warm: #D9822B; --warm-soft: #FDEEDC;
  --blue: #5B8DEF; --blue-soft: #E4ECFD; --lilac: #9B7BEA; --lilac-soft: #EFEAFD; --peach: #FFB38A;
  --bar: #D5DAEA; --shadow: 0 1px 2px rgba(27, 31, 59, .05), 0 8px 24px rgba(27, 31, 59, .06);
  --display: 'Banderas', 'Bricolage', 'Figtree', system-ui, sans-serif; --body: 'Banderas', 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0F1220; --card: #181C2E; --ink: #E9EBF5; --muted: #9097B5; --line: #272C44;
  --accent: #4CC7A6; --accent-soft: #173A33; --warm: #F0A45A; --warm-soft: #3A2A1A;
  --blue: #86A9F5; --blue-soft: #1D2A48; --lilac: #B7A0F5; --lilac-soft: #2A2346; --bar: #333A58; --shadow: none;
} }
:root[data-theme="dark"] {
  --bg: #0F1220; --card: #181C2E; --ink: #E9EBF5; --muted: #9097B5; --line: #272C44;
  --accent: #4CC7A6; --accent-soft: #173A33; --warm: #F0A45A; --warm-soft: #3A2A1A;
  --blue: #86A9F5; --blue-soft: #1D2A48; --lilac: #B7A0F5; --lilac-soft: #2A2346; --bar: #333A58; --shadow: none;
}
html, body { font-family: var(--body); }
h1, h2, .big, .kpi b, .lockbox h2 { font-family: var(--display); letter-spacing: -.015em; }
.card { border-radius: 20px; }
button { border-radius: 12px; }
button.primary { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.homebtn { width: 38px; height: 38px; padding: 0; font-size: 22px; line-height: 1; border-radius: 50%; }

/* ---------- modo hub: sin la cabecera ni la barra de Mi Dinero ---------- */
body.hubmode .wrap { max-width: 1120px; padding: 0 0 110px; }
body.hubmode .wrap > header, body.hubmode nav#nav { display: none !important; }
.hubnav { position: fixed; left: 50%; right: auto; bottom: calc(12px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 20; width: max-content; justify-content: center;
  display: flex; gap: 4px; padding: 6px; border-radius: 22px; background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(15, 18, 32, .16); }
.hubnav button { flex: none; white-space: nowrap; border: 0; background: none; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 11px; font-weight: 600; padding: 7px 14px; border-radius: 16px; min-width: 64px; }
.hubnav button b { font-family: var(--display); font-size: 19px; line-height: 1; font-weight: 600; }
.hubnav button.on { background: var(--ink); color: var(--bg); }

.hub { padding: 12px 16px 0; }
.hub-sec { margin: 26px 0 0; }
.hub-h { font-size: 13px; font-family: var(--body); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px 2px; }

/* ---------- el cielo ---------- */
.sky { position: relative; border-radius: 28px; padding: 18px 20px 16px; overflow: hidden; color: var(--sky-ink); isolation: isolate; }
.sky::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 85% 110%, rgba(255, 255, 255, .28), transparent 60%); }
.sky-dawn { --sky-ink: #3A2530; --arc: rgba(58, 37, 48, .35); --arc-done: #3A2530; background: linear-gradient(165deg, #FFE3CF 0%, #FFB38A 48%, #D9B8F2 100%); }
.sky-day { --sky-ink: #0F2350; --arc: rgba(15, 35, 80, .28); --arc-done: #0F2350; background: linear-gradient(165deg, #E4EEFF 0%, #A9C6FA 50%, #6E9BF0 100%); }
.sky-dusk { --sky-ink: #FFF6F0; --arc: rgba(255, 246, 240, .4); --arc-done: #FFF6F0; background: linear-gradient(165deg, #FFB38A 0%, #C58BD9 48%, #5E4FB8 100%); }
.sky-night { --sky-ink: #EDEBFF; --arc: rgba(237, 235, 255, .3); --arc-done: #EDEBFF; background: linear-gradient(165deg, #3A3F80 0%, #1F2350 55%, #121530 100%); }
.sky-night::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .6;
  background-image: radial-gradient(1.5px 1.5px at 12% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 38% 12%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 64% 30%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 82% 14%, #fff 50%, transparent 51%), radial-gradient(1.4px 1.4px at 90% 42%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 22% 48%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 52% 8%, #fff 50%, transparent 51%); }
.sky-top { display: flex; justify-content: space-between; align-items: center; }
.sky-hi { font-weight: 600; opacity: .85; }
.sky-gear { background: rgba(255, 255, 255, .22); border: 0; width: 38px; height: 38px; padding: 0; border-radius: 50%; }
.sky-grid { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 8px 24px; margin-top: 4px; }
.sky-wd { font-family: var(--display); font-size: 22px; font-weight: 600; }
.sky-num { font-family: var(--display); font-weight: 800; font-size: clamp(96px, 16vw, 150px); line-height: .82; letter-spacing: -.05em; font-variation-settings: 'opsz' 96; margin: 4px 0 6px -4px; }
.sky-mo { font-size: 16px; font-weight: 600; opacity: .85; font-variant-numeric: tabular-nums; }
.sky-arc { min-width: 0; text-align: center; }
.arc { width: 100%; max-width: 380px; height: auto; display: block; margin: 0 auto; overflow: visible; }
.arc-track { fill: none; stroke: var(--arc); stroke-width: 2; stroke-dasharray: 2 5; stroke-linecap: round; }
.arc-done { fill: none; stroke: var(--arc-done); stroke-width: 2.5; stroke-linecap: round; opacity: .85; }
.arc-tick { stroke: var(--arc); stroke-width: 1.5; }
.arc-lbl { fill: var(--sky-ink); font-size: 11px; font-weight: 600; text-anchor: middle; opacity: .7; font-family: var(--body); }
.arc-horizon { stroke: var(--arc); stroke-width: 1; }
.arc-ev { stroke: #fff; stroke-width: 2.5; }
.sun { fill: #FFF3C4; stroke: #FFD36E; stroke-width: 2; }
.sun-glow { fill: #FFE08A; opacity: .9; animation: glow 4s ease-in-out infinite; }
.arc-moon { fill: var(--sky-ink); font-size: 34px; }
@keyframes glow { 50% { opacity: .45; } }
.sky-next { font-size: 14px; margin-top: 2px; opacity: .95; }
.sky-acts { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.sky-acts button { background: rgba(255, 255, 255, .28); border: 1px solid rgba(255, 255, 255, .35); color: inherit; font-weight: 600; padding: 9px 14px; border-radius: 999px; backdrop-filter: blur(6px); }
.sky-acts button:hover { background: rgba(255, 255, 255, .4); }
@media (max-width: 640px) {
  .sky-grid { grid-template-columns: 1fr; }
  .sky-date { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
  .sky-num { font-size: 84px; margin: 0; order: -1; }
  .sky-wd { font-size: 20px; }
  .sky-mo { width: 100%; margin-top: -4px; }
}

/* ---------- listas de un día ---------- */
.day-list { display: flex; flex-direction: column; gap: 6px; }
.di { display: grid; grid-template-columns: 74px 4px 1fr; align-items: center; gap: 12px; text-align: left; width: 100%; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; padding: 11px 14px; font: inherit; color: inherit; cursor: pointer; }
.di:hover { border-color: var(--c); }
.di-time { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 14px; color: var(--muted); }
.di-bar { width: 4px; height: 22px; border-radius: 4px; background: var(--c); }
.di-t { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.di-t small { font-weight: 400; color: var(--muted); }
.di-pay { background: transparent; border-style: dashed; }
.di-pay .di-t { font-weight: 500; color: var(--muted); }
.empty-day { padding: 18px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); text-align: center; }
/* Botones de texto: nunca subrayados ni azules. Un botón suave, redondo, del color del texto. */
.link { display: inline-flex; align-items: center; gap: 6px; border: 0; background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); padding: 6px 12px; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: .94em; line-height: 1.2; text-decoration: none; cursor: pointer; vertical-align: baseline; transition: background .15s; }
.link:hover { background: color-mix(in srgb, var(--ink) 11%, transparent); }
.link.small { font-size: 13px; padding: 5px 11px; }

/* ---------- apartados ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 720px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; min-height: 132px; padding: 16px;
  border-radius: 22px; border: 1px solid var(--line); background: var(--card); color: inherit; font: inherit; cursor: pointer; overflow: hidden;
  animation: rise .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 45ms); transition: transform .15s ease, box-shadow .15s ease; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.tile:active { transform: scale(.98); }
.tile-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 20px; margin-bottom: 6px; background: var(--tc-soft); color: var(--tc); }
.tile-lb { font-family: var(--display); font-weight: 700; font-size: 18px; }
.tile-bd { display: flex; flex-direction: column; font-size: 13.5px; color: var(--muted); line-height: 1.35; }
.tile-big { font-family: var(--display); font-size: 26px; color: var(--ink); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.tile-money { --tc: var(--accent); --tc-soft: var(--accent-soft); }
.tile-cal { --tc: var(--blue); --tc-soft: var(--blue-soft); }
.tile-tasks { --tc: var(--ink); --tc-soft: var(--line); }
.tile-diary { --tc: var(--lilac); --tc-soft: var(--lilac-soft); }
.tile-pages { --tc: var(--warm); --tc-soft: var(--warm-soft); }
.tile-prev { --tc: var(--blue); --tc-soft: var(--lilac-soft); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

.agenda { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.ag-row { display: flex; gap: 14px; align-items: center; text-align: left; padding: 12px 16px; border: 0; border-bottom: 1px solid var(--line); background: none; color: inherit; font: inherit; border-radius: 0; cursor: pointer; }
.ag-row:last-child { border-bottom: 0; }
.ag-row:hover { background: var(--bg); }
.ag-date { display: flex; flex-direction: column; align-items: center; width: 40px; flex: none; }
.ag-date b { font-family: var(--display); font-size: 22px; line-height: 1; }
.ag-date small { color: var(--muted); text-transform: uppercase; font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.ag-items { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ag-it { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.ag-it i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.pages-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.pg-chip { display: flex; align-items: center; gap: 8px; white-space: nowrap; padding: 10px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-weight: 600; }

/* ---------- calendario ---------- */
.cal-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; padding: 10px 2px 14px; }
.cal-year { font-weight: 700; color: var(--muted); letter-spacing: .08em; font-size: 13px; }
.cal-month { font-size: clamp(40px, 7vw, 64px); line-height: .95; margin: 0; font-weight: 800; letter-spacing: -.035em; }
.cal-ctrl { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.icon-btn { width: 38px; height: 38px; padding: 0; font-size: 20px; border-radius: 50%; }
.pill-btn { border-radius: 999px; font-weight: 600; }
.seg2 { display: flex; background: var(--line); border-radius: 999px; padding: 3px; margin-right: 4px; }
.seg2 button { border: 0; background: none; padding: 6px 14px; border-radius: 999px; font-weight: 600; color: var(--muted); }
.seg2 button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.cal-day { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 18px; position: sticky; top: 12px; }
.cd-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.cd-num { font-family: var(--display); font-weight: 800; font-size: 52px; line-height: .9; letter-spacing: -.04em; }
.cd-wd { font-family: var(--display); font-weight: 700; font-size: 20px; }
.cal-day .di { background: var(--bg); border-color: transparent; }
.cd-spent { width: 100%; margin-top: 10px; text-align: left; background: var(--accent-soft); border: 0; color: var(--ink); }
.add-line { width: 100%; margin-top: 10px; border: 1px dashed var(--line); background: none; color: var(--muted); font-weight: 600; padding: 12px; }
.add-line:hover { color: var(--ink); border-color: var(--ink); }
.agenda-full { display: flex; flex-direction: column; gap: 18px; max-width: 720px; }
.ag-day { display: flex; flex-direction: column; gap: 6px; }
.ag-dh { display: flex; align-items: baseline; gap: 10px; }
.ag-dh b { font-family: var(--display); font-size: 30px; font-weight: 800; line-height: 1; }
.ag-dh span { color: var(--muted); font-weight: 600; }
.ag-dh.is-today b { color: var(--blue); }

/* ---------- hoja de evento ---------- */
.sheet-veil { position: fixed; inset: 0; z-index: 80; background: rgba(15, 18, 32, .45); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s ease both; }
.sheet { width: 100%; max-width: 560px; background: var(--card); border-radius: 26px 26px 0 0; padding: 10px 20px calc(20px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(0, 0, 0, .2); animation: up .22s cubic-bezier(.2, .8, .2, 1) both; max-height: 92vh; overflow: auto; }
@media (min-width: 700px) { .sheet-veil { align-items: center; } .sheet { border-radius: 26px; } }
.sheet-grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 12px; }
.sheet-title { width: 100%; border: 0; background: none; font-family: var(--display); font-size: 26px; font-weight: 700; padding: 6px 0 10px; outline: none; }
.sheet-title.shake { animation: shake .35s; }
.ev-cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.ev-cats button { display: flex; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 12px; font-weight: 600; font-size: 13px; }
.ev-cats button i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.ev-cats button.on { background: color-mix(in srgb, var(--c) 18%, var(--card)); border-color: var(--c); }
.ev-row { display: flex; gap: 12px; align-items: flex-end; margin-bottom: 12px; flex-wrap: wrap; }
.ev-row label, .ev-notes { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); flex: 1; min-width: 130px; }
.ev-row input, .ev-row select, .ev-notes textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; width: 100%; }
.ev-notes textarea { resize: vertical; }
.ev-sw { flex-direction: row !important; align-items: center; gap: 8px !important; color: var(--ink) !important; font-weight: 600; padding-bottom: 10px; }
.sheet-acts { display: flex; gap: 8px; margin-top: 16px; align-items: center; }
.danger { color: #D2554A; border-color: transparent; background: none; font-weight: 600; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

/* ---------- cuaderno, rediseñado ---------- */
.nb-top { background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 0; padding: 12px 16px; }
.nb-top b { font-family: var(--display); font-size: 18px; }
.nb-side { border-right: 0; background: var(--card); border-radius: 0 22px 22px 0; padding: 14px 10px; }
.nb-side-top input { border-radius: 12px; background: var(--bg); border-color: transparent; padding: 10px 12px; }
.nb-link { font-weight: 600; padding: 8px 10px; border-radius: 10px; }
.nb-row { border-radius: 10px; padding: 1px 0; }
.nb-row a { font-weight: 500; }
.nb-row.on { background: var(--lilac-soft); }
.nb-row.on a { font-weight: 700; }
.nb-page { max-width: 740px; }
.nb-cover { height: 150px; margin: 0 -16px; border-radius: 0 0 28px 28px; background: var(--cover); position: relative; }
@media (min-width: 821px) { .nb-cover { margin: 0; border-radius: 26px; } }
.nb-page.has-cover .nb-headrow { margin-top: -40px; position: relative; }
.nb-icon { font-size: 54px; background: var(--card); border-radius: 22px; width: 84px; height: 84px; display: grid; place-items: center; box-shadow: var(--shadow); border: 1px solid var(--line); }
.nb-title { font-family: var(--display); font-weight: 800; font-size: 42px; letter-spacing: -.03em; margin: 14px 0 18px; }
.nb-crumbs { font-weight: 600; margin-bottom: 8px; }
.blk-h1 .nb-txt, .blk-h2 .nb-txt, .blk-h3 .nb-txt { font-family: var(--display); letter-spacing: -.015em; }
.blk-h2 .nb-txt { font-size: 23px; }
.nb-txt { font-size: 16px; line-height: 1.6; }
.blk-todo input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; border-radius: 7px; border: 2px solid var(--bar); margin-top: 5px; cursor: pointer; display: grid; place-items: center; background: var(--card); }
.blk-todo input:checked { background: var(--accent); border-color: var(--accent); }
.blk-todo input:checked::after { content: '✓'; color: #fff; font-size: 13px; font-weight: 800; }
.blk-quote .nb-txt { border-left: 3px solid var(--lilac); font-size: 18px; font-style: italic; }
.blk-callout { background: var(--lilac-soft); border-radius: 16px; }
.blk-page a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--bg); width: 100%; }
.blk-page a u { text-decoration: none; font-weight: 700; }
.blk-page { padding-right: 0; }
.nb-card { border-radius: 18px; padding: 14px; gap: 6px; position: relative; overflow: hidden; }
.nb-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--cover, var(--line)); }
.nb-hello { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 6vw, 52px); letter-spacing: -.035em; line-height: 1; margin: 10px 0 4px; }
.nb-pop { border-radius: 16px; }

/* ---- Cuaderno: inicio con apuntar, diario de un minuto, listas y notas ---- */
.nb-home { padding-bottom: 20px; }
.nb-sub { color: var(--muted); margin: 6px 0 18px; font-size: 15px; }
.nb-cap { display: flex; align-items: center; gap: 8px; background: var(--card); border-radius: 20px; padding: 6px 6px 6px 18px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.nb-cap:focus-within { border-color: var(--ink); }
.nb-cap input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 17px; padding: 10px 0; outline: none; color: var(--ink); }
.nb-cap button { width: 42px; height: 42px; border-radius: 14px; border: 0; background: var(--ink); color: var(--bg); font-size: 18px; font-weight: 700; flex: none; }
.nb-capto { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 2px 0; }
.nb-capto:empty { margin: 0; }
.nb-to { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 5px 11px; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); }
.nb-to.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.nb-to small { font-weight: 500; opacity: .75; }
.nb-sec2 { margin-top: 30px; }
.nb-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.nb-h h2 { font-family: var(--display); font-size: 22px; font-weight: 700; margin: 0; letter-spacing: -.02em; text-transform: none; color: var(--ink); }
.nb-empty { color: var(--muted); font-size: 14px; margin: 0 0 10px; }

.nb-diary { background: linear-gradient(160deg, var(--lilac-soft), color-mix(in srgb, var(--peach) 22%, var(--card))); border-radius: 26px; padding: 18px 18px 14px; }
.nb-mood-q { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -.02em; display: flex; flex-direction: column; gap: 2px; }
.nb-mood-q small { font-family: var(--body); font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.nb-faces { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 14px 0 10px; }
.nb-faces button { display: flex; flex-direction: column; align-items: center; gap: 2px; border: 0; border-radius: 16px; background: color-mix(in srgb, var(--card) 55%, transparent); padding: 8px 0 6px; font: inherit; color: var(--muted); transition: transform .15s, background .15s; }
.nb-faces button span { font-size: 30px; line-height: 1.1; filter: grayscale(.55); opacity: .75; transition: filter .15s, opacity .15s; }
.nb-faces button small { font-size: 11px; font-weight: 600; }
.nb-faces button:hover span { filter: none; opacity: 1; }
.nb-faces button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); transform: translateY(-2px); }
.nb-faces button.on span { filter: none; opacity: 1; }
.nb-mood.in-page { margin: -4px 0 14px; }
.nb-mood.in-page .nb-faces { margin-top: 0; max-width: 420px; }
.nb-mood.in-page .nb-faces button { background: var(--bg); }
.nb-good { width: 100%; border: 0; border-radius: 14px; background: color-mix(in srgb, var(--card) 80%, transparent); padding: 12px 14px; font: inherit; font-size: 15px; color: var(--ink); }
.nb-mood.in-page .nb-good { background: var(--bg); max-width: 560px; }
.nb-diary-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.nb-week { display: flex; gap: 4px; }
.nb-week button { display: flex; flex-direction: column; align-items: center; width: 34px; border: 0; background: none; padding: 2px 0; border-radius: 10px; font: inherit; color: var(--muted); }
.nb-week button small { font-size: 10px; font-weight: 700; text-transform: uppercase; }
.nb-week button span { font-size: 18px; line-height: 1.3; min-height: 24px; }
.nb-week button.today { background: color-mix(in srgb, var(--card) 70%, transparent); color: var(--ink); }
.nb-memo { display: block; width: 100%; text-align: left; border: 0; margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, var(--card) 60%, transparent); font: inherit; font-size: 14px; color: var(--ink); }
.nb-memo small { display: block; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

.nb-lists { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.nb-list { display: flex; flex-direction: column; gap: 6px; background: var(--card); border-radius: 20px; padding: 14px 14px 10px; box-shadow: var(--shadow); border-top: 4px solid var(--lc, var(--line)); }
.nb-lh { display: flex; align-items: center; gap: 8px; }
.nb-ln { flex: 1; display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 0; font: inherit; font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--ink); text-align: left; }
.nb-li { font-size: 20px; }
.nb-lc { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: color-mix(in srgb, var(--lc) 16%, var(--card)); color: var(--ink); font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.nb-lul { list-style: none; margin: 2px 0 0; padding: 0; }
.nb-lul li { transition: opacity .5s; }
.nb-lul li.bye { opacity: .35; }
.nb-lul li.bye span { text-decoration: line-through; }
.nb-lul label { display: flex; align-items: flex-start; gap: 10px; padding: 5px 0; font-size: 15px; line-height: 1.35; cursor: pointer; }
.nb-lul input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border-radius: 7px; border: 2px solid color-mix(in srgb, var(--lc) 60%, var(--line)); display: grid; place-items: center; background: none; }
.nb-lul input:checked { background: var(--lc); border-color: var(--lc); }
.nb-lul input:checked::after { content: '✓'; color: #fff; font-size: 12px; font-weight: 800; }
.nb-lhint { color: var(--muted); font-size: 13px; margin: 0; line-height: 1.4; }
.nb-ladd { border: 0; border-top: 1px dashed var(--line); background: none; padding: 9px 0 3px; font: inherit; font-size: 14px; color: var(--ink); outline: none; margin-top: auto; border-radius: 0; }
.nb-ladd::placeholder { color: var(--muted); }
.nb-ldone { align-self: flex-start; color: var(--muted); font-weight: 500; font-size: 12px; }
.nb-lnew { box-shadow: none; background: none; border: 2px dashed var(--line); justify-content: center; cursor: text; }
.nb-lnew span { font-family: var(--display); font-weight: 700; color: var(--muted); }
.nb-lnew input { border: 0; background: none; font: inherit; font-size: 14px; padding: 6px 0; outline: none; color: var(--ink); }

.nb-notes { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.nb-note { display: flex; flex-direction: column; gap: 4px; text-align: left; border: 0; border-radius: 16px; padding: 12px 14px; background: color-mix(in srgb, #F7C873 18%, var(--card)); font: inherit; color: var(--ink); min-height: 84px; }
.nb-note b { font-size: 15px; line-height: 1.3; }
.nb-note span { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nb-note small { margin-top: auto; font-size: 11px; color: var(--muted); font-weight: 600; }
.nb-tpls { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.nb-tpl { border: 1px dashed var(--line); background: none; border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); }
.nb-tpl:hover { border-color: var(--ink); }
@media (max-width: 520px) { .nb-lists { grid-template-columns: 1fr; } .nb-faces button span { font-size: 26px; } .nb-cap input { font-size: 16px; } }

@media (prefers-reduced-motion: reduce) { .tile, .sheet, .sheet-veil, .sun-glow { animation: none !important; } .tile { transition: none; } }
.ev-row input[type=checkbox] { width: 20px; height: 20px; padding: 0; flex: none; accent-color: var(--ink); }
.ev-row .ev-sw { flex: 0 0 auto; min-width: 0; }

/* ---------- Apple ---------- */
.cal-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 4px 4px 2px; }
.ap-bar { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.ap-bar .pill-btn { padding: 5px 12px; font-size: 13px; }
.di-src { font-weight: 500; color: var(--muted); }
.di-apple .di-bar { background: repeating-linear-gradient(180deg, var(--c) 0 4px, transparent 4px 7px); }
.hub-hrow { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.hub-hrow .hub-h { margin: 0 0 0 2px; }
.hub-hrow .pill-btn { padding: 6px 12px; font-size: 13px; }
.ap-status { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 18px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.ap-status.ok { border-color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 60%, var(--card)); }
.ap-status b { font-family: var(--display); font-size: 20px; }
.ap-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 6px 18px; }
.ap-card p { margin: 10px 0; }
.ap-step { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ap-step:last-child { border-bottom: 0; }
.ap-n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-family: var(--display); font-weight: 700; }
.ap-body { color: var(--muted); margin-top: 3px; line-height: 1.55; }
.ap-body b, .ap-body i { color: var(--ink); }
.ap-code { display: inline-block; margin: 6px 0; padding: 6px 10px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); color: var(--ink); font-size: 13px; word-break: break-all; user-select: all; }
.ev-apple { margin-top: 12px; color: var(--ink); font-weight: 600; font-size: 14px; display: flex; gap: 8px; align-items: center; }
.ev-apple input { width: 20px; height: 20px; accent-color: var(--ink); }

/* ---------- horario de trabajo ---------- */
.arc-work { fill: none; stroke: var(--sky-ink); stroke-width: 9; stroke-linecap: round; opacity: .16; }
.sky-work { font-size: 14px; font-weight: 700; margin-top: 2px; }
.mode-chips { display: inline-flex; gap: 4px; margin-top: 10px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .22); }
.mode-chips button { border: 0; background: none; color: inherit; font-weight: 600; font-size: 13px; padding: 6px 11px; border-radius: 999px; }
.mode-chips button.on { background: rgba(255, 255, 255, .85); color: #1B1F3B; }
.mode-chips.compact { background: var(--bg); margin: 0 0 12px; }
.mode-chips.compact button.on { background: var(--ink); color: var(--bg); }
.work-line { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-size: 14px; margin: -4px 0 8px; }
.work-line.off { color: var(--muted); }
.ev-clash { color: var(--warm); font-size: 13px; font-weight: 600; margin: -4px 0 10px; min-height: 0; }
.ev-clash:empty { display: none; }
.work-setup { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 18px; border-radius: 22px; background: var(--card); border: 1px dashed var(--bar); }
.work-setup b { font-family: var(--display); font-size: 17px; }
.work-grid { display: flex; flex-direction: column; }
.wg-row { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--line); }
.wg-row:last-child { border-bottom: 0; }
.wg-day { width: 110px; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.wg-t { display: inline-flex; align-items: center; gap: 6px; }
.wg-t input { padding: 5px 6px; width: auto; }
.wg-t.dim { opacity: .4; }

/* ---------- calendario (estilo Notion Calendar) ---------- */
:root { --now: #EF5B4C; --now-soft: #FDE8E5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --now: #FF7A6B; --now-soft: #3B2120; } }
:root[data-theme="dark"] { --now: #FF7A6B; --now-soft: #3B2120; }
body.hubmode .wrap:has(.cx) { max-width: 1480px; }
.cx { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 22px; align-items: start; }
.cx-main { min-width: 0; }
.cx-side { position: sticky; top: 12px; max-height: calc(100dvh - 24px); overflow: auto; scrollbar-width: none; padding: 8px 2px 24px; }
@media (max-width: 1439px) { .cx { grid-template-columns: minmax(0, 1fr); } .cx-side { display: none; } }
@media (min-width: 1440px) { .cx-sidebtn { display: none; } }
.cx-head { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; padding: 8px 2px 14px; }
.cx-title { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.cx-title h1 { margin: 0; font-size: clamp(30px, 4vw, 42px); font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.cx-title span { color: var(--muted); font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cx-ctrl { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.cx-arrows { display: flex; }
.cx-arrows .icon-btn { border: 0; background: none; font-size: 24px; color: var(--ink); }
.cx-arrows .icon-btn:hover, .icon-btn.sm:hover { background: var(--line); }
.icon-btn.sm { width: 28px; height: 28px; font-size: 17px; border: 0; background: none; color: var(--ink); }
.seg2 button:focus-visible, .icon-btn:focus-visible, .pill-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (max-width: 759px) {
  .cx-head { padding-top: 4px; }
  .cx-ctrl { width: 100%; }
  .cx-ctrl .seg2 { order: 10; width: 100%; margin: 4px 0 0; }
  .cx-ctrl .seg2 button { flex: 1; padding: 7px 4px; }
  .cx-ctrl [data-palette] { display: none; }
  .cx-ctrl .primary { margin-left: auto; }
  .hide-sm { display: none; }
}

/* rejilla de horas */
.tg { position: relative; overflow: auto; height: clamp(440px, calc(100dvh - 230px), 1700px); background: var(--card); border: 1px solid var(--line); border-radius: 18px; overscroll-behavior: contain; scrollbar-width: thin; }
.tg-row { display: grid; grid-template-columns: 58px repeat(var(--n), minmax(0, 1fr)); }
.tg-top { position: sticky; top: 0; z-index: 6; background: var(--card); box-shadow: 0 1px 0 var(--line), 0 6px 14px -12px rgba(15, 18, 32, .25); }
.tg-gut { font-size: 10.5px; color: var(--muted); font-weight: 600; text-align: right; padding: 0 8px; display: flex; align-items: center; justify-content: flex-end; line-height: 1.1; }
.tg-wk { font-weight: 800; letter-spacing: .04em; }
.tg-dh { border: 0; background: none; border-radius: 0; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 2px 6px; color: var(--muted); font: inherit; cursor: pointer; min-width: 0; }
.tg-wd { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.tg-dn { font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--ink); width: 38px; height: 36px; display: grid; place-items: center; border-radius: 12px; line-height: 1; transition: background .12s; }
.tg-dh:hover .tg-dn { background: var(--bg); }
.tg-dh.is-hol .tg-dn, .tg-dh.is-hol .tg-wd { color: var(--now); }
.tg-dh.is-today .tg-wd { color: var(--now); }
.tg-dh.is-today .tg-dn { background: var(--now); color: #fff; }
.wx { font-size: 11.5px; font-weight: 600; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tg-allrow { border-top: 1px solid var(--line); min-height: 30px; }
.tg-allrow .tg-gut { font-size: 9.5px; text-transform: uppercase; letter-spacing: .04em; text-align: right; }
.tg-ac { border-left: 1px solid var(--line); padding: 3px; display: flex; flex-direction: column; gap: 2px; min-width: 0; cursor: copy; }
.chip { display: block; width: 100%; text-align: left; border: 0; font: inherit; font-size: 12px; font-weight: 650; line-height: 1.4; padding: 1px 7px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer;
  background: color-mix(in srgb, var(--c) 17%, var(--card)); color: color-mix(in srgb, var(--c) 58%, var(--ink)); }
.chip:hover { filter: brightness(.97); }
.chip.k-hol { background: var(--now-soft); color: var(--now); }
.chip.k-sen { background: none; color: var(--muted); font-weight: 600; padding-left: 3px; }
.chip.k-pay { background: none; color: var(--muted); font-weight: 500; box-shadow: inset 0 0 0 1px var(--line); }
.chip.k-rem { background: none; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 50%, transparent); }
.chip-ic { margin-right: 4px; }
.tg-more { border: 0; background: none; font-size: 11.5px; color: var(--muted); font-weight: 700; padding: 0 6px; text-align: left; }
.tg-inner { position: relative; background-image: repeating-linear-gradient(to bottom, transparent 0 calc(var(--hh) - 1px), var(--line) calc(var(--hh) - 1px) var(--hh)); }
.tg-hours { position: relative; background: var(--card); }
.tg-hours span { position: absolute; right: 8px; transform: translateY(-50%); font-size: 10.5px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.tg-nowlbl { position: absolute; right: 4px; transform: translateY(-50%); font-size: 10.5px; color: #fff; background: var(--now); padding: 2px 5px; border-radius: 6px; z-index: 3; font-variant-numeric: tabular-nums; }
.tg-col { position: relative; border-left: 1px solid var(--line); }
.tg-col.we { background: color-mix(in srgb, var(--bg) 60%, transparent); }
.tg-work { position: absolute; left: 0; right: 0; background: color-mix(in srgb, var(--blue) 6%, transparent); pointer-events: none; }
.tg-work span { position: absolute; top: 4px; right: 6px; font-size: 9.5px; font-weight: 800; color: color-mix(in srgb, var(--blue) 75%, var(--muted)); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.tg-night { position: absolute; left: 0; right: 0; background: color-mix(in srgb, var(--ink) 4%, transparent); pointer-events: none; }
.tg-now { position: absolute; left: -1px; right: 0; height: 2px; background: var(--now); z-index: 4; pointer-events: none; }
.tg-now::before { content: ''; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--now); }
.tg-ev { position: absolute; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; overflow: hidden; text-align: left; padding: 3px 7px 3px 9px; border: 0; border-radius: 7px; font: inherit; cursor: pointer;
  background: color-mix(in srgb, var(--c) 18%, var(--card)); color: color-mix(in srgb, var(--c) 52%, var(--ink)); box-shadow: inset 3px 0 0 var(--c), 0 0 0 1px var(--card); transition: box-shadow .12s; }
.tg-ev b { font-size: 12.5px; font-weight: 700; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; max-width: 100%; }
.tg-when { font-size: 11px; font-weight: 600; opacity: .85; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tg-ev.mid b { -webkit-line-clamp: 1; }
.tg-ev.short { flex-direction: row; align-items: center; gap: 6px; padding-top: 0; padding-bottom: 0; }
.tg-ev.short b { display: block; white-space: nowrap; text-overflow: ellipsis; flex: 0 1 auto; min-width: 2em; }
.tg-ev.short .tg-when { flex: 0 100 auto; min-width: 0; overflow: hidden; }
.tg-ev:hover { box-shadow: inset 3px 0 0 var(--c), 0 0 0 1px var(--card), 0 6px 16px rgba(15, 18, 32, .16); z-index: 3; }
.tg-ev.k-apple { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 13%, var(--card)) 0 6px, color-mix(in srgb, var(--c) 20%, var(--card)) 6px 12px); }
.tg-ev.k-rem { background: var(--card); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 55%, transparent); }
.tg-ev[data-drag] { cursor: grab; }
.tg-rs { position: absolute; left: 0; right: 0; bottom: 0; height: 7px; cursor: ns-resize; }
.tg-rs::after { content: ''; position: absolute; left: 50%; bottom: 2px; width: 18px; height: 3px; margin-left: -9px; border-radius: 2px; background: var(--c); opacity: 0; transition: opacity .12s; }
.tg-ev:hover .tg-rs::after { opacity: .6; }
body.tg-dragging, body.tg-dragging * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }
.tg-ghost { position: absolute; left: 2px; right: 4px; z-index: 5; border-radius: 7px; background: color-mix(in srgb, var(--ink) 10%, transparent); border: 1.5px dashed var(--ink); font-size: 11.5px; font-weight: 700; padding: 3px 7px; pointer-events: none; font-variant-numeric: tabular-nums; }
@media (max-width: 759px) {
  .tg { height: calc(100dvh - 250px); min-height: 440px; border-radius: 16px; }
  .tg-row { grid-template-columns: 42px repeat(var(--n), minmax(0, 1fr)); }
  .tg-hours span { font-size: 9.5px; right: 4px; }
  .tg-gut { padding: 0 4px; font-size: 9px; }
  .tg-dn { font-size: 19px; width: 34px; height: 32px; }
}

/* día elegido al lado del mes o del día */
.cx-month { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
@media (max-width: 979px) { .cx-month { grid-template-columns: minmax(0, 1fr); } .cx-dayview .tg { height: 62vh; } }
.cd-meta { flex: 1; min-width: 0; }
.cd-wx { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.cd-wx span { font-size: 26px; }
.cd-wx b { font-family: var(--display); font-size: 20px; }
.cd-wx small { color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.cd-note { font-size: 13.5px; padding: 9px 12px; border-radius: 12px; background: var(--bg); margin-bottom: 8px; line-height: 1.45; }
.cd-note.hol { background: var(--now-soft); color: color-mix(in srgb, var(--now) 70%, var(--ink)); }
.cd-note.tip { background: var(--warm-soft); }
.cd-sun { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: 13px; font-weight: 600; margin: 2px 0 12px; font-variant-numeric: tabular-nums; }

/* mes */
.mg-wrap { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.mg-wd { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.mg-wd span { padding: 9px 10px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.mg { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: minmax(122px, auto); }
.mc { position: relative; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4px 4px 6px; min-width: 0; display: flex; flex-direction: column; gap: 3px; cursor: default; transition: background .12s; }
.mc:nth-child(7n) { border-right: 0; }
.mc:nth-last-child(-n+7) { border-bottom: 0; }
.mc.we { background: color-mix(in srgb, var(--bg) 60%, transparent); }
.mc.is-hol { background: color-mix(in srgb, var(--now) 6%, var(--card)); }
.mc.out > * { opacity: .42; }
.mc.is-sel { box-shadow: inset 0 0 0 2px var(--ink); }
.mc-top { display: flex; align-items: center; gap: 4px; min-height: 26px; }
.mc-n { border: 0; background: none; font: inherit; font-family: var(--display); font-weight: 700; font-size: 14px; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 9px; color: var(--ink); cursor: pointer; white-space: nowrap; }
.mc-n:hover { background: var(--bg); }
.mc.is-hol .mc-n { color: var(--now); }
.mc.is-today .mc-n { background: var(--now); color: #fff; }
.mc-wx { margin-left: auto; font-size: 11px; }
.mc-mode { font-size: 12px; }
.mc-evs { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mc-it.t { display: flex; align-items: center; gap: 5px; width: 100%; border: 0; background: none; font: inherit; font-size: 12px; font-weight: 650; color: var(--ink); padding: 1px 4px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-align: left; cursor: pointer; }
.mc-it.t i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.mc-tm { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.mc-it.t:hover { background: var(--bg); }
.mc-more { font-size: 11px; color: var(--muted); font-weight: 700; padding-left: 5px; }
.mc-dots { display: none; }
@media (max-width: 759px) {
  .mg-wd span { padding: 7px 0; text-align: center; }
  .mg { grid-auto-rows: 62px; }
  .mc { align-items: center; padding: 5px 1px; cursor: pointer; }
  .mc-top { justify-content: center; min-height: 28px; }
  .mc-wx, .mc-evs { display: none; }
  .mc-n { pointer-events: none; font-size: 15px; }
  .mc-mode { position: absolute; top: 2px; right: 3px; font-size: 9px; }
  .mc-dots { display: flex; gap: 3px; justify-content: center; flex-wrap: wrap; }
  .mc-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
  .mc-dots i.pay, .mc-dots i.sen { background: none; box-shadow: inset 0 0 0 1.5px var(--c); }
}

/* agenda */
.agenda-full { display: flex; flex-direction: column; gap: 22px; max-width: 780px; }
.ag-day .ag-dh { display: flex; align-items: center; gap: 12px; border: 0; background: none; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; margin-bottom: 8px; width: 100%; }
.ag-day .ag-dh b { font-family: var(--display); font-size: 34px; font-weight: 800; line-height: 1; width: 48px; color: var(--ink); }
.ag-day .ag-dh span { display: flex; flex-direction: column; font-weight: 700; color: var(--ink); }
.ag-day .ag-dh small { color: var(--muted); font-weight: 600; }
.ag-day.is-today .ag-dh b { color: var(--now); }
.ag-wx { margin-left: auto; font-size: 13px; }
@media (min-width: 640px) { .ag-day .day-list { padding-left: 60px; } }
.di-hol { background: var(--now-soft); border-color: transparent; }
.di-hol .di-t { color: color-mix(in srgb, var(--now) 70%, var(--ink)); }
.di-sen { background: transparent; border-style: dashed; }
.di-sen .di-t { font-weight: 500; }

/* barra lateral */
.side-in { display: flex; flex-direction: column; gap: 20px; }
.qa-in { width: 100%; font: inherit; font-size: 14px; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.qa-in:focus { outline: none; border-color: var(--ink); }
.qa-hint { font-size: 12px; color: var(--muted); margin: 6px 4px 0; min-height: 16px; line-height: 1.35; }
.qa-hint.on { color: var(--ink); font-weight: 600; }
.mini-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; padding-left: 6px; }
.mini-h b { font-family: var(--display); font-size: 15px; }
.mini-g { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 1px; text-align: center; }
.mini-g > span { font-size: 10.5px; font-weight: 700; color: var(--muted); padding: 4px 0; }
.mini-d { border: 0; background: none; font: inherit; font-size: 12.5px; font-weight: 600; height: 30px; border-radius: 0; padding: 0; color: var(--ink); position: relative; font-variant-numeric: tabular-nums; }
.mini-d.out { color: var(--muted); opacity: .55; }
.mini-d.in-view { background: var(--line); }
.mini-d.is-hol { color: var(--now); }
.mini-d.busy::after { content: ''; position: absolute; bottom: 3px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; opacity: .45; }
.mini-d:hover { background: var(--line); border-radius: 9px; }
.mini-d.is-sel { background: var(--ink); color: var(--bg); border-radius: 9px; }
.mini-d.is-today { background: var(--now); color: #fff; border-radius: 9px; }
.side-sec h3 { font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px 6px; font-family: var(--body); }
.lay { display: flex; align-items: center; gap: 10px; padding: 5px 6px; border-radius: 10px; font-size: 14px; font-weight: 500; cursor: pointer; }
.lay:hover { background: var(--card); }
.lay input { appearance: none; -webkit-appearance: none; width: 16px; height: 16px; min-width: 16px; border-radius: 5px; border: 2px solid var(--c); margin: 0; display: grid; place-items: center; cursor: pointer; background: none; padding: 0; }
.lay input:checked { background: var(--c); }
.lay input:checked::after { content: '✓'; color: #fff; font-size: 10px; font-weight: 900; line-height: 1; }
.lay-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2px 10px; }
.side-hol { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; border: 0; background: none; padding: 7px 6px; border-radius: 12px; font: inherit; color: inherit; cursor: pointer; }
.side-hol:hover { background: var(--card); }
.sh-d { display: flex; flex-direction: column; align-items: center; width: 38px; flex: none; padding: 5px 0 4px; border-radius: 10px; background: var(--now-soft); color: var(--now); }
.sh-d b { font-family: var(--display); font-size: 17px; line-height: 1; }
.sh-d small { font-size: 10px; font-weight: 800; text-transform: uppercase; }
.sh-t { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.sh-t b { font-size: 13.5px; }
.sh-t small { font-size: 12px; color: var(--muted); line-height: 1.35; }
.vac { font-size: 13.5px; padding: 0 6px; line-height: 1.5; }
.vac > b:first-child { font-family: var(--display); font-size: 24px; margin-right: 2px; }
.side-sheet { max-width: 440px; }
.side-sheet .side-in { margin: 4px 0 6px; }

/* ---------- inicio: tiempo, sol, apuntar escribiendo, tu semana, lo que se viene ---------- */
.sky-tools { display: flex; gap: 8px; align-items: center; }
.sky-wx { display: flex; align-items: center; gap: 6px; font-size: 17px; padding: 4px 12px; height: 38px; border-radius: 999px; background: rgba(255, 255, 255, .22); white-space: nowrap; }
.sky-wx b { font-family: var(--display); font-size: 18px; }
.sky-wx small { font-size: 12px; font-weight: 600; opacity: .8; }
.sky-gear { font-size: 18px; color: inherit; }
.sky-hol { margin-top: 10px; font-weight: 700; font-size: 14px; padding: 5px 12px; background: rgba(255, 255, 255, .3); border-radius: 999px; display: inline-block; }
.arc-night { fill: none; stroke: var(--sky-ink); stroke-width: 2.5; opacity: .2; stroke-linecap: round; }
.arc-sunmk { fill: var(--sky-ink); opacity: .6; }
.arc-sunic.ico { width: 16px; height: 16px; color: var(--sky-ink); opacity: .8; }
.moon { fill: #F4F1FF; }
.moon-glow { fill: #B9B2FF; opacity: .45; }
.sky-qa { flex: 1 1 300px; display: flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .34); border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px; padding: 0 8px 0 14px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); cursor: text; }
.sky-qa span { font-weight: 800; opacity: .75; }
.sky-qa input { flex: 1; min-width: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 600; padding: 10px 4px; outline: none; box-shadow: none; }
.sky-qa input::placeholder { color: inherit; opacity: .62; }
.sky-qa:focus-within { background: rgba(255, 255, 255, .5); }
.sky-qah { font-size: 13px; font-weight: 700; margin: 8px 6px 0; }
.sky-qah:empty { display: none; }
.hub-tip { font-size: 14px; padding: 10px 14px; border-radius: 14px; background: var(--blue-soft); margin-bottom: 8px; }
.wstrip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.ws-d { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 2px 8px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); font: inherit; color: inherit; cursor: pointer; min-width: 0; transition: transform .15s ease, box-shadow .15s ease; }
.ws-d:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.ws-wd { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ws-n { font-family: var(--display); font-size: 24px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.ws-wx { font-size: 15px; display: flex; align-items: baseline; gap: 2px; min-height: 20px; }
.ws-wx small { font-size: 11px; font-weight: 700; color: var(--muted); }
.ws-dots { display: flex; gap: 3px; min-height: 6px; }
.ws-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.ws-tag { font-size: 12px; min-height: 16px; line-height: 16px; }
.ws-d.we:not(.is-today) { background: color-mix(in srgb, var(--card) 55%, var(--bg)); }
.ws-d.is-hol .ws-n { color: var(--now); }
.ws-d.is-today { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ws-d.is-today .ws-wd, .ws-d.is-today .ws-wx small { color: inherit; opacity: .75; }
.ws-d.is-today .ws-dots i { box-shadow: 0 0 0 1.5px var(--ink); }
@media (max-width: 480px) { .wstrip { gap: 4px; } .ws-d { border-radius: 14px; padding: 8px 0 6px; } .ws-n { font-size: 20px; } .ws-wx small { display: none; } }
.sv-row { display: flex; gap: 10px; overflow-x: auto; padding: 2px 16px 8px; margin: 0 -16px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.sv-row::-webkit-scrollbar { display: none; }
.sv { flex: 0 0 236px; scroll-snap-align: start; scroll-margin-left: 16px; display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 14px 16px 14px 18px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); font: inherit; color: inherit; cursor: pointer; position: relative; overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.sv:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.sv::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--c); }
.sv-n { font-size: 13px; font-weight: 700; color: var(--c); }
.sv-n b { font-family: var(--display); font-size: 30px; font-weight: 800; letter-spacing: -.03em; margin-right: 2px; color: var(--ink); }
.sv-t { font-family: var(--display); font-weight: 700; font-size: 16.5px; line-height: 1.2; }
.sv-d { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.sv-s { font-size: 12.5px; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sv-s b { color: var(--ink); }
@media (max-width: 640px) { .mode-chips button:not(.on) span { display: none; } }

/* ---------- avisos ---------- */
#toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 120; display: flex; flex-direction: column; gap: 8px; align-items: center; width: min(560px, calc(100% - 24px)); pointer-events: none; }
body:not(.hubmode) #toasts { bottom: calc(24px + env(safe-area-inset-bottom)); }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 6px; background: var(--ink); color: var(--bg); padding: 10px 10px 10px 16px; border-radius: 16px; box-shadow: 0 12px 34px rgba(15, 18, 32, .3); font-size: 14px; font-weight: 600; animation: up .22s cubic-bezier(.2, .8, .2, 1) both; white-space: pre-line; max-width: 100%; transition: opacity .25s, transform .25s; }
.toast-t { flex: 1; min-width: 0; padding: 3px 0; }
.toast button { border: 0; background: color-mix(in srgb, var(--bg) 18%, transparent); color: var(--bg); font-weight: 700; padding: 6px 12px; border-radius: 10px; flex: none; }
.toast.out { opacity: 0; transform: translateY(8px); }

/* ---------- buscador ---------- */
.sheet-veil.pal-veil { align-items: flex-start; padding-top: 12vh; }
.pal { width: min(640px, calc(100% - 24px)); background: var(--card); border-radius: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); overflow: hidden; animation: up .18s both; border: 1px solid var(--line); }
.pal-in { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.pal-in span { font-size: 22px; color: var(--muted); }
.pal-in input { flex: 1; border: 0; background: none; font: inherit; font-size: 18px; color: var(--ink); outline: none; padding: 4px 0; box-shadow: none; }
.pal-list { max-height: 52vh; overflow: auto; padding: 6px; }
.pal-it { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 2px 10px; width: 100%; text-align: left; border: 0; background: none; padding: 9px 12px; border-radius: 12px; font: inherit; color: inherit; cursor: pointer; }
.pal-it.on { background: var(--bg); }
.pal-ic { text-align: center; font-size: 16px; }
.pal-t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal-s { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.pal-empty { padding: 20px; text-align: center; color: var(--muted); }
.pal-foot { display: flex; gap: 16px; padding: 9px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
kbd { font-family: var(--body); font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); margin-right: 3px; color: var(--ink); }
@media (max-width: 640px) { .sheet-veil.pal-veil { padding-top: 10px; } .pal-foot { display: none; } .pal-it { grid-template-columns: 28px minmax(0, 1fr); } .pal-s { grid-column: 2; max-width: none; } }
.kb-list { display: flex; flex-direction: column; gap: 10px; }
.kb-list div { display: flex; gap: 12px; align-items: center; }
.kb-list kbd { min-width: 120px; text-align: center; padding: 5px 8px; font-size: 12px; }
.hubnav-s { color: var(--muted); }

/* ---------- ficha de evento ---------- */
.ev-hint { font-size: 13px; font-weight: 700; color: var(--lilac); margin: -6px 0 10px; }
.ev-hint:empty { display: none; }
.ev-hint.idle { color: var(--muted); font-weight: 500; }
.dur-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: -4px 0 12px; }
.dur-chips button { padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.dur-chips button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ev-notes { margin-bottom: 12px; }
.ev-notes input { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; width: 100%; }
.ev-loc { display: flex; gap: 8px; align-items: center; }
.ev-loc input { flex: 1; min-width: 0; }
.ev-loc a { white-space: nowrap; text-decoration: none; padding: 9px 12px; color: var(--ink); border: 1px solid var(--line); background: var(--card); }
.ev-extras { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.ev-extras .ev-sw { padding-bottom: 4px; font-size: 14px; display: flex; }
.ev-extras input { width: 20px; height: 20px; accent-color: var(--ink); margin: 0; }
.ev-more { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.ev-more button { font-weight: 600; font-size: 13.5px; border-radius: 999px; }
.di-when { color: var(--muted); font-weight: 600; margin: 2px 0 6px; }
.di-h { margin: 6px 0 6px; font-size: 24px; }
@media (prefers-reduced-motion: reduce) { .toast, .pal, .ws-d, .sv { animation: none !important; transition: none !important; } }

/* ---------- tus otras apps ---------- */
.ax { display: flex; flex-direction: column; gap: 6px; margin: 0 0 12px; }
.ax-row { display: flex; gap: 10px 16px; align-items: flex-start; flex-wrap: wrap; padding: 10px 12px; border-radius: 14px; background: var(--bg); color: inherit; text-decoration: none; font-size: 13.5px; line-height: 1.35; }
.ax-big .ax-row { background: var(--card); border: 1px solid var(--line); padding: 12px 14px; font-size: 14.5px; }
a.ax-row:hover { border-color: var(--ink); }
.ax-row > span:not(.ax-ic) { display: flex; flex-direction: column; flex: 1 1 180px; min-width: 0; font-weight: 600; }
.ax-row small { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 2px; }
.ax-ic { font-size: 20px; line-height: 1.2; flex: none; }
.ax-piso > span:not(.ax-ic) { gap: 6px; }
.ax-task { display: flex; align-items: center; gap: 8px; text-align: left; border: 1px solid var(--line); background: var(--bg); border-radius: 12px; padding: 7px 10px; font: inherit; font-weight: 600; color: inherit; cursor: pointer; }
.ax-big .ax-task { background: var(--bg); }
.ax-task i { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 2px solid var(--bar); display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 900; color: #fff; }
.ax-task.done { color: var(--muted); }
.ax-task.done i { background: var(--accent); border-color: var(--accent); }
.ax-set { display: flex; flex-direction: column; gap: 14px; }
.ax-set > div { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.ax-set > div:last-child { border-bottom: 0; padding-bottom: 0; }
.ax-set b { display: block; font-family: var(--display); font-size: 16px; }
.ax-st { font-size: 13px; color: var(--muted); font-weight: 600; }
.ax-st.ok { color: var(--accent); }
.chip.k-app { background: color-mix(in srgb, var(--c) 12%, var(--card)); }
.tg-ev.k-app { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 10%, var(--card)) 0 5px, color-mix(in srgb, var(--c) 16%, var(--card)) 5px 10px); box-shadow: inset 3px 0 0 var(--c), 0 0 0 1px var(--card); }
.di-app { background: transparent; border-style: dashed; }
@media (max-width: 480px) { .sky-wx small { display: none; } .sky-wx { padding: 4px 10px; } .sky-hi { white-space: nowrap; } }

/* ---------- Mi Dinero con la misma piel que el resto ---------- */
nav#nav { left: 8px; right: 8px; bottom: calc(10px + env(safe-area-inset-bottom)); max-width: 780px; margin: 0 auto; padding: 5px; border: 1px solid var(--line); border-radius: 22px;
  background: color-mix(in srgb, var(--card) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 10px 30px rgba(15, 18, 32, .16); }
nav#nav button { border-radius: 16px; padding: 6px 2px 5px; font-weight: 600; font-size: 10.5px; }
nav#nav button.on { background: var(--ink); color: var(--bg); }
body:not(.hubmode) .wrap { padding-bottom: 110px; }
body:not(.hubmode) .wrap > header { position: sticky; top: 0; z-index: 4; margin: 0 -16px 14px; padding: 10px 16px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
body:not(.hubmode) .wrap > header h1 { font-size: 26px; font-weight: 800; letter-spacing: -.03em; margin: 0; }
body:not(.hubmode) .wrap > header h1 { white-space: nowrap; }
body:not(.hubmode) #btnImport { border-radius: 999px; padding: 9px 14px; font-weight: 700; white-space: nowrap; }
body:not(.hubmode) #btnCfg { font-size: 17px; }

/* ---------- tal día como hoy ---------- */
.ef { display: flex; flex-direction: column; gap: 6px; }
.ef-row { display: flex; gap: 12px; align-items: center; padding: 11px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: inherit; text-decoration: none; font-size: 14px; line-height: 1.4; }
a.ef-row:hover { border-color: var(--ink); }
.ef-row.mine { border-color: color-mix(in srgb, var(--lilac) 55%, var(--line)); background: color-mix(in srgb, var(--lilac-soft) 60%, var(--card)); }
.ef-ic { font-size: 18px; flex: none; }
.ef-t { flex: 1; min-width: 0; font-weight: 600; }
.ef-t small { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 1px; }
.ef-row.mine .ef-t small { color: var(--lilac); }
.ef-img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: none; background: var(--line); }
.ef-days { font-size: 13.5px; color: var(--muted); font-weight: 600; padding: 4px 4px 0; }
.ef-sub { font-size: 15px; margin: 14px 0 8px; }
.cd-ef { margin-top: 14px; }
.cd-ef-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; font-size: 13px; }
.cd-ef .ef-row { background: var(--bg); border-color: transparent; padding: 9px 12px; font-size: 13px; }
.cd-ef .ef-img { width: 36px; height: 36px; }
.mode-chips.compact button:not(.on) span { display: none; }
.mode-chips.compact { flex-wrap: wrap; }

/* ---------- Barcelona ---------- */
.tile-city { --tc: var(--warm); --tc-soft: var(--warm-soft); }
.pl-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.pl { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px 16px 14px 18px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.pl::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--c); }
.pl h3 { text-transform: none; color: var(--ink); margin: 2px 0 0; font-family: var(--display); font-size: 19px; letter-spacing: -.015em; line-height: 1.15; }
.pl p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.pl-top { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pl-tipo { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: color-mix(in srgb, var(--c) 70%, var(--ink)); }
.pl-free, .pl-now { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.pl-now { background: var(--now-soft); color: var(--now); }
.pl-when { font-weight: 700; font-size: 14px; }
.pl-when i { font-weight: 500; color: var(--muted); }
.pl-where { font-size: 13px; color: var(--muted); font-weight: 600; }
.pl-acts { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.pl-acts .pill-btn { padding: 6px 12px; font-size: 13px; text-decoration: none; color: var(--ink); }
.fx { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; margin-bottom: 12px; }
.fx-it { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: color-mix(in srgb, var(--c) 9%, var(--card)); border: 1px solid color-mix(in srgb, var(--c) 25%, var(--line)); }
.fx-it > span { font-size: 22px; line-height: 1.1; }
.fx-it b { font-size: 14.5px; }
.fx-it small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.4; margin-top: 2px; }
.fx-it b + small { display: inline; margin-left: 4px; font-weight: 700; color: var(--ink); }
.fx-it b + small + small, .fx-it b + small:last-child { display: block; margin-left: 0; font-weight: 500; color: var(--muted); }
.ag-chips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.ag-chips button { flex: none; border-radius: 999px; padding: 7px 13px; font-weight: 600; font-size: 13px; white-space: nowrap; }
.ag-chips button small { color: var(--muted); font-weight: 700; margin-left: 2px; }
.ag-chips button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ag-chips button.on small { color: inherit; opacity: .7; }
.ag-list { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.ag-list .ag-it { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.ag-list .ag-it:last-child { border-bottom: 0; }
.ag-t { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 13px; color: var(--muted); text-align: center; line-height: 1.25; }
.ag-b a { color: inherit; text-decoration: none; }
.ag-b a:hover b { text-decoration: underline; }
.ag-b b { font-size: 14px; font-weight: 650; line-height: 1.3; display: block; }
.ag-b small { color: var(--muted); font-size: 12.5px; }
.ag-b .pl-free { font-size: 10.5px; padding: 1px 7px; }
.ag-list .ag-it .icon-btn.sm { border: 1px solid var(--line); background: var(--bg); }
.chip.k-plan { background: color-mix(in srgb, var(--c) 14%, var(--card)); }
.di-plan { background: transparent; border-style: dashed; }
.ag-dayh { padding: 10px 14px 6px; font-family: var(--display); font-weight: 800; font-size: 15px; background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; }

/* Tus otras apps (inicio) */
.al-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.al { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; border-left: 4px solid var(--c); }
.al-ic { font-size: 24px; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 16%, var(--card)); flex: none; }
.al-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.al-t b { font-family: var(--display); font-size: 16px; }
.al-t small { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al-go { color: var(--muted); font-weight: 700; }
.al:hover { transform: translateY(-1px); }

/* Mientras arranca: el esqueleto del inicio en vez de la cabecera de Mi Dinero */
.boot { display: flex; flex-direction: column; gap: 14px; padding-top: 16px; }
.boot-sky { height: min(330px, 52vh); border-radius: 28px; background: linear-gradient(165deg, #E4EEFF 0%, #A9C6FA 50%, #6E9BF0 100%); opacity: .55; animation: bootp 1.2s ease-in-out infinite alternate; }
.boot-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.boot-row i { height: 110px; border-radius: 22px; background: var(--card); animation: bootp 1.2s ease-in-out infinite alternate; }
@keyframes bootp { from { opacity: .45; } to { opacity: .8; } }
@media (prefers-reduced-motion: reduce) { .boot-sky, .boot-row i { animation: none; } }
.nb-top .homebtn { flex: none; }

/* Iconos de línea (iconos.js) */
.ico { width: 1.15em; height: 1.15em; vertical-align: -.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; color: var(--it, currentColor); }
.ico.fill { fill: currentColor; }
.hubnav .ico, .sky .ico, .primary .ico, .chip .ico, .mc .ico, .tg .ico, .nb-to.on .ico, .tile-ic .ico, .homebtn .ico, .toast .ico, .sky-acts .ico { color: currentColor; }
.hubnav b .ico { width: 22px; height: 22px; vertical-align: 0; }
.tile-ic .ico { width: 22px; height: 22px; vertical-align: 0; }
.nb-faces .ico { width: 30px; height: 30px; stroke-width: 1.7; }
.nb-faces button:nth-child(1) { --mc: #8A93B8; } .nb-faces button:nth-child(2) { --mc: #9B7BEA; } .nb-faces button:nth-child(3) { --mc: #5B8DEF; } .nb-faces button:nth-child(4) { --mc: #2FA98C; } .nb-faces button:nth-child(5) { --mc: #F2A93B; }
.nb-faces button span { filter: none; opacity: 1; color: var(--muted); }
.nb-faces button:hover span, .nb-faces button.on span { color: var(--mc); }
.nb-faces button.on .ico { stroke-width: 2.2; }
.nb-icon .ico { width: 50px; height: 50px; stroke-width: 1.5; color: var(--ink); }
.nb-week .ico { width: 18px; height: 18px; }
.nb-li .ico, .al-ic .ico { width: 22px; height: 22px; vertical-align: -.25em; }
.nb-list .nb-li { color: var(--lc); } .nb-list .nb-li .ico { color: currentColor; }
.ef-ic .ico { width: 20px; height: 20px; }
@media (max-width: 520px) { .nb-faces .ico { width: 26px; height: 26px; } }

/* Tu año, tu semana, novedades, guardar/compartir */
.yr { display: flex; flex-direction: column; gap: 3px; margin: 10px 0 12px; }
.yr-row { display: grid; grid-template-columns: 16px repeat(31, 1fr); gap: 3px; align-items: center; }
.yr-m { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.yr-row i { aspect-ratio: 1; border-radius: 3px; background: var(--mc, var(--line)); cursor: default; }
.yr-row i[data-yopen] { cursor: pointer; }
.yr-row i.yr-f { opacity: .35; } .yr-row i.yr-x { visibility: hidden; } .yr-row i.yr-t { outline: 2px solid var(--ink); outline-offset: 1px; }
.yr-leg { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--muted); }
.yr-leg span { display: inline-flex; align-items: center; gap: 5px; } .yr-leg i { width: 11px; height: 11px; border-radius: 3px; background: var(--mc); } .yr-leg b { color: var(--ink); }
.yr-goods { display: flex; flex-direction: column; gap: 6px; }
.yr-goods button { text-align: left; border: 0; background: var(--bg); border-radius: 12px; padding: 8px 12px; font: inherit; font-size: 14px; color: var(--ink); }
.yr-goods small { display: block; font-size: 11px; color: var(--muted); font-weight: 700; }
.wk-card { background: var(--card); border-radius: 22px; padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.wk-moods { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.wk-moods span { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--mc, var(--muted)); }
.wk-moods small { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.wk-moods .ico { width: 26px; height: 26px; color: var(--mc); }
.wk-moods i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); margin: 9px 0; }
.wk-bits { display: flex; flex-wrap: wrap; gap: 6px; }
.wk-bits span { background: var(--bg); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; }
.wk-goods { font-size: 15px; display: flex; flex-direction: column; gap: 4px; }
.wk-goods small { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.nov { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.nov-it { display: flex; gap: 12px; align-items: flex-start; }
.nov-it > span { width: 40px; height: 40px; border-radius: 13px; background: var(--lilac-soft); color: var(--lilac); display: grid; place-items: center; flex: none; }
.nov-it > span .ico { width: 22px; height: 22px; }
.nov-it b { display: block; font-family: var(--display); font-size: 16px; } .nov-it small { color: var(--muted); font-size: 14px; }
.nb-dlinks { display: flex; gap: 14px; }
.pl-hint { background: var(--lilac-soft); border-radius: 12px; padding: 6px 10px; font-size: 13px; font-weight: 600; }
.pl-acts { flex-wrap: wrap; }
.icon-btn.sm .ico { width: 16px; height: 16px; vertical-align: -.15em; }
.ag-list .ag-it.mine { background: var(--lilac-soft); border-radius: 12px; }
.ag-mine { background: linear-gradient(160deg, var(--lilac-soft), var(--card)); border-radius: 18px; padding: 12px 14px; margin: 0 0 12px; display: flex; flex-direction: column; gap: 6px; }
.ag-mine a { color: var(--ink); text-decoration: none; font-weight: 600; }
.ag-mine small { color: var(--muted); font-weight: 500; }

@media (max-width: 400px) { .hubnav { gap: 2px; padding: 5px; } .hubnav button { min-width: 0; padding: 7px 10px; } }

.nb-lul li { display: flex; align-items: flex-start; gap: 6px; } .nb-lul li label { flex: 1; min-width: 0; }
.nb-lul a { color: var(--blue); }
.nb-lact { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: var(--muted) !important; }
.nb-lact:hover { background: var(--bg); color: var(--ink) !important; }
.nb-lact .ico { width: 16px; height: 16px; }
.nb-lsh { border: 0; background: none; padding: 4px; color: var(--muted); border-radius: 8px; }
.nb-lsh .ico { width: 16px; height: 16px; }
.hub-mood { background: linear-gradient(160deg, var(--lilac-soft), var(--card)); border-radius: 20px; padding: 12px 14px 8px; margin-bottom: 12px; }
.hub-mood > span { font-family: var(--display); font-weight: 700; font-size: 17px; }
.hub-mood .nb-faces { margin: 8px 0 4px; }

/* Respirar */
.breath-veil { background: radial-gradient(circle at 50% 40%, #3A3F80, #121530 70%); align-items: center !important; }
.breath { display: flex; flex-direction: column; align-items: center; gap: 14px; color: #EDEBFF; text-align: center; padding: 24px; max-width: 420px; }
.br-circle { width: 220px; height: 220px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, rgba(255, 179, 138, .55), rgba(155, 123, 234, .25) 60%, transparent 72%); transform: scale(.55); transition-property: transform; transition-timing-function: ease-in-out; }
.br-circle span { width: 70px; height: 70px; border-radius: 50%; background: #FFB38A; box-shadow: 0 0 40px #FFB38A; }
.br-circle.in, .br-circle.hold { transform: scale(1); }
.br-circle.out { transform: scale(.55); }
.br-txt { font-family: var(--display); font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.br-sub { font-size: 14px; opacity: .75; min-height: 20px; }
.breath button { margin-top: 10px; border-radius: 999px; padding: 10px 22px; border: 1px solid rgba(237, 235, 255, .35); background: none; color: inherit; font: inherit; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .br-circle { transition: none !important; } }
.nb-breath { display: block; border: 0; background: color-mix(in srgb, var(--card) 70%, transparent); border-radius: 12px; padding: 8px 12px; margin: 0 0 10px; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); }
#netpill { position: fixed; top: calc(10px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 90; background: var(--ink); color: var(--bg); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow); white-space: nowrap; }

/* Tu finde */
.fd { background: var(--card); border-radius: 22px; padding: 14px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; border-left: 4px solid var(--warm); }
.fd-row { display: flex; flex-wrap: wrap; gap: 6px; }
.fd-wx { background: var(--bg); border-radius: 999px; padding: 5px 11px; font-size: 13px; font-weight: 600; }
.fd-it { font-size: 15px; line-height: 1.4; }
.fd-it.mine { background: var(--lilac-soft); border-radius: 12px; padding: 6px 10px; }
.fd-idea a { color: var(--blue); }

.vac2 { display: flex; flex-direction: column; gap: 6px; }
.vac2-big { display: flex; align-items: baseline; gap: 8px; }
.vac2-big b { font-family: var(--display); font-size: 40px; line-height: 1; letter-spacing: -.03em; }
.vac2.sm .vac2-big b { font-size: 28px; }
.vac2-bits { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; font-weight: 600; }
.vac2-bits i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; }
.vac-mark { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-top: 12px; }
.vac-mark label { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); gap: 2px; }

.nb-lchips { display: flex; flex-wrap: wrap; gap: 8px; }
.nb-lchip { display: inline-flex; align-items: center; gap: 8px; border: 0; background: var(--card); box-shadow: var(--shadow); border-radius: 14px; padding: 10px 14px; font: inherit; font-weight: 600; color: var(--ink); }
.nb-lchip .nb-li { color: var(--lc); font-size: 18px; } .nb-lchip .nb-li .ico { color: currentColor; width: 18px; height: 18px; }
.nb-lchip b { background: color-mix(in srgb, var(--lc) 16%, var(--card)); border-radius: 999px; padding: 1px 8px; font-size: 12px; }

/* ---- Tareas (estilo Recordatorios) ---- */
.tk { max-width: 720px; margin: 0 auto; padding-top: 12px; }
.tk-head h1, .tk-title { font-family: var(--display); font-weight: 800; font-size: 34px; letter-spacing: -.03em; margin: 6px 0 14px; }
.tk-title { color: var(--c); margin: 4px 0 12px; }
.tk-top { display: flex; align-items: baseline; justify-content: space-between; }
.tk-num { font-family: var(--display); font-size: 30px; font-weight: 700; }
.tk-smart { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tk-sc { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: center; gap: 6px 10px; text-align: left; border: 0; border-radius: 18px; padding: 12px 14px; background: var(--card); box-shadow: var(--shadow); font: inherit; color: var(--ink); }
.tk-sc-ic { width: 34px; height: 34px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; }
.tk-sc-ic .ico { width: 18px; height: 18px; color: #fff; }
.tk-sc b { justify-self: end; font-family: var(--display); font-size: 28px; line-height: 1; }
.tk-sc > span:last-child { grid-column: 1 / -1; font-weight: 700; color: var(--muted); font-size: 15px; }
.tk-sub { font-family: var(--display); font-size: 21px; font-weight: 700; margin: 24px 0 8px; text-transform: none; color: var(--ink); letter-spacing: -.02em; }
.tk-lists, .tk-card { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.tk-li { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: none; padding: 11px 14px; font: inherit; color: var(--ink); text-align: left; border-bottom: 1px solid var(--line); }
.tk-li:last-child { border-bottom: 0; }
.tk-li-ic { width: 32px; height: 32px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; flex: none; font-size: 16px; }
.tk-li-ic .ico { color: #fff; width: 17px; height: 17px; }
.tk-li-n { flex: 1; font-weight: 600; font-size: 16px; }
.tk-li-c { color: var(--muted); font-weight: 600; }
.tk-go { color: var(--muted); font-size: 20px; line-height: 1; }
.tk-addlist { display: flex; align-items: center; gap: 8px; margin: 12px 4px; color: var(--blue); font-weight: 600; }
.tk-addlist input { border: 0; background: none; font: inherit; font-weight: 600; color: var(--ink); outline: none; flex: 1; padding: 6px 0; }
.tk-addlist input::placeholder { color: var(--blue); }
.tk-foot { margin-top: 18px; }
.tk-back { border: 0; background: none; color: var(--blue); font: inherit; font-weight: 600; font-size: 16px; padding: 4px 0; }
.tk-row { display: flex; align-items: flex-start; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.tk-card > .tk-row:last-of-type { border-bottom: 0; }
.tk-chk { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--lc) 70%, var(--line)); background: none; padding: 0; display: grid; place-items: center; transition: background .2s; }
.tk-chk.ghost { border-style: dashed; border-color: var(--line); }
.tk-row.done .tk-chk { background: var(--lc); border-color: var(--lc); box-shadow: inset 0 0 0 3px var(--card); }
.tk-row.done .tk-t { color: var(--muted); }
.tk-row.tick { animation: tkfade .9s ease forwards; }
@keyframes tkfade { 0%, 60% { opacity: 1; } 100% { opacity: .35; } }
.tk-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; border: 0; background: none; padding: 0; text-align: left; font: inherit; color: var(--ink); }
.tk-t { font-size: 16px; line-height: 1.35; word-break: break-word; }
.tk-body small { color: var(--muted); font-size: 13px; }
.tk-late { color: var(--warm); font-weight: 600; }
.tk-flag { color: #F2A93B; } .tk-flag .ico { width: 16px; height: 16px; color: #F2A93B; }
.tk-new input { flex: 1; border: 0; background: none; font: inherit; font-size: 16px; outline: none; color: var(--ink); padding: 0; }
.tk-hint { padding: 0 14px 8px 48px; }
.tk-hint:empty { display: none; }
.tk-gh { font-family: var(--display); font-size: 18px; margin: 18px 4px 6px; text-transform: none; color: var(--ink); letter-spacing: -.01em; }
.tk-empty { color: var(--muted); padding: 14px; text-align: center; }
.tk-showdone { display: block; margin: 12px 4px; }
.tk-quick { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 10px; }
.tk-quick button { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); }
.tk-sheet textarea { width: 100%; margin: 6px 0 10px; }
.tk-apple { width: 100%; margin-top: 8px; }

/* Buscador */
.pal-x { display: none; border: 0; background: none; color: var(--blue); font: inherit; font-weight: 600; padding: 4px; }
.pal-sec { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 12px 10px 6px; }
.pal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 6px; }
.pal-grid button { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: var(--bg); border-radius: 16px; padding: 12px 4px; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); }
.pal-grid button span { width: 38px; height: 38px; border-radius: 12px; background: var(--c); display: grid; place-items: center; }
.pal-grid .ico { width: 20px; height: 20px; color: #fff; }
.pal-acts { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 6px; }
.pal-acts button { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.pal-tip { color: var(--muted); font-size: 13px; padding: 10px 10px 4px; margin: 0; }
.pal-list { max-height: 60vh; }
@media (max-width: 640px) {
  .sheet-veil.pal-veil { padding: 0; align-items: stretch; background: var(--bg); }
  .pal { width: 100%; max-width: none; height: 100dvh; border-radius: 0; box-shadow: none; background: var(--bg); display: flex; flex-direction: column; animation: none; }
  .pal-in { padding: calc(10px + env(safe-area-inset-top)) 14px 10px; background: var(--bg); border-bottom: 0; }
  .pal-in input { background: var(--card); border-radius: 12px; padding: 10px 12px; font-size: 17px; }
  .pal-in > span { display: none; }
  .pal-x { display: block; }
  .pal-list { max-height: none; flex: 1; padding: 0 8px calc(20px + env(safe-area-inset-bottom)); }
  .pal-it { background: var(--card); margin-bottom: 4px; border-radius: 14px; }
  .pal-grid button, .pal-acts button { background: var(--card); }
}

/* Calendario: barras de varios días y más legible */
.tg-spanrow { border-top: 1px solid var(--line); }
.tg-spans { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); grid-auto-flow: row dense; gap: 2px 0; padding: 3px 0; }
.chip.k-span { border-radius: 6px; margin: 0 3px; background: color-mix(in srgb, var(--c) 22%, var(--card)); box-shadow: inset 3px 0 0 var(--c); }
.chip.k-span.cl { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: 0; box-shadow: none; }
.chip.k-span.cr { border-top-right-radius: 0; border-bottom-right-radius: 0; margin-right: 0; }
.chip.k-ev { box-shadow: inset 3px 0 0 var(--c); }
.chip { font-size: 12.5px; padding: 2px 7px; }
.tg-dn { font-size: 22px; }
@media (max-width: 820px) {
  .mg { grid-auto-rows: 86px; }
  .mc { align-items: stretch; padding: 3px 1px; }
  .mc-top { min-height: 24px; }
  .mc-dots { flex-direction: column; flex-wrap: nowrap; gap: 2px; align-items: stretch; overflow: hidden; }
  .mc-bar { display: block; font-size: 9.5px; font-weight: 700; line-height: 1.35; padding: 0 3px; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: clip; background: color-mix(in srgb, var(--c) 20%, var(--card)); color: color-mix(in srgb, var(--c) 55%, var(--ink)); }
  .mc-bar .ico { display: none; }
  .mc-bar.k-sen, .mc-bar.k-rem, .mc-bar.k-task { background: none; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent); }
  .mc-bmore { font-size: 9px; font-weight: 700; color: var(--muted); padding-left: 3px; }
  .chip { font-size: 11.5px; padding: 2px 5px; }
  .chip-ic { display: none; }
}

.chip.k-span { width: auto; min-width: 0; background: color-mix(in srgb, var(--c) 11%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent); }
.chip.k-span.k-spev { background: color-mix(in srgb, var(--c) 24%, var(--card)); box-shadow: inset 3px 0 0 var(--c); }
.tg-spanrow .tg-gut .tg-more { padding: 0; font-size: 11px; }

/* Descubre */
.dsc { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
@media (max-width: 720px) { .dsc { grid-template-columns: 1fr; } }
.dsc-img { position: relative; display: block; border-radius: 22px; overflow: hidden; min-height: 190px; background: var(--line); color: #fff; text-decoration: none; }
.dsc-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dsc-img span { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); font-size: 13.5px; line-height: 1.35; font-weight: 600; }
.dsc-img small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.dsc-side { display: flex; flex-direction: column; gap: 10px; }
.dsc-it { display: flex; align-items: center; gap: 12px; text-align: left; border: 0; background: var(--card); box-shadow: var(--shadow); border-radius: 18px; padding: 12px 14px; font: inherit; color: var(--ink); text-decoration: none; flex: 1; }
.dsc-it small { display: block; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.dsc-it b { font-size: 15px; line-height: 1.3; }
.dsc-ic { width: 40px; height: 40px; border-radius: 13px; background: color-mix(in srgb, var(--c) 16%, var(--card)); color: var(--c); display: grid; place-items: center; flex: none; }
.dsc-ic .ico { width: 20px; height: 20px; }

button.al { border-top: 0; border-right: 0; border-bottom: 0; font: inherit; text-align: left; width: 100%; }

/* ---- Cuaderno limpio (sin portadas) ---- */
.nbh-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 16px; }
.nbh-top .nb-hello { margin: 0; }
.nbh-new { border-radius: 999px; padding: 10px 18px; font-weight: 700; }
.nb-home .nb-diary { background: var(--card); box-shadow: var(--shadow); border-radius: 22px; padding: 16px 16px 12px; margin-top: 22px; }
.nb-home .nb-faces button { background: var(--bg); }
.nb-home .nb-good { background: var(--bg); }
.nb-home .nb-memo { background: var(--bg); }
.nb-home .nb-week button.today { background: var(--bg); }
.nbh-q { display: flex; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; color: var(--muted); }
.nbh-q input { border: 0; background: none; font: inherit; font-size: 14px; outline: none; width: 130px; color: var(--ink); padding: 3px 0; }
.nbr-g { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 16px 4px 6px; }
.nbr-list { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.nbr { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 12px 14px; text-align: left; font: inherit; color: var(--ink); }
.nbr:last-child { border-bottom: 0; }
.nbr:hover { background: var(--bg); }
.nbr-ic { width: 36px; height: 36px; border-radius: 11px; background: var(--bg); display: grid; place-items: center; flex: none; color: var(--lilac); }
.nbr-ic .ico { width: 18px; height: 18px; }
.nbr-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nbr-b b { font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nbr-b small { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nbr-d { color: var(--ink); font-weight: 600; }
.nbr-pin { color: var(--muted); } .nbr-pin .ico { width: 15px; height: 15px; }
.nb-first { background: var(--card); border: 2px dashed var(--line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.nb-first span { color: var(--muted); font-size: 14px; }
.nb-doc { padding-top: 6px; }
.nbd-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.nbd-back { border: 0; background: none; color: var(--blue); font: inherit; font-weight: 600; padding: 4px 0; white-space: nowrap; }
.nbd-bar .nb-crumbs { flex: 1; min-width: 0; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.nbd-acts { display: flex; gap: 4px; }
.nbd-acts button { border: 0; background: none; width: 36px; height: 36px; border-radius: 10px; color: var(--muted); font-size: 18px; }
.nbd-acts button:hover { background: var(--card); color: var(--ink); }
.nb-doc .nb-icon { width: 48px; height: 48px; font-size: 26px; border-radius: 14px; box-shadow: none; border: 0; background: var(--lilac-soft); color: var(--lilac); }
.nb-doc .nb-icon .ico { width: 26px; height: 26px; color: var(--lilac); stroke-width: 1.8; }
.nb-doc .nb-title { font-size: clamp(30px, 5vw, 40px); margin: 12px 0 2px; }
.nbd-meta { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.nb-doc .nb-add { padding-left: 26px; }

/* Copia del mes */
.bk { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border-radius: 22px; padding: 16px; box-shadow: var(--shadow); border-left: 4px solid var(--accent); }
.bk-ic { width: 42px; height: 42px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.bk-ic .ico { width: 22px; height: 22px; }
.bk-b { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.bk-b b { font-family: var(--display); font-size: 17px; }
.bk-b small { color: var(--muted); font-size: 14px; }
.bk-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }

/* Inicio a tu gusto, calma, revisión, fotos, avisos */
.home-edit { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin: 26px 0 6px; }
.home-edit .link { color: var(--muted); }
.he { display: flex; flex-direction: column; border-radius: 16px; background: var(--bg); overflow: hidden; }
.he-row { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.he-row:last-child { border-bottom: 0; }
.he-row label { flex: 1; display: flex; gap: 10px; align-items: center; font-weight: 600; }
.he-row.off label { color: var(--muted); font-weight: 500; }
.he-row span { display: flex; gap: 4px; }
.he-row span button { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); padding: 0; }
.he-row span button:disabled { opacity: .3; }
.calm { background: linear-gradient(160deg, #2A2F63, #1B1F3B); color: #EDEBFF; border-radius: 24px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.calm b { font-family: var(--display); font-size: 20px; }
.calm span { opacity: .85; font-size: 14.5px; }
.calm-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.calm-acts button { border-radius: 999px; border: 1px solid rgba(237, 235, 255, .35); background: rgba(255, 255, 255, .08); color: inherit; font: inherit; font-weight: 600; padding: 8px 14px; }
.nb-breaths { display: flex; flex-wrap: wrap; gap: 6px; }
.rv-days { display: flex; flex-direction: column; gap: 8px; }
.rv-days > div { display: flex; flex-direction: column; gap: 2px; background: var(--bg); border-radius: 12px; padding: 8px 12px; }
.rv-days span { font-size: 14px; color: var(--muted); }
.rv-want { display: flex; gap: 8px; } .rv-want input { flex: 1; }
.rvcard { border-left-color: var(--lilac); } .rvcard .bk-ic { background: var(--lilac-soft); color: var(--lilac); }
.sg { border-left-color: var(--blue); } .sg .bk-ic { background: var(--blue-soft); color: var(--blue); }
.sg-steps { display: flex; flex-direction: column; gap: 10px; padding-left: 20px; font-size: 15px; line-height: 1.45; }
.ntfy-steps { display: flex; flex-direction: column; gap: 6px; padding-left: 18px; }
.ntfy-steps code, .sg-steps code { background: var(--bg); border-radius: 6px; padding: 1px 6px; }
.nb-photo { margin-top: 10px; }
.nb-photo.has { position: relative; border-radius: 16px; overflow: hidden; max-width: 420px; }
.nb-photo img { display: block; width: 100%; max-height: 320px; object-fit: cover; }
.ph-del { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .5); color: #fff; }
.ph-add { display: inline-flex; align-items: center; gap: 8px; border: 1px dashed var(--line); border-radius: 12px; padding: 8px 12px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.ph-add .ico { width: 18px; height: 18px; }


/* ---------- cabecera nueva ---------- */
.sky { padding: 18px 20px 18px; }
.sky-head { display: flex; gap: 16px; align-items: center; margin-top: 18px; }
.sky-badge { flex: none; width: 66px; display: flex; flex-direction: column; align-items: center; padding: 7px 0 8px; border-radius: 20px; background: rgba(255, 255, 255, .26);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sky-badge small { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.sky-badge b { font-family: var(--display); font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -.03em; margin: 1px 0; }
.sky-txt { min-width: 0; }
.sky-h { font-family: var(--display); font-size: clamp(25px, 4.4vw, 36px); font-weight: 750; letter-spacing: -.025em; line-height: 1.08; margin: 0; text-wrap: balance; }
.sky-sub { margin: 5px 0 0; font-size: 15px; font-weight: 500; opacity: .9; line-height: 1.35; }
.sky-sub b { font-weight: 700; }
.dbar { margin: 20px 2px 0; }
.dbar-track { position: relative; height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .24); }
.dbar-night { position: absolute; top: 0; bottom: 0; right: 0; border-radius: 0 99px 99px 0; background: rgba(25, 22, 70, .22); }
.dbar-work { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: color-mix(in srgb, var(--sky-ink) 22%, transparent); }
.dbar-done { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 99px; background: color-mix(in srgb, var(--sky-ink) 30%, transparent); }
.dbar-ev { position: absolute; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px #fff; transform: translate(-50%, -50%); }
.dbar-now { position: absolute; top: 50%; width: 20px; height: 20px; border-radius: 50%; transform: translate(-50%, -50%); background: #FFF3C4; box-shadow: 0 0 0 3px #FFD36E, 0 0 18px 6px rgba(255, 224, 138, .75); }
.dbar-now.moon { background: #EDEBFF; box-shadow: 0 0 0 3px rgba(237, 235, 255, .55), 0 0 16px 4px rgba(237, 235, 255, .4); }
.dbar-lbl { position: relative; height: 18px; margin-top: 6px; font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dbar-lbl span { position: absolute; transform: translateX(-50%); opacity: .65; white-space: nowrap; display: inline-flex; align-items: center; gap: 3px; }
.dbar-lbl .dbar-sun { opacity: .95; }
.dbar-lbl .ico { width: 13px; height: 13px; }
.sky-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.sky-chip { display: inline-flex; align-items: center; gap: 7px; border: 0; color: inherit; font: inherit; font-size: 13.5px; font-weight: 600; padding: 7px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .26); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); cursor: pointer; }
span.sky-chip { cursor: default; }
.sky-chip .ico { width: 16px; height: 16px; }
.sky-chip.ghost { background: transparent; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--sky-ink) 40%, transparent); }
.sky-chip-x { display: inline-flex; margin-left: 2px; opacity: .7; }
.sky-chip-x .ico { width: 14px; height: 14px; }
.sky-live { background: #1B1F3B; color: #fff; }
.sky-live small { font-weight: 700; color: #FFD36E; }
.sky .sky-qa { margin-top: 14px; width: 100%; flex: none; box-sizing: border-box; }
@media (max-width: 480px) {
  .sky-head { gap: 12px; margin-top: 14px; }
  .sky-badge { width: 56px; border-radius: 17px; }
  .sky-badge b { font-size: 28px; }
  .sky-h { font-size: 25px; }
  .sky-sub { font-size: 14px; }
}

/* ---------- fútbol ---------- */
.fb-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.fb-empty { padding: 16px; color: var(--muted); }
.fb-row { position: relative; display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 12px 14px 12px 16px;
  border: 0; border-bottom: 1px solid var(--line); background: none; color: inherit; font: inherit; border-radius: 0; cursor: pointer; }
.fb-row::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--tc); }
.fb-row:hover { background: var(--bg); }
.fb-row.today { background: color-mix(in srgb, var(--tc) 8%, var(--card)); }
.fb-crest { width: 32px; height: 32px; object-fit: contain; flex: none; }
.fb-crest.sm { width: 20px; height: 20px; }
.fb-nocrest { display: inline-block; border-radius: 50%; background: var(--line); }
.fb-mid { min-width: 0; }
.fb-mid b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb-vs { font-weight: 500; color: var(--muted); font-size: .9em; }
.fb-mid small { display: block; color: var(--muted); font-size: 13px; margin-top: 1px; }
.fb-mid i { font-style: normal; font-weight: 700; color: var(--lilac); }
.fb-last { display: flex; flex-direction: column; align-items: center; min-width: 54px; padding: 5px 9px; border-radius: 12px; background: var(--bg);
  font-family: var(--display); font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.fb-last small { font-family: var(--body); font-size: 10.5px; font-weight: 600; color: var(--muted); max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-g { background: color-mix(in srgb, #2FA98C 16%, var(--card)); }
.fb-e, .fb-p { background: var(--bg); }
.fb-table-line { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding: 10px 16px; font-size: 13px; color: var(--muted); }
.fb-table-line b { color: var(--ink); }
.fb-table-line .ico { width: 15px; height: 15px; }
.fb-live { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px; margin-bottom: 10px; border: 0; border-radius: 20px;
  background: linear-gradient(135deg, #1B1F3B, #40357A); color: #fff; font: inherit; cursor: pointer; }
.fb-livetag { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; letter-spacing: .08em; color: #FFD36E; }
.fb-livetag::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #FFD36E; animation: glow 1.6s ease-in-out infinite; }
.fb-score { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.fb-num { font-family: var(--display); font-size: 32px; font-weight: 800; padding: 0 6px; font-variant-numeric: tabular-nums; }
.fb-sheet .fb-seg { display: inline-flex; margin: 2px 0 0; }
.fb-standing { margin: 8px 2px 0; }
.fb-h { font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 18px 2px 8px; }
.fb-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.fb-m { display: grid; grid-template-columns: 92px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.fb-m:last-child { border-bottom: 0; }
.fb-m.live { background: color-mix(in srgb, #FFD36E 14%, var(--card)); }
.fb-mwhen { display: flex; flex-direction: column; font-size: 13px; font-weight: 700; }
.fb-mwhen small { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.fb-livedot { color: #C98A10; }
.fb-mteams { display: flex; flex-direction: column; gap: 5px; min-width: 0; font-weight: 600; font-size: 14px; }
.fb-mteams span { display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb-msc { display: flex; flex-direction: column; gap: 5px; text-align: center; min-width: 30px; padding: 4px 8px; border-radius: 10px; font-family: var(--display); font-variant-numeric: tabular-nums; }
.fb-mtv { font-size: 11.5px; color: var(--muted); max-width: 84px; text-align: right; }
.fb-tab { display: flex; flex-direction: column; gap: 2px; max-height: 340px; overflow: auto; border: 1px solid var(--line); border-radius: 16px; padding: 6px; }
.fb-tr { display: grid; grid-template-columns: 22px 20px 1fr auto 30px; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 10px; font-size: 14px; }
.fb-tr > span { color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.fb-tr b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb-tr small { color: var(--muted); font-size: 12px; }
.fb-tr em { font-style: normal; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.fb-tr.me { background: color-mix(in srgb, var(--tc) 12%, transparent); }
.fb-tr.me b { font-weight: 800; }
.fb-layer { display: flex; gap: 10px; align-items: center; margin-top: 18px; font-weight: 600; }
.fb-layer input { accent-color: var(--ink); width: 18px; height: 18px; }


/* ---------- noticias ---------- */
.nw-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.nw-empty { padding: 16px; color: var(--muted); }
.nw-row { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.nw-row:last-child { border-bottom: 0; }
.nw-row:hover { background: var(--bg); }
.nw-row b, .nw-row-b b { display: block; font-weight: 650; font-size: 15px; line-height: 1.32; text-wrap: pretty; }
.nw-row small, .nw-hero small { display: block; margin-top: 4px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.nw-row-b { flex: 1; min-width: 0; }
.nw-row img { flex: none; width: 76px; height: 58px; object-fit: cover; border-radius: 12px; background: var(--bg); }
.nw-row.read b, .nw-hero.read b { color: var(--muted); font-weight: 550; }
.nw-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 14px; padding: 0 16px; }
.nw-tabs::-webkit-scrollbar { display: none; }
.nw-tabs button { flex: none; border: 1px solid var(--line); background: var(--card); color: var(--muted); font-weight: 650; font-size: 14px; padding: 8px 14px; border-radius: 999px; }
.nw-tabs button.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.nw-hero { display: block; margin-bottom: 12px; border-radius: 22px; overflow: hidden; background: var(--card); border: 1px solid var(--line); color: inherit; text-decoration: none; }
.nw-hero img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg); }
.nw-hero-b { display: block; padding: 14px 16px 16px; }
.nw-hero-b small { margin: 0 0 6px; }
.nw-hero-b b { display: block; font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -.015em; line-height: 1.18; text-wrap: balance; }
.nw-hero-b span { display: block; margin-top: 8px; color: var(--muted); font-size: 14.5px; line-height: 1.4; }
.nw-end { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 18px 0 6px; color: var(--muted); font-weight: 600; font-size: 14px; }
.nw-end .ico { width: 18px; height: 18px; color: #2FA98C; }
.nw-calm { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0 0; padding: 14px 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); cursor: pointer; }
.nw-calm input { accent-color: var(--ink); width: 20px; height: 20px; margin-top: 1px; flex: none; }
.nw-calm b { display: block; }
.nw-calm small { color: var(--muted); font-size: 13px; }
.nw .cal-head .pill-btn { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- paletas de color ---------- */
:root[data-pal="mar"] { --lilac: #2A9DB0; --blue: #3477D1; --peach: #68CDB8; }
:root[data-pal="bosque"] { --lilac: #4E9A6B; --blue: #3E8C8A; --peach: #C9B458; }
:root[data-pal="arena"] { --lilac: #D9785A; --blue: #C9924A; --peach: #F2B36B; }
:root[data-pal="grafito"] { --lilac: #6B7184; --blue: #7F8698; --peach: #B0B4BE; }
:root[data-pal] { --lilac-soft: color-mix(in srgb, var(--lilac) 15%, var(--card)); --blue-soft: color-mix(in srgb, var(--blue) 15%, var(--card)); }
[data-pal="mar"] .sky-dawn { --sky-ink: #0E2F3F; background: linear-gradient(165deg, #E0F7F4 0%, #8FD8D2 50%, #7FB2E8 100%); }
[data-pal="mar"] .sky-day { --sky-ink: #0E2F3F; background: linear-gradient(165deg, #E3F4FF 0%, #8CCBF2 50%, #3E8FD8 100%); }
[data-pal="mar"] .sky-dusk { --sky-ink: #F2FBFF; background: linear-gradient(165deg, #7FD3C8 0%, #3F93BE 50%, #2D4F9A 100%); }
[data-pal="mar"] .sky-night { --sky-ink: #E6F4FA; background: linear-gradient(165deg, #1F4A66 0%, #123048 55%, #0A1C2E 100%); }
[data-pal="bosque"] .sky-dawn { --sky-ink: #1F3326; background: linear-gradient(165deg, #F1F5DC 0%, #C6DFA0 50%, #8CC4A0 100%); }
[data-pal="bosque"] .sky-day { --sky-ink: #173323; background: linear-gradient(165deg, #E8F5E4 0%, #A6D8B0 50%, #5FAE86 100%); }
[data-pal="bosque"] .sky-dusk { --sky-ink: #FBF8EC; background: linear-gradient(165deg, #E9C27E 0%, #84B07A 50%, #3F7F68 100%); }
[data-pal="bosque"] .sky-night { --sky-ink: #E8F3EC; background: linear-gradient(165deg, #22433A 0%, #152E28 55%, #0C1D19 100%); }
[data-pal="arena"] .sky-dawn { --sky-ink: #3D2418; background: linear-gradient(165deg, #FFF1DC 0%, #FFD1A1 50%, #F2A98A 100%); }
[data-pal="arena"] .sky-day { --sky-ink: #3D2418; background: linear-gradient(165deg, #FFF6E5 0%, #FBD9A6 50%, #E9A970 100%); }
[data-pal="arena"] .sky-dusk { --sky-ink: #FFF6EE; background: linear-gradient(165deg, #FFB27A 0%, #DE7F62 50%, #9C4F6B 100%); }
[data-pal="arena"] .sky-night { --sky-ink: #F8E9EE; background: linear-gradient(165deg, #4A2E3E 0%, #2E1C2A 55%, #1A1018 100%); }
[data-pal="grafito"] .sky-dawn, [data-pal="grafito"] .sky-day { --sky-ink: #1E2026; background: linear-gradient(165deg, #F4F5F7 0%, #D5D8DE 50%, #A9AEBA 100%); }
[data-pal="grafito"] .sky-dusk { --sky-ink: #F6F7F9; background: linear-gradient(165deg, #A9ADB9 0%, #6E7383 50%, #3F4351 100%); }
[data-pal="grafito"] .sky-night { --sky-ink: #ECEDF1; background: linear-gradient(165deg, #33353D 0%, #222329 55%, #141519 100%); }
.pal-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.pal { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 4px; border-radius: 14px; border: 1.5px solid transparent; background: var(--bg); font-size: 12.5px; font-weight: 650; color: var(--ink); }
.pal.on { border-color: var(--ink); }
.pal-sw { width: 100%; max-width: 54px; aspect-ratio: 1; border-radius: 12px; }
.pal-cielo { background: linear-gradient(150deg, #FFB38A, #C58BD9 50%, #5E4FB8); }
.pal-mar { background: linear-gradient(150deg, #7FD3C8, #3F93BE 50%, #2D4F9A); }
.pal-bosque { background: linear-gradient(150deg, #E9C27E, #84B07A 50%, #3F7F68); }
.pal-arena { background: linear-gradient(150deg, #FFB27A, #DE7F62 50%, #9C4F6B); }
.pal-grafito { background: linear-gradient(150deg, #D5D8DE, #6E7383 50%, #33353D); }
.theme-seg { display: flex; flex-wrap: wrap; border-radius: 16px; }
.theme-seg button { flex: 1 1 auto; font-size: 13px; }
@media (max-width: 480px) { .pal { font-size: 11px; } }

/* ---------- botón para elegir archivos ---------- */
.btnlike { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-weight: 600; cursor: pointer; }
.btnlike .ico { width: 18px; height: 18px; }

/* ---------- cuenta atrás ---------- */
.cd-row { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 4px; }
.cd-row::-webkit-scrollbar { display: none; }
.cd { position: relative; flex: none; width: 132px; display: flex; flex-direction: column; padding: 14px; border-radius: 20px; background: linear-gradient(160deg, var(--lilac-soft), var(--card)); border: 1px solid var(--line); }
.cd b { font-family: var(--display); font-size: 40px; font-weight: 800; line-height: .95; letter-spacing: -.04em; color: var(--lilac); }
.cd > small { font-weight: 700; color: var(--muted); font-size: 12.5px; margin-bottom: 8px; }
.cd span { font-weight: 700; line-height: 1.25; }
.cd em { font-style: normal; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.cd-x { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); display: grid; place-items: center; opacity: .6; }
.cd-x .ico { width: 14px; height: 14px; }
.cd-empty { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; border: 1px dashed var(--line); }
.cd-empty > span:first-child { color: var(--lilac); display: grid; }
.cd-empty > span:nth-child(2) { flex: 1; min-width: 0; }
.cd-empty b { display: block; } .cd-empty small { color: var(--muted); font-size: 13px; }

/* ---------- fechas que importan ---------- */
.fx { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.fx-it { display: flex; gap: 12px; align-items: center; text-align: left; width: 100%; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; color: inherit; font: inherit; text-decoration: none; cursor: pointer; }
.fx-it:last-child { border-bottom: 0; }
.fx-it.today { background: color-mix(in srgb, #F2A93B 10%, var(--card)); }
.fx-ic { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--card)); }
.fx-ic .ico { width: 19px; height: 19px; }
.fx-it b { display: block; font-weight: 700; }
.fx-it small { color: var(--muted); font-size: 13px; }
.doc-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.doc-it { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg); }
.doc-it b { flex: 1 1 140px; } .doc-it span { color: var(--muted); font-size: 14px; }
.doc-it.soon { box-shadow: inset 3px 0 0 #F2A93B; }
.doc-add { display: flex; flex-wrap: wrap; gap: 8px; }
.doc-add select, .doc-add input { flex: 1 1 140px; }

/* ---------- planificador de vacaciones ---------- */
.vp-it { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--bg); margin-bottom: 6px; }
.vp-n { flex: none; width: 52px; display: flex; flex-direction: column; align-items: center; }
.vp-n b { font-family: var(--display); font-size: 24px; font-weight: 800; line-height: 1; color: var(--lilac); }
.vp-n small { font-size: 10.5px; font-weight: 700; color: var(--muted); text-align: center; line-height: 1.1; }
.vp-t { flex: 1; min-width: 0; } .vp-t b { display: block; font-weight: 700; } .vp-t small { color: var(--muted); font-size: 13px; }

/* ---------- tu dinero ---------- */
.mo { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 16px; }
.mo-top { display: flex; justify-content: space-between; gap: 12px; }
.mo-top small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.mo-top b { font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.mo-usual { text-align: right; } .mo-usual b { color: var(--muted); font-size: 20px; }
.mo-bar { position: relative; height: 8px; border-radius: 99px; background: var(--bg); margin: 12px 0 8px; }
.mo-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: linear-gradient(90deg, var(--blue), var(--lilac)); }
.mo-bar em { position: absolute; top: -4px; bottom: -4px; width: 2px; border-radius: 2px; background: var(--ink); opacity: .35; }
.mo-tone { margin: 0; font-size: 14px; color: var(--muted); }
.mo-up { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; }
.mo-up small { color: var(--muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.mo-subs { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 12px; padding: 10px 12px; border: 0; border-radius: 14px; background: var(--bg); color: inherit; font: inherit; font-size: 14px; text-align: left; }
.mo-subs span { flex: 1; } .mo-subs .ico { width: 18px; height: 18px; color: var(--lilac); }

/* ---------- pelis y series ---------- */
.es-mine { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.es-m { display: flex; gap: 12px; align-items: center; padding: 11px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: inherit; text-decoration: none; }
.es-m .ico { flex: none; width: 20px; height: 20px; color: var(--lilac); }
.es-m b { display: block; } .es-m small { color: var(--muted); font-size: 13px; }
.es-strip { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 10px; padding: 0 16px 4px; }
.es-strip::-webkit-scrollbar { display: none; }
.es-c { flex: none; width: 112px; color: inherit; text-decoration: none; }
.es-c img, .es-noimg { display: block; width: 112px; height: 158px; object-fit: cover; border-radius: 14px; background: var(--line); margin-bottom: 6px; }
.es-c b { display: block; font-size: 13.5px; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.es-c small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }

/* ---------- finde con lluvia ---------- */
.fd-rain { display: flex; gap: 6px; align-items: flex-start; }
button.fd-it { border: 0; background: none; font: inherit; color: inherit; text-align: left; padding: 0; cursor: pointer; }

/* ---------- mi año ---------- */
.ma { max-height: 92vh; overflow: auto; }
.ma-hero { display: flex; flex-direction: column; padding: 20px; border-radius: 22px; color: #fff; background: linear-gradient(150deg, var(--peach), var(--lilac) 55%, var(--blue)); margin-bottom: 14px; }
.ma-hero small { font-weight: 700; opacity: .85; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.ma-hero b { font-family: var(--display); font-size: 64px; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.ma-hero span { opacity: .9; font-weight: 600; }
.ma-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ma-t { display: flex; flex-direction: column; padding: 14px; border-radius: 18px; background: color-mix(in srgb, var(--c) 12%, var(--card)); }
.ma-t b { font-family: var(--display); font-size: 32px; font-weight: 800; color: var(--c); line-height: 1; }
.ma-t span { font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 4px; }
.ma-sec { margin-top: 18px; }
.ma-sec h3 { font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
.ma-moods { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; height: 120px; align-items: end; }
.ma-moods span { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.ma-moods i { width: 100%; max-width: 40px; height: var(--h); border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, var(--lilac), var(--blue)); }
.ma-moods em { font-style: normal; font-size: 18px; } .ma-moods small { font-weight: 700; color: var(--muted); font-size: 12px; }
.ma-good { margin: 0 0 8px; padding: 10px 12px; border-radius: 14px; background: var(--bg); font-weight: 600; }
.ma-good small { display: block; color: var(--muted); font-weight: 500; font-size: 12.5px; margin-top: 2px; }
.ma-fb { margin: 0 0 6px; }
.ma-card { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 18px 20px; border: 0; border-radius: 22px; color: #fff; text-align: left; font: inherit; background: linear-gradient(150deg, var(--peach), var(--lilac) 55%, var(--blue)); }
.ma-card small { display: block; font-weight: 700; opacity: .85; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.ma-card b { font-family: var(--display); font-size: 28px; font-weight: 800; }
.ma-card .ico { width: 28px; height: 28px; }
.dato b { font-weight: 500 !important; font-size: 14.5px; line-height: 1.4; }

/* ---------- tus viajes ---------- */
:root { --vj-land: #E4E8F2; --vj-sea: #F1F5FC; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --vj-land: #2A3050; --vj-sea: #141830; } }
:root[data-theme="dark"] { --vj-land: #2A3050; --vj-sea: #141830; }
.vj-head { padding: 10px 2px 12px; }
.vj-hero { border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: radial-gradient(120% 80% at 50% 0%, var(--vj-sea), var(--card) 75%); }
.vj-map { position: relative; }
.vj-svg { display: block; width: 100%; height: auto; }
.vj-svg:not(.mini) { max-height: 64vh; }
.vj-map-load { aspect-ratio: 1.04; display: grid; place-items: center; color: var(--muted); font-weight: 600; }
.vj-other { fill: var(--vj-land); opacity: .5; }
.vj-c { fill: var(--vj-land); stroke: var(--card); stroke-width: .9; stroke-linejoin: round; transition: fill .3s, opacity .3s; }
.vj-svg:not(.mini) .vj-c { cursor: pointer; }
.vj-svg:not(.mini) .vj-c:hover { opacity: .82; }
.vj-c.is-v { fill: var(--vg); }
.vj-c.is-w { fill: var(--vh); }
.vj-c.is-d { fill: color-mix(in srgb, var(--lilac) 28%, var(--vj-land)); }
.vj-micro { stroke-width: 2; }
.vj-flag { font-size: 30px; text-anchor: middle; pointer-events: none; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .25)); }
.vj-pin { pointer-events: none; }
.vj-pin-h { fill: #fff; opacity: .95; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .3)); }
.vj-pin-c { fill: var(--ink); }
.vj-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); background: var(--card); }
.vj-stats div { display: flex; flex-direction: column; align-items: center; padding: 12px 4px 14px; }
.vj-stats div + div { border-left: 1px solid var(--line); }
.vj-stats b { font-family: var(--display); font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.vj-stats small { margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 650; }
.vj-tabs { margin-top: 16px; }
.vj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.vj-p { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: transform .15s, border-color .15s; }
.vj-p:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--lilac) 45%, var(--line)); }
.vj-p-f { font-size: 34px; line-height: 1; margin-bottom: 8px; }
.vj-p b { font-weight: 750; font-size: 15.5px; }
.vj-p small { color: var(--muted); font-size: 12.5px; line-height: 1.3; }
.vj-p.want { border-style: dashed; border-color: color-mix(in srgb, var(--peach) 70%, var(--line)); }
.vj-dud { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.vj-add { display: flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); }
.vj-add .ico { width: 18px; height: 18px; color: var(--muted); }
.vj-add input { flex: 1; border: 0; background: none; padding: 13px 0; font: inherit; color: inherit; outline: none; box-shadow: none; }
.vj-sug { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 12px; }
.vj-sug:empty { display: none; }
.vj-sug button { display: flex; align-items: baseline; gap: 8px; text-align: left; padding: 10px 14px; border-radius: 14px; border: 0; background: var(--bg); color: inherit; font: inherit; }
.vj-sug small { color: var(--muted); font-size: 12.5px; }
.vj-group { margin-top: 16px; }
.vj-group h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 15px; }
.vj-group h3 small { color: var(--muted); font-weight: 600; }
.vj-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.vj-chip { display: inline-flex; align-items: center; gap: 4px; padding: 6px 6px 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.vj-chip button { width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); display: grid; place-items: center; }
.vj-chip .ico { width: 13px; height: 13px; }
.vj-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 28px 20px; border-radius: 22px; border: 1px dashed var(--line); color: var(--muted); }
.vj-empty .ico { width: 26px; height: 26px; color: var(--lilac); margin-bottom: 4px; }
.vj-empty b { color: var(--ink); font-size: 16px; }
.vj-tip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 14px; padding: 12px 14px; border-radius: 18px; background: color-mix(in srgb, var(--peach) 14%, var(--card)); font-size: 14px; }
.vj-tip > span { flex: 1 1 180px; } .vj-tip > .ico { width: 18px; height: 18px; }
.vj-foot { text-align: center; margin: 18px 0 0; }
.vj-sheet .vj-sh-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.vj-sh-f { font-size: 48px; line-height: 1; }
.vj-sheet .di-h { margin: 0; }
.vj-seg { display: flex; } .vj-seg button { flex: 1; }
.vj-card { display: flex; align-items: center; gap: 0; width: 100%; padding: 0; border-radius: 24px; border: 1px solid var(--line); background: var(--card); color: inherit; font: inherit; text-align: left; overflow: hidden; cursor: pointer; }
.vj-card-map { flex: none; width: 46%; max-width: 220px; align-self: stretch; background: radial-gradient(120% 90% at 30% 20%, var(--vj-sea), var(--card)); }
.vj-card-map .vj-svg { height: 100%; }
.vj-card-map .vj-map-load { aspect-ratio: 1.4; }
.vj-card-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 16px; }
.vj-card-b small { color: var(--muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.vj-card-b b { font-family: var(--display); font-size: 22px; font-weight: 750; letter-spacing: -.02em; line-height: 1.1; }
.vj-card-b span { color: var(--muted); font-size: 13.5px; }
.vj-card-go { padding-right: 14px; color: var(--muted); }
@media (min-width: 900px) { .vj-hero { display: grid; grid-template-columns: 1fr; } }

/* ---------- cabecera limpia, estilo Apple ---------- */
.sky { padding: 18px 20px 20px; }
.sky-hi { font-weight: 600; font-size: 15px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sky-tools { gap: 2px; }
.sky-wx { background: none; padding: 0 8px 0 0; height: auto; font-size: 16px; }
.sky-wx small { display: none; }
.sky-gear { background: none; width: 34px; height: 34px; opacity: .85; }
.sky-gear:hover { background: rgba(255, 255, 255, .18); }
.sky .sky-h { margin-top: 18px; font-size: clamp(30px, 5vw, 40px); font-weight: 760; letter-spacing: -.03em; }
.sky .sky-sub { margin-top: 6px; font-size: 16px; opacity: .85; }
.dbar { margin-top: 22px; }
.dbar-track { height: 6px; }
.dbar-ev { width: 8px; height: 8px; box-shadow: 0 0 0 1.5px #fff; }
.dbar-now { width: 16px; height: 16px; box-shadow: 0 0 0 2.5px #FFD36E, 0 0 14px 4px rgba(255, 224, 138, .6); }
.sky-chips { gap: 4px 0; margin-top: 14px; }
.sky-chip, .sky-chip.ghost { background: none; box-shadow: none; padding: 2px 0; backdrop-filter: none; -webkit-backdrop-filter: none; font-size: 14px; font-weight: 600; opacity: .92; }
.sky-chips { flex-direction: column; align-items: flex-start; gap: 6px; }
.sky-chip.ghost { opacity: .75; }
.sky-chip.sky-live { background: #1B1F3B; color: #fff; padding: 5px 11px; border-radius: 999px; opacity: 1; }
.sky-chip .ico { width: 15px; height: 15px; }
.qa-out { display: flex; margin: 12px 0 0; padding: 0 12px; gap: 8px; border: 0; border-radius: 12px; background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none; }
.qa-out .ico { width: 18px; height: 18px; color: var(--muted); flex: none; }
.qa-out input { font-weight: 500; padding: 11px 0; }
.qa-out input::placeholder { color: var(--muted); opacity: 1; }
.qa-out:focus-within { background: color-mix(in srgb, var(--ink) 9%, transparent); }
.sky-qah { color: var(--muted); }
@media (max-width: 480px) { .sky .sky-h { font-size: 30px; } .sky .sky-sub { font-size: 15px; } }
.qa-go { flex: none; border: 0; border-radius: 9px; background: var(--ink); color: var(--bg); font: inherit; font-weight: 700; font-size: 14px; padding: 7px 12px; margin-right: -4px; }
.qa-go[hidden] { display: none; }
#hubqah { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 2px 0; }
#hubqah:empty { display: none; }
.qa-lbl { font-size: 12.5px; font-weight: 700; color: var(--muted); margin-right: 2px; }
.qa-d { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 999px; }
.qa-d .ico { width: 14px; height: 14px; }
.qa-d.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.fb-hide { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-left: 4px; padding: 0; border: 0; border-radius: 50%; background: var(--bg); color: var(--muted); vertical-align: middle; }
.fb-hide .ico { width: 12px; height: 12px; }
.dsc-it > span:not(.dsc-ic):not(.art-play):not(.al-go) { flex: 1; min-width: 0; }
.art-it { gap: 12px; }
.art-img { flex: none; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--line); }
.art-b b { display: block; } .art-b em { display: block; font-style: normal; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.art-play { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; border-radius: 999px; background: #1DB954; color: #fff; font-size: 13px; font-weight: 700; }
.art-play .ico { width: 14px; height: 14px; color: #fff; }

/* ---------- deudas por persona ---------- */
.dp-total { margin: 12px 0 0; font-size: 15px; }
.dp-list { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.dp { background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.dp summary { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; }
.dp summary::-webkit-details-marker { display: none; }
.dp-av { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 18px; color: hsl(var(--h) 45% 32%); background: hsl(var(--h) 70% 90%); }
.dp-n { flex: 1; min-width: 0; } .dp-n b { display: block; font-size: 16px; } .dp-n small { color: var(--muted); font-size: 13px; }
.dp-net { display: flex; flex-direction: column; align-items: flex-end; font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.dp-net small { font-family: var(--body); font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.dp-body { padding: 0 16px 14px; border-top: 1px solid var(--line); }

/* ---------- apuntarse a un plan ---------- */
.pl-add { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pl-incal { color: #1f7a63; border-color: color-mix(in srgb, #2FA98C 40%, var(--line)); background: color-mix(in srgb, #2FA98C 10%, var(--card)); }
.pa-days { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.pa-d { flex: none; display: flex; flex-direction: column; align-items: center; min-width: 54px; padding: 8px 6px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: inherit; font: inherit; }
.pa-d b { font-size: 14px; } .pa-d small { font-size: 12px; color: var(--muted); }
.pa-d.on { background: var(--ink); border-color: var(--ink); color: var(--bg); } .pa-d.on small { color: inherit; opacity: .8; }
.pa-in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, #2FA98C 10%, var(--card)); font-size: 14px; }
.pa-in .ico { width: 16px; height: 16px; color: #2FA98C; }
.city .cal-head .primary { padding: 9px 14px; }

/* ---------- calendario más limpio (estilo Calendario de Apple) ---------- */
.mc-n { font-family: var(--body); font-weight: 650; border-radius: 999px; }
.mc.is-sel { box-shadow: none; background: color-mix(in srgb, var(--blue) 7%, var(--card)); }
.mc.is-today .mc-n { background: var(--now); color: #fff; }
.mg-wrap { border-radius: 20px; }
.mc { border-color: color-mix(in srgb, var(--line) 75%, transparent); }
.mc.we { background: none; }
.mc.we .mc-n { color: var(--muted); }
.mc.is-today.we .mc-n { color: #fff; }
.chip { border-radius: 5px; }
.cx-head h1 { letter-spacing: -.03em; }
@media (max-width: 759px) {
  .mg-wrap { border: 0; background: none; border-radius: 0; overflow: visible; }
  .mg-wd { border-bottom: 0; }
  .mg-wd span { font-size: 11px; letter-spacing: .02em; text-transform: none; font-weight: 600; }
  .mg { grid-auto-rows: minmax(80px, auto); }
  .mc { border-right: 0 !important; border-bottom: 0 !important; border-top: 1px solid var(--line); padding: 3px 2px 6px; background: none !important; }
  .mc.out > * { opacity: .3; }
  .mc-n { width: 32px; height: 32px; min-width: 32px; padding: 0; border-radius: 50%; display: grid; place-items: center; font-size: 17px; font-weight: 500; }
  .mc.is-today .mc-n { background: none; color: var(--now); font-weight: 800; }
  .mc.is-sel .mc-n { background: var(--ink); color: var(--bg); font-weight: 700; }
  .mc.is-sel.is-today .mc-n { background: var(--now); color: #fff; }
  .mc-dots { gap: 2px; width: 100%; }
  .mc-bar { font-size: 10px; line-height: 1.45; font-weight: 650; padding: 0 3px; border-radius: 3px; text-overflow: ellipsis; }
  .mc-bmore { font-size: 10px; }
}

/* ---------- cuaderno: Diario y Notas ---------- */
.nb-seg { display: flex; margin: 4px 0 18px; } .nb-seg button { flex: 1; font-size: 15px; padding: 8px; }
.nb-today { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 18px; }
.nb-today-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.nb-today-h span { font-family: var(--display); font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.nb-today-h small { color: var(--muted); font-weight: 600; }
.nb-today .nb-mood { background: none; border: 0; padding: 0; box-shadow: none; }
.nb-feed { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.nbf-m { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 14px 2px 2px; }
.nbf { display: flex; gap: 14px; align-items: flex-start; width: 100%; text-align: left; padding: 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); color: inherit; font: inherit; cursor: pointer; }
.nbf-d { flex: none; width: 40px; display: flex; flex-direction: column; align-items: center; }
.nbf-d small { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.nbf-d b { font-family: var(--display); font-size: 24px; font-weight: 800; line-height: 1; }
.nbf-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nbf-mood { font-size: 13px; font-weight: 700; color: var(--lilac); }
.nbf-b b { font-weight: 650; line-height: 1.35; }
.nbf-b small { color: var(--muted); font-size: 13.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nbh-q2 { display: flex; align-items: center; gap: 8px; width: 100%; padding: 0 12px; margin-bottom: 8px; border-radius: 12px; background: color-mix(in srgb, var(--ink) 6%, transparent); box-sizing: border-box; }
.nbh-q2 input { flex: 1; border: 0; background: none; padding: 10px 0; font: inherit; color: inherit; outline: none; box-shadow: none; }
.nbh-q2 .ico { width: 17px; height: 17px; color: var(--muted); }
.nb-tpl-d { margin-top: 16px; } .nb-tpl-d summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 650; color: var(--muted); list-style: none; }
.nb-tpl-d summary::-webkit-details-marker { display: none; } .nb-tpl-d summary .ico { width: 16px; height: 16px; } .nb-tpl-d .nb-tpls { margin-top: 10px; }

/* ---------- Más (como Ajustes del iPhone) ---------- */
.ms-dots { font-size: 13px !important; letter-spacing: 1px; }
.ms-search { display: flex; align-items: center; gap: 8px; width: 100%; padding: 11px 12px; border: 0; border-radius: 12px; background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--muted); font: inherit; text-align: left; cursor: pointer; }
.ms-search .ico { width: 18px; height: 18px; }
.ms-h { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 24px 16px 8px; }
.ms-g { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.ms-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.ms-row:last-child { border-bottom: 0; }
.ms-row:hover { background: var(--bg); }
.ms-ic { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--c); color: #fff; }
.ms-ic .ico { width: 18px; height: 18px; color: #fff; }
.ms-l { flex: 1; min-width: 0; } .ms-l b { display: block; font-weight: 600; } .ms-l small { display: block; color: var(--muted); font-size: 13px; }
.ms-go { color: var(--muted); display: grid; } .ms-go .ico { width: 18px; height: 18px; }

/* ---------- Hoy, por ti ---------- */
.pt { padding: 18px; border-radius: 22px; background: color-mix(in srgb, var(--c) 10%, var(--card)); border: 1px solid color-mix(in srgb, var(--c) 22%, var(--line)); }
.pt-h { display: flex; justify-content: space-between; align-items: baseline; }
.pt-h span { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: color-mix(in srgb, var(--c) 70%, var(--ink)); }
.pt-h small { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.pt-t { font-family: var(--display); font-size: 21px; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; margin: 8px 0 14px; text-wrap: pretty; }
.pt-a { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pt-b { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 8px 14px; background: var(--c); color: #fff; font: inherit; font-weight: 700; }
.pt-b .ico, .pt-ok .ico { width: 16px; height: 16px; }
.pt-ok { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: color-mix(in srgb, var(--c) 75%, var(--ink)); }
.pt.done .pt-t { opacity: .7; }

/* ---------- cartas al futuro ---------- */
.ct-env { width: 64px; height: 64px; margin: 4px auto 8px; border-radius: 20px; display: grid; place-items: center; color: #fff; background: linear-gradient(150deg, var(--peach), #EF7F72); }
.ct-env .ico { width: 30px; height: 30px; color: #fff; }
.ct-env.sm { width: 46px; height: 46px; margin: 0; border-radius: 14px; flex: none; } .ct-env.sm .ico { width: 22px; height: 22px; }
.ct-sheet textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; line-height: 1.5; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: color-mix(in srgb, var(--peach) 7%, var(--card)); color: var(--ink); resize: vertical; }
.ct-when { display: flex; flex-wrap: wrap; gap: 6px; }
.ct-date input { border: 0; background: none; font: inherit; font-size: 12px; color: inherit; padding: 0; width: 110px; }
.ct-list { display: flex; flex-direction: column; gap: 8px; }
.ct-it { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); color: inherit; font: inherit; text-align: left; }
.ct-it .ico { width: 20px; height: 20px; color: #EF7F72; flex: none; } .ct-it.locked .ico { color: var(--muted); }
.ct-it b { display: block; } .ct-it small { color: var(--muted); font-size: 13px; }
.ct-paper { padding: 22px 20px; border-radius: 18px; background: color-mix(in srgb, var(--peach) 9%, var(--card)); border: 1px solid color-mix(in srgb, var(--peach) 35%, var(--line)); max-height: 60vh; overflow: auto; }
.ct-paper small { display: block; color: var(--muted); font-weight: 700; margin-bottom: 12px; }
.ct-x { font-family: var(--display); font-size: 18px; line-height: 1.55; }
.ct-home { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border-radius: 22px; border: 1px solid color-mix(in srgb, var(--peach) 45%, var(--line)); background: color-mix(in srgb, var(--peach) 12%, var(--card)); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ct-home > span:nth-child(2) { flex: 1; } .ct-home small { display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #D0644F; } .ct-home b { font-size: 16px; }
.ct-open { padding: 8px 14px; border-radius: 999px; background: #EF7F72; color: #fff; font-weight: 700; }

/* ---------- Rumbo (tus cuentas, app aparte) desde Mi Espacio ---------- */
.ms-app { flex: none; border-radius: 8px; }
.rm-hero { display: flex; align-items: center; gap: 14px; margin: 4px 0 18px; }
.rm-hero img { border-radius: 22%; box-shadow: 0 8px 24px rgba(14, 41, 37, .25); }
.rm-hero b { display: block; font-family: var(--display); font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.rm-hero small { color: var(--muted); }
.rm-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 14px; }
.rm-steps li { counter-increment: s; position: relative; padding: 2px 0 0 38px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.rm-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); font-weight: 800; font-size: 13px; }
.rm-steps span { color: var(--muted); font-size: 14px; }
.rm-steps .btn, .rm-steps button { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.tk-snz { flex: none; align-self: center; border: 0; background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--muted); font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.tk-snz:hover { color: var(--ink); }

/* ---------- cierra el día ---------- */
.ci-card, .sp-home { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 16px; border-radius: 22px; font: inherit; cursor: pointer; }
.ci-card { border: 0; color: #EDEBFF; background: linear-gradient(160deg, #3A3F80, #1F2350 70%); box-shadow: 0 12px 30px rgba(31, 35, 80, .25); }
.ci-card .ci-tx { flex: 1; } .ci-card b { display: block; font-family: var(--display); font-size: 18px; } .ci-card small { opacity: .8; }
.ci-card .ms-go, .ci-card .ico { color: #EDEBFF; }
.ci-moon { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); color: #FFE9A8; }
.ci-moon .ico { width: 22px; height: 22px; color: #FFE9A8; }
.ci-h { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.ci-h .ci-moon { background: #2A2F66; }
.ci-h small { color: var(--muted); font-weight: 600; } .ci-h h2 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.ci-s { font-family: var(--body); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; font-weight: 700; }
.ci-wx { text-transform: none; letter-spacing: 0; font-weight: 600; }
.ci-faces { display: flex; gap: 6px; }
.ci-faces button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.ci-faces button span { font-size: 24px; } .ci-faces button small { font-size: 11px; color: var(--muted); }
.ci-faces button.on { border-color: var(--ink); background: var(--card); box-shadow: 0 0 0 2px var(--ink) inset; }
.ci-good { width: 100%; margin-top: 10px; padding: 11px 14px; border-radius: 14px; }
.ci-list { display: flex; flex-direction: column; gap: 6px; }
.ci-t { display: flex; align-items: center; gap: 6px; padding: 8px 8px 8px 14px; border-radius: 14px; background: var(--bg); }
.ci-t span { flex: 1; min-width: 0; }
.ci-t button { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; font-size: 13px; font-weight: 700; border-radius: 999px; border: 1px solid var(--line); background: var(--card); }
.ci-t .ico { width: 14px; height: 14px; }
.ci-all { margin-top: 8px; border: 0; background: none; color: var(--accent); font-weight: 700; padding: 4px 2px; }
.ci-ev { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--bg); }
.ci-ev i { width: 8px; height: 8px; border-radius: 50%; flex: none; } .ci-ev b { font-variant-numeric: tabular-nums; }
.ci-ok { color: var(--muted); margin: 0; }
.ci .sheet-acts .primary { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- ¿qué hago hoy? ---------- */
.sp-home { border: 1px solid color-mix(in srgb, #D9822B 30%, var(--line)); background: color-mix(in srgb, #FFB38A 14%, var(--card)); color: inherit; }
.sp-home > span:nth-child(2) { flex: 1; } .sp-home b { display: block; font-family: var(--display); font-size: 17px; } .sp-home small { color: var(--muted); }
.sp-ic { width: 42px; height: 42px; flex: none; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(150deg, #FFB38A, #EF7F72); color: #fff; }
.sp-ic .ico { width: 22px; height: 22px; color: #fff; }
.sp-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sp-top small { font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.sp-wx { font-size: 13px; font-weight: 600; color: var(--blue); }
.sp-card { margin: 14px 0 16px; padding: 22px 20px; border-radius: 22px; background: color-mix(in srgb, #FFB38A 12%, var(--card)); border: 1px solid color-mix(in srgb, #FFB38A 35%, var(--line)); display: flex; flex-direction: column; gap: 8px; animation: up .25s cubic-bezier(.2, .8, .2, 1) both; }
.sp-card b { font-family: var(--display); font-size: 24px; line-height: 1.2; letter-spacing: -.015em; text-wrap: pretty; }
.sp-card small { color: var(--muted); font-size: 14px; }
.sp-acts { display: flex; gap: 8px; } .sp-acts > * { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px; border-radius: 14px; text-decoration: none; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .sp-card { animation: none; } }

/* ---------- felicitar ---------- */
.fx-fel { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin: -2px 0 4px 52px; border: 0; border-radius: 999px; padding: 7px 14px; font-weight: 700; background: color-mix(in srgb, #F2A93B 18%, var(--card)); color: color-mix(in srgb, #F2A93B 55%, var(--ink)); }
.fx-fel .ico { width: 16px; height: 16px; }

/* ---------- pídele algo a la app ---------- */
.ask { margin-top: 4px; }
.ask-box { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 6px 6px 6px 16px; box-shadow: 0 1px 2px rgba(20, 20, 40, .04), 0 8px 24px -14px rgba(20, 20, 40, .25); }
.ask-box:focus-within { border-color: var(--accent); }
.ask-ic { display: inline-flex; color: var(--accent); }
.ask-ic .ico { width: 20px; height: 20px; }
.ask-box input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 16px; padding: 10px 0; color: var(--ink); outline: none; }
.ask-go { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ask-go .ico { width: 20px; height: 20px; }
.ask-chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 2px 2px; scrollbar-width: none; }
.ask-chips::-webkit-scrollbar { display: none; }
.ask-chips button { flex: none; border: 0; border-radius: 999px; padding: 7px 13px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--muted); background: color-mix(in srgb, var(--ink) 6%, transparent); white-space: nowrap; }
.ak-h { margin: 4px 0 12px; font-family: var(--display); }
.ak-card { border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin-bottom: 10px; background: var(--card); }
.ak-top { display: flex; gap: 12px; align-items: center; }
.ak-i { font-size: 24px; width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--accent) 12%, transparent); flex: none; }
.ak-b { display: flex; flex-direction: column; min-width: 0; }
.ak-b b { overflow-wrap: anywhere; }
.ak-b small { color: var(--muted); font-size: 13px; }
.ak-ans { margin-top: 10px; }
.ak-day { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 10px 0 4px; }
.ak-it { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.ak-it:first-of-type { border-top: 0; }
.ak-it i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.ak-it span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ak-it small { color: var(--muted); }
.ak-none { color: var(--muted); margin: 6px 0; }
.ak-to { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.ak-to .nb-to.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- rutinas ---------- */
.hb-empty { border: 1px dashed var(--line); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.hb-empty small { color: var(--muted); }
.hb-sug { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }
.hb-sug button { border: 0; border-radius: 999px; padding: 7px 13px; font: inherit; font-size: 13.5px; font-weight: 600; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--ink); }
.hb-list { display: flex; flex-direction: column; gap: 8px; }
.hb-row { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 8px 8px 8px 12px; }
.hb-row.on { background: color-mix(in srgb, var(--accent) 9%, var(--card)); }
.hb-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; border: 0; background: none; font: inherit; color: inherit; text-align: left; padding: 0; }
.hb-i { font-size: 24px; width: 36px; text-align: center; }
.hb-b { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1; }
.hb-b b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-dots { display: flex; gap: 5px; }
.hb-dots i { width: 9px; height: 9px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 12%, transparent); }
.hb-dots i.y { background: var(--accent); }
.hb-dots i.t:not(.y) { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 45%, transparent); }
.hb-st { font-weight: 700; font-size: 13.5px; color: var(--warm, #E08A3C); white-space: nowrap; }
.hb-chk { width: 44px; height: 44px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--ink) 18%, transparent); background: transparent; color: transparent; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.hb-chk .ico { width: 22px; height: 22px; }
.hb-row.on .hb-chk { background: var(--accent); border-color: var(--accent); color: #fff; }
.rt-acts { display: flex; gap: 8px; margin-top: 10px; }
.rt-b { flex: 1; min-width: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; text-align: left; border: 1px solid var(--line); border-radius: 18px; background: var(--card); padding: 11px 12px; font: inherit; color: inherit; }
.rt-b span { grid-row: span 2; font-size: 24px; }
.rt-b b { font-size: 14.5px; line-height: 1.2; }
.rt-b small { color: var(--muted); font-size: 12.5px; }
.fc { text-align: center; }
.fc-mins { display: flex; gap: 8px; justify-content: center; margin-bottom: 12px; }
.fc-ring { position: relative; width: 220px; height: 220px; margin: 8px auto 4px; }
.fc-ring svg { width: 100%; height: 100%; }
.fc-bg { fill: none; stroke: color-mix(in srgb, var(--ink) 10%, transparent); stroke-width: 10; }
.fc-fg { fill: none; stroke: var(--accent); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset .5s linear; }
.fc-t { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0 40px; }
.fc-t b { font-family: var(--display); font-size: 44px; font-variant-numeric: tabular-nums; }
.fc-t small { color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-tip { color: var(--muted); font-size: 14px; margin: 4px 0 8px; }
.bt { text-align: center; }
.bt-jar { font-size: 56px; margin: 6px 0; }
.bt-d { color: var(--muted); text-transform: capitalize; }
.bt-t { font-family: var(--display); font-size: 22px; line-height: 1.3; margin: 10px 4px 12px; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) { .fc-fg { transition: none; } }

/* ---------- aspecto: muestras de color ---------- */
.th-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.th { display: flex; flex-direction: column; align-items: stretch; gap: 8px; border: 1px solid var(--line); background: var(--card); border-radius: 16px; padding: 8px 8px 10px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink); cursor: pointer; box-shadow: none; }
.th.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.th-sw { display: block; height: 52px; border-radius: 10px; }
.th-cielo { background: linear-gradient(135deg, #A9C6FA 0%, #6E9BF0 45%, #C58BD9 75%, #FFB38A 100%); }
.th-mar { background: linear-gradient(135deg, #8FD8D2 0%, #68CDB8 35%, #2A9DB0 65%, #3477D1 100%); }
.th-bosque { background: linear-gradient(135deg, #E8F5E4 0%, #A6D8B0 35%, #4E9A6B 70%, #3E8C8A 100%); }
.th-arena { background: linear-gradient(135deg, #FFF6E5 0%, #FBD9A6 35%, #F2B36B 65%, #D9785A 100%); }
.th-grafito { background: linear-gradient(135deg, #D5D8DF 0%, #B0B4BE 35%, #7F8698 65%, #4A4F5E 100%); }
