/* Vettar Build v2 and Vettar Owners v2. Calm paper light, deep forest dark.
   Motion is transform and opacity only; no blur on moving layers. */

:root {
  --ts: 1;
  --bg: #f3f2ed;
  --bg2: #e9e8e1;
  --card: #ffffff;
  --sheet: #f3f2ed;
  --ink: #101a15;
  --ink2: #5a655f;
  --ink3: #8d958f;
  --line: rgba(16, 26, 21, 0.07);
  --line2: rgba(16, 26, 21, 0.14);
  --forest: #0b3d2e;
  --lime: #dcef4e;
  --amber: #e2a03a;
  --acc: #0b3d2e;
  --accOn: #dcef4e;
  --ring: #0b3d2e;
  --ringTrack: rgba(11, 61, 46, 0.09);
  --mine: #0b3d2e;
  --mineInk: #ffffff;
  --holdBg: #0b3d2e;
  --holdInk: #ffffff;
  --holdFill: #dcef4e;
  --holdFillInk: #0b3d2e;
  --cardBorder: transparent;
  --voiceBg: rgba(243, 242, 237, 0.985);
  --plan: #ecebe3;
  --shadow1: 0 1px 2px rgba(16, 26, 21, 0.05), 0 4px 14px rgba(16, 26, 21, 0.05);
  --shadow2: 0 2px 6px rgba(16, 26, 21, 0.05), 0 16px 40px rgba(16, 26, 21, 0.09);
  --spring: cubic-bezier(0.2, 1.15, 0.3, 1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070c0a;
    --bg2: #0c1411;
    --card: #111b17;
    --sheet: #0a120f;
    --ink: #eef3ef;
    --ink2: #9eaca5;
    --ink3: #66746d;
    --line: rgba(238, 243, 239, 0.07);
    --line2: rgba(238, 243, 239, 0.15);
    --acc: #dcef4e;
    --accOn: #0b3d2e;
    --ring: #dcef4e;
    --ringTrack: rgba(220, 239, 78, 0.11);
    --mine: #193a2e;
    --mineInk: #eef3ef;
    --holdBg: #dcef4e;
    --holdInk: #0b3d2e;
    --holdFill: #ffffff;
    --holdFillInk: #0b3d2e;
    --cardBorder: rgba(238, 243, 239, 0.05);
    --voiceBg: rgba(7, 12, 10, 0.985);
    --plan: #0c1512;
    --shadow1: 0 4px 14px rgba(0, 0, 0, 0.35);
    --shadow2: 0 16px 40px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #070c0a;
  --bg2: #0c1411;
  --card: #111b17;
  --sheet: #0a120f;
  --ink: #eef3ef;
  --ink2: #9eaca5;
  --ink3: #66746d;
  --line: rgba(238, 243, 239, 0.07);
  --line2: rgba(238, 243, 239, 0.15);
  --acc: #dcef4e;
  --accOn: #0b3d2e;
  --ring: #dcef4e;
  --ringTrack: rgba(220, 239, 78, 0.11);
  --mine: #193a2e;
  --mineInk: #eef3ef;
  --holdBg: #dcef4e;
  --holdInk: #0b3d2e;
  --holdFill: #ffffff;
  --holdFillInk: #0b3d2e;
  --cardBorder: rgba(238, 243, 239, 0.05);
  --voiceBg: rgba(7, 12, 10, 0.985);
  --plan: #0c1512;
  --shadow1: 0 4px 14px rgba(0, 0, 0, 0.35);
  --shadow2: 0 16px 40px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

html {
  font-size: calc(16px * var(--ts));
  -webkit-text-size-adjust: 100%;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Noto Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  font-feature-settings: "cv11", "ss01";
}
button {
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
}
.ico {
  width: 1.2em;
  height: 1.2em;
  flex: none;
}
p {
  margin: 0;
}

/* 3D pictures: the light file, or its brighter twin in dark */
.art-dk {
  display: none;
}
:root[data-theme="dark"] .art-lt {
  display: none;
}
:root[data-theme="dark"] .art-dk {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .art-lt {
    display: none;
  }
  :root:not([data-theme="light"]) .art-dk {
    display: block;
  }
}

/* ── the frame ───────────────────────────────────────────────────── */

.app {
  max-width: 480px;
  margin: 0 auto;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
@media (min-width: 560px) {
  body {
    background: var(--bg2);
  }
  .app {
    box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(0, 0, 0, 0.12);
  }
}
.scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.scroll::-webkit-scrollbar {
  display: none;
}

.top {
  flex: none;
  height: 60px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  padding: 0 14px;
}
.brand {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink2);
}
.brand b {
  color: var(--ink);
  font-weight: 700;
}
.me-btn {
  border: 0;
  background: none;
  padding: 0;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
}
.ava {
  border-radius: 50%;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 650;
  flex: none;
  letter-spacing: 0.02em;
  line-height: 1;
}

/* ── the glance ──────────────────────────────────────────────────── */

.hello {
  padding: 6px 22px 0;
  animation: rise 0.6s var(--spring) both;
}
.hello h1 {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.06;
  color: var(--ink2);
}
.hello h1 span {
  color: var(--ink);
}
.hello p {
  margin-top: 10px;
  font-size: 1rem;
  color: var(--ink2);
}

.rings {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 22px 16px 6px;
  scrollbar-width: none;
}
.rings::-webkit-scrollbar {
  display: none;
}
.ring-btn {
  flex: none;
  width: 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  padding: 0;
  color: var(--ink);
  position: relative;
  animation: rise 0.55s var(--spring) both;
}
.ring-btn:active .ring {
  transform: scale(0.94);
}
.ring {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  transition: transform 0.25s var(--spring);
}
.ring svg {
  position: absolute;
  inset: 0;
}
.ring-in {
  position: relative;
  line-height: 1;
}
.ring-track {
  stroke: var(--ringTrack);
}
.ring-fill {
  stroke: var(--ring);
  transition: stroke-dashoffset 1.3s var(--ease);
}
.ring-lime .ring-fill {
  stroke: #dcef4e;
}
.ring-lime .ring-track {
  stroke: rgba(255, 255, 255, 0.13);
}
.ring-pct {
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.ring-pct small {
  font-size: 0.62em;
  font-weight: 500;
  color: var(--ink3);
  margin-left: 1px;
}
.ring-pct-sm {
  font-size: 0.8rem;
}
.ring-pct-xs {
  font-size: 0.72rem;
  font-weight: 600;
}
.ring-name {
  font-size: 0.75rem;
  color: var(--ink2);
  text-align: center;
  line-height: 1.25;
  max-width: 76px;
}
.ring-new {
  position: absolute;
  top: 2px;
  right: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px var(--bg);
}

/* ── the deck ────────────────────────────────────────────────────── */

.deck {
  padding: 18px 16px 0;
}
.deck-stack {
  display: grid;
  grid-template-areas: "s";
  padding-bottom: calc((var(--n) - 1) * 13px);
}
.deck-slot {
  grid-area: s;
  transition: transform 0.5s var(--spring), opacity 0.35s ease;
  transform-origin: 50% 100%;
  touch-action: pan-y;
  will-change: transform;
}
.deck-slot[data-i="1"] {
  transform: translateY(13px) scale(0.95);
  opacity: 0.85;
}
.deck-slot[data-i="2"] {
  transform: translateY(26px) scale(0.9);
  opacity: 0.55;
}
.deck-slot[data-i="1"] .dcard,
.deck-slot[data-i="2"] .dcard {
  box-shadow: var(--shadow1);
}
.dcard > * {
  transition: opacity 0.35s ease 0.1s;
}
.deck-slot[data-i="1"] .dcard > *,
.deck-slot[data-i="2"] .dcard > * {
  opacity: 0;
  transition: none;
}
.deck-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}
.deck-dots span {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--ink3);
  opacity: 0.35;
  transition: width 0.35s var(--spring), opacity 0.3s;
}
.deck-dots span[data-on] {
  width: 20px;
  opacity: 0.85;
  background: var(--ink);
}

.dcard {
  background: var(--card);
  border: 1px solid var(--cardBorder);
  border-radius: 30px;
  padding: 20px 20px 18px;
  box-shadow: var(--shadow2);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 19.5rem;
}
.dcard-inline {
  min-height: 0;
  border-radius: 24px;
  box-shadow: var(--shadow1);
}
.dcard[data-leaving] {
  animation: fold 0.42s var(--ease) forwards;
  pointer-events: none;
}
.dcard-art {
  position: absolute;
  top: 8px;
  right: 4px;
  width: 92px;
  height: 92px;
  pointer-events: none;
}
.dcard-img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  transform: rotate(-8deg);
  animation: float 6s ease-in-out infinite;
}
.dcard-inline .dcard-art,
.dcard-inline .dcard-img {
  width: 64px;
  height: 64px;
}
.dcard-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 86px;
  min-height: 28px;
}
.kick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink2);
  letter-spacing: -0.005em;
}
.kick::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--acc);
}
.kick-lime::before {
  background: var(--lime);
  box-shadow: 0 0 0 1.5px rgba(11, 61, 46, 0.35);
}
.kick-amber::before {
  background: var(--amber);
}
.dcard-code {
  border: 0;
  background: var(--bg);
  color: var(--ink3);
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 99px;
  padding: 4px 9px;
  letter-spacing: 0.02em;
}
.dcard-fig {
  margin-top: 26px;
  font-size: 3.2rem;
  font-weight: 650;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.dcard-inline .dcard-fig {
  margin-top: 18px;
  font-size: 2.5rem;
}
.dcard-unit {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink2);
  letter-spacing: 0;
}
.dcard-title {
  margin-top: 10px;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.dcard-meta {
  margin-top: 5px;
  color: var(--ink2);
  font-size: 0.9rem;
  line-height: 1.4;
}
.flag {
  margin-top: 12px;
  align-self: flex-start;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--ink);
  background: var(--bg);
  padding: 7px 12px;
  border-radius: 99px;
}
.flag-inline {
  margin: 0;
}
.quote {
  margin-top: 18px;
  font-size: 1.22rem;
  line-height: 1.38;
  letter-spacing: -0.02em;
  color: var(--ink2);
  font-weight: 500;
}
.quote::before {
  content: "\201C";
  color: var(--acc);
  font-weight: 700;
  margin-right: 2px;
}
.quote::after {
  content: "\201D";
  color: var(--acc);
  font-weight: 700;
}
.dcard-title + .quote {
  margin-top: 14px;
}
.dcard-act {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex: none;
}
.dot-amber {
  background: var(--amber);
}
.dot-lime {
  background: var(--lime);
}

