:root {
  --bg: #f6f6f9;
  --card: #ffffff;
  --ink: #14121c;
  --mute: #6e6c7c;
  --line: rgba(20, 18, 28, 0.07);
  --fill: #efeff5;
  --ok: #10b981;
  --bad: #f43f5e;
  --warn: #f59e0b;
  --a1: #f26a1b;
  --a2: #c2306a;
  --a3: #fbbf24;
  --shadow: 0 1px 2px rgba(20, 18, 28, 0.04), 0 10px 28px -10px rgba(20, 18, 28, 0.12);
  --nav: rgba(255, 255, 255, 0.85);
  --r: 22px;
  --glow: 0.12;
  --hm: 82%;
  --hm2: 78%;
}
@media (prefers-color-scheme: dark) {
  html:not([data-mode='light']) {
    --bg: #0d0b14;
    --card: #171424;
    --ink: #f3f0fa;
    --mute: #9a96b0;
    --line: rgba(255, 255, 255, 0.07);
    --fill: #221e33;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
    --nav: rgba(23, 20, 36, 0.88);
    --glow: 0.1;
    --hm: 58%;
    --hm2: 52%;
  }
}
html[data-mode='dark'] {
  --bg: #0d0b14;
  --card: #171424;
  --ink: #f3f0fa;
  --mute: #9a96b0;
  --line: rgba(255, 255, 255, 0.07);
  --fill: #221e33;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
  --nav: rgba(23, 20, 36, 0.88);
  --glow: 0.1;
  --hm: 58%;
  --hm2: 52%;
}
html {
  --h1: color-mix(in srgb, var(--a1) var(--hm), #0d0b14);
  --h2: color-mix(in srgb, var(--a2) var(--hm2), #0d0b14);
}
html[data-theme='ocean'] {
  --a1: #3b82f6;
  --a2: #4f46e5;
  --a3: #22d3ee;
}
html[data-theme='emerald'] {
  --a1: #10b981;
  --a2: #0d9488;
  --a3: #22d3ee;
}
html[data-theme='rose'] {
  --a1: #f43f5e;
  --a2: #c026d3;
  --a3: #fb7185;
}
html[data-theme='violet'] {
  --a1: #8b5cf6;
  --a2: #6366f1;
  --a3: #06b6d4;
}
html[data-theme='gold'] {
  --a1: #f59e0b;
  --a2: #ea580c;
  --a3: #facc15;
}
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html {
  background: var(--bg);
  color-scheme: light dark;
}
html[data-mode='light'] {
  color-scheme: light;
}
html[data-mode='dark'] {
  color-scheme: dark;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font:
    15px/1.45 -apple-system,
    BlinkMacSystemFont,
    'SF Pro Text',
    'Segoe UI',
    Roboto,
    Inter,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(100px + env(safe-area-inset-bottom));
  min-height: 100dvh;
  position: relative;
}
body::before {
  content: '';
  position: fixed;
  inset: 0 0 auto 0;
  height: 340px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 100% at 85% -10%, color-mix(in srgb, var(--a1) calc(var(--glow) * 100%), transparent), transparent),
    radial-gradient(50% 80% at 0% 0%, color-mix(in srgb, var(--a3) calc(var(--glow) * 60%), transparent), transparent);
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}
svg.i {
  display: block;
  flex: none;
}
.wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 16px;
}
.grad {
  background: linear-gradient(135deg, var(--a1), var(--a2));
}

/* top bar */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(18px + env(safe-area-inset-top)) 0 16px;
}
.top small {
  color: var(--mute);
  display: block;
  font-size: 13px;
  font-weight: 500;
}
.top h1 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.03em;
  font-weight: 750;
}
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  flex: none;
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.35);
}
.avatar.xs {
  width: 22px;
  height: 22px;
  font-size: 10px;
  box-shadow: none;
}
.avatar.sm {
  width: 30px;
  height: 30px;
  font-size: 12px;
}

/* who filter */
.whobar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 -16px 14px;
  padding: 2px 16px 4px;
  scrollbar-width: none;
}
.whobar::-webkit-scrollbar {
  display: none;
}
.whobar button {
  flex: none;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px 5px 6px;
  border-radius: 99px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 650;
  color: var(--mute);
  box-shadow: var(--shadow);
}
.whobar button.on {
  background: linear-gradient(135deg, var(--a1), var(--a2));
  color: #fff;
  border-color: transparent;
}
.whobar .all {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--fill);
  color: var(--mute);
}
.whobar .on .all {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}
/* cards */
.card {
  background: var(--card);
  border-radius: var(--r);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.card h2 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: -0.01em;
}
.card h2 span {
  font-size: 12px;
  color: var(--mute);
  font-weight: 500;
}
.hero {
  color: #fff;
  border: 0;
  position: relative;
  overflow: hidden;
  padding: 20px;
  background: linear-gradient(135deg, var(--h1) 0%, var(--h2) 100%);
  box-shadow: 0 18px 32px -20px var(--h1);
}
.hero::after {
  content: '';
  position: absolute;
  right: -50px;
  top: -60px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 70%);
}
.hero::before {
  content: '';
  position: absolute;
  left: -30px;
  bottom: -70px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 70%);
}
.hero > * {
  position: relative;
  z-index: 1;
}
.hero .lbl {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.9;
  font-size: 13px;
  font-weight: 500;
}
.hero .big {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 4px 0 14px;
  line-height: 1.1;
}
.hero .chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.hero .chip {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 9px 11px;
  font-size: 11.5px;
  min-width: 0;
}
.hero .chip b {
  display: block;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.tile {
  background: var(--card);
  border-radius: var(--r);
  padding: 14px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  text-align: left;
  width: 100%;
}
.tile .ic {
  margin-bottom: 12px;
}
.tile small {
  color: var(--mute);
  display: block;
  font-size: 12px;
  font-weight: 500;
}
.tile b {
  font-size: 20px;
  letter-spacing: -0.02em;
  font-weight: 750;
}
.tile em {
  font-style: normal;
  font-size: 11.5px;
  font-weight: 650;
}

/* icon chips */
.ic {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: none;
}
.ic.sm {
  width: 34px;
  height: 34px;
  border-radius: 11px;
}

/* rows */
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  width: 100%;
  text-align: left;
}
.row:first-child {
  border-top: 0;
  padding-top: 2px;
}
.row:last-child {
  padding-bottom: 2px;
}
.row .grow {
  flex: 1;
  min-width: 0;
}
.row .t {
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row .s {
  color: var(--mute);
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row .amt {
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.mute {
  color: var(--mute);
}
.ok {
  color: var(--ok);
}
.bad {
  color: var(--bad);
}
.warn {
  color: var(--warn);
}
.day {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 18px 6px 8px;
  display: flex;
  justify-content: space-between;
}
.empty {
  text-align: center;
  color: var(--mute);
  padding: 30px 10px;
}
.empty .ic {
  width: 68px;
  height: 68px;
  border-radius: 24px;
  margin: 0 auto 12px;
}

/* buttons */
.btn {
  border-radius: 15px;
  padding: 11px 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition:
    transform 0.12s,
    opacity 0.12s;
}
.btn:active {
  transform: scale(0.97);
}
.btn.primary {
  background: linear-gradient(135deg, var(--a1), var(--a2));
  color: #fff;
  box-shadow: 0 8px 18px -12px var(--a1);
}
.btn.soft {
  background: var(--fill);
}
.btn.sm {
  padding: 8px 13px;
  font-size: 13px;
  border-radius: 13px;
}
.btn.danger {
  background: color-mix(in srgb, var(--bad) 12%, transparent);
  color: var(--bad);
}
.btn.block {
  width: 100%;
  padding: 15px;
  font-size: 16px;
  border-radius: 17px;
}
.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--mute);
  flex: none;
}
.icon-btn:active {
  background: var(--fill);
}
.fab {
  position: fixed;
  right: max(18px, calc(50% - 262px));
  bottom: calc(98px + env(safe-area-inset-bottom));
  width: 60px;
  height: 60px;
  border-radius: 21px;
  background: linear-gradient(135deg, var(--a1), var(--a2));
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 24px -12px var(--a1);
  z-index: 20;
  transition: transform 0.15s;
}
.fab:active {
  transform: scale(0.92);
}
.pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--fill);
  color: var(--mute);
  white-space: nowrap;
  display: inline-block;
}
.pill.bad {
  background: color-mix(in srgb, var(--bad) 13%, transparent);
  color: var(--bad);
}
.pill.warn {
  background: color-mix(in srgb, var(--warn) 16%, transparent);
  color: var(--warn);
}
.pill.ok {
  background: color-mix(in srgb, var(--ok) 14%, transparent);
  color: var(--ok);
}

