/* —— In-phone Messages app —— */

.wondalife-phone-screen.is-app .wondalife-phone-wallpaper {
  display: none;
}
.wondalife-phone-screen.is-app {
  background: #f7f8fa;
}
.wondalife-phone-screen.is-app .wondalife-phone-status {
  color: #1c2430;
  text-shadow: none;
}
.wondalife-phone-screen.is-app .wondalife-phone-signal::before {
  background: #1c2430;
  box-shadow: 4px 0 0 #1c2430, 8px -2px 0 #1c2430, 12px -4px 0 #1c2430;
}
.wondalife-phone-screen.is-app .wondalife-phone-battery {
  border-color: #1c2430;
}
.wondalife-phone-screen.is-app .wondalife-phone-battery::before,
.wondalife-phone-screen.is-app .wondalife-phone-battery::after {
  background: #1c2430;
}
.wondalife-phone-screen.is-app .wondalife-phone-body {
  padding: 4px 0 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.wondalife-phone-screen.is-app .wondalife-phone-body:has(.pm-app) > .pm-app,
.wondalife-phone-screen.is-app .wondalife-phone-body:has(.pm-app--thread) > .pm-app--thread {
  flex: 1;
  min-height: 0;
}
.wondalife-phone-screen.is-app .wondalife-phone-homebar {
  background: rgba(28, 36, 48, 0.55);
}

.pm-app {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 0 12px 8px;
  font-family: Poppins, "Segoe UI", sans-serif;
  color: #1c2430;
  box-sizing: border-box;
}

.pm-scroll {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-bottom: 8px;
}

.pm-head {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
  flex-shrink: 0;
}
.pm-title {
  margin: 0;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #152033;
}
.pm-icon-btn,
.pm-bell {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #2f6bff;
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
  padding: 0;
}
.pm-bell.is-active {
  background: #2f6bff;
  color: #fff;
}
.pm-bell-badge {
  position: absolute;
  top: -2px;
  right: -4px;
  min-width: 18px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.pm-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: #e8eaef;
  border-radius: 999px;
  padding: 3px;
  margin-bottom: 12px;
  flex-shrink: 0;
}
.pm-tab {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6b7280;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 10px;
  cursor: pointer;
}
.pm-tab.is-active {
  background: #fff;
  color: #152033;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.pm-notify-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #e8f0ff;
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 10px;
  font-size: 12px;
  color: #2f6bff;
  font-weight: 500;
}
.pm-notify-banner__text {
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}
.pm-notify-banner__icon {
  font-size: 14px;
}

.pm-link {
  border: 0;
  background: transparent;
  color: #2f6bff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
}

.pm-team {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: #ffe8d6;
  padding: 10px 12px;
  margin-bottom: 10px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: #1c2430;
}
.pm-team__icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 16px;
  flex-shrink: 0;
}
.pm-team__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.pm-team__text strong {
  font-size: 13px;
}
.pm-team__text span {
  font-size: 12px;
  color: #6b7280;
}

.pm-compose {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #eef0f4;
  border-radius: 999px;
  padding: 10px 14px;
  margin-bottom: 10px;
}
.pm-compose__icon {
  color: #9aa3b2;
  display: grid;
  line-height: 0;
}
.pm-compose__input {
  flex: 1;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  color: #1c2430;
  outline: none;
  min-width: 0;
}
.pm-compose__input::placeholder {
  color: #9aa3b2;
}

.pm-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.pm-chip {
  border: 1px solid transparent;
  border-radius: 999px;
  background: #eef0f4;
  color: #4b5563;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  cursor: pointer;
}
.pm-chip.is-active {
  background: #e8f0ff;
  border-color: #9db7ff;
  color: #2f6bff;
}

