/* Interactive First-Person Smartphone Simulation (Echorial Deep Sea Blue + Highlight Cyan) */
.phone-player {
  --phone-accent: #5ef2e4;
  min-width: 0;
  color: #f2f9fd;
}

.student-materials .phone-player {
  padding: clamp(12px, 1.5vw, 18px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0d2336;
}

.phone-player-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.phone-player-heading > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-player-heading > span {
  font-size: 12px !important;
  color: #8ad8ff;
  font-weight: 600;
  white-space: nowrap;
}

.phone-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--phone-accent);
  box-shadow: 0 0 0 4px rgba(94, 242, 228, 0.2);
}

.phone-is-live .phone-live-dot {
  animation: phone-dot-pulse 2.2s ease-in-out infinite;
}

.phone-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 16px 10px;
  border: 1px solid rgba(138, 216, 255, 0.24);
  border-radius: 20px;
  background: linear-gradient(155deg, #0d2b44, #061420);
}

.phone-backdrop {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: blur(4px) saturate(0.75);
  transform: scale(1.06);
}

.phone-stage::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(circle at 50% 18%, rgba(94, 242, 228, 0.12), transparent 58%),
              linear-gradient(150deg, rgba(10, 32, 51, 0.72), rgba(5, 16, 26, 0.9));
}

.phone-frame {
  position: relative;
  width: min(100%, 348px);
  border: 7px solid #060f17;
  outline: 1px solid rgba(138, 216, 255, 0.34);
  border-radius: 40px;
  background: #060f17;
  box-shadow: 0 22px 48px rgba(2, 8, 15, 0.72), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.phone-frame::before {
  content: "";
  position: absolute;
  top: 104px;
  left: -10px;
  height: 38px;
  width: 3px;
  border-radius: 2px;
  background: #486b86;
  box-shadow: 0 48px #486b86;
}

.phone-frame::after {
  content: "";
  position: absolute;
  top: 138px;
  right: -10px;
  height: 58px;
  width: 3px;
  border-radius: 2px;
  background: #486b86;
}

.phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: clamp(428px, 50vh, 488px);
  overflow: hidden;
  border-radius: 33px;
  font-family: var(--ech-font-sans, system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif);
  font-size: 14.5px;
  line-height: 1.6;
}

.phone-light {
  color: #0d2133;
  background: #f2f6fa;
}