/* nav */
nav {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  max-width: 536px;
  margin: 0 auto;
  display: flex;
  padding: 6px;
  border-radius: 26px;
  background: var(--nav);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 16px 44px -12px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  z-index: 30;
}
nav button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 9px 0 7px;
  border-radius: 20px;
  color: var(--mute);
  font-size: 10.5px;
  font-weight: 650;
  transition: all 0.2s;
}
nav button.on {
  color: var(--a1);
  background: color-mix(in srgb, var(--a1) 13%, transparent);
}
nav svg {
  width: 22px;
  height: 22px;
}

/* controls */
.switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2px 0 14px;
}
.switch b {
  font-size: 17px;
  letter-spacing: -0.02em;
}
.seg {
  display: flex;
  background: var(--fill);
  border-radius: 15px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 14px;
}
.seg button {
  flex: 1;
  padding: 9px;
  border-radius: 12px;
  font-weight: 650;
  font-size: 13px;
  color: var(--mute);
  transition: all 0.15s;
}
.seg button.on {
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.search {
  position: relative;
  margin-bottom: 10px;
}
.search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mute);
}
.search input {
  padding-left: 42px;
}
.filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 -16px 6px;
  padding: 2px 16px 8px;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar {
  display: none;
}
.fchip {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 99px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 650;
  color: var(--mute);
}
.fchip.on {
  background: linear-gradient(135deg, var(--a1), var(--a2));
  color: #fff;
  border-color: transparent;
}

/* progress */
.bar {
  height: 9px;
  border-radius: 99px;
  background: var(--fill);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--a1), var(--a3));
  transition: width 0.6s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.bar.over i {
  background: linear-gradient(90deg, var(--warn), var(--bad));
}

/* charts */
.donut {
  display: flex;
  align-items: center;
  gap: 16px;
}
.donut .ring {
  position: relative;
  width: 136px;
  height: 136px;
  flex: none;
}
.donut svg {
  width: 136px;
  height: 136px;
  transform: rotate(-90deg);
}
.donut .mid {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}
.donut .mid small {
  color: var(--mute);
  font-size: 11px;
}
.donut .mid b {
  font-size: 16px;
  letter-spacing: -0.02em;
}
.legend {
  flex: 1;
  min-width: 0;
}
.legend div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 4px 0;
}
.legend i {
  width: 10px;
  height: 10px;
  border-radius: 4px;
  flex: none;
}
.legend span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.legend b {
  font-weight: 700;
}
.trend {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 120px;
  padding-top: 6px;
}
.trend div {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 6px;
  font-size: 11px;
  color: var(--mute);
  font-weight: 600;
}
.trend i {
  display: block;
  width: 100%;
  border-radius: 10px 10px 6px 6px;
  background: var(--fill);
  min-height: 6px;
  transition: height 0.6s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.trend .cur i {
  background: linear-gradient(180deg, var(--a1), var(--a2));
}
.trend .cur {
  color: var(--ink);
}

/* groceries */
.quick {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.quick input {
  flex: 1;
}
.chk {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--mute) 60%, transparent);
  display: grid;
  place-items: center;
  flex: none;
  transition: all 0.15s;
  color: transparent;
}
.chk.on {
  background: var(--ok);
  border-color: var(--ok);
  color: #fff;
}
.done .t {
  text-decoration: line-through;
  color: var(--mute);
}
.price {
  width: 80px;
  text-align: right;
  padding: 9px 10px;
  border-radius: 12px;
  flex: none;
}
.checkout {
  position: fixed;
  left: 16px;
  right: 16px;
  max-width: 528px;
  margin: 0 auto;
  bottom: calc(92px + env(safe-area-inset-bottom));
  z-index: 25;
}

