:root {
  --ground: #F1F4EC;
  --surface: #FBFCF8;
  --surface-2: #E6ECDF;
  --ink: #1D2A21;
  --ink-soft: #55655A;
  --line: #D3DCCB;
  --leaf: #3A7A4B;
  --leaf-ink: #FFFFFF;
  --marigold: #F0A531;
  --petal-1: #E7799B;
  --petal-2: #F0A531;
  --petal-3: #8E7CE0;
  --petal-4: #F2D14B;
  --petal-5: #E86A4F;
  --stem: #4E8A58;
  --soil: #CDBFA6;
  --soil-2: #B8A88C;
  --sky: #E4EEF0;
  --danger: #B5412E;
  --shadow: 0 1px 2px rgba(29,42,33,.06), 0 6px 18px rgba(29,42,33,.07);
  --c-gatos: #E0873F;
  --c-casa: #9C7456;
  --c-viaje: #2A9EA6;
  --c-trabajo: #4C7FBF;
  --c-personal: #B569A8;
  --c-recados: #C79A2A;
  --c-salud: #D0617E;
  --c-otros: #7E8A80;
  --c-creatividad: #7B6CD9;
  --radius: 14px;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ground: #121813;
    --surface: #1A231C;
    --surface-2: #243026;
    --ink: #E7EEE4;
    --ink-soft: #A2B2A5;
    --line: #2F3D32;
    --leaf: #6CC085;
    --leaf-ink: #0E1A11;
    --stem: #5FA56C;
    --soil: #3A3226;
    --soil-2: #2E271E;
    --sky: #17211E;
    --danger: #F08A73;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 22px rgba(0,0,0,.28);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #121813;
  --surface: #1A231C;
  --surface-2: #243026;
  --ink: #E7EEE4;
  --ink-soft: #A2B2A5;
  --line: #2F3D32;
  --leaf: #6CC085;
  --leaf-ink: #0E1A11;
  --stem: #5FA56C;
  --soil: #3A3226;
  --soil-2: #2E271E;
  --sky: #17211E;
  --danger: #F08A73;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 22px rgba(0,0,0,.28);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--ground); -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.5;
  padding-inline: 16px;
  padding-block: 20px 80px;
  margin: 0;
  overscroll-behavior-y: none;
}
@media (max-width: 600px) {
  body { padding-block: 14px 90px; }
  input, select, textarea { font-size: 16px !important; } /* evita el zoom automático en iPhone */
  .top .lede { display: none; }
  .top h1 { font-size: 26px; }
  .top { gap: 4px 12px; align-items: center; position: relative; }
  .top > div { width: 100%; }
  .sync { position: absolute; top: -3px; right: 0; font-size: 11px; }
  .eyebrow { font-size: 11px; }
  .goals { margin-top: 8px; }
  .goal-hero { padding: 10px 14px; border-radius: 18px; }
  .gh-title { font-size: 19px; }
  .gh-when b { font-size: 26px; }
  .goal-when { font-size: 15px; }
  .wrap { gap: 14px; }
  .level { flex-basis: 100%; }
  .panel { padding: 14px; gap: 12px; }
  .panel h2 { font-size: 18px; }
  .add-go { padding: 10px 14px; }
}
.wrap { max-width: 1120px; margin: 0 auto; display: grid; gap: 20px; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--marigold); outline-offset: 2px; border-radius: 8px; }
.eyebrow { font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- header ---------- */
.top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; }
.top h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.top h1 em { font-style: normal; color: var(--leaf); }
.top .lede { color: var(--ink-soft); margin: 8px 0 0; max-width: 56ch; }
.wrap > *, .top > div { min-width: 0; }
.goals { display: grid; gap: 8px; margin-top: 12px; max-width: 620px; }
.goal-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; max-width: 100%; }
.goal-row::-webkit-scrollbar { display: none; }
.goal-hero {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 10px; row-gap: 8px;
  width: 100%; text-align: left; border: 1.5px solid transparent; border-radius: 20px; padding: 12px 16px; color: var(--ink);
  background: color-mix(in srgb, var(--c-viaje) 14%, var(--surface));
}
.goal-hero.on { border-color: var(--c-viaje); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-viaje) 22%, transparent); }
.goal-hero.past { background: color-mix(in srgb, var(--marigold) 20%, var(--surface)); }
.gh-emoji { font-size: 30px; line-height: 1; grid-row: span 2; }
.gh-title { font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -.01em; overflow-wrap: anywhere; line-height: 1.1; }
.gh-when { font-size: 14px; color: var(--ink-soft); white-space: nowrap; }
.gh-when b { font-family: var(--display); font-weight: 800; font-size: 28px; color: var(--c-viaje); line-height: 1; letter-spacing: -.02em; }
.goal-hero.past .gh-when b { color: #B7791F; font-size: 20px; }
.gh-bar { height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 10%, transparent); overflow: hidden; }
.gh-bar i { display: block; height: 100%; border-radius: 99px; background: var(--c-viaje); transition: width .6s ease; }
.goal-hero.past .gh-bar i { background: var(--marigold); }
.gh-count { font-size: 12.5px; color: var(--ink-soft); font-weight: 600; white-space: nowrap; }
.goal-pill {
  flex: none; font-size: 12.5px !important; position: relative; overflow: hidden; display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap;
  border: 1.5px solid color-mix(in srgb, var(--c-viaje) 40%, transparent); background: var(--surface); color: var(--ink);
  border-radius: 99px; padding: 5px 12px; font-size: 13.5px; font-weight: 600;
}
.goal-pill > * { position: relative; }
.goal-pill .goal-fill { position: absolute; inset: 0 auto 0 0; background: color-mix(in srgb, var(--c-viaje) 22%, transparent); transition: width .5s ease; }
.goal-pill b { color: var(--c-viaje); font-family: var(--display); font-weight: 700; }
.goal-pill-name { max-width: 15ch; overflow: hidden; text-overflow: ellipsis; }
.goal-pill.on { border-color: var(--c-viaje); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c-viaje) 25%, transparent); }
.goal-pill.past { border-color: var(--marigold); }
.goal-pill.past b { color: #B7791F; }
.goal-pill.past .goal-fill { background: color-mix(in srgb, var(--marigold) 25%, transparent); }
.goal-pill.plain { border-style: dashed; border-color: var(--line); color: var(--ink-soft); font-weight: 600; }
.goal-pill.plain.on { background: var(--ink); color: var(--ground); border-style: solid; border-color: var(--ink); }
.goal-info { display: grid; gap: 6px; padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, var(--c-viaje) 10%, var(--surface)); margin-bottom: 4px; }
.goal-info-top { display: flex; align-items: center; gap: 8px; }
.goal-info-top strong { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.goal-info .chip { padding: 3px 9px; }
.goal-when { font-family: var(--display); color: var(--c-viaje); font-size: 17px; white-space: nowrap; }
.goal-bar { height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 10%, transparent); overflow: hidden; }
.goal-bar i { display: block; height: 100%; background: var(--c-viaje); border-radius: 99px; transition: width .5s ease; }
.goal-note { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--ink-soft); }
.goal-chip { color: var(--c-viaje); font-weight: 600; }
.emoji-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.emoji-pick button { font-size: 20px; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--ground); padding: 0; }
.emoji-pick button[aria-pressed="true"] { border-color: var(--c-viaje); background: color-mix(in srgb, var(--c-viaje) 18%, var(--surface)); }
.sheet input[type="text"] { border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; background: var(--ground); width: 100%; }
.sheet select { max-width: 100%; }
.mic.rec { background: var(--danger); color: #fff; border-color: var(--danger); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .72; } }
.mic-note { font-style: italic; }
.rep { color: var(--c-viaje); font-weight: 700; }
.due { font-weight: 700; }
.due.over { color: var(--danger); }
.due.today { color: #B7791F; }
.due.soon { color: var(--c-viaje); }
.due.later { color: var(--ink-soft); }
.group-title.over { color: var(--danger); }

.tbody { cursor: pointer; border-radius: 8px; }
.overlay.sheet-wrap { align-items: end; padding: 0; }
.card.sheet {
  text-align: left; max-width: 520px; border-radius: 22px 22px 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  gap: 14px;
}
@media (min-width: 601px) { .overlay.sheet-wrap { align-items: center; padding: 16px; } .card.sheet { border-radius: 22px; } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; }
.card.sheet .sheet-head h3 { font-size: 20px; }
.sheet textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--ground); resize: vertical; line-height: 1.45; }
.sheet input[type="date"] { border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; background: var(--ground); }
.field { display: grid; gap: 6px; }
.flabel { font-size: 12px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }
.sheet-actions { justify-content: space-between; margin-top: 4px; }
.btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.add-opts input[type="date"] { border: 1px solid var(--line); border-radius: 99px; padding: 5px 10px; background: var(--ground); font-size: 13px; }
.task.waiting { opacity: .65; }
.task.waiting .rep { width: 28px; text-align: center; }
.sync { font-size: 12px; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 6px; }
.sync::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-soft); }
.sync[data-state="live"]::before, .sync[data-state="ok"]::before { background: var(--leaf); }