.phone-dark {
  color: #ffffff;
  background: radial-gradient(ellipse at 50% 12%, #143f61, #071828 68%);
}

.phone-status {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 16px 6px;
  height: 36px;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.phone-island {
  position: absolute;
  width: 76px;
  height: 19px;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 20px;
  background: #03080d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone-status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 600;
}

.phone-status-icons i {
  position: relative;
  width: 17px;
  height: 9px;
  border: 1px solid currentColor;
  border-radius: 3px;
}

.phone-status-icons i::before {
  content: "";
  position: absolute;
  inset: 1px 4px 1px 1px;
  border-radius: 1px;
  background: currentColor;
}

/* Interactive Slide-Down Push Notification Banner */
.phone-push-banner {
  flex: none;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  margin: 2px 10px 4px;
  padding: 8px 10px;
  border: 1px solid rgba(94, 242, 228, 0.42);
  border-radius: 14px;
  background: rgba(10, 34, 52, 0.92);
  box-shadow: 0 10px 22px rgba(2, 10, 18, 0.48);
  color: #f4fbff;
  text-align: left;
  cursor: pointer;
  backdrop-filter: blur(10px);
  animation: phone-push-drop 0.38s cubic-bezier(0.2, 0.9, 0.3, 1) both;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.phone-push-banner:hover {
  transform: translateY(-1px);
  border-color: var(--phone-accent);
  background: rgba(15, 48, 73, 0.96);
}

.phone-push-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(145deg, #27c27c, #18965d);
  color: #ffffff;
}

.phone-push-icon .phone-icon {
  width: 17px;
  height: 17px;
}

.phone-push-copy {
  min-width: 0;
}

.phone-push-copy strong {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phone-push-copy small {
  display: block;
  margin-top: 1px;
  font-size: 11.5px !important;
  color: #c3e4f7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phone-push-open {
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(94, 242, 228, 0.16);
  color: var(--phone-accent);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

/* App Top Header */
.phone-app-header {
  flex: none;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 8px;
  padding: 7px 10px 8px;
  border-bottom: 1px solid rgba(16, 48, 74, 0.12);
  background: rgba(255, 255, 255, 0.9);
}

.phone-dark .phone-app-header {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.phone-header-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(20, 92, 140, 0.25);
  border-radius: 8px;
  background: rgba(20, 92, 140, 0.08);
  color: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.phone-dark .phone-header-btn {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.phone-header-btn:hover:not(:disabled) {
  background: rgba(94, 242, 228, 0.24);
  border-color: #1478a8;
}

.phone-header-btn:disabled {
  opacity: 0.28;
  cursor: default;
}

.phone-app-header > div {
  min-width: 0;
  text-align: center;
}

.phone-app-header b {
  display: block;
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phone-app-header small {
  display: block;
  font-size: 11px !important;
  color: #3e576d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phone-dark .phone-app-header small {
  color: #b8d8eb;
}

.phone-content {
  flex: 1;
  min-height: 0;
  padding: 13px 12px 12px;
  overflow: auto;
  scrollbar-width: thin;
  overscroll-behavior: contain;
}

.phone-content h3 {
  margin: 0 0 7px;
  font-size: 16.5px;
  font-weight: 750;
  line-height: 1.38;
  color: inherit;
  overflow-wrap: anywhere;
}

.phone-content p {
  margin: 0 0 8px;
  color: inherit;
  font-size: 14px;
  line-height: 1.62;
  overflow-wrap: anywhere;
}

.phone-home-indicator {
  flex: none;
  margin: 5px auto 6px;
  height: 4px;
  width: 96px;
  border-radius: 10px;
  background: currentColor;
  opacity: 0.56;
}

.phone-icon {
  display: inline-block;
  width: 22px;
  height: 22px;
  flex: none;
  vertical-align: middle;
}

/* First-Person Incoming Call Screen */
.phone-caller {
  padding: 4px 6px 2px;
  text-align: center;
}

.phone-caller-tag {
  display: inline-block;
  margin-bottom: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 168, 120, 0.45);
  background: rgba(224, 92, 62, 0.22);
  color: #ffd7c7;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.phone-caller-number {
  font-size: 20px !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  margin-bottom: 3px !important;
}

.phone-caller .phone-caller-note {
  color: #c2dff0;
  font-size: 12.5px;
  margin-bottom: 8px;
}

.phone-rings {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 4px auto 8px;
  border-radius: 50%;
  color: #05202b;
  background: var(--phone-accent);
  box-shadow: 0 10px 26px rgba(94, 242, 228, 0.32);
}

.phone-rings .phone-icon {
  width: 27px;
  height: 27px;
}

.phone-rings::before,
.phone-rings::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(94, 242, 228, 0.55);
  border-radius: 50%;
}

.phone-rings::after {
  inset: -17px;
  opacity: 0.45;
}

.phone-call-bottom,
.phone-call-actions {
  display: flex;
  justify-content: space-around;
  gap: 10px;
  margin-top: 9px;
  text-align: center;
}

.phone-mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #eaf6fe;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

.phone-mini-btn:hover {
  background: rgba(94, 242, 228, 0.16);
  border-color: var(--phone-accent);
}

.phone-mini-btn .phone-icon {
  width: 15px;
  height: 15px;
}

.phone-round-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}

.phone-round-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.phone-round-btn i {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.38);
}

.phone-round-btn .decline {
  background: #e6485e;
  color: #ffffff;
  transform: rotate(135deg);
}

.phone-round-btn .answer {
  background: #22c17b;
  color: #ffffff;
}

/* Call-Ended & Recent Call Logs Screen */
.phone-declined-card {
  margin-top: 8px;
  padding: 16px 13px;
  border: 1px solid rgba(94, 242, 228, 0.38);
  border-radius: 18px;
  background: rgba(11, 37, 57, 0.92);
  text-align: center;
}

.phone-declined-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(94, 242, 228, 0.16);
  color: var(--phone-accent);
  font-size: 11.5px;
  font-weight: 750;
}

.phone-declined-card p {
  font-size: 12.5px;
  color: #c2dff0;
}

.phone-call-logs {
  margin: 12px 0;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(4, 15, 25, 0.55);
  border: 1px solid rgba(138, 216, 255, 0.18);
  text-align: left;
}

.phone-call-log-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 2px 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

.phone-call-log-row:last-child {
  border-bottom: 0;
}

.phone-call-log-row span {
  grid-row: span 2;
  color: #8ab8d4;
}

.phone-call-log-row strong {
  color: #f4fbff;
  font-size: 12px;
}

.phone-call-log-row small {
  color: #9ec5dd;
  font-size: 11px !important;
}

.phone-declined-actions {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.phone-action-chip {
  width: 100%;
  min-height: 38px;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid rgba(138, 216, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
  color: #f2f9fd;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.phone-action-chip:hover {
  border-color: var(--phone-accent);
  background: rgba(94, 242, 228, 0.14);
}

.phone-action-chip.primary {
  background: var(--phone-accent);
  border-color: var(--phone-accent);
  color: #05202b;
}

.phone-action-chip.primary:hover {
  background: #89f8ee;
}

.phone-action-chip.subtle {
  border-color: rgba(255, 255, 255, 0.16);
  background: transparent;
  color: #b7d6ea;
  font-weight: 600;
}

/* Active Call & Dark Video Interrogation Room */
.phone-session {
  text-align: center;
}

.phone-session-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #dbf0fc;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

.phone-session-tag.is-rec {
  background: rgba(230, 72, 94, 0.24);
  border: 1px solid rgba(255, 130, 148, 0.45);
  color: #ffe3e8;
}

.phone-session-tag i,
.phone-sharing-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--phone-accent);
}

.phone-session-tag.is-rec i {
  background: #ff4f68;
  animation: phone-dot-pulse 1.1s ease-in-out infinite;
}

.phone-caller-avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 10px auto 6px;
  border-radius: 50%;
  background: rgba(94, 242, 228, 0.14);
  border: 1px solid rgba(94, 242, 228, 0.3);
  color: var(--phone-accent);
}

.phone-caller-avatar .phone-icon {
  width: 28px;
  height: 28px;
}

.phone-session h3 {
  font-size: 15px;
  margin: 4px 0 0;
}

.phone-video-person {
  position: relative;
  display: grid;
  place-items: center;
  height: 126px;
  margin-top: 9px;
  border: 1px solid rgba(138, 216, 255, 0.26);
  border-radius: 14px;
  background: radial-gradient(circle at 50% 35%, #1d4a6e, #081826 78%);
  overflow: hidden;
}

.phone-video-person > .phone-icon {
  width: 82px;
  height: 96px;
  opacity: 0.58;
  stroke-width: 0.9;
}

.phone-video-badge-flash {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(5, 18, 28, 0.78);
  border: 1px solid rgba(255, 196, 118, 0.45);
  color: #ffdfa8;
  font-size: 10.5px;
  font-weight: 600;
}

.phone-self-view {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 56px;
  background: #12344f;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
}

.phone-self-view span {
  position: absolute;
  top: 3px;
  left: 5px;
  font-size: 9px;
  color: #bce4fa;
}

.phone-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 32px;
  margin: 6px auto;
}

.phone-wave i {
  display: block;
  width: 3px;
  height: var(--height);
  max-height: 28px;
  border-radius: 4px;
  background: var(--phone-accent);
  transform: scaleY(0.45);
}

.phone-voice-card {
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(138, 216, 255, 0.26);
  border-radius: 12px;
  background: rgba(7, 25, 40, 0.72);
  text-align: left;
}

.phone-voice-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.phone-voice-card .phone-voice-caption {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px !important;
  color: var(--phone-accent);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0;
}

.phone-voice-play {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(94, 242, 228, 0.45);
  background: rgba(94, 242, 228, 0.14);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
}

.phone-voice-play:hover {
  background: rgba(94, 242, 228, 0.28);
}

.phone-pad-pill.is-muted {
  border-color: rgba(255, 130, 148, 0.5);
  background: rgba(220, 60, 84, 0.22);
  color: #ffd6dd;
}

.phone-wave.is-speaking i {
  animation-duration: 0.36s !important;
  background: #89f8ee;
}

.phone-sync-row {
  margin-top: 10px;
}

.phone-sync-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 32px;
  padding: 5px 10px;
  border-radius: 9px;
  border: 1px dashed rgba(13, 92, 140, 0.4);
  background: rgba(13, 92, 140, 0.08);
  color: #0a466e;
  font-size: 11.5px;
  font-weight: 700;
}

button.phone-sync-pill {
  cursor: pointer;
}

.phone-dark .phone-sync-pill {
  border-color: rgba(94, 242, 228, 0.4);
  background: rgba(94, 242, 228, 0.12);
  color: var(--phone-accent);
}

.phone-sync-pill.is-synced {
  border-style: solid;
  border-color: rgba(34, 193, 123, 0.45);
  background: rgba(34, 193, 123, 0.14);
  color: #0e6642;
}

.phone-dark .phone-sync-pill.is-synced {
  color: #9bf5cb;
}

.phone-stop-share-btn.is-safe {
  border-color: #1b6b52;
  background: #1b6b52;
}

.phone-stop-share-btn.is-safe:hover {
  background: #145440;
}

/* High-Impact Risk Deduction Alert Screen */
.phone-alert-banner {
  margin-top: 8px;
  padding: 16px 13px;
  border-radius: 16px;
  border: 1px solid rgba(255, 130, 148, 0.55);
  background: linear-gradient(150deg, rgba(132, 22, 44, 0.94), rgba(56, 10, 22, 0.96));
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}

.phone-alert-kicker {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffd4dc;
  font-size: 11px;
  font-weight: 750;
}

.phone-alert-amount {
  display: block;
  margin: 2px 0 8px;
  font-size: 26px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  color: #ffccd5;
}

.phone-alert-sub {
  font-size: 12px !important;
  color: #ffdce2 !important;
}

.phone-alert-choice {
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  font-size: 12px !important;
  font-weight: 700;
}

.phone-frame.is-alert-shake {
  animation: phone-alert-shake 0.44s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes phone-alert-shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-6px); }
  40%, 60% { transform: translateX(6px); }
}

