/* Linq Up Clip / web flow — recipient invite SPA.
 *
 * Visual targets (May 7, 2026 redesign):
 *   - Bright white surface, bold black typography, soft mint-sage accents
 *   - Large rounded cards (24px), thin light-gray borders, no shadows/gradients
 *   - Black pill primary buttons; centered gray text-link secondaries
 *   - 64-72px primary CTA height, full-width, white 17px bold
 *
 * Tokens here are kept in sync with `src/theme/theme.ts`. The shared
 * landing page imports the same block via `web/assets/landing.css`.
 */

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f6f7f9;
  --border: #e8eaee;
  --border-strong: #d8dde3;
  --text-primary: #15171a;
  --text-secondary: #5d6470;
  --text-tertiary: #8e95a3;
  --text-on-dark: #ffffff;

  --mint: #cdeee6;
  --mint-soft: #eaf8f4;
  --mint-strong: #8fc3b5;
  --mint-text: #3e7266;

  --black: #0a0c0f;
  --error: #c33b3b;

  --radius-card: 24px;
  --radius-input: 16px;
  --radius-tile: 20px;
  --radius-pill: 999px;

  --space-page: 24px;
  --space-xs: 6px;
  --space-sm: 10px;
  --space-md: 14px;
  --space-lg: 20px;
  --space-xl: 28px;
  --space-2xl: 36px;

  --font-stack: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;

  /* Motion tokens — mirror `src/theme/motion.ts` (design-language §10):
   * short, eased, never bouncy. */
  --motion-ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --motion-crossfade-ms: 180ms;
  --motion-enter-ms: 240ms;
  --motion-screen-ms: 320ms;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-stack);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

input,
select {
  font-family: inherit;
  font-size: inherit;
}

#clip-flow-root {
  width: min(100%, 460px);
  max-width: none;
  margin: 0 auto;
  padding: var(--space-page) var(--space-page) calc(var(--space-page) + 16px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

#clip-flow-root[data-screen='counterPending'] {
  width: min(100%, 720px);
  min-height: 100dvh;
  padding: 0;
  gap: 0;
}

/* Overview screen owns the live concierge transcript + sticky
 * composer. Make the root claim the dynamic viewport so the composer
 * sits at the visible viewport bottom (not below a trailing gap).
 * The composer's own padding handles the safe-area inset, so we drop
 * the trailing page-padding here. */
#clip-flow-root[data-screen='overview'] {
  min-height: 100dvh;
  padding-bottom: 0;
}

#clip-flow-root[data-screen='overview'] .clip-screen[data-screen='overview'] {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* ─────────────────────────────────────────────────────────────────
 *  Responsive breakpoints (may1126-trust-pass Phase 2.2)
 *
 *  Pre-may1126 the SPA was phone-fixed at 460px on every viewport.
 *  Recipients on iPad / laptop / desktop saw a tiny phone column
 *  centered in a sea of whitespace — the responsive web target spec
 *  in STRATEGY.md §Recipient Growth ("App Clip and responsive web are
 *  first-class recipient surfaces") was never being met.
 *
 *  Strategy: keep phone as one column, then switch the event page to
 *  actual two-column composition on wide surfaces instead of merely
 *  scaling a phone column.
 *  The mobile rules above (max-width: 460px) stay in effect for
 *  screens ≤ 600px so the existing iOS Clip / mobile Safari
 *  experience is unchanged.
 * ───────────────────────────────────────────────────────────────── */

@media (min-width: 600px) {
  #clip-flow-root {
    width: min(100%, 680px);
    padding: 32px var(--space-page) calc(var(--space-page) + 24px);
    gap: 32px;
  }
}

@media (min-width: 900px) {
  #clip-flow-root {
    width: min(100%, 1040px);
    padding: 40px 40px calc(var(--space-page) + 32px);
    gap: 36px;
  }
}

@media (min-width: 1200px) {
  #clip-flow-root {
    width: min(100%, 1180px);
    padding: 48px 48px calc(var(--space-page) + 40px);
  }
}

@media (min-width: 600px) {
  .clip-action-grid {
    gap: var(--space-md);
  }
}

@media (min-width: 900px) {
  .clip-event-response-section {
    max-width: 640px;
    margin: 0 auto;
  }

  .clip-screen[data-screen='overview'] .clip-primary-cta {
    position: static;
  }
}

/* ─────────────────────────────────────────────────────────────────
 *  Header
 * ───────────────────────────────────────────────────────────────── */

.clip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.clip-header--sticky {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  padding: var(--space-sm) 0;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-sm);
  border-bottom: 1px solid var(--border);
}

.clip-header__brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.clip-header__segmented {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  align-self: center;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

/* R8: the active pill SLIDES between equal-width tabs. The indicator is
   width-50% and translates 0% ↔ 100%; one-shot keyframes animate the
   move only on a real tab change (gated in app.js so re-renders don't
   replay it — the "page shifts in a weird way" report). */
.clip-header__indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: var(--radius-pill);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(16, 20, 28, 0.08);
  pointer-events: none;
}
.clip-header__indicator--right { transform: translateX(100%); }
@keyframes clip-seg-to-right {
  from { transform: translateX(0); }
  to { transform: translateX(100%); }
}
@keyframes clip-seg-to-left {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.clip-header__indicator--animate-right { animation: clip-seg-to-right 220ms ease-out; }
.clip-header__indicator--animate-left { animation: clip-seg-to-left 220ms ease-out; }

.clip-header__tab {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}

.clip-header__tab--active {
  color: var(--text-primary);
  font-weight: 600;
  position: relative;
  z-index: 1;
}
.clip-header__tab { position: relative; z-index: 1; text-align: center; }

.clip-event-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding: var(--space-md) 0;
}

.clip-event-info__hero {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Full-bleed hero on mobile — break out of #clip-flow-root's
 * horizontal padding via negative margin so the image edges sit flush
 * with the viewport. ``aspect-ratio`` reserves the slot so the layout
 * doesn't jump while the image decodes. Wider breakpoints below round
 * the corners back and cap height for readable composition. */
.clip-event-info__hero-figure {
  margin: 0;
  display: block;
  margin-left: calc(-1 * var(--space-page));
  margin-right: calc(-1 * var(--space-page));
  width: calc(100% + 2 * var(--space-page));
}

.clip-event-info__hero-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0;
}

@media (min-width: 600px) {
  .clip-event-info__hero-figure {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }
  .clip-event-info__hero-img {
    border-radius: var(--radius-card);
    aspect-ratio: 16 / 9;
    max-height: min(60vh, 360px);
  }
}

.clip-event-info__title {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
}

.clip-event-info__host {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.clip-event-info__host-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  background: var(--surface-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-weight: 600;
  font-size: 13px;
}

.clip-event-info__host-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.clip-event-info__host-byline {
  font-size: 14px;
  color: var(--text-secondary);
}

.clip-event-info__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
}

.clip-brand {
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.clip-app-clip-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--mint-soft);
  color: var(--mint-text);
  border: 1px solid var(--mint);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.clip-app-clip-badge svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────────────
 *  Loading / error
 * ───────────────────────────────────────────────────────────────── */

.clip-loading,
.clip-error {
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
  color: var(--text-secondary);
}

/* AI loading variant (Fix 5: loading_flicker) — centered card with
 * the same Lottie motion graphic the agent avatar uses, so the very
 * first paint shows the brand assistant rather than a static
 * placeholder. The card grows to fill the available height in the
 * flex column so the spinner is visually centered in the viewport
 * regardless of safe-area inset. */
.clip-loading--ai {
  flex: 1 1 auto;
  min-height: min(100dvh, 100vh);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl) var(--space-md);
}

.clip-loading-card--ai {
  box-shadow: none;
  border: none;
  background: transparent;
  gap: var(--space-md);
  padding: var(--space-md);
}

.clip-loading-lottie {
  width: 120px;
  height: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.clip-loading-lottie svg {
  width: 100%;
  height: 100%;
}

.clip-error h2 {
  color: var(--text-primary);
  font-size: 20px;
  margin: 0 0 var(--space-sm);
}

.clip-error p {
  margin: 0;
  font-size: 15px;
}

/* ─────────────────────────────────────────────────────────────────
 *  Screen container + flash
 * ───────────────────────────────────────────────────────────────── */

.clip-screen {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.clip-screen[data-screen='pickTime'],
.clip-screen[data-screen='changePlan'] {
  text-align: left;
}

.clip-flash {
  background: var(--mint-soft);
  color: var(--mint-text);
  border: 1px solid var(--mint);
  border-radius: var(--radius-input);
  padding: var(--space-md) var(--space-lg);
  font-size: 14px;
  text-align: center;
}

/* Critical flash — used for required-field failures (phone validation,
 * picker validation). Bright red so it actually captures attention
 * (image 1 of the May 9 critical-fixes batch). */
.clip-flash--critical {
  background: #fff1f1;
  color: #b00020;
  border: 1.5px solid #b00020;
  font-weight: 600;
  text-align: left;
}

/* Error severity flash (Fix 6: error_alerts).  Distinct from
 * ``--critical`` (which is the legacy phone-validation banner): this
 * variant is for server-side failures + provider-unavailable
 * messages.  Red/orange palette, prominent left border accent, alert
 * icon, larger padding, and auto-scroll into view at render time so
 * a recipient on a tall surface can't miss the failure. */
.clip-flash--error {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  background: #fee4e2;
  color: #7a1c0e;
  border: 1px solid #fda29b;
  border-left: 4px solid #d92d20;
  border-radius: var(--radius-input);
  padding: var(--space-md) var(--space-lg);
  font-weight: 600;
  text-align: left;
  line-height: 1.45;
}

.clip-flash--error .clip-flash__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d92d20;
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

.clip-flash--error .clip-flash__icon svg {
  width: 20px;
  height: 20px;
}

.clip-flash--error .clip-flash__text {
  flex: 1;
  min-width: 0;
}

/* Phone input error state — paired with .clip-flash--critical so the
 * row the user must act on is visually distinct from the rest of the
 * form. The row gets a soft red wash; the inputs get a bold red border. */
.clip-phone-row--error {
  background: #fff5f5;
  border-radius: var(--radius-input);
  padding: 4px;
}

.clip-phone-input--error {
  border-color: #b00020 !important;
  box-shadow: 0 0 0 2px rgba(176, 0, 32, 0.18);
}

.clip-loading-overlay {
  position: fixed;
  inset: 0;
  /* R13-11: must stack ABOVE the calendar sheet backdrop (z-50) — the
     legacy pill path's spinner rendered invisibly behind it. */
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
}

.clip-loading-card {
  width: min(100%, 320px);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-align: center;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.14);
}

.clip-loading-card strong {
  font-size: 18px;
  line-height: 1.2;
}

.clip-loading-card span:last-child {
  color: var(--text-secondary);
  font-size: 14px;
}

.clip-loading-spinner {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  border: 3px solid var(--mint);
  border-top-color: var(--mint-text);
  animation: clip-spin 0.85s linear infinite;
}

@keyframes clip-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Distinct preferences-card wrapper used on the Change-the-plan
 * screen so "What would you prefer?" reads as its own decision area
 * (image 3 of the May 9 critical-fixes batch). Heavier border + a
 * subtle mint background tint so the card visually pops without
 * competing with the primary CTA. */
.clip-preferences-card {
  background: linear-gradient(180deg, var(--mint-soft) 0%, var(--surface) 60%);
  border: 1.5px solid var(--mint);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
  margin-top: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.02), 0 10px 24px rgba(15, 23, 42, 0.06);
}

