/* ================================================================
   Diseño: oscuro, minimalista, tipografía fina, acento lima.
   ================================================================ */
:root {
  --bg: #08080a;
  --bg2: #0d0d10;
  --card: #121216;
  --card2: #17171c;
  --line: #222228;
  --line2: #2c2c34;
  --text: #f2f2f4;
  --muted: #8a8a95;
  --faint: #55555f;
  --accent: #c6f36b;
  --accent-ink: #10140a;
  --accent-soft: rgba(198, 243, 107, .12);
  --pos: #7ee2a8;
  --neg: #ff8a80;
  --warn: #f6c56b;
  --blue: #8ab4ff;
  --violet: #b9a2ff;
  --radius: 18px;
  --radius-s: 12px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 20px 40px -24px rgba(0, 0, 0, .8);
  --font: "Inter", "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", "Cascadia Mono", Consolas, monospace;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f4f4f1;
  --bg2: #ececE8;
  --card: #ffffff;
  --card2: #f7f7f4;
  --line: #e6e6e1;
  --line2: #d9d9d3;
  --text: #121214;
  --muted: #6b6b73;
  --faint: #a3a3ab;
  --accent: #5d8a12;
  --accent-ink: #ffffff;
  --accent-soft: rgba(93, 138, 18, .1);
  --pos: #1f9d5c;
  --neg: #d64a3f;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 30px -18px rgba(0, 0, 0, .18);
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11", "tnum";
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 10px; border: 3px solid var(--bg); }

