/* Monis — Interactive <mm-phone> Component Styles (craft-r4) */

mm-phone {
  display: block;
  width: 100%;
  max-width: 386px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "PingFang SC", "Helvetica Neue", sans-serif;
  color: #F5F6F8;
  user-select: none;
  -webkit-user-select: none;
  -webkit-font-smoothing: antialiased;
  outline: none;
  position: relative;
}

mm-phone * {
  box-sizing: border-box;
}

/* Outer iPhone Titanium Chassis */
.mmp-chassis {
  position: relative;
  width: 100%;
  border-radius: 50px;
  padding: 11px;
  background: linear-gradient(165deg, #2C2E35 0%, #17181C 45%, #0F1013 100%);
  box-shadow:
    0 30px 70px -18px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(255, 255, 255, 0.14) inset,
    0 1px 2px rgba(255, 255, 255, 0.22) inset;
  transition: box-shadow 0.22s ease;
}

mm-phone:focus-within .mmp-chassis,
mm-phone:focus-visible .mmp-chassis {
  box-shadow:
    0 30px 70px -18px rgba(0, 0, 0, 0.78),
    0 0 0 1.5px rgba(77, 163, 255, 0.65) inset,
    0 0 0 4px rgba(77, 163, 255, 0.16);
}

/* Inner AMOLED Screen */
.mmp-screen {
  position: relative;
  width: 100%;
  border-radius: 40px;
  background: #000000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 12px 12px 10px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

/* iOS Status Bar */
.mmp-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 14px 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.mmp-status-icons {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mmp-signal-dots {
  display: inline-flex;
  gap: 2.5px;
  align-items: center;
}

.mmp-signal-dots span {
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.38);
}

.mmp-signal-dots span.lit {
  background: #FFFFFF;
}

.mmp-battery {
  width: 23px;
  height: 11.5px;
  border-radius: 3.5px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  padding: 1.5px;
  position: relative;
  display: inline-flex;
  align-items: center;
}

.mmp-battery::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 3px;
  width: 1.5px;
  height: 4px;
  border-radius: 0 1px 1px 0;
  background: rgba(255, 255, 255, 0.45);
}

.mmp-battery-fill {
  width: 100%;
  height: 100%;
  border-radius: 1.5px;
  background: #FFFFFF;
}

/* Session Navigation Header (MacBook Pro) */
.mmp-nav-row {
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  align-items: center;
  padding: 2px 2px 10px;
}

.mmp-back-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(38, 40, 46, 0.85);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.16s ease, transform 0.12s ease;
}

.mmp-back-btn:hover {
  background: rgba(58, 61, 70, 0.92);
}

.mmp-back-btn:active {
  transform: scale(0.93);
}

