/* Phone-only remote UI. The remote-open reset isolates the existing settings shell. */
#settings-shortcuts > .mobile-remote__entry {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  margin-top: 8px;
  padding: 8px 11px;
  color: #17243b;
  background: #f5f7fb;
  border: 1px solid #e5e8ef;
  border-radius: 14px;
  text-align: left;
  cursor: pointer;
}
#settings-shortcuts > .mobile-remote__entry[hidden] { display: none !important; }
.mobile-remote__entry-icon {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: #176be0;
  border-radius: 12px;
  font-size: 22px;
}
.mobile-remote__entry-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 2px; }
.mobile-remote__entry-copy strong { font-size: 14px; }
.mobile-remote__entry-copy small { color: #64728a; font-size: 11px; line-height: 1.3; }
.mobile-remote__pro-badge {
  flex: 0 0 auto;
  padding: 4px 7px;
  color: #835000;
  background: #fff4d8;
  border: 1px solid #f0d191;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.mobile-remote__entry-arrow { color: #8290a5; font-size: 23px; line-height: 1; }

/* Remove inherited settings cards/fieldset borders while the tool takes over the page. */
html[data-mobile-remote-panel-open="true"] #display-card[data-detail="settings-shortcuts"] {
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 0 14px !important;
  background: #f2f2f7 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
html[data-mobile-remote-panel-open="true"] #display-card > :not(.settings-header):not(#settings-shortcuts) {
  display: none !important;
}
html[data-mobile-remote-panel-open="true"] #display-card .settings-header {
  position: relative;
  display: grid !important;
  grid-template-columns: minmax(88px, 1fr) minmax(0, auto) minmax(88px, 1fr);
  align-items: center;
  min-height: 48px;
  margin: 0 !important;
  padding: 0 16px 4px;
  gap: 0;
}
html[data-mobile-remote-panel-open="true"] #display-card .settings-header #settings-back {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  min-width: 88px;
  min-height: 44px;
  margin: 0;
  padding: 6px 0;
  color: #087aff;
  background: transparent;
  border: 0;
  font-size: 14px;
  text-align: left;
  white-space: nowrap;
  touch-action: manipulation;
}
html[data-mobile-remote-panel-open="true"] #display-card .settings-header #settings-title {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  max-width: calc(100% - 184px);
  overflow: hidden;
  transform: translate(-50%, -50%);
  margin: 0;
  color: #17243b;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}
html[data-mobile-remote-panel-open="true"] #settings-shortcuts {
  box-sizing: border-box !important;
  width: 100%;
  margin: 0 !important;
  padding: 0 16px 14px !important;
  background: #f2f2f7 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
