/* ---- Daily: goals chosen in the review (2.5.7) ---- */
.obj.oe{cursor:default}
/* 2.7.7: the goal on Daily expands (chevron as in Projects, then called Listas) */
.oe-top{display:flex;align-items:center;gap:10px;cursor:pointer}
.oe-mid{flex:1;min-width:0}
.oe-body{display:none;padding:2px 0 0 26px}
.obj.oe.open .oe-body{display:block}
.obj.oe.open .lo-chev{transform:rotate(90deg)}
.oe-ht.done{color:var(--faint)}
/* 2.8.46: a name made of a single very long word breaks and continues below, instead of pushing the % out
   of the column (and, on the iPhone, widening the page). The same for its tasks when it's expanded */
.oe .obj-name{display:flex;align-items:center;gap:8px;min-width:0;overflow-wrap:anywhere}
.oe .imp-star{flex:0 0 auto}
.oe-milestone{display:flex;align-items:center;gap:10px;padding:8px 0 0}
.oe-ht{flex:1;min-width:0;font-size:13.5px;overflow-wrap:anywhere}
.oe-milestone .check.sm{width:18px;height:18px;border-radius:999px}
.oe-steps{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:9px;font-size:12.5px;color:var(--muted)}
/* 2.8.63: on today, the tasks set for today go on top, with their title in olive and a line before the rest.
   Small title, not uppercase, so it doesn't compete with «Objetivos de hoy» (Today's goals) */
.oe-group{font-size:12px;font-weight:600;line-height:1.2;color:var(--olive);padding-top:10px}
.oe-line{height:1px;background:var(--border);margin:9px 0 1px}
.oe-milestone .pl-date.late{color:var(--amber);font-weight:600}
/* options segment */
.seg{display:flex;gap:6px}
.seg button{flex:1;border:1px solid var(--border);background:var(--surface);color:var(--muted);border-radius:10px;padding:9px 6px;font-size:12.5px;font-weight:700;cursor:pointer;transition:.12s}
.seg button.on{background:var(--olive-bg);border-color:var(--olive-soft);color:var(--olive-ink)}
.glyphpick{display:flex;flex-wrap:wrap;gap:7px}
.glyphpick button{width:38px;height:38px;border-radius:10px;border:1px solid var(--border);background:var(--surface);color:var(--muted);cursor:pointer;display:grid;place-items:center}
.glyphpick button.on{border-color:var(--olive-soft);background:var(--olive-bg);color:var(--olive-ink)}
.glyphpick .glyph{font-size:18px}

