/* ==========================================================================
   Kinetic · widget styles, set 2 (finance, design, inputs, charts, health)
   ========================================================================== */
.kp-spin, .lg-spin { display: inline-block; width: 11px; height: 11px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: kspin .7s linear infinite; margin-right: 6px; }
@keyframes kspin { to { transform: rotate(360deg); } }

/* ---------------- send money ---------------- */
.w-keypad { padding: 14px; display: flex; flex-direction: column; }
.kp-h { display: flex; align-items: center; gap: 9px; }
.kp-av { width: 28px; height: 28px; border-radius: 50%; background: #FF7A45; color: #fff; font-size: 12px; font-weight: 650; display: grid; place-items: center; }
.kp-n { font-size: 12.5px; font-weight: 620; line-height: 1.2; }
.kp-amt { display: flex; justify-content: center; align-items: flex-start; margin-top: 10px; font-size: calc(36px * var(--num-scale)); line-height: 1.2; }
.kp-cur { font-size: .55em; margin: .18em 2px 0 0; color: var(--mu); }
.kp-bal { text-align: center; }
.kp-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 10px; }
.kp-k { --f: 0; height: 30px; border-radius: calc(9px * var(--rk)); font-family: var(--font-num); font-size: 15px; font-weight: 560; display: grid; place-items: center; color: var(--fg);
  background: color-mix(in oklab, var(--tx) calc(var(--f) * 100%), transparent); }
