:root {
  /* Material Design 3–aligned light surfaces (neutral) */
  --canvas: #ffffff;
  --bg: #ffffff;
  --bg-wash: #ffffff;
  --surface: #ffffff;
  --surface-container: #f6f1ec;
  --surface-container-high: #efe6df;
  --ink: #3c2f2a;
  --muted: #8a796f;
  --outline: #a89890;
  --outline-variant: #e6dcd4;
  --line: #3c2f2a;
  --search: #f6f1ec;
  --card: #ffffff;
  --chip: #f3ebe6;
  --count: #f6f1ec;
  --orange: #2e7f96;
  --share: #c4543a;
  --share-soft: #fbf4f1;
  --share-line: #e4cfc6;
  --share-off: #edd9cc;
  --cocoa: #3c2f2a;
  --cocoa-line: #c4b5ad;
  --accent-sage: #2f5d3a;
  --accent-sky: #2e7f96;
  /* Borrow mark is bluer and lighter than sage so the pair still separates in red-green color blindness. */
  --borrow-mark: #1a6ec4;
  --cream: #f6e6d2;
  --sun: #e6b12a;
  --meadow: #6e9e48;
  --mist: #8ec4d8;
  --phone: #1a1a1a;
  --select: #2e7f96;
  --sage: #c5d0a4;
  --badge: #e7f3f6;
  --tag: #d5e8ee;
  --onboard-sage: #aabc84;
  --onboard-sage-deep: #7a9054;
  --onboard-sage-soft: #c5d4a8;
  --splash-bg: var(--cream);
  --onboard-orange: #f58233;
  --onboard-cream: #f5f5f5;
  --onboard-mustard: #ebcc52;
  --elevation-1: 0 1px 2px rgba(0, 0, 0, 0.08), 0 1px 3px 1px rgba(0, 0, 0, 0.04);
  /* Soft rectangular wells — subtle organic corners, still clearly rect/square */
  --organic-square: 20px 14px 20px 18px / 20px 12px 20px 18px;
  --organic-pill: 999px 1.15em 999px 1.25em / 999px 999px 999px 999px;
  --organic-rect: 18px 14px 18px 16px / 18px 12px 18px 16px;
  --type-title-size: 16px;
  --type-title-weight: 700;
  --type-title-lh: 1.25;
  --type-sub-size: 14px;
  --type-sub-weight: 400;
  --type-sub-lh: 1.3;
  --type-meta-size: 12px;
  --type-meta-weight: 400;
  --type-meta-lh: 1.35;
  --type-nav-size: 12px;
  --type-search-size: 16px;
  --icon-nav: 24px;
  --icon-search: 24px;
  --space-media-text: 10px;
  --space-text-stack: 2px;
  --space-stack-after: 22px;
  --touch: 48px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  background: var(--canvas);
  color: var(--ink);
}

button,
input {
  font: inherit;
  color: inherit;
}

.stage {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
}

.studio-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: min(280px, calc(100vw - 32px));
  font-size: 13px;
  font-weight: 650;
}

.studio-toggle {
  border: 0;
  background: rgba(255, 255, 255, 0.94);
  color: #111;
  border-radius: 999px;
  padding: 7px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
}

a.marketing-tab {
  margin-top: 8px;
  text-decoration: none;
}

.studio-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
  max-height: min(70vh, 520px);
  overflow: auto;
  padding: 12px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.studio-links[hidden] {
  display: none;
}

.studio-link a,
.studio-btn {
  color: #111;
}

.studio-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.is-work-mode .phone {
  filter: grayscale(1);
}

/* Wireframe — every screen inside the phone. Turn off to restore design. */
body.is-wireframe .phone {
  filter: none;
}

body.is-wireframe .phone-inner,
body.is-wireframe .phone-inner .screen,
body.is-wireframe .phone-inner .splash,
body.is-wireframe .phone-inner .onboarding,
body.is-wireframe .phone-inner .homescreen,
body.is-wireframe .phone-inner .app-body,
body.is-wireframe .phone-inner .chrome,
body.is-wireframe .phone-inner .tabbar,
body.is-wireframe .phone-inner .view,
body.is-wireframe .phone-inner .sheet,
body.is-wireframe .phone-inner .sheet-panel,
body.is-wireframe .phone-inner .sheet-top,
body.is-wireframe .phone-inner .onboard-slide,
body.is-wireframe .phone-inner .detail-body,
body.is-wireframe .phone-inner .detail-footer,
body.is-wireframe .phone-inner .chat-top,
body.is-wireframe .phone-inner .chat-thread,
body.is-wireframe .phone-inner .chat-composer,
body.is-wireframe .phone-inner .imessage-top,
body.is-wireframe .phone-inner .imessage-compose-bar,
body.is-wireframe .phone-inner .invite-body,
body.is-wireframe .phone-inner .community-top,
body.is-wireframe .phone-inner .community-feed,
body.is-wireframe .phone-inner .profile-panel,
body.is-wireframe .phone-inner .lend-form,
body.is-wireframe .phone-inner .lend-nav {
  background: #fff !important;
  background-image: none !important;
  box-shadow: none !important;
}

body.is-wireframe .phone-inner img {
  opacity: 0 !important;
}

body.is-wireframe .phone-inner .product-media,
body.is-wireframe .phone-inner .detail-hero,
body.is-wireframe .phone-inner .trip-chip-cover,
body.is-wireframe .phone-inner .lend-photo,
body.is-wireframe .phone-inner .invite-hero,
body.is-wireframe .phone-inner .imessage-link-media,
body.is-wireframe .phone-inner .post-compose-preview,
body.is-wireframe .phone-inner .chat-item-card,
body.is-wireframe .phone-inner .request-thumb,
body.is-wireframe .phone-inner .ios-widget,
body.is-wireframe .phone-inner .ios-icon,
body.is-wireframe .phone-inner .splash-wordmark {
  background: repeating-linear-gradient(
    -45deg,
    #fff,
    #fff 6px,
    #eee 6px,
    #eee 7px
  ) !important;
  border: 1px solid #111 !important;
  border-radius: 2px !important;
  box-shadow: none !important;
}

body.is-wireframe .phone-inner .cat-tile,
body.is-wireframe .phone-inner .home-due-card,
body.is-wireframe .phone-inner .home-status-card,
body.is-wireframe .phone-inner .search,
body.is-wireframe .phone-inner .home-lend-btn,
body.is-wireframe .phone-inner .chrome-orb,
body.is-wireframe .phone-inner .chrome-slot,
body.is-wireframe .phone-inner .community-search,
body.is-wireframe .phone-inner .filter-chip,
body.is-wireframe .phone-inner .filter-btn,
body.is-wireframe .phone-inner .save-btn,
body.is-wireframe .phone-inner .detail-icon-btn,
body.is-wireframe .phone-inner .profile-icon-btn,
body.is-wireframe .phone-inner .chat-icon-btn,
body.is-wireframe .phone-inner .lend-toggle,
body.is-wireframe .phone-inner .toggle-switch,
body.is-wireframe .phone-inner .profile-pill,
body.is-wireframe .phone-inner .profile-banner,
body.is-wireframe .phone-inner .profile-loop-card,
body.is-wireframe .phone-inner .profile-filter,
body.is-wireframe .phone-inner .profile-stat,
body.is-wireframe .phone-inner .discover-card,
body.is-wireframe .phone-inner .profile-share-card,
body.is-wireframe .phone-inner .profile-reciprocity-frame,
body.is-wireframe .phone-inner .profile-mode-tab,
body.is-wireframe .phone-inner .profile-avatar,
body.is-wireframe .phone-inner .person-avatar,
body.is-wireframe .phone-inner .chat-avatar,
body.is-wireframe .phone-inner .chat-bubble,
body.is-wireframe .phone-inner .chat-suggestion,
body.is-wireframe .phone-inner .chat-input-wrap,
body.is-wireframe .phone-inner .community-friend-avatar,
body.is-wireframe .phone-inner .lend-field input,
body.is-wireframe .phone-inner .lend-select,
body.is-wireframe .phone-inner .lend-cat-pill,
body.is-wireframe .phone-inner .lend-cat-row,
body.is-wireframe .phone-inner .lend-cat-row-icon,
body.is-wireframe .phone-inner .lend-rule-row,
body.is-wireframe .phone-inner .message-row,
body.is-wireframe .phone-inner .request-card,
body.is-wireframe .phone-inner .request-avatar,
body.is-wireframe .phone-inner .request-search-row,
body.is-wireframe .phone-inner .imessage-bubble,
body.is-wireframe .phone-inner .imessage-link-card,
body.is-wireframe .phone-inner .imessage-contact,
body.is-wireframe .phone-inner .imessage-contact-avatar,
body.is-wireframe .phone-inner .offapp-field input,
body.is-wireframe .phone-inner .post-source,
body.is-wireframe .phone-inner .post-tag-chip,
body.is-wireframe .phone-inner .mutual-chip,
body.is-wireframe .phone-inner .mutuals-row,
body.is-wireframe .phone-inner .home-request-alert,
body.is-wireframe .phone-inner .home-reciprocity-nudge,
body.is-wireframe .phone-inner .save-toast,
body.is-wireframe .phone-inner .btn-dark,
body.is-wireframe .phone-inner .detail-book-bar,
body.is-wireframe .phone-inner .detail-dates-btn,
body.is-wireframe .phone-inner .detail-lender,
body.is-wireframe .phone-inner .avatar,
body.is-wireframe .phone-inner .ios-app,
body.is-wireframe .phone-inner .borrow-active,
body.is-wireframe .phone-inner .tab-save .save-mark {
  background: #fff !important;
  background-image: none !important;
  border: 1px solid #111 !important;
  border-radius: 2px !important;
  box-shadow: none !important;
  color: #111 !important;
}

body.is-wireframe .phone-inner .save-mark-blob,
body.is-wireframe .phone-inner .save-btn.is-on .save-mark-blob,
body.is-wireframe .phone-inner .lend-toggle::after,
body.is-wireframe .phone-inner .toggle-knob,
body.is-wireframe .phone-inner .switch::after,
body.is-wireframe .phone-inner .borrow-active .yin {
  background: #111 !important;
  border-radius: 1px !important;
}

body.is-wireframe .phone-inner .lend-toggle.is-on,
body.is-wireframe .phone-inner .toggle-switch.is-on,
body.is-wireframe .phone-inner .profile-filter.is-on,
body.is-wireframe .phone-inner .profile-mode-tab.is-on,
body.is-wireframe .phone-inner .chat-bubble-row.is-me .chat-bubble,
body.is-wireframe .phone-inner .btn-dark {
  background: #e8e8e8 !important;
  color: #111 !important;
}

body.is-wireframe .phone-inner .borrowed-banner,
body.is-wireframe .phone-inner .home-due-card,
body.is-wireframe .phone-inner .home-status-card,
body.is-wireframe .phone-inner .profile-banner,
body.is-wireframe .phone-inner .profile-loop-card,
body.is-wireframe .phone-inner .lend-link-status,
body.is-wireframe .phone-inner .imessage-bubble.is-link {
  color: #111 !important;
  border-color: #111 !important;
}

body.is-wireframe .phone-inner .profile-avatar-wrap,
body.is-wireframe .phone-inner .profile-avatar,
body.is-wireframe .phone-inner .shelf-media,
body.is-wireframe .phone-inner .profile-banner {
  background: repeating-linear-gradient(
    -45deg,
    #fff,
    #fff 6px,
    #eee 6px,
    #eee 7px
  ) !important;
  border: 1px solid #111 !important;
  border-radius: 2px !important;
  box-shadow: none !important;
  color: #111 !important;
}

body.is-wireframe .phone-inner .profile-banner-copy,
body.is-wireframe .phone-inner .profile-banner-meta,
body.is-wireframe .phone-inner .circle-stat-num,
body.is-wireframe .phone-inner .circle-stat-label,
body.is-wireframe .phone-inner .circle-even-center strong {
  color: #111 !important;
  text-shadow: none !important;
}

body.is-wireframe .phone-inner .profile-banner-chip,
body.is-wireframe .phone-inner .profile-banner-chevron,
body.is-wireframe .phone-inner .profile-n-badge,
body.is-wireframe .phone-inner .circle-stat,
body.is-wireframe .phone-inner .circle-stat-swatch,
body.is-wireframe .phone-inner .profile-yin,
body.is-wireframe .phone-inner .shelf-card {
  background: #fff !important;
  background-image: none !important;
  border: 1px solid #111 !important;
  border-radius: 2px !important;
  box-shadow: none !important;
  color: #111 !important;
}

body.is-wireframe .phone-inner .circle-even {
  --lend: #111;
  --lend-track: #ddd;
  --borrow: #111;
  --borrow-track: #ddd;
}

body.is-wireframe .phone-inner .circle-even-track,
body.is-wireframe .phone-inner .circle-even-ghost,
body.is-wireframe .phone-inner .circle-even-fill {
  stroke: #111 !important;
}

body.is-wireframe .phone-inner .circle-even-track,
body.is-wireframe .phone-inner .circle-even-ghost {
  stroke: #ccc !important;
}

.phone {
  width: 390px;
  height: 844px;
  background: var(--phone);
  border-radius: 44px;
  padding: 10px;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px #3a3a3a;
}

.phone-inner {
  position: relative;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: var(--bg-wash);
}