.clip-inline-error {
  margin: -4px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: #b00020;
  background: #fff5f5;
  border: 1px solid rgba(176, 0, 32, 0.2);
  border-radius: var(--radius-input);
  padding: 8px 12px;
}

/* Empty-state fallback when there are zero suggested time chips. */
.clip-alt-empty {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--surface-soft);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-input);
  padding: var(--space-sm) var(--space-md);
}

.clip-preferences-card .clip-section-title {
  margin: 0;
}

.clip-section-subtitle {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: none;
  letter-spacing: 0;
}

.clip-different-place {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.clip-different-place-input {
  width: 100%;
  padding: var(--space-md);
  font-size: 16px;
  border-radius: var(--radius-input);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
}

.clip-different-place-input:focus {
  outline: none;
  border-color: var(--mint);
  box-shadow: 0 0 0 2px var(--mint-soft);
}

.clip-selected-place {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  border: 1px solid var(--mint);
  background: var(--mint-soft);
  border-radius: var(--radius-input);
  padding: var(--space-sm) var(--space-md);
}

.clip-selected-place-icon {
  width: 24px;
  height: 24px;
  color: var(--mint-text);
  flex-shrink: 0;
}

.clip-selected-place-label {
  flex: 1;
  min-width: 0;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
}

.clip-selected-place-change {
  border: 0;
  background: transparent;
  color: var(--mint-text);
  font-size: 13px;
  font-weight: 700;
  padding: 4px;
}

.clip-alt-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.clip-alt-custom {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.clip-alt-custom-input {
  width: 100%;
  padding: var(--space-md);
  font-size: 16px;
  border-radius: var(--radius-input);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
}

.clip-alt-custom-input:focus {
  outline: none;
  border-color: var(--mint);
  box-shadow: 0 0 0 2px var(--mint-soft);
}

/* ─────────────────────────────────────────────────────────────────
 *  Avatar connector hero
 * ───────────────────────────────────────────────────────────────── */

.clip-avatar-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin: 0;
}

.clip-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-pill);
  background: var(--surface-soft);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

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

.clip-avatar.bot {
  background: var(--black);
  color: var(--text-on-dark);
  border-color: var(--black);
  letter-spacing: -0.02em;
}

.clip-avatar-hub {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  background: var(--mint-soft);
  border: 1px solid var(--mint);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-primary);
}

.clip-avatar-hub svg {
  width: 18px;
  height: 18px;
}

.clip-dot-line {
  flex: 0 1 32px;
  height: 0;
  border-top: 1.5px dashed var(--border-strong);
  min-width: 16px;
}

/* ─────────────────────────────────────────────────────────────────
 *  Hero copy
 * ───────────────────────────────────────────────────────────────── */

.clip-hero-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  text-align: center;
}

.clip-screen[data-screen='pickTime'] .clip-hero-block,
.clip-screen[data-screen='changePlan'] .clip-hero-block {
  text-align: left;
}

.clip-hero-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text-primary);
}

.clip-hero-sub {
  margin: 0;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.45;
}

.clip-heading {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  text-align: center;
}

.clip-screen[data-screen='pickTime'] .clip-heading,
.clip-screen[data-screen='changePlan'] .clip-heading {
  text-align: left;
}

.clip-heading h1 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

.clip-heading p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.45;
}

.clip-event-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.clip-concierge-intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* R10 parity: bubbles match the native thread exactly — borderless,
   18px radius with a 6px tail corner, 15px text. */
.clip-chat-bubble {
  max-width: 88%;
  align-self: flex-start;
  background: #f1f2f5;
  border: none;
  border-radius: 18px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.45;
}

.clip-event-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  align-items: start;
}

.clip-event-response-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
}

.clip-event-response-section > .clip-plan-card {
  border: 0;
  border-radius: 0;
  padding: 0 0 var(--space-md);
}

.clip-event-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  min-width: 0;
  width: 100%;
  border-top: 1px solid var(--border);
  padding-top: var(--space-lg);
}

.clip-inline-panel {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  animation: clip-inline-panel-enter 180ms ease-out;
  scroll-margin-top: var(--space-page);
}

@keyframes clip-inline-panel-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.clip-inline-panel-heading {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.clip-inline-panel-heading h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.clip-inline-panel-heading p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.clip-consent-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.clip-phone-confirm {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  background: var(--surface-soft);
}

.clip-phone-confirm-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  background: var(--mint-soft);
  color: var(--mint-text);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.clip-phone-confirm-icon svg {
  width: 18px;
  height: 18px;
}

.clip-phone-confirm-copy {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.clip-phone-confirm-line {
  font-size: 15px;
  line-height: 1.2;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.clip-phone-confirm-line strong {
  color: var(--text-primary);
}

.clip-phone-change {
  border: 0;
  background: transparent;
  color: var(--mint-text);
  font-weight: 700;
  padding: var(--space-xs);
}

/* ─────────────────────────────────────────────────────────────────
 *  Plan card (overview, looks-good, all-set)
 * ───────────────────────────────────────────────────────────────── */

.clip-plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 0;
  cursor: pointer;
}

.clip-plan-host {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
}

.clip-plan-host-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--text-secondary);
}

.clip-plan-host-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.clip-plan-host-byline {
  font-size: 14px;
  color: var(--text-secondary);
}

.clip-plan-host-byline strong {
  color: var(--text-primary);
  font-weight: 700;
}

.clip-plan-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
}

.clip-plan-row:last-child {
  border-bottom: none;
}

.clip-plan-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  background: var(--mint-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-primary);
}

.clip-plan-icon svg {
  width: 18px;
  height: 18px;
}

.clip-plan-text {
  flex: 1;
  min-width: 0;
}

.clip-plan-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  font-weight: 600;
  margin-bottom: 2px;
}

.clip-plan-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  word-wrap: break-word;
}

.clip-plan-link {
  display: inline-flex;
  color: var(--text-primary);
  text-decoration-color: var(--mint-strong);
  text-underline-offset: 3px;
}

.clip-time-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.clip-time-pill {
  display: inline-flex;
  align-items: center;
  background: var(--mint-soft);
  color: var(--mint-text);
  border: 1px solid var(--mint);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
}

.clip-plan-details-button {
  align-self: flex-start;
  border: 0;
  background: transparent;
  color: var(--mint-text);
  font-weight: 700;
  padding: var(--space-sm) 0 0;
}

.clip-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(10, 12, 15, 0.24);
  padding: var(--space-lg);
}

