:root {
  --bg: #F4F4F7;
  --surface: #FFFFFF;
  --ink: #16161D;
  --muted: #5F606D;
  --line: rgba(22, 22, 29, 0.08);
  --sunk: #E9E9EE;
  --night: #1E1A47;
  --night-card: rgba(255, 255, 255, 0.13);
  --accent: #5B4BD6;
  --accent-soft: #EEECFC;
  --accent-ink: #33289A;
  --green-bg: #E3F4EC; --green-ink: #0F5A44;
  --coral-bg: #FCE8E3; --coral-ink: #A8301A;
  --red-bg: #FCEBEB; --red-ink: #A32D2D;
  --blue-bg: #E6F1FB; --blue-ink: #0C447C;
  --gray-bg: #F1EFE8; --gray-ink: #444441;
  --ring: #C4C5CF;
  /* Color de la meta activa en la pantalla. Se reemplaza por vista. */
  --goal: #5B4BD6; --fill: #5B4BD6; --goal-ink: #33289A; --goal-soft: #EEECFC; --goal-on-soft: #33289A; --on-white: #33289A;
  --font: 'Cabinet Grotesk', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-weight: 500; font-size: 16px; line-height: 1.4;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 12px; z-index: 100; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }

.app { max-width: 560px; margin: 0 auto; padding: calc(18px + env(safe-area-inset-top, 0px)) 20px calc(112px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 16px; }
.app.no-bar { padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }

/* ===== Encabezados ===== */
.top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.top .grow { flex: 1; min-width: 0; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--muted); }
h1 { font-size: 32px; line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; overflow-wrap: normal; hyphens: none; }
h2.sec { font-size: 15px; font-weight: 700; color: var(--muted); margin-bottom: -6px; }
.lede { color: var(--muted); font-size: 16px; font-weight: 500; }
.small { font-size: 14px; font-weight: 600; color: var(--muted); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; flex: none; padding: 0; }
.icon-btn svg { width: 22px; height: 22px; }
.pill-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 800; font-size: 16px; flex: none; }
.pill-btn svg { width: 18px; height: 18px; }
.back-row { display: flex; align-items: center; gap: 14px; }