/* inputs */
input,
select {
  width: 100%;
  background: var(--fill);
  border: 1.5px solid transparent;
  border-radius: 15px;
  padding: 13px 14px;
  outline: none;
  transition:
    border 0.15s,
    background 0.15s;
  min-width: 0;
  -webkit-appearance: none;
  appearance: none;
}
input:focus,
select:focus {
  border-color: var(--a1);
  background: var(--card);
}
input[type='number'] {
  -moz-appearance: textfield;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input::placeholder {
  color: var(--mute);
}
label.f {
  display: block;
  margin-bottom: 12px;
}
label.f > span {
  display: block;
  font-size: 12px;
  font-weight: 650;
  color: var(--mute);
  margin: 0 2px 6px;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.amount-in {
  font-size: 34px;
  font-weight: 750;
  text-align: center;
  padding: 16px;
  letter-spacing: -0.03em;
}
.cats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.cats label {
  cursor: pointer;
}
.cats input {
  display: none;
}
.cats span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 11px 2px 9px;
  border-radius: 16px;
  background: var(--fill);
  font-size: 10.5px;
  font-weight: 650;
  color: var(--mute);
  border: 1.5px solid transparent;
  transition: all 0.15s;
}
.cats input:checked + span {
  border-color: var(--c);
  color: var(--ink);
  background: color-mix(in srgb, var(--c) 12%, transparent);
}
.swatches {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.sw {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 3px solid transparent;
  box-shadow: 0 8px 16px -8px rgba(0, 0, 0, 0.4);
}
.sw.on {
  border-color: var(--ink);
}

/* sheet */
.sheet-wrap {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
}
.scrim {
  position: absolute;
  inset: 0;
  background: rgba(6, 4, 12, 0.6);
  opacity: 0;
  transition: opacity 0.25s;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 560px;
  margin: 0 auto;
  background: var(--card);
  border-radius: 30px 30px 0 0;
  padding: 10px 20px calc(22px + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.2, 0.9, 0.3, 1);
  max-height: 92dvh;
  overflow: auto;
}
.sheet-wrap.open {
  pointer-events: auto;
}
.sheet-wrap.open .scrim {
  opacity: 1;
}
.sheet-wrap.open .sheet {
  transform: none;
}
.grab {
  width: 40px;
  height: 5px;
  border-radius: 9px;
  margin: 0 auto 14px;
  background: var(--mute);
  opacity: 0.35;
}
.sheet h3 {
  margin: 0 0 16px;
  font-size: 21px;
  letter-spacing: -0.03em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* toast */
#toast {
  position: fixed;
  left: 50%;
  top: calc(14px + env(safe-area-inset-top));
  transform: translate(-50%, -90px);
  background: var(--ink);
  color: var(--bg);
  padding: 11px 18px;
  border-radius: 99px;
  font-weight: 650;
  font-size: 14px;
  z-index: 200;
  transition: transform 0.3s;
  box-shadow: 0 14px 30px -8px rgba(0, 0, 0, 0.45);
  max-width: 90vw;
  display: flex;
  gap: 8px;
  align-items: center;
}
#toast.show {
  transform: translate(-50%, 0);
}
#toast.err {
  background: var(--bad);
  color: #fff;
}

/* auth */
.auth {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  max-width: 420px;
  margin: 0 auto;
}
.logo-img {
  display: block;
  width: 76px;
  height: 76px;
  border-radius: 26px;
  box-shadow: 0 20px 38px -14px var(--a1);
  margin-bottom: 22px;
}
.logo {
  width: 76px;
  height: 76px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 20px 38px -14px var(--a1);
  margin-bottom: 22px;
}
.auth h1 {
  font-size: 32px;
  letter-spacing: -0.04em;
  margin: 0 0 6px;
  font-weight: 800;
}
.auth p {
  color: var(--mute);
  margin: 0 0 24px;
}
.auth form {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.err {
  color: var(--bad);
  min-height: 1.4em;
  font-size: 13px;
  margin-bottom: 6px;
}

/* misc */
/* (the saved copy of a page shown while fresh data loads is tappable: a tap is carried out at once or repeated when the page is live) */
.sk {
  height: 110px;
  border-radius: var(--r);
  margin-bottom: 14px;
  background: linear-gradient(90deg, var(--card), var(--fill), var(--card));
  background-size: 200% 100%;
  animation: sh 1.2s infinite;
}
@keyframes sh {
  to {
    background-position: -200% 0;
  }
}
.fade {
  animation: fd 0.28s ease;
}
@keyframes fd {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.menu {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
}
.menu .chev {
  margin-left: auto;
  color: var(--mute);
}
.note {
  font-size: 12px;
  text-align: center;
  color: var(--mute);
  margin: 6px 0 14px;
}
/* feature additions */
.trip {
  display: block;
  width: 100%;
  text-align: left;
  color: inherit;
}
.board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 6px 2px;
}
.sticky {
  position: relative;
  border-radius: 6px 6px 22px 6px;
  padding: 16px 14px 12px;
  min-height: 130px;
  color: #1f2937;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 18px -10px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s;
}
.sticky:active {
  transform: scale(0.97) rotate(0) !important;
}
.stxt {
  white-space: pre-wrap;
  word-break: break-word;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sfoot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 11px;
  font-weight: 650;
  opacity: 0.85;
}
.rtag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(0, 0, 0, 0.12);
  padding: 3px 8px;
  border-radius: 99px;
}
.rtag.due {
  background: #ef4444;
  color: #fff;
}
.rtag.done {
  text-decoration: line-through;
  opacity: 0.6;
}
.sb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.1);
  color: #1f2937;
}
.pin {
  position: absolute;
  top: -7px;
  right: 14px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff7, #e11d48 55%, #9f1239);
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.35);
}
.nsw {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: block;
  border: 3px solid transparent;
  cursor: pointer;
}
.nsw.on {
  border-color: var(--ink);
}
textarea {
  width: 100%;
  background: var(--fill);
  border: 1.5px solid transparent;
  border-radius: 15px;
  padding: 13px 14px;
  outline: none;
  resize: vertical;
  font: inherit;
  color: inherit;
}
textarea:focus {
  border-color: var(--a1);
  background: var(--card);
}
.offline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 0 12px;
  padding: 8px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 650;
  background: color-mix(in srgb, var(--warn) 16%, transparent);
  color: var(--warn);
}
.chkrow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border-top: 1px solid var(--line);
}
.chkrow input {
  display: none;
}
.tg {
  width: 42px;
  height: 25px;
  border-radius: 99px;
  background: var(--fill);
  position: relative;
  flex: none;
  transition: background 0.2s;
  border: 1px solid var(--line);
}
.tg::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--mute);
  transition: all 0.2s;
}
.chkrow input:checked + .tg {
  background: var(--a1);
  border-color: transparent;
}
.chkrow input:checked + .tg::after {
  left: 19px;
  background: #fff;
}
.mini {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 6px;
  font-size: 11px;
  color: var(--mute);
  vertical-align: middle;
}
.rimg {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 10px;
}
.qa {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 6px 6px 6px 14px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  color: var(--a1);
}
.qa input {
  background: transparent;
  padding: 9px 4px;
  border: 0;
  flex: 1;
  color: var(--ink);
}
.qa input:focus {
  background: transparent;
}
.bell {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
}
.bell i {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--bad);
  color: #fff;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.yr {
  display: flex;
  gap: 5px;
  align-items: flex-end;
  height: 130px;
}
.yr > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  font-size: 10.5px;
  color: var(--mute);
  font-weight: 600;
}
.yr span {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  gap: 2px;
}
.yr i {
  flex: 1;
  border-radius: 5px 5px 2px 2px;
  min-height: 2px;
}
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin: 0 3px 0 6px;
}
.lock {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lock h2 {
  margin: 0 0 18px;
  font-size: 22px;
  letter-spacing: -0.03em;
}
.dots {
  display: flex;
  gap: 14px;
  margin-bottom: 8px;
}
.dots i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--mute);
}
.dots i.on {
  background: var(--a1);
  border-color: var(--a1);
}
.pad {
  display: grid;
  grid-template-columns: repeat(3, 76px);
  gap: 14px;
  margin-top: 10px;
}
.pad button {
  height: 76px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 26px;
  font-weight: 600;
  box-shadow: var(--shadow);
}
.pad button:active {
  background: var(--fill);
}
/* native feel */
html {
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
}
body {
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
  padding-bottom: calc(86px + env(safe-area-inset-bottom));
}
input,
textarea {
  -webkit-user-select: text;
  user-select: text;
}
input,
select,
textarea {
  font-size: 16px;
}
img {
  -webkit-user-drag: none;
}
button:active:not(:disabled) {
  opacity: 0.72;
}
.tile:active,
.row[data-edit]:active,
.row[data-pick]:active,
.card.trip:active {
  transform: scale(0.985);
  transition: transform 0.1s;
}
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  margin: 0 -16px;
  padding: calc(14px + env(safe-area-inset-top)) 16px 12px;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition:
    padding 0.2s,
    box-shadow 0.2s;
}
.top h1 {
  transition: font-size 0.2s;
}
.top small {
  transition:
    opacity 0.2s,
    height 0.2s;
  height: 18px;
}
.top.scrolled {
  padding-top: calc(8px + env(safe-area-inset-top));
  padding-bottom: 8px;
  box-shadow: 0 1px 0 var(--line);
}
.top.scrolled h1 {
  font-size: 19px;
}
.top.scrolled small {
  opacity: 0;
  height: 0;
  overflow: hidden;
}
nav {
  left: 0;
  right: 0;
  bottom: 0;
  max-width: none;
  margin: 0;
  border-radius: 0;
  border: 0;
  border-top: 1px solid var(--line);
  box-shadow: none;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  justify-content: center;
  gap: 4px;
}
nav button {
  max-width: 112px;
  padding: 7px 0 5px;
}
.fab {
  bottom: calc(76px + env(safe-area-inset-bottom));
  width: 56px;
  height: 56px;
  border-radius: 20px;
}
.checkout {
  bottom: calc(74px + env(safe-area-inset-bottom));
}
.whobar,
.filters {
  overscroll-behavior-x: contain;
}
#ptr {
  position: fixed;
  top: calc(8px + env(safe-area-inset-top));
  left: 50%;
  transform: translate(-50%, -20px);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--a1);
  box-shadow: var(--shadow);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