.mmp-host-title {
  text-align: center;
  font-size: 16.5px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mmp-conn-dot-wrap {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-right: 4px;
}

.mmp-conn-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #30D158;
  box-shadow: 0 0 0 3px rgba(48, 209, 88, 0.18);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.mmp-conn-dot.paused {
  background: #FF9F0A;
  box-shadow: 0 0 0 3px rgba(255, 159, 10, 0.18);
}

/* Segmented Mode Pill: 仅查看 | 可控制 */
.mmp-access-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.mmp-access-pill {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 212px;
  padding: 3px;
  border-radius: 999px;
  background: #1C1D22;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.mmp-access-thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  border-radius: 999px;
  background: rgba(98, 101, 112, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  transform: translateX(100%);
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.mmp-access-pill[data-view-only="true"] .mmp-access-thumb {
  transform: translateX(0%);
}

.mmp-access-btn {
  position: relative;
  z-index: 1;
  appearance: none;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: color 0.18s ease;
}

.mmp-access-btn.active {
  color: #FFFFFF;
}

.mmp-access-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Remote Mac Desktop Viewport (1470x956 aspect ratio) */
.mmp-remote-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1470 / 956;
  border-radius: 13px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background-color: #162244;
  background-image:
    radial-gradient(120% 90% at 15% 10%, rgba(44, 82, 158, 0.72) 0%, rgba(20, 33, 68, 0.92) 58%, #0E152B 100%);
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
  cursor: crosshair;
  flex-shrink: 0;
  transition: aspect-ratio 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Remote macOS Menu Bar inside preview */
.mmp-mac-menubar {
  position: relative;
  z-index: 2;
  height: 18px;
  padding: 0 8px;
  background: rgba(14, 18, 30, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 8.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.mmp-mac-menus-left,
.mmp-mac-menus-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mmp-mac-menus-left strong {
  font-weight: 700;
}

/* Back Xcode Window */
.mmp-xcode-back {
  position: absolute;
  top: 28px;
  left: 16px;
  width: 56%;
  height: 64%;
  border-radius: 8px;
  background: rgba(34, 38, 48, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.11);
  padding: 6px 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.38);
  pointer-events: none;
}

.mmp-win-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 8px;
  color: rgba(255, 255, 255, 0.68);
}

.mmp-dots {
  display: inline-flex;
  gap: 3.5px;
}

.mmp-dots span {
  width: 5.5px;
  height: 5.5px;
  border-radius: 50%;
}

.mmp-dots span:nth-child(1) { background: #FF5F57; }
.mmp-dots span:nth-child(2) { background: #FEBC2E; }
.mmp-dots span:nth-child(3) { background: #28C840; }

/* Front Active Xcode Window (Where Typed Text & Cursor Land!) */
.mmp-xcode-front {
  position: absolute;
  top: 36px;
  left: 15%;
  right: 8px;
  bottom: 25px;
  border-radius: 8px;
  background: rgba(24, 27, 36, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.58);
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
}

.mmp-code-block {
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 8px;
  line-height: 1.42;
  color: #D7DCE6;
  margin-top: 1px;
  white-space: nowrap;
}

.mmp-code-comment {
  color: #59C97A;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mmp-code-live-line {
  margin-top: 2px;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(77, 163, 255, 0.14);
  border-left: 2px solid #4DA3FF;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  transition: background-color 0.24s ease, border-color 0.24s ease;
}

.mmp-code-live-line.just-committed {
  background: rgba(48, 209, 88, 0.24);
  border-left-color: #30D158;
}

.mmp-committed-str {
  color: #FFD479;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mmp-committed-badge {
  font-size: 7px;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
  flex-shrink: 0;
}

/* Remote Mac Pointer inside iPhone Preview */
.mmp-remote-cursor {
  position: absolute;
  z-index: 8;
  left: 62%;
  top: 56%;
  transform: translate(-2px, -2px);
  pointer-events: none;
  transition: left 0.09s cubic-bezier(0.22, 1, 0.36, 1), top 0.09s cubic-bezier(0.22, 1, 0.36, 1), transform 0.14s ease;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.65));
}

.mmp-remote-cursor.clicking {
  transform: translate(-2px, -2px) scale(0.82);
}

.mmp-cursor-ripple {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #dadbd5;
  transform: translate(-35%, -35%) scale(0.2);
  opacity: 0;
  pointer-events: none;
}

.mmp-remote-cursor.clicking .mmp-cursor-ripple {
  animation: mmpRipple 0.38s ease-out;
}

@keyframes mmpRipple {
  0% { transform: translate(-35%, -35%) scale(0.3); opacity: 0.95; }
  100% { transform: translate(-35%, -35%) scale(1.65); opacity: 0; }
}

/* Remote macOS Dock */
.mmp-mac-dock {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 7px;
  border-radius: 8px;
  background: rgba(42, 48, 66, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: inline-flex;
  gap: 6px;
  pointer-events: none;
}

.mmp-mac-dock span {
  width: 9px;
  height: 9px;
  border-radius: 2.5px;
}

/* Host Connection Paused Overlay */
.mmp-paused-overlay {
  position: absolute;
  inset: 0;
  z-index: 12;
  background: rgba(10, 12, 18, 0.76);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 16px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.mmp-paused-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.mmp-paused-title {
  font-size: 12px;
  font-weight: 650;
  color: #FFFFFF;
}

.mmp-paused-sub {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.68);
}

/* 4-Item Control Toolbar Pill ([触控板] [键盘] [剪贴板] [•••]) */
.mmp-toolbar-shell {
  margin-top: 10px;
  transition: opacity 0.22s ease, transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.mmp-toolbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  height: 50px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #1C1D22;
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.36);
}

.mmp-tool-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  height: 38px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: color 0.16s ease, transform 0.12s ease;
}

.mmp-tool-btn:hover {
  color: #FFFFFF;
}

.mmp-tool-btn:active {
  transform: scale(0.92);
}

.mmp-tool-disc {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.mmp-tool-btn.active .mmp-tool-disc {
  background: rgba(54, 120, 205, 0.26);
  border-color: rgba(94, 176, 255, 0.48);
  color: #66B8FF;
}

.mmp-tool-btn svg {
  width: 20px;
  height: 20px;
}

/* Dynamic Bottom Workspace Drawer (Morphs between Keyboard / Trackpad / Clipboard / Tools / View-Only) */
.mmp-drawer {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-top: 10px;
  min-height: 282px;
}

.mmp-pane {
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
  height: 100%;
  animation: mmpPaneIn 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.mmp-pane.active {
  display: flex;
}

@keyframes mmpPaneIn {
  from {
    opacity: 1;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   PANE 1: KEYBOARD + INPUT BAR + SHORTCUT STRIP
   ============================================================ */
.mmp-input-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  height: 42px;
  padding: 0 10px 0 13px;
  border-radius: 14px;
  background: #1C1D22;
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.mmp-input-display {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
  color: #FFFFFF;
  min-width: 0;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.mmp-caret {
  display: inline-block;
  width: 2px;
  height: 18px;
  border-radius: 1px;
  background: #3B82F6;
  margin-left: 1px;
  animation: mmpBlink 1.05s infinite steps(2, start);
}

@keyframes mmpBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.mmp-candidates {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.mmp-cand-chip {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease, transform 0.1s ease;
}

.mmp-cand-chip:hover {
  background: rgba(77, 163, 255, 0.22);
  border-color: rgba(102, 184, 255, 0.5);
  color: #FFFFFF;
}

.mmp-cand-chip:active {
  transform: scale(0.95);
}

/* Accessory Strip: Esc | Tab | ← | ↑ | ↓ | → | Keyboard Hide */
.mmp-accessory-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: center;
  height: 34px;
  padding: 0 2px;
}

.mmp-acc-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 500;
  height: 30px;
  border-radius: 6px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.12s ease, color 0.12s ease;
}

.mmp-acc-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.mmp-acc-btn:active {
  background: rgba(77, 163, 255, 0.24);
}

/* iOS Dark Keyboard Surface */
.mmp-kb-tray {
  background: #1B1C20;
  border-radius: 22px;
  padding: 9px 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.mmp-kb-row {
  display: flex;
  justify-content: center;
  gap: 4.5px;
}

.mmp-kb-row.row-2 {
  padding: 0 14px;
}

.mmp-key {
  appearance: none;
  border: none;
  height: 39px;
  min-width: 29px;
  flex: 1;
  border-radius: 7.5px;
  background: #47484E;
  color: #FFFFFF;
  font-size: 16.5px;
  font-weight: 450;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.65);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background-color 0.08s ease, transform 0.08s ease;
}

.mmp-key:hover {
  background: #575860;
}

.mmp-key:active,
.mmp-key.pressed {
  background: #6E7889;
  transform: translateY(1px) scale(0.96);
}

.mmp-key.key-fn {
  background: #2C2D33;
  font-size: 13px;
  font-weight: 500;
  flex: 1.32;
}

.mmp-key.key-space {
  flex: 4.2;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  justify-content: flex-end;
  padding-right: 10px;
}

.mmp-key.key-return {
  background: #3B82F6;
  color: #FFFFFF;
  flex: 1.95;
  font-weight: 600;
}

.mmp-key.key-return:hover {
  background: #4F8FF7;
}

.mmp-key.key-return:active,
.mmp-key.key-return.pressed {
  background: #2563EB;
}

/* ============================================================
   PANE 2: INTERACTIVE TRACKPAD SURFACE (matching control.webp)
   ============================================================ */
.mmp-trackpad-card {
  position: relative;
  flex: 1;
  min-height: 296px;
  border-radius: 24px;
  background: linear-gradient(180deg, #17181C 0%, #101114 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45) inset;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
}

.mmp-trackpad-card:active {
  cursor: grabbing;
}

.mmp-tp-top,
.mmp-tp-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.52);
  pointer-events: none;
  z-index: 2;
}

.mmp-tp-quick-row {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 6px;
}

.mmp-tp-chip {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.86);
  font-size: 11.5px;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.mmp-tp-chip:hover {
  background: rgba(77, 163, 255, 0.2);
  border-color: rgba(102, 184, 255, 0.45);
}

/* ============================================================
   PANE 3 & 4: CLIPBOARD & MORE TOOLS SHEETS
   ============================================================ */
.mmp-sheet-card {
  flex: 1;
  min-height: 296px;
  border-radius: 24px;
  background: #17181D;
  border: 1px solid rgba(255, 255, 255, 0.11);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.mmp-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mmp-sheet-sub {
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
}

.mmp-sheet-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.mmp-sheet-item {
  appearance: none;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: #21232A;
  color: #FFFFFF;
  border-radius: 12px;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.mmp-sheet-item:hover {
  background: #282B34;
  border-color: rgba(102, 184, 255, 0.42);
}

.mmp-sheet-item:active {
  transform: scale(0.985);
}

.mmp-sheet-item.selected {
  border-color: rgba(48, 209, 88, 0.55);
  background: rgba(48, 209, 88, 0.12);
}

.mmp-item-title {
  font-size: 13px;
  font-weight: 550;
  color: #FFFFFF;
}

.mmp-item-desc {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.56);
  margin-top: 2px;
}

.mmp-item-tag {
  font-size: 11px;
  font-weight: 500;
  color: #66B8FF;
  white-space: nowrap;
}

/* ============================================================
   PANE 5: VIEW-ONLY MODE (仅查看 — Controls tucked away cleanly)
   ============================================================ */
.mmp-viewonly-card {
  flex: 1;
  min-height: 296px;
  border-radius: 24px;
  background: rgba(24, 26, 32, 0.65);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
}

.mmp-viewonly-title {
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
}

.mmp-viewonly-desc {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.62);
  max-width: 240px;
}

.mmp-resume-btn {
  appearance: none;
  border: 1px solid rgba(102, 184, 255, 0.45);
  background: rgba(54, 120, 205, 0.24);
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
}

/* Subtle bottom status toast & home indicator */
.mmp-footer-bar {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.mmp-toast {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.72);
  min-height: 16px;
  text-align: center;
  transition: color 0.18s ease;
}

.mmp-home-indicator {
  width: 118px;
  height: 4.5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
}

@media (max-width: 420px) {
  mm-phone {
    max-width: 356px;
  }
  .mmp-screen {
    min-height: 710px;
    padding: 10px 10px 8px;
  }
  .mmp-key {
    height: 36px;
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  mm-phone *,
  mm-phone *::before,
  mm-phone *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