/* ---------- segmented control ---------- */
.seg{display:flex;gap:4px;background:var(--surface-2);border:1px solid var(--border);border-radius:999px;padding:4px;margin:2px 0 16px;overflow-x:auto;scrollbar-width:none}
.seg::-webkit-scrollbar{display:none}
.seg button{flex:1;border:none;background:none;padding:8px 8px;border-radius:999px;font-family:var(--font-head);font-weight:700;font-size:13px;color:var(--muted);cursor:pointer;white-space:nowrap;transition:.15s}
.seg button.active{background:var(--olive-fill);color:var(--on-olive);text-shadow:var(--on-olive-sombra);box-shadow:var(--shadow)}
:root[data-theme="dark"] .seg button.active{color:#17191A}

/* ---------- Today (Daily) ---------- */
/* .today-head / .today-hi / .today-date are also used by the titles of Projects, Library and Review */
.today-head{margin:6px 2px 16px}
.today-date{font-size:13px;font-weight:600;color:var(--faint)}
.today-hi{font-family:var(--font-head);font-size:27px;font-weight:700;letter-spacing:-.02em;margin:1px 0 0}
/* 2.6: Daily is rebuilt from scratch. On top, an ink clock face with the events of the
   next 12 h painted on its rim in their project's colour and the time in numbers inside; below,
   the date with its arrows and the «ahora / siguiente» (now / next) block. Gone: the number cards, the greeting
   and the streak. The four sections have no card. Chosen among 18 mockups. */
.hy-top{display:flex;flex-direction:column;align-items:stretch;gap:4px;max-width:560px;margin:0 auto 14px}
.hy-clock{display:flex;justify-content:center;margin-bottom:2px}
/* on another day the clock face is a “back to today” button */
.hy-clock.tap{cursor:pointer}
.hy-clock.tap:active .clk{opacity:.42}
.clk{display:block;overflow:visible}
.clk .face{fill:var(--text)}
.clk .tick{stroke:var(--bg);opacity:.5}
.clk .tick.q{stroke:var(--bg);opacity:1}
.clk .hh,.clk .mh{stroke:var(--bg);stroke-linecap:round}
.clk .sh{stroke:var(--olive-soft);stroke-linecap:round}
.clk .cap{fill:var(--bg)}
.clk .cap2{fill:var(--olive-soft)}
.clk .arc{fill:none}   /* its circles (the round ends) carry their own fill */
.clk .arc.past{opacity:.35}
/* 2.9.2: on the dark glass (at night, or the dark theme) .35 left the day's past appointments almost invisible */
:is(html.gl-night,:root[data-theme="dark"]) .clk .arc.past{opacity:.58}
/* 2.8.8: the line between morning and afternoon, and the “now” dot with its pulsing halo (no. 19 of the mockups) */
.clk .mid-line{fill:none;stroke:var(--muted);stroke-width:.5;opacity:.5}
.clk .current{transition:opacity .25s ease}
.clk.pause .current{opacity:0}   /* another day: there is no current time */
.clk .current-turn{transform-origin:60px 60px}
.clk .now-dot{fill:var(--olive)}
.clk .halo{fill:var(--olive);transform-box:fill-box;transform-origin:center;opacity:.14;transform:scale(.7);animation:hy-late 1.25s ease-in-out infinite alternate}
@keyframes hy-late{from{transform:scale(.5);opacity:.38}to{transform:scale(1);opacity:.06}}
.clk{transition:opacity .5s ease}   /* when the day changes it dims or lights up in half a second */
.clk.pause{opacity:.58}   /* another day: the whole face dimmed, so it's clear it isn't running */
.clk .hh,.clk .mh,.clk .sh{transform-origin:60px 60px}   /* they rotate via CSS: that way they can be animated */
.clk .arcs,.clk .tdig{transition:opacity .25s ease}
.clk .tdig{font-family:var(--font-head);font-weight:700;font-size:10.5px;letter-spacing:-.03em;text-anchor:middle;fill:var(--bg);font-variant-numeric:tabular-nums}
.hy-date{display:flex;align-items:center;justify-content:center;gap:10px;font-family:var(--font-head);font-weight:700;font-size:15px;color:var(--muted)}
/* 2.6.1: fixed-width slot, as in Calendar, so the arrows don't jump from one day to the next (with the photo,
   the 2.8.100 one, below). The longest date («Miércoles, 30 de septiembre») measures 205 px; on very narrow
   screens it shrinks. */
.hy-date .hd{text-align:center;color:var(--text);flex:0 1 216px;min-width:0;white-space:nowrap}
.hy-date .hd.tap{cursor:pointer}
.hy-date .hd small{display:block;font-family:var(--font-body);font-size:11.5px;font-weight:700;color:var(--olive);letter-spacing:.02em}
.hy-arrow{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;color:var(--faint);border:none;background:none;cursor:pointer;flex:0 0 auto;transition:.12s}
.hy-arrow .glyph{font-size:16px}
.hy-arrow:active{transform:scale(.9)}
.hy-ro{font-size:11px;color:var(--faint);text-align:center;margin:4px 0 0;display:flex;align-items:center;justify-content:center;gap:5px}
.hy-ro .glyph{font-size:13px}
.hy-now{text-align:center;margin-top:12px}
.hy-now.tap{cursor:pointer}
.hy-now .k{font-size:11.5px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--olive)}
.hy-now .t{font-family:var(--font-head);font-weight:700;font-size:19px;letter-spacing:-.02em;margin-top:1px;overflow-wrap:anywhere}
.hy-now .s{font-size:13px;color:var(--faint);margin-top:1px}
/* on the iPhone, the four sections stacked: schedule · tasks · goals · important. On
   desktop, two equal columns under the clock face (see the 860 px rule): the gap between them falls
   right under the clock's axis. The <div> wrappers only count there. */
.hy-cols{display:flex;flex-direction:column}
.hy-cols>div{display:contents}
.hy-cols .s1{order:1}.hy-cols .s2{order:2}.hy-cols .s3{order:3}.hy-cols .s4{order:4}
.hy-cols .blk{margin:22px 0 0}
.hy-cols .s1 .blk{margin-top:0}
.hy-cols .blk-head{margin:2px 2px 6px}
.hy-cols .blk-head .n{font-size:12.5px;font-weight:600;color:var(--faint)}
/* 2.6.5: line between what has already happened today and what's left */
.hy-div{height:1px;background:var(--border);margin:6px 0}
/* today's schedule */
.sched-item{display:flex;gap:11px;padding:8px 0;align-items:flex-start}
.sched-time{font-family:var(--font-head);font-weight:700;font-size:12.5px;color:var(--muted);white-space:nowrap;width:44px;text-align:right;padding-top:2px;font-variant-numeric:tabular-nums}
.sched-line{width:3px;border-radius:99px;align-self:stretch;flex:0 0 auto;min-height:30px}
.sched-body{flex:1;min-width:0;padding-top:1px}
.sched-title{font-size:14.5px;font-weight:600;display:flex;align-items:center;gap:7px;flex-wrap:wrap;overflow-wrap:anywhere}
.sched-title .glyph{font-size:15px}
.sched-name{color:var(--text)}
.sched-sub{font-size:12px;color:var(--faint);margin-top:1px}
.sched-tag{font-size:10.5px;font-weight:700;padding:1px 7px;border-radius:99px;white-space:nowrap}
.sched-tag.now{color:var(--olive);background:var(--olive-bg)}
.sched-tag.next{color:var(--muted);background:var(--surface-2)}
/* 2.8.41: past items without transparency, since at 50 % they couldn't be read: time and title in the grey of
   done tasks, and the line and the icon dimmed */