#ptr.spin svg {
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
#splash {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  transition:
    opacity 0.35s,
    transform 0.35s;
}
#splash img {
  border-radius: 26px;
  box-shadow: 0 24px 50px -18px var(--a1);
  animation: pop 0.6s cubic-bezier(0.2, 1.2, 0.3, 1);
}
#splash .sp-name {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--ink);
}
#splash.out {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}
@keyframes pop {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
}
@media (display-mode: standalone) {
  body {
    overflow-x: hidden;
  }
}
@media (min-width: 700px) {
  body {
    background: var(--bg);
  }
  .wrap {
    box-shadow: 0 0 0 1px var(--line);
    min-height: 100dvh;
  }
  nav {
    left: 50%;
    right: auto;
    width: 560px;
    transform: translateX(-50%);
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }
}
/* part 3 */
.cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}
.cal .dh {
  font-size: 11px;
  font-weight: 700;
  color: var(--mute);
  padding: 4px 0;
}
.dc {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  font-weight: 650;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: transparent;
}
.dc.today {
  color: var(--a1);
}
.dc.sel {
  background: linear-gradient(135deg, var(--a1), var(--a2));
  color: #fff;
}
.dc .cdots {
  display: flex;
  gap: 2px;
  height: 5px;
}
.dc .cdots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.dc.sel .cdots i {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7);
}
.dc.att {
  background: var(--fill);
  aspect-ratio: 1.2;
}
.dc.att.absent {
  background: color-mix(in srgb, var(--bad) 22%, transparent);
  color: var(--bad);
}
.dc.att.half {
  background: color-mix(in srgb, var(--warn) 24%, transparent);
  color: var(--warn);
}
.undo {
  margin-left: 6px;
  padding: 4px 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.22);
  color: inherit;
  font-weight: 750;
}
/* ===== v2 design: typography, depth, motion ===== */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/pjs-latin-ext.woff2) format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/pjs-latin.woff2) format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
  --r: 26px;
  --hair: rgba(255, 255, 255, 0.55);
}
@media (prefers-color-scheme: dark) {
  html:not([data-mode='light']) {
    --hair: rgba(255, 255, 255, 0.07);
  }
}
html[data-mode='dark'] {
  --hair: rgba(255, 255, 255, 0.07);
}
body,
button,
input,
select,
textarea {
  font-family: var(--font);
}
body {
  font-feature-settings: 'ss01', 'cv11';
  letter-spacing: -0.006em;
}
.amt,
.big,
.stat b,
.tile b,
b,
.pill,
.chip b,
.price,
.legend b {
  font-variant-numeric: tabular-nums;
}
body::before {
  height: 420px;
  background:
    radial-gradient(55% 90% at 90% -15%, color-mix(in srgb, var(--a1) calc(var(--glow) * 140%), transparent), transparent),
    radial-gradient(45% 70% at -5% 0%, color-mix(in srgb, var(--a2) calc(var(--glow) * 90%), transparent), transparent);
}