.clip-modal-card {
  width: min(100%, 520px);
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.clip-modal-card h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.clip-details-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.clip-details-list div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.clip-details-list dt {
  color: var(--text-tertiary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.clip-details-list dd {
  margin: 0;
  color: var(--text-primary);
  font-weight: 700;
}

.clip-modal-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.clip-modal-map,
.clip-modal-close {
  min-height: 46px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.clip-modal-map {
  background: var(--mint-soft);
  color: var(--mint-text);
  text-decoration: none;
}

.clip-modal-close {
  border: 0;
  background: var(--black);
  color: var(--text-on-dark);
}

/* ─────────────────────────────────────────────────────────────────
 *  Compact summary card (pickTime + changePlan)
 * ───────────────────────────────────────────────────────────────── */

.clip-compact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-md) var(--space-lg);
}

.clip-compact-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

.clip-compact-strip .clip-plan-row {
  border-bottom: none;
  padding: 0;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.clip-compact-strip .clip-plan-icon {
  width: 32px;
  height: 32px;
}

.clip-compact-strip .clip-plan-icon svg {
  width: 16px;
  height: 16px;
}

.clip-compact-strip .clip-plan-label {
  font-size: 10px;
}

.clip-compact-strip .clip-plan-value {
  font-size: 13px;
}

/* ─────────────────────────────────────────────────────────────────
 *  Action grid (overview) — 2×2 green-tinted card grid (screenshot 16)
 *  Icon centered at the top, label centered below it. The grid stays
 *  exactly 2 columns even on wide viewports because the SPA caps to
 *  ~460px.
 * ───────────────────────────────────────────────────────────────── */

.clip-action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

.clip-action-btn {
  /* Default = neutral grey for ALL four chips. The tapped chip
     animates into its tone color via the ``--selected`` modifier
     below; the other three fade to ~40% opacity (clip-action-btn--
     muted) and become un-tappable. This swap happens after the
     user taps so no chip feels "claimed" before any decision. */
  --chip-accent: var(--border);
  --chip-accent-soft: var(--surface-soft);
  --chip-accent-strong: var(--text-secondary);
  --chip-accent-text: var(--text-primary);
  background: var(--chip-accent-soft);
  border: 1px solid var(--chip-accent);
  border-radius: var(--radius-tile);
  padding: var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  min-height: 112px;
  transition: opacity 120ms ease, border-color 120ms ease,
    background 120ms ease, transform 80ms ease;
}

.clip-action-btn:hover:not(:disabled),
.clip-action-btn:focus-visible {
  border-color: var(--chip-accent-strong);
  background: var(--chip-accent);
  outline: none;
}

.clip-action-btn:active {
  transform: scale(0.98);
}

/* Selected: animate into the tone color. The per-tone modifier
   below sets the chip-accent variables; the ``--selected`` flag
   simply lets the renderer opt-in. */
.clip-action-btn--selected {
  background: var(--chip-accent-soft);
  border-color: var(--chip-accent);
  color: var(--chip-accent-text);
}

/* ──────────────────────────────────────────────────────────────────
 *  Per-tone chip palette. Mirrors the native theme tokens:
 *    affirmative  → green (Looks good)
 *    neutral      → blue  (New time)
 *    creative     → purple (New place / activity)
 *    destructive  → muted red (Decline)
 *  Each tone overrides the accent variables on the base tile so the
 *  background, border, hover state, and inner icon circle all shift
 *  together.
 * ────────────────────────────────────────────────────────────────── */

.clip-action-btn--affirmative {
  --chip-accent: #BCDFCB;
  --chip-accent-soft: #E2F3E8;
  --chip-accent-strong: #6BA083;
  --chip-accent-text: #3F7F5C;
}

.clip-action-btn--neutral {
  --chip-accent: #BAD0EC;
  --chip-accent-soft: #E0EBF8;
  --chip-accent-strong: #6E97C4;
  --chip-accent-text: #3D6FA8;
}

.clip-action-btn--creative {
  --chip-accent: #D0BFE2;
  --chip-accent-soft: #ECE3F4;
  --chip-accent-strong: #8E7AB1;
  --chip-accent-text: #6E519A;
}

.clip-action-btn--destructive {
  --chip-accent: #F1C8CF;
  --chip-accent-soft: #FAEFF0;
  --chip-accent-strong: #C68993;
  --chip-accent-text: #94545A;
}

.clip-action-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--chip-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--chip-accent-text);
}

.clip-action-icon svg {
  width: 20px;
  height: 20px;
}

.clip-action-label {
  display: block;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* ─────────────────────────────────────────────────────────────────
 *  Info callout (mint banner)
 * ───────────────────────────────────────────────────────────────── */

.clip-info-callout {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  background: var(--mint-soft);
  border: 1px solid var(--mint);
  border-radius: var(--radius-input);
  padding: var(--space-md) var(--space-lg);
  color: var(--mint-text);
  font-size: 14px;
  line-height: 1.4;
}

.clip-info-callout-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ─────────────────────────────────────────────────────────────────
 *  Primary / secondary buttons
 * ───────────────────────────────────────────────────────────────── */

.clip-primary-cta {
  background: var(--black);
  color: var(--text-on-dark);
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 17px;
  padding: 0 var(--space-lg);
  height: 64px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  transition: opacity 120ms ease;
  position: static;
}

.clip-primary-cta:hover {
  opacity: 0.92;
}

.clip-primary-cta:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.clip-tertiary-link {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  padding: var(--space-sm) var(--space-lg);
  text-decoration: none;
  align-self: center;
}

.clip-tertiary-link:hover {
  color: var(--text-primary);
}

/* ─────────────────────────────────────────────────────────────────
 *  Step explainer card (letCoordinate)
 * ───────────────────────────────────────────────────────────────── */

.clip-explainer {
  list-style: none;
  margin: 0;
  padding: var(--space-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
}

.clip-explainer li {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.clip-explainer li:last-child {
  border-bottom: none;
}

.clip-explainer-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  background: var(--mint-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.clip-explainer-icon svg {
  width: 18px;
  height: 18px;
}

/* ─────────────────────────────────────────────────────────────────
 *  Phone field
 * ───────────────────────────────────────────────────────────────── */

.clip-phone-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.clip-input-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.clip-phone-row {
  display: flex;
  gap: var(--space-sm);
}

.clip-country-code {
  width: 76px;
  height: 56px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  text-align: center;
  font-weight: 600;
  color: var(--text-primary);
  padding: 0 var(--space-sm);
}

.clip-phone-input {
  flex: 1;
  height: 56px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  padding: 0 var(--space-md);
  color: var(--text-primary);
}

.clip-country-code:focus,
.clip-phone-input:focus {
  outline: none;
  border-color: var(--text-primary);
}

.clip-phone-input::placeholder,
.clip-country-code::placeholder {
  color: var(--text-tertiary);
}

.clip-phone-help {
  margin: 0;
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ─────────────────────────────────────────────────────────────────
 *  Calendar block
 * ───────────────────────────────────────────────────────────────── */

.clip-calendar-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.clip-calendar-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.clip-cal-btn {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  padding: var(--space-md);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  min-height: 56px;
  transition: border-color 120ms ease;
}

.clip-cal-btn:hover {
  border-color: var(--border-strong);
}

.clip-cal-btn:disabled {
  cursor: not-allowed;
  color: var(--text-secondary);
  background: var(--surface-soft);
}

.clip-cal-btn.is-loading {
  opacity: 0.7;
}

.clip-cal-btn-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.clip-cal-btn-icon svg {
  width: 24px;
  height: 24px;
}

.clip-cal-btn-label {
  flex: 1;
}

.clip-cal-btn-chevron {
  width: 16px;
  height: 16px;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.clip-cal-btn-status {
  color: var(--text-tertiary);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

/* Compact pill row used on pickTime / changePlan */
.clip-calendar-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.clip-calendar-pills .clip-cal-btn {
  flex: 1 1 calc(33% - 8px);
  min-width: 110px;
  padding: 10px 14px;
  font-size: 13px;
  min-height: 44px;
  gap: 8px;
}

.clip-calendar-pills .clip-cal-btn-icon {
  width: 20px;
  height: 20px;
}

.clip-calendar-pills .clip-cal-btn-icon svg {
  width: 18px;
  height: 18px;
}

.clip-calendar-pills .clip-cal-btn-chevron {
  display: none;
}

.clip-calendar-confirm {
  margin: 0;
  font-size: 13px;
  color: var(--mint-text);
  font-weight: 600;
}

/* ─────────────────────────────────────────────────────────────────
 *  Slot picker (looksGood)
 * ───────────────────────────────────────────────────────────────── */

.clip-slot-radio-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.clip-slot-radio {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  padding: var(--space-md);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
}

.clip-slot-radio input[type='radio'] {
  accent-color: var(--text-primary);
  width: 18px;
  height: 18px;
}

.clip-slot-radio.selected {
  border-color: var(--mint-strong);
  background: var(--mint-soft);
}

/* ─────────────────────────────────────────────────────────────────
 *  Pick-better-time alt grid
 * ───────────────────────────────────────────────────────────────── */

.clip-section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.clip-alt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.clip-alt-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  padding: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  min-height: 56px;
}

.clip-alt-tile-radio {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-strong);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clip-alt-tile.selected {
  border-color: var(--mint-strong);
  background: var(--mint-soft);
}

.clip-alt-tile.selected .clip-alt-tile-radio {
  border-color: var(--mint-strong);
  background: var(--mint-strong);
}

.clip-alt-tile.selected .clip-alt-tile-radio::after {
  content: '';
  width: 8px;
  height: 8px;
  background: white;
  border-radius: var(--radius-pill);
}

/* ─────────────────────────────────────────────────────────────────
 *  Change-the-plan option grid
 * ───────────────────────────────────────────────────────────────── */

.clip-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.clip-option-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-tile);
  padding: var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  min-height: 110px;
  transition: border-color 120ms ease, background 120ms ease;
}

.clip-option-tile-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: var(--mint-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.clip-option-tile-icon svg {
  width: 20px;
  height: 20px;
}

.clip-option-tile.selected {
  border-color: var(--mint-strong);
  background: var(--mint-soft);
}

.clip-option-tile.selected .clip-option-tile-icon {
  background: var(--mint);
}

/* Timing toggle row (changePlan) */

.clip-timing-row {
  display: flex;
  gap: var(--space-sm);
}

.clip-timing-pill {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  padding: var(--space-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  min-height: 48px;
}

.clip-timing-pill svg {
  width: 16px;
  height: 16px;
}

.clip-timing-pill.selected {
  border-color: var(--mint-strong);
  background: var(--mint-soft);
}

/* ─────────────────────────────────────────────────────────────────
 *  Status chips (allSet)
 * ───────────────────────────────────────────────────────────────── */

.clip-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.clip-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--mint-soft);
  border: 1px solid var(--mint);
  color: var(--mint-text);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
}

.clip-pill svg {
  width: 14px;
  height: 14px;
}

.clip-install-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-lg);
  border-radius: var(--radius-card);
  background: var(--mint-soft);
  border: 1px solid var(--mint);
}

.clip-install-card h2,
.clip-install-card p {
  margin: 0;
}

.clip-install-card h2 {
  color: var(--mint-text);
  font-size: 20px;
  line-height: 1.2;
}

.clip-install-card p {
  color: var(--mint-text);
  font-size: 14px;
}

.clip-install-button {
  min-height: 46px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  color: var(--text-on-dark);
  font-weight: 700;
  text-decoration: none;
  padding: 0 var(--space-lg);
}

/* ─────────────────────────────────────────────────────────────────
 *  Consent micro-copy
 * ───────────────────────────────────────────────────────────────── */

.clip-consent-microcopy {
  margin: 0;
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.clip-consent-microcopy svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ─────────────────────────────────────────────────────────────────
 *  Misc
 * ───────────────────────────────────────────────────────────────── */

.clip-screen-header-strip {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: 0;
}

.clip-screen-header-strip .clip-avatar {
  width: 48px;
  height: 48px;
}

/* Coordination state card — used on every non-terminal recipient screen
 * to show who acts next, the expected next event, ETA, and how the
 * recipient will be notified. Mirrors the React Native CoordinationStateCard.
 */
.coordination-state-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.coordination-state-card__header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.coordination-state-card__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}
.coordination-state-card__subtitle {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.4;
}
.coordination-state-card__row {
  display: flex;
  flex-direction: row;
  gap: var(--space-lg);
}
.coordination-state-card__cell {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.coordination-state-card__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  text-transform: uppercase;
}
.coordination-state-card__value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}
.coordination-state-card__notification {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}
.coordination-state-card__change {
  align-self: flex-start;
  background: transparent;
  border: 0;
  padding: var(--space-xs) 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--mint-text);
  cursor: pointer;
}

.clip-counter-pending {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.clip-chat-shell {
  min-height: 100dvh;
  background: var(--surface);
  display: flex;
  flex-direction: column;
}

.clip-screen[data-screen='counterPending'] {
  min-height: 100dvh;
  gap: 0;
}

.clip-chat-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: max(14px, env(safe-area-inset-top)) var(--space-lg) 12px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.clip-chat-back {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text-primary);
  border-radius: var(--radius-pill);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.clip-chat-title {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.clip-chat-title strong {
  font-size: 15px;
  line-height: 1.2;
}

.clip-chat-title span {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.clip-chat-status {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border);
  background: var(--surface-soft);
}

.clip-chat-status-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  color: var(--text-on-dark);
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

.clip-chat-status p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.35;
}

.clip-chat-status-kicker {
  color: var(--text-primary) !important;
  font-weight: 800;
}

.clip-chat-phone {
  padding: 0 var(--space-lg);
}

/* ─────────────────────────────────────────────────────────────────
 *  Agent thread (counter-pending transcript)
 *  Lightweight chat UI showing the recipient's submitted text + any
 *  agent replies. Polled from /api/clip/{token}/messages.
 * ───────────────────────────────────────────────────────────────── */

.clip-thread {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  background: var(--surface);
  border: 0;
  border-radius: 0;
  padding: var(--space-md) 0 0;
  min-height: 0;
  flex: 1;
}

.clip-thread-list {
  list-style: none;
  margin: 0;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
}

.clip-thread-empty {
  margin: 0;
  font-size: 13px;
  color: var(--text-tertiary);
  text-align: center;
  padding: var(--space-md);
}

.clip-thread-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

/* Inbound (recipient sent) → bubble + avatar pair on the right side. */
.clip-thread-row--inbound {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

/* Outbound (Linq agent / host side) → avatar + bubble on the left. */
.clip-thread-row--outbound {
  flex-direction: row;
  justify-content: flex-start;
}

.clip-thread-avatar {
  width: 28px;
  height: 28px;
  font-size: 11px;
  flex-shrink: 0;
}

.clip-thread-bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.clip-thread-row--inbound .clip-thread-bubble {
  background: var(--black);
  color: var(--text-on-dark);
  border-bottom-right-radius: 6px;
}

.clip-thread-row--outbound .clip-thread-bubble {
  background: var(--mint-soft);
  color: var(--mint-text);
  border: 1px solid var(--mint);
  border-bottom-left-radius: 6px;
}

.clip-thread-busy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  background: var(--mint-soft);
  border: 1px solid var(--mint);
  color: var(--mint-text);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
}

.clip-thread-busy-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--mint-strong);
  animation: clip-thread-busy-pulse 1.2s ease-in-out infinite;
}