.phone-voice-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--phone-accent);
}

.phone-voice-card p:last-child {
  font-size: 13.8px;
  line-height: 1.58;
  margin: 0;
}

.phone-call-pad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.phone-pad-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #b7d6ea;
  font-size: 11px;
  font-weight: 600;
}

.phone-pad-pill.is-on {
  border-color: rgba(94, 242, 228, 0.38);
  background: rgba(94, 242, 228, 0.14);
  color: #ffffff;
}

.phone-pad-pill.interactive {
  cursor: pointer;
  border-color: rgba(138, 216, 255, 0.42);
  color: var(--phone-accent);
}

.phone-pad-pill.interactive:hover {
  background: rgba(94, 242, 228, 0.2);
}

.phone-in-call-tools {
  display: flex;
  justify-content: center;
  margin-top: 11px;
}

.phone-end-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 130, 148, 0.6);
  background: #dc3c54;
  color: #ffffff;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(220, 60, 84, 0.35);
  transition: transform 0.16s ease, background 0.16s ease;
}

.phone-end-btn:hover {
  background: #c82d45;
  transform: translateY(-1px);
}

.phone-end {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: rotate(135deg);
  color: #ffffff;
}

.phone-end .phone-icon {
  width: 15px;
  height: 15px;
}

/* WeChat / Peer Chat View */
.phone-chat-date {
  text-align: center;
  margin: 0 0 11px;
  color: #3e576d;
  font-size: 11px;
}

