/* Planificador mensual de estudio (Recordatorios → Planificador).
   La hoja reproduce el diseño de referencia: tarjetas pastel con títulos en píldora, calendario
   de lunes a domingo, tablas y seguimientos. Cada tarjeta recibe su color en --sp-c y de ahí
   salen el borde, el fondo y el título (se cambia con el panal de colores). */

/* ---------- Marco ---------- */
body .sp-mount { display: flex; flex: 1; flex-direction: column; min-height: 0; }
body .sp-root { position: relative; display: flex; flex: 1; flex-direction: column; min-height: 0; background: var(--rc-surface, #f5f6f8); color: #2b2f4a; }
body .sp-root *, body .sp-root *::before, body .sp-root *::after { box-sizing: border-box; }
body .sp-root :is(button, input, textarea, select) { all: unset; box-sizing: border-box; font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
body .sp-root :is(button, input, textarea, select):focus-visible { outline: 2px solid #6d5bd0; outline-offset: 1px; border-radius: 4px; }
body .sp-root button { cursor: pointer; }

/* Barra de herramientas */
body .sp-root .sp-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 6px 12px; border-bottom: 1px solid var(--rc-line, #e6e8ec); background: var(--rc-bg, #fff); }
body .sp-root .sp-tb-group { display: flex; align-items: center; gap: 4px; }
body .sp-root .sp-tb-group[hidden] { display: none; }
body .sp-root .sp-tb-group button { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 11px; border: 1px solid var(--rc-line, #e6e8ec); border-radius: 10px; background: var(--rc-surface, #f5f6f8); color: #2b2f4a; font: 600 13px/1 Roboto, system-ui, sans-serif; white-space: nowrap; }
body .sp-root .sp-tb-group button:active { background: #e9e6fb; }
body .sp-root .sp-tb-group button[aria-pressed="true"] { border-color: #6d5bd0; background: #ece9fb; color: #4b3bb0; }
body .sp-root .sp-tb-group .sp-tb-month { min-width: 128px; text-transform: capitalize; font-weight: 800; }
body .sp-root .sp-message { position: absolute; right: 12px; bottom: 10px; left: 12px; z-index: 5; margin: 0; padding: 10px 14px; border-radius: 12px; background: #2b2f4a; color: #fff; font: 600 13px/1.3 Roboto, system-ui, sans-serif; text-align: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
body .sp-root .sp-message[hidden] { display: none; }

/* Área desplazable y zoom */
body .sp-root .sp-scroll { flex: 1; min-height: 0; overflow: auto; padding: 10px 8px 96px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
body .sp-root .sp-zoom { width: max-content; margin: 0 auto; }
body .sp-root[data-sp-mode="list"] .sp-zoom { width: 100%; }

/* ---------- Hoja ---------- */
body .sp-root .sp-sheet {
  width: 735px;
  padding: 12px 17px 14px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(31, 41, 55, .13);
  color: #2b2f4a;
  font-family: Nunito, "Segoe UI", system-ui, sans-serif;
  font-size: 10px;
  line-height: 1.3;
}
body .sp-root[data-sp-mode="list"] .sp-sheet { width: 100%; max-width: 520px; margin: 0 auto; padding: 12px 12px 14px; }

body .sp-root .sp-row { display: grid; gap: 10px; margin-top: 10px; }
body .sp-root .sp-r1 { grid-template-columns: 216fr 260fr 200fr; }
body .sp-root .sp-r2 { grid-template-columns: 490fr 200fr; }
body .sp-root .sp-r3 { grid-template-columns: 138fr 194fr 150fr 190fr; gap: 9px; }
body .sp-root .sp-r4 { grid-template-columns: 208fr 240fr 227fr; }
body .sp-root[data-sp-mode="list"] .sp-row { grid-template-columns: minmax(0, 1fr); }
body .sp-root .sp-stack { display: grid; align-content: start; gap: 8px; }

/* ---------- Encabezado ---------- */
body .sp-root .sp-top { position: relative; display: grid; grid-template-columns: 262px minmax(0, 1fr) 128px; align-items: center; min-height: 124px; padding-bottom: 26px; }
body .sp-root .sp-brand { position: relative; display: flex; align-items: flex-end; gap: 0; min-width: 0; }
body .sp-root .sp-books { flex: none; width: 86px; height: 71px; margin-right: 2px; margin-bottom: 4px; }
body .sp-root .sp-sigla { display: flex; font-family: "Baloo 2", Nunito, sans-serif; font-weight: 800; font-size: 68px; line-height: .9; letter-spacing: -.02em; }
body .sp-root .sp-sigla[data-len="4"] { font-size: 52px; }
body .sp-root .sp-sigla b { color: var(--lc); -webkit-text-stroke: 6px #fff; paint-order: stroke fill; text-shadow: 3px 4px 0 rgba(43, 47, 74, .14); }
body .sp-root .sp-title { position: relative; z-index: 1; margin: 0; line-height: .98; font-family: "Baloo 2", Nunito, sans-serif; font-weight: 800; }
body .sp-root .sp-title span { display: block; color: #1f2a52; font-size: 35px; letter-spacing: -.01em; }
body .sp-root .sp-title b { display: block; color: #EC5D96; font-size: 21.5px; letter-spacing: .01em; }
body .sp-root .sp-spark { position: absolute; width: 14px; height: 14px; }
body .sp-root .sp-spark.is-a { top: 10px; left: 168px; }
body .sp-root .sp-spark.is-b { top: 88px; left: 204px; width: 11px; height: 11px; }
body .sp-root .sp-spark.is-c { top: 8px; right: 140px; width: 16px; height: 16px; }
body .sp-root .sp-sticky { position: relative; align-self: start; margin-top: 4px; padding: 16px 8px 14px; border-radius: 3px; background: #FFF4C2; box-shadow: 0 2px 7px rgba(43, 47, 74, .2); text-align: center; transform: rotate(1.4deg); }
body .sp-root .sp-tape { position: absolute; top: -6px; left: 50%; width: 46px; height: 13px; margin-left: -23px; border-radius: 2px; background: rgba(240, 98, 146, .55); transform: rotate(-2deg); }
body .sp-root .sp-sticky-input { display: block; width: 100%; resize: none; overflow: hidden; font: 600 12.5px/1.25 Caveat, "Segoe Print", cursive; color: #3a3450; text-align: center; white-space: pre-wrap; }
body .sp-root .sp-sticky-heart { position: absolute; right: 8px; bottom: 3px; font-size: 10px; }
body .sp-root .sp-monthbar { position: absolute; bottom: 0; left: 200px; display: flex; align-items: center; gap: 6px; width: 246px; padding: 4px 8px; border-radius: 8px; background: color-mix(in srgb, var(--sp-c) 40%, #fff); }
body .sp-root .sp-monthbar .sp-pill { background: transparent; padding: 0 2px; font-size: 11px; color: #2b2f4a; }
body .sp-root .sp-month-value { flex: 1; min-width: 0; padding: 1px 4px; border-bottom: 1.5px dotted #6f6a93; font-size: 11px; font-weight: 700; cursor: pointer; }

/* ---------- Tarjetas y títulos ---------- */
body .sp-root .sp-card {
  --sp-line: color-mix(in srgb, var(--sp-c) 38%, #fff);
  --sp-tint: color-mix(in srgb, var(--sp-c) 7%, #fff);
  --sp-head: color-mix(in srgb, var(--sp-c) 44%, #fff);
  --sp-ink: color-mix(in srgb, var(--sp-c) 58%, #1c1830);
  --sp-dot: color-mix(in srgb, var(--sp-c) 60%, #fff);
  --sp-rule: color-mix(in srgb, var(--sp-c) 45%, #9a9cab);
  min-width: 0;
  padding: 8px 9px 9px;
  border: 1.5px solid var(--sp-line);
  border-radius: 12px;
  background: var(--sp-tint);
}
body .sp-root .sp-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 7px; }
body .sp-root .sp-pill { display: inline-block; max-width: 100%; padding: 4px 10px; border-radius: 6px; background: var(--sp-head, #ddd); color: var(--sp-ink, #2b2f4a); font: 800 10px/1.15 Nunito, system-ui, sans-serif; letter-spacing: .05em; text-transform: uppercase; text-align: center; cursor: pointer; }
body .sp-root .sp-emoji { flex: none; font-size: 19px; line-height: 1; }

/* Líneas de texto */
body .sp-root .sp-line, body .sp-root .sp-focus-input, body .sp-root .sp-sub-input { display: block; width: 100%; min-width: 0; padding: 2px 1px; border-bottom: 1.5px dotted var(--sp-rule, #aaa); font-size: 10px; font-weight: 600; }
body .sp-root .sp-lines { display: block; width: 100%; min-width: 0; min-height: 0; resize: none; overflow: hidden; padding: 0 1px; font-size: 10px; font-weight: 600; line-height: 15px; white-space: pre-wrap; word-break: break-word; background: repeating-linear-gradient(to bottom, transparent 0, transparent 14px, var(--sp-rule, #aaa) 14px, var(--sp-rule, #aaa) 15px); background-size: 100% 15px; background-attachment: local; }
body .sp-root input::placeholder, body .sp-root textarea::placeholder { color: transparent; }

/* Metas y recordatorios con viñeta */
body .sp-root .sp-goals, body .sp-root .sp-focus, body .sp-root .sp-rem-list { display: grid; gap: 5px; }
body .sp-root .sp-goal { display: flex; align-items: center; gap: 8px; min-height: 22px; }
body .sp-root .sp-goal i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--sp-c); }
body .sp-root .sp-focus-row { display: flex; align-items: center; gap: 6px; min-height: 22px; }
body .sp-root .sp-star { flex: none; width: 15px; height: 15px; background: var(--sp-line); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4 6.1 20.5l1.2-6.5L2.5 9.4l6.6-.9z' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4 6.1 20.5l1.2-6.5L2.5 9.4l6.6-.9z' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
body .sp-root .sp-star[aria-pressed="true"] { background: var(--sp-c); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4 6.1 20.5l1.2-6.5L2.5 9.4l6.6-.9z' fill='%23000' stroke='%23000' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4 6.1 20.5l1.2-6.5L2.5 9.4l6.6-.9z' fill='%23000' stroke='%23000' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E"); }
body .sp-root .sp-focus-row:has(.sp-star[aria-pressed="true"]) .sp-focus-input { text-decoration: line-through; opacity: .65; }

/* ---------- Horas objetivo ---------- */
body .sp-root .sp-hours-grid { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
body .sp-root .sp-target { display: grid; gap: 8px; min-width: 0; font-weight: 700; font-size: 10px; }
body .sp-root .sp-target label { display: flex; align-items: baseline; gap: 4px; white-space: nowrap; }
body .sp-root .sp-num-input { display: inline-block; width: 34px; padding: 1px 2px; border-bottom: 1.5px dotted var(--sp-rule, #999); text-align: center; font-weight: 700; font-size: 10px; appearance: textfield; -moz-appearance: textfield; }
body .sp-root .sp-num-input::-webkit-outer-spin-button, body .sp-root .sp-num-input::-webkit-inner-spin-button { appearance: none; margin: 0; }
body .sp-root .sp-trophy { flex: none; font-size: 32px; line-height: 1; }
body .sp-root .sp-boost { margin-top: 8px; padding: 5px 6px; border: 1.5px dashed var(--sp-line); border-radius: 8px; background: rgba(255, 255, 255, .7); }
body .sp-root .sp-boost-input { display: block; width: 100%; resize: none; overflow: hidden; text-align: center; font-size: 8.5px; font-weight: 800; letter-spacing: .05em; line-height: 1.35; text-transform: uppercase; }
body .sp-root .sp-progress { margin-top: 7px; }
body .sp-root .sp-progress-bar { height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--sp-c) 18%, #fff); overflow: hidden; }
body .sp-root .sp-progress-bar i { display: block; width: 0; height: 100%; border-radius: 99px; background: var(--sp-c); transition: width .25s; }
body .sp-root .sp-progress small { display: block; margin-top: 3px; color: #5b5f7a; font-size: 8.5px; font-weight: 700; }

/* ---------- Calendario ---------- */
body .sp-root .sp-calendar { min-width: 0; border: 1px solid #e2e2ea; border-radius: 8px; overflow: hidden; background: #fff; }
body .sp-root .sp-dows { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
body .sp-root .sp-dow { display: block; padding: 5px 0 4px; background: var(--dc); color: #4a4a62; font-size: 9.5px; font-weight: 800; letter-spacing: .05em; text-align: center; cursor: pointer; }
body .sp-root .sp-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: minmax(52px, auto); }
body .sp-root .sp-day { position: relative; display: block; min-width: 0; padding: 3px 3px 12px; border-top: 1px solid #ececf2; border-left: 1px solid #ececf2; cursor: pointer; outline-offset: -2px; }
body .sp-root .sp-day:nth-child(7n + 1) { border-left: 0; }
body .sp-root .sp-day.is-blank { cursor: default; background: #fbfbfd; }
body .sp-root .sp-daynum { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: color-mix(in srgb, var(--dc) 55%, #fff); color: #3c3c55; font-size: 9px; font-weight: 800; }
body .sp-root .sp-day.is-today .sp-daynum { background: var(--dc); box-shadow: 0 0 0 2px #2b2f4a; }
body .sp-root .sp-day.is-selected { background: color-mix(in srgb, var(--dc) 14%, #fff); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--dc) 80%, #555); }
body .sp-root .sp-day.is-done .sp-daynum { text-decoration: line-through; }
body .sp-root .sp-chips { display: grid; gap: 1px; margin-top: 2px; }
body .sp-root .sp-chip { display: block; padding: 0 3px; border-radius: 3px; background: color-mix(in srgb, var(--rc) 26%, #fff); color: color-mix(in srgb, var(--rc) 45%, #1b1b2b); font-style: normal; font-size: 7.5px; line-height: 1.3; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body .sp-root .sp-chip.is-done { text-decoration: line-through; opacity: .55; }
body .sp-root .sp-more { font-style: normal; font-size: 7.5px; font-weight: 800; color: #6a6a84; }
body .sp-root .sp-check { position: absolute; right: 4px; bottom: 4px; width: 10px; height: 10px; border: 1.2px solid #b7b9c9; border-radius: 2px; background: #fff; }
body .sp-root .sp-check::after { content: ""; position: absolute; left: 2px; top: -1px; width: 3px; height: 6px; border: solid #fff; border-width: 0 1.6px 1.6px 0; transform: rotate(40deg) scale(0); transition: transform .12s; }
body .sp-root .sp-check[aria-pressed="true"] { border-color: color-mix(in srgb, var(--dc) 75%, #1f2c60); background: color-mix(in srgb, var(--dc) 85%, #1f2c60); }
body .sp-root .sp-check[aria-pressed="true"]::after { transform: rotate(40deg) scale(1); }
body .sp-root .sp-notes { padding: 5px 7px; border-radius: 0; border-width: 0; border-top: 1px solid #ececf2; border-left: 1px solid #ececf2; background: #fff; }
body .sp-root .sp-notes.is-inline { display: flex; align-items: flex-start; gap: 6px; }
body .sp-root .sp-notes.is-row { display: flex; align-items: flex-start; gap: 6px; border-left: 0; }
body .sp-root .sp-notes .sp-pill { flex: none; padding: 3px 8px; }
body .sp-root .sp-notes .sp-lines { flex: 1; min-height: 30px; }

/* ---------- Tablas ---------- */
body .sp-root .sp-tablecard { padding: 6px 6px 8px; }
body .sp-root .sp-tablecard .sp-head { margin-bottom: 6px; }
body .sp-root .sp-thead { display: grid; grid-template-columns: 66px minmax(0, 1fr); padding: 4px 7px; border-radius: 4px; background: var(--sp-head); color: var(--sp-ink); font-size: 8px; font-weight: 800; letter-spacing: .06em; text-align: center; }
body .sp-root .sp-sub-rows { display: grid; }
body .sp-root .sp-sub-row { display: grid; grid-template-columns: 66px minmax(0, 1fr); border-bottom: 1px solid var(--sp-line); }
body .sp-root .sp-sub-row:last-child { border-bottom: 0; }
body .sp-root .sp-sub-name { display: grid; justify-items: center; align-content: center; gap: 2px; padding: 6px 2px; border-right: 1px solid var(--sp-line); }
body .sp-root .sp-sub-icon { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: color-mix(in srgb, var(--bc) 30%, #fff); font-size: 15px; line-height: 1; }
body .sp-root .sp-sub-input { display: block; width: 100%; min-height: 0; padding: 0; border-bottom: 0; resize: none; overflow: hidden; text-align: center; text-transform: uppercase; font-size: 7.5px; font-weight: 800; letter-spacing: .02em; line-height: 1.15; color: var(--sp-ink); }
body .sp-root .sp-sub-row .sp-lines { padding: 6px 5px 4px; min-height: 52px; background-position: 0 6px; }
body .sp-root .sp-add { display: block; width: 100%; margin-top: 7px; padding: 5px 4px; border: 1.5px dashed var(--sp-line); border-radius: 8px; color: var(--sp-ink); font-size: 9px; font-weight: 800; text-align: center; }

body .sp-root .sp-syl-row { display: grid; grid-template-columns: minmax(0, 1fr) 30px; grid-template-areas: "name name" "bar pct"; align-items: center; gap: 1px 5px; min-height: 36px; padding: 4px 2px 3px; border-bottom: 1px solid var(--sp-line); }
body .sp-root .sp-syl-row:last-child { border-bottom: 0; }
body .sp-root .sp-syl-name { grid-area: name; overflow: hidden; font-size: 8.5px; font-weight: 800; white-space: nowrap; text-overflow: ellipsis; }
body .sp-root .sp-bar { grid-area: bar; position: relative; height: 10px; margin: 3px 0; border-radius: 99px; background: color-mix(in srgb, var(--bc) 22%, #fff); touch-action: pan-y; cursor: pointer; }
body .sp-root .sp-bar::before { content: ""; position: absolute; inset: -9px 0; }
body .sp-root .sp-bar i { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 99px; background: var(--bc); }
body .sp-root .sp-pct { grid-area: pct; display: flex; align-items: baseline; gap: 1px; font-size: 8px; font-weight: 700; }
body .sp-root .sp-pct .sp-num-input { width: 20px; padding: 0; font-size: 8.5px; }
body .sp-root .sp-syllabus .sp-thead { grid-template-columns: minmax(0, 1fr) 62px; gap: 2px; padding: 4px 3px; font-size: 6.5px; letter-spacing: .03em; }

body .sp-root .sp-mock-head, body .sp-root .sp-mock-row { grid-template-columns: 18px 32px minmax(0, 1fr) 46px; gap: 4px; }
body .sp-root .sp-mock-head { align-items: center; padding: 4px 3px; font-size: 6.5px; letter-spacing: .03em; }
body .sp-root .sp-mock-row { display: grid; align-items: center; min-height: 32px; padding: 0 3px; border-bottom: 1px solid var(--sp-line); }
body .sp-root .sp-mock-row:last-of-type { border-bottom: 0; }
body .sp-root .sp-mock-n { font-size: 9px; font-weight: 800; text-align: center; }
body .sp-root .sp-date { position: relative; display: block; min-width: 0; padding: 1px 0; border-bottom: 1.5px dotted var(--sp-rule); text-align: center; font-size: 8.5px; font-weight: 700; min-height: 13px; cursor: pointer; }
body .sp-root .sp-date input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
body .sp-root .sp-mock-row .sp-line { font-size: 8.5px; }
body .sp-root .sp-score { display: flex; align-items: baseline; gap: 1px; font-size: 8px; }
body .sp-root .sp-score .sp-num-input { width: 20px; padding: 0; font-size: 8.5px; }
body .sp-root .sp-score em { font-style: normal; font-weight: 700; color: #4b4f6b; white-space: nowrap; }

/* ---------- Revisión ---------- */
body .sp-root .sp-review p { margin: 6px 0 2px; font-size: 8.5px; font-weight: 800; }
body .sp-root .sp-review { position: relative; }
body .sp-root .sp-review .sp-emoji { margin-top: -2px; }

/* ---------- Hábitos y estudio del día ---------- */
body .sp-root .sp-habit-row { display: grid; grid-template-columns: 34px repeat(7, minmax(0, 1fr)); align-items: center; justify-items: center; gap: 2px; min-height: 18px; font-size: 7.5px; font-weight: 800; }
body .sp-root .sp-habit-row > span { justify-self: start; }
body .sp-root .sp-habit-head { color: var(--sp-ink); font-size: 8px; }
body .sp-root .sp-dot { display: block; width: 11px; height: 11px; border: 1.3px solid var(--sp-line); border-radius: 50%; background: #fff; }
body .sp-root .sp-dot[aria-pressed="true"] { border-color: var(--sp-c); background: var(--sp-c); }
body .sp-root .sp-daynav { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 4px; font-size: 8.5px; font-weight: 800; text-transform: capitalize; }
body .sp-root .sp-daynav button { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--sp-head); color: var(--sp-ink); font-size: 13px; line-height: 1; }
body .sp-root .sp-daily-hours { display: grid; gap: 4px; font-size: 8.5px; font-weight: 800; }
body .sp-root .sp-dots { display: flex; align-items: center; gap: 3px; }
body .sp-root .sp-daily-target { display: flex; align-items: baseline; gap: 2px; }
body .sp-root .sp-productive { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 8.5px; font-weight: 800; }
body .sp-root .sp-yn { display: inline-flex; align-items: center; gap: 3px; }
body .sp-root .sp-yn i { display: block; width: 9px; height: 9px; border: 1.3px solid var(--sp-line); border-radius: 2px; background: #fff; }
body .sp-root .sp-yn[aria-pressed="true"] i { border-color: var(--sp-c); background: var(--sp-c); }

/* ---------- Motivación, recordatorios y recompensa ---------- */
body .sp-root .sp-quote { position: relative; padding: 4px 4px 14px; }
body .sp-root .sp-quote-input { display: block; width: 100%; resize: none; overflow: hidden; text-align: center; font: italic 600 11px/1.35 Georgia, "Times New Roman", serif; white-space: pre-wrap; }
body .sp-root .sp-heart { position: absolute; right: 4px; bottom: -2px; font-size: 18px; }
body .sp-root .sp-rem-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 82px; gap: 8px; align-items: start; }
body .sp-root .sp-goal.is-yellow i { background: #F5C400; }
body .sp-root .sp-note-sticky { position: relative; margin-top: 4px; padding: 14px 6px 8px; border-radius: 3px; background: #FFF2B8; box-shadow: 0 2px 6px rgba(43, 47, 74, .2); transform: rotate(-4deg); }
body .sp-root .sp-note-sticky .sp-tape { background: rgba(51, 183, 154, .6); }
body .sp-root .sp-note-input { display: block; width: 100%; resize: none; overflow: hidden; text-align: center; font: 600 11px/1.2 Caveat, "Segoe Print", cursive; color: #3a3450; white-space: pre-wrap; }
body .sp-root .sp-reward { padding: 6px; border: 1.5px dashed var(--sp-line); border-radius: 9px; background: rgba(255, 255, 255, .75); }
body .sp-root .sp-reward-input { display: block; width: 100%; min-height: 52px; resize: none; overflow: hidden; font-size: 10px; font-weight: 600; line-height: 1.4; white-space: pre-wrap; }

/* ---------- Pie ---------- */
body .sp-root .sp-footer { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; padding: 6px 28px; border-radius: 8px; background: color-mix(in srgb, var(--sp-c) 38%, #fff); color: color-mix(in srgb, var(--sp-c) 55%, #1c1830); font-size: 11px; font-weight: 800; }
body .sp-root .sp-motto { display: block; flex: 1; min-width: 0; text-align: center; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
body .sp-root .sp-footer-color { position: absolute; top: 50%; right: 8px; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--sp-c); box-shadow: 0 0 0 2px #fff; }

/* ---------- Vista Lista (celular) ---------- */
body .sp-root[data-sp-mode="list"] .sp-top { display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-height: 0; padding-bottom: 0; }
body .sp-root[data-sp-mode="list"] .sp-brand { order: 1; justify-content: center; }
body .sp-root[data-sp-mode="list"] .sp-title { order: 2; text-align: center; }
body .sp-root[data-sp-mode="list"] .sp-title span { font-size: 27px; }
body .sp-root[data-sp-mode="list"] .sp-title b { font-size: 16.5px; }
body .sp-root[data-sp-mode="list"] .sp-monthbar { position: static; order: 3; width: 100%; }
body .sp-root[data-sp-mode="list"] .sp-sticky { order: 4; width: 78%; margin: 6px auto 0; }
body .sp-root[data-sp-mode="list"] .sp-spark { display: none; }
body .sp-root[data-sp-mode="list"] .sp-grid { grid-auto-rows: minmax(46px, auto); }
body .sp-root[data-sp-mode="list"] .sp-chip { font-size: 6.5px; }

/* ---------- Diálogos ---------- */
body dialog.sp-dialog { width: min(100%, 520px); max-width: 100%; max-height: 88dvh; margin: auto; padding: 0; border: 0; border-radius: 18px; background: #fff; color: #2b2f4a; color-scheme: light; font-family: Roboto, "Segoe UI", system-ui, sans-serif; font-size: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); overflow: hidden; }
body dialog.sp-dialog::backdrop { background: rgba(23, 20, 44, .42); }
body dialog.sp-dialog.is-bottom { margin: auto auto 0; max-height: 82dvh; border-radius: 18px 18px 0 0; }
body dialog.sp-dialog.is-bottom::backdrop { background: rgba(23, 20, 44, .12); }
body dialog.sp-dialog.is-section { width: min(calc(100% - 16px), 760px); max-height: 92dvh; }
body dialog.sp-dialog:not([open]) { display: none; }
body dialog.sp-dialog[open] { display: flex; flex-direction: column; }
body dialog.sp-dialog *, body dialog.sp-dialog *::before, body dialog.sp-dialog *::after { box-sizing: border-box; }
body dialog.sp-dialog :is(button, input, textarea, select) { font: inherit; color: inherit; }
body dialog.sp-dialog .sp-dh { display: flex; flex: none; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 14px 16px 6px; }
body dialog.sp-dialog .sp-dh h2 { margin: 0; font-size: 18px; font-weight: 800; }
body dialog.sp-dialog .sp-dh p { margin: 2px 0 0; color: #6b7280; font-size: 13px; }
body dialog.sp-dialog .sp-dclose { display: grid; place-items: center; flex: none; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: #f1f2f6; font-size: 22px; line-height: 1; cursor: pointer; }
body dialog.sp-dialog .sp-dbody { display: grid; align-content: start; gap: 12px; padding: 8px 16px 18px; overflow-y: auto; }
body dialog.sp-dialog .sp-section-large { padding-top: 4px; }
body dialog.sp-dialog .sp-section-large .sp-card { display: block; min-width: 0; padding: 18px; border: 1px solid color-mix(in srgb, var(--sp-c) 42%, #d9dbe5); border-radius: 16px; background: #fff; color: #2b2f4a; }
body dialog.sp-dialog .sp-section-large .sp-head { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; }
body dialog.sp-dialog .sp-section-large .sp-pill { min-height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--sp-c) 22%, #fff); color: #2b2f4a; font-weight: 800; cursor: pointer; }
body dialog.sp-dialog .sp-section-large :is(.sp-line, .sp-focus-input, .sp-num-input, .sp-lines, .sp-reward-input, .sp-quote-input, .sp-boost-input, .sp-note-input) { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid #d9dbe5; border-radius: 10px; background: #fff; color: #2b2f4a; font-size: 15px; line-height: 1.45; }
body dialog.sp-dialog .sp-section-large .sp-focus, body dialog.sp-dialog .sp-section-large .sp-goals, body dialog.sp-dialog .sp-section-large .sp-rem-list { gap: 10px; }
body dialog.sp-dialog .sp-section-large .sp-goal, body dialog.sp-dialog .sp-section-large .sp-focus-row { align-items: flex-start; }
body dialog.sp-dialog .sp-section-large .sp-star { width: 24px; height: 24px; margin-top: 8px; }
body dialog.sp-dialog .sp-section-large .sp-expand { display: none; }
body dialog.sp-dialog .sp-section-large .sp-thead { font-size: 11px; }
body dialog.sp-dialog .sp-section-large .sp-sub-row { grid-template-columns: 132px minmax(0, 1fr); }
body dialog.sp-dialog .sp-section-large .sp-sub-input, body dialog.sp-dialog .sp-section-large .sp-syl-name { font-size: 13px; }
body dialog.sp-dialog .sp-section-large .sp-sub-row .sp-lines { min-height: 90px; }
body dialog.sp-dialog .sp-section-large .sp-mock-head, body dialog.sp-dialog .sp-section-large .sp-mock-row { grid-template-columns: 28px 90px minmax(0, 1fr) 82px; font-size: 13px; }
body dialog.sp-dialog .sp-section-large .sp-syl-row { grid-template-columns: minmax(0, 1fr) 62px; min-height: 58px; }
body dialog.sp-dialog .sp-section-large .sp-syl-name { font-size: 14px; }
body dialog.sp-dialog .sp-section-large .sp-bar { height: 16px; }
body dialog.sp-dialog .sp-section-large .sp-pct { font-size: 13px; }
body dialog.sp-dialog .sp-section-large .sp-pct .sp-num-input { width: 40px; min-height: 32px; padding: 3px; }
@media (max-width: 520px) { body dialog.sp-dialog .sp-section-large .sp-sub-row { grid-template-columns: 90px minmax(0, 1fr); } body dialog.sp-dialog .sp-section-large .sp-mock-head, body dialog.sp-dialog .sp-section-large .sp-mock-row { grid-template-columns: 20px 56px minmax(0, 1fr) 54px; gap: 3px; } }
body dialog.sp-dialog .sp-dbody h3 { margin: 6px 0 0; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #6d5bd0; }
body dialog.sp-dialog label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; }
body dialog.sp-dialog input:not([type="checkbox"]), body dialog.sp-dialog select, body dialog.sp-dialog textarea { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid #d9dbe5; border-radius: 10px; background: #fff; font-size: 15px; font-weight: 500; }
body dialog.sp-dialog textarea { resize: none; line-height: 1.4; }
body dialog.sp-dialog .sp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
body dialog.sp-dialog .sp-switch { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px 4px; }
body dialog.sp-dialog .sp-switch input { width: 22px; min-height: 22px; height: 22px; accent-color: #6d5bd0; }
body dialog.sp-dialog .sp-yes-no { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
body dialog.sp-dialog .sp-yes-no span { flex: 1; }
body dialog.sp-dialog .sp-yes-no button, body dialog.sp-dialog .sp-drow button, body dialog.sp-dialog .sp-rem-day button, body dialog.sp-dialog .sp-months button, body dialog.sp-dialog .sp-year button, body dialog.sp-dialog .sp-icons button, body dialog.sp-dialog .sp-cchip { min-height: 40px; padding: 0 14px; border: 1px solid #d9dbe5; border-radius: 10px; background: #f6f6fa; font-size: 14px; font-weight: 700; cursor: pointer; }
body dialog.sp-dialog button[aria-pressed="true"] { border-color: #6d5bd0; background: #ece9fb; color: #4b3bb0; }
body dialog.sp-dialog .sp-primary { min-height: 46px; border: 0; border-radius: 12px; background: #6d5bd0; color: #fff; font-size: 15px; font-weight: 800; cursor: pointer; }
body dialog.sp-dialog .sp-drow { display: grid; gap: 8px; }
body dialog.sp-dialog .sp-drow .is-danger { border-color: #f3b6b6; background: #fff2f2; color: #b42318; }
body dialog.sp-dialog .sp-rem-day { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
body dialog.sp-dialog .sp-rem-day li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; border: 1px solid #eceef4; border-left: 4px solid var(--rc, #4DA3FF); border-radius: 10px; }
body dialog.sp-dialog .sp-rem-day li.is-empty { display: block; border-left-width: 1px; color: #6b7280; }
body dialog.sp-dialog .sp-rem-day label { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; }
body dialog.sp-dialog .sp-rem-day label span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body dialog.sp-dialog .sp-rem-day input { width: 20px; min-height: 20px; height: 20px; accent-color: #6d5bd0; }
body dialog.sp-dialog .sp-rem-day button { min-height: 34px; padding: 0 10px; font-size: 13px; }
body dialog.sp-dialog .sp-year { display: flex; align-items: center; justify-content: center; gap: 16px; font-size: 20px; }
body dialog.sp-dialog .sp-months { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
body dialog.sp-dialog .sp-months button { padding: 0 6px; text-transform: capitalize; }
body dialog.sp-dialog .sp-months .has-data { box-shadow: inset 0 -3px 0 #6d5bd0; }
body dialog.sp-dialog .sp-icons { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
body dialog.sp-dialog .sp-icons button { padding: 0; font-size: 20px; }
body dialog.sp-dialog .sp-cchips { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
body dialog.sp-dialog .sp-cchip { display: inline-flex; flex: none; align-items: center; gap: 6px; min-height: 34px; padding: 0 10px; font-size: 12px; white-space: nowrap; }
body dialog.sp-dialog .sp-cchip i { width: 14px; height: 14px; border-radius: 50%; background: var(--cc); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
body dialog.sp-dialog .sp-cname { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; }
body dialog.sp-dialog .sp-cdot { width: 18px; height: 18px; border-radius: 50%; background: var(--cc); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }
body dialog.sp-dialog .sp-honey { overflow: visible; padding: 4px 0; text-align: center; }

/* ---------- Dentro de la Agenda ---------- */
body dialog.rc-dialog.is-planner .rc-fab { display: none; }
body dialog.rc-dialog.is-planner .rc-head { padding-bottom: 6px; }
body dialog.rc-dialog.is-planner .rc-body { overflow: hidden; }

@media (max-width: 719px) {
  body .sp-root .sp-toolbar { gap: 4px 6px; padding: 6px 8px; }
  body .sp-root .sp-tb-group button { min-width: 32px; height: 32px; padding: 0 8px; font-size: 12px; }
  body .sp-root .sp-tb-group .sp-tb-month { min-width: 104px; }
}

/* ---------- Impresión ---------- */
@media print {
  @page { size: A4; margin: 6mm; }
  body > *:not(dialog.rc-dialog) { display: none !important; }
  body dialog.rc-dialog { position: static !important; overflow: visible !important; }
  body dialog.rc-dialog :is(.rc-side, .rc-head, .rc-people, .rc-fab, .sp-toolbar, .sp-message) { display: none !important; }
  body dialog.rc-dialog .rc-shell, body dialog.rc-dialog .rc-main, body dialog.rc-dialog .rc-body, body .sp-root, body .sp-scroll { display: block !important; height: auto !important; overflow: visible !important; padding: 0 !important; background: #fff !important; }
  body .sp-root .sp-zoom { zoom: 1.03 !important; width: auto !important; }
  body .sp-root .sp-sheet { box-shadow: none !important; margin: 0 auto; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body .sp-root * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