.clip-thread-busy-dot:nth-child(2) {
  animation-delay: 160ms;
}

.clip-thread-busy-dot:nth-child(3) {
  animation-delay: 320ms;
}

@keyframes clip-thread-busy-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.clip-thread-composer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: var(--space-sm) var(--space-lg) calc(var(--space-sm) + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.clip-thread-typing-bubble {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 54px;
  min-height: 36px;
}

.clip-thread-input {
  flex: 1;
  height: 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  padding: 0 var(--space-md);
  color: var(--text-primary);
  font-size: 14px;
}

.clip-thread-input:focus {
  outline: none;
  border-color: var(--text-primary);
}

.clip-thread-send {
  height: 44px;
  padding: 0 var(--space-lg);
  background: var(--black);
  color: var(--text-on-dark);
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
}

.clip-thread-send:hover {
  opacity: 0.92;
}
.clip-secondary {
  align-self: stretch;
  padding: 14px var(--space-lg);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
}

/* Decline reason picker — canonical 8-reason taxonomy with optional
 * note. Mirrors the React Native DeclineSheet visually so the web
 * fallback is a 1:1 parity surface.
 */
.clip-decline-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.clip-decline-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 14px;
  border-radius: var(--radius-input);
  border: 1px solid var(--border);
  background: var(--surface-soft);
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}
.clip-decline-row.selected {
  border-color: var(--mint-strong);
  background: var(--mint-soft);
  color: var(--mint-text);
  font-weight: 700;
}
.clip-decline-row input[type='radio'] {
  accent-color: var(--mint-text);
}
.clip-decline-row-label {
  flex: 1;
}
.clip-decline-note {
  width: 100%;
  min-height: 80px;
  padding: 12px 14px;
  border-radius: var(--radius-input);
  border: 1px solid var(--border);
  background: var(--surface-soft);
  font-family: var(--font-stack);
  font-size: 15px;
  color: var(--text-primary);
  resize: vertical;
}

/* ─────────────────────────────────────────────────────────────────
 *  Places autocomplete (Different place tile)
 * ───────────────────────────────────────────────────────────────── */

.clip-places-autocomplete {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  position: relative;
}

