/* ============================================================
   VIDRIO (glass), 2.8.78: the 2.8.77 Daily system across the whole app
   ============================================================
   The time-of-day photo behind every section, the header and the bottom bar translucent, and the shared pieces
   in glass. It's switched on by html.glass, which renderView sets as soon as there is a notebook (with the lock on,
   openLogin sets it: the sign-in screen is in styles/glass-sign-in.css). Daily adds its own with html.daily-photo
   (styles/daily.css).
   The photo is chosen by lightPaint (app/daily.js), which also sets .gl-night when a night photo is in charge: then
   the whole app takes the dark theme's colours (2.8.89: also the sheets, the dialogs and the dropdowns).
   For each section: its styles go in its own stylesheet, styles/glass-<section>.css, linked after this one, and they
   hang from html.glass and from its view (#view-…). The --vd-* are not redefined; a new token carries its section's name.
   What's at the very bottom (“Until its section redesigns it”) is the minimum for each screen to read over the
   photo; each section's stylesheet can override it. Detail in docs/design.md, “Glass across the whole app”. */

/* ---------- the glass tokens (light; dark with the dark theme, and at night with either theme) ---------- */
html.glass{background:var(--vd-tono,#6f8987);   /* the average colour of the current photo: what shows if the page is stretched or while it loads */
  --vd-caja:rgba(255,255,255,.62);--vd-blur:blur(26px) saturate(1.6);--vd-borde:rgba(255,255,255,.66);--vd-brillo:rgba(255,255,255,.92);
  --vd-disco:rgba(255,255,255,.34);--vd-esfera:rgba(255,255,255,.62);--vd-tinta:#1A1611;--vd-raya:rgba(26,22,17,.16);--vd-barra:rgba(251,248,241,.6);
  --vd-sombra-texto:0 1px 2px rgba(0,0,0,.35),0 0 10px rgba(0,0,0,.16),0 2px 22px rgba(0,0,0,.3);   /* white text that sits over the photo */
  --vd-sombra-texto-p:0 1px 2px rgba(0,0,0,.55),0 0 5px rgba(0,0,0,.32),0 0 16px rgba(0,0,0,.38)}   /* small text, with more halo: it also reads over the clouds */
:root[data-theme="dark"].glass,html.glass.gl-night{
  --vd-caja:rgba(8,12,10,.56);--vd-blur:blur(26px) saturate(1.5);--vd-borde:rgba(255,255,255,.16);--vd-brillo:rgba(255,255,255,.24);
  --vd-disco:rgba(14,20,16,.26);--vd-esfera:rgba(8,12,10,.52);--vd-tinta:#fff;--vd-raya:rgba(255,255,255,.24);--vd-barra:rgba(23,25,26,.6)}
html.glass body{background:transparent}
html.glass main{overflow-x:hidden;overflow-x:clip}   /* the shadow behind the focus is wider than the sentence: on the iPhone it opened a sideways scroll */

/* ---------- the photo, the same in every section ----------
   Two fixed layers (background-attachment:fixed doesn't work on the iPhone): below, the current one, and on top the
   next one, which appears during the time-of-day fade (--vd-mezcla, from 0 to 1). Since they're always there, they don't
   reload or flicker when switching section. With the large viewport height (lvh) they don't shift when Safari's
   bars hide */
html.glass body::before,html.glass body::after{content:"";position:fixed;top:0;left:0;right:0;height:100vh;height:100lvh;z-index:-1;pointer-events:none;
  background:center 40%/cover no-repeat}
html.glass body::before{background-image:var(--vd-foto-a)}
html.glass body::after{background-image:var(--vd-foto-b,none);opacity:var(--vd-mezcla,0);transition:opacity 1.5s ease}
/* with the dark theme, the light photos (day, golden hour and sunset) somewhat darker; the night ones, as they are */
:root[data-theme="dark"].glass.gl-a-light body::before,:root[data-theme="dark"].glass.gl-b-light body::after{filter:brightness(.74) saturate(.92)}

/* ---------- at night with the light theme: the sections, the header and the bar in the dark theme's colours ----------
   2.8.89: also what opens on top (the sheets, Settings, the dialogs, the dropdowns, the feedback sheet, the
   bell's list, the note bubble in Notes and the language-change curtain), which sits outside main: otherwise, at night
   it opened light over the dark app */
html.glass.gl-night :is(main,header.top,nav.bottom,#sheetOverlay,#fbOverlay,#dlgOverlay,#pkPop,#pkSub,.bubble,#veil){--bg:#17191A;--surface:#212426;--surface-2:#1C1F20;--border:#33383A;--border-soft:#2B3032;
  --text:#F1EFEA;--muted:#AEB2AC;--faint:#787D78;--olive:#9DBE86;--olive-soft:#8AA978;--olive-bg:#293227;--olive-ink:#B8D4A4;--track:#2A2E2F;
  --olive-fill:#9DBE86;--on-olive:#fff;--on-olive-sombra:none;
  --amber:#D9A441;--amber-bg:#37331F;--red:#D98C73;--red-bg:#382923;--gold:#D9B45A;--gold-bg:#363019}
/* what's on top also gets the dark theme's dimmed backdrop, shadows and switch track, and the text colour that body
   has with the dark theme: whatever has no colour of its own (a sheet's title) inherits it from body, which at night
   still has the light theme's ink */
html.glass.gl-night :is(#sheetOverlay,#fbOverlay,#dlgOverlay,#pkPop,#pkSub,.bubble){--surface-3:#272B2D;--ctrl:#6A7275;--overlay:rgba(0,0,0,.55);
  --shadow:0 1px 2px rgba(0,0,0,.35),0 4px 16px rgba(0,0,0,.4);--shadow-lg:0 2px 8px rgba(0,0,0,.5),0 14px 40px rgba(0,0,0,.55);color:#F1EFEA}
html.glass.gl-night .bubble-back{background:rgba(0,0,0,.30)}
html.glass.gl-night #veil{--velo-osc:#6F8F55}
/* what goes in charcoal on olive with the dark theme, at night too */
html.glass.gl-night :is(main,header.top,#sheetOverlay,#fbOverlay,#dlgOverlay,#pkPop,#pkSub,.bubble) :is(.mini.olive,.btn.primary,.syn-mini,.notices-n,
  .add-box input:not(:placeholder-shown) + .ca-btn,.theme-seg button.on,.daypick button.on,.glyph-swatches span.on,.pk-day.sel,
  .pk-actions button.go,.fb-types button.on){color:#17191A}
html.glass.gl-night main .fx-m{background:rgba(157,190,134,.30)}
html.glass.gl-night :is(main,#sheetBox) .fx-chip-x:hover{background:rgba(184,212,164,.12)}

/* ---------- the header and the bottom bar: the same in every section; they don't move, they just let the photo show */
html.glass header.top{background:transparent;border-bottom-color:transparent;-webkit-backdrop-filter:none;backdrop-filter:none}
/* on the iPhone, a blur that fades out downwards, for what scrolls underneath */
html.glass header.top::before{content:"";position:absolute;inset:0 0 -22px;z-index:-1;pointer-events:none;
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);-webkit-mask-image:linear-gradient(#000 50%,transparent);mask-image:linear-gradient(#000 50%,transparent)}
/* the gear, the bell and the cloud, in glass circles */
html.glass .top-actions :is(.icon-btn,.sync-chip,.notices-btn){
  background:linear-gradient(180deg,rgba(255,255,255,.09),rgba(255,255,255,0) 42%),var(--vd-caja);
  -webkit-backdrop-filter:var(--vd-blur);backdrop-filter:var(--vd-blur);
  box-shadow:inset 0 0 0 1px var(--vd-borde),inset 0 1px 0 var(--vd-brillo)}
html.glass .top-actions .icon-btn{border:none;border-radius:50%;color:var(--text)}
html.glass .top-actions :is(.sync-chip,.notices-btn){width:38px;height:38px;border-radius:50%}
html.glass .notices-n{top:-3px;right:-4px;border:0;box-shadow:0 1px 3px rgba(0,0,0,.22)}   /* without the ring in the background colour: on glass it was a different colour */
html.glass nav.bottom{background:var(--vd-barra);-webkit-backdrop-filter:blur(22px) saturate(1.8);backdrop-filter:blur(22px) saturate(1.8);border-top-color:rgba(255,255,255,.4)}
:is(:root[data-theme="dark"].glass,html.glass.gl-night) nav.bottom{border-top-color:rgba(255,255,255,.1)}
/* 2.8.98: the marker of the open section (app/bottom-bar.js). A translucent green capsule the size of one button (width,
   height and position are set by bottom-bar.js), which can be grabbed and dragged. bottom-bar.js sets html.bar-marker when it
   mounts it. */
html.bar-marker nav.bottom{touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}   /* dragging on the bar doesn't move the page */
nav.bottom .navin{position:relative}
nav.bottom .navin>button{position:relative;z-index:1}
html.bar-marker nav.bottom button:active{transform:none}
html.bar-marker nav.bottom button.pressed{transform:scale(.94)}   /* the press-down effect goes by class: the green copy sinks with its button */
.marker{display:none;position:absolute;left:0;top:0;z-index:0;border-radius:999px;pointer-events:none;transform-origin:50% 50%;will-change:transform,opacity;
  background:rgba(157,190,134,.30);box-shadow:inset 0 0 0 1px rgba(255,255,255,.5)}
html.bar-marker .marker{display:block}
/* the glow while you're holding it: a layer that lights up with opacity (at 30 % of the mockup's glow) */
.marker>i{position:absolute;inset:0;border-radius:inherit;opacity:0;
  background:linear-gradient(180deg,rgba(255,255,255,.10),rgba(255,255,255,.02) 60%),rgba(157,190,134,.05);
  box-shadow:inset 0 0 0 1.15px rgba(255,255,255,.28),0 4px 14px rgba(23,25,26,.05)}
:is(:root[data-theme="dark"].glass,html.glass.gl-night) .marker{background:rgba(157,190,134,.20);box-shadow:inset 0 0 0 1px rgba(255,255,255,.14)}
:is(:root[data-theme="dark"].glass,html.glass.gl-night) .marker>i{
  background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,0) 60%),rgba(157,190,134,.04);
  box-shadow:inset 0 0 0 1.15px rgba(255,255,255,.1),0 4px 14px rgba(0,0,0,.1)}
/* the icon's green goes inside the marker: a green copy of the buttons, clipped to its box */
.marker-ink{position:absolute;inset:0;z-index:2;display:flex;pointer-events:none}
.marker-ink>button{color:var(--olive)!important;transition:none!important}
html.bar-marker nav.bottom .navin>button.active{color:var(--faint);cursor:grab}   /* the green comes from the copy; over the marker, the grab hand */
html.marker-dragging,html.marker-dragging *{cursor:grabbing!important}
html.glass #fbBug{color:#fff;opacity:.8;filter:drop-shadow(0 1px 2px rgba(0,0,0,.45))}
html.glass #fbBug:is(:hover,:focus-visible){opacity:1}
@media(min-width:860px){
  html.glass header.top::before{display:none}   /* on desktop the header is only the gear: the blur smudged the corners of the photo */
  html.glass nav.bottom{border-color:rgba(255,255,255,.55)}
  :is(:root[data-theme="dark"].glass,html.glass.gl-night) nav.bottom{border-color:rgba(255,255,255,.12)}
}

/* ---------- the short toast («Copiado», Copied) and the Undo bar: glass capsules opposite to the theme ---------- */
html.glass :is(#toast,#undoBar){
  background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,0) 50%),rgba(26,24,20,.58);color:#fff;
  -webkit-backdrop-filter:blur(26px) saturate(1.6);backdrop-filter:blur(26px) saturate(1.6);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.16),inset 0 1px 0 rgba(255,255,255,.22),0 8px 28px rgba(0,0,0,.16)}
html.glass #undoBar{border-radius:999px;padding:6px 6px 6px 18px}
html.glass #undoBar button{background:rgba(255,255,255,.94);color:#1A1611;border-radius:999px;padding:7px 14px}
html.glass #undoBar button.x{background:none;color:#fff;opacity:.75;padding:6px 8px}
html.glass #toast .glyph{color:#B5CFA3}
:is(:root[data-theme="dark"].glass,html.glass.gl-night) :is(#toast,#undoBar){
  background:linear-gradient(180deg,rgba(255,255,255,.2),rgba(255,255,255,0) 50%),rgba(255,255,255,.7);color:#1A1611;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.66),inset 0 1px 0 rgba(255,255,255,.92),0 8px 28px rgba(0,0,0,.3)}
:is(:root[data-theme="dark"].glass,html.glass.gl-night) #undoBar button{background:#1A1611;color:#fff}
:is(:root[data-theme="dark"].glass,html.glass.gl-night) #undoBar button.x{background:none;color:#1A1611}
:is(:root[data-theme="dark"].glass,html.glass.gl-night) #toast .glyph{color:#566E40}

/* ---------- dragging (Projects and Daily): the row being carried, in a glass capsule ----------
   2.8.97: before, only in Projects; on Daily it came out cream with a border, as before the glass. The copy lives in
   body, outside its section: drag.js (ddTrace) copies the look of what's inside onto it. The glass is on a separate
   layer (::before) so that when it lands it fades out (.dd-settle, the 380 ms of DD_ENTER) and only the row is left, like
   the ones around it, which have no box of their own: before, it ended up as a square-cornered rectangle */
html.glass .dd-copy,html.glass .dd-copy.dd-grabbed{position:relative;isolation:isolate;background:none;border:0!important;border-radius:16px;box-shadow:none}
/* its glass, lighter than the boxes': with the usual one, over the photo (the trees) it looked greenish grey */
html.glass .dd-copy{--vd-caja:rgba(255,255,255,.8)}
:is(:root[data-theme="dark"].glass,html.glass.gl-night) .dd-copy{--vd-caja:rgba(44,49,47,.66)}
html.glass .dd-copy::before{content:"";position:absolute;inset:calc(-1*var(--dd-fuera-a,0px)) calc(-1*var(--dd-fuera-d,0px)) calc(-1*var(--dd-fuera-b,0px)) calc(-1*var(--dd-fuera-i,0px));z-index:-1;border-radius:inherit;pointer-events:none;
  background:linear-gradient(180deg,rgba(255,255,255,.09),rgba(255,255,255,0) 42%),var(--vd-caja);
  -webkit-backdrop-filter:var(--vd-blur);backdrop-filter:var(--vd-blur);
  box-shadow:inset 0 0 0 1px var(--vd-borde),inset 0 1px 0 var(--vd-brillo);transition:box-shadow .2s ease}
html.glass .dd-copy.dd-grabbed::before{box-shadow:inset 0 0 0 1px var(--vd-borde),inset 0 1px 0 var(--vd-brillo),0 10px 26px rgba(0,0,0,.22)}
html.glass .dd-copy.dd-settle::before{opacity:0;
  transition:box-shadow 380ms ease,opacity 380ms cubic-bezier(.55,0,.75,.4) 70ms,top 380ms cubic-bezier(.22,1,.36,1),right 380ms cubic-bezier(.22,1,.36,1),bottom 380ms cubic-bezier(.22,1,.36,1),left 380ms cubic-bezier(.22,1,.36,1)}

/* ============================================================
   The shared pieces, in the sections (Daily has its own in daily.css)
   ============================================================ */
/* inside: translucent lines and backgrounds instead of the usual beiges; in dark and at night, white text */
html.glass .view:not(#view-hoy){--border:rgba(26,22,17,.12);--border-soft:rgba(26,22,17,.09);--track:rgba(26,22,17,.09);--surface-2:rgba(26,22,17,.05);
  --olive-bg:rgba(86,110,64,.14);--amber-bg:rgba(154,107,30,.14);--red-bg:rgba(176,73,47,.13);--gold-bg:rgba(168,127,46,.15);color:var(--text)}
:is(:root[data-theme="dark"].glass,html.glass.gl-night) .view:not(#view-hoy){--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,.14);--surface:rgba(255,255,255,.08);--surface-2:rgba(255,255,255,.08);
  --olive-bg:rgba(157,190,134,.16);--amber-bg:rgba(217,164,65,.16);--red-bg:rgba(217,140,115,.16);--gold-bg:rgba(217,180,90,.16)}

/* the section box: the same glass as Daily's boxes, with 26 px corners */
html.glass .view:not(#view-hoy) :is(.card,.rev-card,.lp-row,.cal-wday,.cal-allday,.cal-grid,.cal-tl,.nb-cat:not(.on),.nb-cat-add,.nb-add),
html.glass .view:not(#view-hoy) > .cal-daylist .cal-ev,
html.glass .view:not(#view-hoy) .compose-bar input{
  background:linear-gradient(180deg,rgba(255,255,255,.09),rgba(255,255,255,0) 42%),var(--vd-caja);
  -webkit-backdrop-filter:var(--vd-blur);backdrop-filter:var(--vd-blur);
  border-color:transparent;box-shadow:inset 0 0 0 1px var(--vd-borde),inset 0 1px 0 var(--vd-brillo)}
html.glass .view:not(#view-hoy) :is(.card,.rev-card,.lp-row){border-radius:26px}

/* icon buttons that sit over the photo: the material of the header ones, in the same box */
html.glass .view:not(#view-hoy) :is(.cal-arrow,.lp-add,.ib-edit,.cal-today-ic){
  background:linear-gradient(180deg,rgba(255,255,255,.09),rgba(255,255,255,0) 42%),var(--vd-caja);
  -webkit-backdrop-filter:var(--vd-blur);backdrop-filter:var(--vd-blur);
  border-color:transparent;box-shadow:inset 0 0 0 1px var(--vd-borde),inset 0 1px 0 var(--vd-brillo);border-radius:50%;color:var(--text)}

/* what sits directly on the photo, with no box: white with a soft shadow (small text, with more halo) */
html.glass .view:not(#view-hoy) :is(.today-hi,.blk-head .h,.lp-back,.lp-head h1,.cal-label,.cal-dhd,.ib-head .t){color:#fff;text-shadow:var(--vd-sombra-texto)}
html.glass .view:not(#view-hoy) :is(.today-date,.blk-head .more,.blk-head .n,.cal-wd span,.cal-legend span,.cal-hint,.gc-note,.nb-empty),
html.glass .view:not(#view-hoy) > .empty,
html.glass .view:not(#view-hoy) #ipane > .empty{color:#fff;text-shadow:var(--vd-sombra-texto-p)}
html.glass .view:not(#view-hoy) .lp-back .glyph{filter:drop-shadow(0 1px 2px rgba(0,0,0,.3))}
html.glass .view:not(#view-hoy) .cal-legend{border-top-color:rgba(255,255,255,.4)}
/* inside a box, the label and its link go back to ink and olive */
html.glass .view:not(#view-hoy) :is(.card,.rev-card) .blk-head .h{color:var(--text);text-shadow:none}
html.glass .view:not(#view-hoy) :is(.card,.rev-card) .blk-head .more{color:var(--olive);text-shadow:none}
html.glass .view:not(#view-hoy) :is(.card,.rev-card) .blk-head .n{color:var(--muted);text-shadow:none}

/* the section label: 17 px and in normal case, with its link or its counter at 13.5 */
html.glass .view:not(#view-hoy) .blk-head .h{font-size:17px;line-height:1.25;letter-spacing:-.01em;text-transform:none}
html.glass .view:not(#view-hoy) .blk-head :is(.more,.n){font-size:13.5px}
html.glass .view:not(#view-hoy) .card .blk-head{margin:0 0 4px}

/* the segmented control (Day · Week · Month, All · Goals · Tasks · Ideas): glass capsule, the selected one in olive */
html.glass .view:not(#view-hoy) :is(.seg,.cal-seg){
  background:linear-gradient(180deg,rgba(255,255,255,.09),rgba(255,255,255,0) 42%),var(--vd-caja);
  -webkit-backdrop-filter:var(--vd-blur);backdrop-filter:var(--vd-blur);
  border:0;box-shadow:inset 0 0 0 1px var(--vd-borde),inset 0 1px 0 var(--vd-brillo);border-radius:999px;padding:4px;gap:4px}
html.glass .view:not(#view-hoy) :is(.seg,.cal-seg) button{border-radius:999px;font-family:var(--font-head);font-weight:700;font-size:13px;color:var(--muted);padding:8px}
html.glass .view:not(#view-hoy) :is(.seg button.active,.cal-seg button.on){background:var(--olive-fill);color:var(--on-olive);text-shadow:var(--on-olive-sombra);box-shadow:none}
:is(:root[data-theme="dark"].glass,html.glass.gl-night) .view:not(#view-hoy) :is(.seg button.active,.cal-seg button.on){color:#17191A}

/* translucent pills, no border; checkboxes like Daily's */
html.glass .view:not(#view-hoy) .pill{border-color:transparent}
html.glass .view:not(#view-hoy) .check:not(.done){background:rgba(255,255,255,.55)}
:is(:root[data-theme="dark"].glass,html.glass.gl-night) .view:not(#view-hoy) .check:not(.done){background:rgba(255,255,255,.06)}

/* ============================================================
   Until its section redesigns it: just enough for it to read over the photo
   ============================================================ */
/* Calendar: the month grid in a box, with translucent cells; the Day schedule, in another */
html.glass .view:not(#view-hoy) .cal-grid{padding:6px;border-radius:22px}
html.glass .view:not(#view-hoy) .cal-cell{--cbg:rgba(255,255,255,.42);background:var(--cbg)}
html.glass .view:not(#view-hoy) .cal-cell.out{--cbg:transparent;background:transparent}
html.glass .view:not(#view-hoy) .cal-cell.today{--cbg:rgba(231,238,221,.85);background:var(--cbg)}
:is(:root[data-theme="dark"].glass,html.glass.gl-night) .view:not(#view-hoy) .cal-cell{--cbg:rgba(255,255,255,.06)}
:is(:root[data-theme="dark"].glass,html.glass.gl-night) .view:not(#view-hoy) .cal-cell.today{--cbg:rgba(157,190,134,.2)}
:is(:root[data-theme="dark"].glass,html.glass.gl-night) .view:not(#view-hoy) .cal-cell.out{--cbg:transparent}
html.glass .view:not(#view-hoy) :is(.cal-wday,.cal-tl){border-radius:22px}
html.glass .view:not(#view-hoy) .cal-wday.today{box-shadow:inset 0 0 0 1.5px var(--olive-soft),inset 0 1px 0 var(--vd-brillo)}
html.glass .view:not(#view-hoy) .cal-allday{border-radius:16px}
html.glass .view:not(#view-hoy) .cal-tl{padding:12px 12px 12px 6px}
html.glass .view:not(#view-hoy) .cal-hl{background:none}
html.glass .view:not(#view-hoy) .cal-hour{border-top:0;background:linear-gradient(var(--border),var(--border)) 46px 0/calc(100% - 46px) 1px no-repeat}   /* the line starts after the hour */
html.glass .view:not(#view-hoy) .cal-ev{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent}   /* the left border is the project's colour */
html.glass .view:not(#view-hoy) .cal-wday .cal-ev{background:rgba(255,255,255,.42)}
:is(:root[data-theme="dark"].glass,html.glass.gl-night) .view:not(#view-hoy) .cal-wday .cal-ev{background:rgba(255,255,255,.06)}
html.glass .view:not(#view-hoy) > .cal-daylist .cal-ev{border-radius:14px}
/* Notes: the note input box, without the background-coloured band behind it */
html.glass .view:not(#view-hoy) .compose-bar{background:transparent}
html.glass .view:not(#view-hoy) .compose-bar input{border:1.5px solid var(--olive-soft);box-shadow:inset 0 1px 0 var(--vd-brillo)}
/* 2.8.101: with the note input box already at the top (notes.css), the list is cut off below it, with no blur. #noteCover
   (in main, behind the sections) is a copy of the photo, the two body layers above, sitting over the list (39) and
   under the header (40) and the box (41): it covers up to 10 px above the cut line (--nota-corte, 10 px from the
   box; set by noteFloat in app/notes.js) and fades out over the next 28 px, so the notes appear fading in right
   below the box. It's a copy and not a clip of the list because clipping the glass can switch off its blur in
   Safari. Only with Notes open: when switching section it disappears even if the class stays on for one frame */
#noteCover{display:none}
html.glass.note-cut main>#view-avisos.active~#noteCover{display:block;position:fixed;top:0;left:0;right:0;height:100vh;height:100lvh;z-index:39;
  background:var(--vd-tono,#6f8987);clip-path:inset(0 0 calc(100% - var(--nota-corte,0px) - 18px) 0);
  -webkit-mask-image:linear-gradient(180deg,#000 calc(var(--nota-corte,0px) - 10px),transparent calc(var(--nota-corte,0px) + 18px));
  mask-image:linear-gradient(180deg,#000 calc(var(--nota-corte,0px) - 10px),transparent calc(var(--nota-corte,0px) + 18px))}
#noteCover::before,#noteCover::after{content:"";position:absolute;inset:0;background:center 40%/cover no-repeat}
#noteCover::before{background-image:var(--vd-foto-a)}
#noteCover::after{background-image:var(--vd-foto-b,none);opacity:var(--vd-mezcla,0);transition:opacity 1.5s ease}
:root[data-theme="dark"].glass.gl-a-light #noteCover::before,:root[data-theme="dark"].glass.gl-b-light #noteCover::after{filter:brightness(.74) saturate(.92)}
/* on the iPhone, the header's blur would smudge the first notes below the cut: with the box at the top, it's removed */
html.glass header.top::before{transition:opacity .24s ease}
html.glass.note-cut header.top::before{opacity:0}
/* Library (Información): «Nuevo bloque» (New block) and «Añadir nombre» (Add name) keep their dotted border */
html.glass .view:not(#view-hoy) :is(.nb-cat-add,.nb-add){border:1px dashed var(--olive-soft)}