/* ---------- garden ---------- */
.garden {
  background: linear-gradient(to bottom, var(--sky), var(--surface));
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  display: grid;
}
.garden svg { display: block; width: 100%; height: auto; }
.garden .soil { fill: var(--soil); }
.garden .soil2 { fill: var(--soil-2); }
.garden .stem { stroke: var(--stem); fill: none; stroke-width: 2.4; stroke-linecap: round; }
.garden .leafshape { fill: var(--stem); }
.garden .ctr { fill: var(--marigold); }
.garden .p1 { fill: var(--petal-1); } .garden .p2 { fill: var(--petal-2); } .garden .p3 { fill: var(--petal-3); }
.garden .p4 { fill: var(--petal-4); } .garden .p5 { fill: var(--petal-5); }
.garden .sprout { fill: var(--stem); opacity: .55; }
.garden .emptytxt { fill: var(--ink-soft); font: 500 14px var(--body); }
.garden .new { transform-box: fill-box; transform-origin: 50% 100%; animation: grow .9s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes grow { from { transform: scale(.1, 0); } to { transform: scale(1,1); } }

.stats { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 14px 18px; border-top: 1px solid var(--line); background: var(--surface); align-items: center; }
.stat { display: grid; gap: 0; }
.stat b { font-family: var(--display); font-size: 24px; font-weight: 700; line-height: 1.1; }
.stat span { font-size: 12px; color: var(--ink-soft); }
.level { flex: 1 1 260px; display: grid; gap: 6px; }
.level-row { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.level-row strong { font-family: var(--display); font-size: 17px; }
.bar { height: 10px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--leaf), var(--marigold)); border-radius: 99px; transition: width .6s ease; }