.clip-places-status {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.clip-places-results {
  list-style: none;
  margin: 0;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  display: none;
  max-height: 240px;
  overflow-y: auto;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.clip-places-result {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  color: var(--text-primary);
  transition: background 120ms ease;
}

.clip-places-result:hover,
.clip-places-result:focus-visible {
  background: var(--mint-soft);
}

.clip-places-result.selected {
  background: var(--mint-soft);
  border: 1px solid var(--mint);
}

.clip-places-result-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
}

.clip-places-result-addr {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* ─────────────────────────────────────────────────────────────────
 * Recipient concierge chat shell (overview screen rebuild).
 *
 * Sticky composer at the bottom of the viewport, scrolling
 * transcript area in the middle, and a contextual footer with the
 * calendar nudge + tertiary links sitting just above the composer.
 * Mirrors the native ``RecipientConciergeScreen`` layout so both
 * surfaces feel like a real live LLM chat.
 * ───────────────────────────────────────────────────────────────── */

.clip-concierge-shell {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding-bottom: 0;
  flex: 1 1 auto;
  min-height: 0;
}

/* Desktop: #clip-flow-root grows to 1040/1180px on wide viewports,
 * but a chat column that wide is unreadable (and the place cards
 * stretched to ~750px each). Clamp the conversation surfaces —
 * banner, transcript, sticky composer — to a centered ~680px column
 * so the concierge reads like a native chat app on laptops too. */
@media (min-width: 900px) {
  .clip-concierge-shell .clip-status-banner,
  .clip-concierge-transcript,
  .clip-concierge-composer {
    width: 100%;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Cinematic slide-in entrance applied to every staged-reveal element
 * (intro bubble, plan card bubble, agent reply, recipient reply, chip
 * strip). Mirrors the native ``SlideInWrapper`` Reanimated entry:
 * fade 0→1 + translateY(8px)→0 over ~250ms with an ease-out curve.
 *
 * ``prefers-reduced-motion`` collapses the animation to nothing so
 * the cascade still feels paced (typing dots + state advances) but
 * never violates the user's accessibility preference. */

.clip-slide-in {
  animation: clip-slide-in 250ms ease-out both;
}

/* Animate-once gate (Fix 5: loading_flicker). After the first paint
 * the persistent transcript tags each rendered entry with
 * ``data-animated="true"`` so subsequent renders never replay the
 * entrance — that was the "double then collapse" pop the user saw
 * on every 1s poll tick. */
.clip-slide-in[data-animated='true'] {
  animation: none !important;
}

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

@media (prefers-reduced-motion: reduce) {
  .clip-slide-in {
    animation: none;
  }
}

/* Screen-level entrances — mirrors the native keyed screen
 * transitions: fade + rise for surface swaps (loading → overview,
 * back to overview), slide-from-right for forward moves (overview →
 * decision / terminal screens). ``app.js`` applies these only when
 * ``data-screen`` actually changed since the last paint, so the 1s
 * poll-tick re-renders never replay the entrance. */
.clip-screen-enter {
  animation: clip-screen-enter var(--motion-enter-ms) var(--motion-ease-out) both;
}
.clip-screen-enter-forward {
  animation: clip-screen-enter-forward var(--motion-screen-ms) var(--motion-ease-out)
    both;
}
@keyframes clip-screen-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes clip-screen-enter-forward {
  from {
    opacity: 0.5;
    transform: translateX(28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .clip-screen-enter,
  .clip-screen-enter-forward {
    animation: none;
  }
}

/* Lottie agent avatar — wraps every agent (outbound) bubble + every
 * typing-dots row in a left-aligned row. The 28×28 wrapper hosts the
 * lazy-loaded Lottie SVG renderer so the recipient feels like the
 * assistant is actively present. Mirrors the native ``agentRow`` /
 * ``AgentAvatar`` styles. */

.clip-agent-row {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: var(--space-xs);
  align-self: flex-start;
  max-width: 94%;
}

.clip-agent-row > .clip-chat-bubble {
  flex-shrink: 1;
  min-width: 0;
}

.clip-agent-avatar {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-pill);
  background: var(--surface-soft);
  flex-shrink: 0;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.clip-agent-avatar svg {
  width: 100%;
  height: 100%;
}

/* ──────────────────────────────────────────────────────────────────
 *  Concierge transcript cards (chip-tap follow-ups)
 *  Phone confirm card, calendar card, save-to-calendar card, and
 *  App Store CTA all live inside the chat as full-width tappable
 *  cards. Mirrors the native ``card`` / ``cardRow`` / ``cardRow--
 *  primary`` styles in ``RecipientConciergeScreen.tsx``.
 * ────────────────────────────────────────────────────────────────── */

.clip-card {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-sm);
}

/* Phone confirm card — matches the event card vocabulary (rounded
 * sage border, internal padding, top icon) so the confirmation step
 * feels like part of the plan, not an inline form. */
.clip-phone-card {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-lg);
  background: var(--mint-soft);
  border: 1px solid var(--mint);
  border-radius: var(--radius-card);
}

.clip-phone-card--resolved {
  opacity: 0.5;
}

.clip-phone-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.clip-phone-card__icon {
  font-size: 18px;
}

.clip-phone-card__title {
  font-weight: 700;
  color: var(--mint-text);
  font-size: 15px;
}

.clip-phone-card__consent,
.clip-consent-agreement__row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  cursor: pointer;
}

.clip-phone-card__consent-box,
.clip-consent-agreement__box {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--mint-text);
}

.clip-phone-card__consent-text,
.clip-consent-agreement__text {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.45;
}

.clip-phone-card__footnote {
  margin: 0;
  font-size: 11px;
  color: var(--text-tertiary, var(--text-secondary));
  line-height: 1.4;
  text-align: center;
}

.clip-phone-card__footnote a {
  color: inherit;
  text-decoration: underline;
}

.clip-consent-agreement__legal {
  margin: 0;
  font-size: 11px;
  color: var(--text-tertiary, var(--text-secondary));
}

.clip-consent-agreement__legal a {
  color: inherit;
  text-decoration: underline;
}

.clip-consent-agreement {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.clip-phone-card__editor {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.clip-phone-card__input {
  flex: 1;
  min-height: 40px;
  border-radius: var(--radius-input);
  border: 1px solid var(--border);
  padding: 0 var(--space-md);
  background: var(--surface);
  color: var(--text-primary);
  font-size: 14px;
}

.clip-phone-card__editor-send {
  padding: 8px 14px;
  border-radius: var(--radius-input);
  border: none;
  background: var(--black);
  color: var(--text-on-dark);
  font-size: 14px;
  font-weight: 600;
}

.clip-phone-card__editor-send:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.clip-phone-card__secondary-link {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  align-self: flex-start;
  padding: 0;
}

.clip-card--resolved {
  opacity: 0.5;
}

.clip-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  padding: var(--space-xs);
}

.clip-card-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  background: var(--surface);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.clip-card-row:hover:not(:disabled) {
  border-color: var(--text-primary);
}

.clip-card-row:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.clip-card-row--primary {
  background: var(--black);
  color: var(--text-on-dark);
  border-color: var(--black);
}

.clip-card-row-secondary {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 13px;
  text-align: center;
  padding: var(--space-xs);
  cursor: pointer;
}

.clip-card-row-secondary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.clip-card-cluster {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  align-self: stretch;
}

/* ──────────────────────────────────────────────────────────────────
 *  Concierge chips — native parity (RecipientConciergeScreen
 *  ``responseChip`` styles): compact pills in a wrapping row. Small
 *  pill radius, modest padding, hairline border, neutral grey until a
 *  tap locks the chip into its tone (the same accent-variable palette
 *  the legacy tile grid used); siblings fade to 40%.
 * ────────────────────────────────────────────────────────────────── */

.clip-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  align-self: stretch;
  padding-top: var(--space-xs);
}

.clip-chip {
  --chip-accent: var(--border);
  --chip-accent-soft: var(--surface-soft);
  --chip-accent-strong: var(--text-secondary);
  --chip-accent-text: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--chip-accent);
  background: var(--chip-accent-soft);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  flex: 0 0 auto;
  transition: opacity 120ms ease, border-color 120ms ease,
    background 120ms ease, transform 80ms ease;
}

.clip-chip:hover:not(:disabled),
.clip-chip:focus-visible {
  border-color: var(--chip-accent-strong);
  outline: none;
}

.clip-chip:active {
  transform: scale(0.98);
}

.clip-chip:disabled {
  cursor: not-allowed;
}

.clip-chip--selected {
  background: var(--chip-accent-soft);
  border-color: var(--chip-accent);
  color: var(--chip-accent-text);
}

.clip-chip--muted {
  opacity: 0.4;
}

/* Per-tone accents — same palette as the native chip tones. */
.clip-chip--affirmative {
  --chip-accent: #BCDFCB;
  --chip-accent-soft: #E2F3E8;
  --chip-accent-strong: #6BA083;
  --chip-accent-text: #3F7F5C;
}

.clip-chip--neutral {
  --chip-accent: #BAD0EC;
  --chip-accent-soft: #E0EBF8;
  --chip-accent-strong: #6E97C4;
  --chip-accent-text: #3D6FA8;
}

.clip-chip--creative {
  --chip-accent: #D0BFE2;
  --chip-accent-soft: #ECE3F4;
  --chip-accent-strong: #8E7AB1;
  --chip-accent-text: #6E519A;
}

.clip-chip--destructive {
  --chip-accent: #F1C8CF;
  --chip-accent-soft: #FAEFF0;
  --chip-accent-strong: #C68993;
  --chip-accent-text: #94545A;
}

/* Content-width time pills used inside the concierge time_chips
 * follow-up. Wraps to multiple rows so a long list of host_free_windows
 * doesn't push the row to full width.
 */
.clip-time-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  align-self: stretch;
}

.clip-time-pill-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  flex: 0 0 auto;
}

.clip-time-pill-btn:hover:not(:disabled) {
  border-color: var(--text-primary);
}

.clip-time-pill-btn--selected {
  background: #E0EBF8;
  border-color: #BAD0EC;
  color: #3D6FA8;
}

.clip-time-pill-btn--muted {
  opacity: 0.4;
  cursor: not-allowed;
}

.clip-time-pill-btn--sync {
  background: var(--mint-soft);
  border-color: var(--mint);
  color: var(--mint-text);
}

.clip-time-fallback {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  align-self: stretch;
}

.clip-time-fallback__input {
  flex: 1;
  min-height: 40px;
  border-radius: var(--radius-input);
  border: 1px solid var(--border);
  padding: 0 var(--space-md);
  background: var(--surface);
  color: var(--text-primary);
  font-size: 14px;
}

.clip-time-fallback__send {
  padding: 8px 14px;
  border-radius: var(--radius-input);
  border: none;
  background: var(--black);
  color: var(--text-on-dark);
  font-size: 14px;
  font-weight: 600;
}

.clip-time-fallback__send:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.clip-place-option-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
}

.clip-place-option-name {
  font-weight: 600;
  font-size: 14px;
}

.clip-place-option-addr {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Recipient-side place options (aug0126 compact pass): a mini-map
 * panel (when coordinates are present) above a horizontally
 * scrolling, scroll-snapped row of compact cards so every candidate
 * is visible at once and reachable by a sideways swipe — on mobile
 * AND desktop — instead of the old full-width vertical stack. */
.clip-place-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-self: stretch;
  min-width: 0;
}

.clip-place-option-cluster {
  flex-direction: row;
  gap: var(--space-sm);
  align-items: stretch;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  -webkit-overflow-scrolling: touch;
  /* Breathing room so card borders/focus rings aren't clipped by the
   * scroll box, plus space above the thin scrollbar. */
  padding: 2px 2px 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

.clip-place-option-cluster::-webkit-scrollbar {
  height: 6px;
}

.clip-place-option-cluster::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--radius-pill);
}

.clip-place-option-cluster::-webkit-scrollbar-track {
  background: transparent;
}

.clip-place-option-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  /* Native PlaceSuggestionCard metrics: generous radius, spacing.md
   * padding, hairline border + the soft card shadow. */
  border-radius: var(--radius-card);
  padding: var(--space-md);
  box-shadow: 0 12px 24px rgba(20, 23, 27, 0.06);
  flex: 0 0 auto;
  /* Native unified card width: ~300px with a visible next-card peek,
   * shrinking on narrow phones so the peek survives. */
  width: min(300px, 85vw);
  min-width: 0;
  scroll-snap-align: start;
  box-sizing: border-box;
  transition: border-color 120ms ease-out, background 120ms ease-out;
}

.clip-place-option-card:hover {
  border-color: var(--mint);
  background: var(--surface-soft);
}

.clip-place-option-card--selected {
  border-color: var(--mint);
  background: var(--mint-soft);
}

.clip-place-option-card--muted {
  opacity: 0.45;
  pointer-events: none;
}

/* Unified card body (R15-6): horizontal — square photo thumbnail on
 * the left, info column on the right. Mirrors the native shared chat
 * place-card layout. */
.clip-place-option-card__body {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  text-align: left;
  cursor: pointer;
  width: 100%;
  color: inherit;
  font: inherit;
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}

.clip-place-option-card__body:disabled {
  cursor: default;
}

/* Square left thumbnail. An explicit box keeps portrait source images
 * from rendering at full intrinsic height (the 8:21 screenshot);
 * object-fit crops cleanly inside the padded card. */
.clip-place-option-card__photo {
  display: block;
  flex: 0 0 auto;
  /* Native PHOTO_SIZE (108px square, rounded). */
  width: 108px;
  height: 108px;
  object-fit: cover;
  border-radius: 16px;
  background: var(--surface-soft);
}

/* No-photo fallback: same square footprint, centered pin glyph. */
.clip-place-option-card__photo--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.clip-place-option-card__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  min-width: 0;
}