.pm-requests {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  padding: 10px 12px;
  margin-bottom: 12px;
}
.pm-requests__icon {
  color: #2f6bff;
  display: grid;
  line-height: 0;
}
.pm-requests__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.pm-requests__text strong {
  font-size: 13px;
}
.pm-requests__text span {
  font-size: 11px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pm-chat-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pm-chat {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 10px 4px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  border-radius: 12px;
}
.pm-chat:active {
  background: rgba(0, 0, 0, 0.03);
}
.pm-chat__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pm-chat__top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.pm-chat__user {
  font-size: 14px;
  font-weight: 700;
}
.pm-chat__time {
  font-size: 11px;
  color: #9aa3b2;
  flex-shrink: 0;
}
.pm-chat__preview {
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pm-chat.is-unread .pm-chat__preview {
  color: #374151;
  font-weight: 500;
}

.pm-avatar {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: hsl(var(--hue, 210) 55% 62%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.pm-online {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #f7f8fa;
}
.pm-online-inline {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  margin-left: 4px;
}

.pm-hint,
.pm-empty {
  text-align: center;
  font-size: 11px;
  color: #9aa3b2;
  margin: 14px 0 4px;
}

/* Groups */
.pm-groups-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.pm-groups-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #9aa3b2;
}
.pm-new-group {
  border: 0;
  border-radius: 999px;
  background: #e8f0ff;
  color: #2f6bff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
  cursor: pointer;
}
.pm-group-promo {
  display: flex;
  gap: 12px;
  align-items: center;
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(90deg, #f3e8ff 0%, #ffe8d6 100%);
}
.pm-group-promo__art {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  display: grid;
  place-items: center;
  font-size: 28px;
  flex-shrink: 0;
}
.pm-group-promo__copy strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}
.pm-group-promo__copy p {
  margin: 0;
  font-size: 12px;
  color: #4b5563;
  line-height: 1.35;
}

/* New group */
.pm-newgroup {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pm-newgroup__row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pm-newgroup__icon-preview {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f3e8ff, #ffe8d6);
  display: grid;
  place-items: center;
  font-size: 24px;
  flex-shrink: 0;
}
.pm-input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 13px;
  color: #1c2430;
  outline: none;
  box-sizing: border-box;
}
.pm-input:focus {
  border-color: #9db7ff;
}
.pm-emoji-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
.pm-emoji {
  border: 2px solid transparent;
  border-radius: 50%;
  background: #eef0f4;
  aspect-ratio: 1;
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.pm-emoji.is-selected {
  border-color: #2f6bff;
  background: #e8f0ff;
}
.pm-people-label {
  margin: 0;
  font-size: 12px;
  color: #9aa3b2;
  font-weight: 600;
}
.pm-people {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pm-person {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #1c2430;
  cursor: pointer;
  text-align: left;
}
.pm-person .pm-avatar {
  width: 32px;
  height: 32px;
  font-size: 12px;
}
.pm-person.is-selected {
  border-color: #2f6bff;
  background: #e8f0ff;
}
.pm-newgroup__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}
.pm-btn {
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 12px 10px;
  cursor: pointer;
}
.pm-btn--ghost {
  border: 1.5px solid #1c2430;
  background: #fff;
  color: #1c2430;
}
.pm-btn--primary {
  border: 0;
  background: #86efac;
  color: #14532d;
}

/* Updates */
.pm-updates-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.pm-updates-bar__left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}
.pm-updates-bar__bell {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e8f0ff;
  display: grid;
  place-items: center;
  font-size: 13px;
}
.pm-done {
  border: 0;
  border-radius: 999px;
  background: #eef0f4;
  color: #1c2430;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 14px;
  cursor: pointer;
}
.pm-update-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pm-update {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-radius: 16px;
  background: #fff;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}
.pm-update--money,
.pm-update--ok,
.pm-update--health {
  background: #e8f8ee;
}
.pm-update--warn {
  background: #ffe8e8;
}
.pm-update--team {
  background: #eef1f6;
}
.pm-update--status {
  background: #fff;
}
.pm-update__icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.pm-update__body {
  flex: 1;
  min-width: 0;
}
.pm-update__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: #1c2430;
}
.pm-update__time {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #9aa3b2;
}
.pm-money {
  display: inline-block;
  background: #22c55e;
  color: #fff;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
  margin-left: 2px;
}
.pm-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2f6bff;
  margin-top: 12px;
  flex-shrink: 0;
}

/* —— DM thread —— */
.pm-app--thread {
  position: relative;
  height: 100%;
  min-height: 0;
  padding-bottom: 4px;
}
.pm-head--thread {
  margin-bottom: 6px;
  flex-shrink: 0;
}
.pm-more {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #eef0f4;
  color: #1c2430;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}
.pm-thread-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.pm-thread-scroll::-webkit-scrollbar {
  display: none;
}
.pm-private {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 0;
  font-size: 10px;
  color: #9aa3b2;
  text-align: center;
  line-height: 1.3;
}
.pm-private svg {
  flex-shrink: 0;
  opacity: 0.7;
}
.pm-streak {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-family: inherit;
  font-size: 11px;
  padding: 8px 12px;
  cursor: pointer;
}
.pm-streak strong {
  font-weight: 700;
}
.pm-quick {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.pm-quick__btn {
  flex: 1;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 8px 6px;
  cursor: pointer;
  white-space: nowrap;
}
.pm-quick__btn--invite {
  background: #e8f8ee;
  color: #15803d;
  border-color: #bbf7d0;
}
.pm-quick__btn--visit {
  background: #e8f0ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}
.pm-quick__btn--money {
  background: #fef9c3;
  color: #854d0e;
  border-color: #fde68a;
}
.pm-day {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: #9aa3b2;
  margin: 2px 0;
}
.pm-bubbles {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pm-bubble {
  max-width: 88%;
  border-radius: 18px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.35;
  position: relative;
}
.pm-bubble p {
  margin: 0;
}
.pm-bubble time,
.pm-bubble__meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 4px;
  font-size: 10px;
  color: #9aa3b2;
}
.pm-bubble--out {
  align-self: flex-end;
  background: #2f6bff;
  color: #fff;
  border-bottom-right-radius: 6px;
}
.pm-bubble--out time,
.pm-bubble--out .pm-bubble__meta {
  color: rgba(255, 255, 255, 0.8);
}
.pm-ticks {
  letter-spacing: -1px;
  font-size: 11px;
  color: #bfdbfe;
}
.pm-bubble--in {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #1c2430;
  border-bottom-left-radius: 6px;
}
.pm-bubble--money {
  align-self: flex-start;
  background: #fef9c3;
  color: #1c2430;
  border: 1px solid #fde68a;
}
.pm-bubble--voice-req {
  align-self: flex-start;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 4px 10px;
  background: #fff;
  border: 1px solid #e5e7eb;
  max-width: 92%;
}
.pm-voice-req__icon {
  grid-row: 1 / span 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ede9fe;
  color: #7c3aed;
  display: grid;
  place-items: center;
  align-self: center;
}
.pm-bubble--voice-req strong {
  font-size: 12px;
}
.pm-bubble--voice-req p {
  font-size: 11px;
  color: #6b7280;
}
.pm-bubble--voice-req time {
  grid-column: 2;
  justify-self: end;
}

.pm-compose-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding-top: 6px;
  position: relative;
}
.pm-compose-bar--voice {
  align-items: stretch;
}
.pm-thread-input {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1.5px solid #bfdbfe;
  border-radius: 999px;
  padding: 6px 12px 6px 6px;
}
.pm-thread-input.is-emoji-on {
  border-color: #2f6bff;
}
.pm-thread-input__smile {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #9aa3b2;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  line-height: 0;
}
.pm-thread-input__smile[aria-pressed="true"] {
  background: #2f6bff;
  color: #fff;
}
.pm-thread-input input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  color: #1c2430;
  outline: none;
}
.pm-thread-input input::placeholder {
  color: #9aa3b2;
}
.pm-mic {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}
.pm-mic--send svg {
  margin-left: 1px;
}

/* Emoji / sticker sheet */
.pm-emoji-sheet {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 10px;
  margin-bottom: 8px;
  max-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
}
.pm-emoji-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.pm-emoji-tabs::-webkit-scrollbar { display: none; }
.pm-emoji-tab {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6b7280;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  white-space: nowrap;
  cursor: pointer;
}
.pm-emoji-tab.is-active {
  background: #fff;
  color: #1c2430;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.1);
  border: 1px solid #e5e7eb;
}
.pm-emoji-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  overflow: auto;
  min-height: 0;
  flex: 1;
  scrollbar-width: none;
}
.pm-emoji-grid::-webkit-scrollbar { display: none; }
.pm-emoji-cell {
  border: 0;
  background: #f8fafc;
  border-radius: 12px;
  padding: 8px 4px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-family: inherit;
}
.pm-emoji-cell:active { transform: scale(0.96); }
.pm-emoji-cell__e { font-size: 22px; line-height: 1; }
.pm-emoji-cell__t {
  font-size: 9px;
  font-weight: 600;
  color: #6b7280;
  text-align: center;
  line-height: 1.15;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Voice bubbles + recording bar */
.pm-bubble--voice {
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto auto;
  gap: 2px 10px;
  align-items: center;
  min-width: 200px;
  padding: 10px 12px;
}
.pm-bubble--voice.pm-bubble--out {
  background: #2f6bff;
  color: #fff;
}
.pm-bubble--voice.pm-bubble--in {
  background: #2f6bff;
  color: #fff;
  border: 0;
}
.pm-voice-play {
  grid-row: 1 / span 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #2f6bff;
  display: grid;
  place-items: center;
  position: relative;
  cursor: pointer;
  padding: 0;
}
.pm-voice-play__mic {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  color: #2f6bff;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 1px #e5e7eb;
}
.pm-voice-wave {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 22px;
}
.pm-voice-wave i {
  width: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.9);
  display: block;
}
.pm-bubble--voice .pm-bubble__meta {
  grid-column: 2;
  color: rgba(255, 255, 255, 0.85);
  justify-content: space-between;
}
.pm-system {
  align-self: center;
  background: #e8f8ee;
  color: #166534;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  max-width: 100%;
}
.pm-new-div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ef4444;
  font-size: 11px;
  font-weight: 700;
  margin: 4px 0;
}
.pm-new-div::before,
.pm-new-div::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #fecaca;
}

