.demo-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #0f172a;
  padding-bottom: 0 !important;
}

.demo-site-header {
  background: rgba(15, 23, 42, 0.95);
}

.demo-main {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 1rem clamp(1rem, 4vw, 1.5rem) 2rem;
}

.demo-stage {
  width: min(100%, 440px);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.demo-stage-aside {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.demo-phone-device--stage {
  width: 100%;
}

.demo-iphone-frame--app {
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.demo-phone-screen {
  position: relative;
}

.demo-iphone-notch,
.demo-iphone-status--app {
  display: none;
}

.demo-home {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.demo-preview-banner {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(127, 29, 29, 0.35);
  color: #fecaca;
  font-size: 0.82rem;
  line-height: 1.45;
}

.demo-preview-banner strong {
  color: #fff;
}

.demo-home-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.demo-home-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.demo-home-brand img {
  border-radius: 10px;
}

.demo-home-eyebrow {
  margin: 0;
  color: #f87171;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.demo-home-brandline {
  margin: 0;
  color: #e2e8f0;
  font-size: 0.95rem;
  font-weight: 700;
}

.demo-home-icons {
  display: flex;
  gap: 0.35rem;
  opacity: 0.45;
  font-size: 1.1rem;
}

.demo-home-hero h1 {
  margin: 0;
  font-size: clamp(1.65rem, 6vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
}

.demo-home-badge {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: #7f1d1d;
  color: #fecaca;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.demo-home-sub {
  margin: 0.5rem 0 0;
  color: #ef4444;
  font-size: 1rem;
  font-weight: 600;
}

.demo-home-sub-accent {
  color: #ffffff;
}

.demo-home-actions {
  display: grid;
  gap: 0.5rem;
}

.demo-squad-cta,
.demo-help-cta {
  display: grid;
  gap: 0.2rem;
}

.demo-stop-cta {
  display: grid;
  gap: 0.2rem;
  width: 100%;
  max-width: 520px;
  justify-items: center;
}

.demo-btn-with-hint {
  display: grid;
  gap: 0.35rem;
}

.demo-tap-hint {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  pointer-events: none;
  user-select: none;
}

.demo-tap-hint.is-visible {
  display: flex;
  animation: demo-hint-bob 1.15s ease-in-out infinite;
}

.demo-tap-hint--beside {
  flex-direction: row;
  align-items: center;
  gap: 0.25rem;
}

.demo-tap-hint__label {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #fecaca;
  background: rgba(127, 29, 29, 0.55);
  padding: 0.22rem 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(239, 68, 68, 0.55);
  white-space: nowrap;
}

.demo-tap-hint__arrow {
  font-size: 1rem;
  font-weight: 800;
  color: #ef4444;
  line-height: 1;
  text-shadow: 0 0 12px rgba(239, 68, 68, 0.45);
}

.demo-hold-btn--secondary.is-hinted {
  box-shadow:
    0 0 0 2px rgba(239, 68, 68, 0.45),
    0 0 18px rgba(239, 68, 68, 0.2);
}

.demo-hold-btn--primary.is-hinted {
  box-shadow:
    0 0 0 2px rgba(239, 68, 68, 0.55),
    0 0 20px rgba(239, 68, 68, 0.25);
}

.demo-hold-btn--stop.is-hinted {
  box-shadow:
    0 0 0 2px rgba(239, 68, 68, 0.45),
    0 0 18px rgba(239, 68, 68, 0.2);
}

@keyframes demo-hint-bob {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(4px);
  }
}

.demo-compose-send-row {
  position: absolute;
  right: 0.5rem;
  bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

@media (prefers-reduced-motion: reduce) {
  .demo-tap-hint.is-visible {
    animation: none;
  }
}

.demo-sound-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.demo-sound-btn {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  border: 1px solid #334155;
  background: #111827;
  color: #e2e8f0;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.demo-sound-btn--fab {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0) + 0.75rem);
  right: 0.75rem;
  z-index: 2;
  border: 2px solid currentColor;
  border-radius: 999px;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(0, 0, 0, 0.12);
}

.demo-signal.phase-white .demo-sound-btn--fab {
  background: rgba(15, 23, 42, 0.08);
}

.demo-sound-btn.is-on {
  border-color: #ef4444;
  background: rgba(127, 29, 29, 0.35);
}

.demo-sound-icon--on {
  display: none;
}

.demo-sound-btn.is-on .demo-sound-icon--muted {
  display: none;
}

.demo-sound-btn.is-on .demo-sound-icon--on {
  display: block;
}

.demo-sound-note {
  margin: 0;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.35;
}

.demo-hold-btn {
  position: relative;
  width: 100%;
  min-height: 4.25rem;
  border: none;
  border-radius: 16px;
  font: inherit;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
}

.demo-hold-btn--primary {
  min-height: 7.5rem;
  border-radius: 20px;
  background: #ef4444;
  color: #ffffff;
  border: 3px solid #b91c1c;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 10px 32px rgba(239, 68, 68, 0.28);
}

.demo-hold-btn--secondary {
  min-height: 3.25rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.25);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.demo-hold-sublabel {
  position: relative;
  z-index: 1;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fecaca;
  line-height: 1.2;
}

.demo-hold-sublabel--ghost {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
}

.demo-hold-sublabel--stop {
  color: #d1d5db;
  font-size: 0.8rem;
  font-weight: 600;
}

.demo-hold-btn--primary .label,
.demo-hold-btn--secondary .label {
  position: relative;
  z-index: 1;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.demo-hold-btn--primary .label {
  font-size: clamp(1.35rem, 5vw, 1.75rem);
}

.demo-hold-btn--secondary .label {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.demo-hold-btn--stop {
  background: #111827;
  color: #ffffff;
  border: 3px solid #374151;
  min-height: 4.5rem;
  border-radius: 20px;
  font-size: 1rem;
  margin-top: auto;
  width: 100%;
  max-width: 520px;
}

.demo-hold-btn--stop .label {
  position: relative;
  z-index: 1;
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.demo-hold-btn .fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

.demo-hold-btn--stop .fill {
  background: currentColor;
  opacity: 0.12;
}

.demo-hold-btn .label {
  position: relative;
  z-index: 1;
}

.demo-home-hint {
  margin: 0 0 0.65rem;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
}

.demo-home-hint--accent {
  color: #f87171;
}

.demo-stop-hint {
  margin: 0.45rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  width: 100%;
  max-width: 520px;
}

.demo-signal.phase-white .demo-stop-hint {
  color: rgba(15, 23, 42, 0.72);
}

.demo-signal.phase-white .demo-hold-btn--stop,
.demo-signal.phase-white .demo-hold-btn--stop .label,
.demo-signal.phase-white .demo-hold-btn--stop .demo-hold-sublabel--stop {
  background: #111827;
  color: #ffffff;
  border-color: #374151;
}

.demo-home-instruction {
  margin: 0.5rem 0 0;
  color: #94a3b8;
  font-size: 0.88rem;
  line-height: 1.5;
  text-align: center;
}

.demo-app-note {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid #334155;
  background: #111827;
}

.demo-app-note-title {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.demo-app-note ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #94a3b8;
  font-size: 0.85rem;
  line-height: 1.55;
}

.demo-try-squad-note {
  margin: 0.85rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid #334155;
  color: #cbd5e1;
  font-size: 0.84rem;
  line-height: 1.45;
}

.demo-try-squad-note__pill {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  background: rgba(127, 29, 29, 0.45);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fecaca;
  font-size: 0.78rem;
  font-weight: 700;
}

.demo-legal {
  margin: 0;
  color: #64748b;
  font-size: 0.76rem;
  line-height: 1.45;
  text-align: center;
}

/* Active signal */
.demo-signal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0) + 1.25rem) 1.25rem
    calc(env(safe-area-inset-bottom, 0) + 2rem);
}

.demo-signal.is-on {
  display: flex;
}

.demo-signal.phase-red {
  background: #dc2626;
  color: #fff;
}

.demo-signal.phase-white {
  background: #fff;
  color: #0f172a;
}

.demo-signal-top {
  text-align: center;
  width: min(100%, 520px);
}

.demo-signal-top h2 {
  margin: 0;
  font-size: clamp(1.5rem, 6vw, 2.2rem);
  font-weight: 900;
  letter-spacing: 0.05em;
}

.demo-signal-top p {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  opacity: 0.88;
}

.demo-signal-badge {
  display: inline-block;
  margin-top: 0.55rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.demo-signal.phase-white .demo-signal-badge {
  background: rgba(15, 23, 42, 0.1);
  color: #0f172a;
}

.demo-signal-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-align: center;
}

.demo-signal-mid img {
  width: min(40vw, 128px);
  height: min(40vw, 128px);
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.2));
}

.demo-signal-mid span {
  font-size: 0.82rem;
  font-weight: 700;
  opacity: 0.85;
}

/* Squad popup */
.demo-popup {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: none;
}

.demo-popup.is-open {
  display: block;
}

.demo-popup-backdrop {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.78);
}

.demo-popup-card {
  width: min(100%, 400px);
  max-height: min(92dvh, 640px);
  overflow: auto;
  padding: 1.15rem 1.15rem calc(env(safe-area-inset-bottom, 0) + 1rem);
  border-radius: 20px;
  background: #1e293b;
  color: #f8fafc;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
  .demo-main {
    align-items: flex-start;
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
  }

  .demo-stage {
    width: min(100%, 980px);
    display: grid;
    grid-template-columns: minmax(0, 300px) minmax(280px, 390px);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
    justify-content: center;
    margin: 0 auto;
  }

  .demo-stage-aside {
    position: sticky;
    top: 5.5rem;
  }

  .demo-preview-banner {
    font-size: 0.88rem;
  }

  .demo-phone-device {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 14px 10px 18px;
    border-radius: 44px;
    background: linear-gradient(165deg, #3a3a3c 0%, #1c1c1e 55%, #0b0b0c 100%);
    box-shadow:
      0 0 0 1px #52525a,
      0 0 0 3px #1c1c1e,
      inset 0 0 0 1px rgba(255, 255, 255, 0.06),
      0 28px 56px rgba(0, 0, 0, 0.55);
  }

  .demo-phone-device::before,
  .demo-phone-device::after {
    content: '';
    position: absolute;
    background: #2c2c2e;
    border-radius: 2px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  .demo-phone-device::before {
    left: -3px;
    top: 108px;
    width: 3px;
    height: 52px;
  }

  .demo-phone-device::after {
    right: -3px;
    top: 148px;
    width: 3px;
    height: 72px;
  }

  .demo-phone-device--stage::before {
    top: 124px;
  }

  .demo-phone-device--stage::after {
    top: 188px;
  }

  .demo-iphone-frame {
    border-radius: 34px;
    padding: 0.45rem 0.5rem 0.65rem;
    background: #000;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    overflow: hidden;
  }

  .demo-iphone-frame--app {
    background: #000;
    padding: 0.45rem 0.5rem 0.65rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  }

  .demo-iphone-notch {
    display: block;
    width: 38%;
    height: 26px;
    margin: 0 auto 0.25rem;
    border-radius: 0 0 16px 16px;
    background: #000;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.04);
  }

  .demo-iphone-notch--light {
    background: #fff;
    box-shadow: none;
  }

  .demo-iphone-status--app {
    display: flex;
    color: #f8fafc;
    padding: 0 0.35rem 0.45rem;
  }

  .demo-phone-screen {
    min-height: 700px;
    max-height: 74dvh;
    overflow: hidden;
    border-radius: 28px;
    background: #0f172a;
  }

  .demo-home {
    height: 100%;
    max-height: 74dvh;
    overflow-y: auto;
    padding: 0.35rem 0.5rem 0.85rem;
    gap: 1rem;
  }

  .demo-home-hero h1 {
    font-size: 1.55rem;
  }

  .demo-hold-btn {
    min-height: 3.85rem;
    font-size: 1rem;
  }

  .demo-phone-screen .demo-signal {
    position: absolute;
    inset: 0;
    z-index: 20;
    border-radius: 28px;
    padding: 0.85rem 0.85rem 1rem;
  }

  .demo-phone-screen.demo-signal-open {
    overflow: hidden;
  }

  .demo-signal-top h2 {
    font-size: 1.35rem;
  }

  .demo-signal-mid img {
    width: 96px;
    height: 96px;
  }

  .demo-popup-backdrop {
    padding: 2rem;
  }

  .demo-popup-card {
    width: min(100%, 440px);
    max-height: min(90dvh, 720px);
  }

  .demo-imessage {
    min-height: 380px;
  }
}

.demo-popup-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 800;
}

.demo-popup-lead {
  margin: 0 0 1rem;
  color: #94a3b8;
  font-size: 0.88rem;
  line-height: 1.45;
}

.demo-hold-btn--primary:hover,
.demo-hold-btn--primary:focus-visible,
.demo-hold-btn--secondary:hover,
.demo-hold-btn--secondary:focus-visible,
.demo-popup-close:hover,
.demo-popup-close:focus-visible,
.demo-flow-btn:hover,
.demo-flow-btn:focus-visible,
.demo-compose-send:hover,
.demo-compose-send:focus-visible {
  animation: demo-btn-strobe 620ms steps(2, end) 4;
}

@keyframes demo-btn-strobe {
  0%,
  49.9% {
    filter: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.06), 0 10px 32px rgba(239, 68, 68, 0.28);
  }

  50%,
  99.9% {
    filter: brightness(1.15);
    box-shadow: 0 0 0 2px #fff, 0 0 24px rgba(255, 255, 255, 0.35);
  }
}

.demo-hold-btn--secondary:hover,
.demo-hold-btn--secondary:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
}

.demo-hold-btn--secondary:hover .demo-hold-sublabel--ghost,
.demo-hold-btn--secondary:focus-visible .demo-hold-sublabel--ghost {
  color: rgba(255, 255, 255, 0.85);
}

.demo-popup-card--flow {
  max-height: min(92dvh, 760px);
}

.demo-flow-steps {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f87171;
}

.demo-squad-step[hidden] {
  display: none !important;
}

.demo-soss-sheet {
  padding: 0.9rem;
  border-radius: 14px;
  background: #111827;
  border: 1px solid #334155;
}

.demo-soss-sheet-status {
  margin: 0 0 0.5rem;
  color: #94a3b8;
  font-size: 0.84rem;
  line-height: 1.4;
}

.demo-soss-sheet-to {
  margin: 0 0 0.55rem;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
}

.demo-soss-sheet-message {
  max-height: 180px;
  overflow: auto;
  margin-bottom: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: #0f172a;
  border: 1px solid #334155;
  color: #e2e8f0;
  font-size: 0.78rem;
  line-height: 1.4;
}

.demo-soss-sheet-message p {
  margin: 0 0 0.35rem;
}

.demo-soss-sheet-sent {
  margin: 0 0 0.45rem;
  color: #4ade80;
  font-size: 1rem;
  font-weight: 800;
}

.demo-soss-sheet-hint {
  margin: 0 0 0.75rem;
  color: #94a3b8;
  font-size: 0.82rem;
  line-height: 1.4;
}

.demo-flow-btn {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  border: 2px solid transparent;
}

.demo-flow-btn--primary {
  background: #ef4444;
  color: #fff;
  border-color: #b91c1c;
}

.demo-flow-btn--ghost {
  background: transparent;
  color: #e2e8f0;
  border-color: #475569;
}

.demo-compose {
  position: relative;
  min-height: 320px;
  padding: 0.55rem 0.65rem 2.5rem;
  background: #000;
  color: #fff;
  font-family:
    -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', system-ui, sans-serif;
}

.demo-compose-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-bottom: 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.demo-compose-cancel {
  color: #0a84ff;
  justify-self: start;
}

.demo-compose-spacer {
  width: 1px;
}

.demo-compose-to {
  margin: 0 0 0.55rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid #2c2c2e;
  color: #8e8e93;
  font-size: 0.8rem;
}

.demo-compose-to span {
  color: #0a84ff;
}

.demo-compose-body {
  color: #fff;
  font-size: 0.82rem;
  line-height: 1.4;
  padding-right: 2.5rem;
}

.demo-compose-body p {
  margin: 0 0 0.35rem;
}

.demo-compose-send {
  position: static;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 999px;
  background: #0a84ff;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.demo-flow-btn--primary.is-hinted {
  box-shadow:
    0 0 0 2px rgba(239, 68, 68, 0.55),
    0 0 20px rgba(239, 68, 68, 0.3);
}

.demo-flow-btn--ghost.is-hinted {
  box-shadow:
    0 0 0 2px rgba(239, 68, 68, 0.45),
    0 0 18px rgba(239, 68, 68, 0.2);
}

.demo-compose-send.is-hinted {
  box-shadow:
    0 0 0 3px rgba(239, 68, 68, 0.55),
    0 0 16px rgba(239, 68, 68, 0.35);
}

.demo-iphone-frame {
  position: relative;
  overflow: hidden;
  font-family:
    -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', system-ui, sans-serif;
}

.demo-iphone-notch {
  width: 34%;
  height: 22px;
  margin: 0 auto 0.35rem;
  border-radius: 0 0 14px 14px;
  background: #fff;
}

.demo-iphone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.35rem 0.5rem;
  color: #000;
  font-size: 0.68rem;
  font-weight: 700;
}