/* cards: soft depth with a hairline highlight */
.card {
  border-radius: var(--r);
  background: linear-gradient(180deg, color-mix(in srgb, var(--card) 92%, white), var(--card));
  border: 1px solid var(--line);
  box-shadow:
    inset 0 1px 0 var(--hair),
    var(--shadow);
}
@media (prefers-color-scheme: dark) {
  html:not([data-mode='light']) .card {
    background: linear-gradient(180deg, color-mix(in srgb, var(--card) 90%, white), var(--card));
  }
}
html[data-mode='dark'] .card {
  background: linear-gradient(180deg, color-mix(in srgb, var(--card) 90%, white), var(--card));
}
.card h2 {
  font-size: 14.5px;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.card h2 span {
  background: var(--fill);
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 650;
}
.day {
  font-size: 11px;
  letter-spacing: 0.09em;
}
.top h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.top small {
  font-weight: 600;
}
.ic {
  background-image: linear-gradient(145deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 60%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 16%, transparent);
}
.ic {
  border-radius: 15px;
}
.ic.sm {
  border-radius: 12px;
}

/* entrance motion */
.fade > * {
  animation: rise 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.fade > *:nth-child(1) {
  animation-delay: 0ms;
}
.fade > *:nth-child(2) {
  animation-delay: 18ms;
}
.fade > *:nth-child(3) {
  animation-delay: 36ms;
}
.fade > *:nth-child(4) {
  animation-delay: 54ms;
}
.fade > *:nth-child(5) {
  animation-delay: 72ms;
}
.fade > *:nth-child(6) {
  animation-delay: 90ms;
}
.fade > *:nth-child(7) {
  animation-delay: 108ms;
}
.fade > *:nth-child(n + 8) {
  animation-delay: 124ms;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
}
.fade {
  animation: none;
}
.bar i {
  transform-origin: left center;
  animation: grow 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s both;
}
@keyframes grow {
  from {
    transform: scaleX(0);
  }
}
.trend i {
  transform-origin: bottom;
  animation: rise2 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s both;
}
@keyframes rise2 {
  from {
    transform: scaleY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .fade > *,
  .bar i,
  .trend i {
    animation: none !important;
  }
}

/* hero 2 */
.hero2 {
  position: relative;
  overflow: hidden;
  border: 0;
  color: #fff;
  padding: 20px 20px 18px;
  border-radius: 30px;
  background: linear-gradient(140deg, var(--h1) 0%, var(--h2) 100%);
  box-shadow:
    0 26px 44px -22px var(--h1),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.hero2::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 70% at 100% 0%, rgba(255, 255, 255, 0.28), transparent 60%),
    radial-gradient(60% 60% at 0% 100%, rgba(255, 255, 255, 0.12), transparent 70%);
  pointer-events: none;
}
.hero2 > * {
  position: relative;
  z-index: 1;
}
.hero-r {
  display: flex;
  align-items: center;
  gap: 8px;
}
.eye {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition:
    transform 0.15s,
    background 0.2s;
}
.eye:active {
  transform: scale(0.9);
}
.stats3 .m {
  display: none;
  letter-spacing: 0.12em;
}
.masked .stats3 .m {
  display: inline;
}
.masked .stats3 .v {
  display: none;
}
.stats3 small {
  display: flex;
  align-items: center;
  gap: 5px;
}
.stats3 > div:nth-child(1) small svg {
  color: #6ee7b7;
}
.stats3 > div:nth-child(2) small svg {
  color: #fde68a;
}
.stats3 > div:nth-child(3) small svg {
  color: #fda4af;
}
.hero2::after {
  content: '';
  position: absolute;
  right: -40px;
  bottom: -90px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 34px solid rgba(255, 255, 255, 0.07);
  pointer-events: none;
}
.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.hero2 .lbl {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.92;
}
.delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 750;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.hero2 .big {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.05;
  margin: 8px 0 2px;
}
.hero2 .sub {
  font-size: 12.5px;
  font-weight: 600;
  opacity: 0.85;
}
.spark {
  margin: 6px -20px 4px;
  height: 62px;
  opacity: 0.95;
}
.spark svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.stats3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 6px;
}
.stats3 > div {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  padding: 10px 12px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  min-width: 0;
}
.stats3 small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  opacity: 0.85;
}
.stats3 b {
  display: block;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* quick actions */
.qacts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.qact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 12px 4px 10px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow:
    inset 0 1px 0 var(--hair),
    var(--shadow);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  transition: transform 0.15s;
}
.qact:active {
  transform: scale(0.94);
}
.qact .ic {
  width: 44px;
  height: 44px;
  border-radius: 16px;
}

/* ring + flow */
.duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.duo > .card {
  margin: 0;
  padding: 16px;
}
.ringcard {
  text-align: left;
  display: block;
}
.ringwrap {
  position: relative;
  width: 92px;
  height: 92px;
  margin-bottom: 10px;
}
.ringwrap svg {
  width: 92px;
  height: 92px;
  transform: rotate(-90deg);
}
.ringwrap .rc {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.03em;
}
.ringwrap .rc small {
  font-size: 10px;
  font-weight: 650;
  color: var(--mute);
  letter-spacing: 0;
}
.ring-bg {
  stroke: var(--fill);
}
.ring-fg {
  stroke-linecap: round;
  animation: ringin 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s both;
}
@keyframes ringin {
  from {
    stroke-dashoffset: var(--circ);
  }
}
.flowrow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  font-weight: 650;
  color: var(--mute);
  margin-top: 12px;
}
.flowrow b {
  font-size: 16px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.left-big {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-top: 2px;
}

/* tiles + buttons + pills */
.tile {
  border-radius: 24px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--card) 92%, white), var(--card));
  box-shadow:
    inset 0 1px 0 var(--hair),
    var(--shadow);
}
.btn {
  border-radius: 16px;
  letter-spacing: -0.01em;
}
.btn.primary {
  background: linear-gradient(135deg, var(--a1), var(--a2));
  box-shadow:
    0 12px 24px -12px var(--a1),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn.soft {
  background: color-mix(in srgb, var(--fill) 86%, var(--card));
  box-shadow: inset 0 0 0 1px var(--line);
}
.pill {
  font-weight: 700;
  letter-spacing: 0;
}
.fab {
  border-radius: 22px;
  box-shadow:
    0 18px 32px -12px var(--a1),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
input,
select,
textarea {
  border-radius: 16px;
}
.seg {
  border-radius: 18px;
  padding: 4px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.seg button {
  border-radius: 14px;
}
.fchip,
.whobar button {
  box-shadow: inset 0 1px 0 var(--hair);
}

/* nav: floating glass bar with a lit active state */
nav {
  background: color-mix(in srgb, var(--nav) 92%, transparent);
  border-top: 1px solid var(--line);
}
nav button {
  font-weight: 700;
  position: relative;
}
nav button.on {
  background: transparent;
}
nav button.on::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 50%;
  width: 46px;
  height: 30px;
  margin-left: -23px;
  border-radius: 15px;
  background: color-mix(in srgb, var(--a1) 16%, transparent);
  z-index: -1;
  animation: pop2 0.3s cubic-bezier(0.2, 1.4, 0.4, 1);
}
@keyframes pop2 {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
}
nav button.on svg {
  stroke-width: 2.3;
}
nav button svg {
  transition: transform 0.25s;
}
nav button.on svg {
  transform: translateY(-1px) scale(1.06);
}

/* sheets */
.sheet {
  border-radius: 34px 34px 0 0;
  box-shadow:
    0 -20px 60px -20px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 var(--hair);
}
.sheet h3 {
  font-size: 22px;
  letter-spacing: -0.035em;
}
.amount-in {
  font-size: 38px;
  letter-spacing: -0.04em;
}

/* charts */
.trend {
  height: 132px;
}
.trend i {
  border-radius: 12px 12px 6px 6px;
}
.donut .ring {
  width: 140px;
  height: 140px;
}
.donut svg {
  width: 140px;
  height: 140px;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.12));
}
.donut .mid b {
  font-size: 17px;
  font-weight: 800;
}