.dynamic-island {
  position: absolute;
  top: 11px;
  left: 50%;
  z-index: 20;
  width: 126px;
  height: 37px;
  transform: translateX(-50%);
  background: #0a0a0a;
  border-radius: 20px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 1px 2px rgba(0, 0, 0, 0.55),
    0 8px 18px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 14px 0 18px;
  pointer-events: none;
}

.dynamic-island::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 19px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 42%);
  pointer-events: none;
}

.di-camera {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #3a4a66 0%, #152033 42%, #05070c 72%);
  box-shadow:
    0 0 0 1.5px #1a1a1a,
    0 0 0 2.5px #050505,
    inset 0 0 2px rgba(120, 160, 220, 0.35);
  flex-shrink: 0;
}

.di-camera::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3.5px;
  width: 3px;
  height: 2px;
  border-radius: 50%;
  background: rgba(180, 210, 255, 0.35);
}

.di-sensor {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #2a2a2a, #0c0c0c 70%);
  box-shadow: inset 0 0 1.5px rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  margin-right: 2px;
}

.notch {
  display: none;
}

.screen {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg-wash);
}

.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px 0;
  height: 48px;
  font-size: 15px;
  font-weight: 600;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-icons svg {
  display: block;
  flex-shrink: 0;
}

.status-wifi {
  margin-inline: -0.5px;
}

.app-body {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 4px 18px 0;
  position: relative;
}

.chrome {
  flex-shrink: 0;
}

.view {
  display: none;
  flex: 1;
  overflow: auto;
  min-height: 0;
  scrollbar-width: none;
  background: transparent;
}

.view::-webkit-scrollbar {
  display: none;
}

.view.is-on {
  display: block;
}

.view::after {
  content: "";
  display: block;
  height: 86px;
}

/* Ensure inactive views never bleed through (beats .view.is-on if both ever apply) */
.view[hidden] {
  display: none !important;
}

.recents-block {
  min-height: 0;
}

.chrome-tools {
  --orb: 44px;
  --chrome-spring: 0.28s cubic-bezier(0.2, 1.35, 0.32, 1);
  display: flex;
  align-items: center;
  margin-top: 14px;
  height: var(--orb);
}

.chrome-slot {
  flex: 0 0 0px;
  width: 0;
  margin-right: 0;
  opacity: 0;
  transition:
    flex 0.28s cubic-bezier(0.2, 1.35, 0.32, 1),
    margin-right 0.28s cubic-bezier(0.2, 1.35, 0.32, 1),
    opacity 0.16s linear;
}

.chrome-tools.is-search .chrome-slot,
.chrome-tools.is-add .chrome-slot {
  flex: 1 1 0px;
  width: auto;
  margin-right: 10px;
  opacity: 1;
}

.chrome-orb {
  flex: 0 0 var(--orb);
  margin-right: 10px;
  transition:
    flex-basis 0.28s cubic-bezier(0.2, 1.35, 0.32, 1),
    width 0.28s cubic-bezier(0.2, 1.35, 0.32, 1),
    margin-right 0.28s cubic-bezier(0.2, 1.35, 0.32, 1),
    opacity 0.16s linear,
    transform 0.12s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.chrome-tools.is-search #chrome-search-btn,
.chrome-tools.is-add #chrome-add-btn {
  flex-basis: 0;
  width: 0;
  margin-right: 0;
  opacity: 0;
  pointer-events: none;
}

.chrome-tools.is-search #chrome-add-btn,
.chrome-tools.is-add #chrome-search-btn {
  margin-right: 0;
}

.chrome-tool-gap {
  flex: 1 1 auto;
  transition: flex 0.28s cubic-bezier(0.2, 1.35, 0.32, 1);
}

.chrome-tools.is-search .chrome-tool-gap,
.chrome-tools.is-add .chrome-tool-gap {
  flex: 0 0 0px;
}

.chrome-slot {
  position: relative;
  height: var(--orb);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(118, 118, 128, 0.12);
  min-width: 0;
}

.chrome-search-face,
.chrome-add-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
}

.chrome-tools.is-search .chrome-search-face,
.chrome-tools.is-add .chrome-add-face {
  opacity: 1;
  pointer-events: auto;
}

.chrome-tools .chrome-search-face.search {
  height: 100%;
  gap: 6px;
  padding: 0 8px 0 14px;
  background: transparent;
  border-radius: 0;
}

.chrome-tools .chrome-search-face > svg {
  width: 18px;
  height: 18px;
  color: #3a3a3c;
}

.chrome-add-face {
  gap: 2px;
  padding: 3px;
}

.chrome-add-opt {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #1c1c1e;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  cursor: pointer;
}

.chrome-add-opt svg {
  flex-shrink: 0;
}

.chrome-add-opt:active {
  background: rgba(255, 255, 255, 0.7);
}

.chrome-orb {
  width: var(--orb);
  height: var(--orb);
  min-width: 0;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: rgba(118, 118, 128, 0.12);
  color: #1c1c1e;
  display: grid;
  place-items: center;
  cursor: pointer;
  overflow: hidden;
}

#chrome-add-btn,
.chrome-tools.is-add #chrome-search-btn {
  background: var(--share);
  color: #fffaf6;
}

.chrome-orb:active {
  transform: scale(0.9);
}

.chrome-tool-gap {
  height: 1px;
}

@media (prefers-reduced-motion: reduce) {
  .chrome-tools {
    transition: none;
  }
}

.search {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--search);
  border-radius: 28px;
  height: var(--touch);
  padding: 0 10px 0 12px;
}

.search > svg {
  width: var(--icon-search);
  height: var(--icon-search);
  flex-shrink: 0;
}

.home-lend-btn {
  flex-shrink: 0;
  height: var(--touch);
  min-width: var(--touch);
  padding: 0 14px 0 12px;
  border: 0;
  border-radius: 22px;
  background: #1c1610;
  color: #f6f1e8;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.home-lend-btn span {
  font-size: 18px;
  line-height: 1;
  font-weight: 500;
}

.search input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font-size: var(--type-search-size);
  font-weight: 400;
  line-height: 1.25;
  min-width: 0;
}

.search input::placeholder,
.community-search input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.search input[type="search"]::-webkit-search-cancel-button,
.search input[type="search"]::-webkit-search-decoration,
.community-search input[type="search"]::-webkit-search-cancel-button,
.community-search input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.search-clear,
.mic {
  border: 0;
  background: none;
  padding: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
}

.search-clear[hidden] {
  display: none !important;
}

.search-clear:active,
.mic:active {
  color: var(--ink);
}

.cats {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-top: 4px;
  padding-bottom: 2px;
}

.cats::-webkit-scrollbar {
  display: none;
}

.cats button {
  border: 0;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.15;
  text-align: center;
  color: #8d877f;
  flex: 0 0 auto;
  width: 72px;
  outline: none;
}

.cats button:focus,
.cats button:focus-visible {
  outline: none;
}

.cat-tile {
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #fff;
  box-shadow: 0 8px 18px rgba(60, 47, 42, 0.06);
}

.cats .cat-icon {
  width: 28px;
  height: 28px;
  stroke-width: 1.5;
}

.cat-tile.is-stamp {
  display: block;
  overflow: hidden;
}

.cat-tile.is-stamp img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  transform: scale(1.16);
  transform-origin: center;
}

.cats button[data-cat="kitchen"] .cat-icon {
  stroke: #f0d56a;
  filter: drop-shadow(2px 3px 2px rgba(240, 213, 106, 0.8));
}

.cats button[data-cat="baby"] .cat-icon {
  stroke: #f0b48a;
  filter: drop-shadow(2px 3px 2px rgba(240, 180, 138, 0.75));
}

.cats button[data-cat="gathering"] .cat-icon {
  stroke: #b7c98a;
  filter: drop-shadow(2px 3px 2px rgba(183, 201, 138, 0.8));
}

.cats button[data-cat="books"] .cat-icon {
  stroke: #9ec8e4;
  filter: drop-shadow(2px 3px 2px rgba(158, 200, 228, 0.8));
}

.cat-tile img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.cat-icon {
  width: 32px;
  height: 32px;
  display: block;
  pointer-events: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

img.cat-icon {
  object-fit: contain;
  filter: brightness(0);
  stroke: none;
}

.cats button.selected .cat-tile {
  outline: 2px solid var(--share);
  outline-offset: 0;
  box-shadow: 0 8px 18px rgba(60, 47, 42, 0.06);
}

.block {
  margin-top: 18px;
}

.home-loops-block {
  margin-top: 10px;
}

.interest-frame {
  position: relative;
  background: var(--surface-container);
  border-radius: 22px;
  padding: 10px 10px 12px;
}

.interest-stack {
  position: relative;
  height: 348px;
}

.interest-card {
  position: absolute;
  inset: 10px 10px 8px;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 18px rgba(60, 47, 42, 0.08);
  touch-action: pan-y;
  user-select: none;
  display: flex;
  flex-direction: column;
}

.interest-card img {
  width: 100%;
  flex: 1 1 auto;
  height: 0;
  min-height: 0;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.interest-card.is-back-1 {
  transform: scale(0.96) translateY(8px);
  z-index: 1;
}

.interest-card.is-back-2 {
  transform: scale(0.92) translateY(16px);
  z-index: 0;
}

.interest-card.is-top {
  z-index: 2;
  cursor: grab;
}

.interest-card.is-top:active {
  cursor: grabbing;
}

.interest-caption {
  position: relative;
  flex-shrink: 0;
  padding: 10px 14px 12px;
  background: #fff;
  color: #1c1a17;
  display: grid;
  gap: 2px;
  pointer-events: none;
}

.interest-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.interest-caption strong {
  font-size: 20px;
  letter-spacing: -0.03em;
}

.interest-caption span {
  font-size: 13px;
  color: var(--muted);
}

.interest-stamp {
  position: absolute;
  top: 22px;
  padding: 4px 8px;
  border: 3px solid;
  border-radius: 8px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
}

.interest-stamp.is-yes {
  left: 16px;
  color: #2f5d3a;
  border-color: #2f5d3a;
  transform: rotate(-12deg);
}

.interest-stamp.is-no {
  right: 16px;
  color: #c4543a;
  border-color: #c4543a;
  transform: rotate(12deg);
}

.interest-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 104px;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 0;
  pointer-events: none;
}

.interest-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  box-shadow: 0 4px 12px rgba(60, 47, 42, 0.14);
  font-size: 18px;
  cursor: pointer;
  pointer-events: auto;
}

.interest-btn.is-no {
  color: var(--cocoa);
}

.interest-btn.is-yes {
  color: #2f5d3a;
}

.interest-btn:active {
  transform: scale(0.9);
}

.interest-empty {
  margin: 28px 8px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.interest-actions[hidden] {
  display: none;
}

.home-loops-frame {
  background: var(--surface-container);
  border-radius: 22px;
  padding: 8px 10px 12px;
}

#view-home {
  margin-left: -18px;
  margin-right: -18px;
  padding-left: 18px;
  padding-right: 18px;
}

#view-home.is-on {
  display: flex;
  flex-direction: column;
}

#view-home.is-on > .block {
  flex-shrink: 0;
}

#view-home::after {
  height: 0;
}

.explore-block {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

.home-friends-frame {
  flex: 1;
  background: var(--surface-container);
  border-radius: 28px 28px 0 0;
  margin-left: -18px;
  margin-right: -18px;
  padding: 16px 18px 110px;
}

.home-recents-frame {
  background: var(--surface-container);
  border-radius: 22px 0 0 22px;
  padding: 10px 0 4px 10px;
  margin-right: -18px;
}

.home-recents-frame .product-rail {
  padding-bottom: 0;
  padding-right: 18px;
}

.home-recents-frame .product-copy {
  padding-bottom: 8px;
}

.home-loops-frame:not(:has(button)) {
  display: none;
}

.home-due-soon {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.home-due-soon:empty {
  display: none;
}

.home-due-card {
  position: relative;
  width: 100%;
  border: 0;
  border-radius: 0;
  padding: 8px 4px 14px 20px;
  text-align: left;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
}

.home-due-card::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 14px;
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: var(--share);
}

.home-due-card::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 4px;
  height: 3px;
  border-radius: 1px;
  background: var(--share);
}

.home-due-card.is-lend::before,
.home-due-card.is-lend::after {
  background: var(--accent-sage);
}

.home-due-card.is-borrow::before,
.home-due-card.is-borrow::after,
.home-due-card.is-return::before,
.home-due-card.is-return::after {
  background: var(--borrow-mark);
}

.home-due-card strong {
  display: block;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.block-head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.head-icon-btn {
  width: 28px;
  height: 28px;
  border: 1.4px solid var(--ink);
  border-radius: 50%;
  background: none;
  display: grid;
  place-items: center;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
}

.home-status-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 8px 0 2px;
}

.home-due-soon:empty + .home-status-rail {
  padding-top: 2px;
}

.home-status-rail:empty {
  display: none;
}

.home-status-rail::-webkit-scrollbar {
  display: none;
}

.product-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 8px;
}

.product-rail::-webkit-scrollbar {
  display: none;
}

.product-rail .product-card {
  flex: 0 0 148px;
}

.product-rail .product-media {
  aspect-ratio: 1;
  width: 100%;
}

.home-status-card {
  position: relative;
  flex: 0 0 168px;
  border: 0;
  border-radius: 18px;
  padding: 10px 12px 16px 26px;
  text-align: left;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
}

.home-status-card::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 4px;
  height: 14px;
  margin-top: -10px;
  border-radius: 2px;
  background: var(--cocoa);
}

.home-status-card::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 7px;
  height: 2px;
  border-radius: 1px;
  background: var(--cocoa-line);
}