/* hold to confirm */
.hold {
  position: relative;
  flex: 1;
  height: 58px;
  border-radius: 99px;
  border: 0;
  background: var(--holdBg);
  color: var(--holdInk);
  overflow: hidden;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 60px 0 20px;
  transition: transform 0.2s var(--spring);
}
.hold:active {
  transform: scale(0.985);
}
.hold-sm {
  height: 48px;
}
.hold-fill {
  position: absolute;
  inset: 0;
  background: var(--holdFill);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s var(--ease);
}
.hold[data-holding] .hold-fill,
.hold[data-done] .hold-fill {
  transform: scaleX(1);
  transition: transform var(--hold-ms) linear;
}
.hold-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}
.hold[data-holding] .hold-label,
.hold[data-done] .hold-label {
  color: var(--holdFillInk);
}
.hold[data-done] {
  padding: 0 20px;
  animation: pop 0.4s var(--spring);
}
.hold-knob {
  position: absolute;
  right: 6px;
  top: 6px;
  bottom: 6px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  color: var(--lime);
}
.hold-knob .ico {
  width: 22px;
  height: 22px;
}
.hold-knob::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  opacity: 0;
  animation: knob 3.2s ease-out infinite;
}
.hold[data-holding] .hold-knob {
  background: var(--forest);
}
:root[data-theme="dark"] .hold-knob {
  background: rgba(11, 61, 46, 0.14);
  color: var(--forest);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hold-knob {
    background: rgba(11, 61, 46, 0.14);
    color: var(--forest);
  }
}
.hold[data-holding] .hold-knob {
  color: var(--lime);
  background: var(--forest);
}