/* hero cards must beat the generic card gradient (also in dark mode) */
html body .card.hero,
html body .card.hero2 {
  background: linear-gradient(140deg, var(--h1) 0%, var(--h2) 100%);
  border: 0;
}
/* sign-in */
.auth {
  position: relative;
  max-width: 440px;
}
.auth > * {
  position: relative;
  z-index: 1;
}
.auth::before,
.auth::after {
  content: '';
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
}
.auth::before {
  width: 340px;
  height: 340px;
  left: -120px;
  top: -60px;
  background: var(--a1);
  animation: drift 14s ease-in-out infinite alternate;
}
.auth::after {
  width: 300px;
  height: 300px;
  right: -120px;
  bottom: -40px;
  background: var(--a2);
  animation: drift 18s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  to {
    transform: translate(40px, 30px) scale(1.1);
  }
}
.auth .logo-img {
  width: 84px;
  height: 84px;
  border-radius: 28px;
  animation: floaty 5s ease-in-out infinite;
}
@keyframes floaty {
  50% {
    transform: translateY(-6px);
  }
}
.auth h1 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.045em;
}
.auth form {
  background: color-mix(in srgb, var(--card) 78%, transparent);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 20px;
  box-shadow:
    inset 0 1px 0 var(--hair),
    var(--shadow);
}
.empty .ic {
  width: 76px;
  height: 76px;
  border-radius: 28px;
  box-shadow:
    0 18px 30px -16px currentColor,
    inset 0 0 0 1px color-mix(in srgb, currentColor 18%, transparent);
}
.sticky {
  border-radius: 8px 8px 26px 8px;
}
/* profile */
.avbtn {
  border-radius: 50%;
  padding: 0;
}
.avbtn .avatar {
  transition: transform 0.15s;
}
.avbtn:active .avatar {
  transform: scale(0.92);
}
.avatar {
  background-size: cover !important;
  overflow: hidden;
}
.avatar.xl {
  width: 96px;
  height: 96px;
  font-size: 40px;
  border: 3px solid var(--card);
  box-shadow: 0 18px 34px -14px rgba(0, 0, 0, 0.5);
}
.profile {
  text-align: center;
  padding: 26px 16px 20px;
}
.profile .pname {
  margin: 14px 0 2px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
  display: block;
}
.pav {
  position: relative;
  display: inline-block;
}
.pcam {
  position: absolute;
  right: -4px;
  bottom: -2px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--a1), var(--a2));
  border: 3px solid var(--card);
}
.csw {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: block;
  border: 3px solid transparent;
  cursor: pointer;
}
.csw.on {
  border-color: var(--ink);
}
/* ===== floating glass nav with an expanding active pill ===== */
body {
  padding-bottom: calc(112px + env(safe-area-inset-bottom));
}
nav {
  left: 14px;
  right: 14px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  max-width: 520px;
  width: auto;
  margin: 0 auto;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 32px;
  justify-content: space-between;
  gap: 2px;
  transform: none;
  background: color-mix(in srgb, var(--nav) 86%, transparent);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow:
    0 22px 48px -16px rgba(0, 0, 0, 0.5),
    0 2px 0 rgba(255, 255, 255, 0.04) inset,
    inset 0 1px 0 var(--hair);
}
nav button {
  flex: 0 0 auto;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: none;
  height: 48px;
  min-width: 48px;
  padding: 0 13px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: -0.01em;
  color: var(--mute);
  transition:
    background 0.3s,
    color 0.25s,
    padding 0.3s,
    box-shadow 0.3s;
}
nav button::before {
  display: none !important;
}
nav button .nl {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  margin-left: 0;
  transition:
    max-width 0.35s cubic-bezier(0.2, 0.9, 0.3, 1),
    opacity 0.25s,
    margin 0.3s;
}
nav button.on {
  padding: 0 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--a1), var(--a2));
  box-shadow:
    0 12px 22px -10px var(--a1),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