html[data-mobile-remote-panel-open="true"] #settings-shortcuts > h3[hidden],
html[data-mobile-remote-panel-open="true"] #settings-shortcuts > .settings-shortcuts__row[hidden],
#settings-shortcuts > h3[hidden],
#settings-shortcuts > .settings-shortcuts__row[hidden] { display: none !important; }
#settings-shortcuts > .mobile-remote__panel[hidden] { display: none !important; }
#settings-shortcuts > .mobile-remote__panel:not([hidden]) {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-height: calc(100dvh - 112px);
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-padding-bottom: max(88px, calc(env(safe-area-inset-bottom, 0px) + 96px));
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#settings-shortcuts > .mobile-remote__panel::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* Compact, readable target and one state/ACK line. */
.mobile-remote__fixed {
  position: sticky;
  z-index: 4;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0 0 12px;
  padding: 9px 12px 10px;
  background: #fff;
  border: 1px solid #e6e8ee;
  border-radius: 14px;
}
.mobile-remote__target {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 7px;
  min-width: 0;
  margin: 0;
  color: #535f73;
  font-size: 14px;
  line-height: 1.35;
}
.mobile-remote__target strong {
  min-width: 0;
  color: #17243b;
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.mobile-remote__status {
  min-height: 18px;
  margin: 0;
  color: #4c586c;
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: normal;
}
.mobile-remote__status:empty { display: none; }
.mobile-remote__status.is-ok { color: #287445; }
.mobile-remote__status.is-warn { color: #80550d; }
.mobile-remote__status.is-error { color: #a62d2d; }

.mobile-remote__page {
  min-width: 0;
  padding-bottom: max(72px, calc(env(safe-area-inset-bottom, 0px) + 88px));
}
.mobile-remote__page[hidden] { display: none !important; }
.mobile-remote__tool-group { margin: 0 0 12px; }
.mobile-remote__tool-group h3 {
  margin: 0 0 6px 2px;
  color: #737f94;
  font-size: 11px;
  font-weight: 700;
}
.mobile-remote__tool-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.mobile-remote__tool-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 10px;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-width: 0;
  min-height: 60px;
  padding: 8px 10px;
  color: #18263e;
  background: #fff;
  border: 1px solid #e3e6ed;
  border-radius: 13px;
  font: inherit;
  text-align: left;
  touch-action: manipulation;
  cursor: pointer;
}
.mobile-remote__tool-card:disabled {
  color: #5f6876;
  background: #f3f4f6;
  border-color: #d9dee6;
  cursor: not-allowed;
}
.mobile-remote__tool-card:disabled .mobile-remote__tool-icon {
  color: #68758a;
  background: #e8ebf0;
}
.mobile-remote__tool-icon {
  display: grid;
  flex: none;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #176be0;
  background: #f0f5fd;
  border-radius: 11px;
}
.mobile-remote__connection-dot {
  display: inline-block; width: 8px; height: 8px; margin-left: auto;
  border-radius: 50%; background: #8e8e93; flex: 0 0 8px;
}
.mobile-remote__connection-dot[data-connection="connected"] { background: #248a3d; }
.mobile-remote__connection-dot[data-connection="error"] { background: #d70015; }
.mobile-remote__linear-icon { display: block; width: 22px; height: 22px; }
.mobile-remote__linear-icon path,
.mobile-remote__linear-icon rect,
.mobile-remote__linear-icon circle {
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mobile-remote__tool-copy { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.mobile-remote__tool-copy strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #19263c;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mobile-remote__tool-copy small {
  display: -webkit-box;
  min-width: 0;
  min-height: 2.6em;
  overflow: hidden;
  overflow-wrap: anywhere;
  color: #727e91;
  font-size: 10.5px;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
}
.mobile-remote__tool-chevron { color: #9aa3b0; font-size: 20px; line-height: 1; text-align: right; }
.mobile-remote__unsupported {
  margin: 0 0 10px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid #e4e7ed;
  border-radius: 13px;
}
.mobile-remote__unsupported summary {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 0;
  color: #657186;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.mobile-remote__unsupported summary:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 2px;
}
.mobile-remote__unsupported p {
  margin: 0;
  padding: 0 0 12px;
  color: #707c90;
  font-size: 12px;
  line-height: 1.45;
}
.mobile-remote__unsupported .mobile-remote__tool-list { padding-bottom: 12px; }

.mobile-remote__ppt-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #fff;
  border: 1px solid #e4e7ed;
  border-radius: 16px;
  touch-action: pan-y;
}
.mobile-remote__ppt-primary,
.mobile-remote__action-row,
.mobile-remote__volume-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.mobile-remote__action-row { margin-top: 8px; }
.mobile-remote__ppt-primary { grid-template-columns: minmax(72px, 1fr) minmax(0, 2.5fr); align-items: end; }
.mobile-remote__ppt-primary[hidden],
.mobile-remote__ppt-swipe-area[hidden],
.mobile-remote__ppt-swipe-backup[hidden] { display: none !important; }
.mobile-remote__ppt-toolbar { position: relative; z-index: 5; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin: 0 0 10px; }
.mobile-remote__ppt-toolbar.is-sound-open { display: block; }
.mobile-remote__ppt-toolbar.is-sound-open > .mobile-remote__ppt-sound-settings { display: block; width: 100%; margin-top: 8px; }
.mobile-remote__ppt-toolbar.is-sound-open .mobile-remote__ppt-sound-settings > summary { box-sizing: border-box; width: 98px; margin-left: auto; }
.mobile-remote__ppt-mode-group { display: flex; flex: 1 1 auto; min-width: 0; max-width: 220px; padding: 3px; gap: 3px; border: 1px solid #e2e5eb; border-radius: 13px; background: #f2f3f6; }
.mobile-remote__ppt-mode-button { flex: 1 1 0; min-width: 0; min-height: 42px; padding: 7px 10px; border: 0; border-radius: 10px; color: #536178; background: transparent; font: inherit; font-size: 14px; font-weight: 650; touch-action: manipulation; }
.mobile-remote__ppt-mode-button.is-selected { color: #1558b0; background: #fff; box-shadow: 0 1px 3px #15243b20; }
.mobile-remote__ppt-mode-button:disabled { color: #9aa3b1; cursor: not-allowed; }
.mobile-remote__ppt-sound-settings { position: relative; flex: 0 0 auto; }
.mobile-remote__ppt-sound-settings > summary { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 76px; min-height: 48px; padding: 0 10px; border: 1px solid #e2e5eb; border-radius: 12px; color: #394962; background: #fff; font-size: 14px; font-weight: 650; list-style: none; cursor: pointer; touch-action: manipulation; }
.mobile-remote__ppt-sound-settings > summary::-webkit-details-marker { display: none; }
.mobile-remote__ppt-sound-settings[open] > .mobile-remote__ppt-sound-body { position: static; box-sizing: border-box; width: min(300px, calc(100vw - 64px)); margin-top: 6px; margin-left: auto; padding: 14px; border: 1px solid #dfe4ec; border-radius: 14px; background: #fff; box-shadow: 0 8px 28px #18243b24; }
.mobile-remote__ppt-sound-label { display: block; margin: 0 0 10px; color: #344054; font-size: 13px; font-weight: 650; }
.mobile-remote__ppt-sound-select { display: block; box-sizing: border-box; width: 100%; min-height: 42px; margin-top: 5px; padding: 7px 10px; border: 1px solid #d9dee7; border-radius: 10px; color: #25344b; background: #fff; font: inherit; font-size: 14px; }
.mobile-remote__ppt-sound-volume-line { display: flex; align-items: center; gap: 10px; margin-top: 5px; }
.mobile-remote__ppt-sound-volume-line input { flex: 1; min-width: 0; min-height: 32px; touch-action: manipulation; }
.mobile-remote__ppt-sound-volume-line output { min-width: 42px; color: #596579; font-size: 12px; text-align: right; }
.mobile-remote__ppt-sound-actions { display: flex; justify-content: flex-end; margin: 2px 0 8px; }
.mobile-remote__ppt-preview { min-width: 72px; min-height: 42px; padding: 7px 14px; border: 1px solid #d7e2f2; border-radius: 10px; color: #1764cf; background: #f5f8fd; font: inherit; font-size: 13px; font-weight: 650; touch-action: manipulation; }
.mobile-remote__ppt-preview:disabled { color: #929baa; cursor: not-allowed; }
.mobile-remote__ppt-sound-hint { margin: 0; color: #6d788b; font-size: 11px; line-height: 1.45; }
.mobile-remote__ppt-mode-button,
.mobile-remote__ppt-preview { -webkit-tap-highlight-color: transparent; }
.mobile-remote__ppt-mode-button.is-pressed,
.mobile-remote__ppt-preview.is-pressed { filter: brightness(.92); transform: translateY(1px); }
.mobile-remote__ppt-swipe-area { box-sizing: border-box; display: flex; min-width: 0; min-height: clamp(220px, 38vh, 340px); flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px 18px; border: 1px dashed #b8c9df; border-radius: 16px; color: #344b6a; background: linear-gradient(145deg, #f6f9fe, #edf3fb); text-align: center; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.mobile-remote__ppt-swipe-area[aria-disabled="true"] { opacity: .58; }
.mobile-remote__ppt-swipe-area strong { font-size: 20px; line-height: 1.35; }
.mobile-remote__ppt-swipe-area .mobile-remote__ppt-swipe-hint { margin: 0; font-size: 14px; }
.mobile-remote__ppt-swipe-backup { gap: 8px; margin-top: 0; }
.mobile-remote__ppt-swipe-backup > .mobile-remote__action { min-height: 44px; padding: 6px; font-size: 13px; }
.mobile-remote__quick-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
.mobile-remote__quick-tools button { min-height: 44px; min-width: 0; padding: 6px 2px; border: 1px solid #e2e5eb; border-radius: 12px; color: #1764cf; background: #fff; font: inherit; font-size: 13px; touch-action: manipulation; }
.mobile-remote__ppt-screen-tools { margin: 16px 0 20px; }
.mobile-remote__ppt-primary > .is-secondary { min-height: 64px; flex-direction: column; }
.mobile-remote__ppt-slides > .mobile-remote__action { min-height: 44px; font-size: 13px; }
.mobile-remote__ppt-secondary { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; margin: 0; gap: 8px; }
.mobile-remote__volume-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mobile-remote__action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 8px 7px;
  color: #1764cf;
  background: #f3f5f9;
  border: 1px solid #e2e5eb;
  border-radius: 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.25;
  overflow-wrap: anywhere;
  touch-action: manipulation;
  cursor: pointer;
}
.mobile-remote__action.is-primary {
  min-height: 112px;
  flex-direction: column;
  color: #fff;
  background: #176be0;
  border-color: #176be0;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 700;
}
.mobile-remote__action.is-secondary { color: #394962; background: #f2f3f6; }
.mobile-remote__action:disabled { color: #858f9e; background: #eef0f3; border-color: #e2e5eb; cursor: not-allowed; }
.mobile-remote__action.is-primary:disabled { color: #fff; background: #a9b7cd; border-color: #a9b7cd; }
.mobile-remote__action,
.mobile-volume-remote__button {
  -webkit-tap-highlight-color: transparent;
}
.mobile-remote__action.is-pressed,
.mobile-volume-remote__button.is-pressed {
  filter: brightness(.92);
  transform: translateY(1px);
}
.mobile-remote__ppt-swipe-hint {
  margin: -2px 2px 0;
  color: #748198;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}
.mobile-remote__arrow-icon { display: block; width: 36px; height: 36px; }
.mobile-remote__ppt-secondary > .mobile-remote__action {
  box-sizing: border-box;
  align-self: stretch;
  height: 56px;
  min-height: 56px;
  margin: 0 !important;
}
.mobile-remote__ppt-secondary > .mobile-remote__more {
  align-self: stretch;
  min-height: 56px;
  height: auto;
  margin: 0 !important;
}
.mobile-remote__ppt-secondary > .mobile-remote__more[open] { grid-column: 1 / -1; }
.mobile-remote__session-action { width: 100%; min-height: 44px; margin: 0 0 10px; padding: 10px; border: 1px solid #dce5f1; border-radius: 12px; background: #fff; color: #007aff; font-size: 15px; }
.mobile-remote__session-action[hidden] { display: none !important; }
.mobile-remote__session-action:disabled { color: #8e8e93; }
.mobile-remote__ppt-secondary:has(> .mobile-remote__more[open]) { grid-template-columns: 1fr; }
.mobile-remote__more {
  min-width: 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}
.mobile-remote__more > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 56px;
  min-height: 56px;
  margin: 0 !important;
  padding: 8px 7px;
  color: #394962;
  background: #f2f3f6;
  border: 1px solid #e2e5eb;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.mobile-remote__more > summary::-webkit-details-marker { display: none; }
.mobile-remote__more > summary::before { display: none !important; }
.mobile-remote__more > summary::after { display: none !important; }
.mobile-remote__more-chevron { display: block; width: 18px; height: 18px; margin-left: 7px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mobile-remote__more[open] > summary > .mobile-remote__more-chevron { transform: rotate(180deg); }
.mobile-remote__more-body {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding: 10px;
  background: #f7f8fa;
  border: 1px solid #e5e8ee;
  border-radius: 12px;
}
.mobile-remote__more-body p { margin: 0; color: #68758a; font-size: 14px; line-height: 1.45; }
.mobile-remote__more-safety { margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; }
.mobile-remote__more-safety > summary { min-height: 44px; display: flex; align-items: center; font-size: 14px; cursor: pointer; }
.mobile-remote__volume-icon { width: 26px; height: 26px; flex: 0 0 auto; }
.mobile-remote__volume-controls .mobile-remote__action { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.mobile-remote__orientation { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; color: #68758a; font-size: 14px; }
.mobile-remote__orientation span { display: block; min-width: 0; width: auto !important; }
.mobile-remote__orientation span::before {
  content: ""; display: inline-block; width: 18px; height: 18px; margin-right: 5px; vertical-align: middle;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='7' y='4' width='10' height='16' rx='2' fill='none' stroke='%2368758a' stroke-width='1.5'/%3E%3Cpath d='M4 8V4h4m12 12v4h-4' fill='none' stroke='%2368758a' stroke-width='1.5'/%3E%3C/svg%3E") center/contain no-repeat;
}
.mobile-remote__orientation button { width: auto !important; min-height: 44px; border: 0; border-radius: 10px; padding: 8px; background: #eef3fb; color: #007aff; font-size: 14px; }
.mobile-remote__exit-action { min-height: 46px; }
.mobile-remote__limitation,
.mobile-remote__page-copy { margin: 0 0 9px; color: #68758a; font-size: 12px; line-height: 1.45; }
.mobile-remote__experimental-notice {
  padding: 10px 12px;
  color: #80550d;
  background: #fff8e7;
  border: 1px solid #f1dfb5;
  border-radius: 12px;
}
.mobile-remote__volume-controls .mobile-remote__action { min-height: 68px; }
.mobile-remote__wide-action { min-height: 58px; }
.mobile-remote__canvas-toolbar .mobile-remote__action { min-height: 48px; font-size: 12px; }
.mobile-remote__drawing-pad {
  box-sizing: border-box;
  min-width: 0;
  display: block;
  width: 100%;
  height: clamp(138px, 25vh, 220px);
  margin-top: 9px;
  touch-action: none;
  background: #fff;
  border: 1px solid #d9e1ec;
  border-radius: 13px;
}
.mobile-remote__drawing-pad[data-enabled="false"] { background: repeating-linear-gradient(135deg, #fff, #fff 12px, #f8f9fb 12px, #f8f9fb 24px); }
.mobile-remote__safety { margin-top: 10px; color: #69768b; font-size: 11px; line-height: 1.45; }
.mobile-remote__safety summary { min-height: 44px; padding: 10px 0; color: #6e7a8f; cursor: pointer; }
.mobile-remote__safety p { margin: 0 0 8px; }
.mobile-remote__ppt-primary > .is-primary { min-height: 180px; }
#settings-shortcuts > .mobile-remote__panel[data-view="ppt"]:not([hidden]) {
  max-height: var(--mobile-remote-available-height, calc(100dvh - 112px));
}
.mobile-remote__page[data-mobile-remote-page="ppt"] {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  min-height: calc(var(--mobile-remote-available-height, 100dvh - 112px) - var(--mobile-remote-fixed-height, 56px) - 12px);
  padding-bottom: max(84px, calc(env(safe-area-inset-bottom, 0px) + 88px));
}
.mobile-remote__page[data-mobile-remote-page="ppt"] > .mobile-remote__ppt-card { margin-top: auto; }

@media (min-width: 380px) and (orientation: portrait) {
  .mobile-remote__tool-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mobile-remote__tool-card { min-height: 70px; }
}
@media (orientation: landscape) and (max-height: 520px) {
  html[data-mobile-remote-panel-open="true"] #display-card .settings-header { min-height: 40px; padding-bottom: 1px; }
  html[data-mobile-remote-panel-open="true"] #settings-shortcuts { padding-bottom: 6px !important; }
  #settings-shortcuts > .mobile-remote__panel:not([hidden]) { max-height: calc(100dvh - 86px); }
  .mobile-remote__fixed { gap: 1px; margin-bottom: 6px; padding: 5px 10px 6px; }
  .mobile-remote__target, .mobile-remote__target strong, .mobile-remote__status { font-size: 14px; }
  .mobile-remote__ppt-card { gap: 7px; padding: 8px; }
  .mobile-remote__ppt-primary { gap: 8px; }
  .mobile-remote__ppt-toolbar { margin-bottom: 6px; }
  .mobile-remote__ppt-swipe-area { min-height: 180px; }
  .mobile-remote__action.is-primary { min-height: 78px; }
  .mobile-remote__arrow-icon { width: 29px; height: 29px; }
  .mobile-remote__ppt-secondary > .mobile-remote__action,
  .mobile-remote__more > summary { height: 46px; min-height: 46px; }
  .mobile-remote__ppt-secondary > .mobile-remote__more { min-height: 46px; height: auto; }
  .mobile-remote__tool-group { margin-bottom: 8px; }
  .mobile-remote__tool-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .mobile-remote__tool-card { min-height: 54px; }
  .mobile-remote__drawing-pad { height: 112px; margin-top: 5px; }
  .mobile-remote__canvas-toolbar .mobile-remote__action { min-height: 44px; }
  .mobile-remote__canvas-toolbar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mobile-remote__safety { margin-top: 5px; }
}
.mobile-remote__laser-note { font-size: 12px; line-height: 1.35; margin: 5px 0 7px; color: #596579; }
.mobile-remote__ink-canvas { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.mobile-remote__ink-toolbar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.mobile-remote__ink-toolbar .mobile-remote__action { min-width: 0; min-height: 44px; padding: 8px 4px; font-size: 14px; }
.mobile-remote__laser-pad { position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: 150px; border: 1px solid #dce2eb; border-radius: 16px; background: #fff; display: grid; place-items: center; overflow: hidden; touch-action: none; user-select: none; box-sizing: border-box; }
.mobile-remote__pin-pad { position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: 150px; border: 1px solid #dce2eb; border-radius: 16px; background: #fff; display: grid; place-items: center; overflow: hidden; touch-action: none; user-select: none; box-sizing: border-box; }
.mobile-remote__pin-pad[aria-disabled="true"] { background: #f1f3f6; }
.mobile-remote__pin-pad > span { z-index: 1; padding: 8px; color: #667085; text-align: center; }
.mobile-remote__pin-selection { position: absolute; z-index: 2; box-sizing: border-box; border: 2px solid #ff9f0a; background: #ff9f0a26; pointer-events: none; }
.mobile-remote__pin-selection[data-phase="confirmed"] { border-color: #16834a; background: #16834a26; }
.mobile-remote__pin-selection[hidden] { display: none !important; }
.mobile-remote__pin-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mobile-remote__pin-create { grid-column: 1 / -1; min-height: 52px !important; flex-direction: row !important; font-size: 15px !important; }
.mobile-remote__pin-controls .mobile-remote__action { min-height: 48px; }
.mobile-remote__laser-pad > span { font-size: 15px; color: #667085; }
.mobile-remote__laser-pad[aria-disabled="true"] { background: #f1f3f6; }
.mobile-remote__laser-dot { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: #e63245; box-shadow: 0 0 0 4px #e6324520; transform: translate(-50%, -50%); pointer-events: none; }
.mobile-remote__laser-dot[hidden] { display: none; }
.mobile-remote__laser-stop { width: 100%; min-height: 44px; margin: 12px 0 0; border: 0; border-radius: 12px; font-size: 16px; }
.mobile-remote__orientation-row { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin: 4px 0; }
.mobile-remote__orientation-note { color: #667085; font-size: 12px; line-height: 1.3; }
.mobile-remote__orientation-row button { min-width: 44px; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 10px; color: #007aff; background: #eef3fc; white-space: nowrap; touch-action: manipulation; }
.mobile-remote__workspace-viewport { position: relative; width: 100%; }
.mobile-remote__workspace-viewport.is-turned > .mobile-remote__laser-pad,
.mobile-remote__workspace-viewport.is-turned > .mobile-remote__pin-pad,
.mobile-remote__workspace-viewport.is-turned > .mobile-remote__drawing-pad { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(90deg); aspect-ratio: auto; min-height: 0; max-height: none; }
.mobile-remote__workspace-viewport.is-turned > .mobile-remote__laser-pad > span,
.mobile-remote__workspace-viewport.is-turned > .mobile-remote__pin-pad > span {
  transform: rotate(-90deg);
}

.mobile-volume-remote__card {
  display: grid;
  gap: 16px;
  box-sizing: border-box;
  width: 100%;
  padding: 16px;
  color: #17243b;
  background: #fff;
  border: 1px solid #e2e6ed;
  border-radius: 18px;
}
.mobile-volume-remote__heading {
  margin: 0;
  color: #17243b;
  font-size: 20px;
  line-height: 1.2;
}
.mobile-volume-remote__note {
  margin: 0;
  padding: 11px 12px;
  color: #526078;
  background: #f3f6fa;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
}
.mobile-volume-remote__controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.mobile-volume-remote__button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 112px;
  padding: 12px 8px;
  color: #fff;
  background: #176be0;
  border: 1px solid #176be0;
  border-radius: 17px;
  font: inherit;
  font-weight: 700;
  line-height: 1.15;
  touch-action: manipulation;
  cursor: pointer;
}
.mobile-volume-remote__button.is-step .mobile-volume-remote__symbol {
  font-size: 58px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.04em;
  line-height: .95;
}
.mobile-volume-remote__button.is-step.is-exact .mobile-volume-remote__symbol {
  font-size: clamp(34px, 11vw, 46px);
  letter-spacing: -.045em;
}
.mobile-volume-remote__label { font-size: 14px; }
.mobile-volume-remote__button.is-mute {
  grid-column: 1 / -1;
  min-height: 68px;
  color: #243650;
  background: #eef3fa;
  border-color: #dbe4f0;
  font-size: 17px;
}
.mobile-volume-remote__button:disabled {
  color: #7c8798;
  background: #eef0f3;
  border-color: #e0e4e9;
  cursor: not-allowed;
}
.mobile-volume-remote__button:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 2px;
}
.mobile-volume-remote__status {
  min-height: 18px;
  margin: 0;
  color: #526078;
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.mobile-volume-remote__status[data-kind="ok"] { color: #287445; }
.mobile-volume-remote__status[data-kind="warn"],
.mobile-volume-remote__status[data-kind="blocked"] { color: #80550d; }
.mobile-volume-remote__status[data-kind="busy"] { color: #1764cf; }
@media (max-width: 360px) {
  .mobile-volume-remote__card { gap: 13px; padding: 13px; }
  .mobile-volume-remote__controls { gap: 9px; }
  .mobile-volume-remote__button.is-step { min-height: 104px; }
  .mobile-volume-remote__button.is-step .mobile-volume-remote__symbol { font-size: 52px; }
  .mobile-volume-remote__button.is-step.is-exact .mobile-volume-remote__symbol { font-size: 36px; }
}
@media (orientation: landscape) {
  .mobile-remote__laser-pad,
  .mobile-remote__pin-pad { min-height: 0; max-height: none; aspect-ratio: 16 / 9; }
  .mobile-remote__laser-note,
  .mobile-remote__limitation,
  .mobile-remote__page-copy { margin-top: 2px; margin-bottom: 5px; font-size: 11px; line-height: 1.3; }
  .mobile-remote__orientation-row { gap: 8px; margin: 3px 0; }
  .mobile-remote__orientation-note { font-size: 11px; }
  .mobile-remote__ink-toolbar { gap: 6px; margin-top: 6px; }
  .mobile-remote__laser-stop { margin-top: 6px; }
}
html[data-mobile-whole-slide-ready="false"] .mobile-remote__ppt-slides {
  display: none !important;
}

/* Keep the laser/sticker actions reachable above mobile browser toolbars. */
#settings-shortcuts > .mobile-remote__panel:not([hidden]) {
  scroll-padding-bottom: max(136px, calc(env(safe-area-inset-bottom, 0px) + 120px));
}
.mobile-remote__page {
  padding-bottom: max(136px, calc(env(safe-area-inset-bottom, 0px) + 120px));
}
/* Leave scrollable tail space above WeChat's bottom toolbar on short phones. */
.mobile-remote__page[data-mobile-remote-page="volume"] {
  padding-bottom: max(168px, calc(env(safe-area-inset-bottom, 0px) + 144px));
}

/* A turned 16:9 pad is wider than the phone; size its placeholder to the
   visible short edge before counter-rotating it, so the hint stays readable. */
.mobile-remote__workspace-viewport.is-turned > .mobile-remote__laser-pad > span,
.mobile-remote__workspace-viewport.is-turned > .mobile-remote__pin-pad > span {
  box-sizing: border-box;
  width: 56.25%;
  max-width: 56.25%;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}
/* Deliberately plain numbered diagnostic controls; never normal paging UI. */
.mobile-remote__diagnostics { margin: 20px 0 48px; padding: 16px; border: 1px solid #d9deea; border-radius: 16px; background: #fff; }
.mobile-remote__diagnostics summary { font-weight: 650; padding: 12px 0; cursor: pointer; }
.mobile-remote__diagnostics section { border-top: 1px solid #d9deea; padding: 12px 0; }
.mobile-remote__diagnostics button { min-height: 52px; margin: 4px; padding: 10px 16px; font-size: 17px; }
.mobile-remote__diagnostics p { overflow-wrap: anywhere; font-size: 14px; line-height: 1.5; }

/* The active PPT surface is a fixed control canvas; only its settings menu scrolls. */
html[data-mobile-remote-ppt-active="true"],
html[data-mobile-remote-ppt-active="true"] body {
  overflow: hidden !important;
  overscroll-behavior: none;
}
#settings-shortcuts > .mobile-remote__panel[data-view="ppt"]:not([hidden]) {
  box-sizing: border-box;
  height: var(--mobile-remote-available-height, calc(100dvh - 112px));
  max-height: var(--mobile-remote-available-height, calc(100dvh - 112px));
  padding-bottom: 0;
  overflow: hidden;
  overscroll-behavior: none;
  scroll-padding: 0;
}
.mobile-remote__page[data-mobile-remote-page="ppt"] {
  position: relative;
  height: calc(var(--mobile-remote-available-height, 100dvh - 112px) - var(--mobile-remote-fixed-height, 56px) - 12px);
  min-height: 0;
  padding: 0;
  overflow: hidden;
  overscroll-behavior: none;
}
.mobile-remote__ppt-toolbar {
  flex: 0 0 auto;
  align-items: center;
  margin: 0 0 clamp(5px, 1vh, 10px);
}
.mobile-remote__ppt-mode-group { max-width: 240px; }
.mobile-remote__ppt-settings { position: static; }
.mobile-remote__ppt-settings > summary { min-width: 80px; }
.mobile-remote__ppt-settings[open] > .mobile-remote__ppt-sound-body {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  right: 0;
  box-sizing: border-box;
  width: min(360px, 100%);
  max-width: 100%;
  min-width: 0;
  max-height: min(66dvh, calc(100dvh - 180px), 460px);
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}
.mobile-remote__ppt-sound-body > .mobile-remote__ppt-settings-actions,
.mobile-remote__ppt-sound-body > .mobile-remote__quick-tools,
.mobile-remote__ppt-sound-body > .mobile-remote__ppt-screen-tools,
.mobile-remote__ppt-sound-body > .mobile-remote__diagnostics { margin-top: 14px; }
.mobile-remote__ppt-settings-actions { display: grid; gap: 8px; }
.mobile-remote__ppt-settings-actions h3 { margin: 0; color: #344054; font-size: 13px; }
.mobile-remote__ppt-settings-actions > .mobile-remote__action { min-height: 46px; }
.mobile-remote__ppt-settings-action-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mobile-remote__ppt-settings-action-row > .mobile-remote__action { min-height: 46px; }
.mobile-remote__ppt-settings-actions .mobile-remote__ppt-slides { margin-top: 0; }
.mobile-remote__ppt-card {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
  margin: auto 0 0;
  padding: 0;
  gap: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  touch-action: none;
}
.mobile-remote__ppt-primary {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 0;
  padding: 8px 5px max(8px, env(safe-area-inset-bottom, 0px));
  gap: clamp(14px, 5vw, 28px);
}
.mobile-remote__ppt-primary > .mobile-remote__ppt-prev,
.mobile-remote__ppt-primary > .mobile-remote__ppt-next {
  display: flex;
  flex: 0 0 auto;
  aspect-ratio: 1;
  min-height: 0;
  padding: 8px;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  border-radius: 50%;
  white-space: nowrap;
  overflow-wrap: normal;
}
.mobile-remote__ppt-primary > .mobile-remote__ppt-prev {
  width: clamp(74px, 23vw, 92px);
  color: #42516a;
  background: #eef2f7;
  border-color: #dfe5ee;
  font-size: 12px;
}
.mobile-remote__ppt-primary > .mobile-remote__ppt-next {
  width: clamp(140px, 48vw, 184px);
  font-size: 15px;
}
.mobile-remote__ppt-prev .mobile-remote__arrow-icon { width: 28px; height: 28px; }
.mobile-remote__ppt-next .mobile-remote__arrow-icon { width: 44px; height: 44px; }
.mobile-remote__ppt-primary > .mobile-remote__ppt-prev:disabled { color: #818b9a; background: #eef0f3; }
.mobile-remote__ppt-primary > .mobile-remote__ppt-next:disabled { color: #fff; background: #a9b7cd; }
.mobile-remote__ppt-swipe-area {
  flex: 1 1 auto;
  min-height: 0;
  padding: 12px 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  gap: clamp(8px, 1.5vh, 14px);
  touch-action: none;
}
.mobile-remote__ppt-swipe-area > strong {
  color: #3a3a3c;
  font-size: 15px;
  font-weight: 600;
}
.mobile-remote__ppt-swipe-direction {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(240px, 100%);
  min-width: 0;
  gap: 12px;
  color: #596579;
}
.mobile-remote__ppt-swipe-arrow {
  display: block;
  flex: 0 0 72px;
  width: 72px;
  height: 24px;
  color: #8e8e93;
}
.mobile-remote__ppt-swipe-caption {
  min-width: 0;
  color: #344054;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.mobile-remote__ppt-swipe-area .mobile-remote__ppt-swipe-hint {
  margin: 0;
  color: #8e8e93;
  font-size: 12px;
  line-height: 1.4;
}
.mobile-remote__ppt-swipe-backup { flex: 0 0 auto; }

@media (max-height: 520px) {
  .mobile-remote__ppt-toolbar { margin-bottom: 4px; }
  .mobile-remote__ppt-primary { padding-top: 4px; padding-bottom: max(4px, env(safe-area-inset-bottom, 0px)); }
  .mobile-remote__ppt-primary > .mobile-remote__ppt-prev { width: clamp(62px, 19vw, 76px); }
  .mobile-remote__ppt-primary > .mobile-remote__ppt-next { width: clamp(112px, 38vw, 144px); }
  .mobile-remote__ppt-prev .mobile-remote__arrow-icon { width: 24px; height: 24px; }
  .mobile-remote__ppt-next .mobile-remote__arrow-icon { width: 36px; height: 36px; }
  .mobile-remote__ppt-primary > .mobile-remote__ppt-next { font-size: 13px; }
}