.pm-rec-trash {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #f3f4f6;
  color: #ef4444;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}
.pm-rec-pill {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f3f4f6;
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #1c2430;
}
.pm-rec-pill.is-recording { color: #b91c1c; }
.pm-rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  flex-shrink: 0;
  animation: pm-rec-pulse 1s ease-out infinite;
}
.pm-rec-wave {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 18px;
  min-width: 0;
  overflow: hidden;
}
.pm-rec-pill.is-recording .pm-rec-wave i { background: #f87171; }
.pm-rec-pill.is-paused .pm-rec-wave i { background: #94a3b8; }
.pm-rec-wave i {
  width: 2px;
  border-radius: 1px;
  display: block;
}
.pm-rec-pause,
.pm-rec-play,
.pm-rec-continue {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.pm-rec-pause {
  background: #fee2e2;
  color: #b91c1c;
}
.pm-rec-play {
  background: #2f6bff;
  color: #fff;
}
.pm-rec-continue {
  background: #dcfce7;
  color: #15803d;
}

@keyframes pm-rec-pulse {
  0% { opacity: 1; }
  50% { opacity: 0.35; }
  100% { opacity: 1; }
}

.pm-voice-toast {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 48px;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 16px;
  padding: 10px 12px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.18);
  font-size: 12px;
  font-weight: 600;
  color: #1c2430;
}
.pm-voice-toast span {
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}
.pm-voice-toast__ask {
  border: 0;
  border-radius: 999px;
  background: #1c2430;
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  cursor: pointer;
  white-space: nowrap;
}

/* Action sheet */
.pm-sheet {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.pm-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.28);
}
.pm-sheet__panel {
  position: relative;
  z-index: 1;
  max-height: 78%;
  overflow: auto;
  background: #fff;
  border-radius: 22px 22px 0 0;
  padding: 8px 12px 18px;
  box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.14);
  -webkit-overflow-scrolling: touch;
}
.pm-sheet__handle {
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: #d1d5db;
  margin: 4px auto 10px;
}
.pm-sheet__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 0 4px;
  font-size: 15px;
}
.pm-sheet__dots {
  font-size: 18px;
  line-height: 1;
  color: #6b7280;
}
.pm-sheet__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pm-sheet__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  border-radius: 16px;
  background: #f3f4f6;
  padding: 12px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: #1c2430;
}
.pm-sheet__item.is-danger {
  background: #fee2e2;
  color: #b91c1c;
}
.pm-sheet__item.is-danger .pm-sheet__copy span {
  color: #dc2626;
}
.pm-sheet__icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.pm-sheet__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.pm-sheet__copy strong {
  font-size: 13px;
  font-weight: 700;
}
.pm-sheet__copy span {
  font-size: 11px;
  color: #6b7280;
  line-height: 1.3;
}
