/* 人脸识别独立站 — 全屏 16:9 画布 */

html,
body.face-rec-standalone {
  overflow: hidden;
  background: #050a18;
}

body.face-rec-standalone .app {
  /* 占满视口，内部由 1024×576 舞台等比缩放 */
  width: 100vw;
  height: 100dvh;
  max-width: 100vw;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: none;
  background: #050a18;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

body.face-rec-standalone .app > .view.view-face-rec {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

/* 独立站无首页，不显示返回 */
body.face-rec-standalone .fr-back {
  display: none !important;
}

/* ---------- 调试工具栏：左上角，与安卓 button 列表一致 ---------- */
.fr-debug-toolbar {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10000;
  max-width: min(420px, 92vw);
  max-height: 100dvh;
  overflow: auto;
  padding: 8px 10px 12px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.82);
  border: 1px solid rgba(0, 229, 255, 0.45);
  border-radius: 0 0 8px 0;
  font-size: 12px;
  color: #e8f4ff;
  pointer-events: auto;
}

.fr-debug-toolbar[hidden] {
  display: none !important;
}

.fr-debug-scene {
  margin: 0 0 8px;
  padding: 4px 6px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  line-height: 1.4;
  color: #00e5ff;
  background: rgba(0, 229, 255, 0.08);
  border-radius: 4px;
  word-break: break-all;
}

.fr-debug-buttons {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.fr-debug-btn {
  display: block;
  width: 100%;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  background: rgba(29, 92, 175, 0.9);
  color: #fff;
  font-size: 12px;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}

.fr-debug-btn:hover:not(:disabled) {
  background: rgba(0, 128, 255, 0.95);
  border-color: #00e5ff;
}

.fr-debug-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.fr-debug-btn[data-group="tab"] {
  border-color: rgba(0, 229, 255, 0.6);
}

.fr-debug-btn[data-group="footer"] {
  background: rgba(16, 42, 99, 0.95);
}

/* 调试模式：隐藏页面内可点击装饰按钮；Tab / 步骤条保留展示 */
body.fr-debug-ui .fr-img-btn,
body.fr-debug-ui .fr-pick-gallery-item,
body.fr-debug-ui .fr-enroll-sample-btn,
body.fr-debug-ui .fr-footer,
body.fr-debug-ui .fr-compare-actions,
body.fr-debug-ui .face-rec-camera-actions {
  display: none !important;
}

body.fr-debug-ui .fr-tabs-wrap,
body.fr-debug-ui .fr-rec-stepbar,
body.fr-debug-ui .fr-compare-result-bar {
  pointer-events: none;
}

body.fr-debug-ui .fr-tab--display {
  cursor: default;
  pointer-events: none;
}

body.fr-debug-ui .fr-step-unit--readonly {
  pointer-events: none;
  cursor: default;
}
