:root {
  --bg: #FBF4F1;
  --card: #FFFFFF;
  --ink: #46363C;
  --ink-soft: #9A8A8E;
  --line: #F1E3DF;
  --green: #E2758A;
  --green-deep: #C75D73;
  --green-soft: #FBEAEE;
  --orange: #F08A3E;
  --red: #C4534A;
  --red-soft: #FDF1F0;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(70, 54, 60, .04), 0 4px 14px rgba(70, 54, 60, .06);
  --tabbar-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

#nl-badge-frame, #nl-hud-frame { display: none !important; }

html, body {
  height: 100%;
  font-family: -apple-system, "PingFang SC", sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; border: none; background: none; color: inherit; cursor: pointer; padding: 0; }

.ic {
  width: 1.15em;
  height: 1.15em;
  display: inline-block;
  vertical-align: -0.2em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ---------- 屏幕框架 ---------- */
.screen {
  display: none;
  flex-direction: column;
  position: fixed;
  inset: 0;
  padding: max(12px, env(safe-area-inset-top)) 16px 0;
}
.screen.active { display: flex; }
.screen.tabbed { padding-bottom: calc(var(--tabbar-h) + max(10px, env(safe-area-inset-bottom))); }

.content {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 10px 2px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.screen:not(.tabbed) .content { padding-bottom: max(24px, env(safe-area-inset-bottom)); }

/* ---------- 顶栏 ---------- */
.appbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 2px 10px;
  flex-shrink: 0;
}
.appbar.plain { justify-content: center; padding-top: 10px; }

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #EC8FA3, #C75D73);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(47, 125, 87, .28);
}
.avatar .ic { width: 23px; height: 23px; stroke-width: 1.7; }

.appbar-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.appbar-text b { font-size: 26px; font-weight: 700; line-height: 1.3; }
.appbar-text span {
  font-size: 19px;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.appbar-text.center { align-items: center; text-align: center; }
.appbar-text.center b { font-size: 27px; }

.btn-gear {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .15s;
  flex-shrink: 0;
}
.btn-gear:active { transform: scale(.92); }
.btn-gear .ic { width: 19px; height: 19px; }

.btn-back {
  display: flex;
  align-items: center;
  gap: 1px;
  color: var(--green);
  font-size: 23px;
  font-weight: 650;
  padding: 8px 10px 8px 2px;
  border-radius: 10px;
  flex-shrink: 0;
}
.btn-back .ic { width: 20px; height: 20px; }
.btn-back:active { opacity: .55; }

.topbar-space { width: 56px; flex-shrink: 0; }

/* ---------- 门禁 / 密码 ---------- */
.gate-box {
  margin: auto;
  width: min(88vw, 340px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 36px 28px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.gate-avatar {
  width: 78px;
  height: 78px;
  border-radius: 24px;
  background: linear-gradient(135deg, #EC8FA3, #C75D73);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 6px 18px rgba(47, 125, 87, .3);
}
.gate-avatar .ic { width: 40px; height: 40px; stroke-width: 1.5; }

.gate-title { margin: 0 0 6px; font-size: 36px; font-weight: 700; letter-spacing: .5px; }
.gate-tip { margin: 0 0 20px; color: var(--ink-soft); font-size: 21px; }

.ipt {
  width: 100%;
  padding: 13px 16px;
  font-size: 24px;
  font-family: inherit;
  border: 1.5px solid var(--line);
  border-radius: 13px;
  background: var(--bg);
  color: var(--ink);
  outline: none;
  transition: border-color .2s;
  text-align: center;
}
.ipt:focus { border-color: var(--green); background: #fff; }
.gate-box .ipt { margin-bottom: 14px; }

.pin-ipt { letter-spacing: 10px; font-size: 33px; }

.btn-primary {
  width: 100%;
  padding: 14px;
  font-size: 24px;
  font-weight: 650;
  color: #fff;
  background: var(--green);
  border-radius: 13px;
  transition: transform .12s, background .2s;
}
.btn-primary:active { background: var(--green-deep); transform: scale(.97); }
.gate-box .btn-primary { margin-bottom: 12px; }

.btn-danger {
  width: 100%;
  margin-top: 4px;
  padding: 13px;
  font-size: 22px;
  font-weight: 600;
  color: var(--red);
  background: var(--red-soft);
  border-radius: 13px;
}
.btn-danger:active { transform: scale(.97); }

/* ---------- 聊天 ---------- */
.bubbles {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 10px 2px 12px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.msg { display: flex; align-items: flex-end; gap: 8px; max-width: 100%; }
.msg-user { flex-direction: row-reverse; }

.msg-avatar {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(135deg, #EC8FA3, #C75D73);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.msg-avatar .ic { width: 17px; height: 17px; stroke-width: 1.8; }

.bubble {
  max-width: 78%;
  padding: 11px 15px;
  border-radius: 18px;
  font-size: 24px;
  line-height: 1.55;
  word-break: break-word;
  white-space: pre-wrap;
  animation: pop .25s ease;
}
.bubble-ai {
  background: var(--card);
  border: 1px solid var(--line);
  border-bottom-left-radius: 6px;
  box-shadow: var(--shadow);
}
.bubble-svg {
  margin-top: 10px;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.bubble-svg svg {
  display: block;
  width: 100%;
  height: auto;
}
.bubble-ai:has(.bubble-svg) {
  max-width: 90%;
}
.bubble-user {
  background: var(--green);
  color: #fff;
  border-bottom-right-radius: 6px;
}

.bubble-photo {
  padding: 5px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.bubble-photo img { display: block; max-width: min(190px, 52vw); max-height: min(190px, 30vh); border-radius: 14px; }

.img-viewer {
  position: fixed;
  inset: 0;
  background: rgba(20, 26, 23, .84);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
}
.img-viewer.show { display: flex; }
.img-viewer img { max-width: 92vw; max-height: 82vh; min-width: 0; min-height: 0; object-fit: contain; border-radius: 12px; }

/* ---------- 讲题卡片 ---------- */
.solve {
  max-width: 86%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 14px 16px;
  animation: pop .25s ease;
}
.solve-head { font-weight: 650; margin-bottom: 6px; color: var(--green-deep); }

.step-card {
  display: none;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-top: 1px dashed var(--line);
}
.step-card.show { display: flex; animation: pop .3s ease; }

.step-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.step-title { font-weight: 650; font-size: 22px; }
.step-text { font-size: 22px; color: #3D4A44; }

.answer-card {
  display: none;
  margin-top: 10px;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: 22px;
}
.answer-card.show { display: block; animation: pop .3s ease; }
.answer-line { margin: 3px 0; font-weight: 500; }
.answer-check { margin-top: 5px; font-weight: 700; }

.solve-next {
  display: none;
  width: 100%;
  margin-top: 12px;
  padding: 11px;
  font-size: 22px;
  font-weight: 650;
  color: #fff;
  background: var(--green);
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.solve-next.show { display: flex; }
.solve-next:active { background: var(--green-deep); }

/* ---------- 输入区 ---------- */
.composer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0 max(10px, env(safe-area-inset-bottom));
}

.cam-btn {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow);
  transition: transform .15s;
}
.cam-btn:active { transform: scale(.9); }
.cam-btn .ic { width: 21px; height: 21px; }

.mic-pill {
  flex: 1;
  height: 48px;
  border-radius: 15px;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 650;
  box-shadow: 0 3px 12px rgba(46, 107, 79, .26);
  transition: background .2s, transform .15s;
}
.mic-pill:active { transform: scale(.98); }
.mic-pill.listening { background: var(--orange); box-shadow: 0 3px 12px rgba(232, 131, 58, .32); animation: pulse 1.2s ease-in-out infinite; }
.mic-pill-icon { display: flex; align-items: center; }
.mic-pill-icon .ic { width: 18px; height: 18px; }

.btn-voice {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow);
  transition: transform .15s, color .2s;
}
.btn-voice:active { transform: scale(.9); }
.btn-voice .ic { width: 20px; height: 20px; }
.btn-voice .ic-off { display: none; }
.btn-voice.off { color: #B4BDB8; }
.btn-voice.off .ic-on { display: none; }
.btn-voice.off .ic-off { display: block; }

/* ---------- 底部导航 ---------- */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: flex;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  z-index: 40;
}
.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 16px;
  font-weight: 600;
  color: #A2ACA7;
  transition: color .2s;
}
.tab.active { color: var(--green); }
.tab-icon { display: flex; }
.tab-icon .ic { width: 27px; height: 27px; stroke-width: 1.8; }

/* ---------- 面板 / 卡片 ---------- */
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
}
.panel h3 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel h3::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}
.panel .sub { font-size: 20px; color: var(--ink-soft); margin-bottom: 14px; }
.panel .btn-primary { margin-top: 16px; }
.panel .btn-primary + .chip,
.panel .chip-row + .btn-primary { margin-top: 12px; }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }

.chip {
  padding: 11px 18px;
  font-size: 21px;
  font-weight: 600;
  color: #4A554F;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  transition: all .18s;
}
.chip.on { background: var(--green); border-color: var(--green); color: #fff; }
.chip:active { transform: scale(.95); }
.chip.en-scene { text-align: center; line-height: 1.35; }
.chip small { font-size: 16px; font-weight: 500; opacity: .65; }

.info-card {
  background: var(--green-soft);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 20px;
  color: #33473D;
}
.info-card p { margin: 4px 0; }
.info-card code {
  font-size: 18px;
  background: rgba(255, 255, 255, .85);
  padding: 1px 6px;
  border-radius: 6px;
}

/* ---------- 口算 ---------- */
.math-mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.math-mode.on { border-color: var(--green); background: var(--green-soft); box-shadow: 0 3px 10px rgba(47, 125, 87, .16); }
#math-content .btn-primary { margin-top: 16px; }
#math-content .btn-primary + .chip { margin-top: 12px; }

.math-card, .en-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 16px;
  text-align: center;
  transition: transform .15s;
}
.math-card:active, .en-card:active { transform: scale(.96); }
.math-card .t, .en-card .t { font-weight: 700; font-size: 24px; }
.math-card .s, .en-card .s { font-size: 19px; color: var(--ink-soft); margin-top: 5px; }

.math-question {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 42px 22px;
  text-align: center;
  font-size: 60px;
  font-weight: 700;
  letter-spacing: 2px;
}

.math-progress { text-align: center; color: var(--ink-soft); font-size: 20px; }
.math-progress b { color: var(--green); font-size: 22px; }

.math-stars { text-align: center; font-size: 32px; letter-spacing: 5px; color: var(--orange); }

.math-answer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 26px;
  color: var(--ink-soft);
}
.math-answer b {
  min-width: 96px;
  padding: 8px 14px;
  font-size: 36px;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 12px;
}
.math-answer b.good { border-color: var(--green); color: var(--green); background: var(--green-soft); }
.math-answer b.bad { border-color: var(--red); color: var(--red); background: var(--red-soft); }

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 330px;
  width: 100%;
  margin: 0 auto;
  align-self: center;
}
.key {
  padding: 17px 0;
  font-size: 32px;
  font-weight: 650;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  transition: transform .1s;
}
.key:active { transform: scale(.94); background: var(--green-soft); }
.key-del { color: var(--ink-soft); font-size: 26px; font-weight: 600; }
.key-ok { background: var(--green); color: #fff; border-color: var(--green); }
.key-ok:active { background: var(--green-deep); }

.math-result { text-align: center; padding: 30px 20px 10px; }
.math-result .big { font-size: 66px; margin-bottom: 6px; }
.math-result .score { font-size: 26px; color: var(--ink-soft); }

.wrong-list { margin-top: 4px; }
.wrong-item {
  display: flex;
  gap: 10px;
  padding: 12px 4px;
  border-top: 1px dashed var(--line);
  font-size: 22px;
  align-items: baseline;
}
.wrong-item .no { color: var(--ink-soft); font-size: 20px; flex-shrink: 0; min-width: 22px; }

/* ---------- 英语角 ---------- */
.en-daily {
  background: linear-gradient(135deg, #EC8FA3, #C75D73);
  color: #fff;
  border-radius: 20px;
  padding: 22px 20px 18px;
  box-shadow: 0 5px 16px rgba(47, 125, 87, .24);
}
.en-daily .label {
  font-size: 17px;
  letter-spacing: 2px;
  opacity: .75;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.en-sentence { font-size: 27px; font-weight: 650; line-height: 1.45; }
.en-zh { font-size: 20px; opacity: .82; margin-top: 5px; }
.en-daily .en-rec-state { color: rgba(255, 255, 255, .78); }
.en-daily .en-rec-state.rec { color: #FFD9B8; }
.en-daily .en-score .heard { color: #fff; }
.en-daily .en-score .note { color: rgba(255, 255, 255, .72); }
.en-daily .chip { color: rgba(255, 255, 255, .55); }

.en-actions { display: flex; gap: 10px; margin-top: 16px; }
.en-actions button {
  flex: 1;
  padding: 13px 0;
  font-size: 21px;
  font-weight: 650;
  border-radius: 12px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform .12s, background .2s;
}
.en-actions button:active { transform: scale(.95); }
.en-actions .recording { background: var(--orange); border-color: var(--orange); color: #fff; }
.en-actions .ic { width: 16px; height: 16px; }

.en-stats-row { display: flex; gap: 12px; }
.en-stats-row > div {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 8px;
  text-align: center;
}
.en-stats-row b { display: block; font-size: 32px; color: var(--green); }
.en-stats-row span { font-size: 18px; color: var(--ink-soft); }

.en-rec-state {
  font-size: 20px;
  color: var(--ink-soft);
  text-align: center;
  min-height: 20px;
}
.en-rec-state.rec { color: var(--orange); font-weight: 650; animation: pulse 1.1s ease-in-out infinite; }

.en-score { text-align: center; padding: 8px 0 2px; }
.en-score .stars { font-size: 39px; letter-spacing: 6px; color: var(--orange); }
.en-score .heard { margin-top: 8px; font-size: 22px; }
.en-score .note { margin-top: 4px; font-size: 20px; color: var(--ink-soft); }

.quiz-top {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-size: 22px;
  font-weight: 650;
}
.quiz-top b { color: var(--ink-soft); font-weight: 600; font-size: 20px; }
.quiz-top span { flex: 1; text-align: right; color: var(--ink-soft); font-weight: 500; font-size: 20px; }

.quiz-q {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 22px;
  text-align: center;
}
.quiz-q .big { font-size: 38px; font-weight: 700; line-height: 1.4; }
.quiz-q .sub { font-size: 20px; color: var(--ink-soft); margin-top: 8px; }

.quiz-horn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-deep);
}
.quiz-horn:active { transform: scale(.9); }
.quiz-horn .ic { width: 21px; height: 21px; }

.quiz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quiz-opt {
  padding: 19px 12px;
  font-size: 24px;
  font-weight: 600;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  transition: transform .12s, border-color .2s, background .2s;
}
.quiz-opt:active { transform: scale(.96); }
.quiz-opt.good { background: var(--green-soft); border-color: var(--green); color: var(--green-deep); }
.quiz-opt.bad { background: var(--red-soft); border-color: var(--red); color: var(--red); }

#quiz-fb { text-align: center; min-height: 24px; font-size: 22px; color: var(--ink-soft); }

.read-box {
  background: var(--bg);
  border-radius: 14px;
  padding: 16px 18px;
  margin-top: 14px;
  text-align: left;
}
.read-box b { font-size: 22px; }
.read-box p { font-size: 22px; margin: 6px 0 0; color: #3D4A44; }

/* ---------- 安全记录 ---------- */
.safety-list { margin: 4px 0 12px; }
.safety-item { padding: 10px 2px; border-top: 1px dashed var(--line); }
.safety-item .meta { font-size: 19px; color: var(--ink-soft); }
.safety-item .meta b { color: var(--red); font-size: 19px; }
.safety-item .txt { font-size: 21px; margin-top: 3px; word-break: break-all; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + 92px);
  transform: translateX(-50%) translateY(12px);
  background: rgba(30, 42, 36, .92);
  color: #fff;
  font-size: 21px;
  padding: 10px 18px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 70;
  max-width: 82vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 动画 ---------- */
@keyframes pop {
  0% { transform: scale(.94); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

/* ---------- 关键内容高亮 ---------- */
.hl-en { color: #4A8FB5; font-weight: 700; }
.hl-num { color: #E07B2F; font-weight: 700; }
.hl-key { color: #2F8A65; font-weight: 700; }

/* ---------- 物理按钮拍照 overlay ---------- */
#cam-overlay {
  position: fixed;
  inset: 0;
  background: #2B1E22;
  display: none;
  z-index: 90;
}
#cam-overlay.active { display: block; }
#cam-video,
#cam-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cam-tip {
  position: absolute;
  top: calc(env(safe-area-inset-top) + 18px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(199, 93, 115, .94);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 999px;
  white-space: nowrap;
  max-width: 88vw;
  text-align: center;
}
.cam-close {
  position: absolute;
  top: calc(env(safe-area-inset-top) + 84px);
  right: 18px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .92);
  color: #46363C;
  font-size: 26px;
  font-weight: 700;
}
.cam-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(env(safe-area-inset-bottom) + 34px);
  display: flex;
  justify-content: center;
  gap: 18px;
}
.cam-btn-soft,
.cam-btn-go {
  border: none;
  border-radius: 999px;
  font-size: 21px;
  font-weight: 700;
  padding: 16px 26px;
}
.cam-btn-soft {
  background: rgba(255, 255, 255, .92);
  color: #46363C;
}
.cam-btn-go {
  background: linear-gradient(135deg, #EC8FA3, #C75D73);
  color: #fff;
  padding: 16px 34px;
}

#cam-shoot.cam-shoot-btn {
  position: absolute;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  padding: 14px 44px;
  border: none;
  border-radius: 999px;
  background: #2F8A65;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
