/* =====================================================================
   Helder app -- the same look as gohelder.com and /access: chocolate
   page with a warm glow, cream type, peach for the one thing to press,
   soft glass cards with no outlines and no hard edges.
   ===================================================================== */
:root{
  --roast:#20160F; --page:#20160F; --deep:#160E09; --espresso:#2A1E15; --raised:#2E2219;
  --cream:#FBF6EE; --sand:#F3EBDE; --peach:#D99E76; --peach-hover:#E7B18C; --peach-soft:#F2C3A0; --copper-dot:#B47552;
  --taupe:#B2A091; --text-2:#D8CBBC; --text-3:#B2A091; --error:#F0A296;
  --field-line:rgba(251,246,238,.26);

  /* Modes, one copper hue stepped by intensity: colder reads brighter. */
  --m-relax:#A8694A; --m-focus:#D99E76; --m-hyper:#F6D3B5;

  --hair:rgba(255,240,225,.08);
  /* the site's cards: a soft lift of cream, a highlight along the top edge, no outline */
  --card:linear-gradient(180deg,rgba(251,246,238,.075) 0%,rgba(251,246,238,.035) 100%);
  --card-hi:inset 0 1px 0 rgba(255,255,255,.06);
  --well:rgba(251,246,238,.05);
  --ease:cubic-bezier(.2,.8,.2,1);
  /* a critically damped spring (Apple's default: damping 1, no overshoot) as an easing curve;
     the duration is 1.47 x the spring's response */
  --spring:var(--ease);
  --font:'Albert Sans',system-ui,-apple-system,'Segoe UI',sans-serif;
  --top-h:64px;
  color-scheme:dark;
}
@supports (transition-timing-function:linear(0,1)){
  :root{--spring:linear(0,.015 2%,.053 4%,.107 6%,.169 8%,.236 10%,.337 13%,.434 16%,.551 20%,.649 24%,.73 28%,.808 33%,.865 38%,.913 44%,.944 50%,.968 57%,.983 65%,.992 74%,.997 85%,1)}
}
*,*::before,*::after{box-sizing:border-box}
html,body{margin:0}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;background:var(--page)}
body{
  min-height:100vh;min-height:100dvh;background:var(--page);color:var(--cream);
  font-family:var(--font);font-size:16px;line-height:1.45;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;
  -webkit-tap-highlight-color:transparent;overflow-x:hidden;
}
a{color:inherit;text-decoration:none}
img,svg{display:block;max-width:100%}
button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation}
button:disabled{cursor:default}
h1,h2,h3,p{margin:0}
[hidden]{display:none!important}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
:focus{outline:none}
/* a ring for what the keyboard is on; never around a pop-up the app itself moves focus into */
:focus-visible:not([tabindex="-1"]){outline:none;box-shadow:0 0 0 3px rgba(217,158,118,.55)!important}
.muted{color:var(--text-3);font-size:14px}
.fine{margin-top:14px;font-size:13px;line-height:1.5;letter-spacing:.005em;color:var(--text-3)}
.ico{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}

/* the warm light at the top of the page, the colour of the site's hero; it fades out long before any edge */
.glow{position:fixed;inset:0 0 auto 0;height:min(860px,100vh);pointer-events:none;z-index:0;
  background:
    radial-gradient(60% 75% at 22% 0%,rgba(58,29,12,.95) 0%,rgba(46,23,10,.55) 45%,rgba(42,21,9,0) 100%),
    radial-gradient(55% 60% at 85% 4%,rgba(48,26,14,.55) 0%,rgba(48,26,14,0) 100%)}

/* the wordmark: "helder" with the tilted e, as on the site */
.logo{display:flex;align-items:center;border-radius:6px;transition:opacity .1s}
.logo img{width:auto;height:25px}
.logo:active{opacity:.6}

/* ===================================================================== */
/*  Buttons, fields, chips                                               */
/* ===================================================================== */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;height:56px;padding:0 26px;
  border:0;border-radius:999px;font-weight:600;font-size:17px;letter-spacing:-.005em;white-space:nowrap;
  transition:background .15s,color .15s,box-shadow .15s,transform .12s var(--ease),opacity .15s}
.btn:active:not(:disabled){transform:scale(.97);transition-duration:.15s,.15s,.15s,.08s,.15s}
.btn .ico{transition:transform .25s var(--spring)}
.btn-peach{background:var(--peach);color:var(--roast);box-shadow:0 10px 30px rgba(217,158,118,.18)}
.btn-peach:disabled{opacity:.5;box-shadow:none}
.btn-ghost{background:transparent;color:var(--cream);box-shadow:inset 0 0 0 1.5px rgba(251,246,238,.26)}
.btn-cream{background:var(--cream);color:var(--roast)}
.btn-ghost:active:not(:disabled){background:rgba(251,246,238,.08)}
.btn-ghost:disabled{opacity:.5}
.btn-xl{height:58px;width:100%;font-size:18px}
.btn-sm{height:42px;padding:0 18px;font-size:15px}
.btn-row{display:flex;flex-wrap:wrap;gap:8px}
.link{border:0;background:none;padding:8px;color:var(--text-2);font-size:15px;transition:color .15s,opacity .1s}
.link:active{opacity:.55}
.link-strong{padding:8px 4px;color:var(--cream);font-weight:600;text-decoration:underline;text-decoration-color:rgba(251,246,238,.35);text-underline-offset:3px}

.field{display:block;width:100%;height:56px;padding:0 22px;border-radius:999px;border:1.5px solid var(--field-line);
  background:rgba(251,246,238,.07);color:var(--cream);font:400 17px var(--font);outline:none;-webkit-appearance:none;appearance:none;
  transition:border-color .15s,box-shadow .15s,background .15s}
.field::placeholder{color:var(--text-2);opacity:.75}
.field:focus{border-color:var(--peach);background:rgba(251,246,238,.1);box-shadow:0 0 0 4px rgba(217,158,118,.2)}
textarea.field{height:auto;min-height:132px;max-height:min(320px,40vh);padding:16px 20px;border-radius:22px;line-height:1.5;resize:vertical}

.chip{height:38px;padding:0 15px;border:0;border-radius:999px;background:rgba(251,246,238,.07);
  box-shadow:inset 0 0 0 1.5px rgba(251,246,238,.1);color:var(--cream);font-size:14.5px;font-weight:500;
  transition:background .15s,color .15s,box-shadow .15s,transform .1s ease-out}
.chip:active:not(:disabled){transform:scale(.95)}
.chip[aria-pressed="true"]{background:var(--cream);color:var(--roast);box-shadow:none}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip-sm{height:30px;padding:0 12px;font-size:13px}
.chip:disabled{opacity:.5}

/* segmented control with a sliding thumb */
.seg{position:relative;display:grid;grid-auto-flow:column;grid-auto-columns:1fr;padding:4px;border-radius:999px;
  background:rgba(251,246,238,.07);--i:0;--n:3}
.seg-thumb{position:absolute;top:4px;bottom:4px;left:4px;width:calc((100% - 8px) / var(--n));border-radius:999px;
  background:var(--cream);transform:translateX(calc(var(--i) * 100%));transition:transform .44s var(--spring),scale .25s var(--spring);
  box-shadow:0 6px 20px rgba(0,0,0,.25)}
/* The thumb sits above the labels and carries its own dark copy of them (main.js inkSeg),
   shifted opposite to the thumb, so a label reads dark exactly where the thumb covers it. */
.seg-thumb{z-index:2;overflow:hidden;pointer-events:none;transition:transform .44s var(--spring),background .15s}
.seg-ink{position:absolute;top:0;bottom:0;left:0;width:calc(100% * var(--n));display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr));
  transform:translateX(calc(var(--i) * -100% / var(--n)));transition:transform .44s var(--spring);
  color:var(--roast);font-size:15px;font-weight:600;white-space:nowrap}
.seg-ink > span{display:flex;align-items:center;justify-content:center;padding:0 12px}
/* pressed, the thumb dims a touch; while it is dragged or springing, JS moves it */
.seg.is-pressing .seg-thumb{background:var(--sand)}
.seg.is-sliding .seg-thumb,.seg.is-sliding .seg-ink,.seg-thumb.is-sprung,.seg-thumb.is-sprung .seg-ink{transition:background .15s}
.seg button{position:relative;z-index:1;height:40px;padding:0 12px;border:0;background:none;border-radius:999px;
  color:var(--text-2);font-size:15px;font-weight:600;transition:opacity .1s;touch-action:pan-y}
