/* Claude Pulse - desktop widget (Rainmeter / WebView2). Premium light glass, calm motion.
 * Only transform + opacity animate (compositor), except the SVG ring values which a short rAF tween drives. */
:root {
  --ink: #0f2a1b;
  --ink-2: #33493d;
  --ink-3: #4a6054;
  --line: rgba(255, 255, 255, .78);
  --hair: rgba(15, 42, 27, .09);
  --ok: #1f9d5a;      --ok-t: #0b6a3a;     --ok-bg: rgba(31, 157, 90, .13);
  --warn: #e39a00;    --warn-t: #7a4b00;   --warn-bg: rgba(227, 154, 0, .16);
  --high: #d9402f;    --high-t: #a02417;   --high-bg: rgba(217, 64, 47, .13);
  --accent: var(--ok);
  --accent-t: var(--ok-t);
  --accent-bg: var(--ok-bg);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font: "Segoe UI Variable Display", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body { background: transparent; overflow: hidden; }
body {
  font: 400 12px/1.35 var(--font); color: var(--ink); width: 348px;
  -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
  user-select: none; -webkit-user-select: none; cursor: default;
}
/* test-only backdrop: ?bg=forest paints a dark wallpaper stand-in so the glass can be judged in a normal browser */
body.bg-forest { background: radial-gradient(120% 90% at 20% 10%, #2f5a3f 0%, #17331f 45%, #0b1a11 100%); min-height: 100vh; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.drag { -webkit-app-region: drag; app-region: drag; }
.nodrag { -webkit-app-region: no-drag; app-region: no-drag; }

#stage { padding: 14px; width: 348px; perspective: 1100px; }

/* ---------- glass card ---------- */
#card {
  position: relative; border-radius: 26px; padding: 12px 14px 10px;
  background:
    radial-gradient(120% 70% at 12% 0%, rgba(255,255,255,.95), rgba(255,255,255,0) 60%),
    linear-gradient(160deg, rgba(250,253,251,.95) 0%, rgba(238,247,242,.93) 55%, rgba(226,240,232,.91) 100%);
  border: 1px solid var(--line);
  box-shadow:
    0 26px 44px -18px rgba(0, 18, 8, .62),
    0 4px 10px rgba(0, 18, 8, .28),
    inset 0 1.5px 0 rgba(255,255,255,.95),
    inset 0 -1px 0 rgba(255,255,255,.35);
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .9s var(--ease);
  will-change: transform;
  animation: cardIn .9s var(--ease) .05s backwards;
}
#card.tilting { transition: transform .12s linear; }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); } }
/* one slow glass sheen after entry */
#card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; overflow: hidden;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.5) 50%, transparent 60%) no-repeat;
  background-size: 300% 100%; background-position: 130% 0; opacity: 0; animation: sheen 2.4s ease-in-out 1.1s 1 both;
}
@keyframes sheen { 0% { background-position: 130% 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { background-position: -30% 0; opacity: 0; } }

/* ---------- header / footer ---------- */
header { display: flex; align-items: center; justify-content: space-between; height: 32px; margin: -2px -4px 6px; padding: 0 4px; }
.brand { display: flex; align-items: center; gap: 8px; }
.logo { width: 22px; height: 22px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(145deg, #2fb36d, #137a47); box-shadow: 0 3px 8px -2px rgba(19,122,71,.6), inset 0 1px 0 rgba(255,255,255,.5); }
.logo svg { width: 14px; height: 14px; display: block; }
.brand b { font-weight: 650; font-size: 13.5px; letter-spacing: .1px; }
.brand span { font-size: 11px; color: var(--ink-3); }
.icon-btn { width: 28px; height: 28px; border-radius: 10px; display: grid; place-items: center; color: var(--ink-2);
  transition: background .25s, transform .5s var(--ease); }
.icon-btn:hover { background: rgba(15,42,27,.08); transform: rotate(60deg); }
.icon-btn:active { transform: rotate(60deg) scale(.92); }
.icon-btn svg { width: 16px; height: 16px; }
footer { display: flex; align-items: center; justify-content: space-between; height: 26px; margin: 6px -4px -2px; padding: 0 4px; }
.sig { font-size: 10.5px; font-weight: 750; letter-spacing: .3px; color: var(--ink-3); opacity: .9; padding: 3px 4px; border-radius: 6px; transition: opacity .25s; }
.sig:hover { opacity: 1; }
.sig i { font-style: normal; color: var(--ok); }
#updated { font-size: 10px; color: var(--ink-3); }
#updated.stale { color: var(--warn-t); font-weight: 600; }
.link { font-size: 10.5px; font-weight: 600; color: var(--ok-t); padding: 3px 8px; border-radius: 8px; transition: background .25s; }
.link:hover { background: var(--ok-bg); }

/* ---------- panels ---------- */
.panel {
  position: relative; border-radius: 18px; padding: 12px;
  background: linear-gradient(165deg, rgba(255,255,255,.80), rgba(255,255,255,.52));
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 8px 18px -10px rgba(0,30,12,.35), inset 0 1px 0 #fff, inset 0 -1px 0 rgba(15,42,27,.04);
  transform: translateZ(14px);
}
.stack > * + * { margin-top: 8px; }
/* capped to the screen (1.7.1, widget.js fitScreen): header and footer stay, the cards scroll with the wheel */
#card.capped { display: flex; flex-direction: column; max-height: var(--maxh); }
#card.capped > header, #card.capped > footer { flex: none; }
#card.capped #views { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0 -8px; padding: 2px 8px 12px; }
#card.capped #views::-webkit-scrollbar { width: 5px; background: transparent; }
#card.capped #views::-webkit-scrollbar-button { display: none; height: 0; }
#card.capped #views::-webkit-scrollbar-thumb { background: rgba(15,42,27,.22); border-radius: 5px; }
#card.capped.more #views { -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 44px), transparent); }
.enter { animation: rise .8s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 85ms + 180ms); }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 14px, 14px) scale(.97); } to { opacity: 1; transform: translateZ(14px); } }