.home-status-card.is-lend::before {
  background: var(--accent-sage);
}

.home-status-card.is-borrow::before {
  background: var(--borrow-mark);
}

.home-status-kicker {
  display: block;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--muted);
  margin-bottom: 2px;
}

.home-pulse {
  display: none;
}

.home-status-card strong {
  display: block;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-status-meta {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.block-head h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.more {
  width: 22px;
  height: 22px;
  border: 1.4px solid var(--ink);
  border-radius: 50%;
  background: none;
  display: grid;
  place-items: center;
}

.loan {
  display: flex;
  align-items: stretch;
  gap: 10px;
  background: var(--card);
  border: 1.4px solid #111;
  border-radius: 16px;
  padding: 12px 10px 12px 14px;
  min-height: 92px;
}

.loan-copy {
  flex: 1;
  min-width: 0;
}

.loan-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.loan h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.loan p {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.35;
  color: #2b2b2b;
}

.chips {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.avatar,
.phone-chip {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--chip);
  display: grid;
  place-items: center;
  font-size: 8px;
  font-weight: 700;
}

.countdown {
  width: 78px;
  border-radius: 10px;
  background: var(--count);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-shrink: 0;
}

.countdown strong {
  font-size: 34px;
  line-height: 0.9;
  font-weight: 700;
  color: var(--orange);
}

.countdown span {
  font-size: 11px;
  margin-top: 4px;
}

.recents {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.recents::-webkit-scrollbar {
  display: none;
}

.recent-card {
  position: relative;
  width: 168px;
  height: 118px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface-container);
  border: 1px solid var(--outline-variant);
}

.recent-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.recent-card .overlay {
  position: absolute;
  top: 8px;
  right: 8px;
}

@property --notch-x {
  syntax: "<length>";
  inherits: true;
  initial-value: 36px;
}

@property --notch-y {
  syntax: "<length>";
  inherits: true;
  initial-value: 4px;
}

.tabbar {
  --notch-x: 36px;
  --notch-y: 4px;
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 20px;
  z-index: 25;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  padding: 6px 4px 5px;
  border-radius: 32px;
  background: none;
  overflow: visible;
  flex-shrink: 0;
}

.tabbar-surface {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 0.5px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(246, 246, 248, 0.42));
  backdrop-filter: blur(28px) saturate(1.8);
  -webkit-backdrop-filter: blur(28px) saturate(1.8);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.14),
    0 1px 1px rgba(255, 255, 255, 0.7) inset,
    0 -0.5px 0 rgba(0, 0, 0, 0.06) inset;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle 30px at var(--notch-x) var(--notch-y), transparent 28px, #000 30px);
  mask-image: radial-gradient(circle 30px at var(--notch-x) var(--notch-y), transparent 28px, #000 30px);
}

.tabbar.is-notch-ready {
  transition: --notch-x 0.5s cubic-bezier(0.22, 1.25, 0.32, 1), --notch-y 0.5s cubic-bezier(0.22, 1.25, 0.32, 1);
}

.tabbar-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent 46%);
}

.tabbar button {
  position: relative;
  z-index: 1;
  border: 0;
  background: none;
  display: grid;
  grid-template-rows: 22px auto;
  justify-items: center;
  align-content: center;
  gap: 2px;
  min-height: 50px;
  padding: 4px 2px 4px;
  border-radius: 26px;
  font-size: 10px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #8e8e93;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: none;
}

.tabbar button.active {
  color: #8e8e93;
  font-weight: 500;
  background: none;
  box-shadow: none;
}

.tab-label {
  transition: opacity 0.25s ease;
}

.tabbar button.active .tab-label {
  opacity: 0;
}

.tabbar button.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--share);
  transform: translateX(-50%);
}

.tab-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: currentColor;
}

.tab-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.tabbar button.active .tab-icon {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 4px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--share);
  color: #fffaf6;
  transform: translate(-50%, -30px);
  box-shadow: 0 8px 16px rgba(196, 84, 58, 0.32);
  animation: tab-pop 0.5s cubic-bezier(0.22, 1.3, 0.32, 1);
}

@keyframes tab-pop {
  0% { transform: translate(-50%, -4px) scale(0.72); }
  65% { transform: translate(-50%, -34px) scale(1.06); }
  100% { transform: translate(-50%, -30px) scale(1); }
}

.borrow-active {
  width: var(--icon-nav);
  height: var(--icon-nav);
  border-radius: 50%;
  position: relative;
  border: 1.7px solid currentColor;
}

.tabbar button.active .borrow-active {
  background: #111;
  border-color: #111;
}

.borrow-active .yin {
  display: none;
}

.tabbar button.active .borrow-active .yin {
  display: block;
  position: absolute;
  inset: 4px 11px 4px 4px;
  background: #fff;
  border-radius: 99px 0 0 99px;
}

.tabbar .tab-save .save-mark {
  width: 22px;
  height: 22px;
  border: 1.6px solid currentColor;
  border-radius: 50%;
  background: transparent;
}

.home-indicator {
  position: relative;
  z-index: 26;
  width: 134px;
  height: 5px;
  border-radius: 99px;
  background: #111;
  margin: 8px auto 7px;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.filter-btn,
.view-toggle {
  border: 0;
  background: none;
  display: grid;
  place-items: center;
  padding: 4px;
}

.active-chips {
  flex: 1;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--sage);
  border: 0;
  border-radius: var(--organic-pill);
  padding: 6px 10px 6px 6px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.filter-chip .x {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  line-height: 1;
  color: #6d6a64;
}

.view-toggles {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.view-toggle {
  opacity: 0.35;
}

.view-toggle.is-on {
  opacity: 1;
}

.item-count {
  margin: 0;
  font-size: 13px;
}

.browse-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 2px 0 22px;
}

.item-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-bottom: 18px;
}

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

.listing {
  border: 1px solid var(--outline-variant);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  text-align: left;
}

.listing-photo {
  position: relative;
  aspect-ratio: 1.2;
  background: var(--surface);
}

.listing-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  background: var(--surface);
}

.listing.list {
  display: grid;
  grid-template-columns: 110px 1fr;
}

.listing.list .listing-photo {
  aspect-ratio: auto;
  height: 100%;
  min-height: 88px;
}

.borrowed-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--tag);
  color: #1d1d1d;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 8px;
}

.listing-photo .avatar {
  position: absolute;
  left: 8px;
  bottom: 8px;
  width: 28px;
  height: 28px;
  background: var(--badge);
  font-size: 10px;
}

.listing-body {
  padding: 8px 8px 10px;
}

.listing-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.owner {
  font-size: 12px;
  color: #8a8680;
}

.fav {
  border: 0;
  background: none;
  padding: 0;
  color: #9a9590;
}

.fav.is-on {
  color: var(--accent-sage);
}

.fav.is-on svg {
  fill: var(--accent-sage);
}

.spec {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.empty {
  grid-column: 1 / -1;
  padding: 28px 8px;
  color: var(--muted);
  font-size: 14px;
}

.sheet {
  position: absolute;
  inset: 0;
  z-index: 8;
}

.sheet[hidden] {
  display: none;
}

.sheet-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  width: 100%;
  background: rgba(20, 18, 14, 0.35);
}

.sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  border-radius: 22px 22px 0 0;
  padding: 8px 18px 28px;
  max-height: 86%;
  overflow: auto;
}

.sheet-handle {
  width: 44px;
  height: 5px;
  border-radius: 99px;
  background: #d4cfc6;
  margin: 6px auto 12px;
}

.sheet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.sheet-top h2 {
  font-size: 22px;
}

.text-btn {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 14px;
}

.filter-group {
  margin-top: 16px;
}

.filter-group h3 {
  font-size: 16px;
}

.filter-hint {
  font-size: 12px;
  color: var(--muted);
  margin: 2px 0 10px;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice {
  border: 1.2px solid #cfc9c0;
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
}

.choice.on {
  background: var(--sage);
  border-color: #9eab7e;
}

.apply-btn {
  width: 100%;
  margin-top: 22px;
  font-size: 16px;
}

/* —— Onboarding / landing screens —— */
.screen[data-mode="homescreen"] {
  background-color: #1c1410;
  position: relative;
  isolation: isolate;
}

.screen[data-mode="homescreen"]::before {
  content: "";
  position: absolute;
  inset: -12px;
  z-index: 0;
  background-image: url("assets/wallpaper-mountains.png");
  background-repeat: no-repeat;
  background-position: center 42%;
  background-size: cover;
  filter: blur(10px) saturate(1.03) brightness(0.94);
  transform: scale(1.04);
  pointer-events: none;
}

.screen[data-mode="homescreen"] > * {
  position: relative;
  z-index: 1;
}

.screen[data-mode="homescreen"] .dynamic-island {
  z-index: 20;
}

.screen[data-mode="splash"] {
  background: var(--splash-bg);
}

.screen[data-mode="onboarding"] {
  background: var(--onboard-sage);
}

.screen[data-mode="onboarding"][data-theme="white"] {
  background: #fff;
}

.screen[data-mode="onboarding"][data-theme="mustard"] {
  background: var(--onboard-mustard);
}

.screen[data-mode="homescreen"] .status-bar {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  position: relative;
  z-index: 3;
  padding: 12px 28px 0;
  height: 54px;
}

.screen[data-mode="homescreen"] .home-indicator {
  background: rgba(255, 255, 255, 0.92);
  margin: 4px auto 6px;
}

.screen[data-mode="splash"] .status-bar {
  color: var(--ink);
  position: relative;
  z-index: 2;
}

.screen[data-mode="splash"] .home-indicator {
  background: #111;
}

.screen[data-mode="onboarding"] .status-bar {
  color: var(--ink);
  position: relative;
  z-index: 2;
}

.screen[data-mode="app"] {
  background: var(--bg-wash);
}

.homescreen {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  /* iPhone 14/15 logical layout: ~24–27pt side inset */
  padding: 2px 24px 4px;
  position: relative;
  overflow: hidden;
  background: transparent;
}

.homescreen[hidden],
.splash[hidden],
.onboarding[hidden],
.app-body[hidden],
.tabbar[hidden],
.is-shell-hidden {
  display: none !important;
}

.ios-widgets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 4px 0 18px;
  flex-shrink: 0;
}