.seg button[aria-checked="true"]{cursor:grab}
.seg button:not([aria-checked="true"]):not(:disabled):active{opacity:.55}
.seg.is-sliding{cursor:grabbing}
.seg button:disabled{opacity:.5}
.seg.is-locked,.seg.is-locked button,.seg.is-locked button[aria-checked="true"]{cursor:default}
.seg-sm button{height:34px;font-size:14px;padding:0 10px}
.seg-sm .seg-ink{font-size:14px}
.seg-sm .seg-ink > span{padding:0 10px}

/* ===================================================================== */
/*  Sign in: the /access hero, the render behind the words                */
/* ===================================================================== */
.auth{position:relative;z-index:1;min-height:100vh;min-height:100dvh;overflow:hidden;isolation:isolate;
  background:linear-gradient(180deg,#2A1509 0%,#2A1509 52%,#20160F 100%)}
html[data-auth="in"] .auth{display:none}
/* the render, placed as on /access: the band's curl above the headline. It fades out within its own
   height, onto a backdrop of its own colour, so there is no edge where the photo stops. */
.auth-art{position:absolute;z-index:-1;left:0;right:0;top:0;height:640px;pointer-events:none}
.auth-art picture{display:contents}
.auth-art img{position:absolute;left:calc(50% - 305px);top:-50px;width:640px;max-width:none;height:auto;
  -webkit-mask-image:linear-gradient(180deg,#000 62%,transparent 92%);mask-image:linear-gradient(180deg,#000 62%,transparent 92%)}
.auth-inner{width:100%;max-width:440px;margin:0 auto;padding:calc(14px + env(safe-area-inset-top)) 20px calc(32px + env(safe-area-inset-bottom));display:flex;flex-direction:column}
/* the wordmark sits exactly where the app's top bar has it, at the same size, so signing in doesn't move it */
.auth .logo{position:absolute;z-index:2;left:20px;top:calc(env(safe-area-inset-top) + var(--top-h) / 2 - 12.5px)}
.auth h1{margin:234px 0 0;font-size:clamp(40px,11.6vw,50px);font-weight:600;line-height:1.02;letter-spacing:-.045em;text-wrap:balance}
.auth .lede{margin:12px 0 26px;font-size:17px;line-height:1.5;color:var(--text-2);text-wrap:pretty}
.auth-form{width:100%;display:flex;flex-direction:column;gap:10px}
.auth-form .btn{margin-top:4px}
.auth-form.is-loading .btn .ico{display:none}
.auth-form.is-loading .btn::after{content:"";width:16px;height:16px;border-radius:50%;border:2px solid currentColor;border-right-color:transparent;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.form-error{min-height:22px;margin-top:4px;font-size:15px;color:var(--error)}
.form-error:empty{min-height:0;margin:0}
.auth-note{margin:2px 4px 0;font-size:13px;line-height:1.5;color:var(--text-3);text-wrap:pretty}
.auth-forgot{width:100%}
.auth-links{margin-top:18px;display:flex;flex-direction:column;align-items:center;gap:4px;font-size:15px;color:var(--text-3)}
.auth-links p{margin:0}
/* no side padding on the link inside the sentence: invisible padding after "account" would pull the line off centre */
.auth-links .link-strong{padding-left:0;padding-right:0}
.ts{width:100%;border-radius:12px}
.ts:empty{display:none}
.ts-hint{margin:-2px 4px 0;font-size:14px;line-height:1.4;color:var(--text-2);transition:color .2s}
.ts-hint.is-warn{color:var(--peach-soft);font-weight:600}

/* ===================================================================== */
/*  Shell: the top bar                                                    */
/* ===================================================================== */
.shell{position:relative;z-index:1}
html:not([data-auth="in"]) .shell{display:none}
html:not([data-role="owner"]) .owner-only{display:none!important}

/* At the top it sits on the glow; once the page scrolls under it, a translucent material fades in and
   its lower edge melts into the page (a soft scroll edge, not a line). Two layers, because Chromium
   draws nothing at all for a backdrop blur that also has a mask. */
.topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:10px;
  min-height:calc(var(--top-h) + env(safe-area-inset-top));padding:env(safe-area-inset-top) 16px 0 20px}
.topbar::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:0;
  background:linear-gradient(180deg,rgba(32,22,15,.86) 0%,rgba(32,22,15,.7) 100%);
  -webkit-backdrop-filter:blur(22px) saturate(160%);backdrop-filter:blur(22px) saturate(160%);transition:opacity .3s ease}
.topbar::after{content:"";position:absolute;left:0;right:0;top:100%;height:20px;pointer-events:none;opacity:0;
  background:linear-gradient(180deg,rgba(32,22,15,.7),rgba(32,22,15,0));transition:opacity .3s ease}
.topbar.is-scrolled::before,.topbar.is-scrolled::after{opacity:1}
.topbar-right{display:flex;align-items:center;gap:8px;min-width:0}

.top-link{display:none;align-items:center;height:40px;padding:0 14px;border-radius:999px;font-size:15px;font-weight:600;color:var(--text-2);transition:color .15s,background .15s,opacity .1s}
.top-link[aria-current="page"]{color:var(--cream);background:rgba(251,246,238,.08)}
.top-link:active{opacity:.6}

.device-chip{display:inline-flex;align-items:center;gap:9px;min-width:0;height:38px;padding:0 14px 0 12px;border:0;border-radius:999px;
  background:rgba(251,246,238,.08);font-size:14px;font-weight:600;
  max-width:46vw;transition:background .15s,transform .1s ease-out}
.device-chip:active,button.avatar:active,.pill-btn:active{transform:scale(.95)}
.device-chip span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.live-dot{position:relative;width:8px;height:8px;flex:none;border-radius:50%;box-shadow:inset 0 0 0 1.5px var(--taupe)}
.is-connected .live-dot{box-shadow:none;background:var(--peach)}
.is-connected .live-dot::before{content:"";position:absolute;inset:0;border-radius:50%;background:var(--peach);animation:hlPulse 2.4s cubic-bezier(.2,.6,.3,1) infinite}
.is-connecting .live-dot{box-shadow:inset 0 0 0 1.5px var(--peach);animation:blink 1s ease-in-out infinite}
.is-finding .live-dot{box-shadow:inset 0 0 0 1.5px var(--peach);animation:blink 2.2s ease-in-out infinite}
@keyframes hlPulse{0%{transform:scale(1);opacity:.6}75%,100%{transform:scale(3.2);opacity:0}}
@keyframes blink{50%{opacity:.3}}

/* Feedback: a round icon on a phone, a pill with its word on a bigger screen */
.pill-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:none;width:38px;height:38px;padding:0;border:0;border-radius:999px;
  background:rgba(251,246,238,.08);font-size:14px;font-weight:600;transition:background .15s,transform .1s ease-out}
.pill-btn svg{width:19px;height:19px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round}
.pill-btn span{display:none}

.avatar{width:38px;height:38px;flex:none;display:grid;place-items:center;border:0;border-radius:50%;transition:transform .1s ease-out;
  background:linear-gradient(160deg,#4a3527,#2e2119);font-size:15px;font-weight:600;color:var(--peach-soft)}
.avatar-lg{width:56px;height:56px;font-size:22px}
.acct .avatar{cursor:default;-webkit-user-select:none;user-select:none}

main{position:relative;max-width:1240px;margin:0 auto;padding:4px 20px calc(40px + env(safe-area-inset-bottom))}
.view{animation:viewIn .25s var(--ease)}
@keyframes viewIn{from{opacity:0}to{opacity:1}}

/* ===================================================================== */
/*  Home: the greeting, the controls, the stats                           */
/* ===================================================================== */
.greet{margin:6px 0 0}
.greet h1{font-size:28px;font-weight:600;letter-spacing:-.03em;line-height:1.12;text-wrap:balance}
.greet p{margin-top:4px;font-size:16px;color:var(--text-2)}

.home{display:flex;flex-direction:column}
.control{display:flex;flex-direction:column;align-items:stretch}

.dial{--mode:var(--m-focus);position:relative;width:min(76vw,300px,40dvh);aspect-ratio:1;margin:18px auto 22px;display:grid;place-items:center}
.dial[data-mode="relax"]{--mode:var(--m-relax)}
.dial[data-mode="hyper"]{--mode:var(--m-hyper)}
.dial::before{content:"";position:absolute;inset:-6%;border-radius:50%;
  background:radial-gradient(closest-side,color-mix(in srgb,var(--mode) 30%,transparent),transparent 72%);
  transition:background .5s var(--ease)}
.dial::after{content:"";position:absolute;inset:7%;border-radius:50%;
  background:radial-gradient(120% 90% at 50% 0%,rgba(251,246,238,.11),rgba(251,246,238,.02) 60%),#2a1d14;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 30px 60px rgba(0,0,0,.35)}
/* while a session runs, the circle lights up from inside: pale and bright while it cools,
   a low copper glow while it warms up (cross-faded, so the change between the two is soft) */
.dial-light{position:absolute;inset:7%;z-index:1;border-radius:50%;pointer-events:none;opacity:0;transition:opacity .9s ease}
.dial-light.cool{background:radial-gradient(circle at 50% 42%,color-mix(in srgb,var(--mode) 52%,transparent) 0%,color-mix(in srgb,var(--mode) 17%,transparent) 52%,transparent 74%)}
/* and its edge glows softly, so a running session is clear at a glance */
.dial::after{transition:box-shadow .8s ease}
.dial.is-running::after{box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 0 0 1px color-mix(in srgb,var(--mode) 30%,transparent),
  0 0 44px color-mix(in srgb,var(--mode) 24%,transparent),0 30px 60px rgba(0,0,0,.35)}
.dial-light.warm{background:radial-gradient(circle at 50% 46%,rgba(180,117,82,.3) 0%,rgba(180,117,82,.08) 52%,transparent 74%)}
.dial.is-running[data-phase="cool"] .dial-light.cool,.dial.is-running[data-phase="hold"] .dial-light.cool{opacity:1}
.dial.is-running[data-phase="rewarm"] .dial-light.warm,.dial.is-running[data-phase="away"] .dial-light.warm{opacity:1}
.dial-ring{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg);z-index:2;overflow:visible}
/* one arc per cold pulse (main.js renderRing); when the count changes, the arcs slide into their new places */
.dial-ring circle{fill:none;stroke-width:5;stroke-linecap:round;
  transition:stroke-dasharray .7s var(--spring),stroke-dashoffset .7s var(--spring),opacity .35s ease,stroke .5s ease}
.ring-track circle{stroke:color-mix(in srgb,var(--mode) 26%,rgba(251,246,238,.05))}
.ring-fill circle{stroke:var(--mode);filter:drop-shadow(0 0 5px color-mix(in srgb,var(--mode) 55%,transparent))}
.dial.is-faint .ring-fill circle{stroke:color-mix(in srgb,var(--mode) 55%,transparent);filter:none}
.dial-core{position:relative;z-index:3;display:flex;flex-direction:column;align-items:center;text-align:center;padding:0 12%}
.dial-status{min-height:22px;font-size:15px;font-weight:600;color:var(--peach-soft);transition:color .3s}
.dial[data-phase="off"] .dial-status{color:var(--text-3)}
/* running: what it is doing, with a live dot (it breathes while cooling) */
.dial.is-running .dial-status{display:inline-flex;align-items:center;gap:8px;font-size:16px;color:var(--cream)}
.dial.is-running .dial-status::before{content:"";width:7px;height:7px;flex:none;border-radius:50%;background:var(--mode);
  animation:glowdot 2.6s ease-in-out infinite}
@keyframes glowdot{0%,100%{opacity:1}50%{opacity:.45}}
.dial.is-running[data-phase="rewarm"] .dial-status,.dial.is-running[data-phase="away"] .dial-status{color:var(--peach-soft)}
.dial.is-running[data-phase="rewarm"] .dial-status::before,.dial.is-running[data-phase="away"] .dial-status::before{background:var(--copper-dot);box-shadow:none;animation:none}
/* how long it takes: what people plan around */
.dial-hero{--rh:1em;margin:6px 0 8px;font-size:clamp(64px,19vw,88px);font-weight:500;letter-spacing:-.05em;line-height:1;
  font-variant-numeric:tabular-nums;white-space:nowrap}
.dial-hero .is-clock{letter-spacing:0}
.dial-hero .tn{display:inline-block;width:.6em;text-align:center}
.dial-hero .tc{display:inline-block;margin:0 -.03em}
.dial-hero small{margin-left:.14em;font-size:.3em;font-weight:500;letter-spacing:-.01em;color:var(--text-2)}
.dial-sub{--rh:1.4em;min-height:1.4em;font-size:16px;line-height:1.4;color:var(--text-2);font-variant-numeric:tabular-nums;white-space:nowrap}
/* a number that scrolls to its new value (main.js rollTo) */
.roll{position:relative;display:inline-block;vertical-align:top;height:var(--rh);line-height:var(--rh);overflow:hidden;white-space:nowrap}
.roll-col{display:block}
.roll-col > span{display:block;height:var(--rh)}
.roll-probe{position:absolute;left:0;top:0;visibility:hidden;white-space:nowrap}

/* the orb breathes while a session runs; slower while it rewarms */
.dial[data-phase="cool"]::before,.dial[data-phase="hold"]::before{animation:breathe 4s ease-in-out infinite}
.dial[data-phase="rewarm"]::before{animation:breathe 7s ease-in-out infinite;opacity:.6}
@keyframes breathe{0%,100%{transform:scale(.96);opacity:.75}50%{transform:scale(1.04);opacity:1}}
.dial[data-phase="off"]::before{opacity:.6}
/* still running on Helder while the app can't see it: the orb keeps breathing, slowly */
.dial[data-phase="away"]::before{animation:breathe 7s ease-in-out infinite;opacity:.55}

.seg-label{margin:0 auto 10px;font-size:14px;font-weight:500;line-height:1.3;color:var(--text-3);text-align:center}
.seg-modes{--n:3;margin:0 auto;width:100%;max-width:440px}
.seg-modes button{height:50px;font-size:16px}
.seg-modes .seg-ink{font-size:16px}

.go-wrap{display:flex;flex-direction:column;align-items:center;margin-top:14px}
.btn-go{width:100%;max-width:440px;height:64px;font-size:20px;letter-spacing:-.01em;
  box-shadow:0 14px 40px rgba(217,158,118,.2),0 10px 30px rgba(0,0,0,.25)}
.btn-go:disabled{opacity:1}
.btn-go.is-stop,.btn-go.is-stop:disabled{background:rgba(251,246,238,.05);color:var(--cream);box-shadow:inset 0 0 0 1.5px rgba(251,246,238,.32)}
.btn-go.is-stop:active:not(:disabled){background:rgba(251,246,238,.1)}
/* busy (connecting, starting, stopping): it keeps its own colours, and a spinner says it is working */
.btn-go.is-busy{cursor:progress}
.btn-go.is-busy:not(.is-stop){box-shadow:0 14px 40px rgba(217,158,118,.2),0 10px 30px rgba(0,0,0,.25)}
.btn-go.is-busy::after{content:"";width:17px;height:17px;flex:none;border-radius:50%;border:2px solid currentColor;border-right-color:transparent;animation:spin .8s linear infinite}
/* blocked (Helder can't start yet): quiet and clean, never a faded peach */
.btn-go.is-blocked,.btn-go.is-blocked:disabled{background:rgba(251,246,238,.06);color:var(--text-3);box-shadow:none}
.go-hint{min-height:22px;margin-top:12px;font-size:14px;color:var(--text-3);text-align:center;text-wrap:balance}
.go-hint.warn{color:var(--peach-soft)}
.go-hint.info{color:var(--text-2)}

/* ===================================================================== */
/*  Stats: three cards, the way a bank app shows money                     */
/* ===================================================================== */
.stats{margin-top:34px}
.stats-title{margin:0 0 14px;font-size:24px;font-weight:600;letter-spacing:-.03em}
.stats-stage{position:relative}
.tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-content:start}

.tile{position:relative;display:flex;flex-direction:column;align-items:stretch;min-width:0;padding:16px 16px 15px;border:0;border-radius:26px;
  background-color:rgba(251,246,238,0);background-image:var(--card);box-shadow:var(--card-hi);color:var(--cream);text-align:left;
  transition:background-color .3s ease,transform .4s var(--spring)}
.tile:active{transform:scale(.975);transition-duration:.12s}
.tile-wide{grid-column:1 / -1;padding:18px 18px 14px}
.tile-top{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:22px;font-size:15px;font-weight:500;color:var(--text-2)}
.tile-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tile-go{width:16px;height:16px;flex:none;margin-right:-2px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
  color:var(--text-3);transition:color .3s ease,transform .3s var(--spring)}
.tile-figure{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 12px;margin-top:4px}
.tile-value{font-size:38px;font-weight:600;letter-spacing:-.04em;line-height:1.08;font-variant-numeric:tabular-nums}
.tile-value small{margin-left:5px;font-size:19px;font-weight:600;letter-spacing:-.015em;color:var(--text-2)}
.tile-word{font-size:25px;letter-spacing:-.03em;line-height:1.1;text-wrap:balance}
.tile-word.is-empty{color:rgba(251,246,238,.42)}
.tile-note{margin-top:3px;font-size:13.5px;line-height:1.35;color:var(--text-3)}
.tile-viz{display:block;margin-top:auto;padding-top:14px;min-width:0}
/* the week's line takes all the room its card has; drawn to that size (main.js drawTrend) */
.tile-wide .tile-viz{position:relative;flex:1 1 auto;min-height:104px;padding-top:8px}
.tile-wide .tile-viz > svg{position:absolute;left:0;bottom:0}

/* this week, a session count a day: this week's line over last week's, in grey dots.
   Touch and hold (or slide along) the line on a phone to compare days; a quick tap still opens the card. */
.wline{display:block;overflow:visible;touch-action:pan-y;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
.wline .base{stroke:rgba(251,246,238,.1);stroke-width:1}
.wline .prev{fill:none;stroke:rgba(251,246,238,.42);stroke-width:2.4;stroke-linecap:round;stroke-dasharray:0 5.5;transition:stroke .2s}
.wline.hl .prev{stroke:rgba(251,246,238,.62)}
.wline .mark-prev{fill:#2B2019;stroke:var(--text-2);stroke-width:2;opacity:0;transition:opacity .15s}
.wline .mark-prev.on{opacity:1}
.tile.is-scrubbing{transform:none}

/* the key after "2 more than last week": which line is which */
.tile-note-row{display:flex;flex-wrap:wrap;align-items:center;gap:2px 12px}
.wkey{display:inline-flex;align-items:center;gap:12px;font-size:12px;font-weight:600;white-space:nowrap}
.wkey > span{display:inline-flex;align-items:center;gap:5px}
.wkey svg{width:16px;height:6px;flex:none;overflow:visible;fill:none;stroke-linecap:round}
.wkey-cur{stroke:var(--peach);stroke-width:2.5}
.wkey-prev{stroke:rgba(251,246,238,.42);stroke-width:2.4;stroke-dasharray:0 4.33}
.wline .cur{fill:none;stroke:var(--peach);stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round}
.wline .fill-top{stop-color:var(--peach);stop-opacity:.28}
.wline .fill-bottom{stop-color:var(--peach);stop-opacity:0}
.wline .halo{fill:var(--peach);opacity:.22}
.wline .dot{fill:var(--peach)}
.wline .mark{fill:var(--cream);opacity:0;transition:opacity .15s}
.wline .mark.on{opacity:1}
.wline text{fill:var(--text-3);font-size:12px;font-weight:600}
.wline text.today{fill:var(--cream)}

/* clarity: five dots coming into focus, lit up to your answer */
/* A dot coming into focus. Its soft edge is a gradient drawn around it, not a blur filter: a phone draws
   a blurred dot that also scales (a picked answer grows a little) in blocks. --fog is the blur it replaces. */
@property --c{syntax:'<color>';inherits:true;initial-value:transparent}
.fz{position:relative}
.fz::before{content:"";position:absolute;inset:calc(var(--fog,0px) * -2);border-radius:50%;pointer-events:none;
  background:radial-gradient(closest-side,var(--c) max(0px,calc(100% - var(--fog,0px) * 4 - .6px)),transparent 100%)}

.fog{display:flex;flex-direction:column;gap:8px;width:100%}
.fog-dots{display:flex;align-items:center;justify-content:space-between}
.fog i{--c:rgba(251,246,238,.16);width:17px;height:17px;flex:none;transition:--c .3s}
.fog i.on{--c:var(--peach)}
.fog-ends{display:flex;justify-content:space-between;gap:8px}
.fog-ends small{font-size:11px;font-weight:600;line-height:1;color:var(--text-3);white-space:nowrap}

.fog-lg i{width:26px;height:26px}

/* streak: this week, a dot a day */
.week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;max-width:236px}
.wd{display:flex;flex-direction:column;align-items:center;gap:7px}
.wd i{width:15px;height:15px;border-radius:50%;box-shadow:inset 0 0 0 1.5px rgba(251,246,238,.22)}
.wd.on i{background:var(--peach);box-shadow:none}
.wd.now i{box-shadow:inset 0 0 0 1.5px var(--cream)}
.wd.now.on i{box-shadow:0 0 0 2.5px rgba(32,22,15,.9),0 0 0 4px var(--cream)}
.wd.later i{box-shadow:inset 0 0 0 1.5px rgba(251,246,238,.09)}
.wd small{font-size:11px;font-weight:600;line-height:1;color:var(--text-3)}
.wd.now small{color:var(--cream)}

/* ----- a card, opened (a pop-up; a sheet on a phone) ----- */
.detail-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px}
.tabs{display:flex;gap:2px;min-width:0;margin-left:-8px;overflow-x:auto;scrollbar-width:none}
.tabs::-webkit-scrollbar{display:none}
.tabs button{flex:none;padding:6px 8px;border:0;border-radius:12px;background:none;font-size:22px;font-weight:600;letter-spacing:-.03em;
  color:rgba(251,246,238,.32);transition:color .2s,opacity .1s}
.tabs button[aria-selected="true"]{color:var(--cream)}
.tabs button:not([aria-selected="true"]):active{opacity:.6}
/* padding 0: a browser's own button padding must not nudge the cross; 16 in 38 puts it on whole pixels */
.close{width:38px;height:38px;flex:none;display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:rgba(251,246,238,.08);color:var(--cream);transition:background .15s,transform .1s ease-out}
.close:active{transform:scale(.92)}
.close svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.1;stroke-linecap:round}
.detail-body{min-width:0}
.detail-body > .d-pane{animation:paneIn .3s var(--ease)}
@keyframes paneIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

.d-top{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:14px 20px}
.d-value{font-size:46px;font-weight:600;letter-spacing:-.045em;line-height:1;font-variant-numeric:tabular-nums}
.d-value small{margin-left:6px;font-size:21px;letter-spacing:-.02em;color:var(--text-2)}
.d-word{font-size:34px;letter-spacing:-.035em;line-height:1.05}
.d-note{margin-top:7px;font-size:15px;color:var(--text-2)}
.d-range{width:100%;max-width:320px;margin:2px 0 24px;--n:3}
.d-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:32px;margin-top:26px}
.d-col{min-width:0}
.d-col h3{margin:0 0 14px;font-size:17px;font-weight:600;letter-spacing:-.015em}
.d-col .insight{margin-top:-6px}
.d-col .figs{margin-top:14px}
.d-fog{flex:none;width:100%}
.figs.figs-stack{grid-template-columns:minmax(0,1fr);margin-top:0}
.insight{margin:0 0 14px;font-size:15px;line-height:1.45;color:var(--text-2);text-wrap:pretty}
.figs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:18px}
.figs > div{min-width:0;padding:12px 14px 13px;border-radius:18px;background:var(--well)}
.figs span{display:block;font-size:12.5px;line-height:1.3;color:var(--text-3)}
.figs b{display:block;margin-top:3px;font-size:19px;font-weight:600;letter-spacing:-.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* the streak's calendar */
.cal{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;max-width:400px}
.cal-h{text-align:center;font-size:12px;font-weight:600;color:var(--text-3)}
.cal-d{aspect-ratio:1;max-width:46px;width:100%;justify-self:center;display:grid;place-items:center;border-radius:50%;
  font-size:13.5px;font-weight:600;color:var(--text-2);background:var(--well);font-variant-numeric:tabular-nums;cursor:default}
.cal-d.on{background:rgba(217,158,118,.5);color:var(--cream)}
.cal-d.more{background:var(--peach);color:var(--roast)}
.cal-d.now{box-shadow:inset 0 0 0 1.5px var(--cream)}
.cal-d.on.now{box-shadow:0 0 0 2px rgba(32,22,15,.9),0 0 0 3.5px var(--cream)}
.cal-d.later{background:none;color:rgba(251,246,238,.22)}
.cal-d.m{font-size:10.5px;letter-spacing:.02em}
.cal-key{display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:16px;font-size:13px;color:var(--text-3)}
.cal-key span{display:inline-flex;align-items:center;gap:7px}
.cal-key i{width:12px;height:12px;border-radius:50%;background:var(--well)}
.cal-key i.on{background:rgba(217,158,118,.5)}
.cal-key i.more{background:var(--peach)}

/* the answers after a session, best at the top */
.answers{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:13px}
.answers li{display:grid;grid-template-columns:16px minmax(0,1fr) auto;align-items:center;column-gap:10px;row-gap:7px;font-size:15px}
.answers i{--c:var(--peach);width:13px;height:13px}
.answers b{font-weight:600;font-variant-numeric:tabular-nums;color:var(--text-2)}
.answers-track{grid-column:2 / -1;position:relative;height:8px;border-radius:999px;background:rgba(251,246,238,.07);overflow:hidden}
.answers-fill{position:absolute;left:0;top:0;bottom:0;min-width:0;border-radius:999px;background:var(--peach);transition:width .5s var(--ease)}

/* ===================================================================== */
/*  Charts                                                               */
/* ===================================================================== */
.chart{position:relative;width:100%}
.viz{display:block;width:100%;height:auto;overflow:visible}
.viz text{font-family:var(--font);font-size:12px;letter-spacing:.01em;fill:var(--text-3)}
.viz .tick{font-variant-numeric:tabular-nums}
.viz .grid{stroke:rgba(255,240,225,.08);stroke-width:1;shape-rendering:crispEdges}
.viz .bar{fill:rgba(217,158,118,.34);transition:fill .2s}
.viz .bar-none{fill:rgba(251,246,238,.08)}
.viz .bar.accent{fill:var(--peach)}
.viz .hit{fill:transparent;cursor:default}
/* the whole column answers the pointer, the bar itself included */
.viz .col:hover .bar,.viz .col:focus-within .bar{fill:rgba(217,158,118,.55)}
.viz .col:hover .bar.accent,.viz .col:focus-within .bar.accent{fill:var(--peach-soft)}
.viz .val{fill:var(--cream);font-weight:600;font-size:12px}
.viz .today{fill:var(--cream);font-weight:600}

.tip{position:fixed;z-index:80;pointer-events:none;padding:8px 12px;border-radius:12px;background:#3a2b20;
  box-shadow:0 10px 30px rgba(0,0,0,.4);font-size:13px;color:var(--text-2);
  transform:translate(-50%,calc(-100% - 10px));white-space:nowrap}
.tip b{display:block;font-size:15px;font-weight:600;color:var(--cream)}

/* part-to-whole bar */
.split{display:flex;gap:2px;height:14px;margin:4px 0 16px}
.split i{display:block;height:100%;min-width:4px}
.split i:first-child{border-radius:999px 0 0 999px}
.split i:last-child{border-radius:0 999px 999px 0}
.split i:only-child{border-radius:999px}
.legend{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.legend li{display:grid;grid-template-columns:12px minmax(0,1fr) auto;align-items:center;gap:10px;font-size:15px}
.legend .sw{width:12px;height:12px;border-radius:4px}
.legend .num{font-variant-numeric:tabular-nums;color:var(--text-2)}
.legend .num b{color:var(--cream);font-weight:600}
.legend .num span{margin-left:10px;color:var(--text-3)}

/* meters: avg feeling per mode */
.meters{display:flex;flex-direction:column;gap:14px}
.meter-top{display:flex;justify-content:space-between;align-items:baseline;gap:10px;font-size:15px;margin-bottom:6px}
.meter-top span:last-child{color:var(--text-2);font-variant-numeric:tabular-nums}
.meter-top b{font-weight:600;color:var(--cream)}
.meter-top small{font-size:13px;color:var(--text-3)}
.meter-track{position:relative;height:8px;border-radius:999px;background:rgba(251,246,238,.08)}
.meter-fill{position:absolute;left:0;top:0;bottom:0;border-radius:999px;transition:width .5s var(--ease)}
.scale-ends{display:flex;justify-content:space-between;margin-top:10px;font-size:12px;color:var(--text-3)}
.meter-note{margin-top:6px;font-size:13px;color:var(--text-3)}

.empty{padding:6px 0;color:var(--text-3);font-size:15px}

/* ===================================================================== */
/*  Owner                                                                 */
/* ===================================================================== */
.card{position:relative;padding:22px;border-radius:26px;background:var(--card);box-shadow:var(--card-hi)}
#view-owner > .card,#view-owner > .kpis{margin-bottom:16px}
.card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}
.card-title{margin:0 0 12px;font-size:18px;font-weight:600;letter-spacing:-.02em;color:var(--cream)}
.card-head .card-title{margin-bottom:2px}
.view-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:14px;margin:8px 0 18px}
.view-head h1{font-size:32px;font-weight:600;letter-spacing:-0.035em;line-height:1.1}
.view-note{font-size:14px;color:var(--text-3)}
.back{display:inline-flex;align-items:center;gap:4px;margin:0 0 8px -4px;padding:4px;font-size:15px;font-weight:600;color:var(--peach);transition:opacity .1s}
.back svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.back:active{opacity:.6}

