/* ---------- 2.8.81: the Review over the photo, in glass (B “Capsules” in the redesign mockups) ----------
   The home page centred, like the top of Daily: the title and the handwritten focus of the week over the photo, and
   each review a glass capsule with its circle to start. The weeks, one capsule each. Inside the
   review: the step bar in a capsule, the title centred, each screen in glass boxes and Atrás / Seguir (Back / Next)
   floating at the bottom, not moving. The focus is written by hand with no box, as it will appear above the clock.
   The photo, the --vd-* tokens and the night (html.gl-night) come from the base (styles/glass.css). Everything
   hangs from html.glass and #view-repaso.view: it ties with the base's (.view:not(#view-hoy)) and wins because
   this stylesheet comes after. */

/* ---- inside the Review: translucent lines and backgrounds; in dark and at night, white text (like #view-hoy) ---- */
html.glass #view-repaso.view{--border:rgba(26,22,17,.12);--border-soft:rgba(26,22,17,.09);--track:rgba(26,22,17,.1);--surface-2:rgba(26,22,17,.05);--surface-3:rgba(26,22,17,.1);--bg:rgba(255,255,255,.45);
  --rp-oliva-velo:rgba(138,169,120,.2);--rp-sombra:0 1px 2px rgba(0,0,0,.34),0 0 18px rgba(0,0,0,.3);--rp-sombra-mano:0 1px 2px rgba(0,0,0,.3),0 2px 20px rgba(0,0,0,.28);
  --rp-cristal:linear-gradient(180deg,rgba(255,255,255,.09),rgba(255,255,255,0) 42%),var(--vd-caja);--rp-filo:inset 0 0 0 1px var(--vd-borde),inset 0 1px 0 var(--vd-brillo)}
:is(:root[data-theme="dark"].glass,html.glass.gl-night) #view-repaso.view{--text:#fff;--muted:rgba(255,255,255,.78);--faint:rgba(255,255,255,.62);
  --border:rgba(255,255,255,.16);--border-soft:rgba(255,255,255,.11);--track:rgba(255,255,255,.16);--surface:rgba(255,255,255,.08);--surface-2:rgba(255,255,255,.08);--surface-3:rgba(255,255,255,.16);--bg:rgba(255,255,255,.06);
  --rp-oliva-velo:rgba(138,169,120,.16);color:var(--text)}

/* ---- the glass: the same as Daily's. :where() so it has low specificity and each piece can fine-tune it ---- */
html.glass #view-repaso.view :where(.rev-card,.ro-more,.rev-banner,.add-box input,.f-actions,.f-actions .btn.ghost,.wr-fo-list,.wr-fo-add,.wr-fo-sel .wr-fo-of,.rv-ritual-c,.rv-ritual .btn.ghost,.rv-list .wr-week,.wiz-prog,.cd-skip){
  background:var(--rp-cristal);-webkit-backdrop-filter:var(--vd-blur);backdrop-filter:var(--vd-blur);border:0;box-shadow:var(--rp-filo)}
html.glass #view-repaso.view .rev-card{border-radius:26px;padding:16px 18px;margin-bottom:14px}

/* ---- what sits directly on the photo: white, with a soft shadow ---- */
html.glass #view-repaso.view :is(.rv-head,.wiz-title,.wiz-sub,.pl-sec,.ro-sec,.wr-day,.rv-sec){color:#fff;text-shadow:var(--rp-sombra)}
/* section titles, at 17 px and in normal case (no longer in small uppercase letters) */
html.glass #view-repaso.view :is(.pl-sec,.ro-sec,.wr-day,.rv-sec){font:700 17px/1.25 var(--font-head);letter-spacing:-.01em;text-transform:none;margin:20px 2px 9px}
html.glass #view-repaso.view .wr-day{font-size:15px;margin-top:18px}
html.glass #view-repaso.view .ro-sec .glyph{color:#fff}
html.glass #view-repaso.view .ro-sec span{background:rgba(255,255,255,.26);color:#fff;font-size:12px;text-shadow:none}