.ios-widget {
  border-radius: 22px;
  padding: 12px 14px 12px;
  min-height: 128px;
  height: 128px;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  border: 0.5px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.ios-widget.weather {
  background: linear-gradient(165deg, rgba(110, 180, 239, 0.82), rgba(55, 120, 200, 0.78));
}

.ios-widget.trails {
  background: linear-gradient(165deg, rgba(110, 150, 90, 0.78), rgba(55, 90, 50, 0.82));
}

.w-city,
.w-label {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.95;
}

.w-temp {
  font-size: 34px;
  font-weight: 300;
  line-height: 1.05;
  margin: 2px 0;
}

.w-cond,
.w-meta {
  font-size: 12px;
  opacity: 0.92;
}

.w-title {
  font-size: 17px;
  font-weight: 700;
  margin: 6px 0 4px;
}

.w-range {
  font-size: 11px;
  margin-top: 6px;
  opacity: 0.9;
}

.ios-grid {
  display: grid;
  grid-template-columns: repeat(4, 60px);
  justify-content: space-between;
  row-gap: 10px;
  column-gap: 0;
  width: 100%;
  flex: 0 0 auto;
  align-content: start;
  min-height: 0;
}

.ios-app {
  border: 0;
  background: none;
  padding: 0;
  width: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: default;
  color: #fff;
}

.ios-app.is-lend {
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.ios-app.is-lend:active .ios-icon,
.ios-app.is-launching .ios-icon {
  transform: scale(0.88);
}

.ios-icon {
  width: 60px;
  height: 60px;
  border-radius: 13.4px;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow:
    0 1px 1px rgba(255, 255, 255, 0.22) inset,
    0 6px 14px rgba(0, 0, 0, 0.28);
  transition: transform 180ms ease;
  background: transparent;
  pointer-events: none;
}

.ios-icon svg,
.ios-icon img {
  width: 60px;
  height: 60px;
  display: block;
  object-fit: cover;
}

.ios-icon img {
  width: 100%;
  height: 100%;
}

.ios-name {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  width: 74px;
  max-width: 74px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.ic-lend {
  background: #f6e6d2;
  padding: 0;
}

.ios-search {
  display: grid;
  place-items: center;
  /* Pin Search to the bottom cluster (just above the dock), like iOS 16–26 */
  margin: auto 0 10px;
  flex-shrink: 0;
}

.ios-search-pill {
  min-width: 0;
  width: auto;
  text-align: center;
  padding: 7px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 0.5px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.96);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
}

.ios-dock {
  display: grid;
  grid-template-columns: repeat(4, 60px);
  justify-content: space-between;
  align-items: center;
  width: calc(100% + 16px);
  margin: 0 -8px 0;
  padding: 14px 16px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border: 0.5px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.16);
  flex-shrink: 0;
}

.ios-dock .ios-icon {
  width: 60px;
  height: 60px;
  border-radius: 13.4px;
}

.ios-dock .ios-icon svg,
.ios-dock .ios-icon img {
  width: 60px;
  height: 60px;
  object-fit: cover;
}

.splash {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  background: var(--splash-bg);
  animation: splash-fade 420ms ease;
}

.splash-wordmark {
  width: min(38%, 148px);
  aspect-ratio: 599 / 327;
  display: block;
  background-color: var(--share);
  -webkit-mask: url("assets/splash-wordmark.png") center / contain no-repeat;
  mask: url("assets/splash-wordmark.png") center / contain no-repeat;
  animation: splash-rise 650ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes splash-fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

@keyframes splash-rise {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.onboarding {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}

.onboard-slide {
  flex: 1;
  min-height: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 28px 28px 18px;
  animation: onboard-in 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.onboard-slide.is-on {
  display: flex;
}

.onboard-slide[data-theme="sage"] {
  background: var(--onboard-sage);
}

.onboard-slide[data-theme="white"] {
  background: #fff;
}

.onboard-slide[data-theme="mustard"] {
  background: var(--onboard-mustard);
}

.blob-wrap {
  flex: 1;
  display: grid;
  place-items: center;
  width: 100%;
  padding-top: 24px;
}

.blob {
  overflow: visible;
  transform-origin: center;
  animation: blob-drift 5.5s ease-in-out infinite;
}

.blob-a .blob-ring {
  fill: var(--onboard-cream);
}

.blob-a .blob-core {
  fill: var(--onboard-orange);
}

.blob-b .blob-back {
  fill: var(--onboard-sage-soft);
}

.blob-b .blob-core {
  fill: var(--onboard-sage-deep);
}

.blob-c .blob-ring {
  fill: #f0e6c8;
}

.blob-c .blob-core {
  fill: var(--onboard-cream);
}

.onboard-title {
  text-align: center;
  font-size: 34px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 12px 0 36px;
}

.onboard-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 8px;
}

.onboard-btn {
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 650;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease;
}

.onboard-btn:active {
  transform: scale(0.985);
}

.onboard-btn-light {
  background: #fff;
  color: var(--ink);
}

.onboard-btn-sage {
  background: var(--onboard-sage);
  color: var(--ink);
}

@keyframes onboard-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blob-drift {
  0%,
  100% {
    transform: translateY(0) rotate(-1.5deg) scale(1);
  }
  50% {
    transform: translateY(-10px) rotate(2deg) scale(1.02);
  }
}

@media (max-width: 430px) {
  body {
    background: var(--bg-wash);
  }

  .stage {
    padding: 0;
  }

  .phone {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
  }

  .phone-inner,
  .dynamic-island {
    border-radius: 0;
  }

  .dynamic-island,
  .notch {
    display: none;
  }

  .studio-link {
    display: none;
  }
}

/* Product grid (home feed + browse) */
.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 12px;
  padding-bottom: 20px;
}

.product-grid.list {
  grid-template-columns: minmax(0, 1fr);
}

.product-card {
  min-width: 0;
  text-align: left;
  cursor: pointer;
}

.product-grid.list .product-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
}

.product-grid.list .product-copy {
  margin-top: 2px;
}

.product-media {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  border-radius: var(--organic-square);
  border: 1px solid var(--outline-variant);
  background: var(--surface);
  overflow: hidden;
}

/* 8 soft-rect permutations — subtle; TR slightly more open for save */
.product-media.well-0 {
  border-radius: 20px 12px 20px 18px / 20px 11px 20px 18px;
}
.product-media.well-1 {
  border-radius: 18px 14px 22px 16px / 20px 12px 18px 20px;
}
.product-media.well-2 {
  border-radius: 22px 11px 18px 20px / 18px 10px 22px 16px;
}
.product-media.well-3 {
  border-radius: 19px 13px 21px 17px / 22px 12px 19px 18px;
}
.product-media.well-4 {
  border-radius: 21px 12px 19px 19px / 17px 11px 21px 19px;
}
.product-media.well-5 {
  border-radius: 17px 14px 21px 18px / 20px 13px 18px 20px;
}
.product-media.well-6 {
  border-radius: 20px 13px 19px 16px / 19px 12px 20px 15px;
}
.product-media.well-7 {
  border-radius: 18px 12px 20px 19px / 21px 11px 17px 18px;
}

.product-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: var(--surface);
}

.browse-head {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  background: var(--bg);
  padding-bottom: 8px;
}

.browse-crumb {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  margin-top: 6px;
}

.browse-back,
.browse-crumb-home {
  border: 0;
  background: none;
  padding: 0;
  color: var(--ink);
  cursor: pointer;
}

.browse-back {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  margin-left: -4px;
  color: var(--cocoa);
}

.browse-crumb-home {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.browse-crumb-sep {
  color: var(--cocoa-line);
  font-size: 16px;
  line-height: 1;
}

.browse-crumb-here {
  font-size: 14px;
  font-weight: 650;
  color: var(--ink);
}

.browse-intro {
  padding: 16px 18px 0;
}

.browse-stage {
  position: relative;
  min-height: 0;
}

#view-browse.has-scene.is-on {
  display: flex;
  flex-direction: column;
  overflow: visible;
}

#view-browse.has-scene.is-on::after {
  display: none;
}

#view-browse.has-scene .browse-stage {
  flex: 1;
  width: calc(100% + 36px);
  margin-left: -18px;
  margin-right: -18px;
}

#view-browse.has-scene .browse-scene {
  display: block;
  position: absolute;
  inset: 0 0 -20px;
  z-index: 0;
  pointer-events: none;
  border-radius: 28px 28px 0 0;
  background-color: var(--scene-fill, transparent);
  background-image: none;
}

.browse-scene[hidden] {
  display: none !important;
}

#view-browse.has-scene .browse-scroll {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: auto;
  scrollbar-width: none;
}

#view-browse.has-scene .browse-scroll::-webkit-scrollbar {
  display: none;
}

#view-browse.has-scene #item-grid {
  gap: 0 12px;
  padding: 0 18px 100px;
}

.borrowed-banner {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  max-width: calc(100% - 40px);
  overflow: hidden;
  text-overflow: ellipsis;
  background: #e7f1fa;
  color: var(--borrow-mark);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.2;
  padding: 4px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

.save-btn {
  position: absolute;
  top: 2px;
  right: 2px;
  z-index: 2;
  width: var(--touch);
  height: var(--touch);
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: transparent;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
}

.save-btn .save-mark {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.product-media .save-btn {
  top: 0;
  right: 0;
}

.product-media .save-btn .save-mark {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
}

.product-media .save-btn.is-on .save-mark-blob {
  width: 9px;
  height: 9px;
}

.save-mark-blob {
  width: 0;
  height: 0;
  background: #2f5d3a;
  border-radius: 42% 58% 48% 52% / 52% 42% 58% 48%;
  opacity: 0;
  transform: scale(0.4);
  transition: width 0.18s ease, height 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.save-btn.is-on .save-mark-blob {
  width: 11px;
  height: 11px;
  opacity: 1;
  transform: scale(1);
}

.product-copy {
  margin-top: var(--space-media-text);
  padding-bottom: var(--space-stack-after);
  display: grid;
  gap: var(--space-text-stack);
  min-width: 0;
}

.product-title {
  margin: 0;
  font-size: var(--type-title-size);
  font-weight: var(--type-title-weight);
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: var(--type-title-lh);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-owner,
.product-meta {
  margin: 0;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-owner {
  font-size: var(--type-sub-size);
  font-weight: var(--type-sub-weight);
  line-height: var(--type-sub-lh);
}

.product-meta {
  font-size: var(--type-meta-size);
  font-weight: var(--type-meta-weight);
  line-height: var(--type-meta-lh);
}

.empty-inline {
  grid-column: 1 / -1;
  font-size: 13px;
  color: #8a8680;
  padding: 4px 2px 8px;
}

.chrome.is-detail-hidden,
.chrome[hidden] {
  display: none !important;
}

/* Product detail */
.detail-view {
  display: none;
  flex-direction: column;
  background: var(--bg);
  padding: 0 !important;
  position: relative;
}

.detail-view.is-on {
  display: flex;
  overflow: hidden;
}

.detail-top {
  position: absolute;
  top: 8px;
  left: 10px;
  right: 10px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detail-top-actions {
  display: flex;
  gap: 4px;
}

.detail-icon-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.detail-icon-btn.save-btn {
  position: static;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.detail-icon-btn.save-btn.is-on .save-mark-blob {
  width: 14px;
  height: 14px;
}

.detail-hero {
  background: var(--surface);
  min-height: 260px;
  display: grid;
  place-items: center;
  padding: 48px 28px 24px;
  flex-shrink: 0;
}

.detail-hero img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  display: block;
  background: var(--surface);
}

.detail-body {
  padding: 18px 18px 16px;
  flex: 1;
  overflow: auto;
  min-height: 0;
}

.detail-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #111;
}

.detail-spec {
  margin-top: 6px;
  font-size: 14px;
  color: #8a8680;
}

.detail-divider {
  height: 1px;
  background: #e8e4dc;
  margin: 14px 0;
}

.detail-lender {
  width: 100%;
  border: 0;
  background: none;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.detail-lender .avatar {
  width: 42px;
  height: 42px;
  font-size: 13px;
  background: #9a9a9a;
  color: #fff;
  flex-shrink: 0;
}

.detail-lender > div {
  flex: 1;
  min-width: 0;
}

.detail-lender-chevron {
  flex-shrink: 0;
  color: #b0aba3;
}

.detail-lender-name {
  font-size: 15px;
  font-weight: 700;
  color: #111;
}

.detail-lender-meta {
  margin-top: 2px;
  font-size: 13px;
  color: #8a8680;
}

.detail-row {
  width: 100%;
  border: 0;
  background: none;
  padding: 2px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  color: #111;
}

.detail-row strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
}

.detail-row small {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  color: #8a8680;
}

.detail-rules h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.detail-rules ul {
  margin: 0;
  padding-left: 18px;
  color: #8a8680;
  font-size: 14px;
  line-height: 1.55;
}

.detail-footer {
  flex-shrink: 0;
  padding: 10px 16px 12px;
  background: #fff;
  border-top: 1px solid var(--surface-container);
}

.detail-book-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.detail-dates-btn {
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  color: #111;
  min-width: 0;
}

.detail-dates-btn strong {
  display: block;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.detail-dates-btn small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #8a8680;
  font-weight: 500;
}

#detail-book:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.detail-message-link {
  display: block;
  width: 100%;
  margin-top: 10px;
  border: 0;
  background: none;
  color: #111;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 2px 0;
  text-align: center;
}

.book-sheet {
  position: absolute;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.book-sheet[hidden] {
  display: none !important;
}

.loops-cal-sheet {
  position: absolute;
  inset: 0;
  z-index: 46;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.loops-cal-sheet[hidden] {
  display: none !important;
}

.loops-cal-panel {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 22px 22px 0 0;
  padding: 8px 16px 28px;
  max-height: 86%;
  overflow: auto;
}

.loops-cal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.loops-cal-top h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.loops-cal-sub {
  margin: 2px 0 14px;
  font-size: 13px;
  color: #6b6760;
}

.loops-cal-month {
  border: 1px solid #e4dfd6;
  border-radius: 16px;
  padding: 12px 10px 10px;
  background: var(--surface);
}

.loops-cal-month-label {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.loops-cal-weekdays,
.loops-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.loops-cal-weekdays {
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #a8a39b;
}

.loops-cal-grid > * {
  aspect-ratio: 1;
  width: 100%;
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: #111;
  border-radius: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.loops-cal-grid .is-muted {
  color: #c5c0b8;
  font-weight: 500;
  pointer-events: none;
}

.loops-cal-day-num {
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.loops-cal-day-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--borrow-mark);
  flex: 0 0 auto;
}

.loops-cal-day-dot.is-receive {
  background: var(--accent-sage);
}

.loops-cal-day-dot.is-pickup {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--accent-sage);
}

.loops-cal-grid .is-today {
  box-shadow: inset 0 0 0 1.5px #111;
}

.loops-cal-grid button.has-event {
  cursor: pointer;
}

.loops-cal-grid button.has-event:active {
  background: rgba(0, 0, 0, 0.04);
}

.loops-cal-grid button.is-selected {
  background: #e7f1fa;
  box-shadow: inset 0 0 0 1.5px var(--borrow-mark);
}

.loops-cal-grid button.is-selected.is-receive,
.loops-cal-grid button.is-selected.is-pickup {
  background: #e7f0e6;
  box-shadow: inset 0 0 0 1.5px var(--accent-sage);
}

.loops-cal-grid button.is-selected.is-today {
  box-shadow: inset 0 0 0 1.5px var(--borrow-mark);
}

.loops-cal-grid button.is-selected.is-today.is-receive,
.loops-cal-grid button.is-selected.is-today.is-pickup {
  box-shadow: inset 0 0 0 1.5px var(--accent-sage);
}

.loops-cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 12px 2px 4px;
  font-size: 11px;
  color: #6b6760;
}

.loops-cal-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
  vertical-align: middle;
  background: var(--borrow-mark);
}

.loops-cal-legend i.is-receive {
  background: var(--accent-sage);
}

.loops-cal-legend i.is-pickup {
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--accent-sage);
}

.loops-cal-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.loops-cal-row {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  align-items: start;
  border: 1px solid #e4dfd6;
  border-radius: 14px;
  padding: 11px 12px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  width: 100%;
}

.loops-cal-row.is-dimmed {
  opacity: 0.38;
}

.loops-cal-row.is-focused {
  outline: 1.5px solid #2e7f96;
  outline-offset: 1px;
}

.loops-cal-row.is-return {
  background: #e7f1fa;
  border-color: #b9d3ea;
}

.loops-cal-row.is-receive,
.loops-cal-row.is-pickup {
  background: #e7f0e6;
  border-color: #c5d6c4;
}

.loops-cal-when {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #5c5852;
}

.loops-cal-row strong {
  display: block;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.loops-cal-row small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #6b6760;
}

.book-sheet-panel {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 22px 22px 0 0;
  padding: 8px 18px 28px;
}

.book-sheet-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a8680;
  margin-top: 6px;
}

.book-sheet-panel h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 4px 0 8px;
}

.book-sheet-copy {
  font-size: 14px;
  line-height: 1.4;
  color: #5c5852;
  margin-bottom: 14px;
}

.book-sheet-summary {
  border: 1px solid var(--surface-container);
  border-radius: 14px;
  padding: 4px 14px;
  margin-bottom: 16px;
  background: var(--surface);
}

.book-sheet-summary div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--surface-container);
  font-size: 13px;
}

