:root {
  --page: #f4efe6;
  --surface: rgba(255, 252, 246, 0.82);
  --surface-strong: #fffaf3;
  --ink: #203129;
  --muted: #6d7b73;
  --accent: #1e7b68;
  --accent-soft: rgba(30, 123, 104, 0.12);
  --line: rgba(32, 49, 41, 0.12);
  --shadow: 0 28px 80px rgba(26, 41, 34, 0.10);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: -webkit-fill-available;
  height: 100%;
  margin: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(circle at top left, rgba(30, 123, 104, 0.10), transparent 30%),
    radial-gradient(circle at bottom right, rgba(203, 155, 108, 0.18), transparent 28%),
    var(--page);
  color: var(--ink);
  font-family: "Avenir Next", "Helvetica Neue", sans-serif;
  overflow-x: hidden;
  overscroll-behavior: none;
}

body.is-landing {
  background:
    radial-gradient(circle at top center, rgba(25, 44, 37, 0.22), transparent 36%),
    linear-gradient(180deg, #07100d 0%, #09130f 42%, #0b1712 100%);
  color: #f5f0e6;
  overflow-x: hidden;
  overflow-y: auto;
}

body.is-vibes-dark {
  background:
    radial-gradient(circle at top center, rgba(25, 44, 37, 0.22), transparent 36%),
    linear-gradient(180deg, #07100d 0%, #09130f 42%, #0b1712 100%);
  color: #f5f0e6;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.hidden {
  display: none !important;
}

.page-shell {
  min-height: 100svh;
  padding: 24px;
}

body:not(.is-landing) .page-shell {
  display: grid;
  min-height: 100svh;
  padding: 24px;
  place-items: center;
}

body.is-feed-screen-shell .page-shell {
  display: grid;
  min-height: 100svh;
  padding: 24px;
  place-items: center;
}

body:not(.is-landing) .page-shell main {
  width: 100%;
}

body.is-feed-screen-shell .page-shell main {
  height: auto;
  width: 100%;
}

body.is-landing .page-shell {
  display: grid;
  min-height: 100svh;
  overflow: visible;
  padding: 24px;
  place-items: center;
}

body.is-landing .page-shell main {
  width: 100%;
}

.topbar-action {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  min-height: 44px;
  padding: 0 18px;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.topbar-action:hover {
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(32, 49, 41, 0.2);
  transform: translateY(-1px);
}

.logout-icon-button {
  align-items: center;
  display: inline-grid;
  height: 44px;
  justify-items: center;
  padding: 0;
  width: 44px;
}

.logout-icon-button svg {
  fill: none;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 20px;
}

.settings-icon-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(32, 49, 41, 0.1);
  display: inline-grid;
  height: 36px;
  justify-items: center;
  padding: 0;
  width: 36px;
}

.settings-icon-button svg {
  fill: none;
  height: 16px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  width: 16px;
}

.landing-view {
  background:
    linear-gradient(180deg, rgba(11, 23, 18, 0.98), rgba(8, 16, 13, 0.96)),
    #0b1712;
  border: 1px solid rgba(245, 240, 230, 0.08);
  border-radius: 36px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  display: flex;
  flex-direction: column;
  height: 100svh;
  margin: 0 auto;
  max-height: min(860px, calc(100svh - 48px));
  max-width: 430px;
  min-height: min(760px, calc(100svh - 48px));
  overflow: hidden;
  position: relative;
  width: min(100%, 430px);
}

.dashboard-view {
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.96), rgba(255, 250, 243, 0.9)),
    var(--surface-strong);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 36px;
  box-shadow: 0 28px 90px rgba(26, 41, 34, 0.16);
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 auto;
  max-height: min(860px, calc(100svh - 48px));
  max-width: 430px;
  min-height: min(760px, calc(100svh - 48px));
  overflow: hidden;
  padding: 18px;
  width: min(100%, 430px);
}

.dashboard-banner {
  background: rgba(32, 49, 41, 0.06);
  border: 1px solid rgba(32, 49, 41, 0.08);
  border-radius: 999px;
  overflow: hidden;
  padding: 7px 0;
  text-align: center;
}

.dashboard-banner-track {
  align-items: center;
  animation: banner-scroll 18s linear infinite;
  color: var(--muted);
  display: flex;
  gap: 28px;
  min-width: max-content;
  padding-right: 28px;
  white-space: nowrap;
}

.dashboard-banner-track span {
  display: inline-flex;
  font-size: 0.74rem;
  justify-content: center;
  line-height: 1;
}