.sched-past .sched-time,.sched-past .sched-name{color:var(--faint)}
.sched-past .sched-name{font-weight:500}
.sched-past .sched-line,.sched-past .sched-title .glyph{opacity:.45}
/* tasks on Daily: plain row, no pills (2.6) */
.item.simple .item-meta{gap:6px;font-size:12.5px;color:var(--faint);margin-top:3px}
.item.simple .pdot{display:inline-block;width:8px;height:8px;border-radius:99px;flex:0 0 auto}
/* 2.8.46: a project name made of a single very long word is cut with “…” on the dot's line
   (whatever room is left after the dot and the gap) instead of overflowing the column */
.item.simple .pname{min-width:0;max-width:calc(100% - 14px);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.item.simple .late{color:var(--amber);font-weight:600}
.item.simple .prio{flex:0 0 auto;color:var(--gold);font-size:14px;margin-top:3px}
/* 2.7.2: the “important” star in rows with pills (Listas, i.e. Projects, and each project) */
.imp-star{color:var(--gold);font-size:14px;display:inline-flex;align-items:center}
/* important: birthdays, one row each (2.7: notes no longer) */
.imp-r{display:flex;align-items:flex-start;gap:10px;padding:8px 0;font-size:14px;font-weight:500;cursor:pointer;border-bottom:1px solid var(--border-soft)}
.imp-r:last-child{border-bottom:none}
.imp-r .glyph{font-size:16px;margin-top:2px}
/* review: one line at the bottom, no longer a banner */
.hy-rev{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--faint);margin-top:22px;padding:0 2px;cursor:pointer}
.hy-rev .glyph{color:var(--olive);font-size:15px;flex:0 0 auto}
.hy-rev b{color:var(--olive)}

/* ---------- 2.8.77: Daily over the photo (the Vidrio (glass) idea from the redesign mockups) ----------
   The clock on a glass disc; the date and the “now” in glass capsules; each section in a light glass
   box (dark with the dark theme, and at night with either theme). Above the clock, the handwritten focus of the
   week. renderView sets the html.daily-photo class. 2.8.78: the time-of-day photo, the --vd-* tokens, the header,
   the bottom bar and the night colours move to styles/glass.css, which applies to the whole app (html.glass);
   what's left here is only for Daily. */
/* the glass: a translucent box that blurs what's behind it, with a thin edge of light on top */
html.daily-photo #view-hoy :is(.hy-cols .blk,.hy-date,.hy-now,.hy-ro,.hy-rev){
  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)}
/* inside, translucent lines and backgrounds instead of the usual beiges; in dark, white text */
html.daily-photo #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);
  color:var(--text)}   /* text with no colour of its own inherits body's; here, that of Daily's mode (light at night) */
:is(:root[data-theme="dark"].daily-photo,html.daily-photo.gl-night) #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)}
/* the focus of the week, above the clock: the handwritten sentence, white over the photo, with a soft shadow behind */
.hy-focus{position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:center;width:max-content;max-width:min(640px,100%);
  margin:2px auto 14px;padding:0 10px;text-align:center;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.3),0 2px 20px rgba(0,0,0,.28)}
.hy-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))}
/* 2.10.18: Caveat's contextual alternates off (the handwriting analyses each letter alone, app/handwriting.js) */
.hy-focus-t{font:600 24px/1.1 'Caveat',var(--font-body);text-wrap:balance;overflow-wrap:anywhere;font-feature-settings:"calt" 0,"liga" 0}
.hy-focus-t[role=button]{cursor:pointer}
/* 2.10.18: the quotes are text now (they were ::before and ::after); a lighter colour, not opacity (WebKit cuts a
   quote mark with opacity: see .rv-focus-t in glass-review.css) */
.hy-q{color:rgba(255,255,255,.85)}
.hy-q:first-child{margin-right:.04em}
.hy-q:last-of-type{margin-left:.03em}
/* 2.10.18: while the focus writes itself after closing the week, its own text is hidden under the drawing and the rest
   of Daily waits hidden (focusWriteHold, app/daily.js) */