/* Unified name treatment: 17/700, up to two lines then ellipsis. */
.clip-place-option-card .clip-place-option-name {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  max-width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Rating line directly under the name — "★ 4.6 (1.2K)". */
.clip-place-option-rating {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Address stays a single ellipsized line so cards keep a uniform
 * height in the horizontal row. */
.clip-place-option-card .clip-place-option-addr {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.clip-place-option-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: var(--space-sm);
  row-gap: 4px;
  margin-top: 4px;
}

/* Native metaRow parity: plain 12/600 text items (no emoji, no pill
 * chrome) — walk distance / drive time read as quiet metadata. */
.clip-place-option-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  background: transparent;
  border: none;
  border-radius: 0;
  color: var(--text-primary);
}

/* Native "Open in Maps": full-width secondary pill in the card's
 * action row — surface-muted fill, hairline border, centered label. */
.clip-place-option-card__maps {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--space-xs);
  padding: 10px var(--space-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: border-color 120ms ease-out, background 120ms ease-out;
}

.clip-place-option-card__maps:hover {
  border-color: var(--text-secondary);
}

/* ──────────────────────────────────────────────────────────────────
 *  Unified EVENT card (R15-9)
 *  Web twin of the native chat event card: 72px calendar glyph block
 *  on soft mint (left), info column (right) with status chip, 17/700
 *  title, calendar/pin rows, and a bordered pill action.
 * ────────────────────────────────────────────────────────────────── */

.clip-event-card {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  align-self: stretch;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-tile);
  padding: var(--space-md);
  box-sizing: border-box;
}

.clip-event-card__glyph {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: var(--mint-soft);
  color: var(--mint-text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.clip-event-card__glyph svg {
  width: 32px;
  height: 32px;
}

.clip-event-card__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.clip-event-card__status {
  align-self: flex-start;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--mint-soft);
  border: 1px solid var(--mint);
  color: var(--mint-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.clip-event-card__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
}

.clip-event-card__row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

.clip-event-card__row-icon {
  display: inline-flex;
  flex: 0 0 auto;
}

.clip-event-card__row-icon svg {
  width: 16px;
  height: 16px;
}

.clip-event-card__actions {
  display: flex;
  gap: var(--space-xs);
  margin-top: 4px;
}

.clip-event-card__action {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.clip-event-card__action:hover {
  border-color: var(--text-primary);
}

/* ──────────────────────────────────────────────────────────────────
 *  Unified SHARE card (R15-9)
 *  Dark-green paper-plane badge with a check bubble, "SHARE LINK
 *  READY" kicker, 17/700 title, caption, dark-green pill CTA.
 * ────────────────────────────────────────────────────────────────── */

.clip-share-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  align-items: flex-start;
  align-self: stretch;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-tile);
  padding: var(--space-md);
  box-sizing: border-box;
}

.clip-share-card__badge {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #175e3f;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clip-share-card__badge > svg {
  width: 22px;
  height: 22px;
}

.clip-share-card__badge-check {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  color: #175e3f;
  border: 1.5px solid #175e3f;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clip-share-card__badge-check svg {
  width: 10px;
  height: 10px;
}

.clip-share-card__kicker {
  margin-top: 2px;
  color: #175e3f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.clip-share-card__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
}

.clip-share-card__caption {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.clip-share-card__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: 4px;
}

.clip-share-card__cta {
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: none;
  background: #175e3f;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.clip-share-card__cta:hover {
  background: #124b32;
}

.clip-share-card__view {
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

/* ──────────────────────────────────────────────────────────────────
 *  Mini-map panel (web/clip-flow/miniMap.js)
 *  Dependency-free OSM raster-tile map mounted above the place-card
 *  row. Fixed-height rounded panel matching the card chrome; numbered
 *  pin markers sync with the horizontal card row.
 * ────────────────────────────────────────────────────────────────── */

.clip-mini-map {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-tile);
  background: var(--surface-soft);
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.clip-mini-map--dragging {
  cursor: grabbing;
}

.clip-mini-map__layer {
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform;
}

.clip-mini-map--panning .clip-mini-map__layer {
  transition: transform 320ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.clip-mini-map__tile {
  position: absolute;
  width: 256px;
  height: 256px;
  max-width: none;
  pointer-events: none;
  -webkit-user-drag: none;
}

.clip-mini-map__marker {
  position: absolute;
  z-index: 2;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  background: var(--surface);
  color: var(--text-primary);
  border: 2px solid var(--black);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(10, 12, 15, 0.25);
  transition: transform 160ms ease-out, background 160ms ease-out,
    color 160ms ease-out;
}

.clip-mini-map__marker--active {
  z-index: 3;
  background: var(--black);
  color: var(--text-on-dark);
  transform: translate(-50%, -50%) scale(1.18);
}

.clip-mini-map__controls {
  position: absolute;
  z-index: 4;
  top: var(--space-sm);
  right: var(--space-sm);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
}

.clip-mini-map__zoom-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.clip-mini-map__zoom-btn + .clip-mini-map__zoom-btn {
  border-top: 1px solid var(--border);
}

.clip-mini-map__zoom-btn:hover {
  background: var(--surface-soft);
}

.clip-mini-map__attribution {
  position: absolute;
  z-index: 4;
  right: 4px;
  bottom: 4px;
  padding: 1px 6px;
  font-size: 10px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-pill);
  text-decoration: none;
}

.clip-mini-map__attribution:hover {
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .clip-mini-map--panning .clip-mini-map__layer,
  .clip-mini-map__marker {
    transition: none;
  }
}

/* ──────────────────────────────────────────────────────────────────
 *  Recipient toolbelt cards
 *  Five new structured-payload card kinds the agent loop emits on
 *  the recipient surface — web_search_result, place_detail,
 *  transit_estimate, weather_forecast, transport_links. Each
 *  inherits the base ``.clip-card`` rounded surface and is variant-
 *  styled below. All cards animate in via the shared ``.clip-slide-
 *  in`` keyframe (already respects ``prefers-reduced-motion``).
 *
 *  Mirrors the native ``src/features/clip/cards/`` cluster (phase
 *  7a) so the two surfaces feel identical.
 * ────────────────────────────────────────────────────────────────── */

/* Shared horizontal action row used by all toolbelt cards.
 * Wraps when the viewport is narrow so the row doesn't overflow on
 * smaller phones. */
.clip-card-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs);
  align-self: stretch;
}

.clip-card-action-link,
.clip-card-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  flex: 0 0 auto;
}

.clip-card-action-link:hover,
.clip-card-action-btn:hover {
  border-color: var(--text-primary);
}

.clip-card-action-btn--primary {
  background: var(--black);
  border-color: var(--black);
  color: var(--text-on-dark);
}

.clip-card-action-btn--primary:hover {
  border-color: var(--black);
  opacity: 0.92;
}

/* Web-search result card. */
.clip-websearch-card {
  background: var(--mint-soft);
  border-color: var(--mint);
}

.clip-websearch-query {
  font-size: 12px;
  color: var(--mint-text);
  font-weight: 600;
}

.clip-websearch-answer {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-primary);
}

.clip-websearch-sources {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.clip-websearch-source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--mint);
  color: var(--mint-text);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  max-width: 100%;
}

.clip-websearch-source:hover {
  border-color: var(--mint-strong);
}

.clip-websearch-source-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: var(--radius-pill);
  background: var(--mint);
  color: var(--mint-text);
  font-size: 11px;
  font-weight: 700;
}

.clip-websearch-source-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 220px;
}

/* Place detail card. */
.clip-place-detail-card {
  gap: var(--space-sm);
  padding: 0;
  overflow: hidden;
}

.clip-place-detail-hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--surface-soft);
  overflow: hidden;
}

.clip-place-detail-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.clip-place-detail-header,
.clip-place-detail-addr,
.clip-place-detail-rating,
.clip-place-detail-hours,
.clip-place-detail-card .clip-card-action-row {
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.clip-place-detail-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: var(--space-md);
}

.clip-place-detail-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.clip-place-detail-type {
  font-size: 12px;
  color: var(--text-secondary);
}

.clip-place-detail-addr {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.clip-place-detail-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-primary);
}

.clip-place-detail-star {
  color: #f3b133;
}

.clip-place-detail-rating-value {
  font-weight: 700;
}

.clip-place-detail-rating-count {
  color: var(--text-secondary);
}

.clip-place-detail-hours {
  font-size: 13px;
  color: var(--text-secondary);
}

.clip-place-detail-hours-summary {
  cursor: pointer;
  color: var(--text-primary);
  font-weight: 600;
  padding: 4px 0;
}

.clip-place-detail-hours-body {
  margin: 4px 0 0;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 12px;
  color: var(--text-secondary);
}

.clip-place-detail-card .clip-card-action-row {
  padding-bottom: var(--space-md);
}

/* Transit estimate card. */
.clip-transit-card {
  gap: var(--space-sm);
}

.clip-transit-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.clip-transit-destination {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.clip-transit-modes {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.clip-transit-mode {
  display: grid;
  grid-template-columns: 24px 1fr auto auto;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}

.clip-transit-mode:last-child {
  border-bottom: none;
}

.clip-transit-mode-icon {
  font-size: 18px;
  text-align: center;
}

.clip-transit-mode-label {
  font-weight: 600;
}

.clip-transit-mode-eta {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text-primary);
}

.clip-transit-mode-distance {
  font-size: 12px;
  color: var(--text-secondary);
  min-width: 56px;
  text-align: right;
}

/* Weather forecast card. */
.clip-weather-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.clip-weather-top {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.clip-weather-icon {
  font-size: 28px;
  line-height: 1;
}

.clip-weather-summary {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.clip-weather-location {
  font-size: 13px;
  color: var(--text-secondary);
}

.clip-weather-when {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.clip-weather-stats {
  display: flex;
  gap: var(--space-md);
  margin-top: 4px;
  font-size: 13px;
}

.clip-weather-temps {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--text-primary);
}

.clip-weather-precip {
  color: var(--text-secondary);
}

/* Transport links card. */
.clip-transport-card {
  gap: var(--space-sm);
}

.clip-transport-header {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Install nudge (smart value-moment banner). Mirrors the inline
 * ``.clip-card`` vocabulary but with a tinted background so it stands
 * out under the latest agent bubble without feeling like an ad. */
.clip-install-nudge {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-md);
  background: var(--mint-soft);
  border: 1px solid var(--mint);
  border-radius: var(--radius-card);
}

.clip-install-nudge-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.clip-install-nudge-body {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.clip-install-nudge-actions {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
  margin-top: 4px;
}

.clip-install-nudge-cta {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--black);
  color: var(--text-on-dark);
  border: 1px solid var(--black);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.clip-install-nudge-dismiss {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* Share button on the all-set screen. */
.clip-share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-input);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  align-self: stretch;
}

.clip-share-button:hover {
  border-color: var(--text-primary);
}

/* Calendar sync bottom sheet — fixed overlay anchored to viewport
 * bottom on mobile, centered card on desktop. */
.clip-cal-sync-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.clip-cal-sync-sheet {
  width: min(100%, 460px);
  background: var(--surface);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-height: 80vh;
  overflow-y: auto;
}

.clip-cal-sync-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--border-strong);
  align-self: center;
  margin-bottom: var(--space-sm);
}

.clip-cal-sync-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.clip-cal-sync-subtitle {
  margin: 0 0 var(--space-md);
  color: var(--text-secondary);
  font-size: 14px;
}

.clip-cal-sync-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* Apple Calendar credential form (Batch 4 of 4). Apple doesn't expose
 * OAuth for CalDAV so the recipient has to paste an app-specific
 * password — make the form look intentional, not elementary. */
.clip-cal-sync-apple-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  margin-top: var(--space-xs);
}

