/* Leaving card (item 1090): theme tokens from style.css only. */
body.lv { --line: var(--rule); }   /* the shared header (1541) draws its lines in the page's rule colour */
.lv-main { max-width: 480px; margin: 0 auto; padding: 16px 16px 120px; display: flex; flex-direction: column; gap: 14px; }
.lv h1 { margin: 0; font: 700 1.7rem/1.15 var(--display); overflow-wrap: anywhere; text-wrap: balance; }
.lv-soft { margin: 0; color: var(--muted); }
.lv-f { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.lv-f input, .lv-f textarea { font: inherit; font-weight: 400; color: var(--ink); background: var(--surface); border: 2px solid var(--rule); border-radius: 12px; padding: 12px; min-height: 48px; width: 100%; }
.lv-go { min-height: 52px; border: 0; border-radius: 14px; background: var(--accent); color: var(--on-accent); font: 700 1.05rem var(--body); cursor: pointer; touch-action: manipulation; }
.lv-go:disabled { opacity: .6; }
a.lv-go { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.lv-ghost, .lv-nudge { min-height: 44px; padding: 0 14px; border: 2px solid var(--rule); border-radius: 12px; background: var(--surface); color: var(--ink); font: 700 .95rem var(--body); cursor: pointer; }
.lv-ghost:disabled { color: var(--muted); }
.lv-txt { all: unset; cursor: pointer; text-decoration: underline; color: var(--muted); min-height: 44px; display: inline-flex; align-items: center; }
.lv-box { background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.lv-big { margin: 0; font: 700 3rem/1 var(--display); }
.lv-lead { margin: 0; font-weight: 700; }
.lv-price { margin: 0; color: var(--muted); }
.lv-err { margin: 0; color: var(--accent); font-weight: 600; }
.lv-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lv-url { overflow-wrap: anywhere; font-weight: 600; }
.lv-rows, .lv-lines { list-style: none; margin: 0; padding: 0; }
.lv-rows li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.lv-rows li span { flex: 1; overflow-wrap: anywhere; }
.lv-tick { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--muted); background: none; cursor: pointer; }
.lv-signed summary, .lv-open summary, .lv-inside summary { font: 700 1.15rem var(--display); cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.lv-lines li { padding: 10px 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 4px; }
.lv-lines li.hid q { opacity: .5; text-decoration: line-through; }
.lv-lines q { quotes: none; }
.lv-who { font: italic 600 1.1rem var(--display); color: var(--accent); }
.lv-seal { font-size: 4rem; text-align: center; margin-top: 12vh; }
.lv-main:has(.lv-seal) h1 { text-align: center; }
.lv-open > summary { justify-content: center; min-height: 56px; border-radius: 14px; background: var(--accent); color: var(--on-accent); }
.lv-front { width: 100%; height: auto; border-radius: 12px; margin: 14px 0; }
.lv-link { display: inline-block; min-height: 44px; padding-top: 10px; }
.lv-toast { position: fixed; left: 16px; right: 16px; bottom: 84px; max-width: 448px; margin: 0 auto; padding: 12px 16px; border-radius: 12px; background: var(--ink); color: var(--bg); }
.lv-how { margin: 0; display: flex; gap: 14px; align-items: center; }
.lv-how img { width: 92px; height: auto; flex: none; box-shadow: var(--mat-shadow); }
.lv-how ol { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
/* Priya's own link (1441/1530): the address, Change in place, the two times, the done line on the day */
.lv-f small { font-weight: 400; }
.lv-mail { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.lv-change > :not(summary) { margin-top: 12px; }
.lv-change > .lv-go, .lv-change > .lv-ghost { width: 100%; }
.lv-box:has(> .lv-change[open]) > :is(.lv-soft, .lv-mail) { display: none; }
.lv-change > summary { list-style: none; color: var(--ink); font-weight: 700; }
.lv-change > summary::-webkit-details-marker { display: none; }
.lv-change[open] > summary { display: none; }
.lv-when { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lv-when legend { font-weight: 600; padding: 0; margin-bottom: 6px; }
.lv-when label { position: relative; }
.lv-when input { position: absolute; opacity: 0; inset: 0; }
.lv-when span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: 6px 8px; border: 2px solid var(--rule); border-radius: 14px; background: var(--surface); font-weight: 700; cursor: pointer; }
.lv-when input:checked + span { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.lv-when input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.lv-done { margin: 0; padding: 12px 16px; border-radius: 14px; background: var(--note); color: var(--note-ink); font-weight: 700; }
.lv-role { display: block; color: var(--muted); font-size: 1.0625rem; }
/* The card's front (1769): drawn per leaver as SVG; paper and ink are the card's own, the same in light and dark like a printed card */
.lvf { --card-paper: #f4efe6; --card-ink: #1f2d2d; --card-teal: #205a58; --card-line: #d64f3b; --card-gold: #e2a53a; --card-tick: #d8d0c2;
  display: block; aspect-ratio: 720 / 1010; box-shadow: var(--mat-shadow); }
/* 2038: starter lines under Your line */
.lv-starts { display: flex; flex-direction: column; gap: 8px; }
.lv-starts[hidden] { display: none; }
.lv-start { text-align: left; min-height: 48px; padding: 10px 14px; border: 2px solid var(--rule); border-radius: 12px; background: var(--surface); color: var(--ink); font: 400 1rem/1.35 var(--body); cursor: pointer; touch-action: manipulation; }
.lv-start::before { content: "+ "; color: var(--accent); font-weight: 700; }
.lvf-paper { fill: var(--card-paper); }
.lvf-band { fill: var(--card-teal); }
.lvf-best { fill: var(--card-teal); font: 700 26px var(--body); letter-spacing: .02em; }
.lvf-name { fill: var(--card-ink); font-family: var(--display); font-weight: 700; letter-spacing: -.02em; }
.lvf-from { fill: var(--card-teal); font: 400 24px var(--body); }
.lvf-line { stroke: var(--card-line); stroke-width: 14; }
.lvf-dot { fill: var(--card-paper); stroke: var(--card-line); stroke-width: 4; }
.lvf-ring { fill: var(--card-paper); stroke: var(--card-ink); stroke-width: 7; }
.lvf-gold { fill: var(--card-gold); }
.lvf-tick { stroke: var(--card-tick); stroke-width: 2; }
.lvf-lab { fill: var(--card-ink); font: 700 18px var(--body); }
.lvf-sm { fill: var(--card-teal); font: 400 16px var(--body); }
.lvf-long { fill: var(--card-ink); font: 700 52px var(--display); }
.lv-ph { width: 104px; height: 104px; object-fit: contain; background: var(--card-paper, transparent); border-radius: 8px; display: block; }
.lv-lines audio { max-width: 100%; }

/* move the last day (item 2037) */
.mv-dayrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mv-dayrow .lv-soft { flex: 1 1 12em; text-wrap: pretty; }
.mv-dayrow .lv-ghost { flex: none; }
.mv-in { display: flex; flex-direction: column; gap: 10px; }
.mv-in[hidden], .mv-pop[hidden] { display: none; }
.mv-in input[type=date] { font: inherit; color: var(--ink); background: var(--surface); border: 2px solid var(--rule); border-radius: 12px; padding: 12px; min-height: 52px; width: 100%; box-sizing: border-box; }
.mv-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 40; }
.mv-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-width: 480px; margin: 0 auto; background: var(--bg); color: var(--ink);
  border-radius: 20px 20px 0 0; padding: 10px 16px max(18px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; max-height: 92vh; overflow: auto; }
.mv-grab { width: 40px; height: 5px; border-radius: 3px; background: var(--rule); margin: 0 auto 4px; }
.mv-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mv-head b { font: 700 1.25rem var(--display); }
.mv-x { min-width: 44px; min-height: 44px; border: 0; background: none; color: var(--ink); font-size: 1.4rem; cursor: pointer; }
.mv-wk { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.mv-wd { text-align: center; color: var(--muted); font-weight: 600; font-size: .95rem; }
.mv-mon { grid-column: 1 / -1; font-weight: 700; margin-top: 6px; }
.mv-d { min-height: 52px; border: 2px solid var(--rule); border-radius: 12px; background: var(--surface); color: var(--ink); font: 700 1.1rem var(--body);
  cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; padding: 2px; touch-action: manipulation; }
.mv-d small { font: 600 .7rem var(--body); color: var(--muted); }
.mv-d.now { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.mv-d.now small { color: var(--accent); }
.mv-d.gone { visibility: hidden; }
.mv-d.hol { background: transparent; border-style: dashed; }
.mv-other { align-self: flex-start; }
.mv-done { display: flex; flex-direction: column; gap: 10px; }
.mv-done .lv-row { justify-content: flex-start; flex-wrap: wrap; }
.mv-done .lv-go { width: 100%; }
html[data-theme="large"] .mv-d { min-height: 60px; font-size: 1.05rem; }
html[data-theme="large"] .mv-d small { font-size: .62rem; }

/* 2468/2372/2469: the madre's XV page on her day: Pagar alone on top; what leads when nobody has written; the first screen at 844x390 */
.lv-today { margin: 0 0 6px; font-size: 1.5rem; font-weight: 700; line-height: 1.3; }
.lv-wait { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; }
.lv-wait span { flex: 1 1 200px; color: var(--muted); }
.lv-locked { color: var(--muted); }
.lv-pay { border: 2px solid var(--accent) !important; }
.lv-pay p { margin: 4px 0 12px; }
.lv-pay .lv-go { width: 100%; display: flex; align-items: center; justify-content: center; text-decoration: none; position: sticky; bottom: 10px; z-index: 5; box-shadow: 0 6px 18px color-mix(in srgb, var(--ink) 18%, transparent); }
@media (orientation: landscape) and (max-height: 520px) {
  .lv-main > .xv-picado, .site-band { display: none; }
  .lv-main h1 { font-size: 1.1875rem; line-height: 1.2; margin: 6px 0 2px; }
  .lv-pay { padding: 10px 12px; } .lv-pay p { margin: 2px 0 8px; } .lv-pay .lv-lead { margin: 0; }
}
.lv-pay { border: 2px solid var(--accent); }

/* 1915: one tap opens the front and the lines; the Open button goes once it has done its job */
.lv-open[open] > summary { display: none; }