@keyframes banner-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.landing-public-shell {
  display: block;
  flex: 1 1 auto;
  height: 100%;
  isolation: isolate;
  min-height: 0;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.landing-topbar {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  left: 16px;
  pointer-events: auto;
  position: absolute;
  right: 16px;
  top: max(16px, env(safe-area-inset-top));
  z-index: 120;
}

.feed-scope-tabs {
  align-items: center;
  backdrop-filter: blur(16px);
  background: rgba(7, 16, 13, 0.18);
  border: 1px solid rgba(245, 240, 230, 0.12);
  border-radius: 999px;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  pointer-events: auto;
  position: relative;
  z-index: 1;
}

.feed-scope-tab {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: rgba(245, 240, 230, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
  min-height: 34px;
  padding: 0 14px;
  transition: background 160ms ease, color 160ms ease;
}

.feed-scope-tab.is-active {
  background: rgba(245, 240, 230, 0.94);
  color: #0b1712;
}

.landing-member-preview {
  align-items: center;
  background: #1a1a1a;
  border: 0;
  border-radius: 20px;
  color: #fff;
  display: inline-flex;
  gap: 10px;
  min-width: 0;
  padding: 10px 18px;
  pointer-events: auto;
  position: relative;
  z-index: 1;
}

.landing-my-posts-button {
  backdrop-filter: blur(16px);
  background: rgba(7, 16, 13, 0.18);
  border-color: rgba(245, 240, 230, 0.12);
  color: rgba(245, 240, 230, 0.92);
  flex: 0 0 auto;
  pointer-events: auto;
  position: relative;
  z-index: 1;
}

.landing-member-preview .pill-label {
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  line-height: 1;
  text-transform: uppercase;
}

.landing-member-preview .pill-divider {
  background: rgba(255, 255, 255, 0.15);
  display: inline-block;
  flex: 0 0 1px;
  height: 14px;
  width: 1px;
}

.landing-member-preview .pill-value {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 4px;
  line-height: 1;
}

body.is-vibes-dark .landing-member-preview {
  background: #1a1a1a;
  border: 0;
}

body.is-vibes-dark .landing-member-preview .pill-label {
  color: rgba(255, 255, 255, 0.45);
}

body.is-vibes-dark .landing-member-preview .pill-divider {
  background: rgba(255, 255, 255, 0.15);
}

body.is-vibes-dark .landing-member-preview .pill-value {
  color: #fff;
}

.landing-vibes {
  display: flex;
  flex-direction: column;
  gap: 0;
  inset: 0;
  min-height: 0;
  overflow-y: auto;
  padding-top: calc(max(16px, env(safe-area-inset-top)) + 52px);
  position: absolute;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  width: 100%;
  z-index: 0;
}

.landing-vibes::-webkit-scrollbar {
  display: none;
  width: 0;
}

.landing-vibe-card {
  border-bottom: 0;
  display: grid;
  flex: 0 0 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
  width: 100%;
}

.landing-vibe-photo {
  background:
    linear-gradient(180deg, rgba(3, 8, 6, 0.12) 0%, rgba(3, 8, 6, 0.38) 100%),
    linear-gradient(135deg, rgba(24, 53, 44, 0.88), rgba(10, 24, 20, 0.98) 68%);
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.landing-vibe-photo-image {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.landing-vibe-photo::after {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0, transparent 84px),
    linear-gradient(0deg, rgba(0, 0, 0, 0.76) 0, transparent 140px);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.landing-vibe-overlay {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100%;
  padding: 16px;
  position: relative;
  z-index: 1;
}

.landing-vibe-top {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.landing-vibe-top strong {
  color: #f5f0e6;
  font-size: 0.95rem;
  font-weight: 800;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
}

.landing-vibe-top span {
  color: rgba(245, 240, 230, 0.9);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
}

.landing-vibe-bottom {
  display: grid;
  gap: 8px;
  justify-items: stretch;
}

.landing-vibe-caption {
  backdrop-filter: blur(6px);
  background: rgba(15, 15, 15, 0.58);
  border-radius: 14px;
  color: rgba(245, 240, 230, 0.98);
  display: -webkit-box;
  font-size: 0.84rem;
  line-height: 1.42;
  margin: 0;
  max-width: min(88%, 360px);
  overflow: hidden;
  padding: 12px 14px;
  text-align: left;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.landing-vibe-spacer {
  min-height: 0;
}

.landing-vibe-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.landing-vibe-actions span {
  color: rgba(245, 240, 230, 0.78);
  font-size: 0.82rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

.landing-vibe-reply-button {
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(245, 240, 230, 0.96);
  font-size: 0.76rem;
  font-weight: 700;
  min-height: 36px;
  padding: 0 14px;
}

.feed-post-action-group {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 8px;
}

.feed-post-action-button {
  min-width: 0;
  white-space: nowrap;
}

.feed-post-action-button.is-secondary {
  background: rgba(255, 255, 255, 0.08);
}

.landing-vibe-timer {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  height: 4px;
  margin-top: 10px;
  overflow: hidden;
  width: 100%;
}

.landing-vibe-timer-fill {
  background: #e8e8e8;
  display: block;
  height: 100%;
  transform-origin: left center;
  width: 100%;
}

.landing-vibes-empty {
  align-content: center;
  color: rgba(245, 240, 230, 0.7);
  display: grid;
  flex: 1 1 auto;
  justify-items: center;
  min-height: 100%;
  padding: calc(max(16px, env(safe-area-inset-top)) + 90px) 24px 24px;
  text-align: center;
}

.landing-vibes-empty strong {
  font-size: 0.98rem;
  font-weight: 700;
}

.landing-signin-zone {
  align-items: end;
  background: linear-gradient(180deg, rgba(6, 12, 10, 0) 0%, rgba(6, 12, 10, 0.82) 34%, rgba(6, 12, 10, 0.96) 100%);
  display: none;
  inset: 0;
  justify-items: center;
  overflow-y: auto;
  padding: 18px 14px 18px;
  pointer-events: none;
  position: absolute;
  z-index: 40;
}

.landing-signin-zone .auth-dock {
  margin: auto 0 0;
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  pointer-events: auto;
  width: min(100%, 420px);
}

.landing-signin-zone .dock-panel {
  background: rgba(251, 248, 240, 0.96);
  border: 1px solid rgba(245, 240, 230, 0.16);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.landing-view.is-auth-prompt-visible .landing-signin-zone {
  display: grid;
}

body.is-vibes-dark .dashboard-view {
  background:
    linear-gradient(180deg, rgba(11, 23, 18, 0.98), rgba(8, 16, 13, 0.96)),
    #0b1712;
  border: 1px solid rgba(245, 240, 230, 0.08);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

body.is-vibes-dark .dashboard-title-compact,
body.is-vibes-dark .pill-value,
body.is-vibes-dark .friend-side-button,
body.is-vibes-dark .friend-checkin-select,
body.is-vibes-dark .topbar-action,
body.is-vibes-dark .use-here-button {
  color: #f5f0e6;
}

body.is-vibes-dark .pill-label,
body.is-vibes-dark .dashboard-tab,
body.is-vibes-dark .feed-scope-tab,
body.is-vibes-dark .friend-checkin-select,
body.is-vibes-dark .friend-feed-top span,
body.is-vibes-dark .friend-feed-meta span {
  color: rgba(245, 240, 230, 0.68);
}

body.is-vibes-dark #friends-member-preview.landing-member-preview {
  align-items: center;
  background: #1a1a1a;
  border: 0;
  color: #fff;
  border-radius: 20px;
  display: inline-flex;
  gap: 10px;
  padding: 10px 18px;
}

body.is-vibes-dark #friends-member-preview.landing-member-preview .pill-label {
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
}

body.is-vibes-dark #friends-member-preview.landing-member-preview .pill-divider {
  background: rgba(255, 255, 255, 0.15);
}

body.is-vibes-dark #friends-member-preview.landing-member-preview .pill-value {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 4px;
}

body.is-vibes-dark .dashboard-tabs,
body.is-vibes-dark .account-pill,
body.is-vibes-dark .feed-scope-tabs,
body.is-vibes-dark .topbar-action,
body.is-vibes-dark .settings-icon-button,
body.is-vibes-dark .friend-side-button,
body.is-vibes-dark .friends-checkin-dock,
body.is-vibes-dark .friend-photo-trigger,
body.is-vibes-dark .friend-checkin-select,
body.is-vibes-dark .use-here-button {
  background: rgba(245, 240, 230, 0.06);
  border-color: rgba(245, 240, 230, 0.12);
  box-shadow: none;
}

body.is-vibes-dark .dashboard-tab.is-active,
body.is-vibes-dark .feed-scope-tab.is-active,
body.is-vibes-dark .friend-side-button.is-active,
body.is-vibes-dark .friend-checkin-send {
  background: #f5f0e6;
  color: #0b1712;
}

body.is-vibes-dark .topbar-action:hover {
  background: rgba(245, 240, 230, 0.1);
  border-color: rgba(245, 240, 230, 0.18);
}

body.is-vibes-dark .friend-checkin-select-shell::after {
  border-top-color: rgba(245, 240, 230, 0.74);
}

.dashboard-view.is-feed-screen {
  gap: 0;
  padding: 0;
  position: relative;
}

.dashboard-view.is-feed-screen .dashboard-header {
  left: 0;
  padding:
    max(14px, env(safe-area-inset-top))
    max(14px, env(safe-area-inset-right))
    0
    max(14px, env(safe-area-inset-left));
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 20;
}

.dashboard-view.is-feed-screen .dashboard-header-main,
.dashboard-view.is-feed-screen .dashboard-header-identity {
  display: flex;
  justify-content: flex-start;
}

.dashboard-view.is-feed-screen .dashboard-title-compact,
.dashboard-view.is-feed-screen .dashboard-header-actions,
.dashboard-view.is-feed-screen .dashboard-footer-actions {
  display: none !important;
}

.dashboard-view.is-feed-screen .account-code-pill {
  pointer-events: auto;
}

.dashboard-view.is-feed-screen .friends-panel {
  display: block;
  gap: 0;
  min-height: 100%;
  overflow: hidden;
  position: relative;
}

.dashboard-view.is-feed-screen .friends-panel-topbar {
  display: flex !important;
  gap: 8px;
  justify-content: space-between;
  left: 16px;
  padding: 0;
  pointer-events: auto;
  position: absolute;
  right: 16px;
  top: max(16px, env(safe-area-inset-top));
  z-index: 121;
}

.dashboard-view.is-feed-screen .friends-panel-topbar .friend-side-button {
  pointer-events: auto;
}

.dashboard-view.is-feed-screen .friends-panel-topbar .feed-scope-tabs {
  pointer-events: auto;
}

.dashboard-view.is-feed-screen .friends-feed-shell {
  bottom: 0;
  left: 0;
  overflow-y: auto;
  padding: 0;
  padding-top: calc(max(16px, env(safe-area-inset-top)) + 52px);
  padding-bottom: calc(max(84px, env(safe-area-inset-bottom) + 72px));
  position: absolute;
  right: 0;
  scrollbar-width: none;
  top: 0;
}

.dashboard-view.is-feed-screen .friends-feed {
  gap: 0;
  min-height: 100%;
}

.dashboard-view.is-feed-screen .friend-feed-card {
  background: transparent;
  border: 0;
  border-radius: 0;
}

.dashboard-view.is-feed-screen .friend-feed-card.is-landing-look {
  min-height: 100dvh;
  scroll-snap-align: start;
}

.dashboard-view.is-feed-screen .friend-feed-card.is-landing-look .friend-feed-photo-shell {
  aspect-ratio: auto;
  min-height: 100dvh;
}

.dashboard-view.is-feed-screen .friend-feed-top {
  padding: 12px 12px 8px;
}

.dashboard-view.is-feed-screen .friend-feed-actions {
  padding-left: 12px;
  padding-right: 12px;
}

.dashboard-view.is-feed-screen .dashboard-footer {
  bottom: 0;
  left: 0;
  padding:
    0
    max(14px, env(safe-area-inset-right))
    max(14px, env(safe-area-inset-bottom))
    max(14px, env(safe-area-inset-left));
  pointer-events: none;
  position: absolute;
  right: 0;
  z-index: 25;
}

.dashboard-view.is-feed-screen .friends-footer-dock,
.dashboard-view.is-feed-screen .friends-composer-row {
  width: 100%;
}

.dashboard-view.is-feed-screen .friends-checkin-dock {
  background: transparent;
  border: 0;
  box-shadow: none;
  display: flex;
  justify-content: center;
  padding: 0;
  pointer-events: auto;
}

.dashboard-view.is-feed-screen .friend-photo-trigger {
  background: rgba(245, 240, 230, 0.08);
  border: 1px solid rgba(245, 240, 230, 0.16);
  box-shadow:
    0 0 0 1px rgba(245, 240, 230, 0.04),
    0 0 18px rgba(214, 233, 225, 0.16);
  color: rgba(245, 240, 230, 0.92);
  height: 46px;
  min-height: 46px;
  outline: 0;
  width: 46px;
}

.dashboard-view.is-feed-screen .friend-photo-trigger:hover,
.dashboard-view.is-feed-screen .friend-photo-trigger:focus-visible {
  box-shadow:
    0 0 0 1px rgba(245, 240, 230, 0.08),
    0 0 24px rgba(214, 233, 225, 0.2);
  outline: 0;
}

.dashboard-view.is-feed-screen .friend-photo-trigger-label svg {
  height: 18px;
  width: 18px;
}

.dashboard-view.is-feed-screen .friends-feed-shell::-webkit-scrollbar {
  display: none;
}

.landing-copy-panel {
  display: grid;
  gap: 18px;
  justify-items: start;
  max-width: 560px;
}

.landing-title {
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(2.7rem, 6vw, 4.8rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 0.96;
  margin: 0;
}

.landing-copy-body {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
  margin: 0;
  max-width: 44rem;
}

.landing-proof-list {
  display: grid;
  gap: 12px;
  width: 100%;
}

.landing-proof-item {
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(32, 49, 41, 0.09);
  border-radius: 20px;
  display: grid;
  gap: 4px;
  padding: 16px 18px;
}

.landing-proof-item strong {
  color: var(--ink);
  font-size: 0.98rem;
}

.landing-proof-item span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.receipt-hero {
  align-items: start;
  display: grid;
  gap: 0;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  justify-items: center;
  margin: 0;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
}

.receipt-hero-image {
  align-self: center;
  filter: drop-shadow(0 30px 52px rgba(26, 41, 34, 0.18));
  height: 100%;
  max-height: calc(100svh - 88px);
  max-width: min(116%, 740px);
  object-fit: contain;
  width: auto;
}

.receipt-hero-brand {
  align-items: baseline;
  color: var(--ink);
  display: flex;
  gap: 8px;
  justify-self: start;
  white-space: nowrap;
}

.receipt-hero-brand span {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(2.4rem, 5.7vw, 5.35rem);
  font-weight: 600;
  letter-spacing: 0;
}

.receipt-hero-brand small {
  color: var(--muted);
  font-size: clamp(0.62rem, 0.85vw, 0.78rem);
  letter-spacing: 0;
  text-transform: none;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.dashboard-header h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
}

.dashboard-header h2 {
  font-size: 2rem;
}

.dashboard-header .eyebrow {
  font-size: 0.68rem;
  margin: 0 0 5px;
}

.dock-subtitle,
.auth-meta,
.panel-intro,
.empty-state {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.auth-dock {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  width: min(100%, 420px);
}

.auth-dock-centered {
  border-radius: 28px;
}

.dock-panel {
  display: grid;
  gap: 18px;
  padding: 28px;
}

.dock-panel-brand {
  align-items: baseline;
  display: flex;
  gap: 8px;
}

.dock-panel-brand span {
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 2.3rem;
  font-weight: 600;
}

.dock-panel-brand small {
  color: var(--muted);
  font-size: 0.72rem;
}

.dock-panel-head {
  margin: 0;
}

.dock-title {
  font-size: 1.08rem;
  line-height: 1.35;
  margin: 0 0 8px;
}

.dock-subtitle {
  font-size: 0.9rem;
  margin: 0;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-helper-row {
  align-items: center;
  display: flex;
  justify-content: flex-end;
  margin-top: -2px;
}

.auth-secondary-row {
  display: flex;
  justify-content: center;
  margin-top: -4px;
}

.phone-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(150px, 0.58fr) minmax(0, 1fr);
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: var(--muted);
  font-size: 0.88rem;
}

.field input,
.field select {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(32, 49, 41, 0.12);
  border-radius: 14px;
  color: var(--ink);
  min-height: 48px;
  padding: 0 14px;
  width: 100%;
}

.field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(32, 49, 41, 0.58) 50%),
    linear-gradient(135deg, rgba(32, 49, 41, 0.58) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 21px,
    calc(100% - 12px) 21px;
  background-repeat: no-repeat;
  background-size: 6px 6px;
  padding-right: 32px;
}

.field input:focus,
.field select:focus {
  border-color: rgba(30, 123, 104, 0.44);
  box-shadow: 0 0 0 4px rgba(30, 123, 104, 0.08);
  outline: 0;
}

.submit-button {
  background: var(--ink);
  border: 0;
  border-radius: 16px;
  color: #f8f5ee;
  min-height: 50px;
  margin-top: 6px;
  padding: 0 18px;
}

.submit-button:hover {
  background: #17231d;
}

.auth-submit-row {
  display: flex;
  justify-content: center;
  margin-top: 6px;
}

.submit-icon-button {
  align-items: center;
  border-radius: 999px;
  display: inline-grid;
  font-size: 1.35rem;
  height: 50px;
  justify-items: center;
  min-height: 50px;
  min-width: 50px;
  padding: 0;
  width: 50px;
}

.auth-action-row {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(32, 49, 41, 0.14);
  border-radius: 16px;
  color: var(--ink);
  margin-top: 6px;
  min-height: 50px;
  padding: 0 18px;
}

.secondary-button:hover {
  background: rgba(255, 255, 255, 0.82);
}

.auth-meta {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
}

.auth-register-prompt {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.auth-register-prompt p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
  margin: 0;
}

.auth-register-form {
  display: grid;
  gap: 14px;
}

.text-link-button {
  background: transparent;
  border: 0;
  color: var(--accent);
  min-height: 32px;
  padding: 0;
  white-space: nowrap;
}

.text-link-button:hover {
  color: #166050;
}

.auth-reset-link {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  min-height: 28px;
}

.auth-reset-link:hover,
.auth-reset-link:focus-visible {
  color: var(--ink);
}

.legal-consent {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
  margin: 0;
}

.legal-consent a,
.receipts-legal-links a {
  color: var(--accent);
  font-weight: 700;
}

.alternate-login-button {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(32, 49, 41, 0.14);
  border-radius: 999px;
  color: var(--ink);
  min-height: 46px;
  padding: 0 16px;
  width: 100%;
}

.alternate-login-button:hover {
  background: rgba(255, 255, 255, 0.82);
}

.provider-inline {
  align-items: center;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(32, 49, 41, 0.12);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  color: var(--ink);
  display: flex;
  font-size: 0.94rem;
  font-weight: 600;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  text-align: center;
}

.provider-inline:hover,
.provider-inline:focus-visible {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(32, 49, 41, 0.18);
  color: var(--ink);
  transform: translateY(-1px);
}

.provider-inline .provider-mark {
  color: #4285f4;
}

.provider-text-only {
  margin-top: 2px;
  width: 100%;
}

#auth-feedback,
.merchant-feedback {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 0;
  min-height: 1.25rem;
}

.auth-modal-backdrop {
  align-items: center;
  background: rgba(10, 13, 12, 0.58);
  display: flex;
  overflow-y: auto;
  inset: 0;
  justify-content: center;
  padding: 16px;
  position: fixed;
  z-index: 20;
}

.landing-signin-zone::-webkit-scrollbar,
.auth-dock::-webkit-scrollbar,
.auth-modal::-webkit-scrollbar {
  display: none;
  width: 0;
}

.auth-modal {
  background: #1f201f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.42);
  color: #f7f7f5;
  max-height: calc(100dvh - 32px);
  max-width: 500px;
  overflow-y: auto;
  padding: 40px 34px 34px;
  position: relative;
  width: min(100%, 500px);
}

.modal-close {
  align-items: center;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.82);
  display: grid;
  font-size: 2.35rem;
  height: 42px;
  justify-items: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: 18px;
  top: 14px;
  width: 42px;
}

.auth-modal h2 {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0;
  text-align: center;
}

.modal-copy {
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(0.98rem, 2.5vw, 1.12rem);
  line-height: 1.45;
  margin: 16px auto 24px;
  max-width: 23rem;
  text-align: center;
}

.guest-auth-modal {
  max-width: 360px;
  padding: 28px 22px 22px;
}

.guest-auth-modal h2 {
  font-size: clamp(1.5rem, 5vw, 1.9rem);
  line-height: 1.1;
  padding-right: 20px;
  text-align: left;
}

.guest-auth-modal .modal-copy {
  margin: 12px 0 18px;
  max-width: none;
  text-align: left;
}

.guest-auth-actions {
  display: grid;
  gap: 10px;
}

.friend-checkin-compose-modal {
  background: #f2efe9;
  border: 1px solid #e6e0d8;
  border-radius: 40px;
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.22);
  color: #1a1a1a;
  max-width: 448px;
  padding: 18px;
}

.friend-checkin-compose-modal svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.friend-checkin-compose-header {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  margin-bottom: 16px;
}

.friend-checkin-compose-close-button {
  align-items: center;
  background: rgba(0, 0, 0, 0.06);
  border: 0;
  border-radius: 999px;
  color: #1a1a1a;
  display: inline-grid;
  height: 32px;
  justify-content: center;
  padding: 0;
  width: 32px;
}

.friend-checkin-compose-close-button svg {
  height: 15px;
  width: 15px;
}

.friend-checkin-compose-modal h2 {
  color: #1a1a1a;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
  text-align: center;
}

.friend-checkin-compose-submit-button {
  background: #1a1a1a;
  border: 0;
  border-radius: 20px;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  min-height: 32px;
  opacity: 1;
  padding: 7px 16px;
}

.friend-checkin-compose-submit-button:disabled {
  opacity: 0.4;
}

.friend-checkin-compose-form {
  display: grid;
  gap: 8px;
}

.friend-checkin-compose-form > .friend-checkin-compose-card {
  margin: 0;
}

.friend-checkin-compose-card {
  background: #ffffff;
  border: 0.5px solid #e8e3dc;
  border-radius: 22px;
  display: grid;
  gap: 12px;
  padding: 14px 16px;
}

.friend-checkin-compose-entry-card {
  gap: 14px;
}

.friend-checkin-compose-author-row {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: 32px minmax(0, 1fr);
}

.friend-checkin-compose-avatar {
  align-items: center;
  background: #1a1a1a;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 700;
  height: 32px;
  justify-content: center;
  line-height: 1;
  padding-top: 1px;
  text-transform: uppercase;
  vertical-align: middle;
  width: 32px;
}

.friend-checkin-compose-caption {
  background: transparent;
  border: 0;
  color: #1a1a1a;
  font: inherit;
  font-size: 0.875rem;
  height: 80px;
  line-height: 1.45;
  min-height: 80px;
  outline: 0;
  padding: 0;
  resize: none;
  width: 100%;
}

.friend-checkin-compose-caption::placeholder {
  color: #a8a29a;
}

.friend-checkin-compose-preview-shell {
  background: #ebe6de;
  border-radius: 14px;
  display: block;
  min-height: 120px;
  overflow: hidden;
  position: relative;
}

.friend-checkin-compose-preview {
  display: block;
  height: 120px;
  object-fit: cover;
  width: 100%;
}

.friend-checkin-compose-preview-remove {
  align-items: center;
  background: rgba(15, 15, 15, 0.72);
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  display: inline-grid;
  height: 28px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 10px;
  top: 10px;
  width: 28px;
  z-index: 1;
}

.friend-checkin-compose-preview-remove svg {
  height: 14px;
  width: 14px;
}

.friend-checkin-compose-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.friend-checkin-compose-tool-button {
  -webkit-tap-highlight-color: transparent;
  align-items: center;
  background: #f2efe9;
  border: 0.5px solid #e5e0d8;
  border-radius: 999px;
  color: #888888;
  display: inline-grid;
  height: 32px;
  justify-content: center;
  outline: none;
  padding: 0;
  width: 32px;
}

.friend-checkin-compose-tool-button svg {
  color: #888888;
  display: block;
  fill: none;
  height: 18px;
  overflow: visible;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 18px;
}

.friend-checkin-compose-tool-button:focus,
.friend-checkin-compose-tool-button:focus-visible {
  box-shadow: none;
  outline: none;
}

.friend-checkin-compose-toolbar-divider {
  background: #e8e3dc;
  display: inline-block;
  height: 18px;
  width: 1px;
}

.friend-checkin-compose-expiry-label {
  align-items: center;
  color: #bbbbbb;
  display: inline-flex;
  font-size: 0.75rem;
  gap: 6px;
}

.friend-checkin-compose-expiry-label svg {
  height: 14px;
  width: 14px;
}

.friend-checkin-compose-card-label {
  color: #bbbbbb;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin: 0;
}

.friend-checkin-compose-toggle-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.friend-checkin-compose-toggle {
  align-items: center;
  background: transparent;
  border: 1.5px solid #e8e3dc;
  border-radius: 18px;
  color: #bbbbbb;
  display: inline-flex;
  font-size: 0.85rem;
  font-weight: 600;
  gap: 8px;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
}

.friend-checkin-compose-toggle svg {
  height: 16px;
  width: 16px;
}

.friend-checkin-compose-toggle.is-selected {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #ffffff;
}

.friend-checkin-compose-picker-shell {
  display: grid;
  gap: 10px;
}

.friend-checkin-compose-modal .friend-checkin-compose-select-shell .friend-checkin-select {
  -webkit-appearance: none;
  appearance: none;
  -webkit-text-fill-color: #888888;
  background: #ffffff;
  border-color: #d8d1c8;
  box-shadow: none;
  color: #888888 !important;
  font-size: 13px;
  font-weight: 600;
  min-height: 42px;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  padding: 0 34px 0 16px;
  text-align: left;
  text-align-last: left;
}

.friend-checkin-compose-modal .friend-checkin-compose-select-shell::after {
  border-top-color: #888888;
  opacity: 1;
}

.friend-checkin-compose-modal .friend-checkin-compose-select-shell .friend-checkin-select:focus,
.friend-checkin-compose-modal .friend-checkin-compose-select-shell .friend-checkin-select:focus-visible {
  box-shadow: none;
  outline: none;
}

.friend-checkin-compose-picker-shell .split-friend-picker {
  gap: 8px;
  justify-content: flex-start;
}

.friend-checkin-compose-picker-shell .split-friend-chip {
  background: #f7f5f2;
  border-color: #ede9e3;
  min-height: 36px;
  padding: 6px 11px;
}

.friend-checkin-compose-picker-shell .split-friend-chip.is-selected {
  background: #1a1a1a;
  border-color: #1a1a1a;
}

.friend-checkin-compose-picker-shell .split-friend-chip strong {
  font-size: 0.76rem;
}

.friend-checkin-compose-picker-shell .split-friend-chip span {
  font-size: 0.62rem;
}

@media (max-width: 520px) {
  .friend-checkin-compose-modal {
    border-radius: 32px;
    padding: 16px;
  }

  .friend-checkin-compose-card {
    padding: 14px;
  }
}

.guest-auth-action {
  margin-top: 0;
  width: 100%;
}

.modal-provider-list {
  display: grid;
  gap: 12px;
}

.provider-option {
  align-items: center;
  background: #30312f;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: #ffffff;
  display: grid;
  font-size: 1rem;
  font-weight: 600;
  gap: 14px;
  grid-template-columns: 34px 1fr;
  min-height: 58px;
  padding: 0 24px;
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.provider-option:hover {
  background: #3b3c3a;
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.provider-mark {
  align-items: center;
  color: #f5f5f2;
  display: inline-grid;
  font-size: 0.92rem;
  font-weight: 800;
  height: 34px;
  justify-items: center;
  width: 34px;
}

.provider-google {
  color: #4285f4;
  font-size: 1.3rem;
}

.modal-divider {
  align-items: center;
  color: rgba(255, 255, 255, 0.58);
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr auto 1fr;
  margin: 20px 0;
  text-transform: uppercase;
}

.modal-divider span {
  background: rgba(255, 255, 255, 0.16);
  height: 1px;
}

.modal-divider em {
  font-size: 0.78rem;
  font-style: normal;
  letter-spacing: 0.12em;
}

.email-link-form {
  display: grid;
  gap: 14px;
}

.modal-email-field {
  display: grid;
  gap: 8px;
}

.modal-email-field span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.84rem;
}

.modal-email-field input {
  background: #2f302f;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  color: #ffffff;
  min-height: 58px;
  padding: 0 24px;
  width: 100%;
}

.modal-email-field input:focus {
  border-color: rgba(255, 255, 255, 0.78);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.10);
  outline: 0;
}

.modal-submit {
  background: #f7f7f5;
  border: 0;
  border-radius: 999px;
  color: #151614;
  font-weight: 700;
  min-height: 58px;
  padding: 0 24px;
  width: 100%;
}

.dashboard-header {
  display: grid;
  gap: 6px;
  margin-bottom: 0;
  padding: 0 2px;
}

.dashboard-header-main {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.dashboard-header-identity,
.dashboard-header-actions,
.dashboard-inbox-row {
  align-items: center;
  display: flex;
  gap: 8px;
  min-width: 0;
}

.dashboard-header-actions {
  flex: 0 0 auto;
}

.dashboard-tabs {
  background: rgba(32, 49, 41, 0.06);
  border: 1px solid rgba(32, 49, 41, 0.08);
  border-radius: 999px;
  display: grid;
  flex: 0 0 auto;
  gap: 3px;
  grid-template-columns: repeat(2, 1fr);
  padding: 3px;
}

.dashboard-tabs-compact {
  gap: 2px;
  padding: 2px;
}

.dashboard-tab {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  min-height: 28px;
  padding: 0 10px;
}

.dashboard-tabs-compact .dashboard-tab {
  font-size: 0.63rem;
  min-height: 24px;
  padding: 0 8px;
}

.dashboard-tab.is-active {
  background: var(--ink);
  color: #ffffff;
}

.add-purchase-button {
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  flex: 0 0 auto;
  font-size: 0.7rem;
  font-weight: 800;
  min-height: 34px;
  padding: 0 11px;
  white-space: nowrap;
}

.add-purchase-button:hover,
.add-purchase-button:focus-visible {
  background: #17231d;
  outline: 0;
  transform: translateY(-1px);
}

.account-bar {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: flex-end;
  min-width: 0;
}

.account-pill {
  align-items: center;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(32, 49, 41, 0.1);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  display: flex;
  flex: 0 1 auto;
  gap: 8px;
  min-height: 44px;
  min-width: 0;
  padding: 0 12px;
}

.pill-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pill-value {
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.9rem;
  font-weight: 700;
}

.account-code-pill {
  min-width: 112px;
  justify-content: space-between;
  flex: 0 0 auto;
}

.account-code-pill-compact {
  border-radius: 999px;
  gap: 6px;
  min-height: 28px;
  min-width: 0;
  padding: 0 10px;
}

.account-code-pill-compact .pill-label {
  font-size: 0.58rem;
  letter-spacing: 0.06em;
}

.account-code-pill-compact .pill-value {
  font-size: 0.76rem;
}

.dashboard-title-compact {
  font-size: 0.92rem !important;
  line-height: 1;
}

.account-inbox-pill {
  flex: 1 1 220px;
  justify-content: space-between;
  min-width: 0;
  max-width: 320px;
}

.account-inbox-value {
  display: block;
  font-size: 0.76rem;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
  white-space: nowrap;
}

.receipts-panel,
.memory-panel {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 26px;
  box-shadow: none;
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 18px;
}

.memory-panel > .panel-intro {
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.96), rgba(255, 252, 246, 0.9));
  border-radius: 18px;
  margin: -8px -8px 12px;
  padding: 8px 8px 12px;
  position: sticky;
  top: -8px;
  z-index: 5;
}

.dashboard-footer {
  display: grid;
  gap: 10px;
  justify-items: center;
  margin-top: auto;
  padding: 14px 4px 0;
  width: 100%;
}

.dashboard-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.settings-dialog {
  background: #f7f5ef;
  border: 1px solid rgba(32, 49, 41, 0.08);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(18, 24, 22, 0.18);
  max-width: 430px;
  position: relative;
  width: min(100%, 430px);
}

.settings-shell {
  display: grid;
  gap: 18px;
  padding: 28px 22px 22px;
}

.settings-actions {
  display: grid;
  gap: 10px;
}

.share-points-dialog {
  max-width: 410px;
}

.onboarding-backdrop {
  background: rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.onboarding-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.onboarding-dialog {
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 -4px 40px rgba(0, 0, 0, 0.08);
  margin: 0 auto;
  max-width: 430px;
  padding: 28px 24px 24px;
  position: relative;
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
  width: min(100%, 430px);
}

.onboarding-backdrop.is-visible .onboarding-dialog {
  transform: translateY(0);
}

.friend-requests-dialog {
  max-height: calc(100dvh - 36px);
  overflow: hidden;
}

.friend-requests-shell {
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-right: 18px;
}

.share-points-shell {
  gap: 14px;
}

.onboarding-shell {
  display: grid;
  gap: 0;
  justify-items: center;
}

.onboarding-label {
  color: #bbb;
  font-size: 11px;
  letter-spacing: 2px;
  margin: 0 0 12px;
}

.onboarding-member-id {
  color: #1a1a1a;
  font-size: 52px;
  font-weight: 500;
  letter-spacing: 8px;
  line-height: 1;
  margin: 0 0 14px;
  transform: scale(0.5);
}

.onboarding-backdrop.is-visible .onboarding-member-id {
  animation: onboarding-member-pop 0.5s ease 0.2s forwards;
}

.onboarding-copy {
  color: #bbb;
  font-size: 12px;
  margin: 0 0 20px;
}

.onboarding-dismiss-button {
  background: transparent;
  border: 0;
  border-radius: 20px;
  color: #bbb;
  font-size: 13px;
  min-height: 44px;
  padding: 11px 16px;
  width: 100%;
}

.onboarding-dismiss-button:focus-visible {
  outline: 2px solid rgba(26, 26, 26, 0.18);
  outline-offset: 2px;
}

@keyframes onboarding-member-pop {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  70% {
    opacity: 1;
    transform: scale(1.06);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.share-points-merchant,
.share-points-balance,
.share-points-note {
  margin: 0;
}

.share-points-merchant {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
}

.share-points-balance {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
}

.share-points-note {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.share-points-form {
  grid-template-columns: minmax(92px, 110px) minmax(0, 1fr) auto;
}

.friends-settings,
.gmail-settings {
  border-top: 1px solid rgba(32, 49, 41, 0.08);
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.friends-settings-heading {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.friends-settings-actions {
  display: flex;
  gap: 8px;
}

.friends-settings-heading .memory-section-heading {
  margin: 0;
}

.friends-requests-button {
  font-size: 0.8rem;
  min-height: 36px;
  padding: 0 14px;
}

.gmail-status {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
  margin: 0;
}

.gmail-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
}

.friends-form {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.friends-form input {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(32, 49, 41, 0.1);
  border-radius: 999px;
  color: var(--ink);
  min-height: 42px;
  outline: 0;
  padding: 0 14px;
}

.friends-list {
  display: grid;
  gap: 8px;
}

.friend-search-results,
.friends-feed {
  display: grid;
  gap: 8px;
}

.friends-feed {
  justify-items: stretch;
}

.friend-row {
  align-items: center;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(32, 49, 41, 0.08);
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
}

.friend-row strong,
.friend-row small {
  display: block;
}

.friend-row small {
  color: var(--muted);
  font-size: 0.74rem;
}

.friend-row button {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.friend-row button:disabled {
  color: rgba(32, 49, 41, 0.42);
}

.friend-request-actions {
  display: flex;
  gap: 8px;
}

.friend-request-actions .use-here-button {
  font-size: 0.8rem;
  min-height: 34px;
  padding: 0 12px;
}

.friend-request-actions .use-here-button.is-danger {
  background: rgba(255, 255, 255, 0.74);
}

.settings-action-button {
  justify-content: center;
  width: 100%;
}

.use-here-button {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(32, 49, 41, 0.12);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  min-height: 44px;
  padding: 0 18px;
}

.use-here-button.is-danger {
  border-color: rgba(132, 34, 34, 0.18);
  color: #7c2525;
}

.use-here-backdrop {
  align-items: flex-end;
  background: rgba(8, 12, 10, 0.34);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 60;
}

.purchase-backdrop {
  align-items: flex-end;
  background: rgba(8, 12, 10, 0.38);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 65;
}

.purchase-sheet {
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(247, 245, 239, 0.98)),
    #f7f5ef;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 30px;
  box-shadow: 0 28px 90px rgba(18, 24, 22, 0.24);
  max-height: calc(100dvh - 34px);
  max-width: 560px;
  overflow-y: auto;
  position: relative;
  width: min(100%, 560px);
}

.purchase-backdrop.is-receipt-mode .purchase-sheet {
  border-radius: 16px;
  max-width: 460px;
  width: min(100%, 460px);
}

.purchase-shell {
  display: grid;
  gap: 18px;
  padding: 28px 22px 22px;
}

.purchase-backdrop.is-receipt-mode .purchase-shell {
  gap: 10px;
  padding: 18px 16px 14px;
}

.purchase-head {
  display: grid;
  gap: 6px;
  padding-right: 38px;
}

.purchase-backdrop.is-receipt-mode .purchase-head {
  display: none;
}

.purchase-head h2,
.purchase-step h3 {
  margin: 0;
}

.purchase-head h2 {
  font-size: 1.18rem;
  line-height: 1.3;
}

.purchase-form {
  display: grid;
  gap: 12px;
}

.purchase-history {
  display: grid;
  gap: 8px;
  max-height: min(38dvh, 310px);
  overflow-y: auto;
  padding-right: 2px;
}

.purchase-history-row {
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(32, 49, 41, 0.08);
  border-radius: 18px;
  color: var(--ink);
  display: grid;
  gap: 5px;
  padding: 11px 13px;
  text-align: left;
  width: 100%;
}

.purchase-history-row span,
.purchase-review-card span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.purchase-history-row strong,
.purchase-review-card strong {
  font-size: 0.96rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.purchase-active-step {
  min-height: 174px;
}

.purchase-backdrop.is-receipt-mode .purchase-active-step {
  min-height: 0;
}

.purchase-question-card,
.purchase-review-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.62)),
    #fffaf3;
  border: 1px solid rgba(32, 49, 41, 0.08);
  border-radius: 24px;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.purchase-question {
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
}

.typewriter {
  animation: typewriter-fade 260ms ease both;
}

@keyframes typewriter-fade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.purchase-chat-input {
  background: rgba(255, 252, 246, 0.95);
  border: 1px solid rgba(32, 49, 41, 0.1);
  border-radius: 20px;
  display: block;
  padding: 14px 15px;
}

.purchase-chat-input input,
.purchase-chat-input textarea {
  background: transparent;
  border: 0;
  color: var(--ink);
  font-size: 1.04rem;
  outline: 0;
  padding: 0;
  width: 100%;
}

.purchase-chat-input textarea {
  min-height: 92px;
  resize: vertical;
}

.purchase-step-actions,
.purchase-action-row {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.purchase-action-row {
  border-top: 1px solid rgba(32, 49, 41, 0.08);
  padding-top: 10px;
}

.purchase-backdrop.is-receipt-mode .purchase-action-row {
  border-top: 0;
  padding-top: 2px;
}

.purchase-mini-action,
.purchase-icon-button,
.purchase-save-button {
  align-items: center;
  border-radius: 999px;
  display: inline-grid;
  height: 44px;
  justify-items: center;
  padding: 0;
  width: 44px;
}

.purchase-mini-action {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(32, 49, 41, 0.1);
  color: var(--ink);
}

.purchase-mini-action.is-skip {
  gap: 6px;
  grid-auto-flow: column;
  padding: 0 12px;
  width: auto;
}

.purchase-mini-action.is-skip span {
  font-size: 0.82rem;
  font-weight: 800;
}

.purchase-mini-action.is-primary,
.purchase-save-button {
  background: var(--ink);
  border: 0;
  color: #ffffff;
}

.purchase-icon-button {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(32, 49, 41, 0.1);
  color: var(--muted);
}

.purchase-icon-button.is-danger {
  color: #8a3029;
}

.purchase-mini-action svg,
.purchase-icon-button svg,
.purchase-save-button svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  width: 18px;
}

.purchase-save-button[aria-busy="true"] {
  opacity: 0.6;
}

.purchase-step {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(32, 49, 41, 0.08);
  border-radius: 22px;
  display: grid;
  gap: 12px;
  grid-template-columns: 30px minmax(0, 1fr);
  padding: 14px;
}

.purchase-step-label {
  align-items: center;
  background: var(--ink);
  border-radius: 999px;
  color: #ffffff;
  display: inline-grid;
  font-size: 0.78rem;
  font-weight: 800;
  height: 30px;
  justify-items: center;
  width: 30px;
}

.purchase-step h3 {
  font-size: 0.92rem;
  margin-bottom: 10px;
}

.purchase-field-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.purchase-field {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(32, 49, 41, 0.08);
  border-radius: 18px;
  display: grid;
  gap: 6px;
  padding: 12px 14px;
}

.purchase-field + .purchase-field,
.purchase-field-grid + .purchase-field {
  margin-top: 10px;
}

.purchase-field span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.purchase-field input,
.purchase-field textarea {
  background: transparent;
  border: 0;
  color: var(--ink);
  font-size: 0.98rem;
  outline: 0;
  padding: 0;
  width: 100%;
}

.purchase-field textarea {
  min-height: 70px;
  resize: vertical;
}

.purchase-option-row {
  background: rgba(32, 49, 41, 0.06);
  border: 1px solid rgba(32, 49, 41, 0.08);
  border-radius: 999px;
  display: grid;
  gap: 4px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 10px;
  padding: 4px;
}

.purchase-option {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  min-height: 34px;
}

.purchase-option.is-active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(26, 41, 34, 0.08);
}

.purchase-save-button {
  margin-left: auto;
}

.purchase-receipt-card {
  background:
    linear-gradient(180deg, rgba(255, 254, 250, 0.98), rgba(255, 250, 243, 0.9)),
    #fffefa;
  border-radius: 18px;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  gap: 7px;
  overflow: hidden;
  position: relative;
}

.purchase-receipt-editor {
  background:
    linear-gradient(180deg, rgba(255, 254, 250, 0.98), rgba(255, 250, 243, 0.92)),
    #fffefa;
  border: 1px solid rgba(32, 49, 41, 0.1);
  border-radius: 10px;
  display: grid;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  gap: 6px;
  overflow: hidden;
  padding: 14px 14px 12px;
  position: relative;
}

.purchase-receipt-edge {
  background: repeating-linear-gradient(90deg, transparent 0 8px, rgba(32, 49, 41, 0.16) 8px 10px);
  height: 5px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.purchase-receipt-top,
.purchase-receipt-line,
.purchase-receipt-edit-line {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.purchase-receipt-top {
  border-bottom: 1px dashed rgba(32, 49, 41, 0.16);
  padding-bottom: 7px;
}

.purchase-receipt-top strong {
  font-family: inherit;
  font-size: 1.02rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.purchase-receipt-edit-toggle {
  background: transparent;
  border: 0;
  color: rgba(32, 49, 41, 0.68);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0;
  text-transform: uppercase;
}

.purchase-receipt-line {
  color: var(--muted);
  font-size: 0.74rem;
}

.purchase-receipt-edit-line {
  background: transparent;
  border: 0;
  border-bottom: 1px dashed rgba(32, 49, 41, 0.12);
  border-radius: 0;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.76rem;
  min-height: 28px;
  padding: 0;
  text-align: left;
}

.purchase-receipt-edit-line:last-child {
  border-bottom: 0;
}

.purchase-receipt-edit-line.is-empty span {
  color: rgba(32, 49, 41, 0.38);
}

.purchase-receipt-line b,
.purchase-receipt-edit-line b {
  color: rgba(32, 49, 41, 0.66);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.purchase-receipt-line span,
.purchase-receipt-edit-line span {
  color: var(--ink);
  max-width: 66%;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.purchase-receipt-input {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(32, 49, 41, 0.1);
  border-radius: 8px;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.82rem;
  min-height: 30px;
  outline: 0;
  padding: 5px 7px;
  text-align: right;
  width: min(66%, 220px);
}

textarea.purchase-receipt-input {
  min-height: 58px;
  resize: vertical;
  text-align: left;
  width: 100%;
}

.purchase-receipt-note {
  align-items: start;
  display: grid;
  gap: 4px;
}

.purchase-receipt-note span {
  max-width: 100%;
  overflow: visible;
  text-align: left;
  white-space: pre-wrap;
}

.use-here-dialog {
  background: #f7f5ef;
  border: 1px solid rgba(32, 49, 41, 0.08);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(18, 24, 22, 0.18);
  max-width: 440px;
  position: relative;
  width: min(100%, 440px);
}

.use-here-shell {
  display: grid;
  gap: 20px;
  padding: 28px 22px 22px;
}

.use-here-close {
  align-items: center;
  background: rgba(32, 49, 41, 0.06);
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 1.4rem;
  height: 34px;
  justify-content: center;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 34px;
}

.use-here-copy {
  display: grid;
  gap: 6px;
}

.use-here-eyebrow {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.use-here-copy h2 {
  font-size: 1.08rem;
  line-height: 1.35;
  margin: 0;
}

.use-here-form {
  display: grid;
  gap: 12px;
}

.use-here-field {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(32, 49, 41, 0.08);
  border-radius: 20px;
  display: grid;
  gap: 6px;
  padding: 14px 16px;
}

.use-here-field span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.use-here-field input {
  background: transparent;
  border: 0;
  color: var(--ink);
  font-size: 1rem;
  outline: 0;
  padding: 0;
}

.use-here-submit {
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  min-height: 48px;
}

.receipts-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin: 0 4px 2px;
}

.receipts-legal-links a {
  font-size: 0.86rem;
  text-decoration: none;
}

.panel-intro {
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
  padding-bottom: 12px;
}

.empty-state {
  background: rgba(255, 255, 255, 0.62);
  border: 1px dashed rgba(32, 49, 41, 0.14);
  border-radius: 24px;
  padding: 22px 20px;
}

.panel-intro p,
.empty-state p {
  margin: 0;
}

.empty-state h3 {
  color: var(--ink);
  font-size: 1.02rem;
  margin: 0 0 8px;
}

.empty-state-steps {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 18px;
}

.empty-state-steps li {
  line-height: 1.6;
}

.receipt-tools {
  display: grid;
  gap: 10px;
}

.receipts-panel.is-rewards-view #receipt-search-toggle,
.receipts-panel.is-rewards-view #receipt-filter-toggle,
.receipts-panel.is-rewards-view #receipt-search-panel,
.receipts-panel.is-rewards-view #receipt-filter-panel {
  display: none !important;
}

.receipts-panel.is-coming-soon-view .receipt-tool-actions,
.receipts-panel.is-coming-soon-view .receipt-count {
  display: none !important;
}

.receipts-panel.is-coming-soon-view .panel-intro {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.rewards-overview {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

body.is-rewards-only .dashboard-tabs,
body.is-rewards-only .panel-intro,
body.is-rewards-only #memory-panel {
  display: none !important;
}

.rewards-overview-head,
.reward-balance-top,
.reward-balance-bottom {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.rewards-overview-head {
  color: var(--muted);
  font-size: 0.76rem;
}

.rewards-overview-list {
  display: grid;
  gap: 10px;
}

.reward-balance-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(32, 49, 41, 0.08);
  border-radius: 18px;
  cursor: pointer;
  display: grid;
  gap: 10px;
  padding: 14px 16px;
}

.reward-balance-card-expanded {
  gap: 12px;
}

.reward-balance-top strong,
.reward-balance-top span,
.reward-balance-bottom span {
  display: block;
}

.reward-balance-top strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.reward-balance-top span,
.reward-balance-bottom span {
  color: var(--muted);
  font-size: 0.76rem;
}

.reward-balance-bottom-stacked {
  align-items: start;
  display: grid;
  gap: 8px;
  justify-content: stretch;
}

.reward-card-actions {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.reward-share-button {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(32, 49, 41, 0.12);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 700;
  min-height: 34px;
  padding: 0 14px;
}

.reward-share-button:hover,
.reward-share-button:focus-visible {
  border-color: rgba(32, 49, 41, 0.22);
  outline: 0;
}

.reward-balance-total {
  color: var(--ink);
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 700;
}

.reward-progress-track {
  background: rgba(32, 49, 41, 0.08);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.reward-progress-track span {
  background: linear-gradient(90deg, rgba(30, 123, 104, 0.88), rgba(30, 123, 104, 0.56));
  border-radius: inherit;
  display: block;
  height: 100%;
}

.reward-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.reward-pill {
  border: 1px solid rgba(32, 49, 41, 0.12);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
}

.reward-pill.is-active {
  background: rgba(30, 123, 104, 0.12);
  border-color: rgba(30, 123, 104, 0.22);
  color: var(--accent);
}

.receipt-tool-row {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.receipt-tool-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.receipt-tool-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(32, 49, 41, 0.1);
  border-radius: 999px;
  color: var(--ink);
  display: inline-grid;
  height: 36px;
  justify-items: center;
  padding: 0;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
  width: 36px;
}

.receipt-tool-button svg {
  fill: none;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 17px;
}

.receipt-tool-button:hover,
.receipt-tool-button:focus-visible,
.receipt-tool-button.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
  outline: 0;
  transform: translateY(-1px);
}

.receipt-count {
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.receipt-search-panel input {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(32, 49, 41, 0.1);
  border-radius: 999px;
  color: var(--ink);
  min-height: 40px;
  outline: 0;
  padding: 0 15px;
  width: 100%;
}

.memory-search-row {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.memory-search-row input,
.memory-search-row select,
.memory-form select,
.memory-form textarea,
.memory-share-form input,
.memory-comment-form input {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(32, 49, 41, 0.1);
  border-radius: 14px;
  color: var(--ink);
  min-height: 40px;
  outline: 0;
  padding: 0 12px;
  width: 100%;
}

.memory-form textarea {
  min-height: 86px;
  padding: 12px;
  resize: vertical;
}

.receipt-search-panel input:focus {
  border-color: rgba(30, 123, 104, 0.34);
  box-shadow: 0 0 0 4px rgba(30, 123, 104, 0.1);
}

.receipt-filter-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.receipt-filter-chip {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(32, 49, 41, 0.1);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  min-height: 34px;
  padding: 0 12px;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.receipt-filter-chip:hover,
.receipt-filter-chip:focus-visible,
.receipt-filter-chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
  outline: 0;
}

.receipt-groups {
  display: grid;
  gap: 8px;
}

.friends-panel {
  display: grid;
  flex: 1;
  gap: 12px;
  grid-template-rows: auto minmax(0, 1fr) auto;
  isolation: isolate;
  min-height: 0;
  overflow: hidden;
}

.friends-panel-topbar,
.friends-composer-stack {
  display: grid;
  gap: 10px;
}

.friends-panel-topbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.friends-panel-actions {
  display: inline-flex;
  gap: 8px;
}

.friend-side-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(32, 49, 41, 0.08);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  position: relative;
}

.friend-side-button.is-active {
  background: var(--ink);
  color: #ffffff;
}

.friend-side-button-round {
  flex: 0 0 auto;
  height: 36px;
  min-height: 36px;
  padding: 0;
  width: 36px;
}

.friend-side-button-round svg {
  fill: none;
  height: 16px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 16px;
}

.friend-mini-badge {
  align-items: center;
  background: #d85c52;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 0.62rem;
  font-weight: 800;
  height: 16px;
  justify-content: center;
  min-width: 16px;
  padding: 0 4px;
  position: absolute;
  right: -3px;
  top: -3px;
}

.friends-feed-shell {
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 6px;
  padding-right: 2px;
  position: relative;
  z-index: 0;
}

.friends-checkin-dock {
  align-items: center;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(32, 49, 41, 0.08);
  border-radius: 999px;
  display: grid;
  gap: 6px;
  grid-template-columns: 44px;
  padding: 6px 8px;
}

.friends-checkin-dock.is-photo-ready {
  grid-template-columns: 44px 44px 40px;
}

.friends-footer-dock {
  align-self: end;
  display: grid;
  justify-items: center;
  justify-self: stretch;
  width: 100%;
}

.friends-composer-row {
  align-items: center;
  display: grid;
  gap: 0;
  justify-content: center;
}

.friend-checkin-select-shell {
  min-width: 0;
  position: relative;
  width: 100%;
}

.friend-checkin-select-shell::after {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid rgba(32, 49, 41, 0.66);
  content: "";
  pointer-events: none;
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-35%);
}

.friend-checkin-select {
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(32, 49, 41, 0.08);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
  color: var(--ink);
  font-size: 0.66rem;
  font-weight: 700;
  min-height: 36px;
  padding: 0 16px 0 8px;
  text-align: center;
  text-align-last: center;
  width: 100%;
}

.friend-checkin-duration {
  font-size: 0.62rem;
  padding-right: 16px;
}

.friend-checkin-friends-shell::after {
  display: none;
}

.friend-checkin-friends-shell .friend-checkin-select {
  font-size: 0.92rem;
  font-weight: 800;
  padding: 0;
}

.friend-checkin-select.is-active {
  color: var(--ink);
}

.friend-checkin-select:disabled {
  opacity: 0.68;
}

.friends-checkin-form {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: 44px;
  justify-content: center;
  min-width: 0;
}

.friends-checkin-form.is-photo-ready {
  grid-template-columns: 44px 44px 44px 40px;
}

.friend-checkin-send {
  align-items: center;
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  display: inline-grid;
  height: 36px;
  justify-items: center;
  padding: 0;
  transition: transform 160ms ease, opacity 160ms ease;
  width: 40px;
}

.friend-checkin-send svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 18px;
}

.friend-checkin-send:hover,
.friend-checkin-send:focus-visible {
  outline: 0;
  transform: translateY(-1px);
}

.friend-checkin-send.is-busy {
  opacity: 0.72;
}

.friend-photo-trigger {
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(32, 49, 41, 0.1);
  border-radius: 999px;
  color: var(--muted);
  display: grid;
  gap: 0;
  height: 36px;
  justify-items: center;
  min-height: 36px;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
  text-align: center;
  width: 44px;
}

.friend-photo-trigger-label {
  align-items: center;
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 700;
  gap: 0;
  justify-content: center;
  padding: 0;
}

.friend-photo-trigger-label svg {
  fill: none;
  height: 16px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 16px;
}

.friend-photo-trigger-preview {
  display: block;
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.friend-feed-card {
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(32, 49, 41, 0.08);
  border-radius: 16px;
  display: grid;
  gap: 8px;
  max-width: none;
  overflow: hidden;
  padding: 0;
  width: 100%;
}

.friend-feed-card.is-sample {
  opacity: 0.52;
  pointer-events: none;
}

.friend-feed-card.is-photo-loading .friend-feed-photo-shell::after {
  color: rgba(255, 250, 243, 0.92);
  content: "loading";
  font-size: 0.74rem;
  font-weight: 700;
  left: 14px;
  position: absolute;
  top: 14px;
}

.friend-feed-top {
  align-items: center;
  display: flex;
  gap: 8px;
  inset: 0 0 auto 0;
  justify-content: space-between;
  padding: 12px 12px 0;
  pointer-events: none;
  position: absolute;
  z-index: 3;
}

.friend-feed-top strong,
.friend-feed-top span {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.friend-feed-photo-shell {
  aspect-ratio: 4 / 5;
  background: rgba(32, 49, 41, 0.08);
  border-radius: 0;
  overflow: hidden;
  position: relative;
}

.friend-feed-photo-overlay {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0, transparent 80px),
    linear-gradient(0deg, rgba(0, 0, 0, 0.68) 0, transparent 120px);
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.friend-feed-photo {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.friend-feed-photo-placeholder {
  background:
    linear-gradient(135deg, rgba(30, 123, 104, 0.22), rgba(203, 155, 108, 0.16)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.46));
  height: 100%;
  width: 100%;
}

.friend-feed-card.is-photo-missing .friend-feed-photo-shell::after {
  color: rgba(255, 250, 243, 0.92);
  content: "photo unavailable";
  font-size: 0.74rem;
  font-weight: 700;
  left: 14px;
  position: absolute;
  top: 14px;
}

.friend-feed-photo-bottom {
  bottom: 11px;
  display: grid;
  gap: 8px;
  inset-inline: 12px;
  position: absolute;
  z-index: 3;
}

.friend-feed-caption {
  align-self: start;
  backdrop-filter: blur(6px);
  background: rgba(15, 15, 15, 0.55);
  border-radius: 12px;
  color: #f0f0f0;
  display: -webkit-box;
  font-size: 0.78rem;
  line-height: 1.5;
  margin: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 10px 12px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.friend-feed-meta {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: flex-start;
}

.friend-feed-meta.is-interactive {
  justify-content: space-between;
}

.friend-feed-top span {
  color: rgba(245, 240, 230, 0.8);
  font-size: 0.75rem;
}

.friend-feed-meta span {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.65rem;
}

.friend-feed-timer {
  background: rgba(255, 255, 255, 0.1);
  bottom: 0;
  height: 3px;
  inset-inline: 0;
  overflow: hidden;
  position: absolute;
  width: 100%;
  z-index: 4;
}

.friend-feed-timer-fill {
  background: #e8e8e8;
  display: block;
  height: 100%;
  transform-origin: left center;
  width: 100%;
}

.friend-feed-inline-reply {
  min-height: 36px;
  padding: 0 14px;
}

.friend-feed-empty {
  align-content: center;
  color: rgba(245, 240, 230, 0.88);
  display: grid;
  gap: 8px;
  justify-items: center;
  min-height: 100%;
  padding: 120px 24px;
  text-align: center;
}

.friend-feed-empty strong {
  font-size: 1rem;
  font-weight: 700;
}

.friend-feed-empty span {
  color: rgba(245, 240, 230, 0.64);
  font-size: 0.82rem;
}

.friend-feed-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 0 10px 10px;
}

.friend-feed-action {
  background: transparent;
  border: 1px solid rgba(32, 49, 41, 0.12);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 700;
  min-height: 30px;
  padding: 0 10px;
}

.friend-feed-action.is-danger {
  min-width: 30px;
  padding: 0;
}

.friend-reply-form {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 0 10px 10px;
}

.friend-reply-form-inline {
  backdrop-filter: blur(6px);
  background: rgba(15, 15, 15, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 6px;
}

.friend-reply-visibility-shell {
  display: block;
}

.friend-reply-visibility {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(32, 49, 41, 0.1);
  border-radius: 16px;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  min-height: 42px;
  padding: 0 28px 0 12px;
}

.friend-reply-form input {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(32, 49, 41, 0.1);
  border-radius: 16px;
  color: var(--ink);
  min-height: 42px;
  outline: 0;
  padding: 0 14px;
}

.friend-reply-form-inline input {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: #f0f0f0;
  min-height: 36px;
  padding: 0 12px;
}

.friend-reply-form-inline input::placeholder {
  color: rgba(255, 255, 255, 0.52);
}

.friend-reply-form-inline .friend-checkin-send {
  min-height: 36px;
  width: 36px;
}

.friend-replies {
  display: grid;
  gap: 8px;
  padding: 0 10px 10px;
}

.friend-replies-inline {
  backdrop-filter: blur(6px);
  background: rgba(15, 15, 15, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  max-height: 120px;
  overflow-y: auto;
  padding: 8px 10px;
}

.friend-replies-inline .friend-replies-heading {
  display: none;
}

.friend-replies-heading,
.friend-replies-empty {
  color: var(--muted);
  font-size: 0.76rem;
}

.friend-reply-row {
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(32, 49, 41, 0.06);
  border-radius: 14px;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
}

.friend-reply-row strong {
  font-size: 0.82rem;
}

.friend-reply-row p {
  color: var(--ink);
  font-size: 0.88rem;
  margin: 0;
}

.merchant-history-head {
  align-items: center;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(32, 49, 41, 0.08);
  border-radius: 18px;
  display: flex;
  gap: 12px;
  padding: 10px;
}

.merchant-history-head-copy {
  display: grid;
  gap: 2px;
}

.merchant-history-head strong {
  font-size: 1rem;
}

.merchant-history-head span {
  color: var(--muted);
  font-size: 0.78rem;
}

.receipt-card {
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(32, 49, 41, 0.08);
  border-radius: 999px;
  color: inherit;
  display: grid;
  gap: 9px;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  min-height: 50px;
  padding: 0 14px 0 16px;
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
  width: 100%;
}

.receipt-card:hover,
.receipt-card:focus-visible {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(30, 123, 104, 0.24);
  outline: 0;
  transform: translateY(-1px);
}

.receipt-shop {
  font-size: 1rem;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.receipt-shop-line {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  min-width: 0;
}

.receipt-meta,
.receipt-date,
.receipt-items {
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.receipt-total {
  color: var(--ink);
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  justify-self: end;
  white-space: nowrap;
}

.receipt-points {
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.receipt-points.is-active {
  color: var(--accent);
  font-weight: 700;
}

.receipt-reward-badge {
  background: rgba(30, 123, 104, 0.1);
  border: 1px solid rgba(30, 123, 104, 0.16);
  border-radius: 999px;
  color: var(--accent);
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 700;
  min-height: 22px;
  padding: 0 8px;
  white-space: nowrap;
}

.receipt-reward-badge.is-header {
  justify-self: start;
  width: fit-content;
}

.memory-reminders,
.memory-list {
  display: grid;
  gap: 8px;
}

.memory-reminders {
  margin-bottom: 12px;
}

.memory-reminder,
.memory-card {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(32, 49, 41, 0.08);
  border-radius: 18px;
  color: var(--ink);
  display: grid;
  gap: 8px;
  padding: 14px;
  text-align: left;
  width: 100%;
}

.memory-reminder {
  border-color: rgba(30, 123, 104, 0.18);
}

.memory-reminder span,
.memory-card-meta,
.memory-card-bottom,
.memory-empty,
.memory-comment time {
  color: var(--muted);
  font-size: 0.78rem;
}

.memory-card-top,
.memory-card-bottom {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-width: 0;
}

.memory-card-top strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.memory-card em {
  border-radius: 999px;
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 800;
  padding: 5px 8px;
}

.memory-card em.soon,
.memory-reminder.soon {
  background: rgba(203, 155, 108, 0.14);
}

.memory-card em.today,
.memory-reminder.today {
  background: rgba(30, 123, 104, 0.12);
  color: var(--accent);
}

.memory-card em.expired,
.memory-reminder.expired {
  background: rgba(138, 48, 41, 0.1);
  color: #8a3029;
}

.memory-section-heading {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 14px 0 8px;
  text-transform: uppercase;
}

.memory-empty {
  background: rgba(255, 255, 255, 0.48);
  border: 1px dashed rgba(32, 49, 41, 0.12);
  border-radius: 16px;
  padding: 12px;
}

.memory-dialog {
  background: #f7f5ef;
  border: 1px solid rgba(32, 49, 41, 0.08);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(18, 24, 22, 0.18);
  max-height: calc(100dvh - 32px);
  max-width: 560px;
  overflow-y: auto;
  position: relative;
  width: min(100%, 560px);
}

.memory-shell {
  display: grid;
  gap: 18px;
  padding: 28px 22px 22px;
}

.memory-form {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.memory-field-wide,
.memory-form-actions {
  grid-column: 1 / -1;
}

.memory-form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.memory-share-form,
.memory-comment-form {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.memory-shared-users {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.memory-shared-chip {
  align-items: center;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(32, 49, 41, 0.1);
  border-radius: 999px;
  display: inline-flex;
  gap: 8px;
  min-height: 34px;
  padding: 0 8px 0 12px;
}

.memory-shared-chip button {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 1.1rem;
  height: 28px;
  padding: 0;
  width: 24px;
}

.memory-comments {
  display: grid;
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
}

.memory-comment {
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(32, 49, 41, 0.08);
  border-radius: 16px;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
}

.memory-comment p {
  margin: 0;
}

.receipt-detail-backdrop {
  align-items: center;
  background: rgba(10, 13, 12, 0.58);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 30;
}

.toast-root {
  bottom: 18px;
  display: grid;
  gap: 10px;
  left: 50%;
  pointer-events: none;
  position: fixed;
  transform: translateX(-50%);
  width: min(calc(100% - 32px), 420px);
  z-index: 60;
}

.toast-message {
  background: rgba(20, 24, 22, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.22);
  color: #ffffff;
  font-size: 0.92rem;
  line-height: 1.45;
  padding: 12px 14px;
}

.toast-message.success {
  background: rgba(30, 123, 104, 0.96);
}

.toast-message.error {
  background: rgba(32, 49, 41, 0.96);
}

.receipt-detail-dialog {
  background: transparent;
  border: 0;
  max-height: calc(100dvh - 36px);
  max-width: 430px;
  overflow-y: auto;
  padding: 0;
  position: relative;
  width: min(100%, 430px);
}

.receipt-detail-close {
  align-items: center;
  background: rgba(32, 49, 41, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #ffffff;
  display: grid;
  font-size: 1.7rem;
  height: 42px;
  justify-items: center;
  line-height: 1;
  padding: 0 0 2px;
  position: absolute;
  right: 8px;
  top: 8px;
  width: 42px;
  z-index: 1;
}

.receipt-paper {
  background: #fffefa;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
  color: #1e211f;
  display: grid;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  gap: 18px;
  margin: 0 auto;
  padding: 38px 30px 28px;
  position: relative;
}

.receipt-paper::after {
  background:
    linear-gradient(135deg, transparent 75%, #fffefa 75%) 0 0 / 16px 16px,
    linear-gradient(225deg, transparent 75%, #fffefa 75%) 0 0 / 16px 16px;
  bottom: -15px;
  content: "";
  height: 16px;
  left: 0;
  position: absolute;
  right: 0;
}

.receipt-paper-head {
  border-bottom: 1px dashed rgba(30, 33, 31, 0.38);
  display: grid;
  gap: 6px;
  padding: 0 34px 16px;
  text-align: center;
}

.receipt-paper-head p,
.receipt-paper-head h2,
.receipt-paper-head span,
.receipt-paper-foot p {
  margin: 0;
}

.receipt-paper-head p {
  font-family: "Avenir Next", "Helvetica Neue", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.receipt-paper-head h2 {
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.receipt-paper-head span,
.receipt-paper-foot,
.receipt-paper-line small,
.receipt-paper-line span,
.receipt-paper-meta,
.receipt-paper-refunds,
.receipt-paper-returns h3 {
  color: rgba(30, 33, 31, 0.68);
  font-size: 0.78rem;
}

.receipt-paper-meta,
.receipt-paper-totals,
.receipt-paper-refunds,
.receipt-paper-returns {
  display: grid;
  gap: 7px;
}

.receipt-paper-meta div,
.receipt-paper-refunds div,
.receipt-paper-totals div,
.receipt-paper-line {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.receipt-paper-meta dt,
.receipt-paper-meta dd,
.receipt-paper-refunds dt,
.receipt-paper-refunds dd,
.receipt-paper-totals dt,
.receipt-paper-totals dd {
  margin: 0;
}

.receipt-paper-meta dd,
.receipt-paper-refunds dd,
.receipt-paper-totals dd {
  text-align: right;
}

.receipt-paper-lines {
  border-bottom: 1px dashed rgba(30, 33, 31, 0.38);
  border-top: 1px dashed rgba(30, 33, 31, 0.38);
  display: grid;
  gap: 12px;
  padding: 16px 0;
}

.receipt-import-text {
  background: #fff;
  border: 1px solid rgba(30, 33, 31, 0.08);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(18, 21, 20, 0.06);
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.55;
  margin: 0;
  overflow: visible;
  padding: 16px;
  white-space: pre;
}

.receipt-import-viewer {
  display: grid;
  gap: 10px;
}

.receipt-import-toolbar {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.receipt-import-tool {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(30, 33, 31, 0.12);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 700;
  min-height: 32px;
  min-width: 32px;
  padding: 0 10px;
}

.receipt-import-viewport {
  background: rgba(241, 237, 228, 0.7);
  border: 1px solid rgba(30, 33, 31, 0.08);
  border-radius: 16px;
  height: min(56dvh, 540px);
  overflow: hidden;
  position: relative;
  touch-action: none;
}

.receipt-import-stage {
  left: 0;
  position: absolute;
  top: 0;
  transform-origin: top left;
  will-change: transform;
}

.receipt-paper-line strong,
.receipt-paper-line small {
  display: block;
}

.receipt-paper-status {
  align-self: center;
  background: rgba(30, 33, 31, 0.08);
  border-radius: 999px;
  color: #1e211f;
  margin-top: 8px;
  padding: 6px 10px;
}

.receipt-paper-line strong {
  color: #1e211f;
  font-size: 0.9rem;
  font-weight: 700;
}

.receipt-paper-returns {
  border-top: 1px dashed rgba(30, 33, 31, 0.38);
  padding-top: 12px;
}

.receipt-paper-returns h3 {
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.receipt-paper-refunds {
  border-top: 1px dashed rgba(30, 33, 31, 0.38);
  padding-top: 12px;
}

.receipt-paper-line.is-return strong {
  color: #8a3029;
}

.receipt-paper-totals .is-total {
  border-top: 1px solid rgba(30, 33, 31, 0.16);
  font-size: 1.04rem;
  font-weight: 800;
  margin-top: 4px;
  padding-top: 10px;
}

.receipt-paper-foot {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
}

.receipt-paper-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.receipt-split-button {
  background: rgba(30, 123, 104, 0.1);
  border: 1px solid rgba(30, 123, 104, 0.18);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  min-height: 34px;
  padding: 0 14px;
}

.receipt-split-summary {
  background: rgba(30, 123, 104, 0.08);
  border: 1px solid rgba(30, 123, 104, 0.14);
  border-radius: 999px;
  color: var(--accent);
  font-family: "Avenir Next", "Helvetica Neue", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 7px 11px;
}

.receipt-delete-button {
  background: rgba(138, 48, 41, 0.08);
  border: 1px solid rgba(138, 48, 41, 0.16);
  border-radius: 999px;
  color: #8a3029;
  font-size: 0.78rem;
  font-weight: 700;
  min-height: 34px;
  padding: 0 12px;
}

.receipt-delete-button:hover,
.receipt-delete-button:focus-visible {
  background: rgba(138, 48, 41, 0.12);
  outline: 0;
}

.receipt-split-panel {
  background: rgba(32, 49, 41, 0.035);
  border-bottom: 1px dashed rgba(32, 49, 41, 0.28);
  border-radius: 14px;
  border-top: 1px dashed rgba(32, 49, 41, 0.28);
  box-shadow: none;
  color: var(--ink);
  display: grid;
  font-family: "Avenir Next", "Helvetica Neue", sans-serif;
  gap: 12px;
  margin: 8px 0 14px;
  padding: 14px 10px;
}

.split-panel-head,
.split-mini-row,
.split-person-row,
.split-summary-row,
.split-activity-row {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.split-panel-head p,
.split-panel-head h3 {
  margin: 0;
}

.split-panel-head p,
.split-mini-row,
.split-activity-row,
.split-remaining {
  color: var(--muted);
  font-size: 0.78rem;
}

.split-panel-head h3 {
  font-size: 1.3rem;
}

.split-close-button {
  background: rgba(32, 49, 41, 0.08);
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  font-size: 1.25rem;
  height: 34px;
  line-height: 1;
  width: 34px;
}

.split-methods {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr);
}

.split-methods span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.split-method {
  background: transparent;
  border: 0;
  border-radius: 14px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  min-height: 30px;
  padding: 0 5px;
}

.split-method.is-active {
  background: var(--ink);
  color: #fff;
}

.split-owner-toggle {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.86rem;
  gap: 8px;
}

.split-add-person {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.split-add-person input,
.split-person-row input,
.split-mini-row select,
.split-methods select {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(32, 49, 41, 0.1);
  border-radius: 14px;
  color: var(--ink);
  min-height: 38px;
  outline: 0;
  padding: 0 11px;
  width: 100%;
}

.split-methods select,
.split-mini-row select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 17px) 50%,
    calc(100% - 12px) 50%;
  background-repeat: no-repeat;
  background-size: 5px 5px;
  padding-right: 30px;
}

.split-friend-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
}

.split-friend-empty {
  color: var(--muted);
  font-size: 0.78rem;
}

.split-friend-chip {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(32, 49, 41, 0.1);
  border-radius: 999px;
  color: var(--ink);
  display: inline-grid;
  gap: 0;
  min-height: 38px;
  padding: 5px 12px;
  text-align: left;
}

.split-friend-chip strong,
.split-friend-chip span {
  display: block;
  line-height: 1.1;
}

.split-friend-chip strong {
  font-size: 0.8rem;
}

.split-friend-chip span {
  color: var(--muted);
  font-size: 0.66rem;
}

.split-friend-chip.is-selected {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.split-friend-chip.is-selected span {
  color: rgba(255, 255, 255, 0.72);
}

.split-add-person button,
.split-person-row button,
.split-actions button {
  min-height: 38px;
}

.split-people-list,
.split-item-list,
.split-summary-list,
.split-activity-list {
  display: grid;
  gap: 8px;
}

.split-person-row,
.split-item-card,
.split-summary-row,
.split-activity-row {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(32, 49, 41, 0.08);
  border-radius: 16px;
  padding: 10px;
}

.split-person-row strong,
.split-summary-row strong {
  display: block;
  font-size: 0.88rem;
}

.split-person-row small,
.split-summary-row small,
.split-item-card small {
  color: var(--muted);
  display: block;
  font-size: 0.74rem;
}

.split-person-row button {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 1.15rem;
  width: 30px;
}

.split-person-row.is-paid,
.split-summary-row.is-paid {
  border-color: rgba(30, 123, 104, 0.22);
}

.split-person-control {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: auto minmax(74px, 90px) auto;
}

.split-item-card {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) minmax(120px, auto);
}

.split-item-people {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.split-item-people label {
  align-items: center;
  background: rgba(32, 49, 41, 0.06);
  border: 1px solid transparent;
  border-radius: 999px;
  display: flex;
  font-size: 0.75rem;
  gap: 5px;
  padding: 6px 8px;
}

.split-item-people label:has(input:checked) {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.split-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr 1fr;
}

.split-remaining {
  text-align: center;
}

.merchant-link {
  color: var(--muted);
  text-decoration: none;
}

@media (max-width: 900px) {
  .landing-view {
    min-height: 100svh;
  }

  .dashboard-header {
    align-items: start;
    flex-direction: row;
  }

  .account-bar {
    flex-wrap: wrap;
  }

  .receipt-detail-dialog {
    max-width: 400px;
  }

}

@media (max-width: 640px) {
  html,
  body {
    height: -webkit-fill-available;
    height: 100%;
    min-height: 100dvh;
  }

  body.is-landing,
  body.is-vibes-dark {
    min-height: 100dvh;
  }

  .page-shell {
    padding: 0;
  }

  body:not(.is-landing) .page-shell {
    padding: 0;
  }

  body.is-landing .page-shell {
    display: block;
    min-height: 100dvh;
    padding: 0;
  }

  body.is-feed-screen-shell .page-shell {
    display: block;
    min-height: 100dvh;
    padding: 0;
  }

  body.is-landing .page-shell main,
  body.is-feed-screen-shell .page-shell main {
    height: 100dvh;
    min-height: 100dvh;
    width: 100%;
  }

  body.is-feed-screen-shell .dashboard-view.is-feed-screen {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    height: 100dvh;
    margin: 0;
    max-height: none;
    max-width: none;
    min-height: 100dvh;
    padding: 0;
    width: 100%;
  }

  body.is-landing .landing-view {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    height: 100dvh;
    margin: 0;
    max-height: none;
    max-width: none;
    min-height: 100dvh;
    padding: 0;
    width: 100%;
  }

  .landing-member-preview {
    gap: 10px;
    padding: 10px 18px;
  }

  .landing-my-posts-button {
    height: 38px;
    width: 38px;
  }

  .landing-topbar {
    left: 12px;
    right: 12px;
    top: max(12px, env(safe-area-inset-top));
  }

  .dashboard-view.is-feed-screen .friends-panel-topbar {
    left: 12px;
    right: 12px;
    top: max(12px, env(safe-area-inset-top));
  }

  .landing-member-preview .pill-label {
    font-size: 10px;
  }

  .landing-member-preview .pill-value {
    font-size: 15px;
  }

  .landing-public-shell,
  .landing-vibes {
    height: 100dvh;
    min-height: 100dvh;
  }

  .landing-vibe-overlay {
    padding:
      14px
      14px
      max(10px, calc(env(safe-area-inset-bottom) + 6px))
      14px;
  }

  .landing-vibe-caption {
    font-size: 0.82rem;
    line-height: 1.38;
    margin-bottom: 0;
    max-width: min(74%, 280px);
    padding: 10px 12px;
  }

  .landing-vibe-bottom {
    gap: 6px;
  }

  .landing-vibe-actions span {
    font-size: 0.72rem;
  }

  .landing-vibe-reply-button {
    min-height: 34px;
    padding: 0 14px;
  }

  .landing-vibe-timer {
    margin-top: 6px;
  }

  .landing-signin-zone {
    padding: 12px 12px 14px;
  }

  .dashboard-banner {
    border-radius: 16px;
    padding: 10px 12px;
  }

  .dashboard-banner-track {
    animation: none;
    display: block;
    min-width: 0;
    padding-right: 0;
    white-space: normal;
  }

  .dashboard-banner-track span + span {
    display: none;
  }

  .dashboard-banner-track span {
    display: block;
    font-size: 0.72rem;
    line-height: 1.3;
  }

  .dashboard-header-main {
    align-items: center;
  }

  .dashboard-inbox-row {
    flex-wrap: wrap;
  }

  .purchase-backdrop {
    padding: 10px;
  }

  .purchase-sheet {
    border-radius: 24px;
  }

  .purchase-shell {
    padding: 26px 16px 18px;
  }

  .purchase-history {
    max-height: 32dvh;
  }

  .purchase-active-step {
    min-height: 160px;
  }

  .purchase-question {
    font-size: 1.06rem;
  }

  .purchase-step {
    grid-template-columns: 1fr;
  }

  .purchase-field-grid {
    grid-template-columns: 1fr;
  }

  .purchase-field + .purchase-field,
  .purchase-field-grid + .purchase-field {
    margin-top: 8px;
  }

  .account-bar {
    gap: 6px;
  }

  .dock-panel {
    padding: 24px 20px;
  }

  .receipts-panel {
    padding: 14px;
  }

  .memory-panel {
    padding: 14px;
  }

  .memory-search-row,
  .memory-form,
  .memory-share-form,
  .memory-comment-form,
  .friends-form {
    grid-template-columns: 1fr;
  }

  .memory-form-actions {
    justify-content: stretch;
  }

  .memory-form-actions button {
    flex: 1;
  }

  .memory-dialog {
    border-radius: 22px;
  }

  .receipt-card {
    gap: 7px;
    min-height: 48px;
    padding: 0 12px 0 14px;
  }

  .receipt-shop {
    font-size: 0.94rem;
  }

  .receipt-date,
  .receipt-items,
  .receipt-points {
    font-size: 0.72rem;
  }

  .receipt-reward-badge {
    font-size: 0.62rem;
    padding: 0 7px;
  }

  .receipt-total {
    font-size: 0.84rem;
  }

  .account-inbox-pill {
    max-width: 100%;
  }

  .account-inbox-value {
    font-size: 0.72rem;
    line-height: 1.25;
    text-align: left;
  }

  .auth-action-row {
    grid-template-columns: 1fr;
  }

  .auth-modal {
    border-radius: 22px;
    padding: 38px 20px 24px;
  }

  .provider-option {
    min-height: 54px;
    padding: 0 18px;
  }

  .modal-email-field input,
  .modal-submit {
    min-height: 54px;
    padding: 0 18px;
  }

  .receipt-detail-backdrop {
    padding: 12px;
  }

  .receipt-paper {
    padding: 34px 22px 24px;
  }

  .split-methods {
    grid-template-columns: 1fr;
  }

  .split-actions,
  .split-add-person {
    grid-template-columns: 1fr;
  }

  .split-item-card {
    grid-template-columns: 1fr;
  }

}

body.is-landing,
body.is-feed-screen-shell {
  background: #f2efe9;
  color: #1a1a1a;
}

body.is-landing .landing-view,
body.is-feed-screen-shell .dashboard-view.is-feed-screen {
  background: #f2efe9;
  border: 1px solid #e8e3dc;
  box-shadow: 0 24px 80px rgba(26, 26, 26, 0.08);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.is-feed-screen-shell .dashboard-view.is-feed-screen {
  color: #1a1a1a;
}

.landing-public-shell,
.dashboard-view.is-feed-screen .friends-panel {
  background: #f2efe9;
}

.landing-topbar,
.dashboard-view.is-feed-screen .friends-panel-topbar {
  align-items: center;
  gap: 12px;
  left: 16px;
  pointer-events: auto;
  right: 16px;
  top: max(16px, env(safe-area-inset-top));
  z-index: 140;
}

.landing-topbar *,
.dashboard-view.is-feed-screen .friends-panel-topbar * {
  pointer-events: auto;
}

.dashboard-view.is-feed-screen .friends-panel-topbar .feed-scope-tabs {
  align-items: center;
  background: #ded7cc !important;
  border: 1px solid #cfc6b9 !important;
  border-radius: 20px !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.78) inset,
    0 6px 14px rgba(26, 26, 26, 0.06) !important;
  display: inline-flex !important;
  gap: 3px !important;
  min-width: max-content;
  overflow: visible;
  padding: 3px !important;
}

.dashboard-view.is-feed-screen .friends-panel-topbar .feed-scope-tab {
  background: transparent !important;
  border: 0 !important;
  border-radius: 16px !important;
  color: #3f3a34 !important;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0;
  min-height: 32px;
  min-width: 88px;
  opacity: 1;
  padding: 0 14px;
  text-transform: lowercase;
  white-space: nowrap;
}

.dashboard-view.is-feed-screen .friends-panel-topbar .feed-scope-tab.is-active {
  background: #1a1a1a !important;
  color: #fff !important;
}

.feed-scope-tabs {
  align-items: center;
  background: #ded7cc;
  border: 1px solid #cfc6b9;
  border-radius: 20px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.78) inset,
    0 6px 14px rgba(26, 26, 26, 0.06);
  display: inline-flex;
  gap: 3px;
  min-width: max-content;
  overflow: visible;
  padding: 3px;
}

.feed-scope-tab {
  background: transparent;
  border: 0;
  border-radius: 16px;
  color: #3f3a34;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0;
  min-height: 32px;
  min-width: 88px;
  opacity: 1;
  padding: 0 14px;
  text-transform: lowercase;
  white-space: nowrap;
}

.feed-scope-tab.is-active {
  background: #1a1a1a;
  color: #fff;
}

.landing-my-posts-button,
.dashboard-view.is-feed-screen .friend-side-button-round {
  align-items: center;
  background: #1a1a1a;
  border: 0;
  color: #fff;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  min-height: 32px;
  padding: 0;
  width: 32px;
}

.landing-my-posts-button:hover,
.landing-my-posts-button:active,
.landing-my-posts-button:focus-visible,
.dashboard-view.is-feed-screen .friend-side-button-round:hover,
.dashboard-view.is-feed-screen .friend-side-button-round:active,
.dashboard-view.is-feed-screen .friend-side-button-round:focus-visible {
  background: #1a1a1a;
  color: #fff;
  outline: none;
}

.landing-my-posts-button svg,
.dashboard-view.is-feed-screen .friend-side-button-round svg {
  height: 15px;
  width: 15px;
}

.feed-profile-initials {
  align-items: center;
  color: #fff;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 700;
  justify-content: center;
  letter-spacing: 0;
  line-height: 1;
}

.landing-vibes,
.dashboard-view.is-feed-screen .friends-feed-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
  inset: 0;
  overflow-y: auto;
  padding: calc(max(16px, env(safe-area-inset-top)) + 52px) 14px calc(max(92px, env(safe-area-inset-bottom) + 78px)) 14px;
  position: absolute;
  scroll-snap-type: none;
  scrollbar-width: none;
  width: 100%;
}

.landing-vibes::-webkit-scrollbar,
.dashboard-view.is-feed-screen .friends-feed-shell::-webkit-scrollbar {
  display: none;
  width: 0;
}

.dashboard-view.is-feed-screen .friends-feed {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: min-content;
}

.landing-vibe-card,
.friend-feed-card {
  flex: 0 0 auto;
  height: auto;
  min-height: 0;
  width: 100%;
}

.vibe-feed-card {
  border: 0.5px solid #e8e3dc;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.landing-vibe-card.is-expired,
.friend-feed-card.is-expired,
.vibe-feed-card.is-expired {
  opacity: 0.5;
}

.vibe-feed-card-photo {
  background: #111;
}

.vibe-feed-card-photo .vibe-feed-photo-frame {
  height: 210px;
  overflow: hidden;
  position: relative;
}

.vibe-feed-card-photo.is-compact .vibe-feed-photo-frame {
  height: 155px;
}

.vibe-feed-photo-image {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.vibe-feed-photo-frame::before {
  background: transparent;
  content: "";
  inset: 0;
  position: absolute;
}

.vibe-feed-photo-gradient-top,
.vibe-feed-photo-gradient-bottom {
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  z-index: 1;
}

.vibe-feed-photo-gradient-top {
  background: linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.0) 40%, rgba(0,0,0,0.55) 100%);
  bottom: 0;
  top: 0;
}

.vibe-feed-photo-gradient-bottom {
  background: transparent;
  bottom: 0;
  height: 0;
}

.vibe-feed-card-top,
.vibe-feed-card-bottom {
  left: 0;
  padding-left: 14px;
  padding-right: 14px;
  position: absolute;
  right: 0;
  z-index: 2;
}

.vibe-feed-card-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
  top: 12px;
}

.vibe-feed-card-bottom {
  bottom: 12px;
  display: grid;
  gap: 8px;
}

.vibe-feed-user {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  min-width: 0;
}

.vibe-feed-user-avatar {
  align-items: center;
  background: #fff;
  border-radius: 999px;
  color: #1a1a1a;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 700;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.vibe-feed-user-avatar.is-soft {
  background: #f0ebe4;
  color: #888;
}

.vibe-feed-user strong {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.vibe-feed-user.is-dark strong {
  color: #1a1a1a;
  text-shadow: none;
}

.vibe-feed-timer-badge,
.vibe-feed-timer-inline {
  align-items: center;
  display: inline-flex;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  gap: 6px;
}

.vibe-feed-timer-badge {
  background: #fff;
  border-radius: 12px;
  color: #1a1a1a;
  padding: 5px 10px;
}

.vibe-feed-timer-inline {
  color: #ccc;
}

.vibe-feed-timer-dot {
  animation: vibe-feed-pulse 1.25s ease-in-out infinite;
  background: #e15151;
  border-radius: 999px;
  display: inline-block;
  flex: 0 0 auto;
  height: 5px;
  width: 5px;
}

@keyframes vibe-feed-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.vibe-feed-photo-caption {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
  max-width: 82%;
}

.vibe-feed-location {
  align-items: center;
  color: #999;
  display: inline-flex;
  font-size: 12px;
  gap: 5px;
  line-height: 1.3;
  opacity: 0.75;
}

.vibe-feed-location svg {
  fill: none;
  height: 12px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 12px;
}

.vibe-feed-location.is-light {
  color: rgba(255, 255, 255, 0.45);
  opacity: 1;
}

.vibe-feed-card-meta,
.vibe-feed-text-footer {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.vibe-feed-reply-count {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
}

.vibe-feed-reply-count.is-muted {
  color: #ccc;
}

.vibe-feed-action-row {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.vibe-feed-action-button {
  align-items: center;
  background: #f7f5f2;
  border: 0.5px solid #ede9e3;
  border-radius: 999px;
  color: #ccc;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  padding: 0;
  width: 30px;
}

.vibe-feed-action-button.is-light {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.vibe-feed-action-button svg {
  fill: none;
  height: 14px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 14px;
}

.vibe-feed-card-text {
  background: #fff;
  padding: 16px;
}

.vibe-feed-text-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.vibe-feed-text-body {
  display: grid;
  gap: 10px;
  padding: 14px 0 12px;
}

.vibe-feed-text-body p {
  color: #999;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.vibe-feed-progress {
  background: rgba(255, 255, 255, 0.1);
  bottom: 0;
  height: 3px;
  left: 0;
  overflow: hidden;
  position: absolute;
  right: 0;
}

.vibe-feed-progress.is-light {
  background: rgba(0, 0, 0, 0.08);
}

.vibe-feed-progress-fill {
  background: #e8e8e8;
  display: block;
  height: 100%;
  transform-origin: left center;
  width: 100%;
}

.vibe-feed-progress-fill.is-light {
  background: #d9d4ce;
}

.vibe-feed-inline-thread {
  background: #0f0f0f;
  display: grid;
  gap: 8px;
  padding: 10px 12px 12px;
}

.vibe-feed-inline-replies {
  display: grid;
  gap: 8px;
}

.vibe-feed-inline-replies.is-empty {
  gap: 0;
}

.vibe-feed-inline-reply-bubble {
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  display: grid;
  gap: 8px;
  grid-template-columns: 24px minmax(0, 1fr);
  padding: 8px 10px;
}

.vibe-feed-inline-reply-avatar,
.vibe-feed-inline-composer-avatar {
  align-items: center;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #e0e0e0;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.vibe-feed-inline-reply-content {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.vibe-feed-inline-reply-head {
  align-items: center;
  display: flex;
  gap: 8px;
  min-width: 0;
}

.vibe-feed-inline-reply-head strong {
  color: #e0e0e0;
  font-size: 11px;
  font-weight: 500;
  min-width: 0;
}

.vibe-feed-inline-reply-head time {
  color: #555;
  font-size: 10px;
  white-space: nowrap;
}

.vibe-feed-inline-reply-content p {
  color: #aaa;
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
  word-break: break-word;
}

.vibe-feed-replies-empty {
  color: #777;
  font-size: 11px;
  font-weight: 500;
}

.vibe-feed-inline-reply-form {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  border-radius: 16px;
  display: grid;
  gap: 8px;
  grid-template-columns: 24px minmax(0, 1fr) 26px;
  margin: 0;
  padding: 8px 12px;
}

.vibe-feed-inline-reply-form input {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #f0f0f0;
  min-height: 24px;
  outline: 0;
  padding: 0;
}

.vibe-feed-inline-reply-form input::placeholder {
  color: #8a8a8a;
}

.vibe-feed-inline-send {
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  border: 0;
  border-radius: 999px;
  color: #f0f0f0;
  display: inline-flex;
  height: 26px;
  justify-content: center;
  min-height: 26px;
  min-width: 26px;
  padding: 0;
  width: 26px;
}

.vibe-feed-inline-send svg {
  fill: none;
  height: 12px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 12px;
}

.vibe-feed-owner-actions {
  align-items: center;
  background: #fff;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 10px 12px 12px;
}

.vibe-feed-owner-button {
  background: #f7f5f2;
  border: 0.5px solid #ede9e3;
  border-radius: 999px;
  color: #999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  min-height: 28px;
  padding: 0 10px;
}

.vibe-feed-owner-button svg {
  fill: none;
  height: 14px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 14px;
}

.vibe-feed-owner-button.is-danger {
  min-width: 28px;
  padding: 0;
}

.vibe-feed-card-photo .vibe-feed-owner-actions {
  background: #111;
  padding: 10px 12px 0;
}

.vibe-feed-card-text .vibe-feed-owner-actions {
  background: transparent;
  padding: 8px 16px 0;
}

.landing-vibes-empty,
.friend-feed-empty {
  align-content: center;
  background: #fff;
  border: 0.5px solid #e8e3dc;
  border-radius: 22px;
  color: #888;
  display: grid;
  gap: 8px;
  justify-items: center;
  min-height: 180px;
  padding: 28px 20px;
  text-align: center;
}

.landing-vibes-empty strong,
.friend-feed-empty strong {
  color: #1a1a1a;
  font-size: 0.96rem;
}

.friend-feed-empty span,
.landing-vibes-empty span {
  color: #999;
  font-size: 0.8rem;
}

.feed-drop-vibe-shell {
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 14px;
  pointer-events: none;
  position: absolute;
  right: 14px;
  z-index: 145;
}

.feed-drop-vibe-button {
  align-items: center;
  background: #1a1a1a;
  border: 0;
  border-radius: 24px;
  color: #fff;
  display: inline-flex;
  font-size: 0.98rem;
  font-weight: 700;
  gap: 10px;
  justify-content: center;
  min-height: 54px;
  padding: 15px 18px;
  pointer-events: auto;
  width: 100%;
}

.feed-drop-vibe-plus {
  font-size: 1.1rem;
  line-height: 1;
}

.dashboard-view.is-feed-screen .friends-footer-dock {
  display: none !important;
}

.friend-checkin-compose-preview-shell {
  align-items: center;
  background: #f7f5f2;
  border: 1px dashed #d8d2c9;
  display: grid;
  justify-items: center;
  min-height: 220px;
  overflow: hidden;
  position: relative;
}

.friend-checkin-compose-preview {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.friend-checkin-compose-photo-button {
  background: #1a1a1a;
  border: 0;
  border-radius: 999px;
  color: #fff;
  min-height: 42px;
  padding: 0 18px;
}

@media (max-width: 640px) {
  .landing-topbar,
  .dashboard-view.is-feed-screen .friends-panel-topbar {
    left: 12px;
    right: 12px;
    top: max(12px, env(safe-area-inset-top));
  }

  .landing-vibes,
  .dashboard-view.is-feed-screen .friends-feed-shell {
    padding:
      calc(max(12px, env(safe-area-inset-top)) + 46px)
      12px
      calc(max(84px, env(safe-area-inset-bottom) + 70px))
      12px;
  }

  .feed-scope-tab {
    font-size: 0.78rem;
    min-height: 30px;
    padding: 0 12px;
  }

  .vibe-feed-card-photo .vibe-feed-photo-frame {
    height: 198px;
  }

  .vibe-feed-card-photo.is-compact .vibe-feed-photo-frame {
    height: 148px;
  }

  .vibe-feed-photo-caption {
    font-size: 13px;
    max-width: 78%;
  }
}

@supports (-webkit-touch-callout: none) {
  @media (max-width: 640px) {
    html,
    body,
    body.is-landing,
    body.is-vibes-dark,
    .page-shell,
    body.is-landing .page-shell,
    body.is-feed-screen-shell .page-shell,
    body.is-landing .page-shell main,
    body.is-feed-screen-shell .page-shell main,
    .landing-public-shell,
    .landing-vibes,
    body.is-landing .landing-view,
    body.is-feed-screen-shell .dashboard-view.is-feed-screen {
      height: -webkit-fill-available;
      min-height: -webkit-fill-available;
    }
  }
}