.clip-cal-sync-apple-form__intro {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.clip-cal-sync-apple-form__label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.clip-cal-sync-apple-form__label-text {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.clip-cal-sync-apple-form__input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.45;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  color: var(--text-primary);
  transition: border-color 120ms ease-out, box-shadow 120ms ease-out;
}

.clip-cal-sync-apple-form__input::placeholder {
  color: var(--text-secondary);
  opacity: 0.55;
  font-feature-settings: 'tnum' on;
}

.clip-cal-sync-apple-form__input:focus {
  outline: none;
  border-color: var(--mint);
  box-shadow: 0 0 0 3px var(--mint-soft);
}

.clip-cal-sync-apple-form__help {
  margin: 0;
  font-size: 12px;
}

.clip-cal-sync-apple-form__help a {
  color: var(--mint-text);
  text-decoration: none;
}

.clip-cal-sync-apple-form__help a:hover {
  text-decoration: underline;
}

.clip-cal-sync-apple-form__submit {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  background: var(--text-primary);
  color: var(--surface);
  border: none;
  border-radius: var(--radius-input);
  cursor: pointer;
  transition: opacity 120ms ease-out;
  margin-top: var(--space-xs);
}

.clip-cal-sync-apple-form__submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.clip-cal-sync-apple-form__status {
  margin: 0;
  font-size: 12px;
  color: var(--text-secondary);
}

.clip-cal-sync-row {
  display: flex;
  flex-direction: row;
  gap: var(--space-sm);
  align-items: center;
  padding: var(--space-md);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  cursor: pointer;
  text-align: left;
}

.clip-cal-sync-row__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
}

.clip-cal-sync-row__icon svg {
  display: block;
}

/* Lead with Google: the recommended row gets a subtle accent ring. */
.clip-cal-sync-row--recommended {
  border-color: var(--accent, #3e7266);
  box-shadow: 0 0 0 1px var(--accent, #3e7266) inset;
}

.clip-cal-sync-row__recommended {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-text, #3e7266);
}

/* De-emphasized Apple path. */
.clip-cal-sync-apple-nudge {
  margin: var(--space-xs) 0 var(--space-sm);
  padding: var(--space-md);
  background: var(--surface-muted, #f8f9fb);
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.clip-cal-sync-apple-nudge__title {
  margin: 0;
  font-weight: 700;
  font-size: 14px;
}

.clip-cal-sync-apple-nudge__copy {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary, #555);
}

.clip-cal-sync-apple-nudge__cta {
  align-self: flex-start;
  margin-top: 4px;
  font-weight: 700;
  font-size: 13px;
  color: var(--accent-text, #3e7266);
  text-decoration: none;
}

.clip-cal-sync-apple-advanced-label {
  margin: 0 0 var(--space-xs);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary, #888);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.clip-cal-sync-row:hover:not(:disabled) {
  border-color: var(--text-primary);
}

.clip-cal-sync-row:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.clip-cal-sync-row__label {
  font-weight: 600;
  font-size: 15px;
}

.clip-cal-sync-row__status {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-tertiary);
}

.clip-cal-sync-row__caret {
  margin-left: auto;
  font-size: 18px;
  color: var(--text-tertiary, #888);
}

.clip-cal-sync-spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--border);
  border-top-color: var(--text-primary);
  animation: clip-cal-sync-spin 0.7s linear infinite;
  align-self: flex-end;
  margin-top: -16px;
}

@keyframes clip-cal-sync-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.clip-cal-sync-error {
  margin: var(--space-sm) 0 0;
  font-size: 13px;
  color: var(--error);
}

.clip-cal-sync-error:empty {
  display: none;
}

.clip-cal-sync-close {
  margin-top: var(--space-md);
  align-self: center;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
}

/* Response chip selection states. The four chips render in a single
 * neutral grey style by default; only the chip the user taps animates
 * to its tone color. The other three fade to ~40% opacity and become
 * un-tappable. */

.clip-action-btn--selected {
  /* tone-specific overrides below set --chip-accent variables */
}

.clip-action-btn--muted {
  opacity: 0.4;
  cursor: not-allowed;
}

.clip-concierge-transcript {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.clip-status-banner {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--mint-soft);
  border: 1px solid var(--mint);
  border-radius: var(--radius-card);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-sm);
  color: var(--mint-text);
  position: sticky;
  top: 0;
  z-index: 1;
}

.clip-status-banner__avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.clip-status-banner__avatar svg {
  width: 100%;
  height: 100%;
}

.clip-status-banner__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.clip-status-banner__title {
  font-size: 14px;
  font-weight: 700;
}

.clip-status-banner__sub {
  font-size: 12px;
  color: var(--text-secondary);
}

.clip-concierge-intro {
  align-self: flex-start;
  max-width: 88%;
  background: #f1f2f5;
  border: none;
  border-radius: 18px;
  border-bottom-left-radius: 6px;
  padding: 10px 14px;
  font-size: 15px;
  line-height: 1.45;
}

.clip-bubble-plan-card {
  align-self: flex-start;
  max-width: 96%;
  width: 100%;
}

.clip-bubble-plan-card .clip-compact-card {
  border-radius: 18px;
}

/* R7 mock: agent bubbles are neutral grey, the sender's own bubbles are
   iMessage blue — matching the native app and App Clip. */
.clip-chat-bubble--agent {
  align-self: flex-start;
  background: #f1f2f5;
  border: none;
  color: var(--text-primary);
  border-bottom-left-radius: 6px;
  max-width: 88%;
}

.clip-chat-bubble--mine {
  align-self: flex-end;
  background: #2b6bf3;
  color: #ffffff;
  border: none;
  border-bottom-right-radius: 6px;
  max-width: 80%;
}

.clip-chat-bubble--typing {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 54px;
  min-height: 32px;
  /* Native parity: typing dots sit in the same borderless agent-grey
   * bubble as agent text (bubbleAgent + bubbleTyping). */
  background: #f1f2f5;
  border: none;
  padding: 10px 14px;
  border-radius: 18px;
  border-bottom-left-radius: 6px;
  max-width: none;
}

.clip-chat-busy-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--text-tertiary);
  animation: clip-thread-busy-pulse 1.2s ease-in-out infinite;
}

.clip-chat-busy-dot:nth-child(2) {
  animation-delay: 160ms;
}

.clip-chat-busy-dot:nth-child(3) {
  animation-delay: 320ms;
}

.clip-concierge-footer {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-sm) 0;
  border-top: 1px solid var(--border);
}

.clip-concierge-nudge {
  font-size: 13px;
  padding: var(--space-sm) var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.clip-concierge-nudge-text {
  flex: 1;
  min-width: 0;
}

/* Three branded provider icons rendered inline at the right edge of
 * the calendar nudge. Each circle is a real <button>, sized to match
 * the native ``CalendarProviderIcon`` (28px square) so the cross-
 * surface affordance stays consistent. */
.clip-concierge-nudge-icons {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  flex-shrink: 0;
}

.clip-concierge-cal-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease;
}

.clip-concierge-cal-icon:hover,
.clip-concierge-cal-icon:focus-visible {
  border-color: var(--text-primary);
  outline: none;
}

.clip-concierge-cal-icon svg {
  width: 16px;
  height: 16px;
}

/* Promote "Let X coordinate" + "Not interested" to first-class
 * stacked CTAs above the composer. Filled primary uses the same
 * black pill treatment as the screen's other primary CTAs; the
 * secondary mirrors it as a transparent outlined pill so the pair
 * reads as a button family but is still distinguishable from the
 * chat bubbles above. */
.clip-concierge-primary-cta {
  width: 100%;
  min-height: 48px;
  padding: 0 var(--space-lg);
  background: var(--black);
  color: var(--text-on-dark);
  border: none;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 120ms ease;
}

.clip-concierge-primary-cta:hover,
.clip-concierge-primary-cta:focus-visible {
  opacity: 0.9;
  outline: none;
}

.clip-concierge-secondary-cta {
  width: 100%;
  min-height: 48px;
  padding: 0 var(--space-lg);
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}

.clip-concierge-secondary-cta:hover,
.clip-concierge-secondary-cta:focus-visible {
  background: var(--surface-soft);
  color: var(--text-primary);
  outline: none;
}