nav button.on .nl {
  max-width: 84px;
  opacity: 1;
  margin-left: 8px;
}
nav button svg {
  width: 23px;
  height: 23px;
  transition: transform 0.3s cubic-bezier(0.2, 1.4, 0.4, 1);
}
nav button.on svg {
  transform: scale(1.02);
  stroke-width: 2.2;
}
nav button:active:not(.on) svg {
  transform: scale(0.86);
}
nav button.alerting::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bad);
  box-shadow: 0 0 0 2.5px var(--nav);
}
nav button.on.alerting::after {
  background: #fff;
  box-shadow: 0 0 0 2px var(--a2);
}
.fab {
  bottom: calc(94px + env(safe-area-inset-bottom));
}
.checkout {
  bottom: calc(90px + env(safe-area-inset-bottom));
}
@media (min-width: 700px) {
  nav {
    left: 50%;
    right: auto;
    width: 520px;
    transform: translateX(-50%);
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }
}
/* tighter float: sit close to the bottom edge (home-indicator space is only partly used) */
:root {
  --nb: max(10px, calc(env(safe-area-inset-bottom) - 14px));
}
body {
  padding-bottom: calc(var(--nb) + 92px);
}
nav {
  bottom: var(--nb);
}
.fab {
  bottom: calc(var(--nb) + 78px);
}
.checkout {
  bottom: calc(var(--nb) + 76px);
}
/* header with back button */
.top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.top .ttl {
  flex: 1;
  min-width: 0;
}
.top h1 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.backb {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow:
    inset 0 1px 0 var(--hair),
    var(--shadow);
  display: grid;
  place-items: center;
  flex: none;
  color: var(--ink);
}
.famchip {
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  padding: 4px 6px 4px 11px;
  border-radius: 99px;
  background: var(--fill);
  font-size: 12px;
  font-weight: 700;
  color: var(--mute);
  max-width: 100%;
  box-shadow: inset 0 0 0 1px var(--line);
}
.famchip:active {
  opacity: 0.7;
}
.seeall {
  font-size: 12px;
  font-weight: 700;
  color: var(--a1);
  background: none;
  padding: 2px 4px;
}
/* ===== swipe rows ===== */
.swp {
  position: relative;
  overflow: hidden;
  margin: 0 -16px;
}
.card:has(.swp) {
  overflow: hidden;
}
.swp .sw-front {
  position: relative;
  background: var(--card);
  will-change: transform;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1);
  border-top: 0;
  padding: 11px 16px;
  width: 100%;
}
.sw + .swp .sw-front {
  border-top: 1px solid var(--line);
}
.sw-actions {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  pointer-events: none;
}
.swp.open .sw-actions,
.swp.dragging .sw-actions {
  opacity: 1;
  pointer-events: auto;
}
.sw-b {
  width: 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.sw-b.edit {
  background: linear-gradient(135deg, var(--a1), var(--a2));
}
.sw-b.del {
  background: linear-gradient(135deg, #fb7185, var(--bad));
}
.sw-b:active {
  filter: brightness(0.9);
}
.rtag {
  white-space: nowrap;
}
.sfoot {
  flex-wrap: wrap;
  row-gap: 6px;
}
.h2t {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: inherit;
}
/* checkboxes in lists (import preview, split between people) */
input[type='checkbox'] {
  width: 22px !important;
  height: 22px;
  min-width: 22px;
  padding: 0;
  flex: none;
  border-radius: 7px;
  border: 2px solid color-mix(in srgb, var(--mute) 65%, transparent);
  background: transparent;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}
input[type='checkbox']:checked {
  border-color: var(--a1);
  background: var(--a1)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
    center/15px no-repeat;
}
/* keyboard focus */
:focus {
  outline: none;
}
:focus-visible {
  outline: 2.5px solid color-mix(in srgb, var(--a1) 70%, white);
  outline-offset: 2px;
  border-radius: 12px;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
}
::selection {
  background: color-mix(in srgb, var(--a1) 30%, transparent);
}
/* ===== type scale (mobile): 12 caption · 13 secondary · 15 body · 17 emphasis · 20/22/28 titles · 42 hero ===== */
:root {
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-md: 15px;
  --fs-lg: 17px;
  --fs-xl: 20px;
  --fs-h2: 22px;
  --fs-h1: 28px;
  --fs-hero: 42px;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  font-size: var(--fs-md);
  line-height: 1.45;
}
.dc {
  font-size: 15px;
}
.ringwrap .rc {
  font-size: 20px;
}
.profile .pname {
  font-size: 22px;
}
.stxt {
  font-size: 15px;
}
/* captions: never smaller than 12px */
.pill,
.rtag,
.mini,
.delta,
.chip,
.stats3 small,
.hero .chip,
.card h2 span,
.day,
.trend div,
.yr > div,
.cal .dh,
.sfoot,
.donut .mid small,
.ringwrap .rc small,
.legend div,
.ringwrap .rc small,
.flowrow,
.row .amt .s,
.tile em {
  font-size: var(--fs-xs);
}
.stats3 b,
.hero .chip b {
  font-size: 16px;
}
.bell i {
  font-size: 11px;
}
.cats span {
  font-size: 11.5px;
  letter-spacing: -0.01em;
  padding-left: 0;
  padding-right: 0;
}
/* secondary text */
.row .s,
.note,
.tile small,
.mute,
.s,
label.f > span,
.qact,
.sw-b,
.top small,
.flowrow,
.hero .sub,
.hero2 .sub,
.hero2 .lbl,
.hero .lbl {
  font-size: var(--fs-sm);
}
.note {
  line-height: 1.4;
}
.hero2 .lbl,
.hero .lbl {
  font-weight: 600;
}
/* titles and numbers */
.card h2 {
  font-size: var(--fs-md);
}
.tile b,
.left-big,
.stat b {
  font-size: var(--fs-xl);
}
.top h1 {
  font-size: var(--fs-h1);
}
.sheet h3 {
  font-size: var(--fs-h2);
}
.hero .big {
  font-size: var(--fs-hero);
}
.hero2 .big {
  font-size: var(--fs-hero);
}
.donut .mid b {
  font-size: var(--fs-lg);
}
.row .t {
  font-size: var(--fs-md);
}
@media (max-width: 360px) {
  :root {
    --fs-hero: 38px;
    --fs-h1: 26px;
  }
  .cats span {
    font-size: 11px;
  }
}
/* v3 calm: flatter cards, tonal secondary actions, press feedback, 44px targets */
:root {
  --shadow: 0 1px 2px rgba(20, 18, 28, 0.04), 0 8px 20px -12px rgba(20, 18, 28, 0.1);
}
html body .card {
  box-shadow: var(--shadow);
}
html body .card.hero,
html body .card.hero2 {
  box-shadow:
    0 16px 30px -20px var(--h1),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
#view .card .btn.primary:not(.block):not(.qa *) {
  background: color-mix(in srgb, var(--a1) 13%, transparent);
  color: var(--a1);
  box-shadow: none;
  border: 0;
}
#view .card .btn.primary:not(.block):not(.qa *):active {
  background: color-mix(in srgb, var(--a1) 22%, transparent);
}
#view .row,
#view .tile,
#view .qact,
#view .ringcard,
#view .card[data-go] {
  transition:
    transform 0.14s ease,
    background 0.2s;
}
#view .row:active,
#view .tile:active,
#view .qact:active,
#view .ringcard:active,
#view .card[data-go]:active {
  transform: scale(0.985);
}
.icon-btn {
  min-width: 40px;
  min-height: 40px;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--a1) 55%, transparent);
  outline-offset: 1px;
}
button:focus-visible {
  outline: 2px solid var(--a1);
  outline-offset: 2px;
}
.empty {
  padding: 44px 24px 24px;
  line-height: 1.5;
}
html {
  /* (no global smooth scrolling: the router jumps instantly between pages; smooth scrolling is asked for explicitly where wanted) */
  -webkit-tap-highlight-color: transparent;
}