.hand-on,.hand-on *{color:transparent!important;text-shadow:none!important}
#view-hoy.fw-wait>:not(.hy-top),#view-hoy.fw-wait .hy-top>:not(.hy-focus){opacity:0;pointer-events:none}
.hy-focus-objs{display:flex;flex-wrap:wrap;justify-content:center;gap:2px 14px;margin-top:6px}
.hy-focus-objs button{border:0;background:none;padding:3px 0;font:600 13px/1.3 var(--font-body);color:inherit;cursor:pointer;
  text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
/* the clock, on a glass disc: translucent face and hands in ink */
html.daily-photo #view-hoy .hy-clock{position:relative;isolation:isolate;width:max-content;margin:0 auto 4px}
html.daily-photo #view-hoy .hy-clock::before{content:"";position:absolute;inset:-3px;z-index:-1;border-radius:50%;background:var(--vd-disco);
  -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.daily-photo #view-hoy .clk{width:196px;height:196px}
html.daily-photo #view-hoy .clk .face{fill:var(--vd-esfera)}
html.daily-photo #view-hoy .clk :is(.tick,.hh,.mh){stroke:var(--vd-tinta)}
html.daily-photo #view-hoy .clk :is(.cap,.tdig){fill:var(--vd-tinta)}
html.daily-photo #view-hoy .clk .mid-line{stroke:var(--vd-raya);opacity:1}
/* the date and the “now”, in capsules */
html.daily-photo #view-hoy .hy-date{width:max-content;max-width:100%;margin:10px auto 0;padding:3px;border-radius:999px;gap:0}
/* 2.8.100: the capsule is always the size of the longest date («Miércoles, 30 de septiembre», 204.5 px at 15; in
   English and German they're shorter) and tall enough for two lines (the «Mañana» (Tomorrow) one on top): that way the
   arrows don't move from one day to the next, nor when leaving today. Before, it measured whatever its date did and each
   arrow jumped up to 22 px sideways and 4 vertically. So it isn't too wide, the text at 15 (was 16) and the 30 px arrows
   right against the text: 272 × 46 px (B in mockups/daily-date/). If it doesn't fit (screens under 300 px), it shrinks
   with the screen and the date overflows equally on both sides. */
html.daily-photo #view-hoy .hy-date .hd{font-size:15px;flex:0 1 auto;width:206px;min-height:calc(1.5*(11.5px + 15px));
  display:flex;flex-direction:column;align-items:center;justify-content:center}
html.daily-photo #view-hoy .hy-arrow{width:30px;color:var(--muted);border-radius:50%}
html.daily-photo #view-hoy .hy-ro{width:max-content;max-width:100%;margin:10px auto 0;padding:7px 14px;border-radius:999px;font-size:12px;color:var(--muted)}
html.daily-photo #view-hoy .hy-now{width:min(560px,100%);margin:12px auto 0;padding:13px 20px 14px;border-radius:24px}
html.daily-photo #view-hoy .hy-now.tap:active{transform:scale(.985)}
html.daily-photo #view-hoy .hy-now .k{font-size:12.5px;font-weight:600;letter-spacing:0;text-transform:none}
html.daily-photo #view-hoy .hy-now .t{font-size:21px;margin-top:3px}
html.daily-photo #view-hoy .hy-now .s{font-size:13.5px;color:var(--muted);margin-top:2px}
/* the sections, each in its own box, with a large title, not uppercase */
html.daily-photo #view-hoy .hy-cols .blk{margin:14px 0 0;padding:15px 18px 8px;border-radius:26px}
html.daily-photo #view-hoy .hy-cols .s1 .blk{margin-top:0}
html.daily-photo #view-hoy .hy-cols .blk-head{margin:0 0 4px}
html.daily-photo #view-hoy .hy-cols .blk-head .h{font-size:17px;line-height:1.25;letter-spacing:-.01em;text-transform:none;color:var(--text)}
html.daily-photo #view-hoy .hy-cols .blk-head :is(.more,.n){font-size:13.5px}
html.daily-photo #view-hoy .hy-cols .blk-head .n{color:var(--muted)}
/* when dragging a task onto «Tareas» (Tasks): the glass tinted olive, as in Projects (2.8.97; before, opaque olive) */
html.daily-photo #view-hoy .hy-cols .blk.dd-over{--vd-caja:rgba(231,238,221,.8);box-shadow:inset 0 0 0 2px var(--olive-soft),inset 0 1px 0 var(--vd-brillo)}
:is(:root[data-theme="dark"].daily-photo,html.daily-photo.gl-night) #view-hoy .hy-cols .blk.dd-over{--vd-caja:rgba(41,50,39,.74)}
/* the review, in a capsule with its icon in an olive circle */
html.daily-photo #view-hoy .hy-rev{width:max-content;max-width:100%;margin:16px auto 0;padding:8px 18px 8px 8px;border-radius:999px;gap:10px;font-size:13.5px;color:var(--muted)}
html.daily-photo #view-hoy .hy-rev+.hy-rev{margin-top:10px}
html.daily-photo #view-hoy .hy-rev .glyph{box-sizing:content-box;width:16px;height:16px;padding:8px;border-radius:50%;background:var(--olive-fill);color:var(--on-olive);text-shadow:var(--on-olive-sombra)}
:is(:root[data-theme="dark"].daily-photo,html.daily-photo.gl-night) #view-hoy .hy-rev .glyph{color:#17191A}
@media(min-width:860px){
  .hy-focus-t{font-size:29px}
  html.daily-photo #view-hoy .clk{width:216px;height:216px}
  html.daily-photo #view-hoy .hy-top{margin-bottom:24px}
  html.daily-photo #view-hoy .hy-cols{gap:0 20px}
  html.daily-photo #view-hoy .hy-cols .blk{margin-top:16px}
  html.daily-photo #view-hoy .hy-cols :is(.s1,.s2) .blk{margin-top:0}
}
/* priorities: used by the Review's «Así queda tu día» (This is your day) summary */
.prio-item{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid var(--border-soft)}
.prio-item:last-child{border-bottom:none}
.prio-star{color:var(--gold);font-size:16px;flex:0 0 auto}
/* 2.7.1: the day's other tasks in the summary; the dot takes the same space as the star so the titles line up */
.prio-dot{width:16px;flex:0 0 auto;display:grid;place-items:center}
.prio-t{flex:1;min-width:0;font-size:14px;line-height:1.35;overflow-wrap:anywhere}
/* progress ring: used by a goal's sheet */
.ring{transform:rotate(-90deg)}
.ring .tr{stroke:var(--track);fill:none}
.ring .pr{stroke:var(--olive-soft);fill:none;stroke-linecap:round;transition:stroke-dashoffset .5s ease}
.ring-txt{font-family:var(--font-head);font-weight:700}
/* review banner: used by the Review screen (intention of the week) */
.rev-banner{display:flex;align-items:center;gap:11px;background:var(--olive-bg);border:1px solid transparent;border-radius:var(--radius);padding:13px 15px;margin-bottom:16px;cursor:pointer;transition:.15s}
.rev-banner:active{transform:scale(.985)}
.rev-banner .glyph{font-size:21px;color:var(--olive)}
.rev-banner b{font-family:var(--font-head);font-size:14px;color:var(--olive-ink)}
.rev-banner small{display:block;font-size:12px;color:var(--olive);font-weight:500}
.rev-banner.week{background:var(--gold-bg)}
.rev-banner.week .glyph{color:var(--gold)}
.rev-banner.week b{color:var(--gold)}
.rev-banner.week small{color:var(--gold)}