.quiet-btn {
  background: none;
  border: 0;
  color: var(--ink2);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 12px 8px;
  border-radius: 12px;
}
.talk-btn {
  flex: 1;
  height: 58px;
  border-radius: 99px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 600;
}
.talk-btn:active {
  transform: scale(0.98);
}
.soft-btn {
  margin-top: 16px;
  width: 100%;
  height: 54px;
  border-radius: 99px;
  border: 0;
  background: var(--ink);
  color: var(--bg);
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.clear {
  margin: 0;
  padding: 26px 20px;
  background: var(--card);
  border: 1px solid var(--cardBorder);
  border-radius: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  box-shadow: var(--shadow1);
  animation: pop-in 0.5s var(--spring) both;
}
.clear-art {
  width: 96px;
  height: 96px;
  animation: float 5s ease-in-out infinite;
}
.clear b {
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-top: 6px;
}
.clear span {
  color: var(--ink2);
  font-size: 0.92rem;
}

/* ── the conversation ────────────────────────────────────────────── */

.thread {
  padding: 12px 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.day {
  align-self: center;
  font-size: 0.75rem;
  color: var(--ink3);
  margin: 14px 0 0;
  letter-spacing: 0.02em;
}
.msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.msg.fresh {
  animation: rise 0.45s var(--spring) both;
}
.msg-mark {
  width: 28px;
  flex: none;
  display: flex;
  justify-content: center;
}
.msg-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.remy-text {
  font-size: 1.04rem;
  line-height: 1.5;
  padding-top: 2px;
  letter-spacing: -0.008em;
}
.stream-rest {
  opacity: 0;
}
.msg-me {
  justify-content: flex-end;
}
.msg-me .msg-body {
  flex: none;
  max-width: 84%;
  align-items: flex-end;
}
.msg-them .msg-body {
  flex: none;
  max-width: 82%;
  align-items: flex-start;
}
.bubble {
  padding: 11px 15px;
  border-radius: 22px;
  font-size: 0.98rem;
  line-height: 1.45;
}
.msg-me .bubble {
  background: var(--mine);
  color: var(--mineInk);
  border-bottom-right-radius: 8px;
}
.msg-them .bubble {
  background: var(--card);
  border: 1px solid var(--cardBorder);
  border-bottom-left-radius: 8px;
  box-shadow: var(--shadow1);
}
.bubble .ico {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  opacity: 0.7;
}
.msg-name {
  font-size: 0.78rem;
  color: var(--ink2);
  font-weight: 600;
  padding-left: 4px;
}
.fresh .msg-card {
  animation: rise 0.5s var(--spring) both;
}
.msg-think {
  padding-left: 0;
}
.thread-end {
  height: 4px;
}

.line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--cardBorder);
  border-radius: 18px;
  width: 100%;
  text-align: left;
  box-shadow: var(--shadow1);
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.35;
}
.line-ic {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg);
  flex: none;
}
.line-done {
  background: var(--acc);
  color: var(--accOn);
}
.line-ic .ico {
  width: 14px;
  height: 14px;
}
.line-main {
  flex: 1;
  min-width: 0;
}
.line-main b {
  font-weight: 600;
}
.line-main span {
  color: var(--ink2);
}
.line-code {
  font-size: 0.72rem;
  color: var(--ink3);
  font-weight: 600;
}

.rcard {
  background: var(--card);
  border: 1px solid var(--cardBorder);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow1);
}

/* trail */
.trail {
  background: var(--card);
  border: 1px solid var(--cardBorder);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow1);
}
.trail-big {
  background: none;
  border: 0;
  box-shadow: none;
  padding: 4px 0 0;
}
.trail-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.trail-code {
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.trail-big .trail-code {
  font-size: 1.9rem;
}
.trail-what {
  color: var(--ink2);
  font-size: 0.9rem;
}
.trail-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}
.tl {
  display: flex;
  gap: 14px;
  position: relative;
  padding-bottom: 16px;
  animation: tl-in 0.5s var(--spring) both;
}
.tl::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 26px;
  bottom: 2px;
  width: 2px;
  border-radius: 2px;
  background: var(--line2);
}
.tl:last-child::before {
  display: none;
}
.tl-done::before {
  background: var(--acc);
}
.tl-dot {
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--card);
  border: 2px solid var(--line2);
}
.tl-done .tl-dot {
  background: var(--acc);
  border-color: var(--acc);
  color: var(--accOn);
}
.tl-dot .ico {
  width: 12px;
  height: 12px;
}
.tl-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  padding-top: 2px;
}
.tl-body b {
  font-size: 0.95rem;
  font-weight: 600;
}
.tl-body span {
  font-size: 0.82rem;
  color: var(--ink2);
}
.tl-body .tl-money {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.tl-next .tl-body b {
  color: var(--ink3);
  font-weight: 500;
}
.tl-photo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--bg);
  display: grid;
  place-items: center;
  color: var(--ink2);
}

