/* Mi ritmo lector — mismo lenguaje que el resto de Marginalia: bloques de color redondeados, Jost en mayúsculas finas,
   etiquetas espaciadas, acento manuscrito y lomos de colores. */

/* ---------- bloques ---------- */
.rt-win {
  margin: 18px 0;
  background: rgba(255,255,255,.55);
  color: var(--ink);
  border-radius: 28px;
  overflow: hidden;
}
.rt-win-pink { background: #ebb8d0; --line: rgba(42,20,22,.22); }
.rt-win-gold { background: #f2c14e; --line: rgba(42,20,22,.25); }
.rt-bar { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 22px 20px 0; }
.rt-title { font-family: var(--display); font-weight: 300; font-size: 26px; line-height: 1; text-transform: uppercase; letter-spacing: -.01em; }
.rt-deco { display: none; }
.rt-body { padding: 14px 20px 22px; display: grid; gap: 12px; }
.rt-lbl { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.rt-empty { color: var(--ink-soft); font-weight: 300; line-height: 1.6; font-size: 14px; }
.rt-empty a { color: var(--ink); }
.rt-warn { background: rgba(242,193,78,.45); border-radius: 16px; padding: 12px 14px; font-size: 14px; line-height: 1.5; }
.rt-warn a { color: var(--ink); }
.rt-note, .rt-hint { font-size: 13px; color: var(--ink-soft); font-weight: 300; line-height: 1.5; }
.rt-flag { font-style: normal; font-size: 10px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; background: #f2c14e; color: #2a1416; padding: 2px 8px; border-radius: 999px; }
.rt-chip { font-size: 10px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; background: var(--ink); color: var(--bg); padding: 4px 10px; border-radius: 999px; }

.rt-win .field, .rt-dialog .field { min-width: 0; max-width: 100%; background: rgba(255,255,255,.75); color: var(--ink); font: inherit; font-size: 15px; }
.rt-win .field:disabled { opacity: .45; }
.rt-win select.field, .rt-dialog select.field { padding-right: 40px; }
.rt-win button:focus-visible, .rt-dialog button:focus-visible, .rt-cell:focus-visible, .rt-mspine:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- ficha del libro ---------- */
.rt-book { margin-top: 22px; }
.rt-meter-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.rt-px { font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.rt-pct { font-family: var(--display); font-weight: 300; font-size: 34px; line-height: 1; color: var(--accent); }
.rt-track { display: block; height: 8px; border-radius: 99px; background: rgba(42,20,22,.12); overflow: hidden; margin-top: 8px; }
.rt-fill { display: block; height: 100%; border-radius: 99px; background: #8b2c2a; }
.rt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: end; }
.rt-grid label { display: grid; gap: 6px; }
.rt-err { color: #8b2c2a; font-size: 14px; line-height: 1.45; }
.rt-err:empty { display: none; }
.rt-log { width: 100%; letter-spacing: .1em; }
.rt-facts { list-style: none; padding: 0; display: grid; gap: 6px; font-size: 14px; font-weight: 300; line-height: 1.5; }
.rt-facts li::before { content: '— '; color: var(--accent); }
.rt-tl { list-style: none; padding: 0 0 0 6px; margin: 4px 0 0; border-left: 1.5px solid var(--line); }
.rt-tl li { position: relative; display: grid; grid-template-columns: 58px 1fr auto; gap: 10px; align-items: start; padding: 9px 0 9px 16px; }
.rt-dot { position: absolute; left: -6px; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: #ebb8d0; }
.rt-mark .rt-dot { background: #f2c14e; }
.rt-end .rt-dot { background: #8b2c2a; }
.rt-when { font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); padding-top: 3px; }
.rt-what { display: grid; gap: 2px; font-size: 14px; min-width: 0; }
.rt-what b { font-family: var(--display); font-weight: 400; font-size: 18px; }
.rt-what small { color: var(--ink-soft); font-weight: 300; }
.rt-sesnote { font-family: var(--serif); font-style: italic; font-size: 17px; overflow-wrap: anywhere; }
.rt-ses.is-conflict { background: rgba(242,193,78,.35); border-radius: 14px; }
.rt-edit { font-size: 12px; text-decoration: underline; color: var(--ink-soft); padding: 6px 4px; min-height: 32px; }
.rt-help summary { cursor: pointer; font-size: 13px; color: var(--ink-soft); }
.rt-help dl { display: grid; gap: 4px; margin-top: 8px; font-size: 13px; font-weight: 300; line-height: 1.5; }
.rt-help dt { font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; margin-top: 8px; }
.rt-link { font-size: 14px; color: var(--ink); justify-self: start; }

/* ---------- ventana emergente (como las demás hojas de la app) ---------- */
.rt-modal { position: fixed; inset: 0; z-index: 60; background: rgba(42,20,22,.6); backdrop-filter: blur(6px); display: grid; place-items: end center; padding: 12px; animation: fadeIn .25s; }
@media (min-width: 560px) { .rt-modal { place-items: center; } }
.rt-dialog { width: 100%; max-width: 440px; max-height: calc(100dvh - 24px); overflow-y: auto; margin: 0; background: #f7ebd8; --bg: #f7ebd8; --ink: #2a1416; --ink-soft: rgba(42,20,22,.68); --line: rgba(42,20,22,.22); --accent: #c23a4b; scrollbar-width: none; }
.rt-dialog::-webkit-scrollbar { display: none; }
.rt-dialog .rt-bar { align-items: center; }
.rt-x { width: 34px; height: 34px; border-radius: 50%; font-size: 14px; color: var(--ink-soft); }
.rt-x:hover { background: rgba(42,20,22,.08); }
.rt-form { display: grid; gap: 8px; }
.rt-booktitle { font-family: var(--display); text-transform: uppercase; font-weight: 400; font-size: 22px; line-height: 1.05; }
.rt-pages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rt-pages > div { display: grid; gap: 6px; }
.rt-calc { font-size: 13px; font-weight: 500; letter-spacing: .04em; background: rgba(255,255,255,.6); border-radius: 16px; padding: 10px 14px; }
.rt-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; cursor: pointer; }
.rt-check[hidden] { display: none; }
.rt-check input { width: 20px; height: 20px; accent-color: #8b2c2a; flex: none; }
.rt-note { min-height: 70px; height: auto; padding: 12px 18px; border-radius: 22px; resize: vertical; }
.rt-errors { list-style: none; padding: 0; color: #8b2c2a; font-size: 14px; display: grid; gap: 4px; line-height: 1.45; }
.rt-errors:empty { display: none; }
.rt-actions { display: grid; gap: 8px; margin-top: 4px; }
.rt-actions .pill { width: 100%; }
.rt-danger { color: #8b2c2a !important; border-color: #8b2c2a !important; }

/* ---------- página ---------- */
.rt-page { background: #f7ebd8; }
.rt-head { padding: 22px 0 4px; }
.rt-head .script { font-size: 46px; }
.rt-head h1 { font-size: clamp(52px, 15vw, 86px); font-weight: 300; line-height: .92; margin-top: 4px; }
.rt-lead { margin-top: 14px; font-weight: 300; color: var(--ink-soft); line-height: 1.6; }

.rt-monthnav { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; }
.rt-month { text-align: center; font-family: var(--display); font-weight: 300; font-size: 22px; text-transform: uppercase; letter-spacing: .02em; }
.rt-navbtn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink); font-size: 20px; line-height: 1; color: var(--ink); }
.rt-navbtn:disabled { opacity: .25; }
.rt-today { justify-self: center; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; text-decoration: underline; color: var(--ink-soft); padding: 4px 8px; }
.rt-today[hidden] { display: none; }

.rt-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.rt-wd { text-align: center; font-size: 10px; font-weight: 500; letter-spacing: .12em; color: var(--ink-soft); padding-bottom: 2px; }
.rt-cell {
  position: relative; aspect-ratio: 1 / 1.1; min-height: 44px; border-radius: 14px; background: rgba(255,255,255,.7);
  display: grid; grid-template-rows: auto 1fr auto; justify-items: center; padding: 4px 2px; color: var(--ink);
}
.rt-n { font-size: 13px; font-weight: 400; line-height: 1.1; }
.rt-p { font-size: 9px; font-weight: 500; align-self: center; opacity: .85; }
.rt-ticks { display: flex; gap: 2px; height: 5px; }
.rt-ticks i { width: 7px; height: 5px; border-radius: 2px 2px 0 0; }
/* día con lectura: una baldita con el libro de pie (portada visible) y, si hubo otro, apoyado al lado */
.rt-cell.has-cover { padding-bottom: 0; }
.rt-shelfday { position: absolute; left: 5px; right: 5px; bottom: 5px; height: 64%; display: flex; align-items: flex-end; justify-content: center; border-bottom: 3px solid #2a1416; border-radius: 0 0 2px 2px; }
.rt-cbook { position: relative; height: 92%; aspect-ratio: 2 / 3; border-radius: 1px 3px 3px 1px; overflow: hidden; box-shadow: 0 3px 6px -2px rgba(42,20,22,.45); }
.rt-cbook::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.22) 0 6%, rgba(255,255,255,.18) 6% 9%, transparent 9%); }
.rt-cbook.is-lean { height: 80%; margin-right: -6%; transform: rotate(-9deg); transform-origin: bottom right; opacity: .95; }
.rt-ccimg { display: block; width: 100%; height: 100%; object-fit: cover; }
.rt-cbook .cover-plain { width: 100%; height: 100%; padding: 0; }
.rt-cbook .cover-plain span { display: none; } /* en una casilla tan pequeña el título no se lee; el color basta */
.rt-cell.has-cover .rt-p { position: absolute; top: 4px; right: 6px; font-size: 9px; opacity: .7; }
.rt-more { position: absolute; bottom: 10px; right: 6px; z-index: 1; font-size: 9px; font-weight: 500; }
.rt-cell.lv-4 .rt-shelfday { border-bottom-color: #f6d6e3; }
@media (max-width: 480px) { .rt-cell.has-cover .rt-p { display: none; } .rt-shelfday { height: 54%; } }
.rt-cell.lv-1 { background: #f6d6e3; }
.rt-cell.lv-2 { background: #ebb8d0; }
.rt-cell.lv-3 { background: #d98aa5; }
.rt-cell.lv-4 { background: #8b2c2a; color: #f6d6e3; }
.rt-cell.is-today { box-shadow: inset 0 0 0 2px var(--ink); }
.rt-cell.is-sel { box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 3px #f2c14e; }
.rt-cell.is-future { background: transparent; box-shadow: inset 0 0 0 1px var(--line); opacity: .5; }
.rt-cell.is-conflict::after { content: '!'; position: absolute; z-index: 2; top: 2px; right: 5px; font-size: 11px; font-weight: 500; color: #8b2c2a; }
.rt-blank { min-height: 44px; }
.rt-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 12px; font-weight: 300; color: var(--ink-soft); line-height: 1.5; }
.rt-legend:empty { display: none; }
.rt-sw { width: 14px; height: 14px; border-radius: 4px; }
.rt-sw.lv-1 { background: #f6d6e3; } .rt-sw.lv-2 { background: #ebb8d0; } .rt-sw.lv-3 { background: #d98aa5; } .rt-sw.lv-4 { background: #8b2c2a; }

.rt-msum { font-size: 14px; line-height: 1.7; }
.rt-msum.is-empty { color: var(--ink-soft); font-weight: 300; }
.rt-mbooks, .rt-were { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; }
.rt-mbooks a, .rt-were a { padding: 5px 12px 5px 14px; border-radius: 999px; background: rgba(255,255,255,.75); color: var(--ink); text-decoration: none; box-shadow: inset 5px 0 0 var(--c); }
.rt-quote { font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.35; padding: 4px 0 4px 18px; border-left: 2px solid var(--accent); }
.rt-quote cite { display: block; margin-top: 6px; font-family: var(--sans); font-style: normal; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }

/* el día elegido: bloque vino, como "Ahora leyendo" en la estantería */
.rt-daycard { border-radius: 22px; padding: 16px; background: #8b2c2a; color: #f6d6e3; display: grid; gap: 8px; --ink: #f6d6e3; --ink-soft: rgba(246,214,227,.75); --line: rgba(246,214,227,.3); }
.rt-dayname { font-family: var(--display); text-transform: uppercase; font-weight: 300; font-size: 20px; line-height: 1.1; }
.rt-daytotal { font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #f2c14e; }
.rt-entries { list-style: none; padding: 0; display: grid; gap: 8px; }
.rt-entry { display: grid; grid-template-columns: 8px 1fr auto; gap: 10px; align-items: start; background: rgba(0,0,0,.14); border-radius: 16px; padding: 10px 8px 10px 0; overflow: hidden; }
.rt-entry.is-conflict { background: rgba(242,193,78,.25); }
.rt-spine { align-self: stretch; }
.rt-entry a { color: inherit; font-weight: 500; }
.rt-daycard .rt-edit { color: #f6d6e3; }
.rt-daycard .rt-were a { background: rgba(246,214,227,.92); color: #2a1416; }
.rt-daycard .pill { background: #f2c14e; color: #2a1416; }
.rt-daycard .rt-empty, .rt-daycard .rt-empty a { color: #f6d6e3; }

/* hilo del año */
.rt-axis { display: grid; grid-template-columns: repeat(12, 1fr); font-size: 10px; font-weight: 500; letter-spacing: .08em; color: var(--ink-soft); border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.rt-rows { list-style: none; padding: 0; display: grid; gap: 14px; margin-top: 12px; }
.rt-rows li { display: grid; gap: 4px; }
.rt-rowtitle { font-family: var(--display); font-weight: 400; font-size: 15px; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.rt-rowdesc { font-size: 12px; font-weight: 300; color: var(--ink-soft); }
.rt-track2 {
  position: relative; display: block; height: 16px; border-radius: 99px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.5) 0 calc(100% / 12 - 1px), rgba(42,20,22,.12) calc(100% / 12 - 1px) calc(100% / 12));
}
.rt-span { position: absolute; top: 2px; height: 12px; background: var(--c); border-radius: 99px; box-shadow: 0 2px 6px -2px rgba(42,20,22,.4); }
.rt-span.from-before { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.rt-span.goes-on { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.rt-fdot { position: absolute; top: 2px; width: 12px; height: 12px; margin-left: -6px; background: var(--c); border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
.rt-tk i { position: absolute; bottom: -1px; width: 2px; height: 5px; margin-left: -1px; background: #2a1416; border-radius: 1px; }
.rt-now { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #8b2c2a; border-radius: 1px; }

/* resumen */
.rt-h3 { font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin-top: 8px; }
.rt-h3.rt-sec { font-family: var(--display); font-weight: 300; font-size: 22px; letter-spacing: 0; color: var(--ink); margin-top: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.rt-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.rt-stat { border-radius: 20px; padding: 14px 16px; background: rgba(255,255,255,.55); display: grid; gap: 4px; }
.rt-stat b { font-family: var(--display); font-weight: 300; font-size: 34px; line-height: 1; }
.rt-stat span { font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); line-height: 1.35; }
.rt-stat small { font-size: 12px; font-weight: 300; color: var(--ink-soft); line-height: 1.35; }
.rt-bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; height: 110px; align-items: end; }
.rt-barcol { display: grid; grid-template-rows: 1fr auto; height: 100%; gap: 4px; }
.rt-barcol i { align-self: end; display: block; background: #8b2c2a; border-radius: 6px 6px 2px 2px; }
.rt-barcol small { font-size: 8px; font-weight: 500; letter-spacing: .04em; text-align: center; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-transform: uppercase; }
.rt-wdlist { list-style: none; padding: 0; display: grid; gap: 6px; }
.rt-wdlist li { display: grid; grid-template-columns: 22px 1fr 64px; gap: 8px; align-items: center; font-size: 13px; }
.rt-wdbar { height: 8px; background: rgba(255,255,255,.55); border-radius: 99px; overflow: hidden; }
.rt-wdbar i { display: block; height: 100%; background: #8b2c2a; border-radius: 99px; }
.rt-wdlist small { font-size: 12px; font-weight: 300; color: var(--ink-soft); text-align: right; }
.rt-prog, .rt-durs { list-style: none; padding: 0; display: grid; gap: 12px; }
.rt-prog li, .rt-durs li { display: grid; gap: 4px; }
.rt-prog a, .rt-durs a { color: var(--ink); font-family: var(--display); font-size: 15px; text-transform: uppercase; }
.rt-prog small, .rt-durs small { font-size: 12px; font-weight: 300; color: var(--ink-soft); }
.rt-prog .rt-track { background: rgba(255,255,255,.55); }
.rt-longest { font-size: 14px; background: rgba(255,255,255,.55); border-radius: 16px; padding: 10px 14px; line-height: 1.5; }
.rt-privacy { font-size: 13px; font-weight: 300; color: var(--ink-soft); margin: 10px 4px 40px; line-height: 1.6; }

/* ---------- apunte rápido ---------- */
.rt-quick { display: grid; gap: 10px; padding: 14px; border-radius: 22px; background: rgba(255,255,255,.55); }
.rt-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.7); }
.rt-seg label { position: relative; cursor: pointer; }
.rt-seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.rt-seg span { display: block; text-align: center; padding: 10px 4px; border-radius: 999px; font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); line-height: 1.2; }
.rt-seg input:checked + span { background: var(--ink); color: var(--bg); }
.rt-seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.rt-qrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.rt-qrow:has(.rt-qfrom:not([hidden])) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rt-qrow:has(.rt-qfrom:not([hidden])) .pill { grid-column: 1 / -1; }
.rt-qfrom[hidden] { display: none; }
.rt-qfrom, .rt-qval { display: grid; gap: 6px; }
.rt-qcalc { font-size: 13px; font-weight: 300; color: var(--ink-soft); line-height: 1.5; }

/* ---------- racha: bloque vino como "Ahora leyendo", con una balda de las dos últimas semanas ---------- */
.rt-skcard {
  position: relative; overflow: hidden; border-radius: 26px; padding: 20px 20px 18px;
  background: #8b2c2a; color: #f6d6e3; display: grid; gap: 6px;
  box-shadow: 0 18px 40px -18px rgba(42,20,22,.55);
}
.rt-sklabel { font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: #f2c14e; }
.rt-skhero { display: flex; align-items: flex-end; gap: 10px; margin: 2px 0 0; }
.rt-sknum { font-family: var(--display); font-weight: 300; font-size: 104px; line-height: .8; letter-spacing: -.04em; color: #f6d6e3; }
.rt-skunit { font-size: 40px; color: #f2c14e; margin-bottom: 8px; }
.rt-skcard.is-zero .rt-sknum { color: rgba(246,214,227,.45); }
.rt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rt-skmsg { font-size: 14px; font-weight: 300; line-height: 1.5; color: rgba(246,214,227,.82); max-width: 34ch; }

.rt-sktop { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rt-skrecord { font-size: 10px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #2a1416; background: #f2c14e; padding: 5px 10px; border-radius: 999px; }

/* el libro que tienes entre manos */
.rt-sknow {
  display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 14px; align-items: center;
  margin-top: 10px; padding: 12px; border-radius: 18px; text-decoration: none; color: inherit;
  background: rgba(246,214,227,.1); box-shadow: inset 0 0 0 1px rgba(246,214,227,.16);
  transition: background .2s;
}
.rt-sknow:hover { background: rgba(246,214,227,.16); }
.rt-skcover { width: 62px; aspect-ratio: 2/3; border-radius: 3px 5px 5px 3px; object-fit: cover; box-shadow: 0 10px 18px -8px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.2); }
.rt-skcover.cover-plain span { font-size: 8px; }
.rt-sknowtxt { display: grid; gap: 3px; min-width: 0; }
.rt-sknowtxt .rt-sklabel { font-size: 10px; }
.rt-sknowtxt b { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 19px; line-height: 1.05; color: #f6d6e3; overflow-wrap: anywhere; }
.rt-sknowtxt small { font-size: 12px; font-weight: 300; color: rgba(246,214,227,.72); }
.rt-skprog { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.rt-skprog em { font-style: normal; font-size: 13px; font-weight: 500; color: #f2c14e; white-space: nowrap; }
.rt-skbar { flex: 1; display: block; height: 5px; border-radius: 99px; background: rgba(246,214,227,.18); overflow: hidden; }
.rt-skbar i { display: block; height: 100%; border-radius: inherit; background: #f2c14e; }
.rt-skpg { letter-spacing: .04em; }
.rt-skalso { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; font-weight: 300; color: rgba(246,214,227,.72); margin-top: 2px; }
.rt-skalso a { color: #f6d6e3; text-decoration: none; padding: 3px 10px 3px 8px; border-radius: 999px; background: rgba(246,214,227,.1); border-left: 4px solid var(--c); }

/* las dos últimas semanas como una balda de libros */
.rt-skshelf {
  position: relative; list-style: none; padding: 18px 2px 0; margin: 8px 0 0;
  display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 3px; align-items: end;
}
.rt-skshelf::after { content: ''; position: absolute; left: -6px; right: -6px; bottom: 17px; height: 4px; border-radius: 2px; background: #f6d6e3; box-shadow: 0 3px 0 rgba(0,0,0,.18); }
.rt-skday { position: relative; display: grid; justify-items: center; align-items: end; gap: 9px; }
.rt-skday i { display: block; width: 6px; height: 6px; margin-bottom: 2px; border-radius: 50%; background: rgba(246,214,227,.28); }
.rt-skday.on i {
  width: 100%; max-width: 19px; margin-bottom: 0; border-radius: 3px 3px 1px 1px;
  /* lomo: color del libro, filo claro para que se vea sobre el vino y dos bandas como un lomo de verdad */
  background:
    linear-gradient(transparent 14%, rgba(255,255,255,.35) 14% 17%, transparent 17% 80%, rgba(0,0,0,.18) 80% 83%, transparent 83%),
    linear-gradient(90deg, rgba(255,255,255,.18), transparent 40%, rgba(0,0,0,.16)),
    var(--c);
  box-shadow: inset 0 0 0 1.5px rgba(246,214,227,.55);
}
.rt-skday.is-past i { opacity: .45; }
.rt-skday.is-today.on::before {
  /* marcapáginas dorado sobre el libro de hoy */
  content: ''; position: absolute; top: -10px; left: 50%; width: 8px; height: 14px; margin-left: -4px; z-index: 1;
  background: #f2c14e; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%);
}
.rt-skday span { font-size: 9px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: rgba(246,214,227,.55); white-space: nowrap; }
.rt-skday.in-streak span { color: #f6d6e3; }
.rt-skday.is-today span { color: #f2c14e; }

.rt-skbest { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; margin-top: 8px; padding-top: 10px; border-top: 1px solid rgba(246,214,227,.25); font-size: 14px; font-weight: 300; }
.rt-skbest span { font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: #f2c14e; }

/* días seguidos con lectura: enlazados en el calendario */
.rt-cell.chain-r::before {
  content: ''; position: absolute; right: -6px; top: 50%; width: 8px; height: 3px; margin-top: -1.5px;
  background: #8b2c2a; border-radius: 2px; z-index: 1;
}

/* ---------- estantería del mes (lomos como en la estantería principal) ---------- */
.rt-shelfrow { display: flex; align-items: flex-end; gap: 4px; flex-wrap: wrap; row-gap: 16px; padding: 10px 2px 0; border-bottom: 3px solid #2a1416; }
.rt-mspine {
  position: relative; display: flex; justify-content: center; padding: 10px 0 20px;
  background: var(--c); color: var(--t); border-radius: 3px 3px 0 0; text-decoration: none; overflow: hidden;
  transition: transform .2s cubic-bezier(.2,.8,.2,1);
}
.rt-mspine:hover { transform: translateY(-8px); }
.rt-mspine span { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--serif); text-transform: uppercase; font-size: 12px; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-height: 100%; }
.rt-mspine b { position: absolute; bottom: 4px; left: 0; right: 0; text-align: center; font-size: 11px; color: currentColor; }

@media (max-width: 360px) {
  .rt-grid, .rt-pages { grid-template-columns: 1fr; }
  .rt-p { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rt-modal { animation: none; }
  .rt-mspine { transition: none; }
  .rt-mspine:hover { transform: none; }
}

/* falta el número de páginas: se resalta el campo para escribirlo a mano */
.rt-win .field.is-missing { border-color: #f2c14e; box-shadow: 0 0 0 3px rgba(242,193,78,.45); }

/* una tarjeta impar al final ocupa toda la fila (no queda un hueco) */
.rt-stats > .rt-stat:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* recorrido del libro más compacto: +páginas y rango en una línea, las sesiones antiguas plegadas */
.rt-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.rt-tl li { padding-top: 7px; padding-bottom: 7px; }
.rt-tl .rt-acc { font-size: 12px; }
.rt-tl:not(.show-all) .is-old { display: none; }
.rt-tl.show-all .rt-more { display: none; }
.rt-more { display: block !important; padding: 4px 0 4px 16px !important; }
.rt-morebtn { font-size: 13px; color: var(--ink); background: rgba(255,255,255,.6); border-radius: 999px; padding: 7px 14px; }

/* atajos a cada parte de la página */
.rt-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.rt-jump a {
  font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--ink);
  padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(42,20,22,.25); transition: background .2s, color .2s;
}
.rt-jump a:hover { background: #2a1416; color: #f7ebd8; }
.rt-win { scroll-margin-top: 16px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- tu año, mes a mes ---------- */
.rt-yrsum { font-size: 15px; font-weight: 300; line-height: 1.6; margin: 4px 0 14px; }
.rt-yrsum b { font-family: var(--display); font-weight: 400; font-size: 22px; }
.rt-months { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.rt-ym { border-radius: 18px; background: rgba(255,255,255,.55); padding: 12px 14px; display: grid; gap: 10px; }
.rt-ym.is-empty { background: transparent; padding: 4px 14px; opacity: .55; }
.rt-ymhead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rt-ymhead b { font-family: var(--display); font-weight: 400; font-size: 18px; text-transform: uppercase; letter-spacing: .02em; }
.rt-ymhead small { font-size: 13px; font-weight: 300; color: var(--ink-soft); }
.rt-ymbooks { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; padding-bottom: 4px; border-bottom: 3px solid #2a1416; }
.rt-ymbook { position: relative; display: block; width: 46px; aspect-ratio: 2 / 3; border-radius: 2px 4px 4px 2px; overflow: hidden; box-shadow: 0 4px 8px -3px rgba(42,20,22,.45); transition: transform .2s; }
.rt-ymbook:hover { transform: translateY(-4px); }
.rt-ymcov { display: block; width: 100%; height: 100%; object-fit: cover; }
.rt-ymbook .cover-plain { width: 100%; height: 100%; padding: 8% 10%; }
.rt-ymbook .cover-plain span { font-size: 7px; -webkit-line-clamp: 4; }
.rt-ymbook i { position: absolute; right: 3px; bottom: 3px; width: 16px; height: 16px; border-radius: 50%; background: #2a1416; color: #f2c14e; font-style: normal; font-size: 10px; display: grid; place-items: center; }
.rt-ymbook.is-done { box-shadow: 0 0 0 2px #2a1416, 0 4px 8px -3px rgba(42,20,22,.45); }

/* ---------- resumen ---------- */
.rt-hl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rt-hlcard { border-radius: 20px; padding: 14px 16px; background: rgba(255,255,255,.6); display: grid; gap: 2px; }
.rt-hlk { font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--accent, #8b2c2a); }
.rt-hlcard b { font-family: var(--display); font-weight: 300; font-size: 40px; line-height: 1.05; }
.rt-hlu { font-size: 13px; font-weight: 500; }
.rt-hlcard small { font-size: 12px; font-weight: 300; color: var(--ink-soft); line-height: 1.4; margin-top: 4px; }
.rt-sentences { list-style: none; padding: 0; margin: 14px 0 4px; display: grid; gap: 6px; }
.rt-sentences li { position: relative; padding-left: 20px; font-size: 15px; font-weight: 300; line-height: 1.45; }
.rt-sentences li::before { content: '✦'; position: absolute; left: 0; top: 1px; font-size: 11px; color: var(--accent, #8b2c2a); }
/* el número de páginas encima de cada barra */
.rt-barcol i { position: relative; }
.rt-barcol em { position: absolute; left: -6px; right: -6px; bottom: calc(100% + 3px); font-style: normal; font-size: 9px; font-weight: 500; line-height: 1; text-align: center; color: var(--ink); opacity: .8; }