.demo-iphone-status-icons {
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.demo-imessage {
  padding: 0.5rem 0.65rem 0.85rem;
  border-radius: 18px;
  background: #fff;
  min-height: 340px;
}

.demo-imessage-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid #e5e5ea;
  color: #007aff;
  font-size: 0.88rem;
  font-weight: 600;
}

.demo-imessage-back {
  font-size: 1.35rem;
  line-height: 1;
}

.demo-imessage-contact {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  color: #000;
  font-size: 0.82rem;
  margin-right: 1.2rem;
}

.demo-imessage-avatar {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: #c7c7cc;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
}

.demo-imessage-time {
  margin: 0.55rem 0;
  text-align: center;
  color: #8e8e93;
  font-size: 0.65rem;
}

.demo-imessage-incoming {
  max-width: 88%;
  margin-right: auto;
  padding: 0.55rem 0.75rem;
  border-radius: 18px;
  border-bottom-left-radius: 4px;
  background: #e9e9eb;
  color: #000;
  font-size: 0.8rem;
  line-height: 1.4;
}

.demo-imessage-incoming p {
  margin: 0 0 0.4rem;
}

.demo-imessage-incoming p:last-child {
  margin-bottom: 0;
}

.demo-imessage-link {
  color: #007aff;
}

.demo-imessage-muted {
  color: #6c6c70;
  font-size: 0.72rem;
}

.demo-imessage-foot {
  margin-top: 0.35rem !important;
  margin-bottom: 0 !important;
  line-height: 1.35;
}

.demo-map-preview {
  display: block;
  margin: 0.35rem 0 0.45rem;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  border: 1px solid #d1d1d6;
}

.demo-map-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.demo-map-embed-wrap {
  position: relative;
  width: 100%;
  height: 110px;
  overflow: hidden;
  background: #e5e5ea;
}

.demo-map-embed-wrap iframe {
  display: block;
  width: 100%;
  height: 160px;
  border: 0;
  margin-top: -24px;
  pointer-events: none;
}

.demo-map-preview-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.45rem 0.55rem 0.5rem;
  border-top: 1px solid #e5e5ea;
}

.demo-map-preview-place {
  color: #000;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.25;
}

.demo-map-preview-link {
  color: #007aff;
  font-size: 0.68rem;
}

.demo-popup-close {
  width: 100%;
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 12px;
  background: #ef4444;
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}
