/* Panel personal · mobile-first, tema oscuro índigo */

:root {
  --bg: #121741;
  --bg-2: #1b2368;
  --surface: rgba(255, 255, 255, .065);
  --surface-2: rgba(255, 255, 255, .11);
  --border: rgba(255, 255, 255, .10);
  --text: #f3f4ff;
  --muted: #a7aedc;
  --faint: #6f78b3;
  --accent: #8b7cff;
  --accent-2: color-mix(in srgb, var(--accent) 70%, #fff);
  --green: #34d399;
  --red: #fb7185;
  --yellow: #facc15;
  --cyan: #22d3ee;
  --empty: rgba(160, 170, 255, .16);
  --radius: 18px;
  --radius-sm: 12px;
  --tabbar-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
  background: radial-gradient(120% 60% at 50% 0%, var(--bg-2) 0%, var(--bg) 70%) fixed, var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
.num, .money { font-variant-numeric: tabular-nums; }

/* ---- Estructura ---------------------------------------------------- */

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: calc(12px + var(--safe-t)) 16px 12px;
  background: linear-gradient(var(--bg-2), color-mix(in srgb, var(--bg-2) 85%, transparent));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  max-width: 680px; margin: 0 auto;
}
.topbar h1 { flex: 1; margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-action { display: flex; gap: 8px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-weight: 700;
  background: linear-gradient(135deg, var(--cyan), var(--accent)); color: var(--bg);
}
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-edit { display: flex; align-items: center; gap: 16px; }
.avatar-lg { position: relative; width: 84px; height: 84px; font-size: 32px; cursor: pointer; overflow: visible; }
.avatar-lg img, .avatar-lg [data-avatar-letter] { border-radius: 50%; width: 100%; height: 100%; display: grid; place-items: center; }
.avatar-lg img[hidden] { display: none; }
.avatar-cam {
  position: absolute; right: -2px; bottom: -2px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px;
  background: var(--accent); color: #fff; border: 3px solid var(--bg-2);
}
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border);
  cursor: pointer;
}
.icon-btn:active { transform: scale(.95); }

.page {
  max-width: 680px; margin: 0 auto;
  padding: 4px 16px calc(var(--tabbar-h) + 40px + var(--safe-b));
}