/* store */
.store-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.store-fig {
  font-size: 2.7rem;
  font-weight: 650;
  letter-spacing: -0.045em;
  margin: 14px 0 14px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.meter {
  position: relative;
  height: 10px;
  border-radius: 99px;
  background: var(--ringTrack);
}
.meter-fill {
  position: absolute;
  inset: 0;
  border-radius: 99px;
  background: var(--acc);
  transform-origin: left center;
  transition: transform 1.1s var(--ease);
  animation: grow 1.1s var(--ease) both;
}
.meter-fill[data-low] {
  background: var(--amber);
}
.meter-low {
  position: absolute;
  top: -5px;
  bottom: -5px;
  width: 2px;
  background: var(--ink3);
  border-radius: 2px;
}
.store-foot {
  font-size: 0.8rem;
  color: var(--ink3);
  margin-top: 10px;
}

/* rule */
.rule-bands {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0 16px;
}
.band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background: var(--bg);
  animation: rise 0.45s var(--spring) both;
}
.band:nth-child(2) {
  animation-delay: 0.08s;
}
.band:nth-child(3) {
  animation-delay: 0.16s;
}
.band-amt {
  font-weight: 650;
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.band-who {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink2);
  font-size: 0.88rem;
}
.ava-sm {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #3d5a80;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.ava-f {
  background: #0b3d2e;
}

/* import */
.imp-sort {
  position: relative;
  height: 170px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--bg);
}
.imp-file {
  position: absolute;
  top: -30px;
  width: 26px;
  height: 26px;
  color: var(--ink2);
  animation: fall 1.4s cubic-bezier(0.5, 0, 0.75, 1) both;
}
.imp-file .ico {
  width: 24px;
  height: 24px;
}
.imp-bins {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.imp-bin {
  background: var(--card);
  border-radius: 10px;
  padding: 9px 2px;
  font-size: 0.68rem;
  text-align: center;
  color: var(--ink2);
  font-weight: 600;
}
.imp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0 0;
}
.imp-pile {
  background: var(--bg);
  border-radius: 16px;
  padding: 12px;
  animation: rise 0.45s var(--spring) both;
}
.imp-pile b {
  display: block;
  font-size: 1.55rem;
  font-weight: 650;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.imp-pile span {
  font-size: 0.78rem;
  color: var(--ink2);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* plan */
.plan-sheet {
  position: relative;
  height: 176px;
  border-radius: 16px;
  background: var(--plan);
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: 1fr 22px 1fr;
  gap: 6px;
  padding: 12px;
}
.plan-road {
  grid-column: 1 / -1;
  grid-row: 2;
  align-self: center;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line2) 0 10px, transparent 10px 18px);
}
.plan-plot {
  border: 1.5px solid var(--ink3);
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--ink3);
  animation: plot-on 0.45s ease both;
}
.plan-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 46px;
  top: -46px;
  background: linear-gradient(transparent, rgba(220, 239, 78, 0.45), transparent);
  animation: scan 2.2s ease-in-out both;
}
.plan-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}
.plan-count {
  font-size: 1.3rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

/* invoice */
.inv-doc {
  position: relative;
  background: #fffdf6;
  color: #26302b;
  border-radius: 12px;
  padding: 16px;
  transform: rotate(-1.2deg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  font-size: 0.86rem;
}
.inv-h {
  display: flex;
  flex-direction: column;
  border-bottom: 1px dashed #c9c6ba;
  padding-bottom: 10px;
  margin-bottom: 8px;
}
.inv-h b {
  font-size: 0.95rem;
}
.inv-h span {
  font-size: 0.75rem;
  color: #7a7a70;
}
.inv-l,
.inv-t {
  display: flex;
  justify-content: space-between;
  padding: 5px 6px;
  border-radius: 6px;
  transition: background 0.5s;
}
.inv-l[data-hit],
.inv-t[data-hit] {
  background: rgba(220, 239, 78, 0.6);
}
.inv-t {
  font-weight: 700;
  border-top: 1px solid #e0ddd2;
  margin-top: 6px;
  padding-top: 8px;
}
.inv-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  top: 0;
  background: #dcef4e;
  box-shadow: 0 0 18px 5px rgba(220, 239, 78, 0.7);
  animation: scanline 1.9s ease-in-out both;
}
.inv-res {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.chk {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.92rem;
  animation: rise 0.4s var(--spring) both;
}
.chk:nth-child(2) {
  animation-delay: 0.1s;
}
.chk:nth-child(3) {
  animation-delay: 0.2s;
}
.chk .ico {
  width: 18px;
  height: 18px;
  color: var(--acc);
}
.chk .dot {
  margin: 0 5px;
}

/* certificate */
.cert-mini {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}
.cert-art {
  width: 64px;
  height: 64px;
  flex: none;
}
.cert-code {
  font-size: 1.15rem;
  font-weight: 650;
  margin: 4px 0 2px;
  letter-spacing: -0.01em;
}
.rule .hold,
.cert-card .hold {
  width: 100%;
}
.cert-card .soft-btn {
  margin-top: 0;
}
.cert {
  background: #fffef9;
  color: #142019;
  border-radius: 22px;
  padding: 30px 24px 24px;
  text-align: center;
  margin: 4px 16px 20px;
  box-shadow: var(--shadow2);
  outline: 1px solid rgba(11, 61, 46, 0.14);
  outline-offset: -10px;
  animation: pop-in 0.5s var(--spring) both;
}
.cert-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
}
.cert-logo {
  background: #0b3d2e;
  color: #dcef4e;
  border-radius: 8px;
  padding: 4px 7px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.cert-h {
  margin-top: 20px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5b665f;
}
.cert-big {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 8px 0;
}
.cert-what {
  color: #3a463f;
  line-height: 1.5;
}
.cert-rows {
  margin: 18px 0 14px;
  text-align: left;
  border-top: 1px solid #e7e6dc;
}
.cert-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #efeee6;
  font-size: 0.86rem;
}
.cert-row span {
  color: #6b746e;
}
.cert-row b {
  text-align: right;
  font-weight: 600;
}
.cert-qr {
  width: 124px;
  height: 124px;
  margin: 6px auto 0;
  display: block;
}
.cert-qr path {
  fill: #0b3d2e;
}
.cert-foot {
  font-size: 0.72rem;
  color: #8b948e;
  margin-top: 4px;
}

/* photos */
.ph {
  margin-top: 14px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}
.ph-delivery {
  background: linear-gradient(180deg, #cdd7d3, #ebe5d6);
  height: 96px;
}
.ph-delivery > svg {
  width: 100%;
  height: 100%;
  display: block;
}
.ph-ground {
  fill: #bcae92;
}
.ph-truck {
  fill: #f2f1ea;
}
.ph-cab {
  fill: #3d5a80;
}
.ph-wheel {
  fill: #2a2a2a;
}
.ph-bag {
  fill: #ebe5d5;
  stroke: #b3a992;
  stroke-width: 0.8;
}
.ph-tag {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 99px;
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.ph-receipt {
  height: 96px;
  background: #f4f6f3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px;
  gap: 9px;
}
.ph-receipt span {
  height: 8px;
  border-radius: 4px;
  background: #d6dbd6;
}
.ph-r1 {
  width: 55%;
}
.ph-r2 {
  width: 35%;
}
.ph-r3 {
  width: 70%;
}
.ph-receipt .ico {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 26px;
  height: 26px;
  padding: 5px;
  border-radius: 50%;
  background: #0b3d2e;
  color: #dcef4e;
}
.ph-plan {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
  padding: 12px;
  background: var(--bg);
}
.ph-plot {
  aspect-ratio: 1.3;
  border-radius: 6px;
  background: var(--acc);
  animation: pop-in 0.4s var(--spring) both;
}
.att {
  width: 230px;
  border-radius: 18px;
  overflow: hidden;
}
.att-photo .ph {
  margin: 0;
}
.att-doc {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--mine);
  color: var(--mineInk);
  padding: 8px 14px 8px 8px;
  font-size: 0.9rem;
  font-weight: 600;
}
.att-art {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 12px;
  padding: 2px;
}

/* ── the dock ────────────────────────────────────────────────────── */

.dock {
  flex: none;
  padding: 4px 12px calc(10px + env(safe-area-inset-bottom));
  background: var(--bg);
  position: relative;
}
.dock::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -24px;
  height: 24px;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
}
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 4px 10px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar {
  display: none;
}
.chip {
  flex: none;
  border: 1px solid var(--line2);
  background: var(--card);
  color: var(--ink);
  border-radius: 99px;
  padding: 10px 15px;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  animation: rise 0.4s var(--spring) both;
  display: inline-flex;
  gap: 7px;
  align-items: center;
}
.chip:active {
  transform: scale(0.96);
}
.chip .ico {
  width: 16px;
  height: 16px;
  color: var(--ink2);
}
.chip-as {
  background: var(--ink);
  color: var(--bg);
  border-color: transparent;
}
.chip-as .ico {
  color: var(--bg);
}
.bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--cardBorder);
  border-radius: 99px;
  padding: 5px;
  box-shadow: var(--shadow2);
}
.bar-plus {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--bg);
  color: var(--ink);
  display: grid;
  place-items: center;
  flex: none;
}
.bar-plus .ico {
  width: 20px;
  height: 20px;
}
.bar-field {
  flex: 1;
  min-width: 0;
}
.bar-field input {
  width: 100%;
  border: 0;
  background: none;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  padding: 10px 6px;
  outline: none;
}
.bar-field input::placeholder {
  color: var(--ink3);
}
.bar-orb {
  width: 54px;
  height: 54px;
  border: 0;
  background: none;
  padding: 0;
  display: grid;
  place-items: center;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  flex: none;
}
.bar-orb:active .orb {
  transform: scale(0.92);
}
.bar-send {
  width: 48px;
  height: 48px;
  margin: 3px;
  border-radius: 50%;
  background: var(--holdBg);
  color: var(--holdInk);
  border: 0;
  display: grid;
  place-items: center;
  flex: none;
  animation: pop-in 0.3s var(--spring) both;
}