/* ---------- calendar (ported as-is from v1) ---------- */
.cal-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;flex-wrap:wrap}
.cal-nav{display:flex;align-items:center;gap:8px}
.cal-arrow{flex:0 0 auto;border:1px solid var(--border);background:var(--surface);color:var(--muted);border-radius:9px;width:34px;height:34px;font-size:18px;cursor:pointer;line-height:1}
.cal-arrow:active{transform:scale(.94)}
.cal-label{flex:0 0 148px;font-family:var(--font-head);font-weight:700;font-size:16px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cal-head .cal-new{flex:0 0 auto;width:auto;padding:7px 13px;font-size:12.5px;border-radius:10px}
.cal-seg{display:flex;background:var(--surface-2);border-radius:10px;padding:3px;margin-bottom:8px}
.cal-seg button{flex:1;border:none;background:none;padding:7px 0;border-radius:8px;font-family:inherit;font-size:13px;font-weight:600;color:var(--muted);cursor:pointer}
.cal-seg button.on{background:var(--surface);color:var(--olive);box-shadow:var(--shadow)}
.cal-today-ic{display:grid;place-items:center;width:30px;height:30px;border:1px solid var(--border);background:var(--surface);border-radius:8px;color:var(--muted);cursor:pointer;flex:0 0 auto}
.cal-today-ic:active{transform:scale(.94)}
.cal-today-ic svg{display:block}
.cal-dhd-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.cal-wtoday{display:flex;justify-content:flex-end;margin-bottom:8px}
.cal-wd{display:grid;grid-template-columns:repeat(7,1fr);margin-bottom:5px}
.cal-wd span{text-align:center;font-size:11px;color:var(--faint);font-weight:700}
.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:3px}
.cal-cell{--cbg:var(--surface);height:84px;display:flex;flex-direction:column;align-items:center;gap:3px;padding:5px 4px;border-radius:9px;cursor:pointer;background:var(--surface);border:1px solid transparent;overflow:hidden}
.cal-cell:hover{border-color:var(--border)}
.cal-cell .cn{font-size:12px;font-weight:600;text-align:center;line-height:1}
.cal-cell.out{background:transparent}
.cal-cell.out .cn{color:var(--faint);opacity:.45}
.cal-cell.out .cal-q{opacity:.28}
.cal-cell.today{--cbg:var(--olive-bg);background:var(--olive-bg)}
.cal-cell.today .cn{color:var(--olive);font-weight:700}
.cal-cell.sel{border-color:var(--olive-soft)}
/* 2.8.62: drag from one day to another in the month to create a multi-day event */
.cal-grid{-webkit-touch-callout:none}
.cal-cell.arr{background:var(--olive-bg);border-color:var(--olive-soft)}
.cal-hint{margin-top:8px;font-size:12px;color:var(--faint);text-align:center}
/* 2×2 grid of glyphs: fixed size, all cells equal */
.cal-q{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:3px;width:100%;flex:1}
.cal-q-ic,.cal-q .cal-more{display:flex;align-items:center;justify-content:center;width:100%;height:100%}
.cal-q-ic{color:var(--pc)}
.cal-q-ic .glyph{width:18px;height:18px}
/* 2.8.3: the “+N” for a project's grouped tasks, no background, in the project's colour made a little deeper */
.cal-q-g{position:relative;display:flex}
.cal-q-n{position:absolute;top:-6px;right:-3px;font-size:11px;font-weight:700;line-height:1;letter-spacing:-.02em;color:var(--pc);color:color-mix(in srgb,var(--pc) 70%,var(--text));
  text-shadow:1px 0 0 var(--cbg),-1px 0 0 var(--cbg),0 1px 0 var(--cbg),0 -1px 0 var(--cbg),1px 1px 0 var(--cbg),-1px -1px 0 var(--cbg),1px -1px 0 var(--cbg),-1px 1px 0 var(--cbg)}   /* the outline in the cell's background colour detaches it from the icon */