.book-sheet-summary div:last-child {
  border-bottom: 0;
}

.book-sheet-summary span {
  color: #8a8680;
  flex-shrink: 0;
}

.book-sheet-summary strong {
  text-align: right;
  font-weight: 650;
}

.btn-dark,
.apply-btn,
.request-accept {
  position: relative;
  border: 0;
  background: var(--share-soft);
  color: #1c1a17;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
  border-radius: 18px;
  padding: 12px 16px 16px 28px;
  min-height: 48px;
  text-align: left;
  cursor: pointer;
}

.btn-dark::before,
.apply-btn::before,
.request-accept::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 4px;
  height: 16px;
  margin-top: -11px;
  border-radius: 2px;
  background: var(--share);
}

.btn-dark::after,
.apply-btn::after,
.request-accept::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 7px;
  height: 3px;
  border-radius: 1px;
  background: var(--share);
}

.btn-dark.is-secondary {
  background: #fff;
}

.btn-dark.is-secondary::before {
  height: 14px;
  margin-top: -10px;
  background: var(--cocoa);
}

.btn-dark.is-secondary::after {
  height: 2px;
  background: var(--cocoa-line);
}

.btn-dark.wide {
  width: 100%;
}

.detail-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.text-link {
  border: 0;
  background: none;
  color: #111;
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 0;
}

.app-body.showing-detail,
.app-body.showing-profile,
.app-body.showing-lend,
.app-body.showing-chat,
.app-body.showing-community,
.app-body.showing-messages,
.app-body.showing-saved,
.app-body.showing-requests,
.app-body.showing-request-flow {
  padding-left: 0;
  padding-right: 0;
}

.tabbar.is-covered {
  visibility: hidden;
  pointer-events: none;
}

body.is-wireframe .phone-inner .tabbar::before {
  display: none;
}

body.is-wireframe .phone-inner .tabbar button.active {
  background: #e8e8e8 !important;
  box-shadow: none !important;
}

/* Borrow calendar */
.calendar-sheet {
  position: absolute;
  inset: 0;
  z-index: 40;
  background: #fff;
  display: flex;
  flex-direction: column;
  border-radius: inherit;
  overflow: hidden;
}

.calendar-sheet[hidden] {
  display: none !important;
}

.calendar-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  padding-top: 8px;
}

.calendar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px 10px;
}

.cal-close {
  border: 0;
  background: none;
  padding: 0;
  color: #111;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.cal-clear {
  border: 0;
  background: none;
  color: #111;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 0 10px 8px;
  border-bottom: 1px solid var(--surface-container);
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #b0aba3;
}

.calendar-scroll {
  flex: 1;
  overflow: auto;
  padding: 8px 10px 20px;
  scrollbar-width: none;
}

.calendar-scroll::-webkit-scrollbar {
  display: none;
}

.cal-month {
  margin-bottom: 22px;
}

.cal-month h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 10px 6px 12px;
  color: #111;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px 0;
  text-align: center;
}

.cal-pad {
  height: 42px;
}

.cal-grid button {
  height: 42px;
  border: 0;
  background: transparent;
  border-radius: 50%;
  font-size: 15px;
  color: #111;
  cursor: pointer;
  position: relative;
}

.cal-grid button.in {
  background: #e9e7e2;
  border-radius: 0;
}

.cal-grid button.edge {
  background: #c4a574;
  color: #fff;
  font-weight: 600;
  border-radius: 50%;
  z-index: 1;
}

.calendar-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 18px;
  border-top: 1px solid var(--surface-container);
  background: #fff;
}

.cal-range {
  font-size: 16px;
  font-weight: 600;
  color: #111;
}

/* Profile */
.profile-view {
  background: var(--bg);
  padding: 4px 16px 24px !important;
}

.profile-view.is-on {
  display: block;
}

.profile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  margin-bottom: 8px;
}

.profile-handle {
  border: 0;
  background: none;
  padding: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  cursor: pointer;
}

.profile-top-actions {
  display: flex;
  gap: 2px;
  margin-left: auto;
}

.profile-icon-btn {
  width: 36px;
  height: 36px;
  border: 0;
  background: none;
  color: #111;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.profile-ig-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 12px;
}

.profile-ig-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.profile-stat {
  border: 0;
  background: none;
  padding: 4px 0;
  min-height: var(--touch);
  display: grid;
  justify-items: start;
  align-content: center;
  text-align: left;
  gap: 2px;
  cursor: pointer;
  color: var(--ink);
}

.profile-stat strong {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
}

.profile-stat span {
  font-size: var(--type-meta-size);
  font-weight: 400;
  color: var(--muted);
}

.profile-ig-copy {
  margin-top: 12px;
  display: grid;
  gap: var(--space-text-stack);
}

.profile-display-name {
  margin: 0;
  font-size: var(--type-title-size);
  font-weight: var(--type-title-weight);
  line-height: var(--type-title-lh);
}

.profile-bio-line {
  margin: 0;
  font-size: var(--type-sub-size);
  font-weight: var(--type-sub-weight);
  line-height: var(--type-sub-lh);
  color: var(--muted);
}

.profile-identity {
  margin-top: 4px;
}

.profile-avatar-wrap {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #e8e4dc;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}

.profile-n-badge {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #7a9b52;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.profile-reciprocity {
  margin-top: 16px;
}

.profile-reciprocity-frame {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--outline-variant);
  border-radius: 16px;
  background: var(--surface-container);
}

.profile-reciprocity.is-nudge .profile-reciprocity-frame {
  background: #fff6ee;
  border-color: #efd2b4;
}

.profile-reciprocity-copy {
  min-width: 0;
  display: grid;
  justify-items: start;
  gap: 4px;
}

.profile-reciprocity-title {
  margin: 0;
  font-size: var(--type-title-size);
  font-weight: var(--type-title-weight);
  line-height: var(--type-title-lh);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

.profile-reciprocity.is-nudge .profile-reciprocity-title {
  color: #8a5a24;
}

.circle-even-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.circle-stat {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  border-radius: 12px;
  background: var(--surface-container);
}

.circle-stat.is-lend {
  background: #e7f0e6;
}

.circle-stat.is-borrow {
  background: #e7f1fa;
}

.circle-stat.is-lead {
  box-shadow: inset 0 0 0 1.5px currentColor;
}

.circle-stat.is-lend.is-lead {
  color: #2f5d3a;
}

.circle-stat.is-borrow.is-lead {
  color: var(--borrow-mark);
}

.circle-stat-swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-bottom: 2px;
}

.circle-stat.is-lend .circle-stat-swatch {
  background: var(--accent-sage);
}

.circle-stat.is-borrow .circle-stat-swatch {
  background: var(--borrow-mark);
}

.circle-stat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #6a6560;
}

.circle-stat-num {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #111;
}

.circle-stat.is-lend .circle-stat-num {
  color: #2f5d3a;
}

.circle-stat.is-borrow .circle-stat-num {
  color: var(--borrow-mark);
}

.profile-reciprocity-caption {
  margin: 0;
  font-size: var(--type-meta-size);
  font-weight: var(--type-meta-weight);
  line-height: var(--type-meta-lh);
  color: var(--muted);
  text-align: left;
}

.profile-reciprocity-nudge {
  position: relative;
  border: 0;
  background: var(--share-soft);
  color: #1c1a17;
  margin-top: 8px;
  padding: 8px 12px 12px 22px;
  min-height: 40px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}

.profile-reciprocity-nudge::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 3px;
  height: 12px;
  margin-top: -8px;
  border-radius: 2px;
  background: var(--share);
}

.profile-reciprocity-nudge::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 5px;
  height: 2px;
  border-radius: 1px;
  background: var(--share);
}

.profile-reciprocity-nudge[hidden] {
  display: none;
}

/* Keep the circle even — dual-color share ring */
.circle-even {
  --lend: var(--accent-sage);
  --lend-track: #d5e3d4;
  --borrow: var(--borrow-mark);
  --borrow-track: #d3e2f2;
  position: relative;
  width: 96px;
  height: 96px;
  flex-shrink: 0;
}

.circle-even.is-compact {
  width: 48px;
  height: 48px;
}

.circle-even-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.circle-even-track,
.circle-even-fill,
.circle-even-ghost {
  fill: none;
  stroke-linecap: butt;
  stroke-width: 10;
}

.circle-even.is-compact .circle-even-track,
.circle-even.is-compact .circle-even-fill,
.circle-even.is-compact .circle-even-ghost {
  stroke-width: 8;
}

.circle-even-track {
  stroke: #ebe7e0;
}

.circle-even-ghost.is-lend {
  stroke: var(--lend-track);
}

.circle-even-ghost.is-borrow {
  stroke: var(--borrow-track);
}

.circle-even-fill.is-lend {
  stroke: var(--lend);
  transition: stroke-dasharray 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    stroke-dashoffset 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.circle-even-fill.is-borrow {
  stroke: var(--borrow);
  transition: stroke-dasharray 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    stroke-dashoffset 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.circle-even-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  text-align: center;
}

.circle-even-center strong {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111;
}

.circle-even.is-balanced .circle-even-center strong {
  color: #2f5d3a;
}

.circle-even.is-compact .circle-even-center {
  display: none;
}

.home-reciprocity-nudge {
  position: relative;
  margin: 0 0 10px;
}

.home-reciprocity-nudge[hidden] {
  display: none;
}

.home-reciprocity-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 14px;
  background: var(--surface-container);
  padding: 10px 40px 10px 10px;
  text-align: left;
  cursor: pointer;
  color: #111;
}

.home-reciprocity-btn .circle-even {
  flex-shrink: 0;
}

.home-rec-pill.is-lend {
  color: #2f5d3a;
  font-weight: 700;
}

.home-rec-pill.is-borrow {
  color: var(--borrow-mark);
  font-weight: 700;
}

.home-reciprocity-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.home-reciprocity-text strong {
  font-size: 14px;
  font-weight: 700;
}

.home-reciprocity-text small {
  font-size: 12px;
  color: #6a6560;
}

.home-reciprocity-chevron {
  font-size: 18px;
  color: #9a9590;
}

.home-reciprocity-dismiss {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #8a8580;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.lend-row-stack {
  align-items: flex-start;
}

.lend-row-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  text-align: left;
}

.lend-row-main small {
  font-size: 12px;
  font-weight: 500;
  color: #8a8580;
}

.lend-rule-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  text-align: left;
  min-width: 0;
}

.lend-rule-copy small {
  font-size: 13px;
  font-weight: 500;
  color: #8a8580;
}

.lend-care-notes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 4px 8px;
}

.lend-care-notes textarea {
  width: 100%;
  border: 1px solid var(--outline-variant);
  border-radius: 12px;
  padding: 12px;
  font: inherit;
  font-size: 14px;
  resize: vertical;
  min-height: 72px;
  background: var(--surface);
  color: #111;
}

.lend-care-notes textarea::placeholder {
  color: #a39e96;
}

.profile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 44px;
  gap: 8px;
  margin-top: 14px;
}

.profile-pill {
  border: 0;
  background: #efefef;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  min-height: 36px;
  padding: 8px;
  cursor: pointer;
}

.profile-discover {
  margin-top: 16px;
}

.profile-discover[hidden] {
  display: none;
}

.profile-discover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.profile-discover-head h3 {
  margin: 0;
  font-size: var(--type-title-size);
  font-weight: var(--type-title-weight);
}

.profile-discover-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.profile-discover-rail::-webkit-scrollbar {
  display: none;
}

.discover-card {
  flex: 0 0 142px;
  position: relative;
  border: 1px solid var(--outline-variant);
  border-radius: 12px;
  padding: 14px 10px 12px;
  background: #fff;
  text-align: center;
}

.discover-dismiss {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 28px;
  height: 28px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
}

.discover-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 8px;
  display: grid;
  place-items: center;
  background: #1c1610;
  color: #f6f1e8;
  font-size: 16px;
  font-weight: 700;
}

.discover-card strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.discover-card small {
  display: block;
  margin: 4px 0 10px;
  font-size: 11px;
  line-height: 1.3;
  color: var(--muted);
}

.discover-follow {
  width: 100%;
  min-height: 32px;
  border: 0;
  border-radius: 8px;
  background: #3897f0;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.discover-follow.is-on {
  background: #efefef;
  color: var(--ink);
}

.profile-edit-view,
.profile-share-view,
.find-view {
  background: #fff;
  padding: 4px 16px 24px !important;
}

.find-search {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(118, 118, 128, 0.12);
  color: #3a3a3c;
}

.find-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 16px;
}

.find-search input::placeholder {
  color: var(--muted);
}