/* ---------- layout ---------- */
.app { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--line);
  padding: 22px 14px; display: flex; flex-direction: column; gap: 4px; background: var(--bg);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 22px; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--text); color: var(--bg); font-weight: 700; letter-spacing: -.5px; font-size: 15px;
}
.brand .name { font-weight: 600; letter-spacing: .14em; font-size: 12.5px; text-transform: uppercase; }
.brand .sub { font-size: 11px; color: var(--muted); letter-spacing: 0; text-transform: none; font-weight: 400; }
.nav-sec { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); padding: 16px 12px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px;
  color: var(--muted); font-size: 14px; transition: background .15s, color .15s; text-align: left; width: 100%;
}
.nav-item svg { width: 17px; height: 17px; stroke-width: 1.7; flex: none; }
.nav-item:hover { background: var(--card); color: var(--text); }
.nav-item.on { background: var(--card2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.side-foot { margin-top: auto; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.side-foot .lv { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.side-foot .lv b { color: var(--text); font-weight: 600; }

main { min-width: 0; padding: 34px clamp(18px, 4vw, 56px) 140px; max-width: 1240px; width: 100%; }
.tabbar { display: none; }

/* ---------- tipografía ---------- */
.eyebrow { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
h1.title { font-size: clamp(30px, 4.2vw, 44px); font-weight: 300; letter-spacing: -.035em; line-height: 1.05; margin: 8px 0 6px; }
h1.title em { font-style: italic; color: var(--muted); }
h2 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.lead { color: var(--muted); font-size: 15px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.mono { font-family: var(--mono); font-feature-settings: "tnum"; }
.pos { color: var(--pos); } .neg { color: var(--neg); }
.small { font-size: 12.5px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }

/* ---------- tarjetas ---------- */
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); min-width: 0;
}
.card.flat { box-shadow: none; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.card-h .eyebrow { font-size: 10.5px; }
.stat .k { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; }
.stat .v { font-size: 34px; font-weight: 300; letter-spacing: -.04em; margin: 10px 0 4px; line-height: 1; }
.stat .v small { font-size: 14px; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.stat .s { font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; font-size: 11.5px; background: var(--card2); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.chip.acc { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.chip.pos { color: var(--pos); } .chip.neg { color: var(--neg); }

/* ---------- barras ---------- */
.bar { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.bar.thin { height: 4px; }
.bar.warn > i { background: var(--warn); } .bar.neg > i { background: var(--neg); }

/* ---------- botones / inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 15px;
  border-radius: 11px; background: var(--card2); border: 1px solid var(--line2); font-size: 13.5px; font-weight: 500;
  transition: transform .1s, background .15s; white-space: nowrap;
}
.btn:hover { background: var(--line); }
.btn:active { transform: scale(.98); }
.btn.pri { background: var(--text); color: var(--bg); border-color: transparent; }
.btn.pri:hover { opacity: .9; }
.btn.acc { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--card2); }
.btn.sm { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 9px; }
.btn.icon { width: 34px; padding: 0; }
.btn svg { width: 15px; height: 15px; }
.seg { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 11px; padding: 3px; gap: 2px; }
.seg button { padding: 6px 12px; border-radius: 8px; font-size: 13px; color: var(--muted); }
.seg button.on { background: var(--card2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line2); }
.input, select.input, textarea.input {
  width: 100%; height: 40px; padding: 0 13px; background: var(--bg2); border: 1px solid var(--line); border-radius: 11px;
  outline: none; transition: border .15s; font-size: 14px;
}
textarea.input { height: auto; min-height: 120px; padding: 11px 13px; resize: vertical; line-height: 1.5; }
.input:focus { border-color: var(--line2); box-shadow: 0 0 0 3px var(--accent-soft); }
label.f { display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.row > .grow { flex: 1; min-width: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.quick { display: flex; gap: 8px; }
.quick .input { flex: 1; }

/* ---------- listas ---------- */
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 12px; padding: 11px 2px; border-bottom: 1px solid var(--line); min-height: 48px; }
.li:last-child { border-bottom: 0; }
.li .t { flex: 1; min-width: 0; }
.li .t .a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li .t .b { font-size: 12px; color: var(--muted); margin-top: 1px; }
.li .x { opacity: 0; transition: opacity .15s; }
.li:hover .x { opacity: 1; }
.check {
  width: 20px; height: 20px; border-radius: 7px; border: 1.5px solid var(--line2); flex: none; display: grid; place-items: center;
  transition: all .15s;
}
.check:hover { border-color: var(--muted); }
.check.on { background: var(--accent); border-color: var(--accent); }
.check.on::after { content: ""; width: 9px; height: 5px; border: 2px solid var(--accent-ink); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.done .a { color: var(--faint); text-decoration: line-through; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.empty { text-align: center; color: var(--faint); padding: 26px 10px; font-size: 13.5px; }
.empty b { display: block; color: var(--muted); font-weight: 500; margin-bottom: 3px; }
.ico {
  width: 34px; height: 34px; border-radius: 10px; background: var(--card2); border: 1px solid var(--line); display: grid; place-items: center; flex: none; font-size: 15px;
}

/* ---------- hábitos ---------- */
.habit-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.habit-row:last-child { border-bottom: 0; }
.habit-btn {
  width: 42px; height: 42px; border-radius: 13px; border: 1px solid var(--line2); background: var(--bg2); font-size: 18px;
  display: grid; place-items: center; transition: all .2s; flex: none;
}
.habit-btn.on { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.mgrid { display: grid; gap: 4px; }
.mcell { aspect-ratio: 1; border-radius: 5px; background: var(--line); }
.mcell.l1 { background: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.mcell.l2 { background: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.mcell.l3 { background: var(--accent); }
.mcell.today { outline: 1.5px solid var(--text); outline-offset: 1px; }
.mcell.future { opacity: .35; }
.year { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); gap: 3px; overflow-x: auto; padding-bottom: 4px; }
.year .mcell { width: 11px; height: 11px; border-radius: 3px; aspect-ratio: auto; }
.habit-table { width: 100%; border-collapse: separate; border-spacing: 3px; font-size: 11px; }
.habit-table th { color: var(--faint); font-weight: 400; }
.habit-table td.n { white-space: nowrap; padding-right: 10px; font-size: 13px; color: var(--text); max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.habit-table td.c { width: 22px; height: 22px; }
.habit-table td.c button { width: 100%; height: 22px; border-radius: 5px; background: var(--line); display: block; }
.habit-table td.c button.on { background: var(--accent); }
.habit-table td.c button.fut { opacity: .3; pointer-events: none; }
.moods { display: flex; gap: 6px; }
.moods button { font-size: 20px; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); filter: grayscale(1); opacity: .55; transition: all .15s; }
.moods button.on, .moods button:hover { filter: none; opacity: 1; background: var(--card2); border-color: var(--line2); }

/* ---------- finanzas ---------- */
.donut-wrap { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.legend { flex: 1; min-width: 180px; display: grid; gap: 9px; }
.legend .lg { display: grid; grid-template-columns: 10px 1fr auto auto; gap: 10px; align-items: center; font-size: 13px; }
.legend .sw { width: 10px; height: 10px; border-radius: 3px; }
.amount { font-family: var(--mono); font-size: 13.5px; white-space: nowrap; }

/* ---------- metas ---------- */
.goal { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.goal .img { height: 150px; background: linear-gradient(135deg, #1b1f14, #11131a); background-size: cover; background-position: center; position: relative; }
[data-theme="light"] .goal .img { background-color: #e9eadf; }
.goal .img .pct { position: absolute; right: 14px; top: 14px; font-size: 12px; padding: 4px 10px; border-radius: 99px; background: rgba(0, 0, 0, .55); color: #fff; backdrop-filter: blur(6px); }
.goal .img .glyph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 46px; opacity: .5; }
.goal .body { padding: 18px; display: grid; gap: 10px; }
.goal h3 { font-size: 17px; font-weight: 500; letter-spacing: -.02em; }

/* ---------- kanban / eisenhower ---------- */
.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.kcol { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; min-height: 240px; }
.kcol.over { border-color: var(--accent); }
.kcol h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 4px 6px 12px; display: flex; justify-content: space-between; }
.kcard { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; margin-bottom: 8px; cursor: grab; font-size: 14px; }
.kcard .b { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.eisen { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quad { border-radius: var(--radius); border: 1px solid var(--line); padding: 16px; min-height: 200px; background: var(--card); }
.quad h4 { font-size: 13px; font-weight: 600; } .quad p { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.quad.q1 { border-top: 2px solid var(--neg); } .quad.q2 { border-top: 2px solid var(--accent); } .quad.q3 { border-top: 2px solid var(--warn); } .quad.q4 { border-top: 2px solid var(--faint); }

/* ---------- pomodoro ---------- */
.pomo { text-align: center; }
.pomo .clock { font-size: 56px; font-weight: 200; letter-spacing: -.04em; font-family: var(--font); font-feature-settings: "tnum"; margin: 6px 0 14px; }

/* ---------- calendario ---------- */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal .dh { font-size: 11px; color: var(--faint); text-align: center; padding-bottom: 4px; letter-spacing: .1em; }
.cal .day { min-height: 82px; border: 1px solid var(--line); border-radius: 12px; padding: 7px 8px; text-align: left; background: var(--card); display: flex; flex-direction: column; gap: 3px; transition: border .15s; overflow: hidden; }
.cal .day:hover { border-color: var(--line2); }
.cal .day.out { opacity: .35; }
.cal .day.sel { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cal .day .n { font-size: 12.5px; color: var(--muted); }
.cal .day.today .n { color: var(--accent-ink); background: var(--accent); width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-weight: 600; }
.cal .ev { font-size: 10.5px; padding: 1px 6px; border-radius: 5px; background: var(--card2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.cal .ev.task { border-left: 2px solid var(--blue); } .cal .ev.event { border-left: 2px solid var(--evc, var(--accent)); } .cal .ev.workout { border-left: 2px solid var(--violet); }
.tl { display: grid; gap: 8px; }
.tl .it { display: grid; grid-template-columns: 58px 1fr; gap: 12px; align-items: center; padding: 11px 13px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); }
.tl .it .h { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.kind-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; vertical-align: middle; }
.kind-dot.task { background: var(--blue); } .kind-dot.event { background: var(--accent); } .kind-dot.workout { background: var(--violet); }

/* ---------- XP ---------- */
.xp-card { position: relative; overflow: hidden; }
.xp-card::before { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 70%); }
.xp-big { font-size: 46px; font-weight: 200; letter-spacing: -.05em; line-height: 1; }
.xp-big em { font-size: 14px; color: var(--muted); font-style: normal; letter-spacing: 0; margin-left: 6px; }
.badge { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.badge .e { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: var(--card2); }
.badge.off { opacity: .4; } .badge.off .e { filter: grayscale(1); }

/* ---------- copiloto ---------- */
.fab {
  position: fixed; right: 26px; bottom: 26px; width: 58px; height: 58px; border-radius: 50%; z-index: 40;
  background: var(--text); color: var(--bg); display: grid; place-items: center; font-weight: 700; font-size: 20px;
  box-shadow: 0 0 0 6px var(--accent-soft), 0 18px 40px -10px rgba(0, 0, 0, .7); transition: transform .2s;
}
.fab:hover { transform: scale(1.06); }
.fab::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--accent); opacity: .35; animation: pulse 3s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.9); opacity: .5; } 100% { transform: scale(1.35); opacity: 0; } }
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); backdrop-filter: blur(3px); z-index: 50; opacity: 0; pointer-events: none; transition: opacity .2s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; z-index: 60; right: 24px; bottom: 24px; width: min(520px, calc(100vw - 32px)); max-height: min(720px, calc(100vh - 48px));
  background: var(--bg2); border: 1px solid var(--line2); border-radius: 24px; display: flex; flex-direction: column;
  transform: translateY(16px) scale(.98); opacity: 0; pointer-events: none; transition: all .22s cubic-bezier(.2, .8, .2, 1);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .8);
}
.sheet.on { transform: none; opacity: 1; pointer-events: auto; }
.sheet .sh { padding: 18px 20px 12px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.sheet .av { width: 34px; height: 34px; border-radius: 50%; background: var(--text); color: var(--bg); display: grid; place-items: center; font-weight: 700; }
.sheet .log { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; min-height: 160px; }
.bubble-u { align-self: flex-end; background: var(--card2); border: 1px solid var(--line); padding: 9px 13px; border-radius: 14px 14px 4px 14px; max-width: 85%; font-size: 14px; }
.res { display: grid; gap: 6px; }
.res-item { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 13px; background: var(--card); border: 1px solid var(--line); text-align: left; width: 100%; }
.res-item:hover { border-color: var(--line2); }
.res-item .i { width: 30px; height: 30px; border-radius: 9px; background: var(--card2); display: grid; place-items: center; font-size: 13px; }
.res-item .tg { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.res-item.neg .tg { color: var(--neg); }
.res-item .tt { font-size: 14px; }
.res-item .mm { font-size: 12px; color: var(--muted); }
.res-ans { padding: 12px 14px; border-radius: 13px; background: var(--card); border: 1px solid var(--line); font-size: 14px; }
.res-foot { display: flex; gap: 8px; align-items: center; font-size: 11.5px; color: var(--faint); }
.sheet .ex { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 20px 12px; }
.sheet .ex button { font-size: 12px; padding: 6px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }
.sheet .ex button:hover { color: var(--text); border-color: var(--line2); }
.sheet .in { padding: 12px; border-top: 1px solid var(--line); display: flex; gap: 8px; align-items: flex-end; }
.sheet .in textarea { flex: 1; resize: none; min-height: 46px; max-height: 140px; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); outline: none; font-size: 15px; line-height: 1.4; }
.sheet .in textarea:focus { border-color: var(--line2); }
.mic.rec { background: var(--neg); color: #fff; border-color: transparent; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .6; } }
.typing { display: inline-flex; gap: 4px; padding: 10px 0; } .typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; } .typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }

/* ---------- modal / toast ---------- */
.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; pointer-events: none; }
.modal .box { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--bg2); border: 1px solid var(--line2); border-radius: 22px; padding: 22px; transform: scale(.97); opacity: 0; transition: all .18s; pointer-events: auto; }
.modal.on .box { transform: none; opacity: 1; }
.modal:not(.on) .box { pointer-events: none; }
.modal h3 { font-size: 19px; font-weight: 500; letter-spacing: -.02em; margin-bottom: 16px; }
.modal .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: 13.5px; opacity: 0; transition: all .25s; z-index: 90; pointer-events: none; max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- módulos "Más" ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tile { padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); text-align: left; display: grid; gap: 22px; transition: border .15s; }
.tile:hover { border-color: var(--line2); }
.tile svg { width: 22px; height: 22px; stroke-width: 1.6; color: var(--accent); }
.tile b { font-weight: 500; display: block; } .tile span { font-size: 12px; color: var(--muted); }

.spark { width: 100%; height: 110px; display: block; }
.hbar { display: grid; grid-template-columns: repeat(7, 1fr); align-items: end; gap: 8px; height: 120px; }
.hbar .col { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.hbar .col i { width: 100%; max-width: 30px; border-radius: 7px 7px 3px 3px; background: var(--line2); min-height: 3px; }
.hbar .col i.on { background: var(--accent); }
.hbar .col span { font-size: 10.5px; color: var(--faint); }
.note-card { cursor: pointer; display: grid; gap: 8px; align-content: start; min-height: 140px; }
.note-card p { color: var(--muted); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; }

.fade-in { animation: fin .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes fin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  main { padding: calc(22px + env(safe-area-inset-top)) 16px 130px; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .kanban, .eisen { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .stat .v { font-size: 28px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 30;
    background: color-mix(in srgb, var(--bg2) 88%, transparent); backdrop-filter: blur(16px); border: 1px solid var(--line); border-radius: 20px; padding: 6px;
  }
  .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 0; font-size: 10.5px; color: var(--faint); border-radius: 14px; }
  .tabbar button svg { width: 20px; height: 20px; stroke-width: 1.7; }
  .tabbar button.on { color: var(--text); background: var(--card2); }
  .fab { bottom: calc(92px + env(safe-area-inset-bottom)); right: 18px; width: 54px; height: 54px; }
  .sheet { right: 0; left: 0; bottom: 0; width: 100%; border-radius: 24px 24px 0 0; max-height: 88vh; }
  .cal .day { min-height: 54px; padding: 5px; } .cal .ev { display: none; }
  .cal .day .dots { display: flex; gap: 3px; }
  .li .x { opacity: 1; }
  .toast { bottom: 100px; }
}
.cal .day .dots { display: none; }
.cal .day .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

.sync-pill { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted); margin-top: 10px; }
.sync-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); flex: none; }
.sync-pill[data-s="ok"] i { background: var(--pos); }
.sync-pill[data-s="syncing"] i { background: var(--warn); animation: blink 1s infinite; }
.sync-pill[data-s="error"] i { background: var(--neg); }
.sync-pill[data-s="offline"] i { background: var(--warn); }

/* notas de voz */
.mic { touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.rec-bar { display: none; flex: 1; align-items: center; gap: 12px; height: 46px; padding: 0 8px 0 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line2); }
.sheet.recording .rec-bar { display: flex; }
.sheet.recording #sheet-input { display: none; }
.sheet.recording .mic { color: var(--neg); transform: scale(1.15); }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--neg); animation: blink 1s infinite; flex: none; }
#rec-time { font-family: var(--mono); font-size: 14px; min-width: 38px; }
.rec-wave { flex: 1; display: flex; gap: 4px; align-items: center; height: 22px; }
.rec-wave i { width: 3px; border-radius: 3px; background: var(--muted); animation: wave 1s ease-in-out infinite; }
.rec-wave i:nth-child(2) { animation-delay: .1s } .rec-wave i:nth-child(3) { animation-delay: .25s } .rec-wave i:nth-child(4) { animation-delay: .05s } .rec-wave i:nth-child(5) { animation-delay: .3s } .rec-wave i:nth-child(6) { animation-delay: .15s } .rec-wave i:nth-child(7) { animation-delay: .2s }
@keyframes wave { 0%, 100% { height: 5px } 50% { height: 20px } }
.vn { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--accent); margin-bottom: 3px; letter-spacing: .02em; }
.vn i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.sheet .in { align-items: center; }
.mic { width: 40px; height: 46px; display: grid; place-items: center; color: var(--accent); flex: none; background: none; border: 0; transition: transform .15s, color .15s; }
.mic svg { width: 26px; height: 26px; }
.mic:active { transform: scale(1.2); }
.bot { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: start; padding: 12px 14px; border-radius: 4px 14px 14px 14px; background: var(--card); border: 1px solid var(--line); font-size: 14.5px; line-height: 1.5; max-width: 92%; }
.bot-t { white-space: pre-wrap; }
.say { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); }
.say svg { width: 17px; height: 17px; }
.say:hover, .say.on { color: var(--accent); background: var(--accent-soft); }

/* tareas: texto completo + deslizar a la izquierda para editar/borrar */
.li.sw { display: block; position: relative; padding: 0; overflow: hidden; }
.sw-row { display: flex; align-items: center; gap: 12px; padding: 11px 2px; min-height: 48px; position: relative; z-index: 1; background: var(--card); transition: transform .22s cubic-bezier(.2, .8, .2, 1); touch-action: pan-y; }
.quad .sw-row { background: var(--card); }
.li.sw .t .a { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.35; }
.sw-actions { position: absolute; right: 0; top: 0; bottom: 0; display: none; }
.sw-actions button { width: 68px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; color: var(--text); }
.sw-actions svg { width: 18px; height: 18px; }
.sw-edit { background: var(--card2); }
.sw-del { background: var(--neg); color: #fff !important; }
@media (max-width: 860px) {
  .sw-actions { display: flex; }
  .sw-row .x { display: none; }
}

/* movimientos */
.tx-row { cursor: pointer; border-radius: 10px; }
.tx-row:hover { background: var(--card2); }
.tx-type { display: grid !important; grid-template-columns: repeat(4, 1fr); width: 100%; }
.tx-type label { padding: 8px 4px; text-align: center; border-radius: 8px; color: var(--muted); font-size: 13px; cursor: pointer; }
.tx-type label.on { background: var(--card2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line2); }

/* notas estilo iPhone */
.notes .nsearch { margin-bottom: 14px; height: 42px; border-radius: 12px; }
.chips { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 8px; padding-bottom: 4px; }
.chips .chip { cursor: pointer; padding: 6px 12px; font-size: 13px; }
.ngroup { margin: 18px 4px 8px; }
.nlist { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.nrow { display: block; width: 100%; text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.nrow:last-child { border-bottom: 0; }
.nrow:hover { background: var(--card2); }
.nrow .nt { font-weight: 600; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nrow .nb { font-size: 13.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.nrow .nb span { color: var(--muted); margin-right: 4px; }
.note-ed { max-width: 760px; margin: 0 auto; }
.note-bar { display: flex; justify-content: space-between; align-items: center; margin: -6px 0 6px -10px; position: sticky; top: 0; background: var(--bg); z-index: 5; padding: 6px 0; }
.note-bar .btn svg { width: 20px; height: 20px; }
.note-meta { text-align: center; font-size: 12px; color: var(--faint); margin-bottom: 14px; }
.note-topic { background: transparent; border: 0; color: var(--accent); font-size: 12px; width: 120px; outline: none; }
#note-text { width: 100%; min-height: 60vh; border: 0; outline: none; resize: none; background: transparent; font-size: 17px; line-height: 1.55; padding: 0 2px 60px; }
@media (max-width: 860px) {
  .tabbar { grid-template-columns: repeat(6, 1fr); }
  .tabbar button { font-size: 10px; }
}

/* rutinas */
.hide { display: none !important; }
.wd { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.wd label { height: 38px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line2); color: var(--muted); font-size: 13px; cursor: pointer; user-select: none; }
.wd label.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.tl .it .h { line-height: 1.25; }
.it-ev { cursor: pointer; }
@media (max-width: 860px) { .cal .day .dots { display: flex; } }

/* cuentas */
.accs { display: flex; gap: 10px; overflow-x: auto; margin-bottom: 14px; padding-bottom: 4px; scrollbar-width: none; }
.accs::-webkit-scrollbar { display: none; }
.acct { flex: none; min-width: 150px; text-align: left; padding: 14px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 8px; }
.acct .k { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.acct .k i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--accent)); }
.acct .v { font-size: 22px; font-weight: 300; letter-spacing: -.03em; }
.acct.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.acct.add { border-style: dashed; min-width: 120px; }
.acct.add .v { color: var(--faint); }
.accdot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--c); margin-right: 4px; vertical-align: middle; }
.acc-row, .acc-head { display: grid; grid-template-columns: 36px 1fr 110px 30px 30px; gap: 8px; align-items: center; margin-bottom: 8px; }
.swatch { width: 34px; height: 34px; border: 0; padding: 0; background: none; border-radius: 10px; cursor: pointer; }
.swatch::-webkit-color-swatch-wrapper { padding: 0; } .swatch::-webkit-color-swatch { border: 1px solid var(--line2); border-radius: 9px; }

/* carpetas de notas */
.folders { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 6px; padding-bottom: 4px; scrollbar-width: none; }
.folders::-webkit-scrollbar { display: none; }
.folder { flex: none; display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-size: 14px; }
.folder b { font-weight: 500; }
.folder span:last-child { color: var(--faint); font-size: 12.5px; }
.folder .fic { color: var(--c, var(--muted)); font-size: 12px; }
.folder.on { border-color: var(--c, var(--accent)); background: color-mix(in srgb, var(--c, var(--accent)) 12%, var(--card)); }
.folder.add { border-style: dashed; color: var(--muted); }
.fdot { display: inline-block; width: 8px; height: 8px; border-radius: 3px; background: var(--c); margin-right: 8px; vertical-align: middle; }
.note-folder { background: transparent; border: 0; color: var(--c); font-size: 12px; outline: none; max-width: 160px; }
.note-folder option { color: var(--text); background: var(--bg2); }
/* adjuntos */
.atts { display: flex; gap: 10px; overflow-x: auto; margin-bottom: 14px; padding-bottom: 4px; }
.att { position: relative; flex: none; width: 92px; cursor: pointer; }
.att img, .att .att-ic { width: 92px; height: 92px; border-radius: 12px; object-fit: cover; display: grid; place-items: center; background: var(--card2); border: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .05em; }
.att-n { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.att-x { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg2); border: 1px solid var(--line2); color: var(--muted); font-size: 14px; line-height: 1; }
/* documentos al copiloto */
.clip { width: 34px; height: 46px; display: grid; place-items: center; color: var(--muted); flex: none; background: none; border: 0; }
.clip svg { width: 22px; height: 22px; }
.clip:active { color: var(--accent); }
.sheet.recording .clip { display: none; }
.docbar { padding: 10px 12px 0; border-top: 1px solid var(--line); }
.docchip { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--card); border: 1px solid var(--line2); }
.docchip .dic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-size: 11px; font-weight: 700; flex: none; }
.docchip .dn { flex: 1; min-width: 0; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.docchip button { width: 26px; height: 26px; border-radius: 50%; background: none; border: 0; color: var(--muted); font-size: 18px; }
.docacts { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 2px; scrollbar-width: none; }
.docacts::-webkit-scrollbar { display: none; }
.docacts button { flex: none; padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line2); background: var(--card); font-size: 12.5px; color: var(--text); }
.docacts button:active { border-color: var(--accent); color: var(--accent); }
/* importar resumen */
.modal .box.wide { width: min(720px, 100%); }
.imp-sum { padding: 8px 12px; border-radius: 10px; background: var(--card); margin-bottom: 10px; color: var(--muted); }
.imp-list { max-height: 52vh; overflow: auto; border: 1px solid var(--line); border-radius: 14px; }
.imp-row { display: grid; grid-template-columns: 22px 1fr 118px auto; gap: 8px; align-items: center; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.imp-row:last-child { border-bottom: 0; }
.imp-row.dup { opacity: .55; }
.imp-row input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); }
.imp-t { min-width: 0; }
.imp-t .a { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.imp-t .b { font-size: 11.5px; color: var(--faint); }
.imp-row select { background: var(--card); border: 1px solid var(--line); border-radius: 8px; color: var(--text); font-size: 12px; padding: 5px 4px; width: 100%; }
.imp-amt { background: none; border: 0; font-variant-numeric: tabular-nums; font-size: 13.5px; color: var(--neg); text-align: right; white-space: nowrap; }
.imp-amt.pos { color: var(--pos); }
@media (max-width: 560px) {
  .imp-row { grid-template-columns: 22px 1fr auto; }
  .imp-row input[type=checkbox] { grid-row: 1 / 3; }
  .imp-row .imp-amt { grid-row: 1; grid-column: 3; }
  .imp-row select { grid-row: 2; grid-column: 2 / 4; }
}
/* 1.2.1: acomodos en el celu */
.card-h > :last-child:not(:first-child) { min-width: 0; }
.ell { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sync-who { justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: nowrap; }
.sync-who .who { flex: 1; min-width: 0; }
.sync-who .em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sync-who .chip { flex: none; }
.fin-acts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px; margin: -10px 0 16px; }
.donut-wrap { justify-content: center; }
.donut-wrap > :first-child { flex: none; }
@media (max-width: 640px) {
  .fin-acts { grid-template-columns: repeat(3, 1fr); }
  .fin-acts .btn { padding: 0 8px; font-size: 13.5px; gap: 5px; justify-content: center; white-space: nowrap; min-width: 0; }
  .fin-acts .btn svg { width: 15px; height: 15px; }
  .hide-sm { display: none; }
  .donut-wrap { flex-direction: column; gap: 18px; }
  .donut-wrap .legend { width: 100%; min-width: 0; }
}
/* finanzas en pestañas */
.fin-tabs { display: flex; width: 100%; margin: -6px 0 16px; }
.fin-tabs button { flex: 1; }
.acct .s { font-size: 11.5px; color: var(--faint); margin-top: -4px; }
.dolar { display: flex; gap: 8px; overflow-x: auto; margin: -2px 0 14px; scrollbar-width: none; }
.dolar::-webkit-scrollbar { display: none; }
.dq { flex: none; display: flex; align-items: baseline; gap: 7px; padding: 8px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.dq b { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.dq.on { border-color: var(--accent); color: var(--accent); }
.pay .t { cursor: pointer; min-width: 0; }
.pay .t .bar { margin-top: 7px; }
.pay-ic { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; font-size: 11.5px; font-weight: 600; background: var(--card2); }
.pay-ic.fx { color: var(--accent); font-size: 16px; }
.pay-ic.db { color: #b9a7ff; }
.pick2 { display: grid; gap: 10px; }
.pick { text-align: left; padding: 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line2); display: grid; gap: 4px; }
.pick b { font-weight: 600; font-size: 15px; }
.pick span { font-size: 13px; color: var(--muted); }
.pick:active { border-color: var(--accent); }
@media (max-width: 640px) { .fin .card-h .seg button { padding: 0 9px; font-size: 12.5px; } }
/* barra de abajo a elección */
.tabpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.tabpick label { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card2); font-size: 13.5px; cursor: pointer; color: var(--muted); }
.tabpick label svg { width: 17px; height: 17px; flex: none; }
.tabpick input { display: none; }
.tabpick label:has(input:checked) { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
/* atajo */
.atajo-k { display: grid; grid-template-columns: 70px 1fr auto; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.atajo-k code { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
/* revisión semanal */
.review-line { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 14px; margin: -6px 0 14px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); font-size: 14px; text-align: left; }
.review-line em { color: var(--muted); font-style: normal; font-size: 12.5px; }
.review-line b { margin-left: auto; font-weight: 500; }
.wl { list-style: none; display: grid; gap: 9px; }
.wl li { position: relative; padding-left: 20px; font-size: 14px; line-height: 1.4; }
.wl li::before { position: absolute; left: 0; top: 0; }
.wl.ok li::before { content: '✓'; color: var(--pos); }
.wl.fix li::before { content: '→'; color: var(--warn, #ffc861); }
.wsug { display: grid; gap: 10px; }
.wsug label { align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.35; cursor: pointer; }
.wsug input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--accent); flex: none; }
.fin-tabs { margin: 0 0 14px; }
.fin-ctl { justify-content: space-between; margin-bottom: 14px; }
.pay-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.pay-sum div { display: grid; gap: 3px; min-width: 0; }
.pay-sum span { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pay-sum b { font-size: 22px; font-weight: 300; letter-spacing: -.03em; }
.pay-sum em { font-style: normal; font-size: 11.5px; color: var(--faint); line-height: 1.3; }
.pay-sum div + div { border-left: 1px solid var(--line); padding-left: 10px; }
/* 1.4 · Plata más limpia */
.fin-ctl { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.fin-plus { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; box-shadow: 0 0 0 5px var(--accent-soft); transition: transform .15s; }
.fin-plus svg { width: 22px; height: 22px; stroke-width: 2.2; }
.fin-plus:active { transform: scale(.92); }
.fin-month { display: flex; justify-content: center; margin-bottom: 14px; }
.fin-hero { margin: 0 0 14px; }
.fh-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.fh-top .k { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fh-top .v { font-size: 34px; font-weight: 300; letter-spacing: -.04em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.fh-pct { text-align: right; display: grid; }
.fh-pct b { font-size: 18px; font-weight: 500; color: var(--pos); }
.fh-pct span { font-size: 11.5px; color: var(--faint); }
.fh-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.fh-row div { display: grid; gap: 4px; min-width: 0; justify-items: start; }
.fh-row div + div { border-left: 1px solid var(--line); padding-left: 10px; }
.fh-row span { font-size: 11.5px; color: var(--muted); }
.fh-row b { font-size: 18px; font-weight: 400; letter-spacing: -.02em; }
.fh-row .chip { font-size: 10.5px; padding: 1px 6px; }
.dq-line { display: flex; align-items: baseline; gap: 8px; width: 100%; padding: 10px 14px; margin: -4px 0 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: 13px; color: var(--muted); text-align: left; }
.dq-line b { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.dq-line em { margin-left: auto; font-style: normal; color: var(--faint); font-size: 12px; }
.pick.on { border-color: var(--accent); }
.pick.row b { font-size: 14.5px; }
/* Ajustes como lista */
.set .set-group { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin-bottom: 16px; max-width: 720px; }
.set-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; }
.set-row:last-child { border-bottom: 0; }
.set-row:active { background: var(--card2); }
.set-ic { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 14px; }
.set-l { flex: none; }
.set-v { flex: 1; min-width: 0; text-align: right; color: var(--faint); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.set-ch { color: var(--faint); font-size: 20px; line-height: 1; }
.set-row.danger .set-ic { background: color-mix(in srgb, var(--neg) 14%, transparent); color: var(--neg); }
.set-row.danger .set-l { color: var(--neg); }
.set-back { margin: -6px 0 0 -10px; }
.set-title { margin: 4px 0 18px; }
.set-body { display: grid; gap: 14px; max-width: 720px; }
.set-body .card { margin: 0; }
.pals { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.pal { display: grid; justify-items: center; gap: 7px; padding: 10px 6px; border-radius: 14px; border: 1px solid var(--line); background: var(--card2); font-size: 13px; color: var(--muted); }
.pal.on { border-color: var(--accent); color: var(--text); }
.pal-sw { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .08); }
.pal-sw i { width: 20px; height: 20px; border-radius: 50%; }
.swatch.big { width: 54px; height: 54px; border-radius: 14px; }
/* ojito para ver la contraseña */
.pw-wrap { position: relative; display: block; }
.pw-wrap .input { padding-right: 44px; width: 100%; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; display: grid; place-items: center; color: var(--faint); background: none; border: 0; }
.pw-eye svg { width: 19px; height: 19px; }
.pw-eye:active { color: var(--accent); }
.set-body { grid-template-columns: minmax(0, 1fr); }
.set-body .form-grid > * { min-width: 0; }
[data-submit="sync-login"] .full.row { flex-wrap: wrap; gap: 10px; }
[data-submit="sync-login"] .full.row > .row { margin-left: auto; }
/* ================= Avatar del copiloto ================= */
.fab.has-av { background: transparent; box-shadow: none; width: 70px; height: 64px; border-radius: 0; color: inherit; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.fab.has-av::after { display: none; }
.fab.has-av:hover { transform: none; }
@media (max-width: 860px) { .fab.has-av { width: 64px; height: 58px; } }
.av-host { position: relative; display: block; width: 100%; height: 100%; }
.av-host .av-svg { width: 100%; height: 100%; overflow: visible; display: block; }
.av-host.mini { width: 38px; height: 35px; flex: none; }
.av-host.big { width: 150px; height: 136px; margin: 6px auto 10px; }
.av-host.week { width: 92px; height: 84px; flex: none; }
.av-svg .av-eye > g > * { display: none; }
.av-svg .st { fill: none; stroke-width: 3.4; stroke-linecap: round; }
.av-svg .av-eye circle, .av-svg .av-eye rect, .av-svg .s-heart { stroke: none; }
.av-svg[data-eyes=round] .s-round, .av-svg[data-eyes=pill] .s-pill, .av-svg[data-eyes=arc] .s-arc, .av-svg[data-eyes=closed] .s-closed,
.av-svg[data-eyes=wide] .s-wide, .av-svg[data-eyes=sad] .s-sad, .av-svg[data-eyes=heart] .s-heart { display: inline; }
.av-svg .s-sad .st { fill: none; stroke-linecap: round; }
.av-svg .av-face { transition: transform .35s cubic-bezier(.3, .7, .3, 1); }
.av-svg .av-eyein { transform-box: fill-box; transform-origin: center; transition: transform .09s; }
.av-host.blink .av-eyein { transform: scaleY(.12); }
.av-svg .av-mouth > *, .av-svg .av-dots { display: none; }
.av-svg .av-mouth rect, .av-svg .av-mouth ellipse, .av-svg .av-dots circle { stroke: none; }
.av-host[data-ex=talking] .m-bar { display: inline; animation: avTalk .22s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
.av-host[data-ex=surprised] .m-o, .av-host[data-ex=yawn] .m-o { display: inline; }
.av-host[data-ex=yawn] .m-o { animation: avYawn 2s ease-in-out; transform-box: fill-box; transform-origin: center; }
.av-host[data-ex=happy] .m-bar, .av-host[data-ex=celebrate] .m-bar, .av-host[data-ex=trick] .m-bar { display: inline; transform: scaleX(.8); }
.av-host[data-ex=thinking] .av-dots { display: inline; }
.av-host[data-ex=thinking] .av-dots circle { animation: avDot 1s ease-in-out infinite; }
.av-host[data-ex=thinking] .av-dots circle:nth-child(2) { animation-delay: .15s; }
.av-host[data-ex=thinking] .av-dots circle:nth-child(3) { animation-delay: .3s; }
.av-host[data-ex=thinking] .av-face { transform: translate(2px, -4px); }
.av-host[data-ex=thinking] .av-tip { animation: avBlinkTip .6s steps(2) infinite; }
.av-host[data-ex=listening] .av-ring { animation: avRing .9s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.av-host[data-ex=talking] .av-ring { animation: avRing .5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.av-host[data-ex=sleepy] .av-tip, .av-host[data-ex=sleepy] .av-ring { opacity: .35; }
.av-host[data-ex=sad] .av-head { transform: translateY(2px) rotate(-3deg); transform-origin: 60px 60px; transition: transform .4s; }
.av-host[data-ex=love] .av-head { animation: avBeat .8s ease-in-out 2; transform-origin: 60px 60px; }
.av-svg .av-bar { transform-box: fill-box; transform-origin: center; }
.av-host[data-ex=talking] .av-bar { animation: avTalk .2s ease-in-out infinite alternate; }
.av-svg .av-head { transition: transform .3s; }
/* flotar según el movimiento elegido */
.av-host[data-motion=vivo] .av-svg { animation: avBob 3.2s ease-in-out infinite; }
.av-host[data-motion=tranquilo] .av-svg { animation: avBobSoft 4.5s ease-in-out infinite; }
.av-host.mini .av-svg, .av-thumb .av-svg { animation: none !important; }
.av-host.tilt-l .av-head { transform: rotate(-7deg); transform-origin: 60px 70px; }
.av-host.tilt-r .av-head { transform: rotate(7deg); transform-origin: 60px 70px; }
.av-host[data-ex=sleepy] .av-svg { animation-duration: 6s; }
@keyframes avBob { 0%, 100% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-4px) rotate(-1.5deg); } 70% { transform: translateY(-2px) rotate(1.5deg); } }
@keyframes avBobSoft { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes avTalk { from { transform: scaleY(.6) scaleX(.8); } to { transform: scaleY(2.4) scaleX(1.05); } }
@keyframes avYawn { 0% { transform: scale(.4); } 40%, 70% { transform: scale(1.5, 1.8); } 100% { transform: scale(.4); } }
@keyframes avDot { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-2px); } }
@keyframes avBlinkTip { 50% { opacity: .2; } }
@keyframes avRing { 0%, 100% { opacity: .55; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes avBeat { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.08); } }
.fab.av-hop .av-host { animation: avHop .45s ease-out; }
.fab.av-jump .av-host { animation: avJump .85s ease-out; }
.fab.av-spin .av-host { animation: avSpin 1.05s ease-in-out; }
.fab.av-flip .av-host { animation: avFlip 1.1s ease-in-out; }
.fab.dragging { transition: none; }
.fab.dragging .av-host { transform: scale(1.12) rotate(-6deg); }
@keyframes avHop { 40% { transform: translateY(-7px) scale(1.04, .96); } }
@keyframes avJump { 30% { transform: translateY(-22px) rotate(-8deg); } 60% { transform: translateY(-6px) rotate(6deg); } }
@keyframes avSpin { to { transform: rotate(360deg); } }
@keyframes avFlip { 0% { transform: none; } 35% { transform: translateY(-26px) rotate(-180deg); } 70% { transform: translateY(-8px) rotate(-360deg); } 100% { transform: rotate(-360deg); } }
/* pelotita, confeti y zzz */
.av-ball { position: absolute; left: 50%; top: 4px; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, var(--accent) 60%); box-shadow: 0 0 10px var(--accent); opacity: 0; pointer-events: none; transition: opacity .3s; }
.av-ball.on { opacity: 1; }
.av-conf { position: absolute; left: 50%; top: 40%; width: 6px; height: 6px; border-radius: 2px; pointer-events: none; animation: avConf 1.2s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes avConf { to { transform: translate(var(--dx), var(--dy)) rotate(260deg); opacity: 0; } }
.av-z { position: absolute; right: 2px; top: 0; font-style: normal; font-weight: 700; font-size: 13px; color: var(--accent); pointer-events: none; animation: avZ 2.5s ease-out forwards; }
@keyframes avZ { from { transform: translate(0, 0) scale(.7); opacity: 0; } 20% { opacity: 1; } to { transform: translate(12px, -34px) scale(1.3); opacity: 0; } }
/* globito */
.av-bubble { position: fixed; z-index: 45; max-width: 230px; padding: 10px 14px; border-radius: 16px 16px 4px 16px; background: var(--card2); border: 1px solid var(--line2); color: var(--text); font-size: 14px; line-height: 1.35; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .6); opacity: 0; transform: translateY(6px) scale(.96); pointer-events: none; transition: opacity .25s, transform .25s; }
.av-bubble.left { border-radius: 16px 16px 16px 4px; }
.av-bubble.on { opacity: 1; transform: none; pointer-events: auto; }
/* ajustes del asistente */
.av-stage { display: grid; justify-items: center; padding-bottom: 16px; }
.av-models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.av-model { display: grid; justify-items: center; gap: 6px; padding: 12px 6px; border-radius: 14px; border: 1px solid var(--line); background: var(--card2); font-size: 12.5px; color: var(--muted); }
.av-model.on { border-color: var(--accent); color: var(--text); }
.av-thumb { width: 64px; height: 58px; display: block; }
.av-thumb .av-svg { width: 100%; height: 100%; }
.av-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.av-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line2); background: var(--card2); font-size: 13px; color: var(--text); }
.av-chip i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); }
.av-chip.on { border-color: var(--accent); background: var(--accent-soft); }
/* revisión semanal */
.week-av { display: flex; align-items: center; gap: 12px; margin: -4px 0 16px; }
.week-bubble { position: relative; flex: 1; padding: 12px 14px; border-radius: 16px 16px 16px 4px; background: var(--card); border: 1px solid var(--line2); font-size: 14px; line-height: 1.45; }
.week-bubble b { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 3px; }
.sheet .sh .av-host.mini { margin-right: 2px; }
/* avatar: capas con paralaje y brillos */
.av-svg .p-body, .av-svg .p-screen, .av-svg .p-earl, .av-svg .p-earr, .av-svg .p-sheen, .av-svg .p-glass, .av-svg .p-shl, .av-svg .p-shr, .av-svg .av-bar { transition: transform .5s cubic-bezier(.3, .7, .3, 1), opacity .5s; transform-origin: 60px 60px; }
.av-svg .p-earl { transform-origin: 14px 60px; }
.av-svg .p-earr { transform-origin: 106px 60px; }
.av-svg .av-sweep { opacity: 0; }
.av-host[data-motion=vivo] .av-sweep, .av-host[data-motion=tranquilo] .av-sweep { animation: avSweep 7s ease-in-out infinite; }
.av-host.mini .av-sweep, .av-thumb .av-sweep { animation: none; }
@keyframes avSweep { 0%, 78% { transform: translateX(0) rotate(18deg); opacity: 0; } 80% { opacity: 1; } 96% { transform: translateX(190px) rotate(18deg); opacity: 1; } 100% { transform: translateX(190px) rotate(18deg); opacity: 0; } }
.av-host[data-ex=thinking] .av-face { transform: none; }
/* ================= Pantalla de entrada ================= */
body.gated .app, body.gated .tabbar, body.gated .fab, body.gated .sheet, body.gated #av-bubble { display: none !important; }
.gate { display: none; }
body.gated .gate { display: flex; position: fixed; inset: 0; z-index: 60; overflow-y: auto; background: radial-gradient(120% 70% at 50% 0%, var(--accent-soft), transparent 60%), var(--bg); padding: calc(28px + env(safe-area-inset-top)) 22px calc(28px + env(safe-area-inset-bottom)); }
.gate-in { width: 100%; max-width: 380px; margin: auto; display: grid; gap: 14px; }
.gate-av { width: 132px !important; height: 120px !important; margin: 0 auto -4px !important; }
.gate-title { font-size: 34px; font-weight: 300; letter-spacing: -.03em; text-align: center; }
.gate-sub { text-align: center; color: var(--muted); margin-top: -8px; }
.gate-seg { display: flex; width: 100%; }
.gate-seg button { flex: 1; }
.gate-form { display: grid; gap: 12px; }
.gate-btn { height: 50px; font-size: 16px; justify-content: center; width: 100%; }
.gate-err { color: var(--neg); font-size: 13.5px; }
.gate-msg { display: grid; gap: 12px; text-align: center; }
.gate-msg p { color: var(--muted); line-height: 1.5; }
.gate-tip { text-align: center; font-size: 12.5px; color: var(--faint); margin-top: 6px; }
/* ================= Guía de inicio ================= */
.guide { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .6); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: calc(16px + env(safe-area-inset-top)) 14px calc(16px + env(safe-area-inset-bottom)); }
body.guiding .fab, body.guiding #av-bubble { visibility: hidden; }
.gd-card { width: 100%; max-width: 440px; max-height: 100%; overflow-y: auto; background: var(--bg2); border: 1px solid var(--line2); border-radius: 26px; padding: 18px 20px 20px; display: grid; gap: 10px; }
.gd-top { display: flex; justify-content: space-between; align-items: center; }
.gd-dots { display: flex; gap: 6px; }
.gd-dots i { width: 7px; height: 7px; border-radius: 4px; background: var(--line2); transition: all .3s; }
.gd-dots i.past { background: var(--muted); }
.gd-dots i.on { width: 22px; background: var(--accent); }
.gd-av { width: 112px !important; height: 102px !important; margin: 2px auto 0; }
.gd-t { font-size: 25px; font-weight: 400; letter-spacing: -.02em; }
.gd-d { color: var(--muted); line-height: 1.45; font-size: 14.5px; margin-top: -4px; }
.gd-body { display: grid; gap: 10px; margin-top: 4px; }
.gd-body .f { display: grid; gap: 8px; font-size: 13px; color: var(--muted); }
.gd-li { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); }
.gd-li b { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 2px; }
.gd-li span { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.gd-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.gd-ic svg { width: 19px; height: 19px; }
.gd-ex { display: flex; flex-wrap: wrap; gap: 7px; }
.gd-ex span { padding: 7px 11px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: 13px; }
.gd-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.gd-nav .btn.pri { min-width: 130px; justify-content: center; height: 46px; }
/* preguntas frecuentes */
.faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.faq details:first-child { border-top: 0; padding-top: 2px; }
.faq summary { cursor: pointer; font-size: 14.5px; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::after { content: '+'; color: var(--faint); }
.faq details[open] summary::after { content: '−'; }
.faq p { color: var(--muted); font-size: 13.5px; line-height: 1.5; margin-top: 8px; }
/* relevamiento de fijos */
.relev { margin-bottom: 14px; }
.relev-inc { display: grid; text-align: left; gap: 2px; }
.relev-inc span { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.relev-inc b { font-size: 30px; font-weight: 300; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.relev-bar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: var(--card2); margin: 14px 0 12px; gap: 2px; }
.relev-bar i { display: block; height: 100%; }
.relev-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.relev-row div { display: grid; grid-template-columns: 9px 1fr; column-gap: 6px; row-gap: 2px; align-items: center; min-width: 0; }
.relev-row i { width: 9px; height: 9px; border-radius: 3px; }
.relev-row span { font-size: 12px; color: var(--muted); }
.relev-row b { grid-column: 2; font-size: 17px; font-weight: 400; }
.relev-row em { grid-column: 2; font-style: normal; font-size: 11.5px; color: var(--faint); }
/* lista desplegable de categorías */
.cpick { position: relative; }
.cpick .input { padding-right: 34px; }
.cpick-car { position: absolute; right: 2px; top: 0; height: 100%; width: 32px; display: grid; place-items: center; color: var(--faint); font-size: 12px; cursor: pointer; }
.cpick-list { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; max-height: 262px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-y; background: var(--bg2); border: 1px solid var(--line2); border-radius: 14px; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .7); padding: 4px; }
.cpick.on .cpick-list { display: block; }
.cpick.up .cpick-list { top: auto; bottom: calc(100% + 6px); }
.modal .box { overscroll-behavior: contain; }
.cpick-opt { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 11px 12px; border-radius: 10px; text-align: left; font-size: 15px; color: var(--text); }
.cpick-opt:active, .cpick-opt.on { background: var(--card2); }
.cpick-opt em { font-style: normal; font-size: 11px; color: var(--faint); }
.cpick-opt.new { color: var(--accent); font-weight: 500; }
.cpick-empty { padding: 12px; color: var(--faint); font-size: 13.5px; }
/* En la compu: usar todo el ancho de la pantalla */
@media (min-width: 861px) {
  main { max-width: none; }
  .set .set-group, .set-body { max-width: none; }
  .note-ed { max-width: 1100px; }
}
@media (min-width: 1280px) {
  .set-body { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .set-body > .card:only-child { grid-column: 1 / -1; }
}

/* ---------- Ajustes → Widgets del iPhone ---------- */
.wsteps { margin: 4px 0 12px; padding-left: 22px; display: grid; gap: 10px; font-size: 14px; line-height: 1.45; }
.wsteps li::marker { color: var(--accent); font-weight: 700; }
.wsteps .btn { margin: 6px 0 0; display: inline-flex; }
.wchips { display: flex; flex-wrap: wrap; gap: 6px; }
.wchips button { padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line2); font-size: 13px; color: var(--muted); }
.wchips button.on { background: var(--accent-soft, var(--card2)); border-color: var(--accent); color: var(--text); }
.wrow { align-items: center; }
.wrow .t { min-width: 0; }
.wcode { margin-top: 6px; font-size: 12px; color: var(--muted); border: 1px dashed var(--line2); border-radius: 8px; padding: 3px 8px; }
.wcode code { color: var(--accent); font-weight: 600; }
.wsw { flex: none; width: 46px; height: 28px; border-radius: 999px; background: var(--line2); position: relative; transition: background .2s; }
.wsw i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.wsw.on { background: var(--accent); }
.wsw.on i { transform: translateX(18px); }
/* vista previa */
.wp-stage { display: flex; justify-content: center; padding: 18px 8px; border-radius: 18px; background: #0f1a17; overflow: hidden; }
.wp { background: #1c1c1e; color: #f2f2f4; border-radius: 22px; padding: 13px 14px; box-sizing: border-box; display: flex; flex-direction: column; gap: 3px; font: 12px/1.3 -apple-system, system-ui, sans-serif; overflow: hidden; text-align: left; flex: none; }
.wp.small { width: 158px; height: 158px; } .wp.medium { width: 338px; height: 158px; } .wp.large { width: 338px; height: 354px; }
.wp.medium, .wp.large { max-width: 100%; }
.wp .sp { flex: 1; }
.wp b { font-weight: 600; }
.wp-mut { color: #9a9aa0; font-size: 11.5px; }
.wp-acc { color: var(--wacc); font-weight: 700; font-size: 11px; }
.wp-big { font-size: 20px; font-weight: 700 !important; }
.wp-xl { font-size: 22px; font-weight: 700 !important; margin: 2px 0; }
.wp-xl.neg { color: #ff5d5d; }
.wp-h { display: flex; align-items: baseline; gap: 5px; margin-bottom: 5px; }
.wp-h .sp { flex: 1; }
.wp-r { display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; }
.wp-r > span:not(.wp-mut):not(.wp-chk):not(.sp) { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.wp-r > i { flex: none; width: 6px; height: 6px; border-radius: 50%; }
.wp-r em { font-style: normal; color: #9a9aa0; font-size: 11px; margin-left: auto; padding-left: 6px; }
.wp-r.tl em { order: -1; margin: 0; padding: 0; width: 34px; }
.wp-r.off { color: #9a9aa0; }
.wp-m { color: #9a9aa0; font-size: 11px; margin-top: 2px; }
.wp-empty { margin: auto 0; font-weight: 600; font-size: 13px; }
.wp-empty small { color: #9a9aa0; font-weight: 400; }
.wp-sep { height: 1px; background: #343437; margin-bottom: 6px; }
.wp-chk { flex: none; width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid #6a6a70; display: grid; place-items: center; font-size: 9px; color: #1c1c1e; }
.wp-chk.on { background: var(--wacc); border-color: var(--wacc); }
.wp-hab { display: grid; gap: 3px; } .wp-hab.two { grid-template-columns: 1fr 1fr; column-gap: 14px; }
.wp-bar { display: flex; height: 8px; border-radius: 4px; background: #343437; overflow: hidden; }
.wp-bar i { height: 100%; }
.wp-two { display: flex; justify-content: space-between; gap: 10px; }
.wp-two > div:first-child { display: flex; flex-direction: column; }
.wp-leg { display: grid; gap: 4px; align-content: start; }
.wp-face { display: grid; place-items: center; flex: none; }
.wp-face > div { background: #14202a; display: flex; align-items: center; justify-content: center; }
.wp-face b { border-radius: 4px; display: block; }
.wp-c { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.wp-chips { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 10px; }
.wp-chips span { background: #343437; border-radius: 9px; padding: 4px 8px; font-size: 11px; }
.wp-v { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.wp-v div { display: flex; flex-direction: column; min-width: 0; }
.wp-v small { font-size: 11px; }
.wp-v .sp { flex: 1; }
.wp-vi { width: 26px; height: 26px; border-radius: 8px; background: #343437; display: grid; place-items: center; flex: none; }
.wp-btns { display: grid; gap: 8px; height: 100%; }
.wp-btns.small { grid-template-rows: 1fr 1fr; margin: -5px; height: calc(100% + 10px); }
.wp-btns.medium { grid-template-columns: repeat(3, 1fr); }
.wp-btns.large { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.wp-btns div { border-radius: 14px; padding: 9px 10px; display: flex; flex-direction: column; justify-content: space-between; color: #10131a; }
.wp-btns span { font-size: 16px; }
.wp-lock { width: 300px; background: #12212b; border-radius: 22px; padding: 18px 16px 22px; color: #fff; text-align: center; font-family: -apple-system, system-ui, sans-serif; }
.wp-time { font-size: 54px; font-weight: 600; line-height: 1.1; margin-bottom: 10px; }
.wp-circs { display: flex; justify-content: center; gap: 10px; }
.wp-circs div { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.18); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.wp-circs b { font-size: 14px; }
.wp-rect { display: inline-flex; flex-direction: column; align-items: flex-start; background: rgba(255,255,255,.12); border-radius: 12px; padding: 8px 12px; font-size: 13px; gap: 2px; }
.wp-inl { font-size: 14px; opacity: .9; }
.wp-tl { display: grid; gap: 6px; margin-top: 3px; } .wp-tl.small { gap: 4px; } .wp-tl.large { gap: 9px; }

/* ---------- colores de eventos ---------- */
.tl .it.it-ev[style*="--evc"] { box-shadow: inset 3px 0 0 var(--evc); background: color-mix(in srgb, var(--evc) 7%, var(--bg2)); }
.evcols { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 8px; }
.evcols label { cursor: pointer; position: relative; }
.evcols input { position: absolute; opacity: 0; pointer-events: none; }
.evcols i { display: block; width: 26px; height: 26px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px var(--bg2); transition: transform .12s; }
.evcols input:checked + i { box-shadow: 0 0 0 2px var(--bg2), 0 0 0 4px var(--c); transform: scale(1.05); }
.evcols span { width: 100%; }