.cal-more{font-size:15px;color:var(--muted);font-weight:700;line-height:1}
/* 2.8.38: below 375 px (320 with the iPhone's display zoom, 360 on many Android phones) the cell
   is under 45 px and the two 18 px icons didn't fit: they came out cut off, and so did the “+N” */
@media(max-width:374px){.cal-cell{padding:5px 2px}.cal-q{gap:2px}.cal-q-ic .glyph{width:15px;height:15px}.cal-q-n{font-size:10px;right:-2px}}
@media(min-width:680px){.cal-cell{height:104px}.cal-q-ic .glyph{width:25px;height:25px}.cal-q-n{font-size:12px;top:-5px;right:-9px}}
.cal-daylist{margin-top:18px}
.cal-dhd{font-family:var(--font-head);font-weight:700;font-size:14px;margin-bottom:10px;color:var(--muted)}
.cal-ev{display:flex;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--border);border-left-width:4px;border-radius:10px;padding:9px 11px;margin-bottom:8px;cursor:pointer}
.cal-ev:active{transform:scale(.99)}
.cal-ev.done .cal-tt{text-decoration:line-through;color:var(--faint)}
.cal-ic{font-size:16px;flex:0 0 auto;line-height:1}
.cal-ic .glyph{width:18px;height:18px;vertical-align:middle}
.cal-ad .glyph{width:16px;height:16px;vertical-align:-.2em}
.cal-block .glyph{width:14px;height:14px;vertical-align:-.16em}
.cal-tt{flex:1;font-size:13.5px;font-weight:600;min-width:0;overflow-wrap:anywhere}  /* 2.8.28: a title made of a single very long word breaks instead of overflowing the card */
.cal-hr{font-size:12px;color:var(--muted);font-weight:600;white-space:nowrap}
.cal-all{font-size:10.5px;color:var(--olive);background:var(--olive-bg);border-radius:7px;padding:2px 8px;font-weight:700;white-space:nowrap}
.cal-rep{color:var(--faint);font-size:12px}
.cal-week{display:flex;flex-direction:column;gap:12px}
.cal-wday{border:1px solid var(--border);border-radius:12px;padding:10px 12px;background:var(--surface)}
.cal-wday.today{border-color:var(--olive-soft)}
.cal-wdh{font-family:var(--font-head);font-weight:700;font-size:13px;margin-bottom:8px;text-transform:capitalize}
.cal-wempty{color:var(--faint);font-size:12px}
.cal-legend{display:flex;flex-wrap:wrap;gap:8px 14px;margin-top:18px;padding-top:12px;border-top:1px solid var(--border)}
.cal-legend span{display:inline-flex;align-items:center;gap:6px;font-size:11px;color:var(--muted);font-weight:600}
.cal-legend i{width:8px;height:8px;border-radius:50%;display:block}
/* Day view as a schedule */
.cal-allday{display:flex;flex-direction:column;gap:6px;background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:8px 10px;margin-bottom:12px}
.cal-ad{font-size:12.5px;font-weight:600;border-left:4px solid var(--olive-soft);padding-left:8px;cursor:pointer;display:flex;align-items:center;gap:6px;overflow-wrap:anywhere}
.cal-ad-sub{color:var(--muted);font-weight:500;white-space:nowrap}   /* 2.8.62: «· día 2 de 5» (· day 2 of 5) */
.cal-tl{position:relative;margin-top:2px}
.cal-hours{position:relative}
.cal-hour{height:48px;border-top:1px solid var(--border);position:relative}
.cal-hl{position:absolute;top:-7px;left:0;width:40px;text-align:right;font-size:10px;color:var(--faint);background:var(--bg);padding-right:3px}
.cal-slots{position:absolute;top:0;left:46px;right:0;bottom:0}
.cal-block{position:absolute;border-radius:8px;padding:3px 8px;color:#fff;overflow:hidden;cursor:pointer;box-shadow:var(--shadow)}
.cal-block b{font-size:12px;font-weight:600;display:block;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;align-items:center;gap:4px}
.cal-block small{font-size:10px;opacity:.92}
/* 2.6.6: Google Calendar. Not responded to = light background and dotted border */
.cal-block.gpend{background:linear-gradient(var(--gcbg),var(--gcbg)),var(--bg)!important;color:var(--text);border:1.5px dashed var(--gc);box-shadow:none}
.cal-block.gpend .glyph{color:var(--gc)}
.cal-ev.gpend{border-style:dashed;border-color:var(--gc);border-left-width:4px}
.cal-ad.gpend{border-left-style:dashed}
.sched-item.gpend .sched-line{-webkit-mask:repeating-linear-gradient(to bottom,#000 0 4px,transparent 4px 7px);mask:repeating-linear-gradient(to bottom,#000 0 4px,transparent 4px 7px)}
.gc-footer{display:flex;align-items:center;gap:6px;margin-top:12px;font-size:11.5px;color:var(--faint);background:none;border:0;padding:4px 0;font-family:inherit;cursor:pointer}
.gc-footer .glyph{width:14px;height:14px}
.gc-note{font-size:11.5px;color:var(--faint);text-align:center;margin-top:10px}
.cal-now{position:absolute;left:0;right:0;height:2px;background:var(--red);z-index:5}
.cal-now i{position:absolute;left:-1px;top:-4px;width:9px;height:9px;border-radius:50%;background:var(--red)}

/* ---------- sheets / overlays ---------- */
.overlay{position:fixed;inset:0;background:var(--overlay);z-index:60;display:none;align-items:flex-end;justify-content:center}
.overlay.open{display:flex}
.sheet{background:var(--surface);width:100%;max-width:560px;max-height:88vh;max-height:88svh;border-radius:22px 22px 0 0;padding:20px 18px calc(20px + env(safe-area-inset-bottom));overflow-y:auto;animation:sheetUp .25s ease;box-shadow:var(--shadow-lg)}
@media(min-width:680px){.overlay{align-items:center;padding:20px}.sheet{border-radius:22px;max-height:84vh}}
@keyframes sheetUp{from{transform:translateY(40px);opacity:.4}to{transform:none;opacity:1}}
/* 2.7.4 (mockup “H5” at 2 s): the language-change curtain. A curtain in the
   background colour rises with the crest of the two olive waves, “Lume” comes in letter by letter, underneath the
   language changes WITHOUT reloading (switchLang), the letters leave and the curtain goes down. Exactly 2 s.
   Timings: here (.635 up and down, letters at 444/513/582/651 ms) and in VEIL_MS (next to setLang).
   html.lang-switching = curtain up; html.veil-out = the letters leave; html.veil-down = it goes down. */
#veil{position:fixed;inset:0;z-index:1000;visibility:hidden;pointer-events:none;overflow:hidden;--cr:50px;--wl:200px;--velo-osc:#566E40}
:root[data-theme="dark"] #veil{--velo-osc:#6F8F55}
html.lang-switching #veil{visibility:visible;pointer-events:auto}
html.veil-down #veil{pointer-events:none}
.veil-curtain{position:absolute;left:0;right:0;top:0;height:calc(100% + var(--cr));transform:translateY(calc(100% - var(--cr)))}
html.lang-switching .veil-curtain{transform:translateY(calc(var(--cr) * -1));transition:transform .635s cubic-bezier(.65,0,.35,1)}
html.lang-switching.veil-down .veil-curtain{transform:translateY(calc(100% - var(--cr)))}
.veil-crest{position:absolute;top:0;left:calc(var(--wl) * -1);width:3400px;height:52px;display:block}
.veil-bg{position:absolute;left:0;right:0;top:var(--cr);bottom:0;background:var(--bg)}
html.lang-switching .veil-crest path{animation:veloOla 2.6s linear infinite}
.veil-letters{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-family:var(--font-head);font-weight:500;font-size:62px;letter-spacing:-1px;line-height:1;color:var(--text)}
.veil-letters span{display:inline-block;opacity:0}
html.lang-switching .veil-letters span{animation:veloLetraOp .37s ease both,veloLetraY .582s cubic-bezier(.2,.8,.2,1) both;animation-delay:var(--d),var(--d)}
.veil-letters span:nth-child(1){--d:444ms}.veil-letters span:nth-child(2){--d:513ms}.veil-letters span:nth-child(3){--d:582ms}.veil-letters span:nth-child(4){--d:651ms}
html.lang-switching.veil-out .veil-letters span{animation:veloLetraSale .26s ease both}
@media(min-width:680px){#veil{--cr:75px;--wl:300px}.veil-crest{width:5100px;height:78px}.veil-letters{font-size:88px;letter-spacing:-1.5px}}
@keyframes veloOla{from{transform:translateX(0)}to{transform:translateX(200px)}}
@keyframes veloLetraOp{from{opacity:0}to{opacity:1}}
@keyframes veloLetraY{from{transform:translateY(22px)}to{transform:none}}
@keyframes veloLetraSale{from{opacity:1;transform:none}to{opacity:0;transform:translateY(-12px)}}
/* 2.8.60: the little bar at the top (.sheet-handle) is gone: it looked draggable and wasn't. Its space moves to
   .sheet's padding */
.sheet h3{font-family:var(--font-head);font-size:18px;margin:2px 0 14px;display:flex;align-items:center;gap:8px}
.sheet h3 .glyph{font-size:19px;color:var(--olive)}
/* 2.8.53: copy title and note, to the right of the task sheet's title. The negative margins
   keep it the same height and line the icon up with the edge of the fields */
.sheet h3 .sheet-copy{flex:0 0 auto;width:34px;height:34px;margin:-8px -8px -8px auto;display:grid;place-items:center;padding:0;border:none;border-radius:10px;background:none;color:var(--muted);cursor:pointer;transition:background .12s,color .12s}
.sheet h3 .sheet-copy .glyph{font-size:17px;color:inherit}
@media(hover:hover){.sheet h3 .sheet-copy:hover{background:var(--surface-2);color:var(--text)}}   /* without a mouse, the grey would stay on after the tap */
.sheet h3 .sheet-copy.hecho{color:var(--olive)}
.f-row{margin-bottom:13px}
.f-row label{display:block;font-size:12px;font-weight:700;color:var(--muted);margin-bottom:5px;letter-spacing:.02em}
.f-row input[type=text],.f-row input[type=date],.f-row input[type=time],.f-row input[type=number],.f-row input[type=url],.f-row select,.f-row textarea{width:100%;border:1px solid var(--border);border-radius:11px;padding:10px 12px;font-size:16px;background:var(--bg);color:var(--text);-webkit-appearance:none;appearance:none}
.f-row textarea{resize:vertical;min-height:64px}
.f-row input:focus,.f-row select:focus,.f-row textarea:focus{outline:none;border-color:var(--olive-soft)}
.f-2col{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}   /* 2.8.38: minmax(0,…): a project with a long name widened the sheet and it moved sideways */
/* 2.8.93: the warning that an event shares hours with another (overlaps.js), below Empieza / Termina (Starts / Ends) */
.ev-overlap{display:flex;align-items:flex-start;gap:10px;margin:-1px 0 14px;padding:10px 12px;border-radius:var(--radius-s);
  background:var(--amber-bg);color:var(--text);font-size:13px;line-height:1.35}
.ev-overlap[hidden]{display:none}
.ev-overlap > .glyph{flex:0 0 auto;font-size:17px;color:var(--amber);margin-top:1px}
.ev-ov-t{flex:1;min-width:0;overflow-wrap:anywhere}
.ev-ov-a{font-weight:600}
.ev-ov-b{color:var(--muted);font-size:12.5px;margin-top:2px}
.pk-when{margin-left:auto;font-size:13px;font-weight:600;color:var(--faint)}
.pk-sep{height:1px;background:var(--border);margin:5px 6px}   /* 2.6.2: separates «Quitar de hoy» (Remove from today) from the days */
.pk-opt.quiet{color:var(--muted)}
.pk-opt.danger{color:var(--red)}
.pk-opt .pk-more{margin-left:auto;color:var(--faint);font-size:18px}
.pk-h{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pk-when{white-space:nowrap}
/* the days panel: a box of its own, smaller and tighter than the menu it hangs from */
.pk-sub{position:fixed;top:0;left:0;width:198px;background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow-lg);z-index:82;padding:6px;opacity:0;transform:translateX(-3px);pointer-events:none;transition:opacity .07s ease,transform .07s ease}
.pk-sub.on{opacity:1;transform:none;pointer-events:auto}
.pk-sub .pk-opt{font-size:13px;padding:8px 9px;border-radius:9px;white-space:nowrap}
.pk-sub .pk-when{font-size:11px}
.pk-sub .pk-tick{display:none}
.pk-opt.expanded{background:var(--bg)}   /* open, yes; coloured, no: no green on purpose */
.pk-when~.pk-tick{margin-left:0}   /* otherwise the space is split between the two and the dates jump around */
.f-actions{display:flex;gap:9px;margin-top:18px}
.btn{flex:1;border:none;border-radius:13px;padding:13px;font-family:var(--font-head);font-weight:700;font-size:14.5px;cursor:pointer;transition:.12s}
.btn:active{transform:scale(.97)}
.btn.primary{background:var(--olive-fill);color:var(--on-olive);text-shadow:var(--on-olive-sombra)}
:root[data-theme="dark"] .btn.primary{color:#17191A}
.btn.ghost{background:var(--surface-2);color:var(--muted);border:1px solid var(--border)}
.btn.danger{background:var(--red-bg);color:var(--red)}
.switch-row{display:flex;align-items:center;justify-content:flex-start;gap:12px;padding:4px 0 12px}
.switch-row label{font-size:13.5px;font-weight:600;color:var(--text)}
.sw{position:relative;width:46px;height:27px;border-radius:99px;background:var(--ctrl);border:none;cursor:pointer;transition:.2s;flex:0 0 auto}
.sw::after{content:'';position:absolute;top:3px;left:3px;width:21px;height:21px;border-radius:99px;background:var(--surface);box-shadow:0 1px 3px rgba(0,0,0,.25);transition:.2s}
.sw.on{background:var(--olive-soft)}
.sw.on::after{left:22px}
.daypick{display:flex;gap:6px}
.daypick button{flex:1;border:1px solid var(--border);background:var(--surface);border-radius:9px;padding:8px 0;font-weight:700;font-size:12.5px;color:var(--muted);cursor:pointer}
.daypick button.on{background:var(--olive-fill);border-color:var(--olive-fill);color:var(--on-olive);text-shadow:var(--on-olive-sombra)}
:root[data-theme="dark"] .daypick button.on{color:#17191A}