.find-kicker {
  margin: 16px 2px 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.find-empty {
  margin: 28px 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.find-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  animation: find-in 0.26s cubic-bezier(0.2, 1.3, 0.32, 1) both;
}

@keyframes find-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.find-main {
  min-width: 0;
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 0;
  cursor: pointer;
}

.find-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e7e4df;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.find-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.find-name {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.find-degree {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: #2f5d3a;
}

.find-degree.is-2 {
  color: #8a5a24;
}

.find-degree.is-3,
.find-degree.is-4 {
  color: var(--muted);
}

.find-line {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
}

.find-add {
  border: 0;
  background: #3897f0;
  color: #fff;
  border-radius: 8px;
  min-height: 32px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.find-add.is-on {
  background: #efefef;
  color: var(--ink);
}

.find-add:active,
.find-main:active {
  transform: scale(0.97);
}

.profile-edit-done {
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.profile-edit-avatar {
  display: grid;
  place-items: center;
  gap: 8px;
  margin: 18px 0 20px;
}

.profile-edit-avatar img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-edit-field {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  font-size: var(--type-meta-size);
  color: var(--muted);
}

.profile-edit-field input,
.profile-edit-field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--outline-variant);
  padding: 10px 0;
  font: inherit;
  font-size: var(--type-title-size);
  color: var(--ink);
  background: transparent;
  outline: none;
  resize: none;
}

.profile-share-card {
  margin: 20px 0;
  padding: 24px 16px;
  border: 1px solid var(--outline-variant);
  border-radius: 16px;
  text-align: center;
}

.profile-share-card img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-share-name {
  margin: 12px 0 2px;
  font-size: 20px;
  font-weight: 700;
}

.profile-share-handle,
.profile-share-link {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-sub-size);
}

.profile-share-link {
  margin-top: 8px;
}

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

.profile-share-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--touch);
  padding: 0 4px;
  border: 0;
  background: none;
  font-size: var(--type-title-size);
  color: var(--ink);
  cursor: pointer;
}

.profile-pill-icon {
  display: grid;
  place-items: center;
  padding: 0;
}

.profile-banners {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.profile-banners[hidden] {
  display: none;
}

.profile-banner {
  position: relative;
  width: 100%;
  min-height: 148px;
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  padding: 16px;
  text-align: left;
  color: #fffaf6;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(28, 22, 18, 0.04) 28%, rgba(28, 22, 18, 0.72)),
    var(--banner) center / cover no-repeat;
  display: flex;
  align-items: flex-end;
}

.profile-banner-copy {
  display: grid;
  grid-template-columns: 4px 1fr;
  gap: 10px;
  align-items: stretch;
  max-width: 100%;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.profile-banner-mark {
  width: 4px;
  border-radius: 2px;
  background: var(--borrow-mark);
}

.profile-banner.is-lend .profile-banner-mark {
  background: var(--accent-sage);
}

.profile-banner-lines strong {
  display: block;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.profile-banner-lines span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 250, 246, 0.9);
}

.profile-loop-rest {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface-container);
  border-radius: 22px;
  padding: 8px;
}

.profile-loop-card {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 0;
  border-radius: 16px;
  background: #fff;
  padding: 8px 12px 8px 14px;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}

.profile-loop-card::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 2px;
  background: var(--borrow-mark);
}

.profile-loop-card.is-lend::before {
  background: var(--accent-sage);
}

.profile-loop-photo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.profile-loop-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
}

.profile-loop-photo.is-tight img {
  transform: scale(2.8);
}

.profile-loop-copy {
  min-width: 0;
}

.profile-loop-copy strong {
  display: block;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 18px;
  border-bottom: 1px solid var(--surface-container);
}

.profile-mode-tab {
  border: 0;
  background: none;
  padding: 12px 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}

.profile-mode-tab.is-on {
  color: var(--ink);
  border-bottom-color: var(--borrow-mark);
}

.profile-mode-tab[data-profile-mode="lending"].is-on {
  border-bottom-color: var(--accent-sage);
}

.profile-role-mark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--borrow-mark);
  flex-shrink: 0;
}

.profile-mode-tab[data-profile-mode="lending"] .profile-role-mark {
  background: var(--accent-sage);
}

.profile-tab-count {
  font-size: 13px;
  font-weight: 650;
  color: var(--borrow-mark);
}

.profile-mode-tab[data-profile-mode="lending"] .profile-tab-count {
  color: var(--accent-sage);
}

.profile-shelf-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 8px;
}

.profile-history {
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.profile-history.is-on {
  color: var(--ink);
}

.profile-add {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--share);
  color: #fffaf6;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
}

.profile-add:active {
  transform: scale(0.94);
}

.shelf-card .product-meta.is-due {
  color: var(--borrow-mark);
  font-weight: 650;
}

.shelf-rules {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-yin {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid #111;
  background: linear-gradient(90deg, #111 50%, #fff 50%);
  flex-shrink: 0;
}

.profile-panel {
  padding-top: 14px;
}

.profile-panel .btn-dark.wide {
  margin-bottom: 12px;
}

.profile-panel .profile-cta {
  padding: 14px 16px;
}

.profile-panel .profile-cta::before,
.profile-panel .profile-cta::after {
  content: none;
}

.profile-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.profile-filter {
  border: 1px solid var(--outline-variant);
  background: #fff;
  color: #111;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  padding: 9px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.profile-filter.is-on {
  border-color: transparent;
  background: #efefef;
}

.profile-shelf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
  padding-bottom: 12px;
}

.shelf-card {
  text-align: left;
  cursor: pointer;
}

.shelf-media {
  aspect-ratio: 1;
  border-radius: 10px;
  border: 1px solid var(--outline-variant);
  background: #fff;
  overflow: hidden;
}

.shelf-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
}

.shelf-card .product-copy {
  margin-top: var(--space-media-text);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Lend new item flow */
.lend-view,
.lend-rules-view {
  background: #fff;
  padding: 0 16px 28px !important;
}

.lend-view.is-on,
.lend-rules-view.is-on {
  display: flex;
  flex-direction: column;
}

.lend-nav {
  display: grid;
  grid-template-columns: 72px 1fr 72px;
  align-items: center;
  min-height: 44px;
  margin-bottom: 10px;
}

.lend-nav-title {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111;
}

.lend-nav-btn {
  border: 0;
  background: none;
  color: #111;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 0;
  cursor: pointer;
  text-align: left;
}

.lend-nav-btn.is-publish {
  text-align: right;
  color: #b0aba3;
  font-weight: 600;
}

.lend-nav-btn.is-publish:not(:disabled) {
  color: #111;
}

.lend-nav-btn:disabled {
  cursor: default;
}

.lend-nav-icon {
  width: 36px;
  height: 36px;
  border: 0;
  background: none;
  color: #111;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.lend-nav-spacer {
  width: 36px;
}

.lend-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  overflow: auto;
  padding-bottom: 12px;
}

.lend-cat-pill {
  align-self: flex-start;
  border: 1px solid var(--outline-variant);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #111;
  cursor: pointer;
}

.lend-cat-icon {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 25%;
  overflow: hidden;
  flex-shrink: 0;
}

.lend-cat-icon img,
.lend-cat-row-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.09);
  transform-origin: center;
  display: block;
}

.lend-cat-icon .cat-icon,
.lend-cat-row-icon .cat-icon {
  width: 100%;
  height: 100%;
}

.lend-field {
  display: block;
  width: 100%;
}

.lend-field input,
.lend-select {
  width: 100%;
  border: 1px solid var(--outline-variant);
  background: #fff;
  border-radius: 12px;
  padding: 14px 14px;
  font-size: 15px;
  color: #111;
  outline: none;
}

.lend-field input::placeholder {
  color: #b0aba3;
}

.lend-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  text-align: left;
}

.lend-select .is-placeholder,
#lend-subcat-label.is-placeholder,
#lend-season-label.is-placeholder,
#lend-capacity-label.is-placeholder {
  color: #b0aba3;
}

.lend-extra {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lend-extra[hidden] {
  display: none !important;
}

.lend-photo {
  width: 100%;
  min-height: 168px;
  border: 1px solid var(--outline-variant);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  display: grid;
  place-items: center;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  padding: 0;
}

.lend-photo img {
  width: 100%;
  height: 100%;
  min-height: 168px;
  object-fit: contain;
  display: block;
  background: var(--surface);
}

.lend-row {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--surface-container);
  background: none;
  padding: 16px 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 600;
  color: #111;
  cursor: pointer;
}

.lend-row + .lend-row {
  border-top: 1px solid var(--surface-container);
  margin-top: -12px;
}

.lend-cat-sheet .lend-cat-panel,
.lend-picker-sheet .lend-picker-panel {
  max-height: 72%;
  padding-bottom: 28px;
}

.lend-sheet-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 4px 4px 14px;
}

.lend-sheet-top {
  margin-top: 4px;
  margin-bottom: 2px;
}

.lend-sheet-top .lend-sheet-title {
  margin: 0;
}

.lend-cat-list {
  display: flex;
  flex-direction: column;
}

.lend-cat-row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--surface-container);
  background: none;
  padding: 14px 6px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  font-weight: 500;
  color: #111;
  cursor: pointer;
  text-align: left;
}

.lend-cat-row:last-child {
  border-bottom: 0;
}

.lend-cat-row-icon {
  width: 28px;
  height: 28px;
  display: block;
  border-radius: 25%;
  overflow: hidden;
  flex-shrink: 0;
}

.lend-rules-intro {
  font-size: 13px;
  line-height: 1.4;
  color: #8a8680;
  margin: 4px 2px 16px;
}

.lend-rules-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lend-rule-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--surface-container);
  color: #111;
}

.lend-rule-row.is-btn {
  width: 100%;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.lend-rule-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.lend-rule-label {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
}

.lend-toggle {
  width: 52px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: var(--share-off);
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  transition: background 0.2s ease;
}

.lend-toggle::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fffaf6;
  box-shadow: 0 1px 2px rgba(90, 42, 28, 0.28);
  transition: transform 0.2s ease;
}

.lend-toggle.is-on {
  background: var(--share);
}

.lend-toggle.is-on::after {
  transform: translateX(22px);
}

.lend-add-rule {
  margin-top: 22px;
  width: 100%;
  border: 1px solid var(--outline-variant);
  background: #fff;
  border-radius: 12px;
  padding: 14px 12px;
  font-size: 15px;
  font-weight: 600;
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.lend-add-rule span {
  font-size: 18px;
  line-height: 1;
}

/* Home request alert */
.home-request-alert {
  margin: 8px 0 12px;
}

.home-request-alert[hidden] {
  display: none !important;
}

.home-request-btn {
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: var(--share);
  color: #fffaf6;
  padding: 12px 12px;
  display: grid;
  grid-template-columns: 10px 1fr 14px;
  gap: 10px;
  align-items: center;
  text-align: left;
  cursor: pointer;
}

.home-request-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fffaf6;
  box-shadow: 0 0 0 4px rgba(255, 250, 246, 0.28);
}

.home-request-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.home-request-text small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  opacity: 0.72;
}

.home-request-chevron {
  font-size: 20px;
  opacity: 0.7;
}

.tab-icon {
  position: relative;
}

.tab-badge {
  position: absolute;
  top: -2px;
  right: -4px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 99px;
  background: var(--share);
  color: #fffaf6;
  font-size: 9px;
  font-weight: 800;
  display: grid;
  place-items: center;
  line-height: 1;
}

.tab-badge[hidden] {
  display: none !important;
}

/* Requests */
.requests-view,
.messages-view {
  background: #fff;
  padding: 4px 16px 24px !important;
}

.messages-view {
  background: var(--bg);
  padding: 8px 16px 24px !important;
}

.requests-view.is-on {
  display: block;
}

.requests-top {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  margin-bottom: 8px;
}

.requests-top h1 {
  text-align: center;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.requests-intro {
  font-size: 13px;
  color: #8a8680;
  line-height: 1.4;
  margin-bottom: 14px;
}

.messages-top {
  margin-bottom: 10px;
}

.messages-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 4px;
}

.messages-sub {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.messages-list {
  display: grid;
  gap: 6px;
  background: var(--surface-container);
  border-radius: 22px;
  padding: 10px;
}

.messages-kicker {
  margin: 6px 4px 2px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--muted);
}

.messages-kicker:first-child {
  margin-top: 2px;
}

.message-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  border: 0;
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.message-row.is-unread strong {
  font-weight: 750;
}

.message-avatar {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-container-high);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.message-row.is-unread .message-avatar::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--share);
  box-shadow: 0 0 0 2px #fff;
}

.message-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.message-copy strong {
  font-size: var(--type-title-size);
  font-weight: var(--type-title-weight);
  line-height: var(--type-title-lh);
}

.message-copy small {
  color: var(--muted);
  font-size: var(--type-sub-size);
  font-weight: var(--type-sub-weight);
  line-height: var(--type-sub-lh);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.requests-list,
.profile-requests {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-requests:not(:empty) {
  margin-bottom: 14px;
}

.profile-requests-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.profile-requests-head h3 {
  font-size: 15px;
  font-weight: 800;
}

.request-card {
  border: 1px solid #e4dfd6;
  border-radius: 14px;
  background: var(--surface);
  padding: 12px;
}

.request-card-top {
  display: grid;
  grid-template-columns: 36px 1fr 48px;
  gap: 10px;
  align-items: start;
}

.request-copy {
  min-width: 0;
}

.request-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: #9a9a9a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.request-name-link {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.request-network {
  margin-top: 2px !important;
  font-size: 12px !important;
  color: #6b8f4e !important;
  font-weight: 600 !important;
}

.request-copy p {
  font-size: 13px;
  color: #5c5852;
}

.request-item-line {
  font-weight: 750 !important;
  color: #111 !important;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.request-dates {
  margin-top: 2px;
  font-size: 12px !important;
  color: #8a8680 !important;
}

.request-thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--surface-container);
}

