/* UPLIFT · Operations · Mobile — iOS 26 / Apple-system refresh */
:root {
  --bg: #f7f7f8;
  --surface: #ffffff;
  --surfaceTint: #fafafb;
  --text: #131517;
  --textSoft: #2c2f33;
  --dim: #4b5159;
  --muted: #8a8f97;
  --border: #e6e7ea;
  --borderSoft: #eef0f2;
  --gold: #8a6520;
  --goldSoft: #f3eada;
  --green: #2f8a4d;
  --red: #c03737;
  --redSoft: #fce6e6;
  --piercing: #7e6dd0;
  --piercingSoft: #ecebf6;
  --imessageBlue: #007AFF;
  --imessageGray: #e9e9eb;
  --shadow-lg: 0 12px 36px rgba(15, 18, 24, .14);
  --shadow-md: 0 4px 16px rgba(15, 18, 24, .06);
  --shadow-sm: 0 1px 2px rgba(15, 18, 24, .04);

  /* Apple-style spring + radii so every component feels coherent */
  --spring: cubic-bezier(.32, .72, 0, 1);
  --r-card: 18px;
  --r-btn:  12px;
  --r-chip: 999px;
  --glass: saturate(180%) blur(28px);
  --glass-bg-light: rgba(255,255,255,.72);
  --glass-bg-dark:  rgba(21,24,29,.72);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0e11;
    --surface: #15181d;
    --surfaceTint: #181b21;
    --text: #f0f1f3;
    --textSoft: #d7dade;
    --dim: #a8acb3;
    --muted: #7a7f86;
    --border: #24272d;
    --borderSoft: #1c1f24;
    --goldSoft: #2a2114;
    --redSoft: #3a1818;
    --piercingSoft: #1f1d2e;
    --imessageGray: #2a2c30;
    --shadow-lg: 0 12px 36px rgba(0, 0, 0, .5);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, .35);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .25);
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", sans-serif;
  font-feature-settings: 'ss01', 'cv11';     /* SF Pro stylistic alternates */
  font-variant-numeric: tabular-nums;        /* steady counters everywhere */
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: clamp(15px, 4vw, 17px);         /* fluid Dynamic-Type-ish sizing */
  line-height: 1.4;
  letter-spacing: -0.01em;
  color-scheme: light dark;
}
/* View Transitions API — animates morphs between sections on tab change */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: .32s; animation-timing-function: var(--spring); }
body {
  min-height: 100vh;
  padding-bottom: calc(env(safe-area-inset-bottom) + 24px);
  overflow-x: hidden;
}

/* App bar — Liquid-Glass treatment */
.appbar {
  position: sticky; top: 0; z-index: 30;
  background: var(--glass-bg-light);
  -webkit-backdrop-filter: var(--glass);
  backdrop-filter: var(--glass);
  border-bottom: 1px solid var(--borderSoft);
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  padding-top: calc(env(safe-area-inset-top) + 8px);
}
@media (prefers-color-scheme: dark) { .appbar { background: var(--glass-bg-dark); } }
.brand { display: flex; align-items: baseline; gap: 6px; }
.logo {
  font-weight: 800;
  letter-spacing: 1.6px;
  font-size: clamp(14px, 3.7vw, 16px);
  color: var(--text);
}
.bullet { color: var(--gold); font-weight: 500; }
.sub {
  color: var(--muted);
  font-size: clamp(12px, 3.2vw, 13px);
  font-weight: 500;
  letter-spacing: -0.1px;
}
.appbarBtns { display: flex; gap: 6px; }
.iconBtn {
  min-width: 38px; min-height: 38px;     /* 44px tap area incl. inner spacing */
  background: transparent;
  border: none; border-radius: 999px;
  color: var(--dim); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
  transition: background .18s var(--spring), transform .14s var(--spring);
}
.iconBtn:active { background: var(--borderSoft); transform: scale(.92); }