.kpis{display:grid;gap:16px}
.kpis-4{grid-template-columns:repeat(2,minmax(0,1fr))}
.kpi{min-width:0}
.kpi-ico{width:24px;height:24px;margin-bottom:8px}
.kpi-ico svg{width:24px;height:24px;fill:none;stroke:var(--peach);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.kpi-label{font-size:13px;line-height:1.3;letter-spacing:.005em;color:var(--text-3)}
.kpi-value{margin-top:2px;font-size:30px;font-weight:600;letter-spacing:-0.03em;line-height:1.1}
.kpi-value.word{font-size:24px;letter-spacing:-0.02em}
.kpi-value small{margin-left:5px;font-size:15px;font-weight:500;letter-spacing:0;color:var(--text-2)}
.kpi-delta{margin-top:2px;font-size:13px;color:var(--text-3)}

.stat-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;margin-top:16px}

.profile-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.prof{padding:18px;border-radius:20px;background:var(--well)}
.prof.dirty{box-shadow:inset 0 0 0 1.5px rgba(217,158,118,.6)}
.prof-head{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.prof-head .sw{width:12px;height:12px;border-radius:50%}
.prof-head b{font-size:18px;font-weight:600}
.prof-head small{margin-left:auto;font-size:13px;color:var(--text-3)}
.step{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 0;box-shadow:inset 0 -1px 0 var(--hair)}
.step:last-of-type{box-shadow:none}
.step label{font-size:15px;color:var(--text-2)}
.stepper{display:flex;align-items:center;gap:8px}
.stepper button{width:34px;height:34px;display:grid;place-items:center;border:0;border-radius:50%;
  background:rgba(251,246,238,.08);font-size:18px;line-height:1}
.stepper button{transition:background .15s,transform .1s ease-out}
.stepper button:active:not(:disabled){transform:scale(.9);background:rgba(251,246,238,.16)}
.stepper output{min-width:64px;text-align:center;font-size:17px;font-weight:600;font-variant-numeric:tabular-nums}
.prof-foot{margin-top:10px;font-size:13px;color:var(--text-3)}
.cal-rows .step b{font-size:17px;font-weight:600;font-variant-numeric:tabular-nums}
.cal-rows .stepper button:disabled{opacity:.35}

.table-wrap{overflow-x:auto;margin:0 -6px;padding:0 6px}
.table{width:100%;border-collapse:collapse;font-size:14px;min-width:560px}
.table th{padding:8px 10px;text-align:left;font-weight:500;color:var(--text-3);font-size:13px;box-shadow:inset 0 -1px 0 var(--hair)}
.table td{padding:11px 10px;box-shadow:inset 0 -1px 0 var(--hair);white-space:nowrap}
.table tr:last-child td{box-shadow:none}
.table .n{text-align:right;font-variant-numeric:tabular-nums}
.table .who b{display:block;font-weight:600;font-size:15px;color:var(--cream)}
.table .who small{color:var(--text-3);font-size:12px}
.pill{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--text-2)}
.pill i{width:8px;height:8px;border-radius:50%}
.status-dot{display:inline-flex;align-items:center;gap:6px}
.status-dot::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--taupe)}
.status-dot.on::before{background:var(--peach)}