/* ================= the home page ================= */
html.glass #view-repaso.view.rv-front{max-width:600px;margin:0 auto}
/* the title, centred, with a very faint dark halo behind it (so it also reads against the sky) */
html.glass .rv-head{position:relative;isolation:isolate;margin:8px 0 6px;text-align:center}
html.glass .rv-head::before{content:"";position:absolute;z-index:-1;inset:-18px -40px;pointer-events:none;background:radial-gradient(closest-side,rgba(0,0,0,.16),rgba(0,0,0,0))}
html.glass .rv-h{font:700 30px/1.1 var(--font-head);letter-spacing:-.02em;margin:0}
html.glass .rv-sub{font-size:14px;font-weight:600;margin-top:4px;color:rgba(255,255,255,.9)}
/* the focus of the week: handwritten with no box, as above Daily's clock. Below, its goals with their bar */
html.glass .rv-focus{position:relative;isolation:isolate;margin:18px auto 22px;text-align:center;color:#fff;text-shadow:var(--rp-sombra-mano)}
html.glass .rv-focus::before{content:"";position:absolute;z-index:-1;inset:-14px -60px;pointer-events:none;background:radial-gradient(closest-side,rgba(0,0,0,.18),rgba(0,0,0,0))}
html.glass .rv-focus-t{font:600 29px/1.12 'Caveat',var(--font-body);overflow-wrap:anywhere;text-wrap:balance}
/* the quote marks, without transparency: with opacity, WebKit paints the mark on a layer as wide as its slot and
   cuts off its left stroke (‘ shows instead of “). Here it doesn't happen thanks to the shadow, but this way it
   doesn't depend on it */
html.glass .rv-focus-t::before{content:"“";margin-right:.04em;color:rgba(255,255,255,.9)}
html.glass .rv-focus-t::after{content:"”";margin-left:.03em;color:rgba(255,255,255,.9)}
html.glass .rv-focus-objs{display:flex;flex-direction:column;align-items:center;margin-top:8px}
/* as a grid and centred: with width:fit-content, WebKit broke the goal's name even when it fit */
html.glass .rv-focus .wr-fo-of{display:grid;grid-template-columns:auto auto 64px 36px;justify-content:center;align-items:center;border:0;padding:3px 0;width:100%}
html.glass .rv-focus .wr-fo-of .n{color:#fff;font-size:13.5px;text-align:left}
html.glass .rv-focus .wr-fo-of .b{background:rgba(255,255,255,.34)}
html.glass .rv-focus .wr-fo-of .b i{background:#fff}
html.glass .rv-focus .wr-fo-of .p{color:#fff}
/* each review, a capsule: the icon in its olive circle on the left and, on the right, the circle to start */
html.glass .rv-rituals{display:flex;flex-direction:column;gap:12px}
html.glass .rv-ritual{position:relative}
html.glass .rv-ritual-c{display:flex;align-items:center;gap:13px;min-width:0;border-radius:999px;padding:10px 20px 10px 10px;min-height:64px}
html.glass .rv-ritual:not(.hecho) .rv-ritual-c{padding-right:66px}
html.glass .rv-ic{flex:0 0 auto;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--olive-fill);color:var(--on-olive);text-shadow:var(--on-olive-sombra)}
html.glass .rv-ic .glyph{font-size:20px}
:is(:root[data-theme="dark"].glass,html.glass.gl-night) .rv-ic{color:#17191A}
html.glass .rv-ritual-t{flex:1;min-width:0}
html.glass .rv-ritual-t b{display:block;font:700 17px/1.25 var(--font-head);letter-spacing:-.01em;color:var(--text)}
html.glass .rv-ritual-t small{display:block;font-size:13px;line-height:1.35;color:var(--muted);margin-top:2px}
/* done: in the grey for done items, never with transparency (until 2.8.77 it had opacity:.75) */
html.glass .rv-ritual.hecho .rv-ic{background:var(--surface-3);color:var(--faint)}
html.glass .rv-ritual.hecho .rv-ritual-t :is(b,small){color:var(--faint)}
/* the start circle: olive if it's the one due today (the usual primary button); glass if not */
html.glass .rv-acc{display:flex;gap:8px}
html.glass .rv-ritual:not(.hecho)>.rv-acc{position:absolute;right:10px;top:50%;transform:translateY(-50%)}
/* in a row and not a grid: «Empezar» (Start) goes inside, with no size, for the screen reader; in a grid it took up a
   second, invisible row and the arrow sat 6 px above the centre */
html.glass .rv-ritual:not(.hecho)>.rv-acc .btn{flex:0 0 auto;width:44px;height:44px;padding:0;border-radius:50%;font-size:0;display:flex;align-items:center;justify-content:center}
html.glass .rv-ritual:not(.hecho)>.rv-acc .btn.ghost{color:var(--text)}
html.glass .rv-ritual:not(.hecho)>.rv-acc .btn::before{content:"";width:20px;height:20px;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%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' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat}
/* done: the options to do it again, in small capsules below */
html.glass .rv-ritual.hecho>.rv-acc{justify-content:center;margin-top:8px}
html.glass .rv-ritual.hecho>.rv-acc .btn{flex:0 0 auto;border-radius:999px;padding:9px 18px;font-size:13.5px;color:var(--text)}
html.glass .rv-ritual .wr-reset{color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.4)}
/* the countdown for new users: the capsule and, below it, the seven lights over the photo */
html.glass .rv-countdown .cd-body{display:block;padding:4px 6px 0;color:#fff}
html.glass #view-repaso.view .rv-countdown :is(.cd-n,.cd-t){color:#fff;text-shadow:var(--rp-sombra-mano)}
html.glass #view-repaso.view .rv-countdown .cd-s{color:rgba(255,255,255,.9);text-shadow:0 1px 2px rgba(0,0,0,.3)}
html.glass #view-repaso.view .rv-countdown .cd-top{justify-content:center}
html.glass #view-repaso.view .rv-countdown .cd-days{max-width:none;margin-left:0}
html.glass #view-repaso.view .rv-countdown .cd-track{background:rgba(255,255,255,.55)}
html.glass #view-repaso.view .rv-countdown .cd-d small{color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.4)}
html.glass #view-repaso.view .cd-d .o{color:var(--muted)}
html.glass #view-repaso.view .cd-d.fut .o{background:var(--rp-cristal);-webkit-backdrop-filter:var(--vd-blur);backdrop-filter:var(--vd-blur);box-shadow:inset 0 0 0 1px var(--vd-borde)}
html.glass #view-repaso.view :is(.cd-d.pas,.cd-d.hoy) .o{background:var(--olive-soft);color:#FBF8F1}
:is(:root[data-theme="dark"].glass,html.glass.gl-night) #view-repaso.view :is(.cd-d.pas,.cd-d.hoy) .o{color:#17191A}
html.glass #view-repaso.view .cd-d.meta.fut .o{color:var(--olive)}
html.glass #view-repaso.view .rv-countdown .cd-skip{width:max-content;max-width:100%;margin:14px auto 0;padding:9px 18px;border-radius:999px;color:var(--text);font-size:13px}
html.glass #view-repaso.view .rv-countdown.is-ready>.rv-acc{position:static;transform:none;margin-top:12px}
html.glass #view-repaso.view .rv-countdown.is-ready>.rv-acc .btn{width:auto;height:auto;font-size:14.5px;border-radius:999px;padding:13px 24px;flex:1}
html.glass #view-repaso.view .rv-countdown.is-ready>.rv-acc .btn::before{display:none}
/* «Tus semanas» (Your weeks): one capsule per week */
html.glass .rv-sec{text-align:center;margin-top:28px}
html.glass .rv-list{display:flex;flex-direction:column;gap:8px}
html.glass #view-repaso.view .rv-list .wr-week{border-radius:999px;padding:10px 16px 10px 22px}
html.glass #view-repaso.view .wr-week .bar{height:6px}
html.glass #view-repaso.view :is(.wr-week .chev,.wr-week .m){color:var(--muted)}
@media(min-width:860px){html.glass #view-repaso.view .wr-week .d{width:210px}}

/* ================= inside the review ================= */
html.glass #view-repaso.view.rv-wizard{max-width:640px;margin:0 auto}
/* the step bar (little 4 px dashes) inside a capsule; the title and its explanation, centred.
   2.10.17: each dash has its width, not only a flex-basis: Safari leaves the flex-basis out of a max-content width,
   and the capsule wrapped only the first dash. The olive filling is the one of styles/dropdowns.css */
html.glass #view-repaso.view .wiz-prog{width:max-content;margin:4px auto 18px;padding:10px 16px;border-radius:999px;gap:6px}
html.glass #view-repaso.view .wiz-prog span{flex:0 0 30px;width:30px;background:var(--track)}
html.glass #view-repaso.view :is(.wiz-title,.wiz-sub){text-align:center}
html.glass #view-repaso.view .wiz-title{font-size:26px;letter-spacing:-.02em;margin-bottom:4px}
html.glass #view-repaso.view .wiz-sub{font-size:14px;font-weight:600;color:rgba(255,255,255,.9);margin-bottom:16px}
html.glass #view-repaso.view .ro-title{font-size:26px}
/* Atrás and Seguir (Back and Next), floating at the bottom in their glass bar: they don't move when scrolling */
html.glass #view-repaso.view .f-actions{position:sticky;z-index:6;bottom:calc(var(--nav-h) + 12px + env(safe-area-inset-bottom));margin:20px auto 0;padding:8px;border-radius:22px;
  box-shadow:var(--rp-filo),0 8px 30px rgba(0,0,0,.12)}
html.glass #view-repaso.view .f-actions .btn.ghost{background:var(--surface-2);box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;color:var(--text)}
/* the «Hoy» (Today) of Planifica (Plan), the nearest goal and the notes notice: an olive veil over the glass */
html.glass #view-repaso.view :is(.rev-card.pl-today,.rev-card.ro-hero,.rev-banner){background:linear-gradient(var(--rp-oliva-velo),var(--rp-oliva-velo)),var(--rp-cristal)}
html.glass #view-repaso.view .pl-todayh{font-size:15px;color:var(--olive-ink)}
:is(:root[data-theme="dark"].glass,html.glass.gl-night) #view-repaso.view .pl-todayh{color:#C9DEBA}
html.glass #view-repaso.view .pl-recoh{font-size:15px}
html.glass #view-repaso.view .pl-objn{font-size:15px}
html.glass #view-repaso.view .rev-banner{border-radius:26px;padding:14px 18px}
html.glass #view-repaso.view .rev-banner .glyph{color:var(--olive)}
html.glass #view-repaso.view .rev-banner b{color:var(--text)}
html.glass #view-repaso.view .rev-banner small{color:var(--muted)}
html.glass #view-repaso.view .ro-hero-t .k{font:600 13.5px var(--font-body);letter-spacing:0;text-transform:none}
html.glass #view-repaso.view .rev-card.ro-med{border-radius:22px}
html.glass #view-repaso.view .ro-more{border-radius:999px;color:var(--text);font-size:14px;width:max-content;max-width:100%;margin:0 auto 14px;padding:11px 20px}
html.glass #view-repaso.view :is(.wr-vcard,.wr-carry-card){padding:4px 18px}
html.glass #view-repaso.view .wr-vh{color:var(--muted)}
/* the selection circles: on glass, the usual border could barely be seen */
html.glass #view-repaso.view :is(.pl-pk:not(.on),.rev-pick:not(.on) .pk,.wr-fo-list button:not(.on) .wr-fo-ck){border-color:rgba(26,22,17,.34)}
:is(:root[data-theme="dark"].glass,html.glass.gl-night) #view-repaso.view :is(.pl-pk:not(.on),.rev-pick:not(.on) .pk,.wr-fo-list button:not(.on) .wr-fo-ck){border-color:rgba(255,255,255,.5)}
html.glass #view-repaso.view :is(.pl-cnt,.pl-chev){color:var(--muted)}
/* the add box (2.8.99, the standard one: addBox): empty, in glass, with its + on the left; when typing, it lightens,
   the olive line appears and the + crosses to the right and turns into the arrow. The line is inside: with a border it
   measured 2 px more */
html.glass #view-repaso.view .add-box input{border-radius:16px;padding-top:11px;padding-bottom:11px}   /* 40 px, as in Projects */
html.glass #view-repaso.view .add-box input::placeholder{color:var(--muted)}
html.glass #view-repaso.view .add-box input:not(:placeholder-shown){background:rgba(255,255,255,.78);box-shadow:inset 0 0 0 1.5px var(--olive-soft),inset 0 1px 0 var(--vd-brillo)}
:is(:root[data-theme="dark"].glass,html.glass.gl-night) #view-repaso.view .add-box input:not(:placeholder-shown){background:rgba(255,255,255,.1)}
html.glass #view-repaso.view .add-box input:focus-visible{box-shadow:inset 0 0 0 1.5px var(--olive),inset 0 1px 0 var(--vd-brillo)}
html.glass #view-repaso.view .add-box .ca-btn{border-radius:11px}

/* ---- the focus of the week, while writing it: no box, handwritten and white over the photo, just as it will appear
   above the clock. The quote marks follow the sentence (rvQuotes, in app/review.js) and the box grows with it ---- */
html.glass #view-repaso.view .rev-card.wr-fo-box{background:none;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;padding:0}
html.glass .rv-hand{position:relative;isolation:isolate}
html.glass .rv-hand::before{content:"";position:absolute;z-index:-1;inset:-6px -40px;pointer-events:none;background:radial-gradient(closest-side,rgba(0,0,0,.2),rgba(0,0,0,0))}
html.glass #view-repaso.view .wr-fo-box textarea{font:600 30px/1.2 'Caveat',var(--font-body);letter-spacing:0;text-align:center;padding:18px 34px 14px;overflow:hidden;min-height:0;text-wrap:balance;
  color:#fff;caret-color:#fff;text-shadow:var(--rp-sombra-mano)}
html.glass #view-repaso.view .wr-fo-box textarea::placeholder{font-weight:600;color:rgba(255,255,255,.78)}
html.glass #view-repaso.view .wr-fo-box:focus-within .rv-hand{box-shadow:inset 0 -1.5px 0 rgba(255,255,255,.6)}
html.glass .rv-mirror{position:absolute;left:0;top:0;visibility:hidden;pointer-events:none;box-sizing:border-box;white-space:pre-wrap;overflow-wrap:break-word;
  font:600 30px/1.2 'Caveat',var(--font-body);text-align:center;padding:18px 34px 14px;text-wrap:balance}
html.glass .rv-q{position:absolute;left:0;top:0;font:600 30px/1.2 'Caveat',var(--font-body);color:rgba(255,255,255,.9);text-shadow:var(--rp-sombra-mano);pointer-events:none;will-change:transform}
html.glass .rv-q.a{margin-left:-.4em}
/* 2.10.18: Caveat's base letters everywhere the focus is written, as on Daily (the handwriting analyses each letter
   alone, app/handwriting.js): without its contextual alternates */
html.glass :is(.rv-focus-t,.rv-mirror,.rv-q,#view-repaso.view .wr-fo-box textarea){font-feature-settings:"calt" 0,"liga" 0}
html.glass .rv-q.c{margin-left:.04em}
html.glass .rv-hand.blank .rv-q{display:none}
/* the linked goals, capsules; «Enlazar un objetivo» (Link a goal), another capsule; the list to choose from, a box */
html.glass #view-repaso.view .wr-fo-sel{border:0;margin:6px auto 0;max-width:440px;display:flex;flex-direction:column;gap:8px}
html.glass #view-repaso.view .wr-fo-sel .wr-fo-of{border-radius:999px;padding:8px 10px 8px 16px;box-shadow:inset 0 0 0 1px var(--vd-borde)}
html.glass #view-repaso.view .wr-fo-add{width:max-content;max-width:100%;margin:14px auto 0;border-radius:999px;padding:10px 18px;color:var(--text)}
html.glass #view-repaso.view .wr-fo-add>span{margin-left:6px}
html.glass #view-repaso.view .wr-fo-list{margin:10px auto 0;max-width:440px;border-radius:18px}
html.glass #view-repaso.view .wr-fo-list button{border-bottom-color:var(--border-soft)}

@media(min-width:860px){
  html.glass .rv-h{font-size:34px}
  html.glass .rv-focus-t{font-size:34px}
  html.glass #view-repaso.view .wiz-title{font-size:30px}
  html.glass #view-repaso.view .f-actions{bottom:88px;max-width:520px}   /* above the bottom bar, which on desktop floats at 18 px */
}