/* Search panel */
.searchPanel {
  display: none;
  position: fixed; top: 56px; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 40;
  padding: 12px;
}
.searchPanel.open { display: block; }
.searchBar {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
}
.searchBar input {
  flex: 1; border: none; background: transparent;
  font-size: 16px; color: var(--text);
  outline: none;
  font-family: inherit;
}
.searchResults { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.searchResult {
  background: var(--surface);
  border: 1px solid var(--borderSoft);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex; flex-direction: column; gap: 2px;
  cursor: pointer;
}
.searchResult .name { font-weight: 600; font-size: 14px; }
.searchResult .meta { font-size: 11px; color: var(--muted); }

/* Briefing — the dashboard at the top of every view */
.briefing { padding: 14px 12px 6px; }
.briefingHeader {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 0 4px 10px;
  gap: 12px;
}
.briefingLabel {
  font-size: 11px; font-weight: 700; letter-spacing: 1.4px;
  color: var(--gold); text-transform: uppercase;
}
.briefingDate {
  font-size: clamp(20px, 5.4vw, 24px); font-weight: 800;
  color: var(--text); letter-spacing: -0.7px;
  margin-top: 2px;
}
.briefingDone {
  background: color-mix(in oklab, var(--green) 12%, transparent);
  border: 1px solid color-mix(in oklab, var(--green) 35%, transparent);
  border-radius: var(--r-chip);
  padding: 6px 12px;
  display: inline-flex; align-items: baseline; gap: 5px;
  color: var(--green);
}
.briefingDoneN { font-weight: 800; font-size: 16px; letter-spacing: -0.3px; }
.briefingDoneL { font-weight: 600; font-size: 11px; letter-spacing: 0.4px; text-transform: uppercase; }
.briefingSub { color: var(--muted); font-weight: 500; letter-spacing: 0.4px; margin-left: 6px; }

/* Follow-ups Due (mini priority queue, top of dashboard) */
.followList {
  margin: 12px 12px 4px;
  background: var(--surface);
  border: 1px solid var(--borderSoft);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.followHeader {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px 7px;
}
.followLabel {
  font-size: 10.5px; font-weight: 700; letter-spacing: 1.4px;
  color: var(--imessageBlue); text-transform: uppercase;
}
.followCount {
  font-size: 11px; font-weight: 700;
  color: var(--muted); letter-spacing: 0.2px;
  background: var(--borderSoft);
  padding: 2px 8px; border-radius: var(--r-chip);
}
.followItems { display: flex; flex-direction: column; }
.followItem {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  border-top: 1px solid var(--borderSoft);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s var(--spring);
}
.followItem:active { background: var(--borderSoft); }
.followAvatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: color-mix(in oklab, var(--imessageBlue) 14%, transparent);
  color: var(--imessageBlue);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  flex-shrink: 0;
}
.followAvatar.lead { background: color-mix(in oklab, var(--imessageBlue) 14%, transparent); color: var(--imessageBlue); }
.followAvatar.visit { background: var(--goldSoft); color: var(--gold); }
.followInfo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.followName {
  font-size: 14px; font-weight: 650; color: var(--text);
  letter-spacing: -0.2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.followMeta {
  font-size: 11px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.followReply {
  background: var(--imessageBlue); color: white;
  border: none; border-radius: 10px;
  padding: 8px 14px;
  font-size: 12.5px; font-weight: 700;
  letter-spacing: -0.1px;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 5px;
  flex-shrink: 0;
  transition: transform .12s var(--spring);
}
.followReply:active { transform: scale(.94); }
.cardRow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.statCard {
  background: var(--surface);
  border: 1px solid var(--borderSoft);
  border-radius: 14px;
  padding: 11px 8px;
  text-align: left;
  cursor: pointer;
  display: flex; flex-direction: column; gap: 3px;
  box-shadow: var(--shadow-sm);
  transition: transform .14s var(--spring), box-shadow .18s var(--spring);
  view-transition-name: auto;
}
.statCard:active {
  transform: scale(.95);
  box-shadow: 0 0 0 1px var(--border) inset;
}
.statLabel { font-size: 9.5px; font-weight: 700; letter-spacing: 1.1px; color: var(--muted); }
.statValue {
  font-size: clamp(24px, 7vw, 30px);
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.statSub { font-size: 10px; color: var(--muted); letter-spacing: -0.05em; }

/* Pre-visit list */
.preVisitList {
  margin: 8px 12px 0;
  background: var(--surface);
  border: 1px solid var(--borderSoft);
  border-radius: 12px;
  overflow: hidden;
}
.preVisitItem {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid var(--borderSoft);
}
.preVisitItem:first-child { border-top: none; }
.preVisitTime { font-size: 12px; font-weight: 700; color: var(--gold); min-width: 56px; }
.preVisitInfo { flex: 1; min-width: 0; }
.preVisitName { font-size: 13px; font-weight: 600; }
.preVisitMeta { font-size: 10.5px; color: var(--muted); }
.preVisitSend {
  background: var(--imessageBlue); color: white;
  border: none; border-radius: 8px;
  padding: 7px 10px; font-size: 11.5px; font-weight: 700;
  text-decoration: none;
}

/* Segmented control — iOS 26 style with subtle glass */
.seg {
  position: sticky; top: 54px; z-index: 25;
  margin: 14px 12px 8px;
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 3px; padding: 4px;
  background: color-mix(in oklab, var(--borderSoft) 75%, transparent);
  -webkit-backdrop-filter: var(--glass);
  backdrop-filter: var(--glass);
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--border) 50%, transparent);
}
.segItem {
  background: transparent;
  border: none; border-radius: 9px;
  padding: 8px 0; font-size: 13px; font-weight: 600;
  color: var(--dim);
  cursor: pointer;
  letter-spacing: -0.1px;
  transition: background .2s var(--spring), color .2s var(--spring), transform .14s var(--spring);
}
.segItem:active { transform: scale(.96); }
.segItem.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm), 0 0 0 .5px color-mix(in oklab, var(--border) 80%, transparent);
}

