/* All selectors are scoped to the camera module. */
.settings .reader-launch { width: 100%; max-width: 360px; margin: 12px auto 0; display: flex; justify-content: space-between; padding: 14px; }
.pc-dialog {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #0b1423;
  color: #e3eaf5;
  overflow: auto;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
.pc-dialog[open] { display: flex; flex-direction: column; }
.pc-dialog::backdrop { background: #090f1b; }
.pc-dialog *, .pc-dialog *::before, .pc-dialog *::after { box-sizing: border-box; }
.pc-dialog [hidden] { display: none !important; }
.pc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: max(12px, env(safe-area-inset-top)) 20px 12px;
  border-bottom: 1px solid #263449;
}
.pc-header h2 { margin: 0; font-size: 16px; overflow-wrap: anywhere; }
.pc-button, .pc-select {
  display: inline-block;
  border: 1px solid #35465c;
  border-radius: 10px;
  padding: 10px 14px;
  background: #1b2b40;
  color: #e3eaf5;
  font: inherit;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}
.pc-button:hover { background: #25374a; }
.pc-button:disabled, .pc-select:disabled { opacity: .45; cursor: not-allowed; }
.pc-dialog :focus-visible { outline: 2px solid #6ce5cd; outline-offset: 3px; }
.pc-stage {
  position: relative;
  flex: 1 0 42vh;
  min-height: 240px;
  isolation: isolate;
  overflow: hidden;
  background: #05090f;
}
.pc-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pc-preview.pc-front, .pc-mirror-text { transform: scaleX(-1); }
.pc-viewport {
  position: absolute;
  inset: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: #52677e transparent;
  scroll-behavior: auto;
  background: linear-gradient(#0006, #0002 40%, #0006);
}
.pc-text {
  max-width: 1050px;
  margin: 0 auto;
  padding: 8vh 7vw 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #fff;
  text-shadow: 0 2px 4px #000, 0 0 8px #000;
}
.pc-tail { height: 32vh; }
.pc-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 14px 20px; }
.pc-label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.pc-label input { width: 19px; height: 19px; accent-color: #6ce5cd; }
.pc-clock { font-size: 13px; color: #6ce5cd; font-variant-numeric: tabular-nums; }
.pc-status, .pc-note { margin: 0; padding: 0 20px 12px; line-height: 1.7; font-size: 13px; }
.pc-status { color: #e3eaf5; }
.pc-note { color: #a6b6cc; padding-bottom: max(14px, env(safe-area-inset-bottom)); }
.pc-result { border-top: 1px solid #263449; padding: 16px 20px max(20px, env(safe-area-inset-bottom)); }
.pc-playback { display: block; width: 100%; max-height: 45vh; margin-bottom: 12px; background: #000; }
.pc-result .pc-button { margin: 0 8px 8px 0; }
@media (max-width: 600px) {
  .pc-header, .pc-controls { padding-left: 12px; padding-right: 12px; }
  .pc-controls { gap: 8px; }
  .pc-button, .pc-select { padding: 10px; font-size: 12px; }
  .pc-status, .pc-note { padding-left: 12px; padding-right: 12px; }
}