.feed{list-style:none;margin:0;padding:0}
.feed li{padding:11px 0;box-shadow:inset 0 -1px 0 var(--hair);font-size:15px}
.feed li:last-child{box-shadow:none}
.feed small{display:block;margin-top:2px;font-size:13px;color:var(--text-3)}
/* testers' feedback: the message itself, in full */
.fb-feed li{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 12px;padding:14px 0}
.fb-feed .kind{grid-row:1 / span 3;align-self:start;margin-top:1px;height:24px;padding:0 9px;display:inline-flex;align-items:center;border-radius:999px;
  background:rgba(251,246,238,.08);font-size:12px;font-weight:600;color:var(--text-2)}
.fb-feed .kind.problem{background:rgba(240,162,150,.16);color:var(--error)}
.fb-feed .kind.love{background:rgba(217,158,118,.18);color:var(--peach-soft)}
.fb-feed p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}
.fb-feed small{margin:0}

.bars-h{display:flex;flex-direction:column;gap:12px}
.bars-h .row-top{display:flex;justify-content:space-between;font-size:15px;margin-bottom:6px}
.bars-h .row-top span:last-child{color:var(--text-2);font-variant-numeric:tabular-nums}

.diag{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.diag div{min-width:0}
.diag span{display:block;font-size:13px;color:var(--text-3)}
.diag b{display:block;margin-top:2px;font-size:20px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ===================================================================== */
/*  Sheets                                                                */
/* ===================================================================== */
.scrim{position:fixed;inset:0;z-index:60;background:rgba(12,7,4,.55);-webkit-backdrop-filter:blur(12px) saturate(120%);backdrop-filter:blur(12px) saturate(120%);
  opacity:0;transition:opacity .25s;touch-action:none}
.scrim.on{opacity:1}
/* phone sheets are moved by springs and fingers (main.js), never by CSS transitions */
.scrim.is-physical,.sheet.is-physical{transition:none}
.sheet.is-physical{will-change:transform}
.sheet{position:fixed;left:0;right:0;bottom:0;z-index:70;max-height:92vh;max-height:92dvh;overflow-y:auto;overscroll-behavior:contain;
  padding:10px 22px calc(24px + env(safe-area-inset-bottom));border-radius:30px 30px 0 0;
  background:linear-gradient(180deg,#33241A 0%,#2A1E15 45%,#251A12 100%);
  /* the last shadow is the sheet's own colour continuing below the screen edge, so a bounce or an upward pull never shows a gap */
  box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 -20px 60px rgba(0,0,0,.4),0 240px 0 0 #251A12;
  transform:translateY(105%);transition:transform .34s var(--ease);text-align:center}
.sheet.on{transform:none}
.sheet-grab{height:28px;margin:-10px -22px 6px;display:flex;align-items:center;justify-content:center;touch-action:none;cursor:grab}
.sheet.is-dragging,.sheet.is-dragging .sheet-grab{cursor:grabbing}
.sheet.is-dragging .sheet-grab::before{background:rgba(251,246,238,.4)}
.sheet-grab::before{content:"";width:38px;height:5px;border-radius:999px;background:rgba(251,246,238,.22)}
.sheet h2{font-size:26px;font-weight:600;letter-spacing:-0.03em;line-height:1.15;text-wrap:balance}
.sheet-lede{margin:8px auto 0;max-width:360px;font-size:16px;line-height:1.5;color:var(--text-2);text-wrap:pretty}
.sheet-actions{display:flex;flex-direction:column;gap:10px;margin-top:22px}
.sheet .fine{text-align:center}
.sheet-link{display:block;margin:10px auto 0;font-size:14.5px;color:var(--text-3)}
/* Sessions with no date: the note on Home, and the sheet that asks for the day */
.undated-note{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;margin:0 0 12px;padding:13px 16px;border:0;border-radius:16px;
  background:rgba(251,246,238,.06);box-shadow:inset 0 0 0 1px rgba(255,240,225,.08);color:var(--text-2);font:inherit;font-size:14.5px;line-height:1.35;text-align:left;cursor:pointer;
  transition:transform .2s var(--ease),background .2s var(--ease)}
.undated-note b{flex:none;font-weight:600;color:var(--peach)}
.undated-note:active{transform:scale(.985)}
.dates{display:flex;flex-direction:column;gap:20px;margin:22px 0 4px;text-align:left}
.date-row{border:0;padding:0;margin:0;min-width:0}
.date-row legend{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;padding:0;margin:0 0 10px}
.date-row legend b{font-size:15.5px;font-weight:600;color:var(--cream)}
.date-row legend span{font-size:13px;color:var(--text-3)}
.date-chips{gap:6px}
.date-chips .chip{height:34px;padding:0 12px;font-size:13.5px}
/* the render, cropped to the band's curl, melting into the sheet */
.sheet-art{position:relative;height:150px;margin:-34px -22px 4px;overflow:hidden;
  -webkit-mask-image:linear-gradient(180deg,transparent 0%,#000 26%,#000 58%,transparent 100%);mask-image:linear-gradient(180deg,transparent 0%,#000 26%,#000 58%,transparent 100%)}
/* scaled so the photo's own left edge stays well off the side; the band's curl, with its brass plate, sits in the middle */
.sheet-art img{position:absolute;left:calc(50% - 373px);top:-250px;width:900px;max-width:none}

.check{width:56px;height:56px;margin:4px auto 14px;display:grid;place-items:center;border-radius:50%;background:var(--cream);color:var(--roast)}
.check svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}

fieldset{border:0;margin:24px 0 0;padding:0;min-width:0}
legend{padding:0;margin:0 auto 12px;font-size:16px;font-weight:600;color:var(--cream)}
.rate-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.rate-row button{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:8px;padding:12px 3px 10px;border:0;border-radius:18px;
  background:rgba(251,246,238,.05);box-shadow:inset 0 0 0 1px rgba(255,240,225,.08);font-size:11.5px;line-height:1.15;font-weight:500;color:var(--text-2);
  transition:background .15s,box-shadow .15s,color .15s,transform .1s ease-out}
.rate-row button:active{transform:scale(.95)}
.rate-row button i{--c:var(--peach-soft);width:29px;height:29px;margin:-1.5px 0;transform:scale(.9);transition:transform .2s var(--ease),--c .15s}
.rate-row button[aria-pressed="true"]{background:var(--cream);color:var(--roast);box-shadow:none}
.rate-row button[aria-pressed="true"] i{--c:var(--peach);transform:none}
/* four side by side, each just big enough for its words (two by two on a narrow phone) */
.reasons .chips{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.reasons .chip{height:40px;padding:0 8px;font-size:13px;white-space:nowrap;background:rgba(251,246,238,.05);box-shadow:inset 0 0 0 1px rgba(255,240,225,.08)}
.reasons .chip[aria-pressed="true"]{background:var(--cream);color:var(--roast);box-shadow:none}
@media (max-width:479px){.reasons .chips{grid-template-columns:repeat(2,minmax(0,1fr))}}

.acct{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;text-align:left;margin-top:4px}
.acct h2{font-size:22px}
.acct .muted{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.role-tag{height:26px;padding:0 11px;display:inline-flex;align-items:center;border-radius:999px;background:rgba(217,158,118,.16);color:var(--peach-soft);font-size:13px;font-weight:600}
.list{list-style:none;margin:18px 0 0;padding:0;text-align:left;border-radius:20px;background:var(--well)}
.list li{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:50px;padding:12px 18px;box-shadow:inset 0 -1px 0 var(--hair);font-size:15px}
.list li:last-child{box-shadow:none}
.list li > span:last-child{display:flex;align-items:center;justify-content:flex-end;gap:14px;min-width:0;color:var(--text-2);text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.list button,.list a{border:0;background:none;padding:0;color:var(--peach);font-weight:600;transition:opacity .1s}
.list button:active,.list a:active{opacity:.55}
.list .quiet{color:var(--text-2);font-weight:500}

/* a card opened up on a phone: the sheet reads like a page, left-aligned */
.sheet-stat{text-align:left;padding-left:20px;padding-right:20px;scrollbar-width:none}
.sheet-stat::-webkit-scrollbar{display:none}
.sheet-stat .sheet-grab{margin-left:-20px;margin-right:-20px}
.sheet-stat .detail-head{position:sticky;top:-10px;z-index:3;margin:0 -20px 10px;padding:4px 20px 10px;
  background:linear-gradient(180deg,#33241A 70%,rgba(51,36,26,0))}

/* Bluetooth can't be used: what's wrong, and the steps to fix it here */
.fix-ico{width:56px;height:56px;margin:4px auto 14px;display:grid;place-items:center;border-radius:50%;background:rgba(217,158,118,.16);color:var(--peach-soft)}
.fix-ico svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.fix-ico-warn{background:rgba(240,162,150,.14);color:var(--error)}
.fix-steps{list-style:none;counter-reset:fix;margin:20px 0 0;padding:16px 16px 16px 14px;display:flex;flex-direction:column;gap:14px;
  border-radius:20px;background:var(--well);text-align:left}
.fix-steps li{counter-increment:fix;display:grid;grid-template-columns:24px minmax(0,1fr);column-gap:12px;row-gap:8px;font-size:15px;line-height:1.45;color:var(--text-2)}
.fix-steps li::before{content:counter(fix);grid-column:1;grid-row:1;align-self:start;width:24px;height:24px;display:grid;place-items:center;border-radius:50%;
  background:rgba(251,246,238,.1);font-size:13px;font-weight:600;line-height:1;color:var(--cream)}
.fix-steps li > span{grid-column:2;min-width:0}
.copy-row{display:flex;align-items:center;gap:8px;min-width:0;padding:5px 5px 5px 12px;border-radius:12px;background:rgba(0,0,0,.22)}
.copy-row code{flex:1;min-width:0;overflow-wrap:anywhere;font:500 12.5px/1.45 ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--cream);-webkit-user-select:all;user-select:all}
.copy-row button{flex:none;height:30px;padding:0 13px;border:0;border-radius:999px;background:var(--cream);color:var(--roast);font-size:13px;font-weight:600;
  transition:background .15s,transform .1s ease-out}
.copy-row button:active{transform:scale(.95)}
.copy-row button.is-done{background:var(--peach)}
.btn-danger{background:transparent;color:var(--error);box-shadow:inset 0 0 0 1.5px rgba(240,162,150,.38)}
.btn-danger:active:not(:disabled){background:rgba(240,162,150,.1)}
.btn.is-loading::after{content:"";width:16px;height:16px;flex:none;border-radius:50%;border:2px solid currentColor;border-right-color:transparent;animation:spin .8s linear infinite}
.list .danger{color:var(--error)}

/* WiFi (firmware 0.9.8+): the sheet, and the owner's list of Helders on WiFi */
#sheetWifi h2,#sheetWifi .sheet-lede{text-align:center}
.wifi-now{margin-top:18px;padding:14px 18px;border-radius:18px;background:var(--well)}
.wifi-now:empty{display:none}
.wifi-now p{font-size:15.5px;line-height:1.45;text-wrap:pretty}
.wifi-now p + p{margin-top:6px}
.wifi-now .muted{font-size:13.5px}
.wifi-ok::before{content:'';display:inline-block;width:8px;height:8px;margin:0 8px 1px 0;border-radius:50%;background:#9CCB8E;vertical-align:middle}
.wifi-bad{color:var(--error)}
.wifi-form{display:flex;flex-direction:column;gap:10px;margin-top:18px}
.wifi-form[hidden]{display:none}
.wifi-label{font-size:14px;color:var(--text-3)}
.wifi-nets{display:flex;flex-direction:column;border-radius:18px;background:var(--well);overflow:hidden}
.wifi-looking{padding:14px 18px}
.wifi-net{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:50px;padding:10px 18px;border:0;
  background:none;color:var(--cream);font:inherit;font-size:15.5px;text-align:left;box-shadow:inset 0 -1px 0 var(--hair);transition:background .15s}
.wifi-net:last-child{box-shadow:none}
.wifi-net span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wifi-net small{flex:none;font-size:13px;color:var(--text-3)}
.wifi-net[aria-checked="true"]{background:rgba(217,158,118,.16)}
.wifi-net[aria-checked="true"] span::after{content:' ✓';color:var(--peach)}
.wifi-form .field[hidden]{display:none}
.devs{display:flex;flex-direction:column;gap:12px}
.dev{padding:16px 18px;border-radius:20px;background:var(--well)}
.dev-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:6px}
.dev-head b{font-size:17px;font-weight:600}
.dev-pill{margin-left:auto;padding:3px 10px;border-radius:999px;font-size:12.5px;background:rgba(251,246,238,.07);color:var(--text-3)}
.dev-pill.on{background:rgba(156,203,142,.16);color:#BFE2B2}
.dev-line{font-size:14px;color:var(--text-2);line-height:1.5}
.dev-set{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px 14px;margin-top:12px}
.dev-set label{display:flex;flex-direction:column;gap:4px;font-size:13px;color:var(--text-3)}
.dev-set label small{display:none}
.dev-set input{width:104px;height:42px;padding:0 14px;border-radius:12px;border:1.5px solid var(--field-line);background:transparent;
  color:var(--cream);font:inherit;font-size:15px;font-variant-numeric:tabular-nums}
.dev-set input::placeholder{color:var(--text-3);opacity:.7}
.dev-set input:focus{outline:none;border-color:var(--peach)}
.dev-note{margin-top:8px;font-size:13px;color:var(--text-3)}

/* feedback */
.sheet-form{text-align:left}
.fb{display:flex;flex-direction:column;gap:12px}
.fb-head{display:grid;grid-template-columns:56px minmax(0,1fr);gap:14px;align-items:start;margin-bottom:4px}
.fb-head img{width:56px;height:56px;border-radius:50%;object-fit:cover;background:#2a1e15}
.fb-head h2{font-size:22px;line-height:1.15}
.fb-head p{margin-top:6px;font-size:15px;line-height:1.5;color:var(--text-2);text-wrap:pretty}
.fb-kinds{margin-top:2px}
.fb .btn.is-loading .ico{display:none}
.fb .btn.is-loading::after{content:"";width:16px;height:16px;border-radius:50%;border:2px solid currentColor;border-right-color:transparent;animation:spin .8s linear infinite}
.fb-done{text-align:center;padding-top:8px}

/* a notice, not a button: dark glass like the bar, a small mark for good news or a problem, nothing to press */
.toast{position:fixed;left:50%;top:calc(14px + env(safe-area-inset-top));z-index:90;width:max-content;max-width:min(460px,calc(100vw - 32px));
  display:flex;align-items:center;gap:11px;padding:10px 18px 10px 11px;border-radius:18px;
  background:rgba(52,39,29,.86);-webkit-backdrop-filter:blur(24px) saturate(160%);backdrop-filter:blur(24px) saturate(160%);
  box-shadow:inset 0 0 0 1px rgba(255,240,225,.1),0 16px 44px rgba(0,0,0,.45);
  color:var(--cream);font-size:14.5px;font-weight:500;line-height:1.35;letter-spacing:-.003em;
  pointer-events:none;-webkit-user-select:none;user-select:none;cursor:default;
  transform:translate(-50%,-140%);transition:transform .5s var(--spring)}
.toast-ico{width:24px;height:24px;flex:none;display:grid;place-items:center;border-radius:50%;background:rgba(251,246,238,.1);color:var(--text-2)}
.toast-ico:empty::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.toast-ico svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.toast.is-ok .toast-ico{background:rgba(217,158,118,.2);color:var(--peach-soft)}
.toast.is-error .toast-ico{background:rgba(240,162,150,.18);color:var(--error)}
.toast.on{transform:translate(-50%,0)}

/* phone only */
@media (max-width:639px){
  .card-head-stack{flex-direction:column;align-items:stretch}
  .card-head-stack .btn{width:100%}
  .card-head-stack .btn-row{flex-direction:column}
}
/* the smallest phones: the three figures stack in a column */
@media (max-width:359px){
  .figs{grid-template-columns:minmax(0,1fr)}
  .tile-word{font-size:22px}
}

/* ===================================================================== */
/*  Tablet & desktop                                                      */
/* ===================================================================== */
@media (min-width:640px){
  .kpis-4{grid-template-columns:repeat(4,minmax(0,1fr))}
  .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .card-wide,.span-2{grid-column:1 / -1}
  .profile-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .diag{grid-template-columns:repeat(4,minmax(0,1fr))}
  .card{padding:26px 28px;border-radius:30px}
  .pill-btn{width:auto;padding:0 15px 0 13px}
  .pill-btn span{display:inline}
  .tiles{gap:16px}
  .tile{padding:20px 22px 18px;border-radius:30px}
  .tile-wide{padding:20px 22px 16px}
  .tile-value{font-size:42px}
  .tile-word{font-size:28px}
  /* the sign-in on a portrait tablet: the homepage's tablet composition. The photo is wider than the
     screen (no side edges); in it the band runs from 14.8% to 47.1% of its width down from its top. */
  .auth{--tw:max(1000px,118vw);--bt:118px}
  .auth-art{top:calc(var(--bt) - var(--tw) * .148);height:calc(var(--tw) / 1.506);
    -webkit-mask-image:linear-gradient(180deg,#000 62%,transparent 92%);mask-image:linear-gradient(180deg,#000 62%,transparent 92%)}
  .auth-art img{left:-80px;top:0;width:var(--tw);-webkit-mask-image:none;mask-image:none}
  .auth h1{margin-top:calc(var(--bt) + var(--tw) * .323 - 22px);font-size:54px}
}

/* two columns: the controls on the left, the stats on the right, all on one screen */
@media (min-width:900px){
  :root{--top-h:76px}

  /* the sign-in: the homepage hero. The render on the left, as tall as the screen, with the band's end
     40px left of the middle; its right side fades into a gradient sampled from its own backdrop, and its
     bottom melts into the page. The words on the right. */
  .auth{display:flex;align-items:center;background:var(--page);
    --hh:max(100vh,680px);--iw:max(calc(var(--hh) * 1.506),calc((50vw - 40px) / .575))}
  .auth::after{content:"";position:absolute;z-index:-1;left:0;right:0;bottom:0;height:200px;pointer-events:none;
    background:linear-gradient(180deg,rgba(32,22,15,0) 0%,rgba(32,22,15,.6) 60%,var(--page) 100%)}
  .auth-art{top:50%;height:calc(var(--iw) / 1.506);transform:translateY(-50%);-webkit-mask-image:none;mask-image:none;
    background:linear-gradient(180deg,#331C0F 0%,#2E180C 10%,#2C160A 20%,#2A1509 30%,#291409 40%,#281409 50%,#281308 60%,#261208 70%,#241107 80%,#210E05 90%,#1C0A02 100%)}
  .auth-art img{top:0;left:min(0px,calc(50vw - 40px - var(--hh) * .866));width:var(--iw);height:100%;
    -webkit-mask-image:linear-gradient(90deg,#000 62%,transparent 82%);mask-image:linear-gradient(90deg,#000 62%,transparent 82%)}
  .auth-inner{max-width:none;width:50%;margin:0 0 0 50%;padding:96px 48px 64px 40px}
  .auth-inner > *:not(.logo){max-width:440px}
  .auth .logo{top:calc(var(--top-h) / 2 - 15px);left:max(40px,calc((100% - 1240px) / 2 + 40px))}
  .auth h1{margin-top:0;font-size:58px}
  .auth .lede{font-size:19px}
  .auth-links{align-items:flex-start}
  .auth-links > .link{padding-left:0;padding-right:0}
  /* the bar's contents line up with the page's: the wordmark over the controls, the buttons over the stats */
  .topbar{padding:0 max(40px,calc((100% - 1240px) / 2 + 40px))}
  .logo img{height:30px}
  .top-link{display:inline-flex}
  .device-chip{height:40px;max-width:280px}
  .avatar,.pill-btn{height:40px}
  .avatar{width:40px}
  main{padding:4px 40px 40px}

  .greet{margin:4px 0 22px}
  .greet h1{font-size:36px}
  .greet p{font-size:17px}

  .home{display:grid;grid-template-columns:minmax(340px,430px) minmax(0,1fr);gap:20px;align-items:stretch}
  .control{justify-content:center;padding:26px 30px 24px;border-radius:32px;background:var(--card);box-shadow:var(--card-hi)}
  .dial{width:min(290px,40dvh);margin:6px auto 20px}
  .dial-hero{font-size:min(88px,11.5dvh)}

  .stats{display:flex;flex-direction:column;margin-top:0}
  .stats-title{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
  .stats-stage{flex:1}
  .tiles{height:100%;grid-template-rows:minmax(0,1.25fr) minmax(0,1fr);gap:20px}
  .tile{padding:22px 24px 20px;border-radius:32px}
  .tile-wide{padding:22px 24px 16px}
  .tile-value{font-size:46px}
  /* the half cards are narrow on a small laptop: the word shrinks with them rather than wrapping */
  .tile-word{font-size:clamp(23px,2.45vw,32px)}
  .tile-top{font-size:16px}
  .fog i{width:20px;height:20px}
  .week{max-width:280px}
  .wd i{width:18px;height:18px}
  /* an opened card: a wide pop-up in the middle, everything in view without scrolling */
  /* one roomy column; a long one scrolls under its tabs, with no bar: the content just
     slides under soft edges at the top and bottom */
  .sheet.sheet-stat{display:flex;flex-direction:column;width:min(620px,calc(100vw - 64px));overflow:hidden;padding:24px 0 0}
  .sheet-stat .detail-head{position:static;flex:none;margin:0;padding:0 36px 6px;background:none}
  .sheet-stat .detail-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:14px 36px 40px;
    scrollbar-width:none;
    -webkit-mask-image:linear-gradient(180deg,transparent 0,#000 14px,#000 calc(100% - 36px),transparent 100%);
    mask-image:linear-gradient(180deg,transparent 0,#000 14px,#000 calc(100% - 36px),transparent 100%)}
  .sheet-stat .detail-body::-webkit-scrollbar{display:none}
  .cal{gap:8px 6px}

  .view-head h1{font-size:40px}

  .sheet{left:50%;right:auto;top:50%;bottom:auto;width:460px;max-height:88vh;border-radius:32px;padding:28px 32px 30px;
    box-shadow:0 30px 80px rgba(0,0,0,.45);
    opacity:0;transform:translate(-50%,-50%) scale(.9);transition:transform .5s var(--spring),opacity .2s ease-out}
  .sheet.on{opacity:1;transform:translate(-50%,-50%)}
  .sheet-form,#sheetDone,#sheetConnect{width:520px}
  .sheet-grab{display:none}
  .sheet-art{margin-top:-28px;margin-left:-32px;margin-right:-32px}
  .toast{top:92px}
}

@media (min-width:1100px){
  .home{grid-template-columns:430px minmax(0,1fr);gap:24px}
  .stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .stat-grid .card-wide{grid-column:span 3}
  .stat-grid .span-2{grid-column:span 2}
  #view-owner .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  #view-owner .stat-grid .card-wide{grid-column:span 2}
}

/* hover only where the pointer can hover: on a phone a tapped control would otherwise stay "hovered" */
@media (hover:hover){
  .btn-peach:hover:not(:disabled){background:var(--peach-hover)}
  .btn:hover:not(:disabled) .ico{transform:translateX(3px)}
  .btn-ghost:hover:not(:disabled){box-shadow:inset 0 0 0 1.5px rgba(251,246,238,.6)}
  .link:hover{color:var(--peach)}
  .chip:hover{background:rgba(251,246,238,.12)}
  .device-chip:hover,.pill-btn:hover,.close:hover{background:rgba(251,246,238,.14)}
  .top-link:hover{color:var(--cream)}
  .btn-go.is-stop:hover:not(:disabled){background:rgba(251,246,238,.1)}
  .stepper button:hover:not(:disabled){background:rgba(251,246,238,.14)}
  .tile:hover{background-color:rgba(251,246,238,.045)}
  .tile:hover .tile-go{color:var(--cream);transform:translateX(2px)}
  .tile:active{transform:scale(.985)}
  .btn-cream:hover:not(:disabled){background:var(--sand)}
  .btn-danger:hover:not(:disabled){background:rgba(240,162,150,.08);box-shadow:inset 0 0 0 1.5px rgba(240,162,150,.6)}
  .copy-row button:hover:not(.is-done){background:var(--sand)}
  .chip[aria-pressed="true"]:hover{background:var(--sand)}
  .tabs button:not([aria-selected="true"]):hover{color:rgba(251,246,238,.6)}
  .back:hover{color:var(--peach-hover)}
}

/* Reduced motion: gentler, not dead. Movement becomes cross-fades; colour and
   opacity changes stay, and so does the spinner (it shows work, it isn't travel). */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important}
  .auth-form.is-loading .btn::after,.fb .btn.is-loading::after{animation:spin .8s linear infinite!important}
  .seg-thumb,.seg-ink{transition:transform .15s ease-out}
  .toast{opacity:0;transform:translate(-50%,0);transition:opacity .2s}
  .toast.on{opacity:1}
  .sheet{transform:none;opacity:0;transition:opacity .22s}
  .sheet.on{transform:none;opacity:1}
  .tile,.tile:hover,.tile:active{transform:none}
  .dial-ring circle{transition:opacity .2s}
}
@media (prefers-reduced-motion:reduce) and (min-width:900px){
  .sheet,.sheet.on{transform:translate(-50%,-50%)}
}
/* Reduced transparency: frosted bars and the blurred scrim become solid */
@media (prefers-reduced-transparency:reduce){
  .topbar::before{background:var(--roast);-webkit-backdrop-filter:none;backdrop-filter:none}
  .topbar::after{display:none}
  .scrim{background:rgba(12,8,5,.8);-webkit-backdrop-filter:none;backdrop-filter:none}
  .toast{background:#3a2b20;-webkit-backdrop-filter:none;backdrop-filter:none}
}
/* Increased contrast: brighter secondary text, defined edges */
@media (prefers-contrast:more){
  :root{--text-2:#EFE5DA;--text-3:#D8CBBC;--field-line:#B2A091;--hair:rgba(255,240,225,.3);
    --card-hi:inset 0 0 0 1.5px rgba(255,240,225,.45)}
  .seg,.chip,.device-chip,.pill-btn,.prof,.list,.tile{box-shadow:inset 0 0 0 1.5px rgba(255,240,225,.45)}
  .topbar::after{display:none}
  .topbar.is-scrolled{box-shadow:0 1px 0 var(--hair)}
}
