/* marketingapp.io — one light, graphic look. Tokens first; components only use tokens.
   Principles: colour is reserved for data, structure comes from space and hairlines,
   one type scale (11/13/15/17/22/34/48), one easing family, motion only where it explains. */

.onboarding-entry { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 26px; margin: 0 0 24px; border-radius: 20px; background: #eaf0e7; }
.onboarding-entry strong { font-size: 15px; font-weight: 600; }
.onboarding-entry p { max-width: 64ch; margin: 6px 0 0; color: var(--text-2); font-size: 13px; line-height: 1.5; }
.onboarding-entry a { flex: none; }
@media (max-width: 620px) { .onboarding-entry { align-items: flex-start; flex-direction: column; padding: 20px; } }

:root {
  color-scheme: only light;
  --canvas: #f5f5f7;
  --surface: #ffffff;
  --fill: #f2f2f4;          /* quiet fills: tracks, chips, hover */
  --fill-2: #e8e8ed;
  --hairline: rgba(0, 0, 0, .06);
  --hairline-2: rgba(0, 0, 0, .1);
  --text: #1d1d1f;
  --text-2: #5f5f66;
  --text-3: #66666c;
  --text-4: #66666c;
  --ink: #1d1d1f;

  --green: #34c759;  --green-ink: #248a3d;  --green-soft: #e8f7ec;
  --orange: #ff9f0a; --orange-soft: #fff3e0;
  --indigo: #5e5ce6; --indigo-soft: #efeffd;
  --blue: #0a84ff;   --blue-soft: #e7f1ff;
  --pink: #ff375f;   --pink-soft: #ffebef;  --pink-ink: #d70f3c;

  --wash-green: radial-gradient(120% 120% at 0% 0%, #e3f5e6 0%, #f3faf4 55%, #fff 100%);
  --wash-orange: radial-gradient(110% 110% at 100% 0%, #ffe9d2 0%, #fff4e9 50%, #fff 100%);
  --wash-pink: radial-gradient(110% 110% at 100% 0%, #ffe3e9 0%, #fff3f5 50%, #fff 100%);

  --r-card: 24px; --r-inner: 14px; --r-control: 12px;
  --lift: 0 1px 2px rgba(0, 0, 0, .03);
  --lift-hover: 0 1px 2px rgba(0, 0, 0, .03), 0 18px 40px -22px rgba(0, 0, 0, .22);
  --float: 0 0 0 .5px rgba(0, 0, 0, .08), 0 24px 60px -18px rgba(0, 0, 0, .28);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Helvetica Neue", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --ease-spring: cubic-bezier(.34, 1.36, .64, 1); /* small overshoot: growth moments only (logo arrow, step dots) */
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --motion-press: 120ms;
  --motion-hover: 160ms;
  --motion-enter: 220ms;
  --motion-exit: 160ms;
  --motion-disclosure: 240ms;
  --motion-drawer: 280ms;
  --motion-chart: 600ms;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--canvas); scrollbar-gutter: stable; }
body {
  margin: 0; background: var(--canvas); color: var(--text); font: 15px/1.47 var(--font); letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
svg.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 45%, transparent); outline-offset: 2px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::selection { background: color-mix(in srgb, var(--blue) 22%, transparent); }

/* ── shell ──────────────────────────────────────────────────────────── */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.side { position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; padding: 28px 16px 16px; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 10px 24px; text-decoration: none; }
/* logo: accurate vector, every part its own <use> so it can move on its own */
.brand-logo { display: block; width: 196px; height: auto; overflow: visible; fill: var(--text); fill-rule: evenodd; }
.brand-logo use { transform-box: fill-box; }
.side-head { display: flex; align-items: flex-start; gap: 8px; }
.side-head .brand { flex: 1; min-width: 0; }
.side .menu-close { display: none; }
.logo-roof { transform-origin: 50% 100%; }
.logo-arrow { transform-origin: 0 100%; transition: transform var(--motion-hover) var(--ease-spring); }
.logo-word use { transform-origin: 50% 100%; }
/* arrival, once per session (class set before first paint): the roof rises from the baseline,
   the arrow shoots up and to the right, the letters settle in reading order */
html.logo-intro .logo-roof { animation: logo-rise 700ms var(--ease) both; }
html.logo-intro .logo-arrow { animation: logo-shoot 760ms var(--ease-spring) 220ms both; }
html.logo-intro .logo-word use { animation: logo-letter 520ms var(--ease) both; animation-delay: calc(360ms + var(--i) * 28ms); }
@keyframes logo-rise { from { opacity: 0; transform: translateY(70px); } }  /* rises, never distorts */
@keyframes logo-shoot { from { opacity: 0; transform: translate(-40px, 40px) scale(.7); } }
@keyframes logo-letter { from { opacity: 0; transform: translateY(46px); } }
.search {
  display: none; align-items: center; gap: 10px; width: 100%; height: 36px; margin: 0 0 20px; padding: 0 8px 0 10px; font: inherit; font-size: 13px; color: var(--text-3);
  background: color-mix(in srgb, var(--fill-2) 70%, transparent); border: 0; border-radius: 10px; cursor: pointer; text-align: left; box-shadow: none;
  transition: background-color var(--motion-hover) ease;
}
.search svg { width: 16px; height: 16px; }
.js .search { display: flex; }
.search span { flex: 1; }
kbd { font: 500 11px/1 var(--font); color: var(--text-3); padding: 4px 6px; border-radius: 6px; background: var(--surface); box-shadow: 0 0 0 .5px var(--hairline-2); }
.nav { display: grid; gap: 1px; }
.nav-label { margin: 22px 10px 8px; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-4); font-weight: 600; }
.nav a {
  display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 10px; border-radius: 10px;
  text-decoration: none; color: var(--text-2); font-size: 14px; font-weight: 450; transition: background-color var(--motion-hover) ease, color var(--motion-hover) ease;
}
.nav a svg { color: var(--text-3); transition: color var(--motion-hover) ease; }
.nav a[aria-current="page"] { background: var(--surface); color: var(--text); font-weight: 550; box-shadow: var(--lift), 0 0 0 .5px var(--hairline); }
.nav a[aria-current="page"] svg { color: var(--text); }
.side-foot { margin-top: auto; padding-top: 20px; }
.ws-card {
  display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; text-decoration: none;
  background: var(--surface); box-shadow: var(--lift), 0 0 0 .5px var(--hairline); transition: box-shadow var(--motion-hover) var(--ease), transform var(--motion-press) var(--ease);
}
.ws-card > span:nth-of-type(1) { min-width: 0; flex: 1; }
.ws-card strong { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-card small { display: block; color: var(--text-3); font-size: 12px; }
.ws-card .chev { flex: none; width: 24px; height: 24px; display: grid; place-items: center; color: var(--text-4); transition: transform var(--motion-hover) var(--ease), color var(--motion-hover) ease; }
.ws-card .chev svg { width: 16px; height: 16px; }
.dot-logo, .ws-photo { width: 34px; height: 34px; flex: none; border-radius: 10px; }
.dot-logo { padding: 7px; background: var(--fill); fill: var(--text); fill-rule: evenodd; }
.ws-photo { object-fit: cover; }

.scrim { display: none; }
.main { min-width: 0; }
.topbar { display: none; }
.page { padding: 40px 48px 56px 24px; max-width: 1480px; view-transition-name: page; animation: page-arrive var(--motion-enter) var(--ease) both; }
.page.narrow { max-width: 820px; margin: 0 auto; padding-left: 48px; }

/* header */
.account-row { position: relative; z-index: 2; display: flex; justify-content: flex-end; margin: -12px 0 12px; }
.hello { position: relative; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.hello p { margin: 0; color: var(--text-3); font-size: 17px; letter-spacing: -.02em; }
.hello h1 { margin: 2px 0 0; font-size: 48px; line-height: 1.04; font-weight: 600; letter-spacing: -.035em; }
.hello .sub { margin-top: 8px; color: var(--text-2); font-size: 15px; }
.tools { display: flex; align-items: center; gap: 8px; padding-top: 4px; margin-left: auto; }
.date { color: var(--text-2); font-size: 13px; margin-right: 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.icon-btn {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 0; padding: 0;
  background: var(--surface); color: var(--text); text-decoration: none; box-shadow: var(--lift), 0 0 0 .5px var(--hairline-2);
  transition: transform var(--motion-press) var(--ease), box-shadow var(--motion-hover) ease, opacity var(--motion-hover) ease; cursor: pointer;
}
.icon-btn:active { transform: scale(.94); }
.icon-btn[aria-disabled="true"] { opacity: .3; pointer-events: none; box-shadow: 0 0 0 .5px var(--hairline-2); }
.icon-btn svg { width: 16px; height: 16px; }
.avatar { position: relative; margin-left: 10px; }
.avatar > summary {
  list-style: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; overflow: hidden;
  font-weight: 600; font-size: 14px; color: var(--text); background: var(--fill-2); box-shadow: 0 0 0 .5px var(--hairline-2);
  transition: box-shadow var(--motion-hover) ease, transform var(--motion-press) var(--ease);
}
.avatar > summary::-webkit-details-marker { display: none; }
.menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 30; min-width: 240px; padding: 6px; border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: var(--float); transform-origin: top right;
}
.menu .who { padding: 10px 10px 12px; margin-bottom: 4px; font-size: 12px; color: var(--text-3); border-bottom: .5px solid var(--hairline-2); word-break: break-all; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; height: 36px; padding: 0 10px; border-radius: 10px; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 450; color: var(--text); text-decoration: none; cursor: pointer; box-shadow: none; }
.menu a svg, .menu button svg { color: var(--text-3); width: 16px; height: 16px; }


/* ── overview grid ─────────────────────────────────────────────────── */
.overview {
  display: grid; gap: 16px; margin-top: 32px; align-items: stretch;
  grid-template-columns: minmax(320px, 1.3fr) repeat(3, minmax(0, 1fr));
  grid-template-areas: "hero c1 c2 c3" "hero c4 c5 c6" "hero tl tl in";
}
.overview > .hero { grid-area: hero; }
.overview > .card:nth-of-type(1) { grid-area: c1; } .overview > .card:nth-of-type(2) { grid-area: c2; }
.overview > .card:nth-of-type(3) { grid-area: c3; } .overview > .card:nth-of-type(4) { grid-area: c4; }
.overview > .card:nth-of-type(5) { grid-area: c5; } .overview > .card:nth-of-type(6) { grid-area: c6; }
.overview > .timeline { grid-area: tl; } .overview > .insights { grid-area: in; }

/* hero — the business, with three measured points. A photo when one exists, else the figure. */
.hero { position: relative; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.stage-wrap { flex: 1; display: grid; place-items: center; min-height: 0; }
.stage { position: relative; width: 100%; max-width: 440px; aspect-ratio: 400 / 520; isolation: isolate; }
.stage > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: -1; }
.photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1;
  -webkit-mask-image: radial-gradient(closest-side at 54% 46%, #000 58%, transparent 100%);
          mask-image: radial-gradient(closest-side at 54% 46%, #000 58%, transparent 100%);
  animation: develop var(--motion-chart) var(--ease) both;
}
@keyframes develop { from { opacity: 0; transform: scale(1.015); } }
.orb { transform-box: fill-box; transform-origin: center; animation: breathe 14s var(--ease-io) infinite; }
.blob { transform-box: fill-box; transform-origin: center; }
.blob.b1 { animation: drift1 18s var(--ease-io) infinite; }
.blob.b2 { animation: drift2 22s var(--ease-io) infinite; }
.blob.b3 { animation: drift3 26s var(--ease-io) infinite; }
.rings circle { fill: none; stroke: #000; stroke-opacity: .06; }
.rings circle:nth-child(2) { stroke-dasharray: 1 6; stroke-opacity: .14; }
@keyframes breathe { 50% { transform: scale(1.012); } }
@keyframes drift1 { 50% { transform: translate(14px, -10px) scale(1.06); } }
@keyframes drift2 { 50% { transform: translate(-12px, 10px) scale(.95); } }
@keyframes drift3 { 50% { transform: translate(8px, 14px) scale(1.04); } }

.spot { position: absolute; display: flex; align-items: center; text-decoration: none; transform: translateY(-50%); }
.spot .read { flex: none; white-space: nowrap; text-align: right; }
.spot .read small { display: block; font-size: 13px; color: var(--text-2); font-weight: 500; }
.spot .read b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -.03em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.spot .read b em { font-style: normal; font-size: 13px; font-weight: 500; letter-spacing: -.01em; color: var(--text-2); margin-left: 3px; }
.spot .read b.text { font-size: 15px; letter-spacing: -.015em; line-height: 1.3; white-space: normal; max-width: 190px; }
.spot .read .st { display: block; font-size: 12px; color: var(--text-3); }
.spot .lead { height: 1px; width: 40px; margin: 0 4px; background: rgba(0, 0, 0, .22); transform: scaleX(0); transform-origin: right; animation: lead var(--motion-chart) var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
.spot.flip { flex-direction: row-reverse; }
.spot.flip .lead { transform-origin: left; }
.spot.flip .read, .has-photo .spot .read { text-align: left; padding: 8px 12px; border-radius: 14px; background: rgba(255, 255, 255, .66); backdrop-filter: blur(12px) saturate(1.4); -webkit-backdrop-filter: blur(12px) saturate(1.4); box-shadow: 0 0 0 .5px rgba(255, 255, 255, .7); }
.has-photo .spot:not(.flip) .read { text-align: right; }
.has-photo .spot .lead { background: rgba(255, 255, 255, .85); }
@keyframes lead { to { transform: scaleX(1); } }
.pin { position: relative; width: 24px; height: 24px; flex: none; display: grid; place-items: center; }
.pin::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff6cf; box-shadow: 0 0 0 1.5px #fff, 0 0 12px 2px rgba(255, 236, 160, .9); z-index: 1; }
.pin::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .9); background: rgba(255, 255, 255, .14); animation: ping 3.2s var(--ease) infinite; animation-delay: calc(1.2s + var(--i, 0) * .8s); }
.spot.empty .pin::before { background: #fff; box-shadow: 0 0 0 1.5px var(--text-4); }
.spot.empty .pin::after { border-color: var(--text-4); animation: none; opacity: .5; }
@keyframes ping { 0% { transform: scale(.7); opacity: 1; } 70%, 100% { transform: scale(1.6); opacity: 0; } }

.next { padding: 22px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--lift), 0 0 0 .5px var(--hairline); }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: live 2.6s var(--ease) infinite; }
@keyframes live { 50% { opacity: .55; transform: scale(.85); } }
.next h2 { margin: 10px 0 4px; font-size: 22px; font-weight: 600; letter-spacing: -.025em; line-height: 1.2; }
.next p { margin: 0 0 18px; color: var(--text-2); font-size: 15px; }
.cta {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px 0 20px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 15px; white-space: nowrap;
  background: var(--ink); color: #fff; border: 0; cursor: pointer; transition: transform var(--motion-press) var(--ease), background-color var(--motion-hover) ease;
}
.cta svg { width: 16px; height: 16px; transition: transform var(--motion-hover) var(--ease); }
.cta:active { transform: scale(.97); }

/* cards: one anatomy — label, value, unit, graphic, footnote */
.card {
  position: relative; display: flex; flex-direction: column; min-height: 212px; padding: 18px 20px; border-radius: var(--r-card); text-decoration: none;
  background: var(--surface); box-shadow: var(--lift), 0 0 0 .5px var(--hairline); overflow: hidden; isolation: isolate;
  transition: transform var(--motion-hover) var(--ease), box-shadow var(--motion-hover) ease;
}
a.card:active { transform: translateY(0) scale(.99); transition-duration: var(--motion-press); }
.card.mint { background: var(--wash-green); } .card.peach { background: var(--wash-orange); } .card.rose { background: var(--wash-pink); }
.card-head { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 500; color: var(--text-2); }
.go { width: 16px; height: 16px; color: var(--text-4); transition: transform var(--motion-hover) var(--ease), color var(--motion-hover) ease; }
.big { display: flex; align-items: baseline; gap: 6px; margin-top: 14px; font-size: 40px; line-height: 1; font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.big small { font-size: 15px; font-weight: 500; letter-spacing: -.015em; color: var(--text-2); }
.big.none { color: var(--text-4); font-weight: 400; }
.unit { margin-top: 6px; font-size: 13px; color: var(--text-3); }
.pill { display: inline-flex; align-self: flex-start; align-items: center; height: 22px; margin-top: 12px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--fill); color: var(--text-2); font-variant-numeric: tabular-nums; }
.pill.up { background: color-mix(in srgb, var(--green) 16%, #fff); color: var(--green-ink); }
.pill.down { background: var(--pink-soft); color: var(--pink-ink); }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 12px; font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.foot b { font-weight: 500; color: var(--text); }
.viz { position: absolute; z-index: -1; pointer-events: none; }

/* goal: baseline→target scale */
.scale { position: relative; height: 2px; margin-top: auto; border-radius: 2px; background: linear-gradient(90deg, color-mix(in srgb, var(--green) 18%, transparent), color-mix(in srgb, var(--green) 60%, transparent)); }
.scale + .foot { padding-top: 10px; }
.scale i { position: absolute; top: 50%; left: var(--pos); width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px #fff, 0 1px 3px 3px rgba(0, 0, 0, .06); animation: marker-arrive var(--motion-enter) var(--ease) both; }
@keyframes marker-arrive { from { opacity: 0; transform: translateY(3px); } }

/* time: each planned task as its share of the available minutes */
.state { position: absolute; right: 20px; top: 66px; font-size: 13px; color: var(--text-2); }
.capacity { display: flex; gap: 3px; height: 10px; margin-top: auto; padding: 0; border-radius: 999px; background: var(--fill); overflow: hidden; }
.capacity span { flex: none; width: var(--w); border-radius: 999px; background: color-mix(in srgb, var(--orange) 38%, #fff); transform-origin: left;
  animation: fill var(--motion-chart) var(--ease) both; animation-delay: min(calc(var(--i) * 60ms), 240ms); }
.capacity span.done { background: var(--orange); }
.capacity span.blocked { background: var(--pink); }
.range { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-3); padding-top: 10px; font-variant-numeric: tabular-nums; }

/* bars */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 64px; margin: auto 0 0; }
.bars span { flex: 1; max-width: 8px; min-width: 4px; border-radius: 3px; height: var(--h); background: color-mix(in srgb, var(--indigo) 22%, transparent);
  transform-origin: bottom; animation: grow var(--motion-chart) var(--ease) both; animation-delay: min(calc(var(--i) * 35ms), 140ms); }
.bars.tasks-bars span { max-width: 14px; }
.bars span.done { background: var(--indigo); }
.bars span.doing { background: linear-gradient(180deg, var(--indigo), color-mix(in srgb, var(--indigo) 35%, transparent)); }
.bars span.blocked { background: var(--pink); }
.bars.effort span { max-width: 14px; background: var(--fill-2); }
.bars.effort span.known { background: #c7c7cc; }
.bars.effort span.last { background: var(--text-2); }
.bars.ghost span { animation: none; transform: none; background: var(--fill); }
@keyframes grow { from { transform: scaleY(.08); opacity: .35; } to { transform: scaleY(1); opacity: 1; } }
.progress { height: 6px; border-radius: 6px; background: var(--fill); overflow: hidden; margin-top: 12px; }
.progress i { display: block; height: 100%; width: var(--pct); border-radius: inherit; background: var(--green); transform-origin: left; animation: fill var(--motion-chart) var(--ease) both; }
@keyframes fill { from { transform: scaleX(.08); opacity: .35; } to { transform: scaleX(1); opacity: 1; } }

/* trend line */
.spark { width: 100%; height: 60px; margin: auto 0 0; overflow: visible; }
.spark .line { fill: none; stroke: var(--blue); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw var(--motion-chart) var(--ease) both; }
.spark .area { fill: url(#blueFade); animation: appear var(--motion-chart) ease both; }
.spark .end { fill: var(--blue); stroke: #fff; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: marker-arrive var(--motion-enter) var(--ease) both; }
.spark .ghost { fill: none; stroke: var(--fill-2); stroke-width: 1.5; stroke-dasharray: 2 5; stroke-linecap: round; }
@keyframes draw { from { stroke-dashoffset: var(--arc-start, 1); } to { stroke-dashoffset: 0; } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }


/* gauge */
.gauge { width: 136px; height: 74px; margin: auto auto 0; display: block; overflow: visible; }
.gauge .track { fill: none; stroke: rgba(0, 0, 0, .16); stroke-width: 1.25; stroke-dasharray: 1 5; stroke-linecap: round; }
.gauge .arc { fill: none; stroke: var(--pink); stroke-width: 3; stroke-linecap: round; animation: draw var(--motion-chart) var(--ease) both; }
.gauge .needle { stroke: rgba(0, 0, 0, .28); stroke-width: 1; }
.gauge .knob { fill: var(--blue); stroke: #fff; stroke-width: 2; }
.gauge .hand { transform-box: view-box; transform-origin: 68px 68px; transform: rotate(var(--deg)); animation: needle var(--motion-chart) var(--ease) both; }
@keyframes needle { from { transform: rotate(-90deg); } to { transform: rotate(var(--deg)); } }
.gauge .knob.rest { fill: var(--text-4); animation: appear var(--motion-chart) ease both; }

/* timeline + insights panels */
.panel { padding: 20px 22px 18px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--lift), 0 0 0 .5px var(--hairline); min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; min-height: 32px; margin-bottom: 18px; }
.panel-head h2 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.022em; }
.panel-head h2 small { margin-left: 8px; font-size: 13px; font-weight: 400; color: var(--text-3); letter-spacing: -.01em; }
.panel-head a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; box-shadow: 0 0 0 .5px var(--hairline-2); transition: background-color var(--motion-hover) ease; }
.track { position: relative; height: 20px; margin: 38px 0 8px; border-radius: 999px; background: var(--fill); }
.seg { position: absolute; top: 4px; bottom: 4px; border-radius: 999px; left: var(--l); width: var(--w); transform-origin: left; animation: fill var(--motion-chart) var(--ease) both; animation-delay: min(calc(var(--i) * 35ms), 140ms); }
.seg.done { background: var(--green); } .seg.doing { background: var(--blue); } .seg.todo { background: var(--orange); }
.seg.blocked { background: var(--pink); } .seg.skipped { background: var(--text-4); }
.now { position: absolute; top: -8px; bottom: -8px; width: 1.5px; margin-left: -.75px; background: var(--ink); left: var(--x); animation: drop var(--motion-enter) var(--ease) both; }
.now b { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); padding: 3px 8px; border-radius: 7px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 600; white-space: nowrap; letter-spacing: 0; }
.now b::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -4px; border: 4px solid transparent; border-top-color: var(--ink); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
.days { display: grid; grid-template-columns: repeat(7, 1fr); font-size: 11px; color: var(--text-3); text-align: center; font-variant-numeric: tabular-nums; }
.days .today { color: var(--text); font-weight: 600; }
.rows { list-style: none; margin: 18px 0 0; padding: 0; display: grid; }
.rows li + li { border-top: .5px solid var(--hairline); }
.rows a { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 11px 10px; margin: 0 -10px; border-radius: 12px; text-decoration: none; transition: background-color var(--motion-hover) ease; }
.rows .dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.done { background: var(--green); } .dot.doing { background: var(--blue); } .dot.todo { background: var(--orange); } .dot.blocked { background: var(--pink); } .dot.skipped { background: var(--text-4); }
.rows strong { display: block; font-size: 14px; font-weight: 500; letter-spacing: -.012em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows small { font-size: 12px; color: var(--text-3); }
.rows em { font-style: normal; font-size: 13px; color: var(--text-3); }
.rows em.doing { color: var(--blue); } .rows em.blocked { color: var(--pink-ink); } .rows em.todo { color: var(--text-2); }

.insights ul { list-style: none; margin: 0; padding: 0; display: grid; }
.insights li + li { border-top: .5px solid var(--hairline); }
.insights li a { display: grid; grid-template-columns: 34px minmax(0, 1fr) 14px; align-items: center; gap: 12px; padding: 11px 10px; margin: 0 -10px; border-radius: 12px; text-decoration: none; transition: background-color var(--motion-hover) ease; }
.ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.ico svg { width: 16px; height: 16px; }
.ico.mint { background: var(--green-soft); color: var(--green-ink); } .ico.lilac { background: var(--indigo-soft); color: var(--indigo); }
.ico.sky { background: var(--blue-soft); color: var(--blue); } .ico.amber { background: var(--orange-soft); color: #c27400; }
.insights strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; font-weight: 500; line-height: 1.38; letter-spacing: -.008em; }
.insights small { display: block; margin-top: 2px; font-size: 12px; color: var(--text-3); }
.insights .chev { width: 14px; height: 14px; color: var(--text-4); transition: transform var(--motion-hover) var(--ease), color var(--motion-hover) ease; }
.more { margin: 12px 0 0; }
.more summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--text-2); cursor: pointer; }
.more summary::-webkit-details-marker { display: none; }
.empty-note { margin: 0; padding: 18px 0 4px; color: var(--text-3); font-size: 13px; max-width: 52ch; }

/* entrance choreography: once, top-left to bottom-right */
[data-reveal] { animation: rise 280ms var(--ease) both; animation-delay: min(calc(var(--d, 0) * 30ms), 120ms); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

/* ── command palette ─────────────────────────────────────────────── */
.palette { position: fixed; inset: 0; z-index: 50; display: flex; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity var(--motion-exit) ease, visibility var(--motion-exit) step-end; align-items: flex-start; justify-content: center; padding: 14vh 16px 16px; background: rgba(245, 245, 247, .55); backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2); }
.palette.open { visibility: visible; opacity: 1; pointer-events: auto; transition: opacity var(--motion-enter) ease, visibility 0s; }
.palette { margin: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; border: 0; color: inherit; }
.palette::backdrop { background: transparent; }
.palette-box { width: min(580px, 100%); border-radius: 20px; background: var(--surface); box-shadow: var(--float); overflow: hidden; opacity: 0; transform: translateY(-6px) scale(.985); transform-origin: top center; transition: opacity var(--motion-exit) ease, transform var(--motion-exit) var(--ease); }
.palette.open .palette-box { opacity: 1; transform: none; transition-duration: var(--motion-enter); }
.palette[data-instant="true"], .palette[data-instant="true"] .palette-box { transition: none; }
.palette-search { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 18px; border-bottom: .5px solid var(--hairline-2); color: var(--text-3); font-weight: 400; }
.palette-close { flex: none; height: 30px; padding: 0 9px; font-size: 12px; }
.palette-box input[type="text"] { flex: 1; height: auto; border: 0; outline: 0; background: none; font: 17px var(--font); letter-spacing: -.02em; color: var(--text); padding: 0; box-shadow: none; }
.palette-box input[type="text"]:focus { box-shadow: none; }
.palette-box ul { list-style: none; margin: 0; padding: 8px; max-height: 52vh; overflow: auto; }
.palette-box li a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--text); font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.palette-box li a svg { color: var(--text-3); width: 16px; height: 16px; }
.palette-box li a small { flex: none; max-width: 45%; margin-left: auto; color: var(--text-4); font-size: 12px; }
.palette-box li[aria-selected="true"] a { background: var(--fill); }
.palette-box .none { padding: 20px; margin: 0; color: var(--text-3); text-align: center; font-size: 14px; }


/* ── content pages (setup, week, work, review, campaigns …) ───────── */
.content h1 { font-size: 34px; line-height: 1.1; letter-spacing: -.03em; font-weight: 600; margin: 8px 0 20px; }
.content h2 { font-size: 17px; letter-spacing: -.022em; font-weight: 600; margin: 28px 0 8px; }
.content h3 { font-size: 15px; font-weight: 600; margin: 18px 0 4px; }
.content p { color: var(--text-2); }
.content p strong { color: var(--text); font-weight: 600; }
.content section { background: var(--surface); border-radius: var(--r-card); padding: 4px 24px 22px; margin: 16px 0; box-shadow: var(--lift), 0 0 0 .5px var(--hairline); animation: rise var(--motion-enter) var(--ease) both; }
.content a { color: var(--text); text-decoration-color: var(--text-4); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-color var(--motion-hover) ease; }
.content { overflow-wrap: anywhere; }
form.stack { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: 18px; max-width: 680px; }
form.inline { display: inline; }
label { display: grid; min-width: 0; gap: 8px; font-weight: 500; font-size: 14px; color: var(--text); }
label small { font-weight: 400; color: var(--text-3); font-size: 13px; margin-top: -4px; }
input, textarea, select, button { font: inherit; color: var(--text); letter-spacing: inherit; }
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]), textarea, select {
  width: 100%; max-width: 100%; min-width: 0; height: 44px; padding: 0 14px; font-size: 15px; font-weight: 400; border-radius: var(--r-control);
  border: 0; background: var(--surface); box-shadow: 0 0 0 .5px var(--hairline-2), inset 0 1px 1px rgba(0, 0, 0, .02); transition: box-shadow var(--motion-hover) ease, background-color var(--motion-hover) ease;
  -webkit-appearance: none; appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
textarea { height: auto; min-height: 104px; padding: 12px 14px; resize: vertical; line-height: 1.47; }
input:focus, textarea:focus, select:focus { outline: 0; box-shadow: 0 0 0 1px var(--blue), 0 0 0 4px color-mix(in srgb, var(--blue) 16%, transparent); }
input[type="file"] { min-width: 0; max-width: 100%; font-size: 14px; }
button { cursor: pointer; height: 40px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--surface); font-size: 14px; font-weight: 500; box-shadow: 0 0 0 .5px var(--hairline-2), var(--lift); transition: transform var(--motion-press) var(--ease), background-color var(--motion-hover) ease; }
button:active { transform: scale(.97); }
button.primary { height: 44px; padding: 0 22px; font-size: 15px; background: var(--ink); color: #fff; box-shadow: none; }
.action-link { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; background: var(--ink); color: #fff !important; text-decoration: none !important; font-weight: 500; transition: transform var(--motion-press) var(--ease), background-color var(--motion-hover) ease; }
.action-link:active { transform: scale(.97); }
table { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 10px 12px; border-bottom: .5px solid var(--hairline-2); vertical-align: top; }
th { font-weight: 500; color: var(--text-3); font-size: 12px; }
.wrap { overflow-x: auto; }
.msg { padding: 12px 16px; border-radius: 14px; margin: 0 0 20px; font-size: 14px; background: var(--surface); box-shadow: 0 0 0 .5px var(--hairline-2); animation: rise var(--motion-enter) var(--ease) both; }
.msg.err { background: var(--pink-soft); box-shadow: none; color: #8a0a26; }
.msg.ok { background: var(--green-soft); box-shadow: none; color: #1d6b31; }
.muted { color: var(--text-3); }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--fill); color: var(--text-2); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; }
code, pre { font-family: var(--mono); font-size: 13px; }
pre { white-space: pre-wrap; word-break: break-all; padding: 14px; border-radius: var(--r-inner); background: var(--fill); }
details { margin: 12px 0; } summary { cursor: pointer; font-weight: 500; }
.steps { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0 0 24px; counter-reset: s; }
.steps li { counter-increment: s; }
.steps a { display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 14px 0 6px; border-radius: 999px; text-decoration: none; color: var(--text-3); font-size: 14px; font-weight: 500; box-shadow: 0 0 0 .5px var(--hairline-2); }
.steps a::before { content: counter(s); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--fill); font-size: 12px; font-weight: 600; color: var(--text-2); }
.steps [aria-current="step"] a { color: var(--text); background: var(--surface); box-shadow: var(--lift), 0 0 0 .5px var(--hairline); }
.steps [aria-current="step"] a::before { background: var(--ink); color: #fff; }
.task-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.task-list > li { background: var(--surface); padding: 18px 22px; border-radius: var(--r-card); box-shadow: var(--lift), 0 0 0 .5px var(--hairline); transition: box-shadow var(--motion-hover) ease; animation: rise var(--motion-enter) var(--ease) both; }
.form-actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin: 8px 0; }

/* sign-in / sign-up */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; background: var(--canvas); }
.auth-box { width: min(420px, 100%); padding: 32px; border-radius: 28px; background: var(--surface); box-shadow: var(--float); animation: rise var(--motion-enter) var(--ease) both; }
.auth-box .brand { padding: 0 0 28px; }
.auth-box .brand-logo { width: 240px; }
.auth-box h1 { font-size: 28px; }
.auth-box button.primary { width: 100%; }

/* ── responsive ─────────────────────────────────────────────────── */
@media (max-width: 1320px) {
  .overview { grid-template-columns: minmax(300px, 1fr) repeat(2, minmax(0, 1fr));
    grid-template-areas: "hero c1 c2" "hero c3 c4" "hero c5 c6" "tl tl in"; }
}
@media (max-width: 1040px) {
  .js .menu-close { display: inline-grid; flex: none; }
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; width: auto; }
  .js .side { position: fixed; z-index: 40; left: 0; width: min(280px, 100vw); height: 100dvh; background: var(--canvas); transform: translateX(-102%); transition: transform var(--motion-drawer) var(--ease-drawer); box-shadow: var(--float); }
  .shell.menu-open .side { transform: none; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(0, 0, 0, .18); opacity: 0; pointer-events: none; transition: opacity var(--motion-enter) ease; }
  .shell.menu-open .scrim { opacity: 1; pointer-events: auto; }
  .js .topbar { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 20; height: 56px; padding: 0 16px; background: rgba(245, 245, 247, .82); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6); border-bottom: .5px solid var(--hairline-2); }
  .topbar .brand { padding: 0; min-width: 0; }
  .topbar .brand-logo { width: 176px; max-width: calc(100vw - 144px); }
  .topbar .icon-btn:last-child { margin-left: auto; }
  .page, .page.narrow { padding: 24px 16px 48px; }
  .overview { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "hero hero" "c1 c2" "c3 c4" "c5 c6" "tl tl" "in in"; }
  .stage { max-width: 420px; }
}
@media (max-width: 620px) {
  .hello h1 { font-size: 40px; }
  .overview { grid-template-columns: minmax(0, 1fr); grid-template-areas: "hero" "c1" "c2" "c3" "c4" "c5" "c6" "tl" "in"; }
  .spot .read b { font-size: 19px; }
  .spot .lead { width: 24px; }
  .stage { margin: -6% 0 -14%; }
  .tools .date { display: none; }
  .card { min-height: 188px; }
}


/* ── instant feel ─────────────────────────────────────────────────────
   Every press answers within a frame; waiting appears only after a grace period. */
a.card.is-pressed, .rows a.is-pressed, .insights li a.is-pressed, .ws-card.is-pressed { transform: scale(.985); transition-duration: .12s; }
.nav a.is-pressed, .palette-box li a.is-pressed { background: var(--fill-2); }
a.is-going { opacity: .62; transition: opacity .3s var(--ease); }
.nav a.is-going { opacity: 1; background: var(--surface); color: var(--text); box-shadow: var(--lift), 0 0 0 .5px var(--hairline); }

/* top line: appears after 120 ms, eases towards — never claims — completion */
.progress-line { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 80; pointer-events: none; }
.progress-line i { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; opacity: 0; }
.progress-line.on i { opacity: 1; animation: trickle 9s cubic-bezier(.08, .8, .2, 1) forwards; transition: opacity .2s; }
@keyframes trickle { 0% { transform: scaleX(0); } 12% { transform: scaleX(.42); } 100% { transform: scaleX(.92); } }

/* pending button: the label steps aside and a ring takes its place within one frame.
   One element, one linear rotation on the compositor: no hitch per turn, no layout work. */
button.is-pending, .action-link.is-pending { --spin: var(--text); position: relative; color: transparent !important; pointer-events: none; }
button.primary.is-pending, .action-link.is-pending { --spin: #fff; }
button.is-pending > *, .action-link.is-pending > * { opacity: 0; transform: scale(.94); }
button.is-pending::after, .action-link.is-pending::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
  background: conic-gradient(transparent, var(--spin) 72%, transparent 72.5%), color-mix(in srgb, var(--spin) 16%, transparent);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  animation: spin-in .2s var(--ease) both, spin .72s linear infinite; will-change: transform;
}
@keyframes spin { to { transform: rotate(1turn); } }
@keyframes spin-in { from { opacity: 0; scale: .6; } }

/* failed: a short sideways nudge, then still. Says "not quite", not "error". */
.is-nudged { animation: nudge .38s cubic-bezier(.36, .07, .19, .97) both !important; }
.msg.err { animation: rise var(--motion-enter) var(--ease) both, nudge .38s cubic-bezier(.36, .07, .19, .97) .22s both; }
[aria-invalid="true"] { animation: nudge .38s cubic-bezier(.36, .07, .19, .97) .22s both; }
@keyframes nudge { 20% { translate: -4px 0; } 45% { translate: 3px 0; } 70% { translate: -1.5px 0; } 100% { translate: 0 0; } }

/* the brand loader: the logo's arrow builds itself from its starting point, holds, and lets go */
.loader { width: 64px; height: 64px; overflow: visible; fill: var(--text); fill-rule: evenodd; }
.loader-track { opacity: .1; }
.loader-grow { transform-box: fill-box; transform: translate(29%, -29%); animation: loader-grow 1.8s var(--ease) infinite; }
.loader-arrow { animation: loader-fade 1.8s ease infinite; }
@keyframes loader-grow { 0% { transform: translate(0, 0); } 52%, 100% { transform: translate(29%, -29%); } }  /* soft front travels tail → tip */
@keyframes loader-fade { 0%, 76% { opacity: 1; } 100% { opacity: 0; } }

.wait { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 24px;
  background: rgba(245, 245, 247, .74); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  opacity: 0; transition: opacity .45s var(--ease); }
.wait[hidden] { display: none; }
.wait.on { opacity: 1; }
.wait-card { display: grid; justify-items: center; gap: 16px; text-align: center; transform: translateY(10px) scale(.98); transition: transform .7s var(--ease); }
.wait.on .wait-card { transform: none; }
.wait-step { margin: 6px 0 0; min-height: 24px; max-width: 28ch; font-size: 17px; line-height: 1.35; font-weight: 600; letter-spacing: -.022em; text-wrap: balance; }
.wait-step span { display: block; }
.wait-step span.swap { animation: step-in .55s var(--ease) both; }
@keyframes step-in { from { opacity: 0; transform: translateY(70%); filter: blur(3px); } }
.wait-dots { display: flex; gap: 7px; margin: 0; padding: 0; list-style: none; }
.wait-dots li { width: 6px; height: 6px; border-radius: 50%; background: var(--fill-2); transition: background .4s var(--ease), transform .5s var(--ease-spring); }
.wait-dots li.step-done { background: var(--text-3); }
.wait-dots li.step-now { background: var(--text); transform: scale(1.4); }
.wait-late { margin: 0; font-size: 13px; color: var(--text-3); opacity: 0; transform: translateY(4px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.wait.late .wait-late { opacity: 1; transform: none; }

/* job page: the same calm wait, inline */
.content .job-wait { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 36px 24px 28px; }
.job-wait .loader { width: 56px; height: 56px; margin-bottom: 8px; }
.job-wait h2 { margin: 6px 0 0; }
.job-wait p { margin: 4px 0 14px; max-width: 46ch; }


/* Every control shares the same tactile response; native values and focus stay immediate. */
button, .cta, .action-link, .icon-btn, .avatar > summary, .steps a, .nav a, .ws-card {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button:disabled, button[aria-disabled="true"] { cursor: default; }
button:disabled { opacity: .45; }
button[aria-busy="true"] { position: relative; pointer-events: none; }
.submit-label { display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: opacity var(--motion-press) ease, transform var(--motion-press) var(--ease); }
button[aria-busy="true"] .submit-label { opacity: 0; }
.avatar > summary:active, .steps a:active, .ws-card:active { transform: scale(.98); }
.steps a, input[type="file"]::file-selector-button {
  transition: background-color var(--motion-hover) ease, color var(--motion-hover) ease, transform var(--motion-press) var(--ease);
}
input[type="checkbox"], input[type="radio"] { accent-color: var(--ink); }
input:disabled, textarea:disabled, select:disabled { opacity: .55; cursor: not-allowed; }
input:user-invalid, textarea:user-invalid, select:user-invalid {
  box-shadow: 0 0 0 1px var(--pink), 0 0 0 4px color-mix(in srgb, var(--pink) 12%, transparent);
}
.shell[data-drawer-instant="true"] :is(.side, .scrim) { transition: none; }
details:not(.avatar) > summary { list-style: none; display: flex; align-items: center; width: fit-content; gap: 10px; }
details:not(.avatar) > summary::-webkit-details-marker { display: none; }
details:not(.avatar) > summary::after {
  content: ""; flex: none; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform var(--motion-enter) var(--ease);
}
details[open]:not(.avatar) > summary::after { transform: translateY(1px) rotate(225deg); }
details.is-closing > summary::after { transform: translateY(-2px) rotate(45deg); }
details.is-animating { overflow-anchor: none; }
.disclosure-content { display: flow-root; transition: opacity var(--motion-exit) ease, transform var(--motion-exit) var(--ease); }
.is-closing > .disclosure-content { opacity: 0; transform: translateY(-3px); }

/* Native document transitions preserve the shell; only the working surface changes. */
@keyframes page-arrive { from { opacity: 0; transform: translateY(6px); } }
@keyframes page-leave { to { opacity: 0; transform: translateY(-3px); } }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-group(page) { animation-duration: var(--motion-enter); animation-timing-function: var(--ease); }
::view-transition-old(page) { animation: page-leave var(--motion-exit) var(--ease) both; mix-blend-mode: normal; }
::view-transition-new(page) { animation: page-arrive var(--motion-enter) var(--ease) both; mix-blend-mode: normal; }
html[data-view-transition] .page, html[data-view-transition] [data-reveal], html[data-view-transition] .content section { animation: none; }
[data-page-hidden] *, [data-page-hidden] *::before, [data-page-hidden] *::after,
.stage[data-motion-paused] *, .stage[data-motion-paused] *::after, .waves[data-motion-paused] svg { animation-play-state: paused !important; }
@media (prefers-reduced-transparency: reduce) {
  .menu, .palette, .topbar, .spot.flip .read, .has-photo .spot .read { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="full"]) *, html:not([data-motion="full"]) *::before, html:not([data-motion="full"]) *::after {
    animation: none !important; transition-duration: 0ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important;
  }
  html:not([data-motion="full"]) .spot .lead { transform: none; }
  html:not([data-motion="full"]) :is(button:active, .cta:active, .action-link:active, .avatar > summary:active, .steps a:active, .ws-card:active,
    a.card:active, .brand:hover .logo-arrow, .cta:hover svg, a.card:hover, a.card:hover .go, .panel-head a:hover .go, .ws-card:hover .chev, .insights li a:hover .chev) { transform: none !important; }
  html:not([data-motion="full"])::view-transition-old(page), html:not([data-motion="full"])::view-transition-new(page), html:not([data-motion="full"])::view-transition-group(page) { animation: none !important; }
}
html[data-motion="reduce"] *, html[data-motion="reduce"] *::before, html[data-motion="reduce"] *::after {
  animation: none !important; transition-duration: 0ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important;
}
html[data-motion="reduce"] .spot .lead { transform: none; }
html[data-motion="reduce"] :is(button:active, .cta:active, .action-link:active, .avatar > summary:active, .steps a:active, .ws-card:active,
  a.card:active, .brand:hover .logo-arrow, .cta:hover svg, a.card:hover, a.card:hover .go, .panel-head a:hover .go, .ws-card:hover .chev, .insights li a:hover .chev) { transform: none !important; }
html[data-motion="reduce"]::view-transition-old(page), html[data-motion="reduce"]::view-transition-new(page), html[data-motion="reduce"]::view-transition-group(page) { animation: none !important; }

/* Hover is a pointer affordance, never a sticky touch state. */
@media (hover: hover) and (pointer: fine) {
  .brand:hover .logo-arrow { transform: translate(22px, -22px); }
  .search:hover { background: var(--fill-2); }
  .nav a:hover { color: var(--text); background: color-mix(in srgb, var(--fill-2) 55%, transparent); }
  .ws-card:hover { box-shadow: var(--lift-hover), 0 0 0 .5px var(--hairline); }
  .ws-card:hover .chev { transform: translateX(2px); color: var(--text); }
  .icon-btn:hover { background: var(--surface); box-shadow: var(--lift-hover), 0 0 0 .5px var(--hairline-2); }
  .avatar > summary:hover { box-shadow: 0 0 0 3px var(--canvas), 0 0 0 4px var(--hairline-2); }
  .menu a:hover, .menu button:hover { background: var(--fill); transform: none; }
  .spot:hover .read b { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--text-4); }
  .cta:hover { background: #000; }
  .cta:hover svg { transform: translateX(3px); }
  a.card:hover { transform: translateY(-2px); box-shadow: var(--lift-hover), 0 0 0 .5px var(--hairline); }
  a.card:hover .go, .panel-head a:hover .go { transform: translate(2px, -2px); color: var(--text); }
  .panel-head a:hover { background: var(--fill); }
  .rows a:hover { background: var(--fill); }
  .insights li a:hover { background: var(--fill); }
  .insights li a:hover .chev { transform: translateX(2px); color: var(--text); }
  .content a:hover { text-decoration-color: currentColor; }
  button:where(:not(:disabled):not([aria-disabled="true"])):hover { background: var(--fill); }
  button.primary:where(:not(:disabled):not([aria-disabled="true"])):hover { background: #000; }
  input[type="file"]::file-selector-button:hover { background: var(--fill); }
  .action-link:hover { background: #000; }
  .task-list > li:hover { box-shadow: var(--lift-hover), 0 0 0 .5px var(--hairline); }
}
a.card:active { transform: translateY(0) scale(.99); }
button:disabled:active, button[aria-disabled="true"]:active { transform: none; }

/* Waiting indicators stay alive under reduced motion: they pulse in place instead of travelling. */
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="full"]) .loader-arrow { animation: pulse 1.4s ease-in-out infinite !important; }
  html:not([data-motion="full"]) .loader-grow { transform: translate(29%, -29%); }
  html:not([data-motion="full"]) :is(button, .action-link).is-pending::after { animation: spin 1s linear infinite !important; }
  html:not([data-motion="full"]) .progress-line.on i { animation: pulse 1.6s ease-in-out infinite !important; transform: scaleX(1); }
}
html[data-motion="reduce"] .loader-arrow { animation: pulse 1.4s ease-in-out infinite !important; }
html[data-motion="reduce"] .loader-grow { transform: translate(29%, -29%); }
html[data-motion="reduce"] :is(button, .action-link).is-pending::after { animation: spin 1s linear infinite !important; }
html[data-motion="reduce"] .progress-line.on i { animation: pulse 1.6s ease-in-out infinite !important; transform: scaleX(1); }

/* Standalone setup and account access screens share branding, without app navigation. */
.setup-shell { min-height: 100vh; min-height: 100dvh; }
.setup-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; max-width: 1120px; margin-inline: auto; padding: 30px 32px 0; }
.setup-header .brand { min-width: 0; padding: 0; }
.setup-header .brand-logo { width: 200px; max-width: 100%; }
.setup-header form { flex: none; margin: 0; }
.setup-header button { height: 36px; background: transparent; box-shadow: none; color: var(--text-2); font-size: 12px; padding-inline: 12px; }
.setup-shell .standalone-main { margin: 0 auto; padding: 38px 32px 72px; }
@media (max-width: 620px) { .setup-header { gap: 16px; padding: 24px 20px 0; } .setup-header .brand-logo { width: 176px; } .setup-header button { font-size: 11px; padding-inline: 6px; } .setup-shell .standalone-main { padding: 30px 16px 48px; } }
@media (max-width: 380px) { .setup-header { padding-inline: 16px; } .setup-header .brand-logo { width: 158px; } }