.phone-chat-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}

.phone-chat-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  background: #d7e9f7;
  border-radius: 8px;
  color: #0e4a73;
}

.phone-chat-avatar.is-peer {
  background: #d4f3e5;
  color: #0f6b47;
}

.phone-chat-avatar .phone-icon {
  width: 18px;
  height: 18px;
}

.phone-chat-row > div:last-child {
  min-width: 0;
}

.phone-content .phone-chat-sender {
  font-size: 11px !important;
  color: #3e576d;
  font-weight: 650;
  margin: 0 0 4px;
}

.phone-bubble {
  padding: 10px 12px;
  border: 1px solid #d2e0ec;
  background: #ffffff;
  border-radius: 3px 13px 13px 13px;
  font-size: 14px;
  color: #0d2133;
  box-shadow: 0 2px 6px rgba(10, 32, 52, 0.05);
  overflow-wrap: anywhere;
}

.phone-chat-self .phone-bubble {
  background: #95ec69;
  border-color: #7ed953;
  color: #092212;
}

.phone-wechat-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 7px 9px;
  border-radius: 12px;
  border: 1px solid #cedee9;
  background: #ffffff;
}

.phone-wechat-input {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  color: #3e576d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phone-wechat-btn {
  flex: none;
  padding: 6px 11px;
  border: 0;
  border-radius: 8px;
  background: #0d5c8c;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.phone-wechat-btn:hover {
  background: #09456b;
}