/* Filter pills */
.filterRow {
  display: flex; gap: 7px;
  padding: 8px 12px 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.filterRow::-webkit-scrollbar { display: none; }
.filterPill {
  background: var(--borderSoft);
  border: none; border-radius: var(--r-chip);
  padding: 7px 15px; font-size: 13.5px; font-weight: 600;
  color: var(--dim);
  white-space: nowrap; cursor: pointer;
  letter-spacing: -0.1px;
  transition: background .18s var(--spring), color .18s var(--spring), transform .12s var(--spring);
}
.filterPill:active { transform: scale(.94); }
.filterPill.active {
  background: var(--text);
  color: var(--surface);
  box-shadow: 0 4px 12px color-mix(in oklab, var(--text) 18%, transparent);
}

/* List */
.list {
  padding: 4px 12px 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.loading, .empty {
  text-align: center; color: var(--muted);
  padding: 48px 16px;
  font-size: 14px;
}
.empty .emptyIcon {
  display: block; margin: 0 auto 12px;
  font-size: 28px; opacity: .5;
}

/* Swipe wrap — exposes a red Archive bg underneath the card */
.swipeWrap {
  position: relative;
  border-radius: var(--r-card);
  isolation: isolate;
}
.swipeBg {
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
              color-mix(in oklab, var(--red) 0%,  transparent) 0%,
              color-mix(in oklab, var(--red) 70%, transparent) 55%,
              var(--red) 100%);
  border-radius: var(--r-card);
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 22px;
  color: white; font-weight: 700; font-size: 14px;
  letter-spacing: 0.2px;
  opacity: 0;
  transition: opacity .18s var(--spring);
  pointer-events: none;
}
.swipeWrap.swiping .swipeBg { opacity: 1; }
.swipeWrap.willCommit .swipeBg {
  background: var(--red);
}
.swipeBgInner { display: inline-flex; align-items: center; gap: 7px; }
.swipeBgIcon  { width: 16px; height: 16px; display: inline-flex; }

/* Card */
.card {
  background: var(--surface);
  border: 1px solid var(--borderSoft);
  border-radius: var(--r-card);
  padding: 13px 13px 11px;
  display: flex; flex-direction: column; gap: 9px;
  box-shadow: var(--shadow-sm);
  position: relative;
  touch-action: pan-y;
  will-change: transform;
  transition: box-shadow .18s var(--spring), transform .26s var(--spring), border-color .18s var(--spring), opacity .26s var(--spring);
}
.card:active { transform: scale(.995); box-shadow: var(--shadow-md); }
.swipeWrap.dragging .card { transition: none; }
.swipeWrap.archiving .card {
  transform: translateX(-110%) !important;
  opacity: 0;
  transition: transform .34s var(--spring), opacity .34s var(--spring) !important;
}
.card.pinned  { border-color: color-mix(in oklab, var(--gold) 38%, var(--borderSoft)); }
.card.flagged { border-color: color-mix(in oklab, var(--red)  38%, var(--borderSoft)); }
.card.sent    { opacity: .62; }

.row1 { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--imessageGray); color: var(--dim);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  flex-shrink: 0;
}
.avatar.gold     { background: var(--goldSoft);     color: var(--gold); }
.avatar.piercing { background: var(--piercingSoft); color: var(--piercing); }
.identity { flex: 1; min-width: 0; }
.name {
  font-weight: 650; font-size: clamp(15px, 4vw, 16px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  letter-spacing: -0.3px;
}
.flagged .name { color: var(--red); }
.subline {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--muted);
  margin-top: 1px;
  white-space: nowrap;
}
.subline > * { flex-shrink: 0; }
.dot { color: var(--border); font-size: 8px; }
.iconAction {
  background: transparent; border: none;
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted); cursor: pointer;
  font-size: 16px;
}
.iconAction.on { color: var(--gold); }
.iconAction.flag.on { color: var(--red); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 4px; padding-left: 46px; }
.chip {
  font-size: 9.5px; font-weight: 700; letter-spacing: .6px;
  padding: 3px 7px; border-radius: 4px;
  background: var(--goldSoft); color: var(--gold);
  white-space: nowrap;
}
.chip.piercing { background: var(--piercingSoft); color: var(--piercing); }
.chip.needsBooking { background: var(--redSoft); color: var(--red); }
.chip.leadChip { background: rgba(0, 122, 255, .12); color: var(--imessageBlue); }