/* ---------- hero: peak clock ---------- */
#sec-peak { display: grid; grid-template-columns: 128px 1fr; gap: 12px; align-items: center; padding: 10px 12px 10px 8px; }
.clock { position: relative; width: 128px; height: 128px; }
.clock svg { width: 128px; height: 128px; display: block; overflow: visible; }
.clock .trk { fill: none; stroke: rgba(15,42,27,.07); }
.clock .arc { fill: none; transition: opacity .6s; }
.clock .arc.ofc { stroke: #c8604d; opacity: .7; }
.clock .arc.hv { stroke: var(--warn); }
.clock text { font: 650 7.4px var(--font); fill: var(--ink-2); text-anchor: middle; dominant-baseline: central; }
.clock .tick { stroke: rgba(15,42,27,.28); stroke-width: .8; stroke-linecap: round; }
.hand { position: absolute; inset: 0; transform: rotate(var(--ang, 0deg)); transition: transform 1.6s var(--ease); pointer-events: none; }
.hand.jump { transition: none; }
.hand::before { content: ""; position: absolute; left: 50%; top: 15px; width: 3px; height: 20px; margin-left: -1.5px; border-radius: 3px;
  background: linear-gradient(#fff, rgba(255,255,255,.85)); box-shadow: 0 0 0 1px rgba(15,42,27,.35), 0 2px 6px rgba(0,0,0,.35); }
.hand i { position: absolute; left: 50%; top: 13.5px; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%;
  background: var(--accent); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.4); transition: background .6s; }
.hand i::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid var(--accent); will-change: transform, opacity;
  opacity: 0; }
.hand.pinging i::after { animation: ping 2.2s ease-out 1; }
@keyframes ping { 0% { transform: scale(.5); opacity: .7; } 70%, 100% { transform: scale(1.5); opacity: 0; } }
.clock-c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.clock-c b { font-size: 19px; font-weight: 650; letter-spacing: -.3px; line-height: 1; }
.clock-c small { display: block; margin-top: 3px; font-size: 8.5px; font-weight: 700; letter-spacing: 1.4px; color: var(--ink-3); }

.hero-r { min-width: 0; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 9px; border-radius: 999px;
  background: var(--accent-bg); color: var(--accent-t); font-weight: 750; font-size: 11.5px; letter-spacing: 1.6px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); transition: background .7s, color .7s, border-color .7s; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); transition: background .7s; position: relative; z-index: 1; }
.chip .glow { position: absolute; inset: -12px -16px; z-index: -1; border-radius: 999px; will-change: opacity;
  background: radial-gradient(closest-side, var(--accent), transparent); opacity: .2;
}
#chipText { transition: opacity .25s, transform .3s var(--ease); display: inline-block; }
.swap { opacity: 0 !important; transform: translateY(-4px); }
.cd-l { margin-top: 7px; font-size: 11px; color: var(--ink-2); transition: opacity .25s; }
.cd-v { font-size: 30px; font-weight: 650; letter-spacing: -1px; line-height: 1.05; margin-top: 1px; color: var(--ink); transition: opacity .25s, transform .3s var(--ease); }
.cd-v small { font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--ink-2); margin-left: 1px; }
.cap { margin-top: 6px; font-size: 10.5px; font-weight: 600; color: var(--accent-t); line-height: 1.25; transition: opacity .25s, color .7s; }
.cd-s { margin-top: 3px; font-size: 10.5px; color: var(--ink-3); transition: opacity .25s; }