/* Mobile Banking Real-Time Ledger Card */
.phone-bank-card {
  margin-bottom: 11px;
  padding: 12px 13px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(140deg, #0b4f45, #08333a);
  border: 1px solid rgba(94, 242, 228, 0.35);
  box-shadow: 0 8px 18px rgba(6, 26, 36, 0.18);
}

.phone-bank-card.is-danger {
  background: linear-gradient(140deg, #7d1e32, #471120);
  border-color: rgba(255, 148, 162, 0.45);
}

.phone-bank-head {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.82);
}

.phone-bank-amount {
  display: block;
  margin: 5px 0 3px;
  font-size: 24px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.phone-bank-label {
  display: inline-block;
  font-size: 11.5px;
  color: #b9f5dc;
  font-weight: 600;
}

.phone-bank-card.is-danger .phone-bank-label {
  color: #ffd0d6;
}

/* Paper, Attachment & Official App Views */
.phone-compose,
.phone-paper-cta,
.phone-share-actions {
  margin-top: 12px;
}

.phone-compose-verify {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 11px;
  border-radius: 10px;
  border: 1px solid #9dc6e2;
  background: #e3f1fb;
  color: #0a3c5e;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.phone-compose-verify:hover {
  background: #d0e8f9;
  border-color: #0d5c8c;
}

.phone-compose-verify .phone-icon {
  width: 16px;
  height: 16px;
}

.phone-app-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
  color: #3e576d;
  font-size: 11.5px;
  font-weight: 650;
}

.phone-app-label > .phone-icon {
  width: 18px;
  height: 18px;
}

.phone-paper {
  padding: 13px 13px;
  border: 1px solid #cfdeea;
  border-radius: 13px;
  background: #ffffff;
  color: #0d2133;
}

.phone-paper-kicker {
  display: block;
  margin-bottom: 4px;
  color: #3e576d;
  font-size: 11px !important;
  font-weight: 650;
}

.phone-attachment-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  padding: 5px 9px;
  border-radius: 8px;
  background: #eef4f9;
  border: 1px solid #cbdde9;
  color: #163d5c;
  font-size: 11.5px;
  font-weight: 650;
}

.phone-attachment-pill .phone-icon {
  width: 15px;
  height: 15px;
}

.phone-facts {
  margin: 11px 0 0;
  border-top: 1px solid rgba(16, 66, 104, 0.14);
}

.phone-facts > div {
  display: grid;
  gap: 2px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(16, 66, 104, 0.12);
}

.phone-facts dt {
  font-size: 11px !important;
  color: #3e576d;
  font-weight: 650;
}

.phone-dark .phone-facts dt {
  color: #b8d8eb;
}

.phone-facts dd {
  margin: 0;
  font-size: 13.5px;
  overflow-wrap: anywhere;
  line-height: 1.55;
}

.phone-file-footer {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 13px -13px -13px;
  padding: 9px 13px;
  border-top: 1px solid #d8e5ef;
  background: #f3f8fc;
  color: #3e576d;
  font-size: 11px !important;
  border-radius: 0 0 13px 13px;
}

.phone-footnote {
  margin-top: 10px !important;
  color: #3e576d !important;
  font-size: 11px !important;
}

.phone-action {
  padding: 8px 10px;
  border-radius: 8px;
  background: #e4f3fc;
  color: #093b5c;
  font-weight: 700;
}

/* Screen Sharing High-Risk View */
.phone-sharing-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px;
  border-radius: 9px;
  background: #b93146;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
}