/* ===== Botones ===== */
.btn { appearance: none; border: 0; border-radius: 999px; padding: 14px 22px; min-height: 48px; font-weight: 800; font-size: 17px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-soft { background: var(--sunk); color: var(--ink); }
.btn-goal { background: var(--fill); color: #fff; }
.btn-white { background: #fff; color: var(--ink-on-fill, var(--ink)); }
.btn-ghost { background: transparent; color: var(--muted); padding: 12px 10px; }
.btn-dashed { background: transparent; border: 2px dashed var(--ring); color: var(--muted); border-radius: 22px; width: 100%; min-height: 56px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.45; }
.stack { display: grid; gap: 10px; }
.stack > *, .field > *, .goal-admin > *, .area-edit > * { min-width: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ===== Tarjetas y listas ===== */
.card { background: var(--surface); border-radius: 22px; border: 1px solid var(--line); overflow: hidden; }
.card.pad { padding: 16px; }
.card .row-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-top: 1px solid var(--line); min-height: 56px; }
.card .row-item:first-child { border-top: 0; }
.row-item .txt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.row-item .ttl, .row-item .sub { display: block; }
.row-item .ttl { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.row-item .sub { font-size: 14px; font-weight: 600; color: var(--muted); }
.row-item svg.lead { width: 24px; height: 24px; color: var(--accent-ink); flex: none; }
.row-item svg.tail { width: 18px; height: 18px; color: var(--muted); flex: none; }
a.row-item, button.row-item { width: 100%; background: none; border: 0; text-align: left; color: inherit; text-decoration: none; }
.empty { padding: 18px 16px; color: var(--muted); font-weight: 600; font-size: 15px; }

/* ===== Chips ===== */
.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 12px; font-size: 14px; font-weight: 800; background: var(--gray-bg); color: var(--gray-ink); border: 0; min-height: 30px; }
.chip svg { width: 15px; height: 15px; }
.chip-coral { background: var(--coral-bg); color: var(--coral-ink); }
.chip-accent { background: var(--accent-soft); color: var(--accent-ink); }
.chip-blue { background: var(--blue-bg); color: var(--blue-ink); }
.chip-green { background: var(--green-bg); color: var(--green-ink); }
.chip-goal { background: var(--goal-soft); color: var(--goal-on-soft); }
button.chip { cursor: pointer; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { border: 2px solid transparent; background: var(--sunk); color: var(--ink); border-radius: 999px; padding: 10px 18px; min-height: 44px; font-weight: 800; font-size: 16px; }
.choice[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }

/* ===== Segmentos y pestañas internas ===== */
.seg { display: flex; background: var(--sunk); border-radius: 18px; padding: 4px; gap: 2px; }
.seg button { flex: 1; border: 0; background: transparent; color: var(--muted); font-weight: 800; font-size: 16px; padding: 10px 6px; border-radius: 14px; min-height: 44px; white-space: nowrap; }
.seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(22, 22, 29, 0.08); }

/* ===== Formularios ===== */
.input, .select, .textarea { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 14px 16px; font-size: 17px; font-weight: 600; min-height: 48px; }
.input::placeholder, .textarea::placeholder { color: var(--muted); font-weight: 500; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 14px; font-weight: 700; color: var(--muted); }
.card .input, .card .select, .card .textarea { background: var(--bg); }
.inline { display: flex; gap: 8px; align-items: stretch; }
.inline .input { flex: 1; min-width: 0; }
.checkline { display: flex; gap: 12px; align-items: center; min-height: 44px; font-weight: 600; font-size: 15px; }
.checkline input { width: 22px; height: 22px; accent-color: var(--accent); }
.switch { width: 46px; height: 28px; border-radius: 999px; border: 0; background: #C4C5CF; position: relative; flex: none; padding: 0; transition: background 0.15s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform 0.15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch[aria-checked="true"] { background: var(--accent); }
.switch[aria-checked="true"] i { transform: translateX(18px); }
.switch::after { content: ''; position: absolute; inset: -8px -4px; }

/* ===== Check circular ===== */
.check { width: 30px; height: 30px; flex: none; border-radius: 50%; border: 2px solid var(--ring); background: transparent; display: grid; place-items: center; padding: 0; position: relative; }
.check::before { content: ''; position: absolute; inset: -8px; }
.check.on { background: var(--c, var(--accent)); border-color: var(--c, var(--accent)); }
.check svg { width: 16px; height: 16px; color: #fff; stroke-width: 2.600; display: none; }
.check.on svg { display: block; }
.check.small { width: 24px; height: 24px; }
.check.small svg { width: 13px; height: 13px; }

/* ===== Barra inferior ===== */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; justify-content: center; padding: 0 0 env(safe-area-inset-bottom, 0px); background: var(--bg); border-top: 1px solid var(--line); }
.tabbar-in { display: flex; width: 100%; max-width: 560px; min-height: 66px; }
.tab { flex: 1; border: 0; background: transparent; color: var(--muted); display: grid; justify-items: center; align-content: center; gap: 3px; font-size: 11px; font-weight: 800; padding: 8px 2px; min-width: 0; }
.tab svg { width: 26px; height: 26px; }
.tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab[aria-current="page"] { color: var(--accent); }
.tab.goal[aria-current="page"] { color: var(--goal-ink); }

/* ===== Hoy ===== */
.main-card { background: var(--fill); color: #fff; border-radius: 26px; padding: 20px; display: grid; gap: 12px; }
.main-card .head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.main-card .tag, .main-card .label { font-size: 13px; font-weight: 800; }
.main-card .tag { background: rgba(0, 0, 0, 0.16); padding: 4px 10px; border-radius: 999px; }
.main-card .title { font-size: 26px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; overflow-wrap: normal; hyphens: none; }
.main-card .step { font-size: 15px; font-weight: 600; background: rgba(0, 0, 0, 0.16); border-radius: 14px; padding: 10px 12px; }
.main-card .go { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.main-card .go .btn { background: #fff; color: var(--ink-on-fill); }
.main-card .go .small { color: #fff; }
.main-card .link { background: none; border: 0; color: #fff; font-weight: 800; text-decoration: underline; padding: 10px 4px; min-height: 44px; }
.main-empty { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 18px; display: grid; gap: 12px; }
.main-empty h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }

.retomar { background: var(--accent-soft); border-radius: 26px; padding: 20px; display: grid; gap: 12px; }
.retomar h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.retomar .goal { background: var(--surface); border-radius: 16px; padding: 12px 14px; }
.retomar .goal b { display: block; font-size: 22px; font-weight: 800; color: var(--accent-ink); }
.retomar details summary { cursor: pointer; font-weight: 800; color: var(--accent-ink); padding: 8px 0; min-height: 44px; display: flex; align-items: center; }
.retomar ul { margin: 6px 0; padding-left: 20px; }
.notice { background: var(--green-bg); color: var(--green-ink); border-radius: 18px; padding: 14px 16px; font-weight: 600; font-size: 15px; }
.notice b { font-weight: 800; }
.notice.info { background: var(--accent-soft); color: var(--accent-ink); }
.notice.warn { background: var(--coral-bg); color: var(--coral-ink); }

.timeline { display: grid; gap: 8px; }
.tl-row { display: flex; gap: 12px; align-items: stretch; }
.tl-time { width: 44px; flex: none; font-size: 13px; font-weight: 700; color: var(--muted); padding-top: 14px; font-variant-numeric: tabular-nums; }
.tl-card { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 16px; padding: 10px 12px; border: 1px solid var(--line); min-height: 56px; text-align: left; }
.tl-card.hot { background: var(--goal-soft); border-color: transparent; }
.tl-bar { width: 6px; align-self: stretch; border-radius: 3px; background: var(--c, var(--accent)); flex: none; }
.tl-card .t { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; overflow-wrap: normal; hyphens: none; }
.tl-card .s { font-size: 14px; font-weight: 700; color: var(--muted); }
.tl-card.hot .s { color: var(--goal-on-soft); }
.tl-card .grow { flex: 1; min-width: 0; display: grid; gap: 1px; }

.habit-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); min-height: 60px; }
.habit-row:first-child { border-top: 0; }
.habit-row .txt { flex: 1; min-width: 0; }
.habit-row .t { font-size: 16px; font-weight: 700; }
.dots { display: flex; gap: 3px; }
.dot { width: 9px; height: 9px; border-radius: 3px; background: var(--sunk); }
.dot.on { background: var(--c, var(--accent)); }
.dot.today { box-shadow: 0 0 0 1.500px var(--ink); }

.nudge { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 14px 16px; }
.nudge svg { width: 26px; height: 26px; color: var(--accent); flex: none; }
.nudge .txt { flex: 1; font-weight: 800; }
.nudge .btn { min-height: 44px; padding: 10px 16px; font-size: 15px; }

/* ===== Tareas ===== */
.quick-add { display: flex; gap: 8px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 6px 6px 6px 18px; }
.quick-add input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 17px; font-weight: 600; padding: 10px 0; outline-offset: 4px; }
.quick-add input::placeholder { color: var(--muted); font-weight: 500; }
.quick-add button { width: 52px; height: 44px; border: 0; border-radius: 16px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.quick-add button svg { width: 22px; height: 22px; }
.area-head { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; letter-spacing: -0.01em; margin: 6px 0 -4px; }
.area-head i { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--muted)); flex: none; }
.area-head button { all: unset; cursor: pointer; display: inline-flex; gap: 10px; align-items: center; min-height: 44px; }
.task-card { background: var(--surface); border-radius: 22px; border: 1px solid var(--line); overflow: hidden; }
.task-row { display: flex; gap: 14px; padding: 14px 16px; border-top: 1px solid var(--line); align-items: flex-start; }
.task-row:first-child { border-top: 0; }
.task-row .check { margin-top: 2px; }
.task-row .body { flex: 1; min-width: 0; display: grid; gap: 6px; text-align: left; background: none; border: 0; padding: 0; color: inherit; }
.ttl-btn { all: unset; cursor: pointer; display: block; min-height: 28px; box-sizing: border-box; }
.ttl-btn.grow { flex: 1; min-width: 0; }
.ttl-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.task-row .ttl { font-size: 17px; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; overflow-wrap: break-word; hyphens: none; }
.task-row.done .ttl { color: var(--muted); text-decoration: line-through; font-weight: 700; }
.task-row .meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.task-row .meta .small { font-weight: 600; }
.task-row.sub { padding-left: 52px; padding-top: 8px; padding-bottom: 8px; border-top: 0; align-items: center; }
.task-row.sub .ttl { font-size: 16px; font-weight: 600; }
.task-row.sub.done .ttl { font-weight: 600; }
.sec-count { font-size: 14px; font-weight: 800; color: var(--muted); }
.heading-block { background: var(--surface); border-radius: 22px; border: 1px solid var(--line); overflow: hidden; }
.heading-block + .heading-block { margin-top: 12px; }
.heading-head { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px 6px; }
.heading-head h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.pbar { height: 8px; border-radius: 4px; background: var(--sunk); overflow: hidden; flex: 1; }
.pbar i { display: block; height: 100%; border-radius: 4px; background: var(--c, var(--accent)); transition: width 0.4s ease; }
.proj-progress { display: flex; align-items: center; gap: 12px; }
.proj-progress .sec-count { font-size: 16px; }
.up-day { font-size: 14px; font-weight: 800; color: var(--muted); margin: 4px 0 -6px; }

/* ===== Hoja de nueva tarea ===== */
.sheet-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.sheet-top .ttl { font-size: 18px; font-weight: 800; }
.sheet-top .l { justify-self: start; } .sheet-top .r { justify-self: end; }
.sheet-top button { background: none; border: 0; font-weight: 800; font-size: 17px; padding: 10px 4px; min-height: 44px; }
.sheet-top .r { color: var(--accent); }
.sheet-top .l { color: var(--muted); }
.title-input { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; padding: 18px 18px; border-radius: 22px; min-height: 64px; }
.field-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-top: 1px solid var(--line); min-height: 64px; }
.field-row:first-child { border-top: 0; }
.field-row svg.lead { width: 24px; height: 24px; color: var(--accent-ink); flex: none; }
.field-row .grow { flex: 1; min-width: 0; display: grid; gap: 4px; }
.field-row .lab { font-size: 14px; font-weight: 700; color: var(--muted); }
.field-row .val { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.field-row input, .field-row select { border: 1px solid var(--line); background: var(--bg); border-radius: 12px; padding: 8px 10px; font-size: 16px; font-weight: 700; min-height: 44px; }
.field-row input[type="date"] { min-width: 150px; }
.note-box { background: var(--accent-soft); color: var(--accent-ink); border-radius: 18px; padding: 14px 16px; font-weight: 700; font-size: 15px; }
.sub-edit { display: flex; gap: 10px; align-items: center; padding: 8px 16px; border-top: 1px solid var(--line); }
.sub-edit input { flex: 1; border: 0; background: transparent; font-size: 16px; font-weight: 600; min-height: 44px; }

/* ===== Importar ===== */
.code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 14px; font-weight: 500; line-height: 1.7; min-height: 210px; resize: vertical; }
.legend { display: flex; flex-wrap: wrap; gap: 8px; }
.legend .chip { font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.preview { background: var(--green-bg); color: var(--green-ink); border-radius: 22px; padding: 16px 18px; display: grid; gap: 4px; }
.preview h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.preview.empty-state { background: var(--sunk); color: var(--muted); }
.warn-list { background: var(--coral-bg); color: var(--coral-ink); border-radius: 18px; padding: 12px 16px; font-size: 14px; font-weight: 600; }
.warn-list ul { margin: 6px 0 0; padding-left: 18px; }

/* ===== Metas ===== */
.goal-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.goal-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--sunk); color: var(--muted); font-weight: 800; font-size: 17px; }
.goal-chip svg { width: 18px; height: 18px; }
.goal-chip[aria-current="true"] { background: var(--fill); color: #fff; }
.hero { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.hero .big { font-size: 60px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero .big small { font-size: 24px; letter-spacing: -0.02em; margin: 0 4px 0 2px; }
.hero-cap { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hero-cap .small { flex: 1; }
.exam-chip { background: var(--goal-soft); color: var(--goal-on-soft); font-weight: 800; border-radius: 999px; padding: 8px 14px; font-size: 14px; max-width: 45%; text-align: center; }
.heat { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); gap: 4px; }
.heat i { aspect-ratio: 1; border-radius: 6px; background: var(--sunk); display: block; }
.heat i.l1 { background: color-mix(in srgb, var(--goal) 22%, #fff); }
.heat i.l2 { background: color-mix(in srgb, var(--goal) 42%, #fff); }
.heat i.l3 { background: color-mix(in srgb, var(--goal) 68%, #fff); }
.heat i.l4 { background: var(--goal); }
.heat i.today { box-shadow: 0 0 0 2px var(--ink); }
.heat i.future { opacity: 0; }
.heat-legend { display: flex; align-items: center; gap: 4px; justify-content: flex-end; margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--muted); }
.heat-legend i { width: 11px; height: 11px; border-radius: 3px; display: block; }
.area-item { padding: 14px 16px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.area-item:first-child { border-top: 0; }
.area-item .head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.area-item .name { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; background: none; border: 0; padding: 0; text-align: left; min-height: 32px; }
.area-item .pct { font-size: 19px; font-weight: 800; color: var(--on-white); font-variant-numeric: tabular-nums; }
.area-item .pbar { --c: var(--goal); }
.area-edit { display: grid; gap: 10px; padding-top: 6px; }

.goal-admin { padding: 16px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.goal-admin:first-child { border-top: 0; }
.goal-admin .head { display: flex; gap: 14px; align-items: center; }
.goal-admin .sw { width: 52px; height: 52px; border-radius: 16px; background: var(--c); flex: none; }
.goal-admin .txt { flex: 1; min-width: 0; }
.goal-admin .nm { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; background: none; border: 0; padding: 0; text-align: left; overflow-wrap: normal; hyphens: none; min-height: 30px; }
.goal-admin.off .nm, .goal-admin.off .sw { opacity: 0.6; }
.pin-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; font-weight: 800; font-size: 15px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); }
.pin-chip svg { width: 16px; height: 16px; }
.pin-chip.on { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; justify-items: center; }
.swatch { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--c); position: relative; padding: 0; display: grid; place-items: center; }
.swatch svg { width: 20px; height: 20px; color: #fff; display: none; stroke-width: 2.600; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--c); }
.swatch[aria-pressed="true"] svg { display: block; }
.hex-row { display: flex; align-items: center; gap: 12px; background: var(--bg); border-radius: 16px; padding: 8px 8px 8px 14px; }
.hex-row i { width: 22px; height: 22px; border-radius: 50%; background: var(--c); flex: none; }
.hex-row input[type="text"] { flex: 1; min-width: 0; border: 0; background: transparent; font-weight: 800; font-size: 17px; text-transform: uppercase; min-height: 40px; }
.hex-row label.btn { min-height: 44px; padding: 8px 16px; font-size: 15px; background: var(--accent-soft); color: var(--accent-ink); cursor: pointer; position: relative; }
.hex-row input[type="color"] { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.target-box { display: grid; gap: 10px; }
.target-num { font-size: 40px; font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }

/* ===== Enfoque ===== */
.focus { position: fixed; inset: 0; z-index: 50; background: var(--fill); color: #fff; display: flex; flex-direction: column; padding: calc(16px + env(safe-area-inset-top, 0px)) 24px calc(22px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; }
.focus .bar { display: flex; justify-content: space-between; align-items: center; }
.focus .x { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.18); color: #fff; display: grid; place-items: center; }
.focus .x svg { width: 22px; height: 22px; }
.focus .mode-pill { background: rgba(0, 0, 0, 0.18); color: #fff; font-weight: 800; font-size: 14px; padding: 8px 14px; border-radius: 999px; }
.focus .mode-pill.white { background: #fff; color: var(--ink-on-fill); }
.focus .what { font-size: 15px; font-weight: 800; margin-top: 22px; }
.focus .task { font-size: 30px; font-weight: 800; line-height: 1.08; letter-spacing: -0.025em; overflow-wrap: normal; hyphens: none; margin-top: 2px; }
.focus .stage { flex: 1; display: grid; place-items: center; align-content: center; gap: 14px; min-height: 340px; }
.ring-wrap { position: relative; width: min(290px, 74vw); aspect-ratio: 1; display: grid; place-items: center; }
.ring-wrap svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring-wrap .rot { transform: rotate(-90deg); transform-origin: 50% 50%; }
.ring-wrap circle { fill: none; }
.ring-wrap .track { stroke: rgba(255, 255, 255, 0.28); stroke-width: 5; }
.ring-wrap .prog { stroke: #fff; stroke-width: 5; stroke-linecap: round; }
.ring-wrap .r1 { stroke: #fff; stroke-width: 2; } .ring-wrap .r2 { stroke: rgba(255,255,255,.62); stroke-width: 2; } .ring-wrap .r3 { stroke: rgba(255,255,255,.4); stroke-width: 2; } .ring-wrap .r4 { stroke: rgba(255,255,255,.28); stroke-width: 2; }
.clock { position: relative; text-align: center; }
.clock .time { font-size: clamp(60px, 19vw, 84px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.clock .cap { font-size: 16px; font-weight: 800; margin-top: 4px; }
.focus .hint { text-align: center; font-size: 17px; font-weight: 500; max-width: 28ch; }
.focus .info2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.focus .info-card { background: rgba(0, 0, 0, 0.18); border-radius: 22px; padding: 14px 16px; display: grid; gap: 4px; align-content: start; font-weight: 800; }
.focus .info-card svg { width: 24px; height: 24px; }
.focus .info-card .l { font-size: 14px; font-weight: 700; }
.focus .info-card .v { font-size: 20px; font-variant-numeric: tabular-nums; }
.focus .park { display: flex; gap: 8px; background: rgba(0, 0, 0, 0.18); border-radius: 22px; padding: 8px 8px 8px 18px; margin-bottom: 12px; align-items: center; }
.focus .park input { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; font-size: 16px; font-weight: 600; min-height: 44px; }
.focus .park input::placeholder { color: #fff; opacity: 1; font-weight: 500; }
.focus .park button { border: 0; border-radius: 16px; background: rgba(255, 255, 255, 0.92); color: var(--ink-on-fill); font-weight: 800; padding: 0 18px; min-height: 44px; }
.focus .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.focus .actions .btn { min-height: 52px; }
.focus .btn-glass { background: rgba(0, 0, 0, 0.2); color: #fff; }
.focus .btn-main { background: #fff; color: var(--ink-on-fill); }
.focus .banner { background: #fff; color: var(--ink); border-radius: 22px; padding: 14px 16px; display: grid; gap: 10px; margin-top: 14px; }
.focus .banner b { font-size: 17px; font-weight: 800; }
.focus .banner .row { display: flex; gap: 8px; flex-wrap: wrap; }
.focus .banner .btn { min-height: 44px; padding: 8px 16px; font-size: 15px; }
.focus .link-btn { background: none; border: 0; color: #fff; font-weight: 800; text-decoration: underline; min-height: 44px; padding: 8px; }
.focus-sheet { flex: 1; display: grid; align-content: center; gap: 16px; max-width: 460px; width: 100%; margin: 0 auto; }
.focus-sheet h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; }
.focus-sheet p { font-size: 18px; font-weight: 500; }
.focus-sheet .field > span { color: #fff; }
.focus-sheet .card, .focus-sheet .logform { background: #fff; color: var(--ink); border-radius: 26px; padding: 18px; display: grid; gap: 14px; }
.focus-sheet .logform .field > span { color: var(--muted); }
.focus-sheet .logform .choice-row .choice { background: var(--sunk); }
.focus-sheet .logform .choice[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); }

/* ===== Hoja para empezar sesión ===== */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(22, 22, 29, 0.45); display: flex; align-items: flex-end; justify-content: center; }
.bsheet { background: var(--bg); width: 100%; max-width: 560px; border-radius: 28px 28px 0 0; padding: 22px 20px calc(24px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 16px; max-height: 92vh; overflow-y: auto; }
.bsheet h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }

/* ===== Cierre (noche) ===== */
body.night { background: var(--night); }
.night-screen { position: fixed; inset: 0; z-index: 30; background: var(--night); color: #fff; overflow-y: auto; display: flex; flex-direction: column; padding: calc(16px + env(safe-area-inset-top, 0px)) 22px calc(24px + env(safe-area-inset-bottom, 0px)); }
.night-in { width: 100%; max-width: 560px; margin: 0 auto; flex: 1; display: flex; flex-direction: column; gap: 14px; }
.steps { display: flex; gap: 8px; }
.steps i { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.28); }
.steps i.on { background: #fff; }
.night .kick { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 800; color: #D6D4F0; margin-top: 8px; }
.night .kick svg { width: 20px; height: 20px; }
.night h1 { color: #fff; font-size: 34px; }
.night .sub { color: #D6D4F0; font-size: 17px; font-weight: 500; }
.night h3 { font-size: 18px; font-weight: 800; margin-top: 8px; }
.opts { display: grid; gap: 10px; }
.opts.c3 { grid-template-columns: repeat(3, 1fr); } .opts.c5 { grid-template-columns: repeat(5, 1fr); gap: 8px; }
.opt { border: 0; background: var(--night-card); color: #fff; border-radius: 22px; min-height: 84px; display: grid; justify-items: center; align-content: center; gap: 6px; font-weight: 800; font-size: 16px; padding: 10px 4px; }
.opt svg { width: 30px; height: 30px; }
.opt[aria-pressed="true"] { background: #fff; color: var(--night); }
.opts.c5 .opt { font-size: 14px; border-radius: 20px; min-height: 92px; }
.night .btn-next { margin-top: auto; background: #fff; color: var(--night); width: 100%; min-height: 56px; font-size: 18px; }
.night .btn-skip { background: transparent; color: #D6D4F0; width: 100%; }
.night .card-n { background: var(--night-card); border-radius: 22px; padding: 14px 16px; font-weight: 500; font-size: 16px; }
.night .card-n b { font-weight: 800; }
.win { display: flex; gap: 10px; align-items: baseline; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.14); }
.win:first-child { border-top: 0; }
.win b { font-weight: 800; }
.pend { display: grid; gap: 10px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.14); }
.pend:first-child { border-top: 0; }
.pend .t { font-weight: 800; font-size: 17px; overflow-wrap: normal; hyphens: none; }
.pend .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.pend .acts .chip { background: rgba(255,255,255,.16); color: #fff; min-height: 44px; padding: 8px 16px; font-size: 15px; }
.pend .acts .chip[aria-pressed="true"] { background: #fff; color: var(--night); }
.night .field > span { color: #D6D4F0; }
.night .input, .night .select { background: var(--night-card); color: #fff; border-color: transparent; }
.night .input::placeholder { color: #C9C6E6; }
.night .select option { color: #000; }

.wheels { display: grid; grid-template-columns: 1fr 1fr; gap: 0; position: relative; margin: 8px 0; }
.wheel-band { position: absolute; left: 0; right: 0; top: 50%; height: 56px; transform: translateY(-50%); background: var(--night-card); border-radius: 18px; pointer-events: none; }
.wheel { position: relative; height: 280px; overflow-y: scroll; scroll-snap-type: y mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 112px 0; text-align: center; overscroll-behavior: contain; outline-offset: -4px; border-radius: 18px; }
.wheel::-webkit-scrollbar { display: none; }
.wheel .it { height: 56px; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; font-size: 36px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: #fff; opacity: var(--o, 0.3); transition: opacity 0.1s; }
.wheel-unit { position: absolute; top: 50%; transform: translateY(-50%); font-weight: 800; font-size: 18px; color: #D6D4F0; pointer-events: none; }
.wheel-unit.h { left: calc(25% + 38px); } .wheel-unit.m { right: 6%; }
.sleep-val { background: var(--night-card); border-radius: 22px; padding: 14px 16px; display: grid; gap: 2px; }
.sleep-val b { font-size: 18px; font-weight: 800; }

/* ===== Semana ===== */
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.metric { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 16px; display: grid; align-content: start; gap: 2px; }
.metric b { font-size: 34px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: normal; hyphens: none; }
.metric span { font-size: 14px; font-weight: 700; color: var(--muted); }
.metric em { font-style: normal; font-size: 14px; font-weight: 800; color: var(--green-ink); margin-top: 8px; }
.metric em.neutral { color: var(--muted); font-weight: 700; }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; align-items: end; height: 220px; padding: 22px 18px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; }
.bars .col { display: grid; grid-template-rows: 1fr auto; height: 100%; gap: 8px; justify-items: center; }
.bars .col .b { width: 100%; align-self: end; background: #CFCAF3; border-radius: 10px 10px 4px 4px; min-height: 4px; }
.bars .col.best .b { background: var(--accent); }
.bars .col span { font-size: 13px; font-weight: 800; color: var(--muted); }
.bars .col.today span { color: var(--ink); }
.insight { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-top: 1px solid var(--line); font-size: 17px; font-weight: 500; line-height: 1.35; }
.insight:first-child { border-top: 0; }
.insight i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-top: 8px; flex: none; }
.insight.calm i { background: var(--green-ink); }
.week-nav { display: flex; gap: 8px; }
.week-nav button:disabled { opacity: 0.35; }

/* ===== Tú ===== */
.mod-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; flex: none; background: var(--c); }
.mod-ico svg { width: 26px; height: 26px; }

/* ===== Hábitos ===== */
.habit-card { padding: 16px; display: grid; gap: 12px; }
.habit-card .head { display: flex; align-items: center; gap: 10px; }
.habit-card .nm { font-size: 19px; font-weight: 800; flex: 1; letter-spacing: -0.01em; overflow-wrap: normal; hyphens: none; }
.hgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.hgrid .wd { text-align: center; font-size: 12px; font-weight: 800; color: var(--muted); }
.cell { height: 40px; border-radius: 10px; border: 0; padding: 0; background: var(--sunk); }
.cell.on { background: var(--c); }
.cell.today { box-shadow: 0 0 0 2px var(--ink); }
.cell.future { opacity: 0.35; pointer-events: none; }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--sunk); font-weight: 800; display: grid; place-items: center; }
.stepper button svg { width: 18px; height: 18px; }
.habit-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ===== Plan (versión 0) ===== */
.plan-step { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-top: 1px solid var(--line); }
.plan-step:first-child { border-top: 0; }
.plan-step .n { width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-weight: 800; display: grid; place-items: center; flex: none; }
.plan-step p { flex: 1; font-size: 17px; font-weight: 600; }
.reserve-row { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.reserve-row:first-child { border-top: 0; }
.reserve-row .nm { flex: 1; min-width: 120px; font-size: 17px; font-weight: 700; }

/* ===== Avisos ===== */
.toast { position: fixed; left: 50%; top: calc(12px + env(safe-area-inset-top, 0px)); transform: translate(-50%, -160%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 15px; font-weight: 700; z-index: 90; max-width: 92vw; text-align: center; transition: transform 0.25s ease; pointer-events: none; }
.toast.show { transform: translate(-50%, 0); }

@keyframes ripple { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c, var(--accent)) 55%, transparent); } to { box-shadow: 0 0 0 18px color-mix(in srgb, var(--c, var(--accent)) 0%, transparent); } }
@keyframes pop { 0% { transform: scale(0.7); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
.check.pop, .cell.pop { animation: pop 0.35s ease, ripple 0.6s ease-out; }
.celebrate { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; pointer-events: none; }
.celebrate i { position: absolute; width: 90px; height: 90px; border-radius: 50%; border: 3px solid var(--accent); opacity: 0; animation: bloom 1.3s ease-out forwards; background: transparent; }
.celebrate i:nth-child(2) { animation-delay: 0.15s; } .celebrate i:nth-child(3) { animation-delay: 0.3s; }
.celebrate b { position: relative; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 17px; animation: fadeout 1.6s ease forwards; }
@keyframes bloom { 0% { transform: scale(0.4); opacity: 0.9; } 100% { transform: scale(5); opacity: 0; } }
@keyframes fadeout { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .check.pop, .cell.pop, .celebrate i { animation: none !important; }
  .celebrate b { animation: none !important; }
}
@media (max-width: 360px) {
  h1 { font-size: 28px; }
  .hero .big { font-size: 48px; }
}

/* ===== Dinero ===== */
.money-card { background: var(--fill); color: #fff; border-radius: 26px; padding: 20px; display: grid; gap: 10px; }
.money-card .lab { font-size: 16px; font-weight: 800; }
.money-card .amt { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; }
.money-card .amt b { font-size: 56px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.money-card .amt span { font-size: 18px; font-weight: 800; }
.money-card .bar { height: 10px; border-radius: 5px; background: rgba(0, 0, 0, 0.22); overflow: hidden; }
.money-card .bar i { display: block; height: 100%; background: #fff; border-radius: 5px; }
.money-card .note { font-size: 16px; font-weight: 800; }
.money-empty { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 18px; display: grid; gap: 12px; }
.money-empty h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cta-row .btn { min-height: 64px; line-height: 1.15; }
.wait-row { display: grid; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--line); }
.wait-row:first-child { border-top: 0; }
.wait-row .top-line { display: flex; align-items: center; gap: 12px; }
.wait-row .top-line svg { width: 24px; height: 24px; color: var(--accent-ink); flex: none; }
.wait-row .txt { flex: 1; min-width: 0; }
.wait-row .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.wait-row .acts .chip { min-height: 44px; padding: 8px 16px; font-size: 15px; }
.exp-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line); }
.exp-row:first-child { border-top: 0; }
.exp-row .txt { flex: 1; min-width: 0; display: grid; gap: 4px; justify-items: start; }
.exp-row .ttl { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; overflow-wrap: normal; hyphens: none; }
.exp-row .amt { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.payday-card { background: var(--green-bg); color: var(--green-ink); border-radius: 22px; padding: 14px 16px; display: flex; align-items: center; gap: 14px; font-weight: 800; font-size: 17px; line-height: 1.3; }
.payday-card .txt { flex: 1; }
.payday-card.off { background: var(--sunk); color: var(--ink); }
.save-card { padding: 16px; display: grid; gap: 8px; }
.save-card .row { display: flex; align-items: center; gap: 14px; }
.save-card .grow { flex: 1; min-width: 0; }
.goal-mini { display: grid; gap: 8px; padding: 14px 16px; border-top: 1px solid var(--line); }
.goal-mini:first-child { border-top: 0; }
.goal-mini .row { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.goal-mini .ttl { font-size: 18px; font-weight: 800; }
a.goal-mini { text-decoration: none; color: inherit; }
.stat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat3 .metric { padding: 12px; }
.stat3 .metric b { font-size: 24px; }
.hero-money { font-size: 56px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.glance { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 14px 16px; text-decoration: none; color: inherit; }
.glance b { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.glance .small { display: block; }

/* Gasto */
.amount-big { text-align: center; font-size: 64px; font-weight: 800; letter-spacing: -0.05em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.amount-sub { text-align: center; font-size: 16px; font-weight: 800; color: var(--muted); margin-top: -6px; }
.cat-row { display: flex; flex-wrap: wrap; gap: 10px; }
.cat { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 0 20px; min-height: 48px; font-weight: 800; font-size: 17px; }
.cat[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.impulse-row { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 14px 16px; }
.impulse-row .txt { flex: 1; }
.impulse-row b { display: block; font-size: 18px; font-weight: 800; }
.impulse-row .switch[aria-checked="true"] { background: #B23A22; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.key { border: 1px solid var(--line); background: var(--surface); border-radius: 22px; min-height: 60px; font-size: 28px; font-weight: 800; display: grid; place-items: center; }
.key svg { width: 28px; height: 28px; }
.key:active { background: var(--sunk); }

/* ===== Revisión ===== */
.rev-step { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.rev-step.cur { border: 2px solid var(--accent); }
.rev-step.omit { background: transparent; border-style: dashed; }
.rev-head { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; background: none; border: 0; text-align: left; min-height: 72px; }
.rev-n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 20px; background: var(--sunk); color: var(--muted); flex: none; }
.rev-n svg { width: 22px; height: 22px; stroke-width: 2.600; }
.rev-n.done { background: #1F7A55; color: #fff; }
.rev-n.cur { background: var(--accent); color: #fff; }
.rev-head .txt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.rev-head b { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.rev-head small { font-size: 14px; font-weight: 700; color: var(--muted); }
.rev-head .min { font-size: 15px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.rev-body { padding: 4px 16px 16px; display: grid; gap: 14px; }
.rev-subs { display: grid; gap: 4px; }
.rev-sub { display: flex; align-items: center; gap: 14px; min-height: 52px; font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.rev-sub.done span { color: var(--muted); }
.rev-sub .check { --c: var(--accent); }
.rev-block { display: grid; gap: 10px; background: var(--bg); border-radius: 18px; padding: 14px; }
.rev-block h3 { font-size: 16px; font-weight: 800; }
.rev-block .input, .rev-block .select, .rev-block .textarea { background: var(--surface); }

/* ===== Comida y súper ===== */
.food-card { background: var(--fill); color: #fff; border-radius: 26px; padding: 20px; display: grid; gap: 10px; }
.food-card .head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; }
.food-card .head .tag { background: rgba(0, 0, 0, 0.16); padding: 4px 12px; border-radius: 999px; }
.food-card h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; overflow-wrap: normal; hyphens: none; }
.food-card p { font-size: 17px; font-weight: 600; }
.food-card .btn { background: #fff; color: var(--ink-on-fill); justify-self: start; }
.dish-row { padding: 14px 16px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.dish-row:first-child { border-top: 0; }
.dish-row .line { display: flex; align-items: center; gap: 12px; }
.dish-row .txt { flex: 1; min-width: 0; display: grid; gap: 6px; }
.dish-row .ttl { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; overflow-wrap: normal; hyphens: none; }
.dish-row button.line { all: unset; cursor: pointer; display: flex; align-items: center; gap: 12px; box-sizing: border-box; width: 100%; min-height: 56px; }
.dish-row button.line:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.pdots { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pdots i { width: 14px; height: 14px; border-radius: 4px; background: var(--sunk); }
.pdots i.on { background: var(--goal); }
.pdots span { margin-left: 8px; font-size: 15px; font-weight: 700; color: var(--muted); }
.prep-card { background: var(--green-bg); color: var(--green-ink); border-radius: 22px; padding: 14px 16px; display: grid; gap: 2px; }
.prep-card b { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.shop-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-top: 1px solid var(--line); min-height: 60px; }
.shop-row:first-child { border-top: 0; }
.shop-row { gap: 10px; }
.shop-row .meta { display: grid; justify-items: end; gap: 4px; }
.shop-row .nm { flex: 1; min-width: 6ch; font-size: 20px; font-weight: 800; letter-spacing: -0.01em; overflow-wrap: normal; hyphens: none; }
.shop-row.done .nm { text-decoration: line-through; color: var(--muted); font-weight: 700; }
.shop-row .qty { font-size: 16px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.chip-lime { background: #E7F0D6; color: #3C6A0B; }
.plan-dish { padding: 16px; display: grid; gap: 12px; }
.plan-dish h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.ing-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 16px; font-weight: 600; }
.ing-row .grow { flex: 1; min-width: 0; }

.night .check.on svg { color: var(--night); }
.night .check { border-color: rgba(255, 255, 255, 0.6); }

/* ===== Gimnasio ===== */
.gym-week { padding: 16px; display: grid; gap: 12px; }
.gym-week .top2 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.gym-week .big { font-size: 48px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.gym-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; justify-items: center; }
.gym-dot { width: 40px; height: 40px; border-radius: 50%; border: 2px solid transparent; background: var(--sunk); display: grid; place-items: center; padding: 0; position: relative; }
.gym-dot::before { content: ''; position: absolute; inset: -4px; }
.gym-dot svg { width: 20px; height: 20px; color: #fff; display: none; stroke-width: 2.600; }
.gym-dot.planned { border-color: var(--goal); background: var(--surface); }
.gym-dot.done { background: var(--fill); border-color: var(--fill); }
.gym-dot.done svg { display: block; }
.gym-dot:disabled { opacity: 0.45; }
.gym-letters { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 13px; font-weight: 800; color: var(--muted); }
.gym-next { background: var(--fill); color: #fff; border-radius: 26px; padding: 18px 20px; display: grid; gap: 4px; }
.gym-next .l { font-size: 15px; font-weight: 800; }
.gym-next b { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.gym-soft { background: var(--goal-soft); color: var(--goal-on-soft); border-radius: 22px; padding: 14px 16px; display: grid; gap: 4px; }
.gym-soft b { font-size: 18px; font-weight: 800; }
.exp-card { background: var(--accent-soft); color: var(--accent-ink); border-radius: 22px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; }
.exp-card .txt { flex: 1; display: grid; gap: 2px; }
.exp-card b { font-size: 18px; font-weight: 800; }

/* ===== Personas ===== */
.person-card { background: var(--fill); color: #fff; border-radius: 26px; padding: 20px; display: grid; gap: 10px; }
.person-card .tag { justify-self: start; background: rgba(0, 0, 0, 0.16); padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; }
.person-card h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; overflow-wrap: normal; hyphens: none; }
.person-card p { font-size: 17px; font-weight: 500; }
.person-card .acts { display: flex; gap: 10px; flex-wrap: wrap; }
.person-card .btn { background: #fff; color: var(--ink-on-fill); text-decoration: none; min-height: 48px; }
.person-card .btn.glass { background: rgba(0, 0, 0, 0.2); color: #fff; }
.person-row { display: grid; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--line); }
.person-row:first-child { border-top: 0; }
.person-row .line { all: unset; cursor: pointer; display: flex; align-items: center; gap: 14px; min-height: 56px; width: 100%; box-sizing: border-box; }
.person-row .line:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 800; flex: none; }
.person-row .txt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.person-row .ttl { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; overflow-wrap: normal; hyphens: none; }
.person-row .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.person-row .acts .chip, .person-row .acts a.chip { min-height: 44px; padding: 8px 16px; font-size: 15px; text-decoration: none; }
.chip-late { background: var(--coral-bg); color: var(--coral-ink); }
.bday-card { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 14px 16px; }
.bday-card svg { width: 26px; height: 26px; color: #6B2F85; flex: none; }
.bday-card b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }

.msg { margin: 0; white-space: pre-wrap; font-family: var(--font); font-size: 16px; font-weight: 500; line-height: 1.5; user-select: text; -webkit-user-select: text; }

/* ===== Progreso ===== */
.prog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.prog-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 16px; display: grid; gap: 10px; align-content: start; }
.prog-card h2 { font-size: 16px; font-weight: 800; color: var(--muted); line-height: 1.2; }
.prog-card .big { font-size: 34px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; }
.ubars { display: flex; gap: 8px; align-items: flex-end; height: 84px; }
.ubars i { flex: 1; border-radius: 10px 10px 4px 4px; background: #CFCAF3; min-height: 6px; display: block; }
.ubars i.cur { background: var(--accent); }
.sim-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.sim-chips .chip { font-size: 26px; font-weight: 800; min-height: 52px; padding: 6px 20px; background: var(--accent-soft); color: var(--accent-ink); letter-spacing: -0.02em; }
.exp-box { display: grid; gap: 2px; border-radius: 18px; padding: 12px 14px; }
.exp-box b { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.exp-box span { font-size: 15px; font-weight: 800; }
.exp-box.with { background: var(--goal-soft, #FCE8E3); color: var(--goal-on-soft, #8A3A0F); }
.exp-box.without { background: var(--gray-bg); color: var(--gray-ink); }
.sys-card { background: var(--accent-soft); color: var(--accent-ink); border-radius: 22px; padding: 14px 16px; display: grid; gap: 8px; }
.sys-card b { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }

/* ===== Rutinas ===== */
.rt-card { padding: 16px; display: grid; gap: 12px; }
.rt-card .head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rt-card h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; flex: 1; min-width: 0; overflow-wrap: normal; hyphens: none; }
.rt-step-edit { display: grid; grid-template-columns: 1fr 72px; gap: 8px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.rt-step-edit:first-child { border-top: 0; }
.rt-step-edit .acts { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rt-step-edit input[type="text"], .rt-step-edit input[type="number"], .rt-step-edit input[type="time"] { border: 1px solid var(--line); background: var(--bg); border-radius: 12px; padding: 8px 10px; font-size: 16px; font-weight: 700; min-height: 44px; width: 100%; }
.run-screen { position: fixed; inset: 0; z-index: 30; background: var(--fill); color: #fff; display: flex; flex-direction: column; padding: calc(16px + env(safe-area-inset-top, 0px)) 24px calc(24px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; }
.run-in { width: 100%; max-width: 560px; margin: 0 auto; flex: 1; display: flex; flex-direction: column; gap: 16px; }
.run-screen .x { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.18); color: #fff; display: grid; place-items: center; }
.run-screen .x svg { width: 22px; height: 22px; }
.run-screen .pill { background: rgba(0, 0, 0, 0.18); padding: 8px 14px; border-radius: 999px; font-weight: 800; font-size: 14px; }
.run-step { flex: 1; display: grid; align-content: center; gap: 16px; }
.run-step h1 { color: #fff; font-size: 44px; line-height: 1.05; letter-spacing: -0.03em; }
.run-step .clock { font-size: 72px; font-weight: 800; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; line-height: 1; }
.run-step p { font-size: 18px; font-weight: 600; }
.run-screen .btn-main { background: #fff; color: var(--ink-on-fill); min-height: 60px; font-size: 19px; }
.run-screen .btn-glass { background: rgba(0, 0, 0, 0.2); color: #fff; }
.glance.routines { display: grid; gap: 10px; }
.glance.routines .choice-row .chip { text-decoration: none; min-height: 44px; padding: 8px 16px; }

/* ===== Tanda 3: tres puntos, hojas del elemento, Deshacer, papelera ===== */
.more-btn { width: 44px; height: 44px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--muted); padding: 0; }
.more-btn svg { width: 22px; height: 22px; }
.more-btn:active { background: var(--sunk); }
.item-sheet .btn.danger, .btn.danger { color: var(--red-ink); }
.item-sheet .btn svg.lead { width: 20px; height: 20px; margin-right: 8px; vertical-align: -4px; }
.undo-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(96px + env(safe-area-inset-bottom, 0px)); width: min(92vw, 520px); z-index: 80; background: var(--ink); color: #fff; border-radius: 18px; padding: 8px 8px 8px 18px; display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 15px; box-shadow: 0 8px 24px rgba(22, 22, 29, 0.25); animation: undo-in 0.22s ease; }
.undo-bar span { flex: 1; min-width: 0; }
.undo-btn { background: #fff; color: var(--ink); border: 0; border-radius: 12px; min-height: 44px; padding: 0 16px; font-weight: 800; }
@keyframes undo-in { from { transform: translate(-50%, 16px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .undo-bar { animation: none; } }
.trash-row { flex-wrap: wrap; }
.trash-row .txt { flex-basis: 100%; }
.rev-prev { margin-top: 8px; }

.row-item .row-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; min-height: 44px; }
.heading-head { display: flex; align-items: center; gap: 8px; }
.heading-head h3 { flex: 1; }
.task-row .more-btn { margin: -8px -10px -8px 0; align-self: flex-start; }
.idea-text { font-weight: 600; overflow-wrap: normal; hyphens: none; }

.line-wrap { display: flex; align-items: center; gap: 2px; }
.line-wrap > .line { flex: 1; min-width: 0; }
.sim-item { display: inline-flex; align-items: center; }
.sim-item .more-btn { width: 36px; height: 36px; }
.rt-step-edit .more-btn { justify-self: end; }

/* ===== Selección múltiple ===== */
.selbox { width: 28px; height: 28px; border-radius: 9px; border: 2px solid var(--ring); background: var(--surface); display: grid; place-items: center; flex: none; padding: 0; margin-top: 2px; color: transparent; }
.selbox svg { width: 18px; height: 18px; }
.selbox.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.task-row.picked { background: var(--accent-soft); }
.sel-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(84px + env(safe-area-inset-bottom, 0px)); width: min(94vw, 540px); z-index: 35; background: var(--ink); color: #fff; border-radius: 22px; padding: 10px 12px; display: grid; gap: 8px; box-shadow: 0 8px 24px rgba(22, 22, 29, 0.28); }
.sel-bar .count { font-weight: 800; font-size: 15px; padding: 0 4px; }
.sel-bar .acts { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.sel-bar .acts::-webkit-scrollbar { display: none; }
.sel-bar button { background: rgba(255, 255, 255, 0.14); color: #fff; border: 0; border-radius: 12px; min-height: 44px; padding: 0 14px; font-weight: 800; white-space: nowrap; flex: none; }
.sel-bar button:disabled { opacity: 0.4; }
.sel-bar button.primary { background: #fff; color: var(--ink); }
.sel-bar button.danger { color: #FFB4A8; }

.sec .sec-ico { width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; }

.cierre-card { display: flex; align-items: center; gap: 12px; }
.cierre-card.done { background: var(--sunk); }
.cierre-card > svg { width: 24px; height: 24px; flex: none; }
.cierre-card .txt { flex: 1; min-width: 0; display: grid; gap: 2px; }

/* ===== Gestos ===== */
[data-ref] { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
[data-swipe], [data-drag] { touch-action: pan-y; }
[data-ref] input, [data-ref] textarea, .inline-edit { -webkit-user-select: text; user-select: text; touch-action: manipulation; }
.handle { width: 44px; height: 44px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; flex: none; padding: 0; touch-action: none; cursor: grab; margin: -8px -4px -8px -10px; }
.handle svg { width: 22px; height: 22px; }
[data-plus-drag], [data-resize] { touch-action: none; }
.task-card, .heading-block, .card { position: relative; }
.task-row, .row-item[data-ref], .habit-card[data-ref], .goal-admin[data-ref] { background: var(--surface); }
.task-row.swiping { position: relative; z-index: 1; }
.swipe-bg { position: absolute; left: 0; right: 0; display: flex; align-items: center; padding: 0 22px; font-weight: 800; font-size: 15px; color: #fff; background: var(--accent); z-index: 0; opacity: 0.85; }
.swipe-bg.right { justify-content: flex-start; }
.swipe-bg.left { justify-content: flex-end; }
.swipe-bg[data-tone="dark"] { background: var(--ink); }
.swipe-bg[data-tone="green"] { background: var(--green-ink); }
.swipe-bg.armed { opacity: 1; }
.swipe-bg.armed span { transform: scale(1.12); }
.swipe-bg span { transition: transform 0.12s ease; }
.drag-clone { position: fixed; z-index: 120; pointer-events: none; margin: 0; background: var(--surface); border-radius: 18px; box-shadow: 0 14px 34px rgba(22, 22, 29, 0.28); transform: scale(1.02); opacity: 0.96; }
.plus-clone { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 28px; font-weight: 800; }
.drag-ghost { opacity: 0.35; }
.drop-line { position: fixed; height: 3px; border-radius: 2px; background: var(--accent); z-index: 119; pointer-events: none; transform: translateY(-1px); }
.drop-line.heading { height: 5px; background: var(--ink); }
.drop-hover { outline: 2px dashed color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: -2px; }
body.dragging { overscroll-behavior: contain; }
.zone-empty { min-height: 14px; border-radius: 12px; }
.inline-edit { display: grid; gap: 10px; padding: 10px 0 4px; }
.task-row.open { background: var(--surface); box-shadow: 0 6px 18px rgba(22, 22, 29, 0.08); }
.resize-handle { display: block; height: 14px; margin: 6px -4px -8px; border-radius: 0 0 14px 14px; position: relative; }
.resize-handle::after { content: ''; position: absolute; left: 50%; bottom: 4px; width: 32px; height: 4px; border-radius: 2px; background: var(--ring); transform: translateX(-50%); }
.block-tip { position: fixed; z-index: 130; background: var(--ink); color: #fff; border-radius: 12px; padding: 6px 12px; font-weight: 800; pointer-events: none; }
.block-active { z-index: 5; position: relative; box-shadow: 0 8px 22px rgba(22, 22, 29, 0.22); }
#pull-hint { position: fixed; left: 50%; top: calc(8px + env(safe-area-inset-top, 0px)); transform: translateX(-50%); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 800; font-size: 14px; z-index: 90; }
#pull-hint.ready { background: var(--accent); color: #fff; }
.task-row.sub { padding-left: calc(20px + 32px * var(--depth, 1)); }
@media (prefers-reduced-motion: reduce) { .swipe-bg span, .drag-clone { transition: none; } }
.habit-list { display: grid; gap: 16px; }
.rt-step-edit .handle { margin: 0; }
.dish-row, .person-row, .shop-row, .habit-card, .goal-admin { position: relative; background: var(--surface); }

.zone-empty.tall { min-height: 36px; border: 2px dashed var(--ring); border-radius: 18px; }

.cal-allday { display: flex; flex-wrap: wrap; gap: 6px; }
.cal-allday .chip { background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--ink); }
.cal-allday .chip svg { width: 14px; height: 14px; margin-right: 4px; }

/* ===== Tanda 4: base ===== */
/* Títulos: ancho completo en su propia línea, nunca a media palabra. */
h1, h2, h3, .ttl, .nm { overflow-wrap: normal; word-break: normal; hyphens: none; }
h1 { font-size: clamp(26px, 8.4vw, 34px); text-wrap: balance; }
.top { flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.top .back-row { display: contents; }
.top > h1, .top .back-row > h1 { flex: 1 1 100%; order: 2; min-width: 0; }
.top .back-row > :first-child:not(h1) { order: 0; }
.top > :not(.back-row):not(h1):not(.grow) { order: 1; margin-left: auto; }
.top .back-row > :not(h1):not(:first-child) { order: 1; margin-left: auto; }
/* Fondo sólido bajo la barra de estado: nada se mezcla ni se ve borroso. */
body::before { content: ''; position: fixed; top: 0; left: 0; right: 0; height: env(safe-area-inset-top, 0px); background: var(--bg); z-index: 60; pointer-events: none; }
body.night::before { background: var(--night); }

/* ===== Tanda 4: selectores propios y ventanas flotantes ===== */
.pick-field { display: block; }
.pick-btn { width: 100%; min-height: 48px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; font-weight: 700; font-size: 17px; text-align: left; }
.pick-btn svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.pick-btn .pb-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop-sheet { gap: 12px; }
.pop-list { display: grid; max-height: 52vh; overflow-y: auto; margin: 0 -8px; }
.pop-sheet .pop-row { color: var(--ink); }
.pop-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 52px; padding: 10px 14px; background: none; border: 0; border-radius: 14px; text-align: left; font-size: 17px; font-weight: 700; color: inherit; }
.pop-row .txt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.pop-row .ttl { font-weight: 700; }
.pop-row .sub { font-size: 13px; font-weight: 600; opacity: 0.7; }
.pop-row > svg { width: 22px; height: 22px; flex: none; }
.pop-row[aria-current="true"] > svg:last-child { color: var(--accent); }
.pop-empty { padding: 14px; color: var(--muted); font-weight: 600; }
.pop-scrim { position: fixed; inset: 0; z-index: 100; background: rgba(22, 22, 29, 0.38); display: flex; align-items: center; justify-content: center; padding: 20px; }
.pop-scrim.menu { align-items: flex-end; justify-content: flex-end; padding: 0 16px calc(96px + env(safe-area-inset-bottom, 0px)); background: rgba(22, 22, 29, 0.22); }
.popover { width: min(100%, 360px); border-radius: 28px; padding: 18px 16px; max-height: 88vh; overflow-y: auto; }
.popover.dark { background: #262B33; color: #fff; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.popover.dark .pop-row:active, .popover.dark .pop-row:focus-visible { background: rgba(255, 255, 255, 0.1); }
.popover.dark .pop-row .sub, .popover.dark .pop-empty { color: #B7BDC7; opacity: 1; }
.popover.dark .pop-row.sub { color: #D5D9E0; min-height: 46px; font-size: 16px; }
.popover.dark .pop-row.sub svg { color: #B7BDC7; }
.popover.dark .pop-row.danger { color: #FFB4A8; }
.popover.dark hr { border: 0; border-top: 1px solid rgba(255, 255, 255, 0.14); margin: 6px 8px; }
.popover.menu { width: min(100%, 300px); padding: 10px 8px; }
.popover.when { touch-action: none; }
.pop-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 6px 8px; }
.pop-head h2 { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.pop-head-acts { display: flex; gap: 8px; }
.pop-x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.14); color: #fff; display: grid; place-items: center; padding: 0; }
.pop-x svg { width: 20px; height: 20px; }
.c-star { color: #F5C518; } .c-moon { color: #A9B8F3; } .c-box { color: #D9C98E; }
.pop-clear { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.pop-clear svg { width: 16px; height: 16px; }
.cal { padding: 4px 4px 8px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 8px; font-weight: 800; text-transform: capitalize; }
.cal-nav { width: 40px; height: 40px; border: 0; background: none; color: #fff; display: grid; place-items: center; border-radius: 50%; }
.cal-nav svg { width: 20px; height: 20px; }
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.cal-week span { font-size: 12px; font-weight: 700; color: #B7BDC7; padding: 4px 0; }
.cal-grid .day { height: 42px; border: 0; background: none; color: #fff; font-size: 17px; font-weight: 600; border-radius: 50%; margin: 1px auto; width: 42px; padding: 0; }
.cal-grid .day.past { color: #8A92A0; }
.cal-grid .day.today { box-shadow: inset 0 0 0 2px #F5C518; }
.cal-grid .day.sel { background: var(--accent); color: #fff; box-shadow: none; }
.nl { display: grid; gap: 8px; padding: 0 6px 10px; }
.nl .input { background: rgba(255, 255, 255, 0.1); border-color: transparent; color: #fff; }
.nl .small { color: #B7BDC7; }
.pop-scroll { max-height: 42vh; overflow-y: auto; }
.pop-new { display: flex; gap: 8px; padding: 10px 6px 0; }
.pop-new .input { flex: 1; background: rgba(255, 255, 255, 0.1); border-color: transparent; color: #fff; }
.pop-new .btn { min-height: 48px; background: rgba(255, 255, 255, 0.16); color: #fff; }
.wheel-sheet { gap: 10px; }
.wheels.rw .wheel-band { background: var(--sunk); }
.wheels.rw .wheel .it { color: var(--ink); }
.wheels.rw .wheel-unit { color: var(--muted); }
.wheels.rw .wheel-unit.h { left: calc(25% + 34px); }
.wheel-live { text-align: center; font-weight: 800; font-size: 18px; }

/* ===== Tanda 4: Tareas al estilo de Things ===== */
:root { --blue: #3B82F6; --yellow: #F2C811; --paper: #FFFFFF; --hair: rgba(22, 22, 29, 0.09); }
.app { gap: 14px; }
/* Encabezado de página: volver y círculo de tres puntos arriba; título grande debajo, en su propia línea. */
.ph { display: grid; gap: 14px; background: var(--bg); }
.ph-bar { display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
.ph-bar .icon-btn { border: 0; background: none; }
.ph-bar .icon-btn svg { width: 26px; height: 26px; color: var(--muted); }
.ph-menu { width: 44px; height: 44px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; color: var(--muted); padding: 0; flex: none; }
.ph-menu svg { width: 28px; height: 28px; }
.ph-title { display: flex; align-items: center; gap: 12px; }
.ph-title h1 { flex: 1; min-width: 0; font-size: clamp(26px, 8vw, 34px); }
.lead-ico { width: 32px; height: 32px; flex: none; display: grid; place-items: center; }
.lead-ico svg, svg.lead-ico { width: 32px; height: 32px; }
.lead-pie { display: grid; flex: none; }
.ph-sub { color: var(--muted); font-size: 15px; font-weight: 600; margin-top: -6px; }
body { background: var(--paper); }
.app { background: var(--paper); }
/* Lista principal */
.tl-main, .page { display: grid; gap: 4px; align-content: start; }
.tl-top { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.quickfind { flex: 1; min-height: 44px; border-radius: 14px; border: 0; background: var(--sunk); color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 17px; font-weight: 600; }
.quickfind svg { width: 20px; height: 20px; }
.lists { display: grid; }
.lgap { height: 14px; }
.lrow { display: flex; align-items: center; gap: 16px; min-height: 52px; color: inherit; text-decoration: none; font-size: 19px; font-weight: 700; }
.lrow .li { width: 26px; height: 26px; display: grid; place-items: center; flex: none; }
.lrow .li svg { width: 26px; height: 26px; }
.lrow .ln { flex: 1; min-width: 0; }
.lrow .lc { color: var(--muted); font-weight: 600; font-size: 17px; }
.tl-hint, .empty-line { color: var(--muted); font-weight: 600; padding: 18px 0; }
.area { border-top: 1px solid var(--hair); margin-top: 8px; padding-top: 6px; }
.area-head { display: flex; align-items: center; min-height: 52px; gap: 6px; }
.area-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; font-size: 19px; }
.area-link b { font-weight: 800; min-width: 0; }
.area-ico { width: 26px; height: 26px; flex: none; }
.area-link .emoji { font-size: 20px; }
.area-fold { width: 44px; height: 44px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; padding: 0; }
.area-fold svg { width: 20px; height: 20px; }
.area-projects { display: grid; }
.prow { display: flex; align-items: center; gap: 14px; min-height: 48px; color: inherit; text-decoration: none; font-size: 18px; font-weight: 500; }
.prow .pn { min-width: 0; }
.rows { display: grid; }
.grp-h { font-size: 15px; font-weight: 800; color: var(--muted); padding: 18px 0 4px; display: flex; align-items: center; gap: 8px; }
.grp-h svg { width: 18px; height: 18px; }
.grp-h.night { color: #4C54A8; }
/* Filas planas */
.task-row { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; border: 0; border-top: 0; background: var(--paper); position: relative; }
.task-row + .task-row { box-shadow: inset 0 1px 0 var(--hair); }
.task-row .check { margin-top: 2px; flex: none; width: 24px; height: 24px; }
.task-row .tbody { flex: 1; min-width: 0; display: grid; gap: 3px; }
.task-row .ttl-btn { background: none; border: 0; padding: 0; text-align: left; color: inherit; display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.task-row .ttl { font-size: 17px; font-weight: 500; line-height: 1.25; letter-spacing: 0; overflow-wrap: break-word; }
.task-row.done .ttl { color: var(--muted); text-decoration: line-through; font-weight: 500; }
.pdot { width: 8px; height: 8px; border-radius: 50%; background: #E04E33; flex: none; transform: translateY(-1px); }
.tinfo { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: 13px; font-weight: 600; }
.tinfo .ti { display: inline-flex; align-items: center; gap: 4px; }
.tinfo .ti svg { width: 14px; height: 14px; opacity: 0.8; }
.tinfo .ti.warn { color: #B83A25; }
.check.ghost { background: none; border-style: dashed; opacity: 0.5; pointer-events: none; }
.task-row.idea .ttl { font-weight: 500; }
/* Encabezados: texto en negrita con una línea fina debajo, sin tarjeta */
.hd { margin-top: 18px; }
.hd-head { display: flex; align-items: baseline; gap: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--hair); }
.hd-name { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 4px 0; font-size: 20px; font-weight: 800; letter-spacing: -0.01em; color: var(--accent-ink); overflow-wrap: normal; }
.hd-count { color: var(--muted); font-size: 13px; font-weight: 600; }
.hd .task-row:first-of-type { box-shadow: none; }
.done-note { color: var(--muted); font-size: 14px; font-weight: 600; padding: 16px 0 0; }
.done-note a { color: var(--accent-ink); }
/* Próximo */
.updays { margin-top: 10px; }
.updh { display: flex; align-items: baseline; gap: 10px; padding-top: 14px; border-top: 1px solid var(--hair); }
.updh b { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
.updh span { font-size: 17px; font-weight: 700; color: var(--muted); }
.evs { display: grid; gap: 2px; padding: 6px 0; }
.evrow { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); font-weight: 600; }
.evrow i { width: 4px; height: 16px; border-radius: 2px; flex: none; }
.evrow .et { min-width: 74px; }
.evrow .en { color: var(--ink); font-weight: 600; min-width: 0; }
/* Botón + flotante */
.fab { position: fixed; right: 18px; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--blue); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(59, 130, 246, 0.45); z-index: 20; padding: 0; touch-action: none; }
.fab svg { width: 30px; height: 30px; }
.fab.drag-ghost { opacity: 0; }
.emoji-row { display: flex; flex-wrap: wrap; gap: 8px; }
.emoji-btn { width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-size: 24px; }
.emoji-btn[aria-pressed="true"] { border-color: var(--blue); background: rgba(59, 130, 246, 0.12); }
.input.big { font-size: 22px; font-weight: 700; }
.edit-done { position: sticky; bottom: 140px; display: flex; justify-content: center; }
/* Deslizar con ícono */
.swipe-bg { position: absolute; left: 0; right: 0; display: flex; align-items: center; z-index: 0; border-radius: 14px; --p: 0; }
.swipe-bg[data-tone="yellow"] { background: var(--yellow); color: #3B2F00; }
.swipe-bg[data-tone="blue"] { background: var(--blue); color: #fff; }
.swipe-bg[data-tone="green"] { background: #1F9D6B; color: #fff; }
.swipe-bg[data-tone="red"] { background: #D1432B; color: #fff; }
.swipe-bg[data-tone="dark"] { background: #2B303A; color: #fff; }
.swipe-bg.right { justify-content: flex-start; padding-left: 18px; }
.swipe-bg.left { justify-content: flex-end; padding-right: 18px; }
.swipe-bg .sb-ico { width: 26px; height: 26px; display: grid; place-items: center; opacity: calc(var(--p) * 1.2); transform: scale(calc(0.55 + var(--p) * 0.45)); transition: transform 0.18s cubic-bezier(0.2, 1.5, 0.4, 1); }
.swipe-bg .sb-ico svg { width: 26px; height: 26px; }
.swipe-bg.armed .sb-ico { transform: scale(1.2); }
.task-row.swiping, .prow.swiping, .area.swiping { z-index: 1; background: var(--paper); }
/* Reordenar: elevada y con huecos animados */
.drag-clone { position: fixed; z-index: 120; pointer-events: none; margin: 0; background: var(--paper); border-radius: 16px; padding-left: 12px; padding-right: 12px; transform: scale(1); box-shadow: 0 0 0 rgba(22, 22, 29, 0); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.drag-clone.lifted { transform: scale(1.03); box-shadow: 0 10px 28px rgba(22, 22, 29, 0.22); }
.drag-ghost { opacity: 0; }
.drag-count { position: absolute; right: 10px; top: -8px; min-width: 24px; height: 24px; border-radius: 12px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 800; display: grid; place-items: center; padding: 0 6px; }
.plus-clone { width: 58px; height: 58px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; padding: 0; box-shadow: 0 10px 26px rgba(59, 130, 246, 0.5); transform: scale(var(--sx, 1), var(--sy, 1)); transition: transform 0.12s ease; }
.plus-clone.lifted { transform: scale(calc(1.15 * var(--sx, 1)), calc(1.15 * var(--sy, 1))); }
.plus-clone.dropping { transform: scale(0.6); opacity: 0; transition: transform 0.16s ease, opacity 0.16s ease; }
.plus-clone svg { width: 30px; height: 30px; }
.drop-hover { background: rgba(59, 130, 246, 0.05); border-radius: 12px; }
/* Selección */
.selcircle { width: 56px; height: 44px; margin: -10px -8px -10px 0; border: 0; background: none; display: grid; place-items: center; padding: 0; flex: none; touch-action: none; }
.selcircle::before { content: ''; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--ring); background: var(--paper); box-sizing: border-box; grid-area: 1 / 1; }
.selcircle svg { grid-area: 1 / 1; width: 14px; height: 14px; color: #fff; opacity: 0; z-index: 1; }
.selcircle.on::before { background: var(--blue); border-color: var(--blue); }
.selcircle.on svg { opacity: 1; }
.task-row.picked, .prow.picked, .area.picked { background: #DCE8FD; border-radius: 12px; }
.sel-done-btn { position: fixed; top: calc(14px + env(safe-area-inset-top, 0px)); right: 16px; z-index: 70; min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 800; font-size: 17px; box-shadow: 0 6px 18px rgba(59, 130, 246, 0.4); }
.sel-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(88px + env(safe-area-inset-bottom, 0px)); z-index: 35; display: flex; gap: 2px; background: #262B33; color: #fff; border-radius: 999px; padding: 6px; box-shadow: 0 10px 28px rgba(22, 22, 29, 0.35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.sel-bar button { background: none; border: 0; color: #fff; min-height: 46px; padding: 0 16px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; white-space: nowrap; }
.sel-bar button svg { width: 22px; height: 22px; }
.sel-bar button:disabled { opacity: 0.4; }
.sel-bar button:active { background: rgba(255, 255, 255, 0.14); }
/* Hoja blanca de la tarea */
.hoja-scrim { position: fixed; inset: 0; z-index: 90; background: rgba(22, 22, 29, 0.32); display: flex; align-items: flex-start; justify-content: center; padding: calc(56px + env(safe-area-inset-top, 0px)) 14px 14px; overflow-y: auto; }
.hoja-scrim.enter { animation: hoja-fade 0.2s ease both; }
.hoja { width: min(100%, 540px); background: var(--paper); border-radius: 26px; padding: 18px 18px 12px; display: grid; gap: 8px; box-shadow: 0 18px 50px rgba(22, 22, 29, 0.28); transform-origin: top center; }
.hoja.enter { animation: hoja-unfold 0.34s cubic-bezier(0.2, 1.2, 0.35, 1) both; }
@keyframes hoja-unfold { from { opacity: 0; transform: translateY(-14px) scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes hoja-fade { from { opacity: 0; } to { opacity: 1; } }
.h-top { display: flex; align-items: center; gap: 12px; }
.h-title { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-size: 21px; font-weight: 700; letter-spacing: -0.01em; padding: 6px 0; }
.h-notes { border: 0; outline: none; background: none; resize: none; font-size: 16px; font-weight: 500; color: var(--muted); padding: 0 0 4px 36px; min-height: 40px; }
.cl { display: grid; margin: 4px 0 4px 36px; }
.cl-step { display: flex; align-items: center; gap: 12px; min-height: 44px; border-top: 1px solid var(--hair); background: var(--paper); position: relative; }
.cl-step .check { flex: none; }
.cl-step.done .cl-input { color: var(--muted); text-decoration: line-through; }
.cl-input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-size: 16px; font-weight: 500; padding: 8px 0; }
.cl-step .handle.show { width: 36px; opacity: 0.5; margin: 0; }
.vchips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0 4px 36px; }
.vchip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 0; background: var(--sunk); color: var(--ink); font-size: 14px; font-weight: 700; }
.vchip svg { width: 16px; height: 16px; color: var(--muted); }
.vchip.star svg { color: #C99A00; }
.vchip.warn { color: #B83A25; }
.vchip.warn svg { color: #B83A25; }
.vchip.now { color: #B83A25; }
.h-icons { display: flex; flex-wrap: wrap; gap: 2px; padding: 4px 0 2px 28px; }
.h-ico { width: 44px; height: 44px; border: 0; background: none; color: #6B7080; border-radius: 12px; display: grid; place-items: center; padding: 0; }
.h-ico svg { width: 22px; height: 22px; }
.h-ico:active { background: var(--sunk); }
.h-ico.del { margin-left: auto; color: #B83A25; }
/* Quick Find */
.qf-scrim { position: fixed; inset: 0; z-index: 95; background: rgba(22, 22, 29, 0.3); padding: calc(18px + env(safe-area-inset-top, 0px)) 14px 14px; display: flex; justify-content: center; align-items: flex-start; }
.qf { width: min(100%, 540px); max-height: 80vh; overflow-y: auto; background: var(--paper); border-radius: 22px; padding: 12px; box-shadow: 0 18px 50px rgba(22, 22, 29, 0.28); }
.qf-bar { display: flex; align-items: center; gap: 10px; }
.qf-field { flex: 1; display: flex; align-items: center; gap: 8px; background: var(--sunk); border-radius: 12px; padding: 0 12px; min-height: 44px; color: var(--muted); }
.qf-field svg { width: 20px; height: 20px; flex: none; }
.qf-field input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-size: 17px; font-weight: 600; }
.qf-cancel { background: none; border: 0; color: var(--blue); font-weight: 700; font-size: 17px; min-height: 44px; }
.qf-h { font-size: 13px; font-weight: 800; color: var(--muted); padding: 14px 6px 4px; border-bottom: 1px solid var(--hair); }
.qf-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 6px; background: none; border: 0; text-align: left; font-size: 17px; font-weight: 600; color: inherit; border-radius: 12px; }
.qf-row .qf-ico { width: 26px; height: 26px; display: grid; place-items: center; flex: none; color: var(--muted); }
.qf-row .qf-ico svg { width: 24px; height: 24px; }
.qf-row .txt { flex: 1; min-width: 0; display: grid; }
.qf-row .sub { font-size: 13px; color: var(--muted); font-weight: 600; }
.qf-hint { text-align: center; color: var(--muted); font-weight: 600; padding: 22px 16px 10px; }
.drop-line, [data-block] { }
svg.pie { flex: none; }
.ph { background: none; }
.ph-title { align-items: flex-start; }
.ph-title .lead-pie, .ph-title .lead-ico { margin-top: 3px; }
/* Cuándo más compacto */
.popover.when { padding: 14px 14px 10px; }
.popover.when .pop-row { min-height: 44px; padding: 6px 12px; font-size: 17px; }
.popover.when .pop-row.sub { min-height: 42px; font-size: 15px; }
.popover.when .cal-grid .day { height: 36px; width: 36px; font-size: 16px; margin: 0 auto; }
.popover.when .cal-head { padding: 0 4px 4px; }
.popover.when .cal-week span { padding: 2px 0; }
.popover.when .pop-head { padding-bottom: 4px; }
.popover.when .pop-clear { width: 32px; height: 32px; }
.h-notes { min-height: 0; padding-bottom: 2px; }
.h-icons { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; padding: 6px 0 0 0; justify-items: center; }
.h-ico.del { margin-left: 0; }
.vchips { padding-left: 36px; }
.h-icons { border-top: 1px solid var(--hair); margin-top: 6px; }

/* ===== Tu día: línea de tiempo real ===== */
.tl4 { position: relative; margin-left: 0; }
.tl4-h { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--hair); }
.tl4-h span { position: absolute; left: 0; top: -9px; width: 46px; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--paper); font-variant-numeric: tabular-nums; }
.tl4-body { position: absolute; left: 52px; right: 0; top: 0; bottom: 0; }
.tl4-now { position: absolute; left: 44px; right: 0; height: 0; border-top: 2px solid #E04E33; z-index: 6; pointer-events: none; }
.tl4-now i { position: absolute; left: -5px; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: #E04E33; }
.blk { position: absolute; display: flex; align-items: flex-start; gap: 8px; padding: 8px 8px 8px 10px; border-radius: 14px; background: color-mix(in srgb, var(--c) 16%, #fff); border-left: 4px solid var(--c); overflow: hidden; touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; transition: box-shadow 0.18s ease; }
.blk.k-event { background: #EEF0F4; border-left-color: #8E93A3; color: #4A4F5C; }
.blk.k-cierre { background: #E9E6F7; }
.blk.done .blk-t { text-decoration: line-through; color: var(--muted); }
.blk .check { margin-top: 1px; flex: none; }
.blk-body { flex: 1; min-width: 0; background: none; border: 0; padding: 0; text-align: left; color: inherit; display: grid; gap: 1px; align-content: start; }
.blk-t { font-size: 15px; font-weight: 700; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.blk-r { font-size: 12px; font-weight: 600; color: var(--muted); }
.blk-label { position: absolute; right: 8px; top: 6px; background: var(--ink); color: #fff; border-radius: 8px; padding: 2px 8px; font-size: 12px; font-weight: 800; display: none; font-variant-numeric: tabular-nums; }
.blk.lifting, .blk.resizing { z-index: 8; overflow: visible; }
.blk.lifting { box-shadow: 0 10px 26px rgba(22, 22, 29, 0.28); }
.blk.lifting .blk-label, .blk.resizing .blk-label { display: block; }
.blk-resize { position: absolute; left: 50%; bottom: 0; width: 56px; height: 16px; transform: translateX(-50%); touch-action: none; cursor: ns-resize; }
.blk-resize::after { content: ''; position: absolute; left: 50%; bottom: 4px; width: 28px; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--c) 55%, #fff); transform: translateX(-50%); }
.blk.ghost { background: rgba(59, 130, 246, 0.14); border-left-color: var(--blue); pointer-events: none; opacity: 0.9; }
.blk.ghost .blk-label { display: block; }
.tray { display: grid; gap: 2px; padding: 4px 0 10px; }
.tray-h { font-size: 13px; font-weight: 800; color: var(--muted); padding-bottom: 2px; }
.tray-row { display: flex; align-items: center; gap: 12px; min-height: 48px; background: var(--paper); }
.tray-row + .tray-row { box-shadow: inset 0 1px 0 var(--hair); }
.tray-title { flex: 1; min-width: 0; text-align: left; background: none; border: 0; font-size: 17px; font-weight: 500; padding: 0; color: inherit; overflow-wrap: break-word; }
.tray-dur { font-size: 13px; font-weight: 600; color: var(--muted); }
.tray-set { width: 44px; height: 44px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; padding: 0; margin: -6px -8px -6px 0; }
.tray-set svg { width: 22px; height: 22px; }
.tray-row.drag-clone { padding: 0 12px; }
.seg { display: flex; background: var(--sunk); border-radius: 12px; padding: 3px; gap: 3px; }

/* Metas visibles y ocultas */
.goal-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.goal-chip-wrap { display: inline-flex; align-items: center; background: var(--goal-soft); border-radius: 999px; padding-right: 2px; }
.goal-chip-wrap .goal-chip { background: none; border: 0; padding: 0 6px 0 14px; min-height: 40px; font-weight: 800; color: var(--goal-on-soft); }
.goal-chip-wrap .goal-chip[aria-current="true"] { text-decoration: underline; text-underline-offset: 4px; }
.goal-eye { width: 40px; height: 40px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; color: var(--goal-on-soft); padding: 0; }
.goal-eye svg { width: 20px; height: 20px; }
.goal-chip-wrap.off { opacity: 0.5; background: var(--sunk); }

/* Tanda 4: sin cajas punteadas ni líneas al arrastrar; solo el hueco animado */
.drop-hover { outline: none; background: none; }
.zone-empty.tall { border: 0; }
.sel-bar { max-width: 96vw; padding: 5px; gap: 0; }
.sel-bar button { padding: 0 12px; gap: 6px; font-size: 15px; }
.sel-bar button:last-child:not(:first-child) { padding: 0 12px; }
.blk-label { top: auto; bottom: calc(100% + 4px); right: 4px; z-index: 3; box-shadow: none; }
.blk-label { bottom: 6px; right: 10px; }
.blk.lifting .blk-r, .blk.resizing .blk-r { visibility: hidden; }
.blk.lifting .blk-resize { opacity: 0; }
.blk-label { left: 60px; right: auto; bottom: 6px; background: none; color: var(--ink); padding: 0; font-size: 13px; font-weight: 600; }
/* Las listas y ruedas propias se abren por encima de la hoja de tarea */
.scrim:has(.pop-sheet, .wheel-sheet) { z-index: 110; }
.h-title::placeholder, .h-notes::placeholder, .cl-input::placeholder, .quickfind span, .qf input::placeholder { color: #555A69; opacity: 1; }
.h-notes { color: #4B5060; }
[data-pull] { min-height: calc(100vh - 100px); }
a, img { -webkit-user-drag: none; -webkit-touch-callout: none; }
.qf-cancel { color: #1F5BC4; }