[data-state="usp"]   { --accent: #c8604d; --accent-t: #8f3d2d; --accent-bg: rgba(200,96,77,.12); }
[data-state="heavy"] { --accent: var(--warn); --accent-t: var(--warn-t); --accent-bg: var(--warn-bg); }
[data-state="off"]   { --accent: var(--ok);   --accent-t: var(--ok-t);   --accent-bg: var(--ok-bg); }

.legend { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 3px 12px; margin-top: 3px; padding: 0 4px; font-size: 10px; }
.hr[hidden] + .legend { margin-top: 2px; padding-top: 8px; border-top: 1px solid var(--hair); }
.legend div { display: flex; align-items: center; gap: 5px; color: var(--ink-3); white-space: nowrap; }
.legend em { font-style: normal; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.legend .sw-o, .legend .sw-h { width: 10px; height: 4px; }
.sw-o, .sw-h { flex: none; width: 14px; height: 5px; border-radius: 3px; }
.sw-o { background: #c8604d; opacity: .7; } .sw-h { background: var(--warn); }
.mode-compact .legend { display: none; }
/* today by hour (under the clock) */
.hr { grid-column: 1 / -1; margin-top: 2px; padding: 7px 0 0 4px; border-top: 1px solid var(--hair); }
.hr-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 3px; }
.hr-top .m-cap { margin: 0; }
.hr-leg { display: inline-flex; gap: 9px; font-size: 9.5px; color: var(--ink-3); }
.hr-leg span { display: inline-flex; align-items: center; gap: 4px; }
.hr-leg i { width: 7px; height: 9px; border-radius: 2px 2px 0 0; background: var(--ok); }
.hr-leg .g i { background: rgba(15,42,27,.13); }
.pvs-v { fill: var(--ok); opacity: .85; transition: opacity .15s; }
.pvs-v.now { fill: var(--ok-bg); stroke: var(--ok); stroke-width: 1.1; opacity: 1; }
.pvs-v.on { opacity: 1; }
.pvs-g { fill: rgba(15,42,27,.11); }
.pvs-band.ofc { fill: #c8604d; opacity: .09; }
.pvs-band.hv { fill: var(--warn); opacity: .14; }
.pvs-now { stroke: var(--ink); stroke-width: 1; opacity: .45; stroke-dasharray: 2 2; }
.pvc-tip [data-k="g"] i { width: 7px; height: 7px; border-radius: 2px; background: rgba(15,42,27,.2); }
.pvc-tip [data-k="v"] i { width: 7px; height: 7px; border-radius: 2px; }

/* ---------- limit tiles ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tiles.one { grid-template-columns: 1fr; }
.tile { padding: 10px 10px 10px; text-align: center; transition: transform .7s var(--ease); }
.tile h4 { font-size: 9.5px; font-weight: 700; letter-spacing: 1.4px; color: var(--ink-3); text-transform: uppercase; }
.ring { position: relative; width: 84px; height: 84px; margin: 7px auto 6px; }
.ring svg { width: 84px; height: 84px; display: block; transform: rotate(-90deg); overflow: visible; }
.ring .bg { fill: none; stroke: rgba(15,42,27,.09); stroke-width: 9; }
.ring .pj { fill: none; stroke: var(--pj, var(--sev)); stroke-width: 9; stroke-linecap: round; opacity: .26; transition: stroke-dashoffset 1.2s var(--ease), stroke .8s; }
.ring .fg { fill: none; stroke: var(--sev); stroke-width: 9; stroke-linecap: round; filter: drop-shadow(0 2px 4px color-mix(in srgb, var(--sev) 55%, transparent)); transition: stroke .8s; }
.ring .num { position: absolute; inset: 0; display: grid; place-content: center; font-size: 22px; font-weight: 650; letter-spacing: -.5px; }
.ring .num small { font-size: 11px; font-weight: 600; color: var(--ink-3); margin-left: 1px; }
.bar { display: none; height: 6px; border-radius: 6px; background: rgba(15,42,27,.09); overflow: hidden; margin-top: 7px; }
.bar i { display: block; height: 100%; width: 100%; border-radius: 6px; background: var(--sev); transform-origin: left; transform: scaleX(0); transition: background .8s; }
.tile .r1 { font-size: 11.5px; font-weight: 600; color: var(--ink); }
.tile .r2 { font-size: 10.5px; color: var(--ink-3); margin-top: 1px; }
.detail { position: relative; height: 14px; margin-top: 5px; font-size: 10px; color: var(--ink-3); }
.detail span { position: absolute; inset: 0; transition: opacity .35s, transform .5s var(--ease); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.detail .b { opacity: 0; transform: translateY(5px); }
.tile:hover .detail .a { opacity: 0; transform: translateY(-5px); }
.tile:hover .detail .b { opacity: 1; transform: none; color: var(--ink-2); }
.detail .a.hot { color: var(--high-t); font-weight: 650; }
[data-sev="ok"]   { --sev: var(--ok); }
[data-sev="warn"] { --sev: var(--warn); }
[data-sev="high"] { --sev: var(--high); }
.tile[data-sev="high"] .num b { color: var(--high-t); }
.tile[data-sev="warn"] .num b { color: var(--warn-t); }

.mode-compact .ring, .mode-compact .detail { display: none; }
.mode-compact .bar { display: block; }
.mode-compact .tiles { grid-template-columns: 1fr; gap: 6px; }
.mode-compact .tile { display: grid; grid-template-columns: 1fr auto; align-items: center; text-align: left; padding: 8px 12px; row-gap: 0; column-gap: 8px; }
.mode-compact .tile h4 { grid-column: 1; }
.mode-compact .tile .cv { grid-column: 2; grid-row: 1; font-size: 15px; font-weight: 650; text-align: right; }
.mode-compact .tile .bar { grid-column: 1 / -1; margin-top: 5px; }
.mode-compact .tile .r1, .mode-compact .tile .r2 { display: none; }
.mode-compact .tile .rc { grid-column: 1 / -1; font-size: 10px; color: var(--ink-3); margin-top: 3px; }
.cv, .rc { display: none; }
.mode-compact .cv { display: block; } .mode-compact .rc { display: block; }
.mode-compact #sec-peak { grid-template-columns: 76px 1fr; padding: 8px 10px 8px 6px; gap: 8px; }
.mode-compact .clock, .mode-compact .clock svg { width: 76px; height: 76px; }
.mode-compact .hand::before { height: 11px; top: 8px; width: 2px; margin-left: -1px; }
.mode-compact .hand i { top: 7px; width: 8px; height: 8px; margin-left: -4px; }
.mode-compact .clock text, .mode-compact .clock .tick { display: none; }
.mode-compact .clock-c b { font-size: 12px; } .mode-compact .clock-c small { display: none; }
.mode-compact .cd-v { font-size: 22px; } .mode-compact .cd-l { margin-top: 5px; } .mode-compact .cap { display: none; } .mode-compact .chip { padding: 3px 9px 3px 7px; font-size: 10px; }

/* ---------- models / pace / offline ---------- */
#sec-models { padding: 9px 12px; }
.m-row { display: grid; grid-template-columns: 58px 1fr 34px; gap: 8px; align-items: center; }
.m-row + .m-row { margin-top: 7px; }
.m-row b { font-size: 11.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-row .bar { display: block; margin: 0; }
.m-row em { font-style: normal; font-size: 11px; font-weight: 650; text-align: right; }
.m-cap { font-size: 9.5px; font-weight: 700; letter-spacing: 1.4px; color: var(--ink-3); text-transform: uppercase; margin-bottom: 6px; }
/* right now: the live coach */
#sec-pace { padding: 9px 12px 10px 14px; display: block; }
#sec-pace::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--sev, var(--ok)); }
.co-top { display: flex; align-items: center; gap: 8px; }
.co-top .m-cap { margin: 0; flex: 1; }
.co-spark { width: 74px; flex: none; margin: 0; }
.co-spark .pvs-v { fill: var(--sev); opacity: .55; }
.co-spark .pvs-v.now { fill: var(--sev); stroke: none; opacity: .95; }
.co-spark .pvs-v.on { opacity: 1; }
.co-spark .pvc-tip { top: 22px; left: auto !important; right: 0; }
.co-burn { font-size: 15px; font-weight: 700; letter-spacing: -.3px; color: var(--ink); white-space: nowrap; }
.co-burn small { font-size: 10px; font-weight: 600; color: var(--ink-3); margin-left: 1px; }
.co-t { display: grid; grid-template-columns: 20px 1fr; gap: 8px; align-items: start; margin-top: 6px; }
.co-t i { display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--sev); color: #fff; }
.co-t i svg { width: 13px; height: 13px; }
.co-t b { display: block; font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.co-t b b { display: inline; color: var(--sev-t, var(--ink)); }
.co-t small { display: block; margin-top: 1px; font-size: 10px; color: var(--ink-3); line-height: 1.35; }
#sec-pace[data-sev="warn"] { --sev-t: var(--warn-t); } #sec-pace[data-sev="high"] { --sev-t: var(--high-t); } #sec-pace[data-sev="ok"] { --sev-t: var(--ok-t); }
.co-m { display: grid; grid-template-columns: 40px 1fr auto; gap: 8px; align-items: center; margin-top: 7px; }
.co-m b { font-size: 10.5px; font-weight: 650; color: var(--ink-2); }
.co-m .bar { display: block; margin: 0; height: 6px; }
.co-m em { font-style: normal; font-size: 11px; font-weight: 650; white-space: nowrap; }
.co-m em small { font-weight: 500; color: var(--ink-3); }
.co-l { display: grid; grid-template-columns: 6px 1fr; gap: 7px; align-items: center; margin-top: 5px; font-size: 10.5px; color: var(--ink-2); }
.co-l i { width: 6px; height: 6px; border-radius: 50%; background: rgba(15,42,27,.25); }
.co-l[data-sev="ok"] i { background: var(--ok); } .co-l[data-sev="warn"] i { background: var(--warn); } .co-l[data-sev="high"] i { background: var(--high); }
.co-l span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-l b { font-weight: 650; color: var(--ink); }
.co-m + .co-l { margin-top: 7px; }
.mode-compact .co-t small, .mode-compact .co-m, .mode-compact .co-l, .mode-compact .co-spark { display: none; }
/* ---------- plan value: what the plan gives vs what we spend ---------- */
#sec-plan { padding: 10px 12px; }
.pv-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.pv-top .m-cap { margin: 0; }
.pv-day { font-size: 10.5px; color: var(--ink-3); white-space: nowrap; }
.pv-h { margin: 3px 0 8px; font-size: 11px; color: var(--ink-2); }
.pv-h b { font-size: 19px; font-weight: 700; letter-spacing: -.3px; color: var(--ink); }
.pv-h small { font-size: 10px; color: var(--ink-3); }
.pv-h .old { color: var(--warn-t); font-weight: 600; }
.pv-row { display: grid; grid-template-columns: 58px 1fr auto; gap: 8px; align-items: center; }
.pv-row + .pv-row { margin-top: 6px; }
.pv-row b { font-size: 11.5px; font-weight: 650; white-space: nowrap; }
.pv-row em { font-style: normal; font-size: 11px; font-weight: 650; text-align: right; white-space: nowrap; }
.pv-row em small { font-weight: 500; color: var(--ink-3); }
.pv-row .bar { display: block; margin: 0; position: relative; overflow: visible; }
.pv-row .bar i { --sev: var(--ok); }
.pv-row[data-over="1"] .bar i { --sev: var(--warn); }
.pv-tick { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--ink-2); opacity: .55; }
.pv-split { margin: 1px 0 0 66px; font-size: 9.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-acc { margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--hair); }
.pv-acc .pv-top em { font-style: normal; font-size: 10.5px; font-weight: 650; color: var(--ok-t); }
.pv-a { display: grid; grid-template-columns: 76px 1fr 30px 66px; gap: 7px; align-items: center; margin-top: 6px; }
.pv-a b { font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 5px; }
.pv-a b i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: rgba(15,42,27,.2); }
.pv-a.on b i { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg); }
.pv-a.on b { font-weight: 700; }
.pv-a .bar { display: block; margin: 0; height: 5px; }
.pv-a em { font-style: normal; font-size: 10.5px; font-weight: 650; text-align: right; }
.pv-a span { font-size: 9.5px; color: var(--ink-3); text-align: right; white-space: nowrap; }
.pv-run { margin-top: 7px; font-size: 10.5px; color: var(--ink-2); }
.pv-run b { font-weight: 650; color: var(--ink); }
.pv-v { --v: var(--ok); --v-t: var(--ok-t); --v-bg: var(--ok-bg); display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; margin: 7px 0 8px; padding: 7px 9px; border-radius: 10px; background: var(--v-bg); }
.pv-v[data-v="tight"] { --v: var(--warn); --v-t: var(--warn-t); --v-bg: var(--warn-bg); }
.pv-v[data-v="short"] { --v: var(--high); --v-t: var(--high-t); --v-bg: var(--high-bg); }
.pv-v i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--v); color: #fff; }
.pv-v i svg { width: 14px; height: 14px; }
.pv-v b { display: block; font-size: 12.5px; font-weight: 700; color: var(--v-t); line-height: 1.25; }
.pv-v small { display: block; margin-top: 1px; font-size: 10px; color: var(--ink-2); line-height: 1.35; }
.pv-v small b { display: inline; font-size: inherit; font-weight: 650; color: var(--ink); }
.pv-tip { display: grid; grid-template-columns: auto 1fr; gap: 6px; align-items: baseline; margin-top: 6px; font-size: 10px; line-height: 1.35; color: var(--ink-2); }
.pv-tip b { font-size: 8.5px; font-weight: 750; letter-spacing: .6px; text-transform: uppercase; padding: 1px 5px; border-radius: 6px; color: var(--ok-t); background: var(--ok-bg); }
.pv-tip[data-save="1"] b { color: var(--warn-t); background: var(--warn-bg); }
.mode-compact .pv-split, .mode-compact .pv-a span, .mode-compact .pv-run, .mode-compact .pv-tip, .mode-compact .pv-v small + small { display: none; }
.mode-compact .pv-a { grid-template-columns: 76px 1fr 30px; }
.mode-compact .pv-h { margin-bottom: 6px; } .mode-compact .pv-h b { font-size: 16px; }
/* ---------- insights: next 7 days (forecast chart) and last 14 days (stats) ---------- */
#sec-ins { padding: 8px 12px 10px; }
.ix-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; border-radius: 10px; background: rgba(15,42,27,.07); }
.ix-tabs button { padding: 4px 0; border-radius: 8px; font-size: 9.5px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; color: var(--ink-3); transition: background .3s, color .3s, box-shadow .3s; }
.ix-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(0,30,12,.16); }
.ix-tabs button:disabled { opacity: .4; cursor: default; }
.ix-body { transition: opacity .14s ease; }
.ix-body.swap { opacity: 0; }
.ix-h { display: flex; align-items: baseline; gap: 4px; margin: 8px 0 4px; font-size: 10.5px; color: var(--ink-3); white-space: nowrap; }
.ix-h b { font-size: 17px; font-weight: 700; letter-spacing: -.3px; color: var(--ink); }
.ix-h small { font-size: 10px; overflow: hidden; text-overflow: ellipsis; }
.ix-h em { margin-left: auto; font-style: normal; font-size: 9.5px; font-weight: 650; padding: 1px 6px; border-radius: 6px; color: var(--ink-2); background: rgba(15,42,27,.07); }
.ix-chart { position: relative; margin: 0 -2px; }
.pvc { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--font); }
.pvc-grid { stroke: var(--hair); stroke-width: 1; }
.pvc-day { stroke: rgba(15,42,27,.13); stroke-width: 1; stroke-dasharray: 2 3; }
.pvc-ax { font-size: 8.5px; fill: var(--ink-3); }
.pvc-ax.now { fill: var(--ink); font-weight: 700; }
.pvc-g0 { stop-color: var(--ok); stop-opacity: .30; }
.pvc-g1 { stop-color: var(--ok); stop-opacity: .02; }
.pvc-u { fill: none; stroke: var(--ok); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.pvc-h { fill: none; stroke: var(--ink-3); stroke-width: 1.5; stroke-dasharray: 4 3; stroke-linejoin: round; }
.pvc-dry { fill: var(--high-bg); }
.pvc-hatch { fill: var(--warn); opacity: .45; }
.pvc-dot { fill: var(--ok); stroke: #fff; stroke-width: 1.5; }
.pvc-lbl { font-size: 9px; font-weight: 650; fill: var(--ink-2); }
.pvc-x { stroke: var(--ink-2); stroke-width: 1; opacity: .45; }
.pvc-ud { fill: var(--ok); stroke: #fff; stroke-width: 2; }
.pvc-hd { fill: var(--ink-3); stroke: #fff; stroke-width: 2; }
.pvc-bar { fill: var(--ok); opacity: .82; transition: opacity .15s; }
.pvc-bar.prev { opacity: .32; }
.pvc-bar.today { fill: var(--ok-bg); stroke: var(--ok); stroke-width: 1.2; opacity: 1; }
.pvc-bar.on { opacity: 1; }
.pvc-ref { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 3 3; opacity: .55; }
.pvc-lbl.ref { font-size: 8.5px; font-weight: 600; fill: var(--ink-3); }
.pvc-tip { position: absolute; top: 0; z-index: 3; pointer-events: none; padding: 5px 8px; border-radius: 9px; white-space: nowrap;
  background: rgba(255,255,255,.97); box-shadow: 0 6px 16px -6px rgba(0,30,12,.45), 0 0 0 1px rgba(15,42,27,.08); font-size: 10px; color: var(--ink-2); line-height: 1.4; }
.pvc-tip b { display: block; font-size: 10px; font-weight: 700; color: var(--ink); }
.pvc-tip span { display: flex; align-items: center; gap: 5px; }
.pvc-tip i { flex: none; width: 8px; height: 2px; border-radius: 2px; background: var(--ok); }
.pvc-tip [data-k="h"] i { background: var(--ink-3); }
.pvc-tip [data-k="r"] i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-2); }
.ix-leg { display: flex; flex-wrap: wrap; gap: 3px 10px; margin-top: 3px; font-size: 9.5px; color: var(--ink-3); }
.ix-leg span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.ix-leg i { width: 12px; height: 2px; border-radius: 2px; background: var(--ok); }
.ix-leg .h i { height: 0; background: none; border-top: 1.5px dashed var(--ink-3); }
.ix-leg .d i { width: 9px; height: 9px; border-radius: 2px; background: var(--high-bg); box-shadow: inset 0 0 0 1px rgba(217,64,47,.35); }
.ix-leg .dh i { width: 9px; height: 9px; border-radius: 2px; background: repeating-linear-gradient(45deg, rgba(227,154,0,.5) 0 2px, transparent 2px 4px); }
.ix-leg .b i, .ix-leg .bp i, .ix-leg .bt i { width: 7px; height: 9px; border-radius: 2px 2px 0 0; }
.ix-leg .bp i { opacity: .32; }
.ix-leg .bt i { background: var(--ok-bg); box-shadow: inset 0 0 0 1.2px var(--ok); }
.ix-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 7px; }
.ix-facts.k3 { grid-template-columns: 1fr 1fr 1fr; }
.ix-f { --f: rgba(15,42,27,.16); position: relative; min-width: 0; padding: 5px 7px 5px 9px; border-radius: 9px; background: rgba(255,255,255,.55); box-shadow: inset 0 0 0 1px rgba(15,42,27,.06); }
.ix-f::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2.5px; border-radius: 2px; background: var(--f); }
.ix-f[data-sev="ok"] { --f: var(--ok); } .ix-f[data-sev="warn"] { --f: var(--warn); } .ix-f[data-sev="high"] { --f: var(--high); }
.ix-f span { display: block; font-size: 8.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ix-f b { display: block; margin-top: 1px; font-size: 13px; font-weight: 700; letter-spacing: -.2px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ix-f small { display: block; font-size: 9px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k3 .ix-f { padding: 4px 6px 4px 8px; }
.k3 .ix-f b { font-size: 12px; }
.mode-compact .ix-facts, .mode-compact .ix-leg { display: none; }

#sec-offline { text-align: center; padding: 18px 12px; }
#sec-offline .orb { width: 34px; height: 34px; margin: 0 auto 8px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #c9d6ce);
  box-shadow: inset 0 -3px 6px rgba(15,42,27,.15), 0 4px 10px -4px rgba(0,30,12,.4); }
#sec-offline b { display: block; font-size: 13px; font-weight: 650; }
#sec-offline span { font-size: 10.5px; color: var(--ink-3); }
#sec-empty { text-align: center; padding: 16px 12px; color: var(--ink-3); font-size: 11px; }

/* ---------- settings ---------- */
#view-settings h3 { font-size: 13px; font-weight: 650; margin: 2px 2px 8px; }
.row { display: flex; align-items: center; justify-content: space-between; padding: 8px 4px; border-bottom: 1px solid var(--hair); cursor: pointer; }
.row:last-of-type { border-bottom: 0; }
.row span { font-size: 12px; font-weight: 550; }
.row small { display: block; font-size: 10px; font-weight: 400; color: var(--ink-3); }
.row input { position: absolute; opacity: 0; pointer-events: none; }
.tg { flex: none; width: 36px; height: 21px; border-radius: 21px; background: rgba(15,42,27,.18); position: relative; transition: background .35s; }
.tg::after { content: ""; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,.3); transition: transform .45s var(--ease); }
.row input:checked + .tg { background: var(--ok); }
.row input:checked + .tg::after { transform: translateX(15px); }
.row input:focus-visible + .tg { outline: 2px solid var(--ok-t); outline-offset: 2px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(15,42,27,.07); margin: 8px 0 10px; }
.seg button { padding: 6px 0; border-radius: 9px; font-size: 11.5px; font-weight: 600; color: var(--ink-2); transition: background .3s, color .3s, box-shadow .3s; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(0,30,12,.18); }
.done { width: 100%; padding: 8px 0; border-radius: 12px; font-weight: 650; font-size: 12px; color: #fff;
  background: linear-gradient(145deg, #2fb36d, #137a47); box-shadow: 0 6px 14px -6px rgba(19,122,71,.7), inset 0 1px 0 rgba(255,255,255,.35); transition: transform .3s var(--ease); }
.done:hover { transform: translateY(-1px); } .done:active { transform: scale(.98); }
.hint { margin-top: 8px; font-size: 9.5px; color: var(--ink-3); text-align: center; }
.grp { margin: 10px 4px 5px; font-size: 9px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; color: var(--ink-3); }
.grp:first-of-type { margin-top: 0; }

/* ---------- 1.7.0 budget cards (today's budget, run dry, burn order) and the extras ---------- */
#sec-budget, #sec-more { padding: 10px 12px; }
.bg-blk + .bg-blk { margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--hair); }
.bg-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.bg-top .m-cap { margin: 0; }
.bg-sum { font-size: 9.5px; color: var(--ink-3); white-space: nowrap; }
.bg-big { display: flex; align-items: baseline; gap: 7px; margin: 2px 0 5px; }
.bg-big b { font-size: 26px; font-weight: 750; letter-spacing: -.6px; line-height: 1.05; }
.bg-big small { font-size: 11.5px; font-weight: 650; color: var(--ok-t); }
.bg-bar { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.bg-bar .bar { display: block; margin: 0; height: 7px; }
.bg-bar em { font-style: normal; font-size: 10.5px; font-weight: 650; color: var(--ink-2); white-space: nowrap; }
.bg-bar[data-sev="warn"] + .bg-f, .bg-big:has(+ .bg-bar[data-sev="warn"]) small { color: var(--warn-t); }
.bg-f { margin-top: 5px; font-size: 10.5px; color: var(--ink-2); line-height: 1.35; }
.bg-f b { font-weight: 650; color: var(--ink); }
.bg-f.sm { font-size: 9.5px; color: var(--ink-3); }
.bg-f.warn { color: var(--warn-t); } .bg-f.warn b { color: var(--warn-t); }
.bg-co { margin-top: 6px; } .bg-co span { white-space: normal; line-height: 1.35; }
.bg-d { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: start; margin-top: 6px; }
.bg-d b { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; white-space: nowrap; min-width: 0; }
.bg-d b i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--sev); }
.bg-d b small { font-size: 9.5px; font-weight: 500; color: var(--ink-3); }
.bg-d em { font-style: normal; font-size: 11px; font-weight: 700; text-align: right; white-space: nowrap; }
.bg-d[data-sev="ok"] em { color: var(--ok-t); } .bg-d[data-sev="warn"] em { color: var(--warn-t); } .bg-d[data-sev="high"] em { color: var(--high-t); }
.bg-d em small { display: block; font-size: 9px; font-weight: 500; color: var(--ink-3); }
.bg-o { display: grid; grid-template-columns: 14px 78px 1fr 30px; column-gap: 6px; row-gap: 1px; align-items: center; margin-top: 7px; }
.bg-n { display: grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; font-size: 8.5px; font-weight: 750; color: var(--ink-2); background: rgba(15,42,27,.08); }
.bg-o b { font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bg-o b small { margin-left: 4px; padding: 0 4px; border-radius: 5px; font-size: 8px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--ok-t); background: var(--ok-bg); }
.bg-o.on .bg-n { color: #fff; background: var(--ok); }
.bg-o .bar { display: block; margin: 0; height: 5px; position: relative; overflow: visible; }
.bg-o .bar i { overflow: hidden; }
.bg-o em { font-style: normal; font-size: 10.5px; font-weight: 650; text-align: right; }
.bg-os { grid-column: 2 / -1; font-size: 9.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bg-os u { text-decoration: none; font-weight: 650; color: var(--warn-t); }
.bg-sw { grid-column: 2 / -1; justify-self: start; margin-top: 2px; padding: 2px 9px; border-radius: 7px; font-size: 9.5px; font-weight: 650; color: var(--ok-t); background: var(--ok-bg); box-shadow: inset 0 0 0 1px rgba(19,122,71,.18); transition: background .25s, transform .25s var(--ease); }
.bg-sw:hover { transform: translateY(-1px); } .bg-sw:disabled { opacity: .55; }
.ex-strip { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; margin-top: 6px; }
.ex-strip.rc { grid-template-columns: repeat(7, 1fr); }
.ex-d { position: relative; display: grid; justify-items: center; gap: 2px; min-width: 0; }
.ex-d em { font-style: normal; font-size: 8px; font-weight: 650; color: var(--ink-2); white-space: nowrap; }
.ex-d span { font-size: 8.5px; color: var(--ink-3); white-space: nowrap; }
.ex-d.now span { font-weight: 700; color: var(--ink); }
.ex-d u { position: absolute; top: 12px; right: 1px; width: 5px; height: 5px; border-radius: 50%; background: var(--warn); }
.ex-col { display: flex; align-items: flex-end; justify-content: center; gap: 1px; width: 100%; height: 34px; }
.ex-col i { display: block; width: 70%; max-width: 16px; border-radius: 3px 3px 1px 1px; background: var(--sev, var(--ok)); opacity: .85; }
.ex-col.two i { width: 42%; background: var(--ok); } .ex-col.two i.p { background: var(--ink-3); opacity: .35; }
.ex-g { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 6px; }
.ex-s { display: grid; grid-template-columns: 96px 1fr 44px; gap: 7px; align-items: center; margin-top: 5px; }
.ex-s b { font-size: 10.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-s .bar { display: block; margin: 0; height: 5px; } .ex-s .bar i { --sev: var(--ok); transition: transform .8s var(--ease); }
.ex-s em { font-style: normal; font-size: 10.5px; font-weight: 650; text-align: right; }
.ex-rc { display: grid; grid-template-columns: 30px 1fr; gap: 8px; align-items: center; margin-top: 6px; }
.ex-rc > b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; font-size: 16px; font-weight: 800; color: #fff; background: var(--ok); }
.ex-rc > b[data-g="C"] { background: var(--warn); } .ex-rc > b[data-g="D"] { background: var(--high); }
.ex-rc span { display: block; font-size: 10.5px; color: var(--ink-2); line-height: 1.3; } .ex-rc span b { font-weight: 650; color: var(--ink); }
.ex-rc small { display: block; margin-top: 1px; font-size: 9.5px; color: var(--ink-3); }
.ex-leg { display: flex; gap: 10px; margin-top: 3px; font-size: 9px; color: var(--ink-3); }
.ex-leg span { display: inline-flex; align-items: center; gap: 4px; } .ex-leg i { width: 7px; height: 8px; border-radius: 2px; background: var(--ok); } .ex-leg .p i { background: var(--ink-3); opacity: .35; }
.ex-u { display: grid; grid-template-columns: 6px 1fr; gap: 7px; align-items: center; margin-top: 4px; font-size: 10.5px; color: var(--ink-2); }
.ex-u i { width: 6px; height: 6px; border-radius: 50%; background: var(--warn); } .ex-u b { color: var(--ink); }
#sec-peak.hr-only { display: block; padding: 8px 12px; }
#sec-peak.hr-only .clock, #sec-peak.hr-only .hero-r, #sec-peak.hr-only .legend { display: none; }
#sec-peak.hr-only .hr { margin: 0; padding: 0; border-top: 0; }
.mode-compact .bg-f.sm, .mode-compact .bg-d em small, .mode-compact .bg-os, .mode-compact .bg-co { display: none; }
.mode-compact .bg-big b { font-size: 21px; }

#views > div { transition: opacity .22s ease; }
#views .out { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
}

.still *, .still *::before, .still *::after { animation: none !important; transition: none !important; }
.still .enter, .still #card { opacity: 1 !important; }
.still #card::after { display: none; }

html.z2 { zoom: 2; }

.no-breathe .glow { animation: none !important; }
.no-ping .hand i::after { animation: none !important; }
.no-all *, .no-all *::before, .no-all *::after { animation: none !important; }