.request-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.request-decline,
.request-accept {
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
}

.request-decline {
  border: 0;
  background: transparent;
  color: #6b6560;
  min-height: 48px;
  border-radius: 18px;
}

.request-status {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #8a8680;
}

.request-status.is-accepted {
  color: #5f7d3a;
}

/* Saved tab */
.saved-view {
  background: var(--bg);
  padding: 8px 16px 24px !important;
}

.saved-view.is-on {
  display: block;
}

.saved-top {
  margin-bottom: 10px;
}

.saved-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 4px;
}

.saved-count {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.saved-trips-block {
  margin: 4px 0 16px;
  background: var(--surface-container);
  border-radius: 22px;
  padding: 12px 0 10px 12px;
}

.saved-trips-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-right: 12px;
}

.saved-trips-label {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.saved-all-head {
  margin: 6px 0 12px;
}

.saved-trips-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0;
  padding: 4px 12px 4px 0;
}

.saved-trips-rail::-webkit-scrollbar {
  display: none;
}

.trip-chip {
  flex: 0 0 128px;
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.trip-chip-cover {
  width: 128px;
  height: 96px;
  border-radius: var(--organic-square);
  overflow: hidden;
  border: 1px solid var(--outline-variant);
  background: var(--surface-container);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1px;
}

.trip-chip-cover.is-empty,
.trip-chip-cover.is-single,
.trip-chip-cover.is-splash {
  display: block;
  background: var(--surface-container);
}

.trip-chip-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  display: block;
}

.trip-chip-cover.is-splash img,
.trip-chip-cover.is-single.is-splash img {
  object-fit: cover;
  background: #1a1a1a;
}

.trip-chip-cover.is-single img {
  object-fit: contain;
}

.trip-chip-new {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--ink);
  height: 96px;
}

.trip-chip-new span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: var(--share);
  color: #fffaf6;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.trip-chip-name {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trip-chip-meta {
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
}

.trip-chip.is-on .trip-chip-cover {
  box-shadow: 0 0 0 2px var(--share);
}

.saved-trip-banner {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 0 14px;
  padding: 0;
  border-radius: 14px;
  background: var(--surface-container);
  overflow: hidden;
}

.saved-trip-banner.has-splash {
  background: #111;
}

.saved-trip-banner[hidden] {
  display: none;
}

.saved-trip-splash {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1a1a1a;
}

.saved-trip-splash[hidden] {
  display: none;
}

.saved-trip-splash img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.saved-trip-banner-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
}

.saved-trip-banner.has-splash .saved-trip-banner-bar {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
  margin-top: -44px;
  position: relative;
  z-index: 1;
  padding-top: 18px;
}

.saved-trip-banner.has-splash .saved-trip-back {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.saved-trip-banner.has-splash .saved-trip-banner-copy strong,
.saved-trip-banner.has-splash .saved-trip-banner-copy span {
  color: #fff;
}

.saved-trip-banner.has-splash .saved-trip-banner-copy span {
  color: rgba(255, 255, 255, 0.78);
}

.saved-trip-back {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
  padding: 0;
  flex-shrink: 0;
}

.saved-trip-banner-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.saved-trip-banner-copy strong {
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.saved-trip-banner-copy span {
  font-size: 12px;
  color: #8a8680;
}

.saved-view .product-grid {
  margin-top: 4px;
}

.saved-empty {
  grid-column: 1 / -1;
  padding: 36px 12px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.saved-empty strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  margin-bottom: 6px;
}

/* TikTok-style save toast */
.save-toast {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 108px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 10px 10px 12px;
  border-radius: 14px;
  background: rgba(28, 28, 28, 0.94);
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  opacity: 1;
  transform: translateY(0);
  animation: save-toast-in 0.28s ease-out both;
  pointer-events: auto;
}

.save-toast[hidden] {
  display: none;
}

.save-toast.is-out {
  animation: save-toast-out 0.22s ease-in both;
}

@keyframes save-toast-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes save-toast-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(10px);
  }
}

.save-toast-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.save-toast-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  flex-shrink: 0;
}

.save-toast-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.save-toast-copy strong {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.save-toast-copy span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.save-toast-collections {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  padding: 8px 4px 8px 8px;
  cursor: pointer;
}

.collection-sheet .collection-panel {
  max-height: 72%;
  padding-bottom: 28px;
}

.collection-sheet-body {
  display: flex;
  flex-direction: column;
}

.collection-new-btn,
.collection-row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--surface-container);
  background: none;
  padding: 14px 6px;
  display: flex;
  align-items: center;
  gap: 14px;
  font: inherit;
  color: #111;
  cursor: pointer;
  text-align: left;
}

.collection-new-btn {
  font-weight: 650;
}

.collection-new-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  border: 1.4px dashed #c8c2b8;
  background: var(--surface-container);
  display: grid;
  place-items: center;
  font-size: 24px;
  color: #5c5852;
  flex-shrink: 0;
}

.collection-row-cover {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--outline-variant);
  background: #fff;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1px;
  background: var(--surface-container);
}

.collection-row-cover.is-empty,
.collection-row-cover.is-single,
.collection-row-cover.is-splash {
  display: block;
  background: #fff;
}

.collection-row-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  display: block;
}

.collection-row-cover.is-splash img {
  object-fit: cover;
  background: #1a1a1a;
}

.collection-row-copy {
  flex: 1;
  min-width: 0;
}

.collection-row-copy strong {
  display: block;
  font-size: 15px;
  font-weight: 650;
}

.collection-row-copy span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #8a8680;
}

.collection-row.is-in {
  background: var(--surface-container);
}

.collection-row-check {
  color: #2f6b2f;
  font-size: 16px;
  font-weight: 700;
}

.collection-create {
  padding: 6px 4px 8px;
}

.collection-create-label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  color: #5c5852;
  margin-bottom: 8px;
}

.collection-name-field {
  position: relative;
  margin-bottom: 8px;
}

.collection-name-field input {
  width: 100%;
  border: 1.4px solid var(--outline-variant);
  border-radius: 12px;
  padding: 12px 52px 12px 14px;
  font: inherit;
  font-size: 16px;
  background: #fff;
}

.collection-name-count {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #8a8680;
  pointer-events: none;
}

.collection-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 4px 16px;
  border-bottom: 1px solid var(--surface-container);
  margin-bottom: 16px;
}

.collection-setting-copy {
  min-width: 0;
  flex: 1;
}

.collection-setting-copy strong {
  display: block;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.collection-setting-copy span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.35;
  color: #8a8680;
}

.toggle-switch {
  flex-shrink: 0;
  width: 52px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: var(--share-off);
  padding: 0;
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease;
}

.toggle-switch.is-on {
  background: var(--share);
}

.toggle-knob {
  display: block;
  position: absolute;
  top: 7px;
  left: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fffaf6;
  box-shadow: 0 1px 2px rgba(90, 42, 28, 0.28);
  transition: transform 0.2s ease;
}

.toggle-switch.is-on .toggle-knob {
  transform: translateX(22px);
}

.collection-create .btn-dark.wide {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
}

.collection-create-back {
  display: block;
  width: 100%;
  margin-top: 10px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #8a8680;
  padding: 10px;
  cursor: pointer;
}

/* Community — Strava-like activity */
.community-view {
  background: var(--bg);
  padding: 8px 0 18px !important;
}

.community-view.is-on {
  display: block;
}

.community-top {
  padding: 4px 16px 0;
}

.community-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.community-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 0;
}

.community-add-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--share);
  color: #fffaf6;
  padding: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.community-add-btn span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.community-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--search);
  border-radius: 28px;
  height: var(--touch);
  padding: 0 10px 0 12px;
  color: var(--muted);
}

.community-search input {
  border: 0;
  background: transparent;
  flex: 1;
  min-width: 0;
  width: auto;
  outline: none;
  font-size: var(--type-search-size);
  font-weight: 400;
  color: var(--ink);
}

.community-search .search-clear {
  color: #b0aba4;
}

.community-friends {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 14px 2px 6px;
  scrollbar-width: none;
}

.community-friends::-webkit-scrollbar {
  display: none;
}

.community-friend {
  border: 0;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 58px;
  cursor: pointer;
  color: var(--ink);
}

.community-friend-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--surface-container-high);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  box-shadow: none;
}

.community-friend-name {
  font-size: 11px;
  font-weight: 600;
}

.community-feed-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 10px 16px 8px;
}

.community-feed-head h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.community-feed-head span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.community-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 16px 20px;
}

.activity-card {
  background: var(--surface-container);
  border: 0;
  border-radius: 22px;
  padding: 14px;
}

.activity-head {
  width: 100%;
  border: 0;
  background: none;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.activity-head:disabled {
  cursor: default;
}

.activity-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.activity-user {
  font-size: 14px;
  font-weight: 750;
}

.activity-when {
  font-size: 11px;
  color: var(--muted);
}

.activity-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.activity-caption {
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 10px;
}

.activity-hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  cursor: default;
}

.activity-hero img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.activity-tag {
  width: 100%;
  margin-top: 10px;
  border: 0;
  background: #fff;
  border-radius: 16px;
  padding: 8px;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  align-items: center;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
}

.activity-tag img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--surface-container);
  display: block;
}

.activity-tag small {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--borrow-mark);
}

.activity-tag strong {
  display: block;
  margin-top: 1px;
  font-size: 13px;
  font-weight: 750;
}

.activity-foot {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.activity-kudos,
.activity-comment {
  border: 0;
  background: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  color: var(--ink);
}

.activity-kudos-heart {
  display: inline-block;
  font-size: 13px;
  line-height: 1;
  transition: transform 0.15s ease;
}

.activity-kudos.is-liked {
  background: var(--share-soft);
  color: var(--share);
}

.activity-kudos.is-liked .activity-kudos-heart {
  color: var(--share);
  transform: scale(1.08);
}

/* Add post sheet */
.post-sheet .post-sheet-panel {
  max-height: 78%;
  padding-bottom: 28px;
}

.post-sheet-lead {
  font-size: 13px;
  color: #8a8680;
  line-height: 1.4;
  margin: -6px 4px 14px;
}

.post-source-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: none;
}

.post-source-rail::-webkit-scrollbar {
  display: none;
}

.post-source {
  flex: 0 0 92px;
  border: 1px solid #e4dfd6;
  background: var(--surface);
  border-radius: 16px;
  padding: 14px 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 650;
  color: #111;
  cursor: pointer;
  text-align: center;
}

.post-source-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e4dfd6;
  display: grid;
  place-items: center;
  color: #111;
  font-size: 13px;
  font-weight: 800;
}

.post-source-icon.is-strava {
  background: #fc4c02;
  border-color: #fc4c02;
  color: #fff;
}

.post-source-icon.is-alltrails {
  background: #428a13;
  border-color: #428a13;
  color: #fff;
  font-size: 11px;
}

.post-compose-nav {
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  margin-bottom: 12px;
}

.post-compose-nav strong {
  text-align: center;
  font-size: 16px;
}

.post-compose-nav .text-btn {
  border: 0;
  background: none;
  color: #111;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.post-compose-nav .text-btn.is-strong {
  text-align: right;
  color: #2e7f96;
}

.post-compose-preview {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--surface-container);
}

.post-compose-preview img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.post-preview-source {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(17, 17, 17, 0.78);
  color: #fff;
  font-size: 11px;
  font-weight: 650;
  padding: 5px 8px;
  border-radius: 8px;
}

.post-caption-field textarea {
  width: 100%;
  border: 1px solid var(--outline-variant);
  border-radius: 12px;
  padding: 12px;
  font: inherit;
  font-size: 14px;
  resize: none;
  outline: none;
  background: #fff;
  color: #111;
  margin-bottom: 12px;
}

.post-tag-label {
  font-size: 12px;
  font-weight: 700;
  color: #8a8680;
  margin-bottom: 8px;
}

.post-tag-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.post-tag-rail::-webkit-scrollbar {
  display: none;
}

.post-tag-chip {
  flex: 0 0 auto;
  border: 1px solid var(--outline-variant);
  background: #fff;
  border-radius: var(--organic-pill);
  padding: 6px 10px 6px 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  color: #111;
}

.post-tag-chip img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--surface);
}

.post-tag-chip.is-on {
  border-color: #111;
  background: #111;
  color: #fff;
}



/* Message lender — Instagram-like thread, Lend energy */
.chat-view {
  background: var(--bg);
  padding: 0 !important;
  display: none;
  flex-direction: column;
}

.chat-view.is-on {
  display: flex;
  overflow: hidden;
}

.chat-top {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 4px;
  padding: 6px 10px 8px;
  background: var(--bg);
  border-bottom: 1px solid var(--surface-container);
  flex-shrink: 0;
}

.chat-icon-btn {
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  border-radius: 50%;
}

.chat-person {
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  padding: 4px 2px;
  min-width: 0;
  color: var(--ink);
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-container-high);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.chat-person-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.chat-person-text strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-person-text small {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.chat-item-card {
  margin: 10px 14px 0;
  border: 0;
  background: var(--surface-container);
  border-radius: 18px;
  padding: 8px 10px 8px 8px;
  display: grid;
  grid-template-columns: 52px 1fr 12px;
  gap: 10px;
  align-items: center;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  flex-shrink: 0;
}

.chat-item-card img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: contain;
  background: var(--surface);
  display: block;
}