/* ── Remy's orb ──────────────────────────────────────────────────── */

.orb {
  --s: 44px;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #1c6b51 0%, #0b3d2e 56%, #06281e 100%);
  position: relative;
  display: inline-block;
  flex: none;
  box-shadow: inset 0 -3px 8px rgba(0, 0, 0, 0.25), inset 0 2px 3px rgba(255, 255, 255, 0.08), 0 4px 14px rgba(11, 61, 46, 0.22);
  animation: breathe 5s ease-in-out infinite;
  transition: transform 0.2s var(--spring);
}
.orb-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--s) * 0.3);
  height: calc(var(--s) * 0.3);
  margin: calc(var(--s) * -0.15);
  border-radius: 50%;
  background: #dcef4e;
  box-shadow: 0 0 calc(var(--s) * 0.22) rgba(220, 239, 78, 0.55);
}
.orb-live .orb-dot {
  animation: dotpulse 15s ease-in-out infinite;
}
.orb-live::after {
  content: "";
  position: absolute;
  inset: 24%;
  border-radius: 50%;
  border: 2px solid rgba(220, 239, 78, 0.65);
  opacity: 0;
  animation: ripple15 15s ease-out infinite;
}
.orb[data-s="think"] .orb-dot {
  width: calc(var(--s) * 0.22);
  height: calc(var(--s) * 0.22);
  margin: calc(var(--s) * -0.11);
  animation: orbit 1.1s linear infinite;
}
.orb[data-s="speak"] .orb-dot {
  animation: speak 0.42s ease-in-out 4 alternate;
}
.orb[data-s="listen"] .orb-dot {
  animation: listen 0.8s ease-in-out infinite alternate;
}
.orb[data-s="listen"]::before,
.orb[data-s="listen"]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(220, 239, 78, 0.55);
  animation: ripple 1.9s ease-out infinite;
}
.orb[data-s="listen"]::after {
  animation-delay: 0.95s;
}

/* ── listening ───────────────────────────────────────────────────── */