.kp-k:hover { box-shadow: inset 0 0 0 1px var(--ln); }
.kp-send { --r: 0; --sk: 0; margin-top: auto; height: 34px; border-radius: calc(11px * var(--rk)); font-size: 12px; font-weight: 650; display: flex; align-items: center; justify-content: center;
  background: color-mix(in oklab, var(--ok) calc(var(--sk) * 100%), color-mix(in oklab, var(--acc) calc(var(--r) * 100%), var(--s2)));
  color: color-mix(in oklab, #fff calc(var(--sk) * 100%), color-mix(in oklab, var(--acc-ink) calc(var(--r) * 100%), var(--mu))); }

/* ---------------- card wallet ---------------- */
.w-cards { padding: 12px; display: flex; flex-direction: column; }
.cw-stack { position: relative; height: 136px; }
.cw-card { position: absolute; left: 37px; top: 0; width: 192px; height: 118px; border-radius: calc(14px * var(--rk)); padding: 12px 14px; color: #fff; overflow: hidden; cursor: grab; transform-origin: 50% 0;
  box-shadow: 0 10px 24px rgba(10,10,20,.22), inset 0 1px 0 rgba(255,255,255,.18); }
.cw-shine { position: absolute; top: -30%; bottom: -30%; left: 0; width: 56px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent); pointer-events: none; }
.cw-top { display: flex; justify-content: space-between; align-items: center; }
.cw-chip { width: 26px; height: 19px; border-radius: 5px; background: linear-gradient(135deg, #f6dc98, #c49a43); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.cw-brand { font-size: 11px; font-weight: 750; letter-spacing: .05em; opacity: .9; }
.cw-num { margin-top: 22px; font-size: 11px; letter-spacing: .06em; font-family: var(--font-mono); opacity: .95; white-space: nowrap; }
.cw-bot { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: 8.5px; letter-spacing: .08em; opacity: .8; }
.cw-net { margin-left: auto; display: flex; }
.cw-net i { width: 16px; height: 16px; border-radius: 50%; background: rgba(255,255,255,.55); }
.cw-net i + i { margin-left: -7px; background: rgba(255,255,255,.3); }
.cw-info { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; padding: 0 4px; }
.cw-bal { font-size: calc(18px * var(--num-scale)); line-height: 1.2; }
.cw-dots { display: flex; gap: 4px; margin-bottom: 7px; }
.cw-dots i { width: calc(6px + var(--p, 0) * 10px); height: 6px; border-radius: 3px; background: color-mix(in oklab, var(--fg) calc(22% + var(--p, 0) * 78%), transparent); }

/* ---------------- budget ---------------- */
.w-budget { padding: 13px 12px 12px; display: flex; flex-direction: column; align-items: center; }
.bd-h { align-self: stretch; display: flex; justify-content: space-between; align-items: baseline; padding: 0 3px; }
.bd-ring { position: relative; width: 112px; height: 112px; margin-top: 8px; }
.bd-s { fill: none; stroke-width: 12; cursor: pointer; pointer-events: stroke; }
.bd-c { position: absolute; inset: 22px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; }
.bd-v { font-size: calc(17px * var(--num-scale)); line-height: 1.2; }
.bd-l, .bd-sub { font-size: 9.5px; }
.bd-leg { display: flex; gap: 9px; margin-top: auto; font-size: 9.5px; color: var(--mu); font-weight: 550; }
.bd-leg span { display: flex; align-items: center; gap: 4px; }
.bd-leg i { width: 6px; height: 6px; border-radius: 50%; }

/* ---------------- transactions ---------------- */
.w-txns { padding: 12px; display: flex; flex-direction: column; }
.tx-h { display: flex; align-items: center; justify-content: space-between; height: 22px; padding: 0 2px; }
.tx-tabs { position: relative; display: flex; background: var(--s2); border-radius: calc(8px * var(--rk)); padding: 2px; }
.tx-tabs button { position: relative; width: 34px; height: 18px; font-size: 10px; font-weight: 650; color: color-mix(in oklab, var(--fg) calc(var(--p, 0) * 100%), var(--mu)); }
.tx-pill { position: absolute; left: 2px; top: 2px; width: 34px; height: 18px; border-radius: calc(6px * var(--rk)); background: var(--s1); box-shadow: 0 1px 2px rgba(0,0,0,.08), var(--hair); }
.tx-list { position: relative; flex: 1; margin-top: 8px; overflow: hidden; }
.tx { --hl: 0; position: absolute; left: 0; right: 0; top: 0; height: 34px; display: flex; align-items: center; gap: 9px; padding: 0 10px; border-radius: calc(10px * var(--rk));
  background: color-mix(in oklab, var(--tx) calc(var(--hl) * 100%), var(--s1)); }
.tx-ic { width: 22px; height: 22px; border-radius: calc(7px * var(--rk)); display: grid; place-items: center; color: #fff; font-size: 10.5px; font-weight: 700; flex: none; }
.tx-t { flex: 1; min-width: 0; line-height: 1.2; }
.tx-t b { display: block; font-size: 11px; font-weight: 620; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-t span { font-size: 9.5px; color: var(--mu); }
.tx-v { font-size: 11.5px; font-weight: 620; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tx-v.in { color: var(--ok); }

/* ---------------- currency converter ---------------- */
.w-fx { padding: 12px; }
.fx-r { position: absolute; left: 12px; right: 12px; top: 12px; height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 14px 0 11px; border-radius: calc(12px * var(--rk)); }
.fx-fl { width: 22px; height: 22px; border-radius: 50%; color: #fff; font-size: 8.5px; font-weight: 750; display: grid; place-items: center; flex: none; }
.fx-c { font-size: 12px; font-weight: 650; }
.fx-in { flex: 1; min-width: 0; border: 0; outline: 0; background: none; padding: 0; text-align: right; font-size: calc(17px * var(--num-scale)); color: var(--fg); display: none; }
.fx-out { margin-left: auto; font-size: calc(17px * var(--num-scale)); color: var(--fg2); display: inline-flex; }
.fx-r.from .fx-in { display: block; }
.fx-r.from .fx-out { display: none; }
.fx-r.from { box-shadow: var(--sh1), inset 0 0 0 1px color-mix(in oklab, var(--acc) 0%, transparent); }
.fx-r.from:focus-within { box-shadow: var(--sh1), 0 0 0 1.5px var(--acc); }
.fx-sw { position: absolute; right: 34px; top: 59px; z-index: 2; width: 28px; height: 28px; border-radius: 50%; background: var(--acc); color: var(--acc-ink); display: grid; place-items: center;
  box-shadow: 0 0 0 4px var(--s0), 0 4px 10px color-mix(in oklab, var(--acc) 35%, transparent); }
.fx-rate { position: absolute; left: 15px; bottom: 13px; display: flex; align-items: center; gap: 3px; }
.fx-rv { color: var(--fg2); }

/* ---------------- split ---------------- */
.w-split { padding: 14px; display: flex; flex-direction: column; }
.sp-avs { position: relative; height: 30px; margin-top: 12px; }
.sp-av { position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; color: #fff; font-size: 11.5px; font-weight: 650; display: grid; place-items: center; box-shadow: 0 0 0 2.5px var(--s0); }
.sp-ft { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; }
.sp-v { font-size: calc(20px * var(--num-scale)); line-height: 1.2; }
.sp-st { display: flex; align-items: center; gap: 2px; background: var(--s1); box-shadow: var(--sh1); border-radius: calc(10px * var(--rk)); padding: 3px; margin-bottom: 2px; }
.sp-st button { width: 22px; height: 22px; border-radius: calc(7px * var(--rk)); display: grid; place-items: center; }
.sp-st button:hover { background: var(--s2); }
.sp-n { min-width: 14px; justify-content: center; font-size: 12.5px; }

/* ---------------- savings goal ---------------- */
.w-goal { padding: 14px; display: flex; flex-direction: column; }
.gl-h { display: flex; align-items: center; gap: 7px; }
.gl-ic { width: 22px; height: 22px; border-radius: calc(7px * var(--rk)); background: var(--tx); color: var(--acc); display: grid; place-items: center; }
.gl-v { display: flex; align-items: baseline; gap: 5px; margin-top: 12px; }
.gl-n { font-size: calc(20px * var(--num-scale)); line-height: 1.2; }
.gl-bar { position: relative; height: 8px; border-radius: 4px; background: var(--s2); margin-top: 6px; overflow: hidden; }
.gl-f { position: absolute; inset: 0; border-radius: 4px; background: linear-gradient(90deg, var(--acc2), var(--acc)); transform-origin: 0 50%; }
.gl-t { position: absolute; top: 2px; width: 2px; height: 4px; border-radius: 1px; background: color-mix(in oklab, var(--s0) 70%, transparent); }
.gl-ft { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.gl-add { height: 24px; padding: 0 9px; border-radius: 12px; background: var(--acc); color: var(--acc-ink); font-size: 10.5px; font-weight: 650; }
.gl-conf { position: absolute; left: 50%; top: 58%; pointer-events: none; }
.gl-conf i { position: absolute; width: 5px; height: 8px; border-radius: 1.5px; opacity: 0; background: var(--acc); }
.gl-conf i:nth-child(3n+1) { background: #F2C14E; } .gl-conf i:nth-child(3n+2) { background: #FF7A45; width: 6px; height: 6px; border-radius: 50%; }

/* ---------------- credit score ---------------- */
.w-gauge { padding: 13px 12px; display: flex; flex-direction: column; cursor: pointer; }
.ga-h { display: flex; justify-content: space-between; align-items: center; padding: 0 3px; }
.ga-w { position: relative; width: 140px; height: 80px; margin: 12px auto 0; }
.ga-tr { fill: none; stroke: var(--s2); stroke-width: 10; stroke-linecap: round; }
.ga-fg { fill: none; stroke-width: 10; stroke-linecap: round; }
.ga-k { fill: #fff; stroke: var(--fg); stroke-width: 2.5; }
.ga-c { position: absolute; left: 0; right: 0; bottom: -8px; display: flex; flex-direction: column; align-items: center; }
.ga-v { font-size: calc(28px * var(--num-scale)); line-height: 1; font-family: var(--font-num); font-weight: var(--num-w); letter-spacing: var(--num-ls); font-variant-numeric: tabular-nums; }
.ga-b { font-size: 11px; font-weight: 650; color: var(--ok); margin-top: 3px; }

/* ---------------- layers ---------------- */
.w-layers { padding: 13px 12px; display: flex; flex-direction: column; }
.ly-h { display: flex; justify-content: space-between; align-items: baseline; padding: 0 3px; }
.ly-p { position: relative; margin-top: 9px; height: 133px; border-radius: calc(12px * var(--rk)); }
.ly-hi { position: absolute; left: 4px; right: 4px; top: 4px; height: 25px; border-radius: calc(7px * var(--rk)); background: var(--tx); }
.ly-r { --v: 1; --l: 0; position: absolute; left: 4px; right: 4px; top: 4px; height: 25px; display: flex; align-items: center; gap: 7px; padding: 0 4px 0 calc(8px + var(--ind) * 14px);
  border-radius: calc(7px * var(--rk)); font-size: 11px; font-weight: 540; cursor: grab; user-select: none;
  background: color-mix(in oklab, var(--s1) calc(var(--l) * 100%), transparent);
  box-shadow: 0 calc(var(--l) * 6px) calc(var(--l) * 16px) rgba(20,20,40, calc(var(--l) * .16)); }
.ly-r.on { color: var(--acc); font-weight: 620; }
.ly-ic { color: var(--mu); display: grid; opacity: calc(.35 + .65 * var(--v)); }
.ly-r.on .ly-ic { color: var(--acc); }
.ly-n { flex: 1; white-space: nowrap; opacity: calc(.4 + .6 * var(--v)); }
.ly-eye { position: relative; width: 22px; height: 22px; display: grid; place-items: center; color: var(--mu); opacity: calc(1 - var(--v) * .7); }
.ly-r:hover .ly-eye { opacity: 1; }
.ly-eye span { grid-area: 1 / 1; display: grid; }
.ly-eye .e1 { opacity: var(--v); } .ly-eye .e0 { opacity: calc(1 - var(--v)); }

/* ---------------- design canvas ---------------- */
.w-canvas { padding: 12px; display: flex; flex-direction: column; }
.cv-a { position: relative; height: 170px; border-radius: calc(12px * var(--rk)); overflow: hidden;
  background-color: var(--s1); background-image: radial-gradient(circle, color-mix(in oklab, var(--fg) 14%, transparent) 1px, transparent 1.3px); background-size: 12px 12px; }
.cv-o { position: absolute; left: 0; top: 0; display: grid; place-items: center; cursor: move; user-select: none; }
.cv-rect { border-radius: calc(10px * var(--rk)); background: var(--acc); color: var(--acc-ink); font-size: 11.5px; font-weight: 650; white-space: nowrap; overflow: hidden; box-shadow: 0 4px 12px color-mix(in oklab, var(--acc) 30%, transparent); }
.cv-circ { border-radius: 50%; background: radial-gradient(circle at 30% 28%, var(--acc3), var(--acc2) 55%, var(--acc)); }
.cv-txt { place-items: center start; font-family: var(--font-num); font-weight: var(--num-w); font-size: 20px; letter-spacing: var(--num-ls); color: var(--fg); white-space: nowrap; }
.cv-sel { position: absolute; left: 0; top: 0; border: 1.5px solid var(--acc); border-radius: 2px; pointer-events: none; }
.cv-sel i { position: absolute; width: 8px; height: 8px; background: #fff; border: 1.5px solid var(--acc); border-radius: 2px; }
.cv-sel .h0 { left: -5px; top: -5px; } .cv-sel .h1 { right: -5px; top: -5px; }
.cv-sel .h2 { right: -5px; bottom: -5px; pointer-events: auto; cursor: nwse-resize; } .cv-sel .h3 { left: -5px; bottom: -5px; }
.cv-dim { position: absolute; left: 50%; top: calc(100% + 6px); transform: translateX(-50%); padding: 1px 6px; border-radius: 5px; background: var(--acc); color: var(--acc-ink); font-size: 9.5px; font-weight: 600; letter-spacing: 0; white-space: nowrap; }
.cv-cur { position: absolute; left: 0; top: 0; z-index: 5; display: flex; color: #FF7A45; pointer-events: none; }
.cv-cur svg { margin: -2px 0 0 -2px; }
.cv-cur b { margin: 12px 0 0 -3px; padding: 1px 5px; border-radius: 5px; background: #FF7A45; color: #fff; font-size: 9px; font-weight: 650; }
.cv-tools { position: relative; display: flex; align-items: center; margin-top: auto; height: 28px; padding: 0 2px; }
.cv-tp { position: absolute; left: 2px; top: 0; width: 28px; height: 28px; border-radius: calc(8px * var(--rk)); background: var(--s1); box-shadow: var(--sh1); }
.cv-t { position: relative; width: 28px; height: 28px; display: grid; place-items: center; color: color-mix(in oklab, var(--acc) calc(var(--p, 0) * 100%), var(--mu)); }
.cv-z { margin-left: auto; padding-right: 4px; }

/* ---------------- weekly bars ---------------- */
.w-bars { padding: 13px 12px 10px; display: flex; flex-direction: column; }
.br-h { display: flex; justify-content: space-between; align-items: center; padding-left: 2px; }
.br-tabs { position: relative; display: flex; }
.br-tabs button { position: relative; width: 22px; height: 18px; font-size: 10px; font-weight: 650; color: color-mix(in oklab, var(--acc) calc(var(--p, 0) * 100%), var(--mu)); }
.br-pill { position: absolute; left: 0; top: 0; width: 22px; height: 18px; border-radius: calc(6px * var(--rk)); background: var(--tx); }
.br-v { display: flex; align-items: center; gap: 8px; margin-top: 4px; padding-left: 2px; }
.br-n { font-size: calc(22px * var(--num-scale)); line-height: 1.2; }
.br-g { flex: 1; display: flex; align-items: flex-end; gap: 7px; margin-top: 4px; }
.br-c { --d: 1; position: relative; flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.br-b { display: block; width: 100%; height: 62px; border-radius: calc(5px * var(--rk)); background: linear-gradient(180deg, var(--acc2), var(--acc)); transform-origin: 50% 100%; opacity: calc(.3 + .7 * var(--d)); }
.br-l { margin-top: 5px; font-size: 9.5px; font-weight: 600; color: var(--mu); line-height: 12px; }
.br-tip { position: absolute; bottom: 21px; padding: 1px 5px; border-radius: 5px; background: var(--fg); color: var(--s0); font-size: 9.5px; white-space: nowrap; opacity: 0; pointer-events: none; z-index: 2; }

/* ---------------- activity heatmap ---------------- */
.w-heatmap { padding: 13px 12px; display: flex; flex-direction: column; }
.hm-h { display: flex; align-items: baseline; gap: 8px; padding: 0 2px; }
.hm-lg { margin-left: auto; display: flex; align-items: center; gap: 2px; font-size: 9px; color: var(--mu); }
.hm-lg i { margin: 0 1px; }
.hm-w { position: relative; width: 264px; height: 75px; margin-top: 10px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px); mask-image: linear-gradient(90deg, transparent, #000 14px); }
.hm-g { display: flex; gap: 2px; width: max-content; }
.hm-c { display: flex; flex-direction: column; gap: 2px; }
.hm-c i, .hm-lg i { display: block; width: 9px; height: 9px; border-radius: calc(2.5px * var(--rk)); background: color-mix(in oklab, var(--acc) calc(var(--l, 0) * 24%), var(--s2)); }
.hm-c i { cursor: crosshair; }
.hm-m { display: flex; justify-content: space-between; margin-top: 6px; padding: 0 4px 0 14px; font-size: 9.5px; color: var(--mu); font-weight: 550; }
.hm-tip { position: absolute; left: 12px; top: 41px; z-index: 3; padding: 2px 7px; border-radius: 6px; background: var(--fg); color: var(--s0); font-size: 9.5px; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }

/* ---------------- settings toggles ---------------- */
.w-toggles { padding: 10px; }
.tg { height: 100%; border-radius: calc(14px * var(--rk)); display: flex; flex-direction: column; padding: 0 4px; }
.tg-r { --p: 0; flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 8px; text-align: left; }
.tg-r + .tg-r { border-top: 1px solid var(--ln); }
.tg-ic { width: 26px; height: 26px; flex: none; border-radius: calc(8px * var(--rk)); display: grid; place-items: center;
  background: color-mix(in oklab, var(--acc) calc(var(--p) * 100%), var(--s2)); color: color-mix(in oklab, var(--acc-ink) calc(var(--p) * 100%), var(--mu)); }
.tg-t { flex: 1; min-width: 0; line-height: 1.25; }
.tg-t b { display: block; font-size: 11.5px; font-weight: 620; }
.tg-t span { font-size: 9.5px; color: var(--mu); }
.tg-sw { position: relative; width: 36px; height: 22px; flex: none; border-radius: 11px; background: color-mix(in oklab, var(--acc) calc(var(--p) * 100%), var(--s2)); }
.tg-sw i { position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); }

/* ---------------- rotary knob ---------------- */
.w-knob { display: flex; flex-direction: column; align-items: center; padding-top: 12px; }
.kn-w { position: relative; width: 132px; height: 132px; display: grid; place-items: center; }
.kn-ring { position: absolute; inset: 0; }
.kn-ring i { --on: 0; position: absolute; left: 50%; top: 50%; width: 3px; height: 8px; margin: -4px 0 0 -1.5px; border-radius: 2px; background: color-mix(in oklab, var(--acc) calc(var(--on) * 100%), var(--mu2)); }
.kn { position: relative; width: 88px; height: 88px; border-radius: 50%; cursor: ns-resize;
  background: radial-gradient(circle at 35% 28%, color-mix(in oklab, var(--s1) 70%, #fff), var(--s1) 55%, color-mix(in oklab, var(--s1) 90%, #000));
  box-shadow: 0 8px 18px rgba(20,20,30,.16), 0 2px 4px rgba(20,20,30,.1), inset 0 1px 0 rgba(255,255,255,.5); }
.kn-ind { position: absolute; left: 50%; top: 9px; width: 4px; height: 14px; margin-left: -2px; border-radius: 2px; background: var(--acc); }
.kn-v { display: flex; gap: 6px; align-items: baseline; margin-top: 6px; }
.kn-n { font-size: 13px; }

/* ---------------- star rating ---------------- */
.w-rating { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; }
.rt-s { display: flex; gap: 3px; }
.rt-b { position: relative; width: 27px; height: 27px; display: grid; place-items: center; color: var(--mu2); }
.rt-b span { grid-area: 1 / 1; display: grid; place-items: center; }
.rt-f { color: var(--warn); transform: scale(0); }
.rt-t { display: flex; align-items: baseline; gap: 4px; }
.rt-avg { font-size: 15px; }

/* ---------------- sign-in form ---------------- */
.w-login { padding: 14px; display: flex; flex-direction: column; }
.lg-f { --e: 0; position: relative; display: flex; flex-direction: column; justify-content: center; height: 40px; margin-top: 8px; padding: 0 36px 0 11px; border-radius: calc(11px * var(--rk)); cursor: text;
  box-shadow: var(--sh1), inset 0 0 0 calc(var(--e) * 1.6px) var(--bad); }
.lg-h + .lg-f { margin-top: 12px; }
.lg-f:focus-within { box-shadow: var(--sh1), 0 0 0 1.5px var(--acc), 0 0 0 4.5px color-mix(in oklab, var(--acc) 16%, transparent); }
.lg-l { font-size: 9px; font-weight: 650; color: var(--mu); letter-spacing: .03em; text-transform: uppercase; }
.lg-f input { width: 100%; margin-top: 1px; padding: 0; border: 0; outline: 0; background: none; font-size: 12px; color: var(--fg); }
.lg-f input::placeholder { color: var(--mu2); }
.lg-eye { --s: 0; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; display: grid; place-items: center; color: var(--mu); }
.lg-eye span { grid-area: 1 / 1; display: grid; }
.lg-eye .e1 { opacity: calc(1 - var(--s)); } .lg-eye .e0 { opacity: var(--s); }
.lg-go { --sk: 0; margin-top: auto; height: 34px; border-radius: calc(11px * var(--rk)); font-size: 12px; font-weight: 650; display: flex; align-items: center; justify-content: center;
  background: color-mix(in oklab, var(--ok) calc(var(--sk) * 100%), var(--fg)); color: color-mix(in oklab, #fff calc(var(--sk) * 100%), var(--s0)); }

/* ---------------- onboarding stepper ---------------- */
.w-stepper { padding: 14px 18px; display: flex; flex-direction: column; }
.stp-h { display: flex; justify-content: space-between; align-items: baseline; }
.stp-r { display: flex; align-items: center; margin-top: auto; }
.stp-d { --d: 0; --c: 0; position: relative; width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--acc-ink);
  background: color-mix(in oklab, var(--acc) calc(var(--d) * 100%), var(--s1)); }
.stp-d::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--acc) calc(var(--c) * 100%), var(--ln)); }
.stp-d svg { position: absolute; }
.stp-f { display: none; }
.stp-i { font-size: 10.5px; font-weight: 650; color: color-mix(in oklab, var(--acc) calc(var(--c) * 100%), var(--mu)); opacity: calc(1 - var(--d)); }
.stp-ln { flex: 1; height: 3px; margin: 0 6px; border-radius: 2px; background: var(--s2); overflow: hidden; }
.stp-ln i { display: block; height: 100%; background: var(--acc); transform-origin: 0 50%; transform: scaleX(0); }
.stp-l { display: flex; justify-content: space-between; margin-top: 7px; font-size: 9.5px; font-weight: 600; }
.stp-l span { width: 24px; display: flex; justify-content: center; white-space: nowrap; color: color-mix(in oklab, var(--fg) calc(var(--p, 0) * 100%), var(--mu)); }

/* ---------------- heart rate ---------------- */
.w-heart { padding: 14px; display: flex; flex-direction: column; cursor: pointer; }
.hr-h { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; }
.hr-ic { color: #FF4D6A; display: grid; }
.hr-m { margin-left: auto; }
.hr-v { display: flex; align-items: baseline; gap: 6px; margin-top: 6px; }
.hr-n { font-size: calc(34px * var(--num-scale)); line-height: 1.15; }
.hr-svg { margin-top: auto; overflow: visible; color: #FF4D6A; }
.hr-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.hr-dot { fill: #FF4D6A; }
.hr-glow { fill: #FF4D6A; opacity: .2; }

/* ---------------- sleep stages ---------------- */
.w-sleep { padding: 13px 13px 12px; display: flex; flex-direction: column; }
.zz-h { display: flex; justify-content: space-between; align-items: flex-start; padding: 0 2px; }
.zz-score { position: relative; width: 40px; height: 40px; display: grid; place-items: center; }
.zz-score svg { position: absolute; inset: 0; }
.zz-tr { fill: none; stroke: var(--s2); stroke-width: 3.5; }
.zz-fg { fill: none; stroke: var(--acc); stroke-width: 3.5; stroke-linecap: round; }
.zz-sv { font-size: 12px; }
.zz-v { display: flex; align-items: baseline; gap: 8px; margin-top: -4px; padding: 0 2px; }
.zz-dur { font-size: calc(22px * var(--num-scale)); line-height: 1.2; }
.zz-ch { position: relative; display: flex; gap: 8px; margin-top: auto; height: 58px; }
.zz-rows { display: flex; flex-direction: column; justify-content: space-between; width: 28px; font-size: 8.5px; font-weight: 600; color: var(--mu); }
.zz-rows span { height: 12px; line-height: 12px; }
.zz-bars { position: relative; flex: 1; cursor: pointer; }
.zz-bars i { position: absolute; height: 12px; border-radius: calc(4px * var(--rk)); }
.zz-ph { position: absolute; left: 36px; top: -4px; bottom: -4px; width: 2px; border-radius: 1px; background: var(--fg); opacity: 0; pointer-events: none; }
.zz-tip { position: absolute; left: 0; top: 0; z-index: 3; padding: 2px 7px; border-radius: 6px; background: var(--fg); color: var(--s0); font-size: 9.5px; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }

/* ---------------- hydration ---------------- */
.w-water { padding: 13px 14px; display: flex; flex-direction: column; align-items: center; }
.wt-h { align-self: stretch; display: flex; align-items: center; gap: 7px; }
.wt-ic { width: 22px; height: 22px; border-radius: calc(7px * var(--rk)); background: var(--tx); color: var(--acc); display: grid; place-items: center; }
.wt-gl { margin-top: 8px; cursor: pointer; }
.wt-gl svg { overflow: visible; }
.wt-bg { fill: color-mix(in oklab, var(--s1) 55%, transparent); }
.wt-o { fill: none; stroke: color-mix(in oklab, var(--fg) 20%, transparent); stroke-width: 2; }
.wt-clip { isolation: isolate; }
.wt-w1 { fill: var(--acc); opacity: .9; }
.wt-w2 { fill: var(--acc2); opacity: .55; }
.wt-b { fill: #fff; }
.wt-ft { align-self: stretch; display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; }
.wt-v { font-size: calc(17px * var(--num-scale)); line-height: 1.2; }
.wt-add { height: 24px; padding: 0 8px; border-radius: 12px; background: var(--acc); color: var(--acc-ink); font-size: 10.5px; font-weight: 650; margin-bottom: 2px; }

/* ---------------- habits ---------------- */
.w-habit { padding: 13px 12px; display: flex; flex-direction: column; }
.hb-h { display: flex; justify-content: space-between; align-items: center; padding: 0 2px; }
.hb-s { display: flex; align-items: baseline; gap: 4px; }
.hb-fl { color: #FF7A45; display: grid; align-self: center; }
.hb-n { font-size: 13px; }
.hb-b { display: flex; margin-top: auto; }
.hb-names { display: flex; flex-direction: column; padding-top: 18px; width: 73px; }
.hb-names span { height: 26px; display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 560; white-space: nowrap; }
.hb-names svg { color: var(--mu); }
.hb-win { width: 133px; overflow: hidden; }
.hb-strip { width: 152px; }
.hb-days { display: flex; height: 18px; }
.hb-days span { width: 19px; text-align: center; font-size: 9.5px; font-weight: 650; color: var(--mu); }
.hb-row { display: flex; height: 26px; align-items: center; }
.hb-d { --p: 0; position: relative; width: 19px; height: 19px; flex: none; display: grid; place-items: center; color: var(--acc-ink); }
.hb-f { position: absolute; inset: 1.5px; border-radius: 50%; background: color-mix(in oklab, var(--acc) calc(var(--p) * 100%), var(--s2)); transform: scale(calc(.82 + .18 * var(--p))); }
.hb-d svg { position: relative; }
.hb-d.today .hb-f { box-shadow: 0 0 0 1.5px color-mix(in oklab, var(--acc) calc((1 - var(--p)) * 100%), transparent); }

/* ---------------- breathing ---------------- */
.w-breathe { --run: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; }
.bz-w { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.bz-ring { position: absolute; inset: 0; }
.bz-tr { fill: none; stroke: color-mix(in oklab, var(--fg) 10%, transparent); stroke-width: 2; }
.bz-fg { fill: none; stroke: var(--acc2); stroke-width: 2; stroke-linecap: round; }
.bz-pet { position: relative; width: 0; height: 0; opacity: calc(.55 + .45 * var(--run)); }
.bz-pet i { position: absolute; left: -23px; top: -23px; width: 46px; height: 46px; border-radius: 50%; background: color-mix(in oklab, var(--acc2) 70%, transparent); mix-blend-mode: screen; }
.bz-pet i:nth-child(even) { background: color-mix(in oklab, var(--acc3) 55%, transparent); }
:root[data-mode="dark"] .tone-ink .bz-pet i { mix-blend-mode: multiply; }
.bz-l { margin-top: 14px; font-size: 13.5px; font-weight: 620; letter-spacing: -0.015em; }
.bz-c { margin-top: 2px; }

/* ---------------- weather ---------------- */
.w-weather { padding: 13px 12px 12px; display: flex; flex-direction: column; }
.wx-top { display: flex; justify-content: space-between; align-items: flex-start; padding: 0 2px; }
.wx-city { font-size: 12.5px; font-weight: 620; }
.wx-mid { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 0 2px; }
.wx-t { font-size: calc(40px * var(--num-scale)); line-height: 1.15; }
.wx-big { position: relative; width: 58px; height: 50px; }
.wx-sun { position: absolute; left: 9px; top: 4px; width: 40px; height: 40px; display: grid; place-items: center; }
.wx-core { position: absolute; width: 20px; height: 20px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 14px color-mix(in oklab, var(--warn) 55%, transparent); }
.wx-sun b { position: absolute; left: 50%; top: 50%; width: 3px; height: 6px; margin: -3px 0 0 -1.5px; border-radius: 2px; background: var(--warn); }
.wx-cl { position: absolute; left: 9px; top: 6px; display: grid; color: var(--mu); }
.wx-cl svg { fill: var(--s0); }
.wx-rain { position: absolute; left: 22px; top: 38px; }
.wx-rain i { position: absolute; width: 2px; height: 7px; border-radius: 1px; background: var(--acc2); }
.wx-hrs { position: relative; display: flex; margin-top: auto; height: 62px; border-radius: calc(12px * var(--rk)); }
.wx-hi { position: absolute; left: 0; top: 0; bottom: 0; width: calc(100% / 6); border-radius: calc(12px * var(--rk)); background: var(--tx); }
.wx-h { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 9.5px; color: color-mix(in oklab, var(--acc) calc(var(--p, 0) * 100%), var(--mu)); }
.wx-h > span:first-child { font-weight: 600; }
.wx-h b { font-size: 11px; color: color-mix(in oklab, var(--acc) calc(var(--p, 0) * 100%), var(--fg)); }
.wx-pt { position: relative; display: flex; align-items: center; height: 14px; }
.wx-pt svg:first-child { color: var(--warn); margin: -5px -6px 0 0; }

/* roll/swap set inline display; keep these stacked */
.cw-name, .wt-g { display: grid; }
.cw-bal, .wt-v { display: flex; }