.chat-item-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.chat-item-copy small {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.chat-item-copy strong {
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-item-copy em {
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-thread {
  flex: 1;
  overflow: auto;
  padding: 14px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  scrollbar-width: none;
}

.chat-thread::-webkit-scrollbar {
  display: none;
}

.chat-day {
  align-self: center;
  font-size: 11px;
  font-weight: 600;
  color: #9a9690;
  margin: 6px 0 8px;
}

.chat-bubble-row {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  max-width: 86%;
}

.chat-bubble-row.is-me {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-bubble-row.is-them {
  align-self: flex-start;
}

.chat-bubble-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface-container-high);
  color: var(--ink);
  font-size: 8px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-bottom: 2px;
}

.chat-bubble {
  border: 0;
  border-radius: 20px;
  padding: 9px 13px;
  font-size: 14px;
  line-height: 1.35;
  text-align: left;
  max-width: 100%;
  word-break: break-word;
}

.chat-bubble-row.is-them .chat-bubble {
  background: var(--surface-container);
  color: var(--ink);
  border-bottom-left-radius: 6px;
}

.chat-bubble-row.is-me .chat-bubble {
  background: var(--share);
  color: #fffaf6;
  border-bottom-right-radius: 6px;
}

.chat-bubble.is-heart {
  background: transparent !important;
  color: var(--accent-sage);
  padding: 4px 6px;
  font-size: 26px;
  line-height: 1;
}

.chat-meta {
  align-self: flex-end;
  font-size: 10px;
  color: #9a9690;
  padding: 0 4px 2px;
  font-weight: 500;
}

.chat-bubble-row.is-me + .chat-meta,
.chat-meta.is-me {
  align-self: flex-end;
}

.chat-suggestions {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 14px 8px;
  scrollbar-width: none;
  flex-shrink: 0;
}

.chat-suggestions:empty {
  display: none;
}

.chat-suggestions::-webkit-scrollbar {
  display: none;
}

.chat-suggestion {
  flex: 0 0 auto;
  border: 0;
  background: var(--surface-container);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}

.chat-composer {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px 12px;
  border-top: 1px solid var(--surface-container);
  background: var(--bg);
  flex-shrink: 0;
}

.chat-attach {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-container);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

.chat-input-wrap {
  flex: 1;
  min-width: 0;
}

.chat-input-wrap input {
  width: 100%;
  border: 0;
  background: var(--surface-container);
  border-radius: 22px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--ink);
  outline: none;
}

.chat-input-wrap input::placeholder {
  color: #9a9690;
}

.chat-send {
  border: 0;
  background: none;
  color: var(--ink);
  min-width: 44px;
  height: 36px;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0 4px;
  font-size: 14px;
  font-weight: 700;
}

.chat-send.is-heart .chat-send-label {
  display: none;
}

.chat-send:not(.is-heart) .chat-send-heart {
  display: none;
}

.chat-send:not(.is-heart) {
  color: var(--share);
}

.chat-send.is-heart {
  color: var(--ink);
}

/* Request an item + off-app iMessage blast */
.request-item-view,
.offapp-view,
.imessage-view {
  background: #fff;
  padding: 4px 16px 28px !important;
}

.imessage-view.is-on {
  display: flex;
}

.request-search {
  margin: 8px 0 14px;
}

.request-item-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 72px;
  margin-bottom: 18px;
}

.request-search-hint,
.request-item-results .empty-inline {
  font-size: 13px;
  color: #8a8680;
  line-height: 1.4;
}

.request-search-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  border: 1px solid var(--surface-container);
  border-radius: 14px;
  background: var(--surface);
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
}

.request-search-row img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
}

.request-search-row .product-copy {
  margin-top: 0;
}

.request-offapp {
  border-top: 1px solid var(--surface-container);
  padding-top: 18px;
}

.request-offapp-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a8680;
}

.request-offapp h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 4px 0 8px;
}

.request-offapp p {
  font-size: 14px;
  line-height: 1.4;
  color: #5c5852;
  margin-bottom: 14px;
}

.offapp-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0 18px;
}

.offapp-field span {
  font-size: 13px;
  font-weight: 650;
  color: #5c5852;
}

.offapp-field input {
  border: 1px solid var(--outline-variant);
  border-radius: 12px;
  padding: 14px 14px;
  font-size: 16px;
  color: #111;
  outline: none;
}

.offapp-field input:focus {
  border-color: #111;
}

.offapp-preview-label {
  font-size: 12px;
  font-weight: 700;
  color: #8a8680;
  margin-bottom: 8px;
}

.imessage-link-card {
  border-radius: 16px;
  overflow: hidden;
  background: #f2f2f2;
  border: 1px solid #e4e4e4;
  margin-bottom: 18px;
}

.imessage-link-media {
  position: relative;
  aspect-ratio: 1.15 / 1;
  background: #ddd;
}

.imessage-link-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.imessage-lend-mark {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.imessage-lend-mark::before,
.imessage-lend-mark::after {
  content: "";
  position: absolute;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6b4a2f;
}

.imessage-lend-mark::before {
  left: 7px;
}

.imessage-lend-mark::after {
  right: 7px;
}

.imessage-link-copy {
  padding: 12px 14px 14px;
  background: #f4f4f4;
}

.imessage-link-copy p {
  font-size: 15px;
  font-weight: 500;
  color: #111;
  margin: 0 0 4px;
}

.imessage-link-copy strong {
  font-size: 15px;
  font-weight: 750;
  color: #111;
}

#offapp-continue-imessage:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.imessage-view {
  background: #f2f2f7;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.imessage-top {
  display: grid;
  grid-template-columns: 72px 1fr 40px;
  align-items: center;
  padding: 10px 12px 8px;
  background: rgba(249, 249, 249, 0.94);
  border-bottom: 1px solid #d8d8dc;
}

.imessage-top strong {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
}

.imessage-cancel {
  border: 0;
  background: none;
  color: #0a84ff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.imessage-step {
  flex: 1;
  display: none;
  flex-direction: column;
  min-height: 0;
}

.imessage-step.is-on {
  display: flex;
}

.imessage-to {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #fff;
  border-bottom: 1px solid #e5e5ea;
}

.imessage-to span {
  font-size: 15px;
  color: #8e8e93;
}

.imessage-to input {
  flex: 1;
  border: 0;
  outline: none;
  font-size: 16px;
  background: transparent;
}

.imessage-contacts {
  display: flex;
  flex-direction: column;
  background: #fff;
  overflow: auto;
}

.imessage-contact {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #ececec;
  background: #fff;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
}

.imessage-contact-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #c7c7cc;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.imessage-contact-copy strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #111;
}

.imessage-contact-copy small {
  display: block;
  margin-top: 1px;
  font-size: 13px;
  color: #8e8e93;
}

.imessage-thread {
  flex: 1;
  overflow: auto;
  padding: 16px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.imessage-thread-hint {
  text-align: center;
  font-size: 12px;
  color: #8e8e93;
  margin-bottom: 4px;
}

.imessage-draft {
  align-self: flex-end;
  max-width: 86%;
  opacity: 0.72;
}

.imessage-draft-text {
  font-size: 14px;
  color: #3a3a3c;
  margin-bottom: 8px;
  text-align: right;
}

.imessage-draft .imessage-link-card {
  margin-bottom: 0;
}

.imessage-bubble {
  align-self: flex-end;
  max-width: 86%;
  background: #0a84ff;
  color: #fff;
  border-radius: 18px;
  padding: 10px 12px;
  font-size: 15px;
  line-height: 1.35;
}

.imessage-bubble.is-link {
  background: transparent;
  padding: 0;
  width: min(260px, 86%);
}

.imessage-bubble.is-link .imessage-link-card {
  margin: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.imessage-delivered {
  align-self: flex-end;
  font-size: 11px;
  color: #8e8e93;
  margin-top: -4px;
}

.imessage-compose-bar {
  display: grid;
  grid-template-columns: 34px 1fr 36px;
  gap: 8px;
  align-items: center;
  padding: 8px 10px 18px;
  background: #f9f9f9;
  border-top: 1px solid #e5e5ea;
}

.imessage-plus {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: #e5e5ea;
  color: #8e8e93;
  font-size: 22px;
  line-height: 1;
}

.imessage-bubble-field {
  border: 1px solid #d1d1d6;
  border-radius: 18px;
  padding: 9px 12px;
  font-size: 14px;
  color: #8e8e93;
  background: #fff;
}

.imessage-send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: #0a84ff;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.imessage-sent {
  padding: 48px 24px 24px;
  text-align: center;
}

.imessage-sent-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8e8e93;
}

.imessage-sent h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 8px 0 10px;
}

.imessage-sent p {
  font-size: 15px;
  line-height: 1.45;
  color: #5c5852;
  margin-bottom: 22px;
}

.lend-link-status {
  margin: -4px 0 10px;
  font-size: 12px;
  color: #8a8680;
}

.lend-link-status.is-ok {
  color: #2f7a4a;
}

.lend-link-status.is-warn {
  color: #a15c12;
}

.lend-link-status.is-busy {
  color: #5c5852;
}

.lend-specs {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-container);
  font-size: 13px;
  font-weight: 650;
  color: #3a3732;
}

.lend-desc-field {
  margin-bottom: 12px;
}

.lend-desc-field textarea {
  width: 100%;
  min-height: 72px;
  resize: vertical;
  border: 1px solid var(--outline-variant);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  color: #2c2a26;
  background: #fff;
  box-sizing: border-box;
}

.lend-desc-field textarea::placeholder {
  color: #9a958c;
}

.lend-missing {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-container);
  border: 1px solid var(--outline-variant);
}

.lend-missing-lead {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.35;
  color: #6a5a42;
}

.lend-missing-list {
  margin: 0 0 10px;
  padding-left: 18px;
  font-size: 13px;
  color: #3a3732;
}

.lend-missing-list li {
  margin: 2px 0;
}

.lend-missing-search {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  background: #2c2a26;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.lend-missing-search:active {
  opacity: 0.88;
}

.detail-desc {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: #5c5852;
}

.imessage-secondary {
  margin-top: 10px;
  width: 100%;
  border: 0;
  background: none;
  color: #0a84ff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  padding: 10px;
}

.imessage-bubble.is-in {
  align-self: flex-start;
  background: #e9e9eb;
  color: #111;
}

.imessage-bubble.is-link {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.imessage-bubble.is-in.is-link {
  align-self: flex-start;
}

.recipient-hint {
  text-align: center;
  font-size: 12px;
  color: #8e8e93;
  padding: 8px 16px 20px;
}

.invite-join-view {
  background: #fff;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.invite-join-view.is-on {
  display: flex;
}

.invite-hero {
  position: relative;
  aspect-ratio: 1.05 / 1;
  background: #ddd;
}

.invite-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.invite-mark {
  top: 14px;
  right: 14px;
}

.invite-body {
  padding: 20px 18px 28px;
}

.invite-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a8680;
}

.invite-body h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 6px 0 10px;
  line-height: 1.15;
}

.invite-lead {
  font-size: 15px;
  line-height: 1.45;
  color: #5c5852;
  margin-bottom: 14px;
}

.invite-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.invite-perks li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  font-weight: 600;
  color: #222;
}

.invite-perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ecc71;
}

.invite-skip {
  margin-top: 8px;
  width: 100%;
  border: 0;
  background: none;
  color: #8a8680;
  font-size: 14px;
  font-weight: 600;
  padding: 10px;
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}







/* Person profile + mutual friends */
.person-view {
  background: #fff;
  padding: 0 16px 28px !important;
}

.person-view.is-on {
  display: flex;
  flex-direction: column;
}

.person-top {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  min-height: 44px;
  margin-bottom: 8px;
}

.person-top-title {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.person-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.person-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #9a9a9a;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.person-identity-copy h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
}

.person-bunch {
  margin: 2px 0 0;
  font-size: 13px;
  color: #8a8680;
}

.person-link-badge {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #6b8f4e;
}

.person-mutuals {
  margin-top: 16px;
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: var(--surface-container);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: #111;
}

.person-mutuals[hidden] {
  display: none;
}

.person-mutual-stack {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.mutual-chip {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #7a7a7a;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid var(--surface-container);
  margin-left: -8px;
  position: relative;
  z-index: var(--z, 1);
}

.mutual-chip:first-child {
  margin-left: 0;
}

.person-mutual-copy {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: #3a3a3a;
}

.person-bio {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: #5c5852;
}

.person-stats {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--surface-container);
  font-size: 13px;
  color: #8a8680;
}

.person-stats strong {
  color: #111;
  font-weight: 750;
}

.person-shelf-title {
  margin: 18px 0 10px;
  font-size: 15px;
  font-weight: 750;
}

.mutuals-sheet .mutuals-panel {
  max-height: 72%;
  padding-bottom: 28px;
}

.mutuals-sub {
  margin: -6px 4px 12px;
  font-size: 13px;
  color: #8a8680;
}

.mutuals-list {
  display: flex;
  flex-direction: column;
}

.mutuals-row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--surface-container);
  background: none;
  padding: 12px 4px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: #111;
}

.mutuals-row-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #9a9a9a;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.mutuals-row-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mutuals-row-copy strong {
  font-size: 15px;
  font-weight: 700;
}

.mutuals-row-copy small {
  font-size: 12px;
  color: #8a8680;
}