.voice {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 24px;
  animation: fade 0.22s ease both;
}
.voice[data-out] {
  animation: fadeout 0.26s ease both;
}
.voice-orb {
  animation: pop-in 0.5s var(--spring) both;
}
.wave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 56px;
}
.wave span {
  width: 4px;
  height: 100%;
  border-radius: 4px;
  background: var(--acc);
  transform: scaleY(0.15);
  animation: wave ease-in-out infinite alternate;
}
.wave span:nth-child(3n) {
  height: 70%;
}
.wave span:nth-child(4n + 1) {
  height: 45%;
}
.voice-text {
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.3;
  text-align: center;
  max-width: 20ch;
  min-height: 5.3em;
}
.vw {
  display: inline-block;
  margin-right: 0.26em;
  animation: word 0.32s var(--ease) both;
}
.voice-wait {
  color: var(--ink3);
}
.voice-hint {
  position: absolute;
  bottom: calc(36px + env(safe-area-inset-bottom));
  font-size: 0.85rem;
  color: var(--ink3);
}

/* ── a project's group ───────────────────────────────────────────── */

.gtop {
  flex: none;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 14px 0 6px;
  border-bottom: 1px solid var(--line);
  animation: fade 0.3s ease both;
}
.back {
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: var(--ink);
  display: grid;
  place-items: center;
  border-radius: 50%;
  flex: none;
}
.back .ico {
  width: 22px;
  height: 22px;
}
.gtitle {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: 0;
  text-align: left;
  color: var(--ink);
  min-width: 0;
  padding: 0;
}
.gname {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.gname b {
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gname span {
  font-size: 0.78rem;
  color: var(--ink2);
}
.faces {
  display: flex;
  align-items: center;
}
.faces .ava {
  margin-left: -8px;
  border: 2px solid var(--bg);
}
.faces-more {
  margin-left: 4px;
  font-size: 0.75rem;
  color: var(--ink2);
}
.app[data-space="group"] .scroll {
  animation: slide-in 0.4s var(--spring) both;
}

/* project sheet */
.psheet-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 0 20px;
}
.psheet-hero h2 {
  margin: 14px 0 0;
  font-size: 1.5rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}
.psheet-sub {
  color: var(--ink2);
}
.plots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.plot {
  background: var(--card);
  border: 1px solid var(--cardBorder);
  border-radius: 18px;
  padding: 12px 4px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  animation: rise 0.4s var(--spring) both;
  box-shadow: var(--shadow1);
}
.plot b {
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 4px;
}
.plot span {
  font-size: 0.68rem;
  color: var(--ink3);
}
.pstore {
  margin-top: 14px;
  background: var(--card);
  border: 1px solid var(--cardBorder);
  border-radius: 18px;
  padding: 2px 16px;
}
.pstore-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.pstore-row:last-child {
  border-bottom: 0;
}
.pstore-row span:first-child {
  flex: 1;
  color: var(--ink2);
}
.pstore-row b {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.quiet-money {
  margin-top: 12px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  background: none;
  border: 1px dashed var(--line2);
  color: var(--ink2);
  font-size: 0.92rem;
  text-align: left;
}
.quiet-money b {
  color: var(--ink);
  font-weight: 650;
}

/* ── sheets ──────────────────────────────────────────────────────── */

.sheet-wrap {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
}
.sheet-wrap[data-open] {
  pointer-events: auto;
}
.sheet-scrim {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 7, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.sheet-wrap[data-open] .sheet-scrim {
  opacity: 1;
}
.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0 auto;
  max-width: 480px;
  background: var(--sheet);
  border-radius: 30px 30px 0 0;
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(104%);
  transition: transform 0.45s var(--spring);
  max-height: 90dvh;
  overflow-y: auto;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.18);
  scrollbar-width: none;
}
.sheet-wrap[data-open] .sheet {
  transform: none;
}
.sheet-tall {
  min-height: 72dvh;
}
.sheet-grab {
  width: 40px;
  height: 5px;
  border-radius: 99px;
  background: var(--line2);
  margin: 10px auto 8px;
  cursor: pointer;
  box-shadow: 0 0 0 14px transparent;
}
.sheet-pad {
  padding: 6px 20px 24px;
}
.sheet-h {
  font-size: 1.3rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 4px 0 14px;
}
.who {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.who-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 12px;
  border-radius: 18px;
  background: none;
  border: 0;
  text-align: left;
  color: var(--ink);
  transition: background 0.2s, box-shadow 0.2s;
}
.who-row[data-on] {
  background: var(--card);
  box-shadow: var(--shadow2);
}
.who-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.who-main b {
  font-size: 1rem;
  font-weight: 500;
}
.who-row[data-on] .who-main b {
  font-weight: 700;
}
.who-main span {
  font-size: 0.84rem;
  color: var(--ink2);
}
.who-tick {
  color: var(--acc);
}
.who-tick .ico {
  width: 20px;
  height: 20px;
}
.display {
  display: flex;
  gap: 10px;
  margin: 18px 0 4px;
}
.seg {
  display: flex;
  background: var(--bg2);
  border-radius: 99px;
  padding: 4px;
  flex: 1;
}
.seg:last-child {
  flex: 0.7;
}
.seg button {
  flex: 1;
  border: 0;
  background: none;
  padding: 9px 6px;
  border-radius: 99px;
  font-size: 0.86rem;
  color: var(--ink2);
  font-weight: 500;
}
.seg button[data-on] {
  background: var(--card);
  color: var(--ink);
  font-weight: 650;
  box-shadow: var(--shadow1);
}
.reset {
  display: block;
  margin: 8px auto 0;
}
.attach {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 6px;
}
.attach-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--cardBorder);
  color: var(--ink);
  text-align: left;
  box-shadow: var(--shadow1);
  animation: rise 0.4s var(--spring) both;
}
.attach-row:nth-child(2) {
  animation-delay: 0.05s;
}
.attach-row:nth-child(3) {
  animation-delay: 0.1s;
}
.attach-row:nth-child(4) {
  animation-delay: 0.15s;
}
.attach-art {
  width: 52px;
  height: 52px;
}
.attach-row b {
  font-size: 1.02rem;
  font-weight: 600;
}