.tabbar {
  position: fixed; z-index: 30;
  left: 50%; transform: translateX(-50%);
  bottom: calc(10px + var(--safe-b));
  width: min(440px, calc(100% - 24px));
  height: var(--tabbar-h);
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px;
  background: color-mix(in srgb, var(--bg-2) 85%, transparent);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border-radius: 999px; color: var(--muted); font-size: 11px; font-weight: 500;
}
.tabbar a i { font-size: 17px; }
.tabbar a.is-active { background: color-mix(in srgb, var(--accent) 28%, transparent); color: #fff; font-weight: 700; }

.fab {
  position: fixed; z-index: 31;
  right: max(16px, calc(50% - 324px));
  bottom: calc(var(--tabbar-h) + 22px + var(--safe-b));
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; font-size: 22px;
  background: var(--accent); color: #fff;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 55%, transparent);
}
.fab:active { transform: scale(.94); }

/* ---- Bloques -------------------------------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
}
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.card-head h2, .card-head h3 { margin: 0; font-size: 16px; font-weight: 600; flex: 1; min-width: 0; }
.card-head .meta { color: var(--muted); font-size: 13px; white-space: nowrap; }
.section-title {
  margin: 22px 4px 10px; font-size: 12px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--faint);
  display: flex; justify-content: space-between; align-items: baseline;
}
.section-title a { letter-spacing: 0; text-transform: none; font-size: 13px; color: var(--accent-2); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.pos { color: var(--green); }
.neg { color: var(--red); }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; min-width: 0; }
.stat .label { font-size: 12px; color: var(--muted); }
.stat .value { font-size: 20px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat.wide { grid-column: 1 / -1; }
.stat.wide .value { font-size: 28px; }

.bar { height: 8px; border-radius: 99px; background: var(--empty); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 99px; background: var(--accent); }

.list { display: flex; flex-direction: column; gap: 8px; }
.row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; min-height: 60px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.row-icon { width: 34px; text-align: center; font-size: 20px; flex: none; }
.row-main { flex: 1; min-width: 0; }
.row-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-sub { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-end { text-align: right; flex: none; font-variant-numeric: tabular-nums; font-weight: 600; }
.list-date { font-size: 12px; color: var(--faint); margin: 12px 4px 2px; font-weight: 600; }

.empty { text-align: center; color: var(--muted); padding: 28px 12px; }
.empty i { font-size: 28px; display: block; margin-bottom: 8px; color: var(--faint); }

.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 99px; font-size: 12px;
  background: var(--surface-2); color: var(--muted);
}
.chip.ok { background: rgba(52, 211, 153, .18); color: var(--green); }
.chip.warn { background: rgba(250, 204, 21, .16); color: var(--yellow); }

.flash { padding: 10px 14px; border-radius: var(--radius-sm); margin: 6px 0 12px; font-size: 14px; }
.flash-ok { background: rgba(52, 211, 153, .15); color: #a7f3d0; }
.flash-error { background: rgba(251, 113, 133, .15); color: #fecdd3; }

/* ---- Segmented / navegación de período -------------------------------- */

.segmented {
  display: flex; gap: 4px; padding: 4px; margin-bottom: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  overflow-x: auto; scrollbar-width: none;
}
.segmented a, .segmented label {
  flex: 1; text-align: center; padding: 7px 12px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; cursor: pointer;
}
.segmented a.is-active, .segmented input:checked + label { background: var(--surface-2); color: #fff; font-weight: 600; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented.tipo input[value="ingreso"]:checked + label { background: rgba(52, 211, 153, .22); color: var(--green); }
.segmented.tipo input[value="egreso"]:checked + label { background: rgba(251, 113, 133, .22); color: var(--red); }

.period {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin: 6px 0 12px;
}
.period strong { font-size: 16px; }
.period .today-link { font-size: 12px; padding: 2px 8px; border-radius: 6px; background: color-mix(in srgb, var(--accent) 35%, transparent); margin-left: 6px; }

/* ---- Formularios ------------------------------------------------------ */

.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span, .field > label { font-size: 13px; color: var(--muted); font-weight: 500; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.input, select.input, textarea.input {
  width: 100%; min-height: 46px; padding: 11px 14px;
  font: inherit; font-size: 16px; color: var(--text);
  background: rgba(255, 255, 255, .08); border: 1px solid var(--border); border-radius: var(--radius-sm);
  outline: none; -webkit-appearance: none; appearance: none;
}
select.input {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px;
}
select.input option { background: var(--bg-2); }
textarea.input { min-height: 110px; resize: vertical; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.input-amount { font-size: 32px; font-weight: 700; text-align: center; min-height: 64px; font-variant-numeric: tabular-nums; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
details.more { border-top: 1px solid var(--border); padding-top: 10px; }
details.more summary { cursor: pointer; color: var(--accent-2); font-size: 14px; list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
details.more[open] summary { margin-bottom: 14px; }
details.more > .form { gap: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface-2);
  font-weight: 600; cursor: pointer;
}
.btn-primary { background: var(--accent); border-color: transparent; color: #fff; }
.btn-danger { background: transparent; border-color: rgba(251, 113, 133, .4); color: var(--red); }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:active { transform: scale(.98); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.actions .btn { flex: 1; }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatches input { position: absolute; opacity: 0; }
.swatches label { width: 36px; height: 36px; border-radius: 50%; cursor: pointer; border: 3px solid transparent; display: grid; place-items: center; }
.swatches input:checked + label { border-color: #fff; }
.icons label { background: var(--surface); border-radius: 10px; font-size: 16px; }
.days { display: flex; gap: 6px; }
.days input[type=radio], .days input[type=checkbox] { position: absolute; opacity: 0; }
.days label { flex: 1; text-align: center; padding: 9px 0; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; cursor: pointer; }
.days input:checked + label { background: var(--accent); border-color: transparent; color: #fff; font-weight: 600; }

/* ---- Hábitos ---------------------------------------------------------- */

.habit-btn {
  --c: var(--accent);
  width: 50px; height: 50px; border-radius: 14px; flex: none;
  display: grid; place-items: center;
  border: 2px solid rgba(255, 255, 255, .28); background: transparent;
  font-size: 15px; font-weight: 700; cursor: pointer; user-select: none; -webkit-user-select: none;
  font-variant-numeric: tabular-nums; touch-action: manipulation;
}
.habit-btn.is-partial { border-color: var(--c); color: var(--c); }
.habit-btn.is-done { background: var(--c); border-color: var(--c); color: var(--bg); box-shadow: 0 0 18px color-mix(in srgb, var(--c) 55%, transparent); }
.habit-btn.is-running { border-color: var(--c); color: var(--c); animation: pulse 1.6s infinite; }
.habit-btn small { font-size: 11px; }
.habit-btn:active { transform: scale(.92); }
.habit-btn[disabled] { opacity: .5; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 25%, transparent); } }
.streak { color: #fdba74; font-size: 13px; white-space: nowrap; }

.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.week .dow { font-size: 11px; color: var(--muted); font-weight: 600; }
.week .habit-btn { width: 100%; height: auto; aspect-ratio: 1; max-width: 44px; margin: 0 auto; border-radius: 10px; font-size: 12px; }
.week .is-off { opacity: .25; pointer-events: none; }
.week .is-rest { opacity: .45; }
.week .is-today .dow { color: #fff; }

.heat-wrap { overflow-x: auto; scrollbar-width: none; direction: rtl; }
.heat-wrap > * { direction: ltr; }
.heat { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); gap: 3px; width: max-content; }
.heat span { width: 11px; height: 11px; border-radius: 3px; background: var(--empty); }
.heat span.l1 { background: color-mix(in srgb, var(--c) 45%, transparent); }
.heat span.l2 { background: var(--c); }
.heat span.future { background: transparent; }
.heat span.today { outline: 1.5px solid #fff; outline-offset: 0; }
.heat-months { display: grid; grid-auto-flow: column; gap: 3px; width: max-content; font-size: 10px; color: var(--muted); margin-bottom: 4px; }
.heat-months span { width: 11px; overflow: visible; white-space: nowrap; }

/* ---- Objetivos -------------------------------------------------------- */

.goal { display: block; }
.goal .bar { margin-top: 10px; }
.goal-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 6px; }
.milestone { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.milestone:last-child { border-bottom: 0; }
.milestone .tick {
  width: 26px; height: 26px; border-radius: 8px; flex: none; display: grid; place-items: center;
  border: 2px solid rgba(255, 255, 255, .3); background: transparent; cursor: pointer; color: transparent;
}
.milestone.is-done .tick { background: var(--green); border-color: var(--green); color: var(--bg); }
.milestone.is-done .m-title { text-decoration: line-through; color: var(--muted); }
.milestone .m-title { flex: 1; }

.ring { --p: 0; --c: var(--accent); width: 64px; height: 64px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--empty) 0);
  display: grid; place-items: center; }
.ring::before { content: attr(data-label); width: 50px; height: 50px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; font-size: 13px; font-weight: 700; }

/* ---- Diario ----------------------------------------------------------- */

.mood-value { text-align: center; font-size: 64px; font-weight: 800; line-height: 1; margin-top: 8px; font-variant-numeric: tabular-nums; }
.mood-label { text-align: center; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 13px; margin-bottom: 14px; }
input[type=range].mood {
  width: 100%; height: 34px; -webkit-appearance: none; appearance: none; background: transparent;
}
input[type=range].mood::-webkit-slider-runnable-track { height: 10px; border-radius: 99px; background: linear-gradient(90deg, #fb7185, #fb923c, #facc15, #a3e635, #34d399, #22d3ee); }
input[type=range].mood::-moz-range-track { height: 10px; border-radius: 99px; background: linear-gradient(90deg, #fb7185, #fb923c, #facc15, #a3e635, #34d399, #22d3ee); }
input[type=range].mood::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -10px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); }
input[type=range].mood::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); }
.mood-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.mood-dots { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.mood-dots span { aspect-ratio: 1; border-radius: 6px; background: var(--empty); display: grid; place-items: center; font-size: 10px; color: var(--bg); font-weight: 700; }

/* ---- Temas de color --------------------------------------------------- */

.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.theme-grid input { position: absolute; opacity: 0; pointer-events: none; }
.theme-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
  min-height: 84px; padding: 10px; border-radius: 14px; cursor: pointer;
  border: 2px solid rgba(255, 255, 255, .08);
}
.theme-grid input:checked + .theme-card { border-color: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 40%, transparent); }
.theme-preview { display: flex; gap: 4px; }
.theme-preview i { flex: 1; height: 8px; border-radius: 99px; }
.theme-name { font-size: 13px; font-weight: 600; color: #fff; }
.swatch-auto { background: var(--surface-2); font-size: 11px; font-weight: 600; color: var(--muted); width: auto !important; padding: 0 10px; border-radius: 99px !important; }
.swatch-custom { position: relative; background: conic-gradient(#fb7185, #facc15, #34d399, #22d3ee, #8b7cff, #f472b6, #fb7185); }
.swatch-custom input[type=color] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.theme-sample { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--border); }

/* ---- Categorías (ajustes) --------------------------------------------- */

.cat-item { border-bottom: 1px solid var(--border); }
.cat-item:last-child { border-bottom: 0; }
.cat-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 11px 0; }
.cat-item summary::-webkit-details-marker { display: none; }
.cat-item .cat-name { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-item.is-sub summary { padding-left: 14px; }
.cat-item.is-sub .cat-name { font-weight: 400; color: var(--muted); }
.cat-item[open] summary .fa-chevron-down { transform: rotate(180deg); }
.cat-edit { padding: 2px 0 14px; }

/* ---- Tareas ----------------------------------------------------------- */

.task { min-height: 54px; padding: 10px 14px; }
.task-check {
  width: 28px; height: 28px; border-radius: 50%; flex: none; cursor: pointer;
  display: grid; place-items: center; font-size: 13px; color: transparent;
  background: transparent; border: 2px solid rgba(255, 255, 255, .35);
  touch-action: manipulation;
}
.task-check.is-prio { border-color: var(--red); }
.task-check:active { transform: scale(.9); }
.task.is-done .task-check { background: var(--green); border-color: var(--green); color: var(--bg); }
.task.is-done .task-title { text-decoration: line-through; color: var(--faint); }
.task .row-sub i { margin-right: 3px; }

/* ---- Notas ------------------------------------------------------------ */

.notes { columns: 2 160px; column-gap: 10px; }
.note {
  display: block; break-inside: avoid; margin-bottom: 10px; padding: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.note.is-pinned { border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.note-title { font-weight: 600; margin-bottom: 4px; overflow-wrap: anywhere; }
.note-body { font-size: 14px; color: var(--muted); white-space: pre-line; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.note-meta { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; font-size: 11px; color: var(--faint); align-items: center; }

/* ---- Libros ----------------------------------------------------------- */

.book-cover {
  width: 44px; height: 62px; border-radius: 6px; flex: none; display: grid; place-items: center;
  font-weight: 800; font-size: 18px; color: rgba(255, 255, 255, .9);
  box-shadow: inset -4px 0 0 rgba(0, 0, 0, .25);
}
.stars { color: var(--yellow); font-size: 12px; letter-spacing: 1px; }
.stars-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.stars-input input { position: absolute; opacity: 0; }
.stars-input label { font-size: 26px; color: var(--empty); cursor: pointer; }
.stars-input input:checked ~ label, .stars-input label:hover, .stars-input label:hover ~ label { color: var(--yellow); }

/* ---- Vista previa del menú inferior ----------------------------------- */

.tabbar.tabbar-preview {
  position: static; transform: none; width: 100%; height: 58px; margin: 2px 0;
  box-shadow: none; pointer-events: none;
}
.tabbar-preview a { font-size: 10px; }
.tabbar-preview a i { font-size: 15px; }
.sort-row.en-barra { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
[data-nav-form] .sort-row .sort-label { color: var(--text) !important; text-decoration: none !important; }

/* ---- Ordenar secciones ------------------------------------------------ */

.sortable { display: flex; flex-direction: column; gap: 8px; }
.sort-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 12px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .05); border: 1px solid var(--border);
  transition: transform .15s ease, background .3s ease;
}
.sort-row.moved { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.sort-label { flex: 1; min-width: 0; font-weight: 500; }
.sort-row:has(.switch input:not(:checked)) .sort-label { color: var(--faint); }
.sort-row:has(.switch input:not(:checked)) > .fa-solid { opacity: .4; }
.sort-btn { width: 34px; height: 34px; font-size: 12px; }
.sort-row:first-child .sort-btn[data-move="-1"],
.sort-row:last-child .sort-btn[data-move="1"] { opacity: .25; pointer-events: none; }

.switch { position: relative; width: 42px; height: 24px; flex: none; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--empty); transition: background .2s; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(18px); }

/* ---- Instalar app ----------------------------------------------------- */

.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.steps li::marker { color: var(--accent-2); font-weight: 700; }
.kbd { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--surface-2); color: var(--cyan); font-size: 13px; vertical-align: middle; }

/* ---- Login ------------------------------------------------------------ */

.auth { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.auth .card { width: min(380px, 100%); padding: 24px; }
.auth h1 { margin: 0 0 4px; font-size: 26px; }

@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat.wide { grid-column: span 2; }
}