.clip-concierge-composer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: var(--space-sm) 0 calc(var(--space-sm) + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.clip-concierge-input {
  flex: 1;
  /* aug626 F2: autogrowing textarea — min one 44px line, grows with
     content up to ~4 lines so long messages stay fully visible. */
  min-height: 44px;
  max-height: 120px;
  height: 44px;
  resize: none;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  padding: 11px var(--space-md);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  line-height: 20px;
  box-sizing: border-box;
}

.clip-concierge-input:focus {
  outline: none;
  border-color: var(--text-primary);
}

.clip-concierge-send {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  color: var(--text-on-dark);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  flex-shrink: 0;
}

/* Force the inline SVG to a concrete size + inherit the button's
 * white ``color`` (the path uses ``stroke="currentColor"``). iOS
 * Safari has shipped builds where SVG sized only via parent flex
 * collapses to 0×0 — explicit width/height keeps the paper-plane
 * glyph visible. */
.clip-concierge-send svg {
  width: 18px;
  height: 18px;
  color: currentColor;
  display: block;
  pointer-events: none;
}

.clip-concierge-send:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}


/* R7: tab panes slide with motion (Event info ← / Concierge →). */
@keyframes clip-pane-in-right {
  from { transform: translateX(28px); opacity: 0.4; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes clip-pane-in-left {
  from { transform: translateX(-28px); opacity: 0.4; }
  to { transform: translateX(0); opacity: 1; }
}
.clip-pane--concierge { animation: clip-pane-in-right 220ms ease-out; }
.clip-pane--event-info { animation: clip-pane-in-left 220ms ease-out; }

/* One-line editorial description on place suggestion cards — mirrors
 * the native unified card's description slot. */
.clip-place-option-desc {
  font-size: 13px;
  line-height: 17px;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Reduced-motion coverage for the entrance/indicator animations that
 * predate the motion tokens (spinners stay — they signal progress,
 * not decoration). */
@media (prefers-reduced-motion: reduce) {
  .clip-pane--concierge,
  .clip-pane--event-info,
  .clip-inline-panel,
  .clip-header__indicator--animate-right,
  .clip-header__indicator--animate-left {
    animation: none !important;
  }
}


/* R7: inline wall-clock inside bubbles. */
.clip-bubble-clock {
  display: block;
  font-size: 11px;
  margin-top: 2px;
}
.clip-bubble-clock--agent { color: var(--text-tertiary, #9aa1ab); }
.clip-bubble-clock--mine { color: rgba(255, 255, 255, 0.85); text-align: right; }


/* R8 parity: agent caption + spacer grouping and the day separator. */
.clip-agent-caption {
  color: var(--text-tertiary, #9aa1ab);
  font-size: 12px;
  margin: 2px 0 2px 40px;
}
.clip-agent-avatar-spacer { width: 32px; flex-shrink: 0; }
.clip-day-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
}
.clip-day-rule { flex: 1; height: 1px; background: var(--border); }
.clip-day-label {
  color: var(--text-tertiary, #9aa1ab);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}



/* R9: all-set redesign — action grid + brand hero (operator mock). */
.clip-allset { display: flex; flex-direction: column; gap: 18px; }
.clip-action-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.clip-action-card {
  display: flex; align-items: center; gap: 10px; text-align: left;
  border: 1px solid var(--border); background: var(--surface);
  border-radius: 16px; padding: 14px 12px; cursor: pointer;
}
.clip-action-icon {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.clip-action-icon--green { background: #e7f2ec; color: #1d5c3f; }
.clip-action-icon--blue { background: #e8eefd; color: #2b6bf3; }
.clip-action-icon--orange { background: #fdeee4; color: #d96b2f; }
.clip-action-icon--purple { background: #efe9fd; color: #7a4ff0; }
.clip-action-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.clip-action-title { font-weight: 600; font-size: 14px; color: var(--text-primary); }
.clip-action-sub { font-size: 12px; color: var(--text-secondary); }
.clip-action-chevron { color: var(--text-tertiary, #9aa1ab); font-size: 18px; }
.clip-brand-hero {
  border-radius: 20px; padding: 22px;
  background:
    radial-gradient(120% 140% at 85% 10%, rgba(255, 214, 120, 0.18), transparent 45%),
    linear-gradient(135deg, #143126 0%, #0d241b 60%, #0a1d16 100%);
  color: #ffffff; position: relative; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 14px;
}
.clip-brand-hero-copy h2 { font-size: 24px; line-height: 1.15; margin: 0 0 8px; }
.clip-brand-hero-copy p { font-size: 14px; opacity: 0.85; margin: 0 0 16px; max-width: 220px; }
.clip-appstore-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #000; color: #fff; border: 1px solid rgba(255,255,255,0.25);
  border-radius: 10px; padding: 8px 14px; font-size: 11px; line-height: 1.2;
  cursor: pointer; text-align: left;
}
.clip-appstore-badge strong { font-size: 15px; }
.clip-appstore-badge-apple::before { content: '\F8FF'; font-size: 20px; }
.clip-brand-hero-tile {
  background: #ffffff; color: #143126; font-weight: 800; font-size: 22px;
  border-radius: 14px; width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}


/* R18: the agent avatar is the assistant portrait photo (same
   assets/avatars set as the native app), cover-cropped to a circle. */
.clip-agent-avatar--photo {
  display: inline-flex;
  border-radius: 50%;
  overflow: hidden;
  background: #e7e9ee;
  flex-shrink: 0;
}
.clip-agent-avatar__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* Last-resort letter circle (portrait failed to load). */
.clip-agent-avatar--initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e7e9ee;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

/* ── Markdown-lite in agent bubbles (aug826 host-grammar parity) ──── */
/* Twin of native LinqMarkdownText: block gap, bullet rows, inline
   bold/italic/code/link. Scoped to agent bubbles only. */
.clip-md-block--gap {
  margin-bottom: 6px;
}
.clip-md-list-item {
  padding-left: 2px;
}
.clip-chat-bubble--agent .clip-md-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  padding: 0 3px;
}
.clip-chat-bubble--agent .clip-md-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Voice mode (aug1526) ─────────────────────────────────────────── */
/* Replaces the keyboard, not the screen. One vertical gradient carries
   the whole surface: deep ink under the orb so the monochrome dots read
   light-on-dark, fading up to the page surface so the transcript stays
   dark-on-light. */
.clip-voice {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  background: linear-gradient(
    to bottom,
    var(--surface) 0%,
    var(--surface) 30%,
    #eef1f6 52%,
    #2a3138 80%,
    var(--black) 100%
  );
  animation: clip-voice-in var(--motion-enter-ms) var(--motion-ease-out);
}

@keyframes clip-voice-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Middle band: the read-along conversation. */
.clip-voice-transcript {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  /* Extra bottom padding so the newest bubble clears the dark band the
     orb sits in, instead of being swallowed by the gradient. */
  padding: calc(env(safe-area-inset-top, 0px) + var(--space-2xl))
    var(--space-page) var(--space-2xl);
}

/* `margin-top: auto` bottom-anchors a short conversation against the
   orb. Doing this on the inner node rather than with
   `justify-content: flex-end` on the scroller keeps the top of a long
   transcript reachable in WebKit. */
.clip-voice-lines {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.clip-voice-line {
  display: flex;
  max-width: 100%;
}
.clip-voice-line--user {
  justify-content: flex-end;
}
.clip-voice-line--assistant {
  justify-content: flex-start;
}

.clip-voice-bubble {
  margin: 0;
  padding: 10px 14px;
  border-radius: 18px;
  border: none;
  font-size: 16px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.clip-voice-line--user .clip-voice-bubble {
  max-width: 80%;
  background: #2b6bf3;
  color: #ffffff;
  border-bottom-right-radius: 6px;
}
.clip-voice-line--assistant .clip-voice-bubble {
  max-width: 88%;
  background: #f1f2f5;
  color: var(--text-primary);
  border-bottom-left-radius: 6px;
}

/* Bottom band: the orb sits where the keyboard was. */
.clip-voice-stage {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-page)
    calc(env(safe-area-inset-bottom, 0px) + 76px);
}

.clip-voice-orb {
  display: block;
  /* Width and height are set from JS to keep the box square at DPR. */
}

.clip-voice-status {
  margin: 0;
  min-height: 20px;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.62);
}

.clip-voice-exit {
  position: absolute;
  right: var(--space-page);
  bottom: calc(env(safe-area-inset-bottom, 0px) + var(--space-lg));
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  height: 40px;
  padding: 0 var(--space-md);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-on-dark);
  font-family: var(--font-stack);
  font-size: 15px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.clip-voice-exit:active {
  background: rgba(255, 255, 255, 0.18);
}
.clip-voice-exit-glyph {
  font-size: 19px;
  line-height: 1;
}

/* The composer's voice toggle. */
.clip-concierge-voice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.clip-concierge-voice:active {
  background: var(--surface-soft);
}

@media (prefers-reduced-motion: reduce) {
  .clip-voice {
    animation: none;
  }
}

/* Restart affordance — shown when a call ends without the person
   hanging up (time limit, dropped connection, recoverable error). */
.clip-voice-restart {
  margin-top: var(--space-xs);
  height: 36px;
  padding: 0 var(--space-md);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-on-dark);
  font-family: var(--font-stack);
  font-size: 15px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.clip-voice-restart:active {
  background: rgba(255, 255, 255, 0.18);
}

/* Server-rendered cards inside the voice transcript. Full-bleed rather
   than bubble-aligned — they carry their own chrome from the typed
   surface, so they must not inherit bubble padding or max-width. */
.clip-voice-card {
  display: block;
  width: 100%;
}
.clip-voice-card > * {
  margin: 0;
}


/* Mute — mirrors the Exit pill on the opposite corner. */
.clip-voice-mute {
  position: absolute;
  left: var(--space-page);
  bottom: calc(env(safe-area-inset-bottom, 0px) + var(--space-lg));
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  height: 40px;
  padding: 0 var(--space-md);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-on-dark);
  font-family: var(--font-stack);
  font-size: 15px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.clip-voice-mute:active {
  background: rgba(255, 255, 255, 0.18);
}
/* Muted is RED — the one state the person must never misread. A pale
   pill looked like a disabled control rather than "your mic is off". */
.clip-voice-mute--on {
  background: var(--error);
  border-color: transparent;
  color: #ffffff;
}
.clip-voice-mute-glyph {
  display: inline-flex;
  align-items: center;
}

.clip-consent-imessage {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
  color: #1f6f5f;
  text-decoration: underline;
}
