/* Consistency: this week's ring and days over a grid of past weeks (scripts/lib/vk/heat.mjs, heat.js). */
.vk-heat{--heat:#F0534A;text-align:left;padding:24px;max-width:520px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr);gap:20px;font-variant-numeric:tabular-nums}
.vk-heat p{margin:0}

/* This week */
.vk-heat-week{display:grid;grid-template-columns:auto minmax(0,1fr);gap:20px;align-items:center}
.vk-heat-ring{position:relative;width:88px;height:88px}
.vk-heat-ring svg{width:100%;height:100%}
.vk-heat-ring .trk{fill:none;stroke:var(--vk-muted);stroke-width:8}
.vk-heat-ring .arc{fill:none;stroke-width:8;stroke-linecap:round;stroke-dasharray:100;stroke-dashoffset:var(--to)}
.vk-heat-ring>span{position:absolute;inset:0;display:grid;place-content:center;font:500 24px/28px Geist,Inter,sans-serif;letter-spacing:-.02em;color:var(--vk-ink3)}
.vk-heat-ring>span b{font-weight:500;color:var(--vk-ink)}
.vk-heat-ring>span{display:flex;align-items:center;justify-content:center}
.vk-heat-now p{font:500 15px/20px Inter,sans-serif}.vk-heat-now p::first-letter{text-transform:uppercase}
.vk-heat-days{margin-top:8px;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;max-width:296px}
.vk-heat-days span{display:grid;justify-items:center;gap:4px;min-width:0}
.vk-heat-days small{font:400 11px/16px Inter,sans-serif;color:var(--vk-ink3)}
.vk-heat-days i{display:grid;place-items:center;width:100%;max-width:28px;aspect-ratio:1;border-radius:50%;background:var(--vk-muted)}
.vk-heat-days .on i{background:var(--heat)}
.vk-heat-days i svg{width:60%;height:60%;fill:none;stroke:#fff;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.vk-heat-days .today:not(.on) i{background:none;box-shadow:inset 0 0 0 2px var(--vk-ink)}
.vk-heat-days .today small{color:var(--vk-ink);font-weight:500}

/* Past weeks: one column a week, Monday on top; the last column is this week. */
.vk-heat-grid{--gap:4px;display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 8px;padding-top:16px;border-top:1px solid var(--vk-line)}
.vk-heat-months{grid-column:2;display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr));gap:var(--gap);font:400 11px/16px Inter,sans-serif;color:var(--vk-ink3)}
.vk-heat-months span{grid-row:1;white-space:nowrap}
.vk-heat-rows{display:grid;grid-template-rows:repeat(7,minmax(0,1fr));gap:var(--gap);font:400 11px/1 Inter,sans-serif;color:var(--vk-ink3)}
.vk-heat-rows span{display:flex;align-items:center;min-width:1ch}
.vk-heat-cells{display:grid;grid-template-rows:repeat(7,auto);grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:var(--gap)}
.vk-heat-cells i{aspect-ratio:1;border-radius:22%;background:var(--vk-muted)}
.vk-heat-cells .l1{background:rgba(240,83,74,.3);background:color-mix(in srgb,var(--heat) 34%,var(--vk-card))}
.vk-heat-cells .l2{background:rgba(240,83,74,.6);background:color-mix(in srgb,var(--heat) 62%,var(--vk-card))}
.vk-heat-cells .l3{background:var(--heat)}
.vk-heat-cells .later{background:none;box-shadow:inset 0 0 0 1px var(--vk-line)}
.vk-heat-cells .today{box-shadow:inset 0 0 0 1.5px var(--vk-ink)}
.vk-heat-cells .today:not(.l2):not(.l3){background:none}

/* Arrives once: the weeks fill in left to right, then this week's ring and ticks. */
.vk-heat.armed .vk-heat-cells i:is(.l1,.l2,.l3){background:var(--vk-muted)}
.vk-heat.armed .vk-heat-ring .arc{stroke-dashoffset:100}
.vk-heat.armed .vk-heat-days .on i{background:var(--vk-muted)}
.vk-heat.armed .vk-heat-days .on svg{opacity:0;transform:scale(.5)}
.vk-heat.seen .vk-heat-cells i{transition:background-color .32s ease calc(var(--w) * 36ms + var(--d) * 10ms)}
.vk-heat.seen .vk-heat-ring .arc{transition:stroke-dashoffset .9s var(--vk-ease) .5s}
.vk-heat.seen .vk-heat-days i{transition:background-color .2s ease calc(.6s + var(--d) * 80ms)}
.vk-heat.seen .vk-heat-days svg{transition:opacity .2s ease calc(.6s + var(--d) * 80ms),transform .32s var(--vk-ease) calc(.6s + var(--d) * 80ms)}
@media (max-width:520px){
  .vk-heat{padding:20px}
  .vk-heat-week{gap:16px}
  .vk-heat-ring{width:80px;height:80px}
  .vk-heat-days{gap:4px}
  .vk-heat-grid{--gap:3px}
}
.vpic-home>*,.vpic-kit>*{width:100%;max-width:520px}
.vpic-home h3{letter-spacing:-.02em}
/* Dark page: the Appearance picture's own controls sit on the page, not on its light panel, and the
   import picture's foot pill is glass; both read the page's ink there. */
:root[data-theme="dark"] .vpic-themes .th{color:var(--ink)}
:root[data-theme="dark"] .vpic-themes .th-sw{box-shadow:inset 0 0 0 1px rgba(255,255,255,.24)}
:root[data-theme="dark"] .vpic-themes .th-tone[aria-pressed="true"] .th-sw{box-shadow:inset 0 0 0 1px rgba(255,255,255,.24),0 0 0 2px #16151C,0 0 0 4px currentColor}
:root[data-theme="dark"] .vpic-import .ic-foot{background:rgba(255,255,255,.1);color:var(--ink-2)}
.vwide .vpic>*{max-width:none}