.phone-sharing-bar.is-stopped {
  background: #1b6b52;
}

.phone-share-visual {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  height: 92px;
  margin: 10px 0;
  border: 1px dashed #8cb8d6;
  border-radius: 12px;
  background: linear-gradient(145deg, #e2eff9, #f4f9fd);
  color: #0d5c8c;
}

.phone-share-visual > .phone-icon {
  width: 40px;
  height: 58px;
  stroke-width: 1.1;
}

.phone-share-scan {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: rgba(13, 92, 140, 0.72);
  box-shadow: 0 0 18px 6px rgba(13, 92, 140, 0.22);
}

.phone-stop-share-btn {
  width: 100%;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #b93146;
  background: #b93146;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 750;
  cursor: pointer;
}

.phone-stop-share-btn:hover {
  background: #982537;
}

/* App Switcher Dock & Playback Controls */
.phone-frame-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
}

.phone-playback {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
}

.phone-playback button,
.phone-frame-nav button {
  min-height: 33px;
  border: 1px solid var(--control-line);
  border-radius: 8px;
  padding: 5px 10px;
  background: var(--inset);
  color: var(--ink);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.phone-playback button:hover,
.phone-frame-nav button:hover {
  background: var(--raised);
  border-color: var(--phone-accent);
}

.phone-frame-nav button {
  padding: 4px 10px;
  font-size: 11.5px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.phone-frame-nav button[aria-pressed="true"] {
  background: var(--phone-accent);
  border-color: var(--phone-accent);
  color: #05202b;
  font-weight: 750;
}

.phone-frame-count {
  margin-left: auto;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  white-space: nowrap;
}

.phone-progress {
  height: 3px;
  overflow: hidden;
  background: rgba(138, 216, 255, 0.16);
  border-radius: 3px;
  margin: 8px 0 8px;
}

.phone-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--phone-accent);
}

.phone-current-caption {
  margin: 6px 0 0 !important;
  font-size: 12px !important;
  color: var(--muted) !important;
}

.phone-transcript {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--inset);
}

.phone-transcript summary {
  cursor: pointer;
  color: var(--student-accent);
  font-size: 12.5px;
  font-weight: 650;
}

.phone-transcript h3 { margin: 12px 0 4px; font-size: 13px; }
.phone-transcript p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.7; }

/* Live Animations (active whenever phone is live, even when auto-advance is paused) */
.phone-is-live .phone-rings::before { animation: phone-ring 2.2s ease-out infinite; }
.phone-is-live .phone-rings::after { animation: phone-ring 2.2s 0.65s ease-out infinite; }
.phone-is-live .phone-rings > .phone-icon { animation: phone-vibrate 0.42s ease-in-out infinite alternate; }
.phone-is-live .phone-wave i { animation: phone-wave 0.72s calc(var(--bar) * -0.12s) ease-in-out infinite alternate; }
.phone-is-live .phone-share-scan { animation: phone-scan 2.4s ease-in-out infinite; }
.phone-is-live .phone-arrive { animation: phone-reveal 0.36s calc(var(--order, 0) * 0.08s) ease-out both; }

@keyframes phone-ring { 0% { transform: scale(0.92); opacity: 0.85; } 100% { transform: scale(1.38); opacity: 0; } }
@keyframes phone-vibrate { from { transform: rotate(-10deg); } to { transform: rotate(10deg); } }
@keyframes phone-wave { from { transform: scaleY(0.24); } to { transform: scaleY(1); } }
@keyframes phone-scan { to { transform: translateY(90px); } }
@keyframes phone-reveal { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes phone-push-drop { from { opacity: 0; transform: translateY(-10px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes phone-dot-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.85); } }

@media (max-width: 380px) {
  .phone-stage { padding: 12px 6px; border-radius: 14px; }
  .phone-frame { border-width: 6px; border-radius: 31px; }
  .phone-screen { border-radius: 25px; }
  .phone-content { padding: 11px 9px; }
  .phone-status { padding-inline: 12px; }
  .phone-island { width: 62px; }
  .phone-player-heading { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .phone-player *, .phone-player *::before, .phone-player *::after {
    animation: none !important;
    transition: none !important;
  }
}
