/* Shared phone mockup (WhatsApp chat in an iPhone 15 Pro frame).
   Copy of the homepage mockup: public/index.html CSS ~587-830, markup ~2965-3054
   (the homepage keeps its own copy; keep both in sync by hand). Every class is
   prefixed pm- so nothing leaks into the host page. Used by the Betriebsinfos preview
   and the onboarding step via public/shared/phone-mockup.js. */
  .pm-slot { display: flex; flex-direction: column; align-items: center; }
  .pm-stage { position: relative; display: inline-block; zoom: .86; }
  .pm-iphone { position: relative; width: 300px; height: 611px; filter: drop-shadow(0 14px 30px rgba(15,23,42,.30)); }
  .pm-frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }
  .pm-screen { position: absolute; inset: 12.8px; background: #000; border-radius: 38px; overflow: hidden; display: flex; flex-direction: column; z-index: 1; }
  .pm-screen::after { content: ''; position: absolute; inset: 0; background: linear-gradient(130deg, rgba(255,255,255,.07) 0%, rgba(255,255,255,.02) 25%, transparent 48%); pointer-events: none; z-index: 999; border-radius: 38px; }
  .pm-status { display: flex; justify-content: space-between; align-items: center; padding: 15px 24px 10px; background: #f7f7f8; flex-shrink: 0; }
  .pm-time { font-size: 13px; font-weight: 700; color: #0b0b0c; letter-spacing: -.02em; }
  .pm-icons { display: flex; align-items: center; gap: 5px; }
  .pm-signal { display: flex; align-items: flex-end; gap: 2px; height: 10px; }
  .pm-signal span { background: #0b0b0c; border-radius: 1px; width: 3px; }
  .pm-signal span:nth-child(1) { height: 4px; }
  .pm-signal span:nth-child(2) { height: 6px; }
  .pm-signal span:nth-child(3) { height: 8px; }
  .pm-signal span:nth-child(4) { height: 10px; opacity: .4; }
  .pm-wifi { width: 14px; height: 10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16'%3E%3Cpath d='M12 3C7.5 3 3.5 4.9.7 8l2.1 2.1C5 8 8.4 6.5 12 6.5s7 1.5 9.2 3.6L23.3 8C20.5 4.9 16.5 3 12 3z' fill='%230b0b0c'/%3E%3Cpath d='M12 9c-2.4 0-4.5.9-6.1 2.4l2.1 2.1c1-.9 2.5-1.5 4-1.5s3 .6 4 1.5l2.1-2.1C16.5 9.9 14.4 9 12 9z' fill='%230b0b0c'/%3E%3Cpath d='M12 15c-.8 0-1.5.3-2 .8l2 2 2-2c-.5-.5-1.2-.8-2-.8z' fill='%230b0b0c'/%3E%3C/svg%3E") no-repeat center/contain; }
  .pm-battery-body { width: 22px; height: 11px; border: 1.5px solid rgba(0,0,0,.55); border-radius: 3px; padding: 2px; position: relative; }
  .pm-battery-body::after { content: ''; position: absolute; right: -5px; top: 50%; transform: translateY(-50%); width: 3px; height: 5px; background: rgba(0,0,0,.4); border-radius: 0 2px 2px 0; }
  .pm-battery-fill { height: 100%; width: 70%; background: #0b0b0c; border-radius: 1px; }
  .pm-wa-header { background: #f7f7f8; border-bottom: 1px solid #e6e6e8; padding: 11px 13px 13px; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
  .pm-wa-back { color: #1f9d6b; display: flex; align-items: center; padding-right: 2px; }
  .pm-wa-back svg { width: 22px; height: 22px; }
  .pm-wa-avatar { width: 36px; height: 36px; border-radius: 50%; background: #d9e3df; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: #0e7a64; flex-shrink: 0; }
  .pm-wa-info { flex: 1; min-width: 0; }
  .pm-wa-name { font-size: 14px; font-weight: 600; color: #0b0b0c; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pm-wa-status { font-size: 11px; color: #7a8085; white-space: nowrap; }
  .pm-online-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #25d366; margin-right: 4px; vertical-align: 1px; }
  .pm-wa-icons { display: flex; gap: 14px; color: #1f9d6b; flex-shrink: 0; align-items: center; }
  .pm-wa-icons svg { width: 20px; height: 20px; }
  .pm-msgs { background: #ECE5DD url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='10' cy='10' r='1.5' fill='%23d4cdc6' /%3E%3C/svg%3E"); padding: 10px 10px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: none; }
  .pm-msgs::-webkit-scrollbar { display: none; }
  .pm-date { text-align: center; margin: 4px 0 6px; }
  .pm-date span { background: rgba(255,255,255,.85); font-size: 10px; color: #667781; padding: 3px 10px; border-radius: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
  .pm-msg { display: flex; }
  .pm-msg.left { justify-content: flex-start; }
  .pm-msg.right { justify-content: flex-end; }
  .pm-bubble { max-width: 82%; padding: 6px 10px 4px; border-radius: 10px; font-size: 13px; line-height: 1.45; position: relative; box-shadow: 0 1px 2px rgba(0,0,0,.15); text-align: left; color: #111; }
  .pm-msg.left .pm-bubble { background: #fff; border-top-left-radius: 2px; }
  .pm-msg.right .pm-bubble { background: #D9FDD3; border-top-right-radius: 2px; }
  .pm-meta { display: flex; align-items: center; justify-content: flex-end; gap: 3px; margin-top: 2px; }
  .pm-msg-time { font-size: 10px; color: #8696A0; }
  .pm-ticks { font-size: 12px; color: #53BDEB; line-height: 1; }
  .pm-typing { display: flex; align-items: center; gap: 4px; padding: 9px 11px; background: #fff; border-radius: 10px; border-top-left-radius: 2px; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
  .pm-typing span { width: 7px; height: 7px; border-radius: 50%; background: #8696A0; animation: pmDot 1.2s infinite; }
  .pm-typing span:nth-child(2) { animation-delay: .2s; }
  .pm-typing span:nth-child(3) { animation-delay: .4s; }
  @keyframes pmDot { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
  .pm-input { background: #F0F0F0; padding: 8px 10px; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
  .pm-input-field { flex: 1; background: #fff; border-radius: 24px; padding: 8px 14px; font-size: 12px; color: #888; box-shadow: 0 1px 2px rgba(0,0,0,.1); }
  .pm-mic { width: 36px; height: 36px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; }
  .pm-mic svg { width: 16px; height: 16px; }
  .pm-home { background: #F0F0F0; padding: 6px 0 9px; display: flex; justify-content: center; flex-shrink: 0; }
  .pm-home-bar { width: 120px; height: 4px; background: rgba(0,0,0,.25); border-radius: 2px; }

/* Compact mode (small screens): plain chat card, no device frame. Uses the dashboard variables with fallbacks. */
.pm-card { width: 100%; max-width: 420px; margin: 0 auto; border: 1px solid var(--border, #e1e4e9); border-radius: 14px; overflow: hidden; background: var(--card, #fff); display: flex; flex-direction: column; }
.pm-card .pm-wa-header { background: var(--card-strong, #f7f7f8); border-bottom: 1px solid var(--border, #e6e6e8); }
.pm-card .pm-wa-name { color: var(--text, #0b0b0c); }
.pm-card .pm-wa-status { color: var(--muted, #7a8085); }
.pm-card .pm-msgs { max-height: 420px; }
.pm-card .pm-input { background: var(--card-strong, #F0F0F0); }
.pm-card .pm-input-field { background: var(--card, #fff); color: var(--muted, #888); }