.card.lead { border-left: 3px solid var(--imessageBlue); }
.leadSummary {
  background: var(--bg);
  padding: 8px 12px;
  border-radius: 8px;
  margin-left: 46px;
  font-size: 12px;
  color: var(--dim);
  font-style: italic;
  line-height: 1.4;
  border: 1px solid var(--borderSoft);
}
.iconAction.spam { color: var(--red); font-size: 14px; }
.iconAction.spam.on { color: var(--red); }

/* Variant pills */
.variants {
  display: flex; gap: 5px; overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 0 2px;
}
.variants::-webkit-scrollbar { display: none; }
.vchip {
  background: var(--borderSoft); color: var(--dim);
  border: none; border-radius: 999px;
  padding: 6px 13px; font-size: 12.5px; font-weight: 600;
  min-width: 42px; min-height: 30px;
  white-space: nowrap;
}
.vchip.active { background: var(--gold); color: white; }
.vchip.edit { background: transparent; border: 1px dashed var(--border); color: var(--dim); }

.editArea {
  width: 92%;
  min-height: 80px;
  font-family: inherit; font-size: 15px; line-height: 1.32;
  padding: 10px 14px;
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--imessageBlue);
  border-radius: 14px;
  resize: none;
  outline: none;
  -webkit-appearance: none;
}
.editAction {
  background: var(--imessageBlue); color: white;
  border: none; border-radius: 6px;
  padding: 5px 12px; font-size: 12px; font-weight: 700;
  margin-left: 6px; cursor: pointer;
}
.editAction.cancel { background: var(--borderSoft); color: var(--dim); }

/* Bubble */
.bubbleRow { display: flex; justify-content: flex-end; margin-top: 4px; }
.bubble {
  background: linear-gradient(180deg, color-mix(in oklab, var(--imessageBlue) 92%, white) 0%, var(--imessageBlue) 100%);
  color: white;
  padding: 10px 15px;
  border-radius: 22px;
  border-bottom-right-radius: 6px;
  font-size: clamp(15px, 4vw, 16px); line-height: 1.32;
  white-space: pre-wrap;
  max-width: 92%;
  letter-spacing: -0.2px;
  cursor: text;
  box-shadow: 0 2px 10px color-mix(in oklab, var(--imessageBlue) 24%, transparent);
}
.bubble.edited::after { content: '· edited'; font-size: 10px; opacity: .7; margin-left: 4px; }
.bubbleMeta {
  font-size: 10px; color: var(--muted);
  text-align: right;
  margin-top: 4px;
  padding-right: 4px;
}

/* Actions — 44px tap target, springy press */
.actions { display: flex; gap: 7px; margin-top: 3px; }
.actionBtn {
  flex: 1; min-width: 0;
  background: var(--borderSoft);
  border: none; border-radius: var(--r-btn);
  padding: 13px 8px;
  min-height: 44px;
  font-size: 13.5px; font-weight: 600;
  color: var(--text);
  text-align: center;
  text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  cursor: pointer;
  letter-spacing: -0.2px;
  transition: transform .14s var(--spring), background .2s var(--spring), box-shadow .2s var(--spring);
}
.actionBtn:active { transform: scale(.95); }
.actionBtn.primary {
  background: var(--imessageBlue); color: white; flex: 2;
  box-shadow: 0 6px 16px color-mix(in oklab, var(--imessageBlue) 32%, transparent);
}
.actionBtn.flagged {
  background: var(--red); color: white; flex: 2;
  box-shadow: 0 6px 16px color-mix(in oklab, var(--red) 28%, transparent);
}
.actionBtn.muted { color: var(--dim); }
.actionBtn .ico { width: 14px; height: 14px; display: inline-flex; }
.actionBtn .ico svg { width: 100%; height: 100%; }