/* ===== loans ===== */
.loan-prog {
  font-size: 12px;
  display: flex;
  justify-content: space-between;
}
.lstats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.lstats > div {
  background: var(--fill);
  border-radius: 14px;
  padding: 9px 12px;
  min-width: 0;
}
.lstats small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--mute);
}
.lstats b {
  display: block;
  font-size: 14px;
  font-weight: 800;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lstats .warn b {
  color: var(--warn);
}
.lact {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.lact .btn.primary {
  flex: 1;
}
.lact .more {
  gap: 6px;
  padding-inline: 14px;
}
.more-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 4px 12px;
  color: var(--mute);
  font-weight: 700;
  font-size: 13px;
}
label.bf {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  margin: 4px 0 12px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--a1) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--a1) 22%, transparent);
}
label.bf input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex: none;
  accent-color: var(--a1);
}
label.bf b {
  display: block;
  font-size: 14px;
}
label.bf small {
  display: block;
  color: var(--mute);
  font-size: 12.5px;
  line-height: 1.45;
  margin-top: 2px;
}
.menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: -4px 0 12px;
}
.menu button {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 4px;
  font-weight: 600;
  font-size: 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.menu button:last-child {
  border-bottom: 0;
}
.menu button svg {
  color: var(--mute);
}
.menu .danger,
.menu .danger svg {
  color: var(--bad);
}

/* ===== settings: grouped list ===== */
.settings {
  padding-bottom: 12px;
}
.sgroup {
  margin-bottom: 22px;
}
.slabel {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 6px 8px;
}
.card.slist {
  padding: 2px 0;
  overflow: hidden;
}
.srow {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 13px 16px;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  background: none;
  transition: background 0.15s;
}
.srow + .srow {
  border-top: 1px solid var(--line);
}
.srow:active {
  background: var(--fill);
}
.srow .st {
  flex: 1;
  min-width: 0;
}
.srow .sv {
  color: var(--mute);
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
}
.srow > svg:last-child {
  color: var(--mute);
  flex: none;
  opacity: 0.7;
}
.srow.danger,
.srow.danger .st {
  color: var(--bad);
}
.snote {
  font-size: 12.5px;
  color: var(--mute);
  margin: 8px 8px 0;
  line-height: 1.45;
}
i.switch {
  position: relative;
  width: 46px;
  height: 28px;
  border-radius: 99px;
  background: var(--fill);
  border: 1px solid var(--line);
  flex: none;
  transition: background 0.2s;
}
i.switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
}
i.switch.on {
  background: var(--a1);
  border-color: var(--a1);
}
i.switch.on::after {
  transform: translateX(18px);
}

/* ===== spending summary ===== */
.sumcard {
  text-align: center;
  padding: 10px 12px 18px;
}
.sum-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sum-month {
  font-weight: 700;
  font-size: 14px;
  color: var(--mute);
}
.sum-amt {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-top: 4px;
}
.sumcard.inc .sum-amt {
  color: var(--ok);
}
.sum-sub {
  font-size: 13px;
  color: var(--mute);
  margin-top: 4px;
}

/* ===== groceries ===== */
.gsum {
  padding: 16px 18px;
}
.gsum-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.gsum-t {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.gsum-s {
  font-size: 13px;
  color: var(--mute);
  margin-top: 2px;
}
.gsum-amt {
  text-align: right;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.gsum-amt small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--mute);
  letter-spacing: 0;
  margin-top: 1px;
}
/* the Edit / Delete buttons exist only while a row is being swiped or is open (they used to peek through the row's border) */
.swp:not(.open):not(.dragging) .sw-actions {
  visibility: hidden;
}

/* ===== page rhythm ===== */
#view {
  padding-bottom: 132px;
}
.empty .btn {
  margin-top: 16px;
}
.sum-sub.bad {
  color: var(--bad);
  font-weight: 600;
}
/* a card holding swipe rows is one flat colour, so the rows' solid fronts don't show as a band against the card's gradient */
html body .card:has(.swp) {
  background: var(--card);
}

/* ===== Today / Plans / Me ===== */
.hero2 .big .m {
  display: none;
  letter-spacing: 0.1em;
}
.hero2.masked .big .v,
.hero2.masked .sub .v {
  display: none;
}
.hero2.masked .big .m,
.hero2.masked .sub .m {
  display: inline;
}
.hero2 .sub .m {
  display: none;
  letter-spacing: 0.1em;
}
.hero2 .bar.light {
  background: rgba(255, 255, 255, 0.25);
}
.hero2 .bar.light i {
  background: #fff;
}
.plancard {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
}
.plancard .pc-r {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}
.card .plancard {
  box-shadow: none;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  margin: 0;
  background: none;
  padding: 12px 0;
}
.card h2 + .plancard {
  border-top: 0;
}
.mecard {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
}

.linkrow {
  color: inherit;
  text-decoration: none;
}

/* ===== RSVP + polls ===== */
.seg.rsvp {
  margin: 8px 0 12px;
}
.rsvp-faces {
  display: flex;
  gap: -4px;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 26px;
  align-items: center;
}
.poll {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.card h2 + .poll {
  border-top: 0;
  padding-top: 4px;
}
.poll-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 15px;
}
.poll-s {
  font-size: 12.5px;
  color: var(--mute);
  margin: 2px 0 10px;
}
.poll.closed .poll-q {
  opacity: 0.75;
}
.opt {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 11px 14px;
  margin-top: 8px;
  border-radius: 14px;
  background: var(--fill);
  overflow: hidden;
  font-weight: 600;
  font-size: 14.5px;
  border: 1.5px solid transparent;
  transition:
    border-color 0.15s,
    transform 0.12s;
}
.opt:active {
  transform: scale(0.99);
}
.opt i {
  position: absolute;
  inset: 0 auto 0 0;
  background: color-mix(in srgb, var(--a1) 18%, transparent);
  transition: width 0.35s ease;
  pointer-events: none;
}
.opt > span {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}
.opt.mine {
  border-color: var(--a1);
}
.opt.win {
  border-color: var(--ok);
}
.opt.win i {
  background: color-mix(in srgb, var(--ok) 22%, transparent);
}
.opt:disabled {
  cursor: default;
}
.opt .on {
  font-weight: 800;
  color: var(--mute);
}
.voters {
  font-size: 12px;
  color: var(--mute);
  margin: 3px 4px 0;
}

/* ===== savings plan line ===== */
.gplan {
  font-size: 13px;
  line-height: 1.5;
  margin-top: 6px;
  color: var(--mute);
}
.gplan b {
  color: var(--ink);
}
.gplan.ok {
  color: var(--ok);
  font-weight: 700;
}
.gplan .pill {
  margin-right: 6px;
}

/* ===== trip overview ===== */
.tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin: 0 -16px 14px;
  padding: 2px 16px 6px;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar {
  display: none;
}
.tabs button {
  flex: none;
  padding: 9px 14px;
  border-radius: 99px;
  background: var(--fill);
  color: var(--mute);
  font-weight: 700;
  font-size: 13.5px;
  white-space: nowrap;
}
.tabs button.on {
  background: var(--ink);
  color: var(--bg);
}
.tripcard .trip-t {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 10px 0 10px;
}
.tripcard .trip-ppl {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.95;
}
.tripcard .trip-ppl span {
  margin-left: 8px;
}
.tripcard .trip-b {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.92;
}
.tripcard .trip-bal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 8px 14px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-weight: 700;
  font-size: 13.5px;
}
.row.step {
  width: 100%;
  text-align: left;
  padding: 11px 0;
}
.row.step.done .t {
  color: var(--mute);
  text-decoration: line-through;
}
.row.step .chk {
  pointer-events: none;
}