/* PIN */
.pin {
  padding: 4px 24px 28px;
  text-align: center;
}
.pin-title {
  font-size: 1.5rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  margin-top: 6px;
}
.pin-sub {
  color: var(--ink2);
  margin-top: 4px;
  font-size: 0.92rem;
}
.pin-dots {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 26px 0 24px;
}
.pin-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--ink3);
  transition: transform 0.15s var(--spring), background 0.15s, border-color 0.15s;
}
.pin-dot[data-on] {
  background: var(--ink);
  border-color: var(--ink);
  transform: scale(1.12);
}
.pin-dots[data-ok] .pin-dot {
  background: var(--acc);
  border-color: var(--acc);
  animation: pop 0.4s var(--spring);
}
.pin-keys {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 300px;
  margin: 0 auto;
}
.pin-key {
  height: 62px;
  border-radius: 22px;
  border: 1px solid var(--cardBorder);
  background: var(--card);
  color: var(--ink);
  font-size: 1.55rem;
  font-weight: 500;
  box-shadow: var(--shadow1);
  display: grid;
  place-items: center;
  transition: transform 0.12s;
}
.pin-key:active {
  transform: scale(0.94);
}
.pin-key .ico {
  width: 22px;
  height: 22px;
}

/* the success moment */
.moment {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  background: rgba(4, 10, 7, 0.3);
  animation: fade 0.25s ease both;
  padding: 24px;
}
.moment-card {
  background: var(--card);
  border: 1px solid var(--cardBorder);
  border-radius: 34px;
  padding: 30px 34px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 250px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  animation: pop-in 0.55s var(--spring) both;
  text-align: center;
}
.moment-pct {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.moment-pct small {
  font-size: 0.5em;
  color: var(--ink3);
  font-weight: 500;
}
.moment-img {
  width: 128px;
  height: 128px;
  animation: float 2.4s ease-in-out infinite;
}
.moment-title {
  margin-top: 14px;
  font-size: 1.3rem;
  font-weight: 650;
  letter-spacing: -0.025em;
}
.moment-sub {
  color: var(--ink2);
  font-size: 0.92rem;
}
.moment-count {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  padding: 8px 14px;
  border-radius: 99px;
  font-size: 0.9rem;
  color: var(--ink2);
}
.moment-count b {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.moment-count .ico {
  width: 16px;
  height: 16px;
  color: var(--acc);
}

/* ── Vettar Owners ───────────────────────────────────────────────── */

.biz-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 22px 16px 44px;
  margin-bottom: -36px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.biz-row::-webkit-scrollbar {
  display: none;
}
.biz {
  flex: none;
  width: calc(100% - 36px);
  scroll-snap-align: center;
  border-radius: 30px;
  padding: 22px 20px 18px;
  background: radial-gradient(120% 140% at 0% 0%, #17604a 0%, #0b3d2e 46%, #062a1f 100%);
  color: #fff;
  box-shadow: 0 14px 30px rgba(11, 61, 46, 0.24);
  position: relative;
  overflow: hidden;
  animation: rise 0.6s var(--spring) both;
}
.biz::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  border: 30px solid rgba(220, 239, 78, 0.07);
}
.biz-h b {
  display: block;
  font-size: 1.3rem;
  font-weight: 650;
  letter-spacing: -0.025em;
}
.biz-h span {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.62);
}
.biz-rings {
  display: flex;
  justify-content: space-between;
  margin: 22px 4px 18px;
}
.biz-ring {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.biz-ring > span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.72);
}
.biz .ring-pct {
  color: #fff;
}
.biz .ring-pct small {
  color: rgba(255, 255, 255, 0.55);
}
.biz-foot {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.86);
  display: flex;
  align-items: center;
  gap: 8px;
}
.biz-2 {
  background: var(--card);
  border: 1px solid var(--cardBorder);
  color: var(--ink);
  box-shadow: var(--shadow2);
  animation-delay: 0.08s;
}
.biz-2::after {
  border-color: rgba(11, 61, 46, 0.04);
}
.biz-2 .biz-h span,
.biz-2 .biz-ring > span,
.biz-2 .biz-foot {
  color: var(--ink2);
}
.biz-2 .ring-pct {
  color: var(--ink);
}
.biz-2 .ring-pct small {
  color: var(--ink3);
}
.approvals {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 16px 0;
}
.approvals:empty {
  display: none;
}
.appr {
  animation: arrive 0.65s var(--spring) both;
}
.appr:nth-child(2) {
  animation-delay: 0.1s;
}
.appr .dcard {
  min-height: 0;
}

/* ── two sides: the Dashboard and lock in with Remy ──────────────── */

.split {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  position: relative;
}
.track {
  display: flex;
  width: 200%;
  height: 100%;
  transition: transform 0.55s var(--spring);
  will-change: transform;
}
.track[data-drag] {
  transition: none;
}
.pane {
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-width: 0;
  touch-action: pan-y;
}
.switch-row {
  flex: none;
  display: flex;
  justify-content: center;
  padding: 6px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--bg);
}
.app[data-side="remy"] .dock {
  padding-bottom: 6px;
}
.switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: 300px;
  background: var(--bg2);
  border-radius: 99px;
  padding: 4px;
}
.switch-lift {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 99px;
  background: var(--card);
  box-shadow: var(--shadow1);
  transition: transform 0.5s var(--spring);
}
.switch-lift[data-side="today"] {
  transform: translateX(100%);
}
.switch button {
  position: relative;
  border: 0;
  background: none;
  height: 42px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink2);
  transition: color 0.2s;
}
.switch button[data-on] {
  color: var(--ink);
  font-weight: 700;
}
.top-remy .lockin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink2);
}
.waiting {
  justify-self: end;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 99px;
  border: 1px solid var(--line2);
  background: none;
  color: var(--ink3);
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.waiting:empty {
  visibility: hidden;
}

/* a project's page */
.ppage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  animation: slide-in 0.4s var(--spring) both;
}
.ppage .gtitle {
  cursor: default;
}
.psec {
  margin-top: 22px;
}
.psec h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.psec-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.recent {
  width: 100%;
  border: 0;
  background: none;
  color: var(--ink);
  text-align: left;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.recent span:first-child {
  color: var(--ink);
}
.recent em {
  font-style: normal;
  font-size: 0.8rem;
  color: var(--ink3);
}
.ppage .thread {
  padding-top: 0;
}

/* the roomy composer */
.bar {
  align-items: flex-end;
  border-radius: 28px;
}
.bar-field textarea {
  display: block;
  width: 100%;
  border: 0;
  background: none;
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ink);
  padding: 14px 6px 12px;
  outline: none;
  resize: none;
  max-height: 168px;
}
.bar-field textarea::placeholder {
  color: var(--ink3);
}