/* ---------- layout ---------- */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; }
@media (max-width: 880px) { .cols { grid-template-columns: minmax(0,1fr); } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: grid; gap: 14px; }
.panel h2 { font-size: 20px; font-weight: 700; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.side { display: grid; gap: 20px; }

/* ---------- brain dump ---------- */
.dump { background: var(--surface-2); border: 0; }
.dump p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.dump textarea {
  width: 100%; min-height: 120px; resize: vertical; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); padding: 12px 14px; line-height: 1.6;
}
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn {
  border: 1px solid var(--line); background: var(--surface); padding: 8px 14px; border-radius: 99px;
  font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px;
}
.btn:hover { border-color: var(--ink-soft); }
.btn.primary { background: var(--leaf); color: var(--leaf-ink); border-color: var(--leaf); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.sun { background: var(--marigold); color: #2B1D05; border-color: var(--marigold); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.small { padding: 5px 11px; font-size: 13px; }

/* ---------- add bar ---------- */
.add { display: grid; gap: 10px; }
.add input[type="text"] {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--ground);
}
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 99px; padding: 2px; background: var(--ground); }
.seg button { border: 0; background: transparent; padding: 5px 11px; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
select { border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; background: var(--ground); font-size: 13px; font-weight: 600; }
.toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }

.add-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 6px; align-items: center; }
.add-row input { padding: 10px 14px !important; }
.opts-btn { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 12px; background: var(--ground); }
.opts-btn[aria-expanded="true"] { background: var(--surface-2); color: var(--ink); }
.add-go { padding: 10px 16px; }
.add-opts { padding: 4px 2px 2px; }
.cats { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; margin-top: -4px; }
.cats::-webkit-scrollbar { display: none; }
.catchip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface);
  border-radius: 99px; padding: 5px 11px; font-size: 13px; font-weight: 600; color: var(--ink-soft); white-space: nowrap;
}
.catchip .n { font-size: 11px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.catchip[aria-pressed="true"] { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.catchip[aria-pressed="true"] .n { color: var(--ground); opacity: .75; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 8px 12px 10px; font-weight: 600; color: var(--ink-soft); border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--leaf); }
.tabs .count { font-size: 12px; background: var(--surface-2); border-radius: 99px; padding: 1px 7px; margin-left: 4px; }

/* ---------- tasks ---------- */
.group { display: grid; gap: 6px; }
.group-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink-soft); margin-top: 6px; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.task {
  display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 12px; align-items: center;
  padding: 10px 10px 10px 12px; border-radius: 12px; background: var(--ground); border: 1px solid transparent;
  transition: background .2s, opacity .3s;
}
.task:hover { border-color: var(--line); }
.task.spot { border-color: var(--marigold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--marigold) 30%, transparent); }
.task.done .ttext { text-decoration: line-through; text-decoration-color: var(--ink-soft); color: var(--ink-soft); }
.check {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--leaf); background: transparent;
  display: grid; place-items: center; padding: 0; flex: none; transition: transform .15s;
}
.check:hover { transform: scale(1.08); background: color-mix(in srgb, var(--leaf) 12%, transparent); }
.check svg { width: 16px; height: 16px; opacity: 0; }
.task.done .check { background: var(--leaf); }
.task.done .check svg { opacity: 1; stroke: var(--leaf-ink); }
.tbody { display: grid; gap: 3px; min-width: 0; }
.ttext { overflow-wrap: anywhere; font-weight: 500; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--ink-soft); align-items: center; }
.meta .cat { display: inline-flex; align-items: center; gap: 5px; }
.seeds { letter-spacing: 1px; color: var(--leaf); font-weight: 700; }
.pts { font-weight: 700; color: var(--ink); }
.tactions { display: flex; gap: 2px; }
.icon {
  border: 0; background: transparent; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--ink-soft); padding: 0;
}
.icon:hover { background: var(--surface-2); color: var(--ink); }
.icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon.on { color: var(--marigold); }
.icon.on svg { fill: var(--marigold); }
.empty { text-align: center; padding: 26px 10px; color: var(--ink-soft); display: grid; gap: 6px; }
.empty strong { font-family: var(--display); color: var(--ink); font-size: 18px; }
.examples { opacity: .6; }
.examples .tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }

/* ---------- rewards ---------- */
.wallet { display: flex; align-items: baseline; gap: 6px; }
.wallet b { font-family: var(--display); font-size: 28px; color: var(--leaf); }
.reward { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--ground); }
.reward .rt { font-weight: 600; overflow-wrap: anywhere; }
.reward .rc { font-size: 12px; color: var(--ink-soft); }
.reward .mini { height: 5px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin-top: 5px; }
.reward .mini i { display: block; height: 100%; background: var(--marigold); }
.reward-add { display: grid; grid-template-columns: minmax(0,1fr) 76px auto; gap: 6px; }
.reward-add input { min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; background: var(--ground); font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px dashed var(--line); background: transparent; border-radius: 99px; padding: 4px 10px; font-size: 12px; color: var(--ink-soft); }
.chip:hover { border-color: var(--leaf); color: var(--ink); }

/* ---------- badges ---------- */
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.badge { display: grid; justify-items: center; gap: 4px; text-align: center; padding: 10px 6px; border-radius: 12px; background: var(--ground); font-size: 12px; line-height: 1.25; }
.badge svg { width: 38px; height: 38px; }
.badge.locked { opacity: .38; filter: grayscale(1); }
.badge b { font-size: 12px; }

/* ---------- toasts & overlays ---------- */
.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 8px; z-index: 50; width: min(440px, calc(100% - 32px)); }
.toast {
  background: var(--ink); color: var(--ground); padding: 12px 16px; border-radius: 14px; box-shadow: var(--shadow);
  display: flex; gap: 10px; align-items: center; justify-content: space-between; animation: pop .35s cubic-bezier(.2,1.4,.4,1);
}
.toast .tp { font-family: var(--display); font-weight: 800; color: var(--marigold); white-space: nowrap; }
.toast button { background: transparent; border: 1px solid color-mix(in srgb, var(--ground) 40%, transparent); color: var(--ground); border-radius: 99px; padding: 3px 10px; font-size: 13px; font-weight: 600; }
.toast.badge-toast { background: var(--marigold); color: #2B1D05; }
.toast.badge-toast .tp { color: #2B1D05; }
@keyframes pop { from { transform: translateY(14px) scale(.96); opacity: 0; } }
.overlay { position: fixed; inset: 0; background: rgba(12,20,14,.45); display: grid; place-items: center; z-index: 60; padding: 16px; }
.card { background: var(--surface); border-radius: 22px; padding: 28px 24px; max-width: 380px; width: 100%; text-align: center; display: grid; gap: 10px; box-shadow: var(--shadow); animation: pop .45s cubic-bezier(.2,1.4,.4,1); }
.card h3 { font-size: 28px; font-weight: 800; }
.card p { margin: 0; color: var(--ink-soft); }
#fx { position: fixed; inset: 0; pointer-events: none; z-index: 70; width: 100%; height: 100%; }
.data-status { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.data-status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--leaf); flex: none; }
.data-note { margin: 0; font-size: 13px; color: var(--ink-soft); }
.data-note:empty { display: none; }
.remind { display: grid; gap: 6px; padding-top: 10px; border-top: 1px dashed var(--line); }
.account { display: grid; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.account > div, .acc-form { display: grid; gap: 8px; }
.acc-form input { border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; background: var(--ground); min-width: 0; width: 100%; }
.data-status.warn::before { background: var(--marigold); }
.data-status.bad::before { background: var(--danger); }
.sync { border: 0; background: transparent; padding: 4px 0; cursor: pointer; }
.sync[data-state="syncing"]::before { background: var(--marigold); }
.sync[data-state="offline"]::before, .sync[data-state="error"]::before { background: var(--danger); }
.claude-note { font-size: 12px; color: var(--ink-soft); }
.busy { opacity: .6; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media (max-width: 520px) {
  .task { gap: 10px; padding: 9px 4px 9px 10px; }
  .tactions { gap: 0; }
  .icon { width: 30px; height: 34px; }
  .stats { gap: 10px 20px; }
}
/* Celular: que al abrir ya se vean las tareas */
@media (max-width: 600px) {
  .stats { padding: 10px 14px; gap: 6px 16px; }
  .panel-head h2 { display: none; }
  .panel-head { justify-content: flex-end; margin-bottom: -4px; }
  .stats { flex-wrap: wrap; }
  .stat { display: flex; align-items: baseline; gap: 5px; }
  .stat b { font-size: 17px; }
  .stat span { font-size: 12px; }
  .level-row strong { font-size: 15px; }
  .panel-head .btn { padding: 4px 10px; font-size: 12px; }
  .garden svg { height: 64px; }
  .cats { margin-top: -2px; }
}
.linkish { border: 0; background: none; padding: 4px 2px; font-size: 13px; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.sheet input[type="password"] { border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; background: var(--ground); width: 100%; }

/* elegir varias tareas para borrarlas juntas */
.head-acts { gap: 6px; }
#pick-btn[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.pick-bar { position: sticky; top: 8px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px; margin-bottom: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pick-bar .pick-count { font-weight: 700; margin-right: auto; }
.pick-bar .btn.danger:disabled { opacity: .45; }
.task.picking .check { border-radius: 7px; }
.task.picking:not(.picked) .check { background: transparent; }
.task.picking:not(.picked) .check svg { opacity: 0; }
.task.picked { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 7%, var(--surface)); }
.task.picked .check { background: var(--danger); border-color: var(--danger); }
.task.picked .check svg { opacity: 1; stroke: #fff; }