/* Sent banner */
.sentBanner {
  display: flex; align-items: center; gap: 8px;
  background: rgba(47, 138, 77, .1);
  color: var(--green);
  padding: 9px 11px; border-radius: 10px;
  font-size: 12.5px; font-weight: 600;
}
.sentBanner.snoozed { background: rgba(138, 101, 32, .1); color: var(--gold); }
.sentBanner .undo {
  margin-left: auto;
  background: rgba(15, 18, 24, .08); color: var(--text);
  border: none; border-radius: 6px;
  padding: 5px 11px; font-size: 11.5px; font-weight: 700;
  cursor: pointer;
}

/* Settings drawer */
.drawerBackdrop {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, .35);
  z-index: 50;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
}
.drawerBackdrop.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: var(--surface);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  padding: 12px 20px calc(env(safe-area-inset-bottom) + 28px);
  z-index: 51;
  transform: translateY(100%);
  transition: transform .26s cubic-bezier(.32, .72, 0, 1);
  box-shadow: var(--shadow-lg);
}
.drawer.show { transform: translateY(0); }
.drawerHandle {
  width: 36px; height: 4px;
  background: var(--border);
  border-radius: 999px;
  margin: 0 auto 14px;
}
.drawerTitle {
  margin: 0 0 14px;
  font-size: 17px; font-weight: 700; letter-spacing: -0.3px;
}
.settingRow {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--borderSoft);
  gap: 12px;
}
.settingRow:first-of-type { border-top: none; }
.settingLabel { display: flex; flex-direction: column; gap: 2px; }
.settingName { font-size: 14px; font-weight: 600; }
.settingSub { font-size: 11px; color: var(--muted); }
.switch { position: relative; display: inline-block; width: 51px; height: 31px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span {
  position: absolute; inset: 0;
  background: var(--border);
  border-radius: 999px;
  transition: background .2s ease;
}
.switch span::before {
  content: ''; position: absolute;
  width: 27px; height: 27px;
  left: 2px; top: 2px;
  background: white;
  border-radius: 50%;
  transition: transform .2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,.15);
}
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::before { transform: translateX(20px); }
.dateInput {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-family: inherit; font-size: 14px;
  color: var(--text);
}
.hourPickers { display: flex; align-items: center; gap: 6px; }
.hourPickers select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  font-family: inherit; font-size: 14px;
  color: var(--text);
  font-weight: 600;
}
.hourDash { color: var(--muted); }
.drawerClose {
  margin-top: 16px; width: 100%;
  background: var(--imessageBlue); color: white;
  border: none; border-radius: 12px;
  padding: 12px; font-size: 15px; font-weight: 700;
  cursor: pointer;
}

/* Snooze sheet */
.snoozeBackdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 50;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
}
.snoozeBackdrop.show { opacity: 1; pointer-events: auto; }
.snoozeSheet {
  position: fixed; left: 16px; right: 16px;
  bottom: calc(env(safe-area-inset-bottom) + 16px);
  background: var(--surface);
  border-radius: 18px;
  padding: 16px;
  z-index: 51;
  transform: translateY(20px); opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
  box-shadow: var(--shadow-lg);
  pointer-events: none;
}
.snoozeSheet.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
.snoozeTitle {
  margin: 0 0 12px; font-size: 14px; font-weight: 700;
  color: var(--dim); text-align: center;
}
.snoozeOpt {
  width: 100%; display: block;
  background: var(--borderSoft);
  border: none; border-radius: 10px;
  padding: 13px;
  margin-bottom: 6px;
  font-size: 16px; font-weight: 600;
  color: var(--text);
  cursor: pointer;
}
.snoozeOpt.cancel { background: transparent; color: var(--red); margin-top: 4px; }

/* Toast — bottom-anchored, supports an inline action button */
.toast {
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom) + 24px);
  left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 11px 14px 11px 18px;
  font-size: 14px; font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none;
  transition: opacity .22s var(--spring), transform .26s var(--spring);
  z-index: 100;
  display: flex; align-items: center; gap: 14px;
  letter-spacing: -0.2px;
  max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.toastBtn {
  background: var(--imessageBlue); color: white;
  border: none; border-radius: 9px;
  padding: 8px 14px;
  font-weight: 700; font-size: 13px;
  letter-spacing: -0.1px;
  cursor: pointer;
  transition: transform .12s var(--spring);
}
.toastBtn:active { transform: scale(.94); }

/* Pull to refresh indicator */
.ptr {
  text-align: center; padding: 10px;
  font-size: 11px; color: var(--muted);
  opacity: 0; transition: opacity .2s ease;
}
.ptr.show { opacity: 1; }