/* ── the brief at the top of Remy ────────────────────────────────── */

.brief {
  flex: none;
  margin: 2px 16px 6px;
  padding: 18px 18px 12px;
  background: var(--card);
  border: 1px solid var(--cardBorder);
  border-radius: 28px;
  box-shadow: var(--shadow2);
  max-height: 62vh;
  overflow-y: auto;
  scrollbar-width: none;
  animation: rise 0.5s var(--spring) both;
}
.brief-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.brief-head h2 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.brief-x {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: var(--bg);
  color: var(--ink2);
  display: grid;
  place-items: center;
  flex: none;
  transform: rotate(180deg);
}
.brief-x .ico {
  width: 16px;
  height: 16px;
}
.brief-rings {
  display: flex;
  gap: 14px;
  margin: 16px 0 10px;
}
.brief-rings button {
  border: 0;
  background: none;
  padding: 0;
  color: var(--ink2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
}
.brief-lines {
  display: flex;
  flex-direction: column;
}
.bline {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 2px;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  color: var(--ink);
  text-align: left;
  font-size: 0.93rem;
  line-height: 1.35;
}
.bline-t {
  flex: 1;
  min-width: 0;
}
.bline-t b {
  font-weight: 650;
  margin-right: 4px;
}
.bline .ico {
  width: 16px;
  height: 16px;
  color: var(--ink3);
}
.bline-fact {
  color: var(--ink2);
}
.bline-card {
  padding: 2px 0 12px;
}
.dot-ink {
  background: var(--ink3);
}
.brief-fold {
  flex: none;
  margin: 2px 16px 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 99px;
  background: var(--card);
  border: 1px solid var(--cardBorder);
  box-shadow: var(--shadow1);
  color: var(--ink);
  font-size: 0.9rem;
  text-align: left;
  animation: fade 0.3s ease both;
}
.brief-fold b {
  font-weight: 650;
}
.brief-fold span:not(.orb):not(.orb-dot) {
  flex: 1;
  color: var(--ink3);
}
.brief-fold .ico {
  width: 16px;
  height: 16px;
  color: var(--ink3);
}

/* ── Tasks ───────────────────────────────────────────────────────── */

.tsec {
  margin: 26px 20px 10px;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.deck {
  padding-top: 0;
}
.approvals {
  padding-top: 0;
}
.tlist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 16px 8px;
}
.switch-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 99px;
  background: var(--bg);
  color: var(--ink2);
  font-size: 0.72rem;
  font-weight: 650;
  display: inline-grid;
  place-items: center;
  font-variant-numeric: tabular-nums;
}

/* ── keyframes ───────────────────────────────────────────────────── */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}
@keyframes pop-in {
  from {
    opacity: 0;
    transform: scale(0.86);
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
@keyframes fadeout {
  to {
    opacity: 0;
  }
}
@keyframes pop {
  50% {
    transform: scale(1.04);
  }
}
@keyframes float {
  50% {
    transform: translateY(-5px) rotate(-6deg);
  }
}
@keyframes fold {
  0% {
    transform: scale(1);
  }
  28% {
    transform: scale(1.02);
    opacity: 1;
  }
  100% {
    transform: translateY(-36px) scale(0.84);
    opacity: 0;
  }
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(-28px) scale(0.95);
  }
}
@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
}
@keyframes tl-in {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
}
@keyframes grow {
  from {
    transform: scaleX(0);
  }
}
@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.035);
  }
}
@keyframes dotpulse {
  0%,
  91%,
  100% {
    transform: scale(1);
  }
  95% {
    transform: scale(1.35);
  }
}
@keyframes ripple15 {
  0%,
  91% {
    opacity: 0;
    transform: scale(0.6);
  }
  93% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: scale(1.6);
  }
}
@keyframes orbit {
  from {
    transform: rotate(0deg) translateX(calc(var(--s) * 0.2));
  }
  to {
    transform: rotate(360deg) translateX(calc(var(--s) * 0.2));
  }
}
@keyframes speak {
  to {
    transform: scale(0.7);
  }
}
@keyframes listen {
  to {
    transform: scale(1.45);
  }
}
@keyframes ripple {
  from {
    transform: scale(1);
    opacity: 0.8;
  }
  to {
    transform: scale(2);
    opacity: 0;
  }
}
@keyframes knob {
  0%,
  60% {
    transform: scale(1);
    opacity: 0;
  }
  70% {
    opacity: 0.5;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}
@keyframes wave {
  from {
    transform: scaleY(0.15);
  }
  to {
    transform: scaleY(1);
  }
}
@keyframes word {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
@keyframes fall {
  0% {
    transform: translateY(0) rotate(-12deg);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  100% {
    transform: translateY(150px) rotate(10deg);
    opacity: 0;
  }
}
@keyframes plot-on {
  from {
    background: transparent;
  }
  to {
    background: #dcef4e;
    border-color: #0b3d2e;
    color: #0b3d2e;
  }
}
@keyframes scan {
  from {
    top: -46px;
  }
  to {
    top: 100%;
  }
}
@keyframes scanline {
  0% {
    top: 0;
  }
  50% {
    top: calc(100% - 3px);
  }
  100% {
    top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
  }
}
