.pc97-coach-card{display:grid;gap:10px;margin:14px 0;padding:18px;border:1px solid rgba(147,113,255,.4);border-radius:20px;background:linear-gradient(135deg,rgba(110,77,231,.15),rgba(255,255,255,.025));color:#eee9ff}
.pc97-coach-card h2,.pc97-coach-card p,.pc97-coach-send p{margin:0}
.pc97-coach-title{font-size:17px;font-weight:800}
.pc97-coach-instructions{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.5}
.pc97-coach-note{font-size:11px;line-height:1.45;color:#aba3bb;overflow-wrap:anywhere}
.pc97-coach-status{font-size:12px;line-height:1.45;color:#d8cafb;overflow-wrap:anywhere}
.pc97-coach-card button,.pc97-coach-card a,.pc97-coach-send button,.pc97-coach-send a{min-height:42px;text-align:center}
.pc97-coach-card button:disabled,.pc97-coach-send button:disabled{opacity:.55;cursor:default}
.pc97-coach-send{display:grid;gap:10px;padding:14px;border:1px solid rgba(147,113,255,.4);border-radius:16px;background:rgba(110,77,231,.1)}
.pc97-camera-task{position:absolute;z-index:12;left:14px;top:calc(env(safe-area-inset-top,0px) + 72px);max-width:min(330px,calc(100% - 104px));padding:8px 12px;border:1px solid rgba(147,113,255,.35);border-radius:13px;background:rgba(13,10,22,.85);color:#eee9ff;font-size:12px;line-height:1.45}
.pc97-camera-task summary{cursor:pointer;font-weight:750;min-height:20px}
.pc97-camera-task p{max-height:22vh;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0 0}
.pc97-coach-card [hidden],.pc97-coach-send [hidden],.pc97-camera-task[hidden],.pc97-coach-send[hidden]{display:none!important}


/* v144 Coach exercise surface: one focused task -> camera -> explicit Send to Coach */
html[data-promptcam-coach-task="true"] body{background:
  radial-gradient(circle at 80% 8%,rgba(74,37,203,.34),transparent 34%),
  radial-gradient(circle at 22% 22%,rgba(0,157,255,.15),transparent 30%),
  #050714!important}
html[data-promptcam-coach-task="true"] #editorView .script-heading,
html[data-promptcam-coach-task="true"] #editorView .editor-card,
html[data-promptcam-coach-task="true"] #editorView .settings-heading,
html[data-promptcam-coach-task="true"] #editorView .settings-stack,
html[data-promptcam-coach-task="true"] #editorView>#openCameraButton,
html[data-promptcam-coach-task="true"] #editorView .editor-shell>#openCameraButton,
html[data-promptcam-coach-task="true"] #editorView .privacy-note,
html[data-promptcam-coach-task="true"] .pc136-global-dock{display:none!important}
html[data-promptcam-coach-task="true"] #editorView .editor-shell{max-width:540px!important;padding-bottom:34px!important}
html[data-promptcam-coach-task="true"] .pc97-coach-card{
  position:relative;overflow:hidden;margin:12px 0 0;padding:20px 16px 17px;gap:12px;
  border:1px solid rgba(83,112,255,.66);border-radius:24px;
  background:linear-gradient(155deg,rgba(13,23,67,.96),rgba(10,10,38,.96) 52%,rgba(37,9,77,.92));
  box-shadow:0 20px 60px rgba(0,0,0,.35),0 0 34px rgba(60,78,255,.12)
}
html[data-promptcam-coach-task="true"] .pc97-coach-card::before{
  content:"AI COACH";display:block;width:max-content;padding:5px 9px;border:1px solid rgba(83,214,255,.3);border-radius:999px;
  background:rgba(17,40,86,.6);color:#75ddff;font-size:9px;font-weight:900;letter-spacing:.12em
}
html[data-promptcam-coach-task="true"] .pc97-coach-title{font-size:22px;line-height:1.08;letter-spacing:-.02em}
html[data-promptcam-coach-task="true"] .pc97-coach-instructions{font-size:15px;line-height:1.55;color:#f5f6ff}
html[data-promptcam-coach-task="true"] .pc97-coach-note{color:#95a5cf}
html[data-promptcam-coach-task="true"] .pc97-coach-status{padding:10px 12px;border:1px solid rgba(97,91,216,.26);border-radius:13px;background:rgba(12,19,55,.72);color:#cbd8ff}
html[data-promptcam-coach-task="true"] .pc97-coach-card .primary-button,
html[data-promptcam-coach-task="true"] .pc97-coach-send .primary-button{
  border:0!important;background:linear-gradient(108deg,#14d6e9,#4779ff 44%,#a645ff 72%,#f23bd5)!important;
  color:white!important;box-shadow:0 10px 30px rgba(75,67,255,.3)!important;font-weight:850!important
}
html[data-promptcam-coach-task="true"] .pc97-coach-send{
  border-color:rgba(83,112,255,.5);background:linear-gradient(145deg,rgba(22,31,81,.96),rgba(37,10,71,.92));border-radius:20px
}
html[data-promptcam-coach-task="true"] .pc97-camera-task{border-color:rgba(82,192,255,.45);background:rgba(5,10,29,.9)}


/* v147 Coach Capture Mode — canonical recorder, Coach-only UI */
html[data-promptcam-coach-task="true"][data-pc139-camera-open="true"] #cameraView .prompter-panel,
html[data-promptcam-coach-task="true"][data-pc139-camera-open="true"] #cameraView #liveAiButton,
html[data-promptcam-coach-task="true"][data-pc139-camera-open="true"] #cameraView #cameraSettingsToggle,
html[data-promptcam-coach-task="true"][data-pc139-camera-open="true"] #cameraView #cameraSettings,
html[data-promptcam-coach-task="true"][data-pc139-camera-open="true"] #cameraView #liveAiPanel,
html[data-promptcam-coach-task="true"][data-pc139-camera-open="true"] #cameraView #playPromptButton,
html[data-promptcam-coach-task="true"][data-pc139-camera-open="true"] #cameraView #resetPromptButton{
  display:none!important;
}
html[data-promptcam-coach-task="true"][data-pc139-camera-open="true"] #cameraView .camera-shade{
  background:linear-gradient(180deg,rgba(4,7,22,.36),transparent 28%,transparent 68%,rgba(3,5,16,.48))!important;
}
html[data-promptcam-coach-task="true"][data-pc139-camera-open="true"] #cameraView .camera-tool-rail{
  top:calc(env(safe-area-inset-top,0px) + 74px)!important;
}
html[data-promptcam-coach-task="true"][data-pc139-camera-open="true"] #cameraPanel{
  background:linear-gradient(180deg,transparent,rgba(4,6,18,.82) 34%,rgba(3,5,15,.96))!important;
}
html[data-promptcam-coach-task="true"][data-pc139-camera-open="true"] #cameraPanel .main-controls{
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  min-height:116px!important;
}
html[data-promptcam-coach-task="true"][data-pc139-camera-open="true"] #recordButton{
  width:78px!important;
  height:78px!important;
  margin:0!important;
}
html[data-promptcam-coach-task="true"][data-pc139-camera-open="true"] #recordButton small{
  font-size:10px!important;
  font-weight:800!important;
}
html[data-promptcam-coach-task="true"][data-pc139-camera-open="true"] .pc97-camera-task{
  left:14px!important;
  right:74px!important;
  top:calc(env(safe-area-inset-top,0px) + 72px)!important;
  max-width:none!important;
  padding:11px 13px!important;
  border:0!important;
  border-radius:16px!important;
  background:rgba(5,9,29,.82)!important;
  box-shadow:0 10px 28px rgba(0,0,0,.24)!important;
  backdrop-filter:blur(16px);
}
html[data-promptcam-coach-task="true"][data-pc139-camera-open="true"] .pc97-camera-task summary{
  color:#fff!important;
  font-size:11px!important;
  font-weight:850!important;
}
html[data-promptcam-coach-task="true"][data-pc139-camera-open="true"] .pc97-camera-task p{
  color:#c3cdef!important;
  font-size:11px!important;
  line-height:1.42!important;
}

/* Review screen: only explicit Send to Coach + small re-record action. */
html[data-promptcam-coach-task="true"] #resultDialog{
  background:rgba(2,4,14,.72)!important;
  backdrop-filter:blur(12px);
}
html[data-promptcam-coach-task="true"] #resultDialog .result-card{
  width:min(430px,calc(100vw - 22px))!important;
  padding:18px 15px 16px!important;
  border:1px solid rgba(73,96,221,.48)!important;
  border-radius:24px!important;
  background:linear-gradient(155deg,rgba(11,19,56,.98),rgba(6,8,28,.99) 58%,rgba(35,9,67,.97))!important;
  box-shadow:0 24px 70px rgba(0,0,0,.52),0 0 34px rgba(71,68,255,.12)!important;
}
html[data-promptcam-coach-task="true"] #resultDialog .result-card>.eyebrow{
  color:#82a1ff!important;
  letter-spacing:.13em!important;
}
html[data-promptcam-coach-task="true"] #resultDialog .result-card>h2{
  font-size:24px!important;
  line-height:1.08!important;
}
html[data-promptcam-coach-task="true"] #resultDialog #resultVideo{
  margin-top:10px!important;
  border-radius:17px!important;
  background:#000!important;
}
html[data-promptcam-coach-task="true"] #resultDialog .result-actions>#shareButton,
html[data-promptcam-coach-task="true"] #resultDialog .result-actions>#downloadButton,
html[data-promptcam-coach-task="true"] #resultDialog .result-actions>#upgradeButton,
html[data-promptcam-coach-task="true"] #resultDialog .result-actions>#returnToTextButton,
html[data-promptcam-coach-task="true"] #resultDialog #resultAccessStatus,
html[data-promptcam-coach-task="true"] #resultDialog #shareFallback{
  display:none!important;
}
html[data-promptcam-coach-task="true"] #resultDialog .pc97-coach-send{
  order:-2!important;
  display:grid;
  gap:9px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
}
html[data-promptcam-coach-task="true"] #resultDialog .pc97-coach-send[hidden]{
  display:none!important;
}
html[data-promptcam-coach-task="true"] #resultDialog #sendCoachButtonV97{
  min-height:52px!important;
  border:0!important;
  border-radius:15px!important;
  background:linear-gradient(106deg,#245fe9 0%,#554ce8 50%,#923ee7 100%)!important;
  box-shadow:0 12px 30px rgba(70,57,211,.34)!important;
  color:#fff!important;
  font-size:14px!important;
  font-weight:900!important;
}
html[data-promptcam-coach-task="true"] #resultDialog #sendCoachButtonV97:disabled{
  opacity:.58!important;
}
html[data-promptcam-coach-task="true"] #resultDialog .pc97-coach-send .pc97-coach-status{
  padding:8px 2px!important;
  border:0!important;
  background:transparent!important;
  color:#b9c6e9!important;
  text-align:center!important;
  font-size:10px!important;
}
html[data-promptcam-coach-task="true"] #resultDialog .pc97-coach-send .pc97-coach-note{
  margin:0 4px!important;
  color:#7585b4!important;
  text-align:center!important;
  font-size:8.5px!important;
  line-height:1.4!important;
}
html[data-promptcam-coach-task="true"] #resultDialog #retryButton{
  order:-1!important;
  min-height:38px!important;
  border:0!important;
  background:transparent!important;
  color:#9fb0dd!important;
  font-size:11px!important;
  font-weight:750!important;
  box-shadow:none!important;
}
html[data-promptcam-coach-task="true"] #resultDialog #retryButton[hidden]{
  display:none!important;
}
html[data-promptcam-coach-task="true"] #resultDialog .pc97-coach-send .secondary-button{
  min-height:40px!important;
}


/* v152 Coach capture final shell: no root brand, native Telegram nav, left tools */
html[data-promptcam-coach-capture="true"] body{min-height:100dvh!important;overflow-x:hidden!important}
html[data-promptcam-coach-capture="true"] #editorView .app-brand,
html[data-promptcam-coach-capture="true"] #editorView .pc55-brand-image,
html[data-promptcam-coach-capture="true"] #editorView [data-pc55-brand],
html[data-promptcam-coach-capture="true"] .creator-library-card{
  display:none!important;
}
html[data-promptcam-coach-capture="true"] #editorView{
  min-height:100dvh!important;
  padding:calc(env(safe-area-inset-top,0px) + 16px) 14px calc(env(safe-area-inset-bottom,0px) + 18px)!important;
}
html[data-promptcam-coach-capture="true"] #editorView .editor-shell{
  width:min(100%,560px)!important;
  min-height:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 34px)!important;
}
html[data-promptcam-coach-capture="true"] #backButton{display:none!important}
html[data-promptcam-coach-capture="true"] #cameraView .top-controls{
  grid-template-columns:1fr!important;
  pointer-events:none!important;
}
html[data-promptcam-coach-capture="true"] #cameraView .recording-pill{
  pointer-events:auto!important;
}
html[data-promptcam-coach-capture="true"][data-pc139-camera-open="true"] #cameraView .prompter-panel{
  display:block!important;
  left:86px!important;
  right:14px!important;
  top:calc(env(safe-area-inset-top,0px) + 76px + var(--prompter-shift))!important;
  height:min(38dvh,330px)!important;
}
html[data-promptcam-coach-capture="true"][data-pc139-camera-open="true"] #cameraView .prompter-panel[hidden]{
  display:none!important;
}
html[data-promptcam-coach-capture="true"][data-pc139-camera-open="true"] #cameraView #cameraSettings{
  display:grid;
  left:86px!important;
  right:14px!important;
  bottom:calc(126px + var(--safe-bottom))!important;
  width:auto!important;
}
html[data-promptcam-coach-capture="true"][data-pc139-camera-open="true"] #cameraView #cameraSettings[hidden]{
  display:none!important;
}
html[data-promptcam-coach-capture="true"][data-pc139-camera-open="true"] #cameraView .camera-tool-rail{
  position:absolute!important;
  z-index:18!important;
  left:max(10px,env(safe-area-inset-left,0px))!important;
  right:auto!important;
  top:calc(env(safe-area-inset-top,0px) + 72px)!important;
  bottom:auto!important;
  display:flex!important;
  flex-direction:column!important;
  gap:8px!important;
  width:64px!important;
}
html[data-promptcam-coach-capture="true"][data-pc139-camera-open="true"] #cameraView .camera-tool-rail>.camera-tool-button{
  position:relative!important;
  inset:auto!important;
  width:62px!important;
  min-height:61px!important;
  padding:8px 4px!important;
  border:1px solid rgba(255,255,255,.13)!important;
  border-radius:16px!important;
  background:rgba(7,10,25,.72)!important;
  box-shadow:0 8px 24px rgba(0,0,0,.22)!important;
  backdrop-filter:blur(14px)!important;
}
html[data-promptcam-coach-capture="true"][data-pc139-camera-open="true"] #cameraView .camera-tool-rail>.camera-tool-button[data-active="true"],
html[data-promptcam-coach-capture="true"][data-pc139-camera-open="true"] #cameraView .camera-tool-rail>.camera-tool-button[aria-expanded="true"],
html[data-promptcam-coach-capture="true"][data-pc139-camera-open="true"] #cameraView .camera-tool-rail>.camera-tool-button[aria-pressed="true"]{
  border-color:rgba(92,132,255,.52)!important;
  background:linear-gradient(145deg,rgba(43,78,183,.82),rgba(84,45,164,.78))!important;
}
html[data-promptcam-coach-capture="true"][data-pc139-camera-open="true"] #cameraView .camera-tool-rail>.camera-tool-button span{
  color:#eef2ff!important;
  font-size:8.5px!important;
  line-height:1.1!important;
}
html[data-promptcam-coach-capture="true"][data-pc139-camera-open="true"] #cameraView #resetPromptButton,
html[data-promptcam-coach-capture="true"][data-pc139-camera-open="true"] #cameraView #playPromptButton{
  display:none!important;
}

/* Compact template chooser floats over camera and writes directly into the canonical prompter input. */
.pc152-template-sheet{
  position:absolute;z-index:24;
  left:86px;right:14px;
  top:calc(env(safe-area-inset-top,0px) + 72px);
  max-height:min(62dvh,520px);
  padding:12px;
  overflow:auto;
  border:1px solid rgba(88,105,226,.42);
  border-radius:18px;
  background:rgba(7,10,29,.94);
  box-shadow:0 20px 60px rgba(0,0,0,.45);
  backdrop-filter:blur(20px);
}
.pc152-template-sheet[hidden]{display:none!important}
.pc152-template-head{position:sticky;top:-12px;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:10px;margin:-12px -12px 10px;padding:12px;background:rgba(7,10,29,.97)}
.pc152-template-head strong{color:#fff;font-size:14px}
.pc152-template-head button{width:32px;height:32px;border:0;border-radius:10px;background:rgba(255,255,255,.07);color:#dce5ff;font-size:20px}
.pc152-template-list{display:grid;gap:7px}
.pc152-template-item{display:grid;gap:4px;width:100%;padding:10px 11px;border:1px solid rgba(255,255,255,.09);border-radius:12px;background:rgba(255,255,255,.035);color:#fff;text-align:left}
.pc152-template-item strong{font-size:11px;line-height:1.25}
.pc152-template-item small{color:#8ea0cf;font-size:8.5px;line-height:1.35}
.pc152-template-empty{margin:8px;color:#8ea0cf;font-size:10px}

/* Task and result are Coach-only: remove historical visual leftovers. */
html[data-promptcam-coach-capture="true"] .pc97-coach-card .text-button{display:none!important}
html[data-promptcam-coach-capture="true"] #resultDialog .success-mark{display:none!important}
html[data-promptcam-coach-capture="true"] #resultDialog .result-card{padding-top:20px!important}
html[data-promptcam-coach-capture="true"] #resultDialog .pc97-coach-send .secondary-button[hidden]{display:none!important}
html[data-promptcam-coach-capture="true"] #resultDialog .result-actions{gap:7px!important}

@media(max-width:390px){
  html[data-promptcam-coach-capture="true"][data-pc139-camera-open="true"] #cameraView .prompter-panel,
  html[data-promptcam-coach-capture="true"][data-pc139-camera-open="true"] #cameraView #cameraSettings,
  .pc152-template-sheet{left:80px!important;right:10px!important}
  html[data-promptcam-coach-capture="true"][data-pc139-camera-open="true"] #cameraView .camera-tool-rail{left:8px!important;width:60px!important}
  html[data-promptcam-coach-capture="true"][data-pc139-camera-open="true"] #cameraView .camera-tool-rail>.camera-tool-button{width:58px!important}
}


/* v153 Coach camera matches main Mini App geometry + safe result card */
html[data-promptcam-coach-capture="true"][data-pc139-camera-open="true"] #cameraView .camera-tool-rail{
  left:auto!important;
  right:max(13px,env(safe-area-inset-right,0px))!important;
  top:auto!important;
  bottom:calc(126px + var(--safe-bottom))!important;
  display:grid!important;
  grid-auto-flow:row!important;
  gap:9px!important;
  width:auto!important;
}
html[data-promptcam-coach-capture="true"][data-pc139-camera-open="true"] #cameraView .camera-tool-rail>.camera-tool-button{
  position:static!important;
  inset:auto!important;
  display:grid!important;
  justify-items:center!important;
  gap:5px!important;
  width:58px!important;
  min-height:0!important;
  padding:9px 5px 8px!important;
  border:1px solid rgba(255,255,255,.12)!important;
  border-radius:17px!important;
  background:rgba(10,10,18,.62)!important;
  color:#fff!important;
  box-shadow:none!important;
  backdrop-filter:blur(14px)!important;
  -webkit-backdrop-filter:blur(14px)!important;
}
html[data-promptcam-coach-capture="true"][data-pc139-camera-open="true"] #cameraView .camera-tool-rail>.camera-tool-button span{
  color:#c4c1d1!important;
  font-size:9px!important;
  line-height:1.15!important;
}
html[data-promptcam-coach-capture="true"][data-pc139-camera-open="true"] #cameraView .camera-tool-rail>.camera-tool-button[data-active="true"],
html[data-promptcam-coach-capture="true"][data-pc139-camera-open="true"] #cameraView .camera-tool-rail>.camera-tool-button[aria-expanded="true"],
html[data-promptcam-coach-capture="true"][data-pc139-camera-open="true"] #cameraView .camera-tool-rail>.camera-tool-button[aria-pressed="true"]{
  border-color:rgba(135,103,255,.34)!important;
  background:rgba(80,57,176,.26)!important;
}
html[data-promptcam-coach-capture="true"][data-pc139-camera-open="true"] #cameraView .prompter-panel{
  left:max(13px,env(safe-area-inset-left,0px))!important;
  right:max(13px,env(safe-area-inset-right,0px))!important;
  top:calc(max(83px,var(--safe-top) + 66px) + var(--prompter-shift))!important;
  height:min(39dvh,350px)!important;
}
html[data-promptcam-coach-capture="true"][data-pc139-camera-open="true"] #cameraView #cameraSettings{
  left:auto!important;
  right:max(13px,env(safe-area-inset-right,0px))!important;
  bottom:calc(244px + var(--safe-bottom))!important;
  width:min(290px,calc(100vw - 26px))!important;
}
html[data-promptcam-coach-capture="true"] .pc152-template-sheet{
  left:auto!important;
  right:max(82px,calc(env(safe-area-inset-right,0px) + 72px))!important;
  top:auto!important;
  bottom:calc(126px + var(--safe-bottom))!important;
  width:min(320px,calc(100vw - 102px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px)))!important;
  max-height:min(52dvh,470px)!important;
  padding:12px!important;
  border:1px solid rgba(147,116,255,.25)!important;
  border-radius:19px!important;
  background:linear-gradient(155deg,rgba(18,17,30,.97),rgba(9,10,20,.96))!important;
}
html[data-promptcam-coach-capture="true"] .pc152-template-head{
  position:static!important;
  margin:0 0 9px!important;
  padding:0!important;
  background:transparent!important;
}
html[data-promptcam-coach-capture="true"] .pc152-template-item{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:3px!important;
  padding:9px!important;
  border-radius:12px!important;
  background:rgba(255,255,255,.028)!important;
}
html[data-promptcam-coach-capture="true"] #resultDialog{
  inset:0!important;
  width:100%!important;
  max-width:none!important;
  height:100%!important;
  max-height:none!important;
  margin:0!important;
  padding:calc(env(safe-area-inset-top,0px) + 14px) 14px calc(env(safe-area-inset-bottom,0px) + 16px)!important;
  overflow:auto!important;
  box-sizing:border-box!important;
}
html[data-promptcam-coach-capture="true"] #resultDialog .result-card{
  width:min(100%,520px)!important;
  max-width:520px!important;
  max-height:none!important;
  margin:0 auto!important;
  padding:20px 16px 17px!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
  border-radius:22px!important;
  background:linear-gradient(160deg,rgba(13,22,66,.98),rgba(12,9,37,.99) 58%,rgba(49,10,72,.98))!important;
}
html[data-promptcam-coach-capture="true"] #resultDialog #resultVideo{
  width:100%!important;
  max-width:100%!important;
  max-height:46dvh!important;
  margin:10px 0 0!important;
  box-sizing:border-box!important;
  border:2px solid rgba(33,132,255,.78)!important;
  border-radius:18px!important;
  overflow:hidden!important;
  background:#000!important;
}
html[data-promptcam-coach-capture="true"] #resultDialog .result-actions{
  width:100%!important;
  min-width:0!important;
  overflow:visible!important;
}
html[data-promptcam-coach-capture="true"] #resultDialog #sendCoachButtonV97{
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}
html[data-promptcam-coach-capture="true"] #resultDialog .pc97-coach-send{
  width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
@media(max-height:690px){
  html[data-promptcam-coach-capture="true"][data-pc139-camera-open="true"] #cameraView .camera-tool-rail{
    bottom:calc(108px + var(--safe-bottom))!important;
  }
  html[data-promptcam-coach-capture="true"][data-pc139-camera-open="true"] #cameraView #cameraSettings{
    bottom:calc(222px + var(--safe-bottom))!important;
  }
}


/* v154 Coach controls + hint close + action colors */
html[data-promptcam-coach-capture="true"][data-pc139-camera-open="true"] #cameraView #cameraSettingsToggle{
  display:grid!important;
  visibility:visible!important;
  pointer-events:auto!important;
  opacity:1!important;
}
html[data-promptcam-coach-capture="true"][data-pc139-camera-open="true"] #cameraView #cameraSettingsToggle span{
  display:block!important;
}
html[data-promptcam-coach-capture="true"] .pc97-camera-task summary{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  padding-right:0!important;
  list-style:none!important;
}
html[data-promptcam-coach-capture="true"] .pc97-camera-task summary::-webkit-details-marker{display:none!important}
html[data-promptcam-coach-capture="true"] .pc154-camera-hint-title{
  min-width:0;
  flex:1;
  color:#eef3ff;
  font-weight:800;
}
html[data-promptcam-coach-capture="true"] .pc154-camera-hint-close{
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  flex:0 0 28px;
  margin:-4px -5px -4px 0;
  border:1px solid rgba(121,147,255,.2);
  border-radius:9px;
  background:rgba(255,255,255,.055);
  color:#aebbe2;
  font:500 20px/1 -apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",sans-serif;
}
html[data-promptcam-coach-capture="true"] .pc154-camera-hint-close:active{
  transform:scale(.94);
  background:rgba(86,72,196,.22);
  color:#fff;
}

/* Coach task/result actions follow the app's cyan → blue → purple hierarchy. */
html[data-promptcam-coach-capture="true"] .pc97-coach-card .primary-button,
html[data-promptcam-coach-capture="true"] .pc97-coach-send .primary-button{
  border:0!important;
  background:linear-gradient(105deg,#18cfe8 0%,#3976f4 43%,#8a43f2 100%)!important;
  color:#fff!important;
  box-shadow:0 10px 28px rgba(57,83,229,.28)!important;
}
html[data-promptcam-coach-capture="true"] .pc97-coach-card .secondary-button,
html[data-promptcam-coach-capture="true"] .pc97-coach-send .secondary-button,
html[data-promptcam-coach-capture="true"] #resultDialog #retryButton{
  border:1px solid rgba(91,118,244,.36)!important;
  background:linear-gradient(145deg,rgba(31,55,137,.38),rgba(65,35,126,.3))!important;
  color:#dfe8ff!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035)!important;
}
html[data-promptcam-coach-capture="true"] #abandonCoachUploadV97,
html[data-promptcam-coach-capture="true"] .pc97-coach-send button[id*="abandon"]{
  border-color:rgba(255,90,119,.34)!important;
  background:rgba(143,35,61,.18)!important;
  color:#ffabb9!important;
}
html[data-promptcam-coach-capture="true"] .pc152-template-item{
  border-color:rgba(88,107,224,.22)!important;
}
html[data-promptcam-coach-capture="true"] .pc152-template-item:active{
  background:linear-gradient(145deg,rgba(28,117,216,.22),rgba(116,52,210,.2))!important;
}


/* v155 compact Coach settings popover + differentiated camera accents */
html[data-promptcam-coach-capture="true"][data-pc139-camera-open="true"] #cameraView #cameraSettings{
  z-index:23!important;
  left:auto!important;
  right:max(13px,env(safe-area-inset-right,0px))!important;
  bottom:clamp(300px,46dvh,405px)!important;
  width:min(440px,calc(100vw - 26px))!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:12px 18px!important;
  padding:16px 18px!important;
  border:1px solid rgba(145,121,255,.18)!important;
  border-radius:22px!important;
  background:linear-gradient(145deg,rgba(16,16,29,.93),rgba(8,10,22,.95))!important;
  box-shadow:0 20px 60px rgba(0,0,0,.48),inset 0 1px 0 rgba(255,255,255,.035)!important;
  backdrop-filter:blur(20px) saturate(118%)!important;
  -webkit-backdrop-filter:blur(20px) saturate(118%)!important;
}
html[data-promptcam-coach-capture="true"][data-pc139-camera-open="true"] #cameraView #cameraSettings:not([hidden]){
  display:grid!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
}
html[data-promptcam-coach-capture="true"][data-pc139-camera-open="true"] #cameraView #cameraSettings[hidden]{
  display:none!important;
}
html[data-promptcam-coach-capture="true"] #cameraSettings label{
  display:grid!important;
  gap:6px!important;
  min-width:0!important;
  color:#aeb2c9!important;
  font-size:11px!important;
  letter-spacing:.01em!important;
}
html[data-promptcam-coach-capture="true"] #cameraSettings input[type="range"]{
  width:100%!important;
  min-width:0!important;
  accent-color:#765cff!important;
}

/* Same dark glass family, but each camera action gets its own restrained neon accent. */
html[data-promptcam-coach-capture="true"] #coachTemplatesButtonV152{
  border-color:rgba(157,90,255,.30)!important;
  background:linear-gradient(145deg,rgba(99,54,178,.24),rgba(24,19,48,.74))!important;
  color:#caa5ff!important;
}
html[data-promptcam-coach-capture="true"] #switchCameraButton{
  border-color:rgba(35,207,233,.28)!important;
  background:linear-gradient(145deg,rgba(20,125,158,.22),rgba(15,25,45,.76))!important;
  color:#78e9f6!important;
}
html[data-promptcam-coach-capture="true"] #cameraSettingsToggle{
  border-color:rgba(89,126,255,.30)!important;
  background:linear-gradient(145deg,rgba(51,82,187,.24),rgba(19,24,50,.76))!important;
  color:#9eb5ff!important;
}
html[data-promptcam-coach-capture="true"] #coachPrompterButtonV152{
  border-color:rgba(225,78,222,.28)!important;
  background:linear-gradient(145deg,rgba(148,48,155,.21),rgba(34,17,48,.76))!important;
  color:#f0a5ef!important;
}
html[data-promptcam-coach-capture="true"] #coachTemplatesButtonV152 span,
html[data-promptcam-coach-capture="true"] #switchCameraButton span,
html[data-promptcam-coach-capture="true"] #cameraSettingsToggle span,
html[data-promptcam-coach-capture="true"] #coachPrompterButtonV152 span{
  color:currentColor!important;
  opacity:.88!important;
}
html[data-promptcam-coach-capture="true"] #cameraSettingsToggle[aria-expanded="true"]{
  border-color:rgba(126,102,255,.68)!important;
  background:linear-gradient(145deg,rgba(67,91,225,.48),rgba(96,45,174,.38))!important;
  box-shadow:0 0 0 1px rgba(124,106,255,.12),0 10px 28px rgba(55,53,166,.28)!important;
  color:#fff!important;
}
html[data-promptcam-coach-capture="true"] #coachPrompterButtonV152[aria-pressed="true"]{
  border-color:rgba(236,98,231,.58)!important;
  background:linear-gradient(145deg,rgba(170,52,177,.42),rgba(83,35,146,.34))!important;
  color:#fff!important;
}
@media(max-height:690px){
  html[data-promptcam-coach-capture="true"][data-pc139-camera-open="true"] #cameraView #cameraSettings{
    bottom:clamp(250px,40dvh,320px)!important;
  }
}
@media(max-width:390px){
  html[data-promptcam-coach-capture="true"][data-pc139-camera-open="true"] #cameraView #cameraSettings{
    right:10px!important;
    width:calc(100vw - 20px)!important;
    padding:14px 15px!important;
    gap:10px 14px!important;
  }
}


/* v158 Coach saved scenarios picker */
html[data-promptcam-coach-capture="true"] .pc158-script-sheet{overflow:hidden!important}
html[data-promptcam-coach-capture="true"] .pc158-script-tabs{
  display:grid;grid-template-columns:1fr 1fr;gap:5px;margin:0 0 9px;padding:4px;
  border:1px solid rgba(91,107,210,.22);border-radius:12px;background:rgba(5,8,23,.58)
}
html[data-promptcam-coach-capture="true"] .pc158-script-tabs button{
  min-width:0;min-height:31px;padding:0 7px;border:0;border-radius:9px;background:transparent;
  color:#8798c6;font-size:8.5px;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
html[data-promptcam-coach-capture="true"] .pc158-script-tabs button.is-active{
  background:linear-gradient(110deg,rgba(25,132,219,.52),rgba(97,56,210,.56));
  color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 7px 18px rgba(47,61,180,.18)
}
html[data-promptcam-coach-capture="true"] .pc158-script-sheet .pc152-template-list{
  max-height:min(39dvh,350px);overflow:auto;padding-right:2px;overscroll-behavior:contain
}
html[data-promptcam-coach-capture="true"] .pc158-scenario-item{
  position:relative!important;padding:10px 10px 27px!important;
  border-color:rgba(55,151,236,.22)!important;
  background:linear-gradient(135deg,rgba(18,54,105,.27),rgba(49,26,95,.25))!important
}
html[data-promptcam-coach-capture="true"] .pc158-scenario-item strong{color:#f5f7ff!important;font-size:10.5px!important}
html[data-promptcam-coach-capture="true"] .pc158-scenario-item small{
  color:#9bacd5!important;font-size:8.5px!important;line-height:1.38!important;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden
}
html[data-promptcam-coach-capture="true"] .pc158-script-badge{
  position:absolute;left:10px;bottom:7px;padding:3px 6px;border-radius:999px;
  background:rgba(36,173,210,.13);color:#75dff1;font-size:7px;font-style:normal;font-weight:800
}
html[data-promptcam-coach-capture="true"] #coachTemplatesButtonV152{
  border-color:rgba(157,90,255,.30)!important;
  background:linear-gradient(145deg,rgba(99,54,178,.24),rgba(24,19,48,.74))!important;
  color:#d0adff!important
}


/* v200 Guided Coach assignment + explicit upload/success states */
html[data-promptcam-coach-task="true"] .pc97-coach-card.pc200-guided>.pc97-coach-instructions,
html[data-promptcam-coach-task="true"] .pc97-coach-card.pc200-guided>.pc97-coach-note,
html[data-promptcam-coach-task="true"] .pc97-coach-card.pc200-guided>.pc166-coach-camera-setup,
html[data-promptcam-coach-task="true"] .pc97-coach-card.pc200-guided>.primary-button,
html[data-promptcam-coach-task="true"] .pc97-coach-card.pc200-guided>.pc97-coach-status,
html[data-promptcam-coach-task="true"] .pc97-coach-card.pc200-guided>.secondary-button,
html[data-promptcam-coach-task="true"] .pc97-coach-card.pc200-guided>a{display:none!important}
.pc200-lesson-deck{display:grid;gap:14px;min-height:360px}
.pc200-lesson-deck[hidden]{display:none!important}
.pc200-deck-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.pc200-deck-count{font-size:11px;font-weight:850;color:#8fa7e9;letter-spacing:.08em}
.pc200-deck-dots{display:flex;gap:6px}
.pc200-deck-dot{display:block;width:7px;height:7px;border-radius:99px;background:rgba(145,160,220,.25);transition:.22s ease}
.pc200-deck-dot.is-active{width:22px;background:linear-gradient(90deg,#43c9ff,#8261ff)}
.pc200-deck-slide{display:grid;align-content:start;gap:13px;min-height:220px;padding:20px 16px;border:1px solid rgba(108,128,255,.24);border-radius:20px;background:linear-gradient(150deg,rgba(22,33,86,.72),rgba(17,14,54,.78))}
.pc200-deck-slide[hidden]{display:none!important}
.pc200-deck-title{margin:0;color:#fff;font-size:20px;line-height:1.15;letter-spacing:-.02em}
.pc200-deck-copy{margin:0!important;color:#e8edff!important;font-size:15px!important;line-height:1.55!important}
.pc200-step-list{display:grid;gap:11px;margin:2px 0 0;padding:0;list-style:none;counter-reset:pc200}
.pc200-step-list li{position:relative;padding:12px 12px 12px 44px;border:1px solid rgba(100,128,255,.2);border-radius:14px;background:rgba(9,15,44,.55);color:#eef2ff;font-size:13px;line-height:1.45;counter-increment:pc200}
.pc200-step-list li::before{content:counter(pc200);position:absolute;left:11px;top:11px;display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:linear-gradient(135deg,#2b8bff,#8b4fff);font-size:11px;font-weight:900;color:white}
.pc200-focus-value{display:block;padding:14px;border-radius:16px;background:linear-gradient(135deg,rgba(40,104,215,.25),rgba(116,52,202,.22));color:#fff;font-size:17px;line-height:1.3}
.pc200-camera-summary{padding:12px 13px;border:1px solid rgba(78,193,255,.25);border-radius:14px;background:rgba(8,18,47,.68);color:#bcd4ff;font-size:12px;line-height:1.5}
.pc200-deck-limit{color:#8495c7;font-size:11px}
.pc200-deck-nav{display:grid;grid-template-columns:1fr 1.3fr;gap:9px;margin-top:auto}
.pc200-deck-coach{grid-column:1/-1;min-height:36px!important;display:grid;place-items:center;color:#95a7d7!important;text-decoration:none}
.pc200-deck-back[hidden]{visibility:hidden!important;display:block!important}
.pc200-deck-next{min-height:50px!important}
#resultDialog .pc200-send-state,#resultDialog .pc200-success-state{display:grid;justify-items:center;gap:12px;padding:19px 12px 17px;border:1px solid rgba(86,115,255,.26);border-radius:18px;background:linear-gradient(145deg,rgba(18,31,80,.92),rgba(42,15,77,.9));text-align:center}
#resultDialog .pc200-send-state[hidden],#resultDialog .pc200-success-state[hidden],#resultDialog .pc200-confetti[hidden]{display:none!important}
.pc200-send-spinner{width:42px;height:42px;border-radius:50%;border:3px solid rgba(139,159,255,.22);border-top-color:#70d8ff;animation:pc200-spin .85s linear infinite}
.pc200-send-title,.pc200-success-title{font-size:17px;color:#fff}
.pc200-send-copy,.pc200-success-copy{margin:0!important;max-width:310px;color:#b9c7eb!important;font-size:12px!important;line-height:1.5!important}
.pc200-send-steps{display:grid;gap:7px;width:100%;margin-top:2px}
.pc200-send-step{position:relative;padding-left:23px;text-align:left;color:#6f7da6;font-size:11px;transition:.2s ease}
.pc200-send-step::before{content:"";position:absolute;left:4px;top:4px;width:8px;height:8px;border-radius:50%;background:#354069;box-shadow:0 0 0 4px rgba(70,86,140,.08)}
.pc200-send-step.is-active{color:#dbe5ff}
.pc200-send-step.is-active::before{background:#52cfff;box-shadow:0 0 0 4px rgba(82,207,255,.12)}
.pc200-success-icon{display:grid;place-items:center;width:58px;height:58px;border-radius:50%;background:linear-gradient(135deg,#25dba0,#3a91ff);box-shadow:0 14px 34px rgba(43,177,210,.25);color:#fff;font-size:30px;font-weight:900}
.pc200-confetti{position:fixed;z-index:9999;inset:0;overflow:hidden;pointer-events:none}
.pc200-confetti-bit{position:absolute;left:calc(var(--pc200-x)*1%);top:-18px;width:8px;height:14px;border-radius:2px;background:hsl(calc(var(--pc200-x)*3.6) 85% 62%);animation:pc200-confetti 1.55s var(--pc200-delay) cubic-bezier(.22,.7,.35,1) forwards}
@keyframes pc200-spin{to{transform:rotate(360deg)}}
@keyframes pc200-confetti{0%{transform:translate3d(0,-10px,0) rotate(0);opacity:0}10%{opacity:1}100%{transform:translate3d(calc((var(--pc200-x) - 50)*.7px),105vh,0) rotate(720deg);opacity:.8}}
@media (max-width:430px){.pc200-lesson-deck{min-height:330px}.pc200-deck-slide{min-height:205px;padding:17px 14px}.pc200-deck-title{font-size:19px}.pc200-deck-copy{font-size:14px!important}}


/* v202: upload/success is a guaranteed visible full-screen state */
html[data-promptcam-coach-capture="true"] #resultDialog .pc202-send-overlay{
  position:fixed!important;z-index:9998!important;inset:0!important;
  display:grid!important;place-items:center!important;
  padding:calc(env(safe-area-inset-top,0px) + 22px) 18px calc(env(safe-area-inset-bottom,0px) + 22px)!important;
  background:rgba(2,5,18,.88)!important;
  -webkit-backdrop-filter:blur(18px) saturate(120%);backdrop-filter:blur(18px) saturate(120%);
  box-sizing:border-box!important
}
html[data-promptcam-coach-capture="true"] #resultDialog .pc202-send-overlay[hidden]{display:none!important}
.pc202-send-overlay-card{position:relative;z-index:2;width:min(100%,390px);display:grid}
html[data-promptcam-coach-capture="true"] #resultDialog .pc202-send-overlay .pc200-send-state,
html[data-promptcam-coach-capture="true"] #resultDialog .pc202-send-overlay .pc200-success-state{
  width:100%;box-sizing:border-box;padding:28px 20px 24px!important;
  border:1px solid rgba(91,128,255,.38)!important;border-radius:24px!important;
  background:linear-gradient(155deg,rgba(15,30,79,.98),rgba(27,13,67,.98))!important;
  box-shadow:0 28px 80px rgba(0,0,0,.55),0 0 42px rgba(68,93,255,.16)!important
}
.pc202-success-open{width:100%;min-height:52px!important;margin-top:6px;border-radius:15px!important}
.pc200-confetti{position:fixed!important;z-index:1!important;inset:0!important;overflow:hidden!important;pointer-events:none!important}
.pc200-confetti-bit{
  position:absolute!important;left:var(--pc200-left)!important;top:-24px!important;
  width:8px!important;height:15px!important;border-radius:2px!important;
  background:hsl(210 90% 62%)!important;
  animation:pc202-confetti 1.7s var(--pc200-delay) cubic-bezier(.2,.72,.34,1) forwards!important
}
.pc200-confetti-bit:nth-child(3n){background:hsl(285 82% 65%)!important}
.pc200-confetti-bit:nth-child(3n+1){background:hsl(170 78% 56%)!important}
@keyframes pc202-confetti{
  0%{transform:translate3d(0,-16px,0) rotate(0deg);opacity:0}
  8%{opacity:1}
  100%{transform:translate3d(var(--pc200-drift),105vh,0) rotate(720deg);opacity:.9}
}
@media (prefers-reduced-motion:reduce){.pc200-confetti-bit{animation-duration:.01ms!important}}


/* v203 Coach exercise visual polish + explicit safe retry */
html[data-promptcam-coach-capture="true"] #editorView{
  padding-top:calc(env(safe-area-inset-top,0px) + 28px)!important;
}
html[data-promptcam-coach-capture="true"] #editorView .editor-shell{
  width:min(100%,560px)!important;
  margin:0 auto!important;
}
html[data-promptcam-coach-task="true"] .pc97-coach-card{
  width:min(100%,520px)!important;
  box-sizing:border-box!important;
  margin:clamp(26px,5.5vh,52px) auto 0!important;
  padding:20px 16px 18px!important;
  border-color:rgba(80,108,239,.52)!important;
  border-radius:22px!important;
  box-shadow:0 22px 56px rgba(0,0,0,.32),0 0 26px rgba(72,82,238,.09)!important;
}
html[data-promptcam-coach-task="true"] .pc200-lesson-deck{gap:13px!important}
html[data-promptcam-coach-task="true"] .pc200-deck-slide{
  border-color:rgba(103,124,238,.22)!important;
  background:linear-gradient(150deg,rgba(24,34,86,.68),rgba(20,15,57,.74))!important;
  border-radius:18px!important;
}
html[data-promptcam-coach-task="true"] .pc200-deck-nav{
  grid-template-columns:1fr 1fr!important;
  gap:10px!important;
  align-items:stretch!important;
}
html[data-promptcam-coach-task="true"] .pc97-coach-card .pc200-deck-back,
html[data-promptcam-coach-task="true"] .pc97-coach-card .pc200-deck-next{
  width:100%!important;
  min-height:50px!important;
  margin:0!important;
  border-radius:15px!important;
  font-size:13px!important;
  font-weight:850!important;
  letter-spacing:0!important;
}
html[data-promptcam-coach-task="true"] .pc97-coach-card .pc200-deck-back{
  border:1px solid rgba(112,131,228,.26)!important;
  background:rgba(40,53,117,.32)!important;
  box-shadow:none!important;
  color:#dce5ff!important;
}
html[data-promptcam-coach-task="true"] .pc97-coach-card .pc200-deck-back:active{
  background:rgba(53,69,145,.45)!important;
}
html[data-promptcam-coach-task="true"] .pc97-coach-card .pc200-deck-next{
  border:0!important;
  background:linear-gradient(105deg,#20c6e8 0%,#4478f4 48%,#8d47ef 100%)!important;
  box-shadow:0 10px 24px rgba(65,75,215,.25)!important;
  color:#fff!important;
}
html[data-promptcam-coach-task="true"] .pc200-deck-coach{
  margin-top:0!important;
  min-height:32px!important;
  font-size:11px!important;
  color:#8292be!important;
}
html[data-promptcam-coach-capture="true"] #resultDialog #retryButton{
  min-height:36px!important;
  padding:6px 10px!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#8fa2d2!important;
  font-size:11px!important;
  font-weight:760!important;
}
html[data-promptcam-coach-capture="true"] #resultDialog #retryButton:active{
  background:rgba(255,255,255,.035)!important;
  color:#dce5ff!important;
}
html[data-promptcam-coach-capture="true"] #resultDialog .pc202-send-overlay .pc200-send-state,
html[data-promptcam-coach-capture="true"] #resultDialog .pc202-send-overlay .pc200-success-state,
html[data-promptcam-coach-capture="true"] #resultDialog .pc202-send-overlay .pc203-failure-state{
  display:grid;justify-items:center;gap:12px;
  width:100%;box-sizing:border-box;padding:28px 20px 22px!important;
  border:1px solid rgba(91,128,255,.34)!important;border-radius:22px!important;
  background:linear-gradient(155deg,rgba(15,30,79,.98),rgba(27,13,67,.98))!important;
  box-shadow:0 28px 80px rgba(0,0,0,.55),0 0 42px rgba(68,93,255,.14)!important;
  text-align:center
}
html[data-promptcam-coach-capture="true"] #resultDialog .pc203-failure-state[hidden]{display:none!important}
.pc203-failure-icon{
  display:grid;place-items:center;width:56px;height:56px;border-radius:50%;
  border:1px solid rgba(255,112,135,.42);background:rgba(126,31,58,.25);
  color:#ff9caf;font-size:28px;font-weight:900
}
.pc203-failure-title{color:#fff;font-size:18px;line-height:1.2}
.pc203-failure-copy{margin:0!important;max-width:320px;color:#b8c4e8!important;font-size:12px!important;line-height:1.5!important}
.pc203-failure-retry,.pc202-success-open{width:100%!important;min-height:50px!important;margin-top:4px!important;border-radius:15px!important}
.pc203-quiet-action{
  width:100%;min-height:38px;border:0;background:transparent;color:#8fa2d2;
  font:760 11px/1.2 -apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",sans-serif;
}
.pc203-quiet-action:active{background:rgba(255,255,255,.035);color:#e3eaff}
.pc203-success-close{margin-top:-2px}
.pc203-send-check{margin-top:4px;color:#aebceb}
html[data-promptcam-coach-capture="true"] #resultDialog .pc202-send-overlay.is-failure .pc202-send-overlay-card{
  width:min(100%,390px)!important;
}
@media(max-width:430px){
  html[data-promptcam-coach-task="true"] .pc97-coach-card{margin-top:clamp(22px,4.5vh,42px)!important}
  html[data-promptcam-coach-task="true"] .pc200-deck-nav{gap:8px!important}
}


/* v204 unified Coach controls + post-submit status card */
html[data-promptcam-coach-task="true"] .pc97-coach-card .pc200-deck-back,
html[data-promptcam-coach-capture="true"] #resultDialog #retryButton,
html[data-promptcam-coach-capture="true"] #resultDialog .pc203-success-close,
html[data-promptcam-coach-capture="true"] #resultDialog .pc203-failure-retake{
  min-height:50px!important;
  padding:0 15px!important;
  border:1px solid rgba(112,131,228,.26)!important;
  border-radius:15px!important;
  background:rgba(40,53,117,.32)!important;
  box-shadow:none!important;
  color:#dce5ff!important;
  font-size:12px!important;
  font-weight:850!important;
  text-align:center!important
}
html[data-promptcam-coach-capture="true"] #resultDialog #retryButton:active,
html[data-promptcam-coach-capture="true"] #resultDialog .pc203-success-close:active,
html[data-promptcam-coach-capture="true"] #resultDialog .pc203-failure-retake:active,
html[data-promptcam-coach-task="true"] .pc97-coach-card .pc200-deck-back:active{
  background:rgba(53,69,145,.46)!important;
  color:#fff!important;
  transform:translateY(1px)
}
html[data-promptcam-coach-capture="true"] #resultDialog .pc202-send-overlay{
  place-items:start center!important;
  padding-top:calc(env(safe-area-inset-top,0px) + clamp(38px,7vh,64px))!important;
  padding-bottom:calc(env(safe-area-inset-bottom,0px) + 22px)!important;
  overflow:auto!important
}
html[data-promptcam-coach-capture="true"] #resultDialog .pc202-send-overlay-card{
  margin:0 auto!important;
}
html[data-promptcam-coach-capture="true"] #resultDialog .pc97-coach-send.pc204-status-card{
  gap:11px!important;
  padding:15px!important;
  border:1px solid rgba(87,112,238,.34)!important;
  border-radius:20px!important;
  background:linear-gradient(150deg,rgba(18,31,80,.92),rgba(29,15,70,.9))!important;
  box-shadow:0 18px 46px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.03)!important
}
.pc204-result-head{
  display:flex;align-items:center;gap:12px;width:100%;min-width:0
}
.pc204-result-head[hidden]{display:none!important}
.pc204-result-icon{
  display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;
  border:1px solid rgba(105,137,255,.28);border-radius:14px;
  background:rgba(42,66,146,.28);color:#9fbcff;font-size:18px;font-weight:900
}
.pc204-result-copy{display:grid;gap:3px;min-width:0;text-align:left}
.pc204-result-title{color:#fff;font-size:15px;line-height:1.18;letter-spacing:-.01em}
.pc204-result-meta{color:#7f91c2;font-size:9px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.pc97-coach-send.pc204-status-card[data-status-tone="queued"] .pc204-result-icon,
.pc97-coach-send.pc204-status-card[data-status-tone="complete"] .pc204-result-icon{
  border-color:rgba(64,220,180,.3);background:rgba(31,128,111,.2);color:#67edc3
}
.pc97-coach-send.pc204-status-card[data-status-tone="processing"] .pc204-result-icon{
  border-color:rgba(91,183,255,.3);background:rgba(37,105,166,.22);color:#72cfff
}
.pc97-coach-send.pc204-status-card[data-status-tone="waiting"] .pc204-result-icon,
.pc97-coach-send.pc204-status-card[data-status-tone="uploaded"] .pc204-result-icon{
  border-color:rgba(160,125,255,.32);background:rgba(93,58,173,.22);color:#bd9cff
}
.pc97-coach-send.pc204-status-card[data-status-tone="problem"] .pc204-result-icon{
  border-color:rgba(255,106,132,.32);background:rgba(145,43,69,.2);color:#ff9db0
}
html[data-promptcam-coach-capture="true"] #resultDialog .pc97-coach-send.pc204-status-card .pc97-coach-status{
  margin:0!important;padding:12px 13px!important;
  border:1px solid rgba(104,123,219,.18)!important;border-radius:14px!important;
  background:rgba(5,12,39,.34)!important;color:#c7d3f3!important;
  text-align:left!important;font-size:11px!important;line-height:1.48!important
}
html[data-promptcam-coach-capture="true"] #resultDialog #checkCoachStatusV204{
  width:100%!important;min-height:46px!important;margin:1px 0 0!important;
  border:1px solid rgba(112,131,228,.26)!important;border-radius:14px!important;
  background:rgba(40,53,117,.32)!important;box-shadow:none!important;
  color:#dce5ff!important;font-size:11px!important;font-weight:850!important
}
html[data-promptcam-coach-capture="true"] #resultDialog #checkCoachStatusV204:disabled{
  opacity:.62!important
}
html[data-promptcam-coach-capture="true"] #resultDialog .pc97-coach-send.pc204-status-card>a.secondary-button{
  width:100%!important;min-height:46px!important;border-radius:14px!important
}


/* v205 review spacing: lower the take card, keep send overlay truly centered */
html[data-promptcam-coach-capture="true"] #resultDialog .result-card{
  transform:translateY(clamp(18px,2.7vh,24px))!important;
  max-height:calc(100dvh - 54px)!important;
}
html[data-promptcam-coach-capture="true"] #resultDialog .pc202-send-overlay{
  place-items:center!important;
  padding-top:calc(env(safe-area-inset-top,0px) + 18px)!important;
  padding-bottom:calc(env(safe-area-inset-bottom,0px) + 18px)!important;
  overflow:auto!important;
}
html[data-promptcam-coach-capture="true"] #resultDialog .pc202-send-overlay-card{
  margin:auto!important;
}
@media(max-height:700px){
  html[data-promptcam-coach-capture="true"] #resultDialog .result-card{
    transform:translateY(14px)!important;
    max-height:calc(100dvh - 42px)!important;
  }
}


/* v206: make "Take ready" use the same outer geometry as the assignment card */
html[data-promptcam-coach-capture="true"] #resultDialog{
  position:fixed!important;
  inset:0!important;
  width:100%!important;
  max-width:none!important;
  height:100dvh!important;
  max-height:100dvh!important;
  margin:0!important;
  padding:
    calc(env(safe-area-inset-top,0px) + clamp(54px,7.2vh,78px))
    20px
    calc(env(safe-area-inset-bottom,0px) + 18px)!important;
  box-sizing:border-box!important;
  overflow:auto!important;
}
html[data-promptcam-coach-capture="true"] #resultDialog .result-card{
  width:min(100%,520px)!important;
  max-width:520px!important;
  margin:0 auto!important;
  transform:none!important;
  box-sizing:border-box!important;
  padding:20px 16px 18px!important;
  border-radius:22px!important;
  border-color:rgba(80,108,239,.52)!important;
  box-shadow:0 22px 56px rgba(0,0,0,.32),0 0 26px rgba(72,82,238,.09)!important;
}
html[data-promptcam-coach-capture="true"] #resultDialog .result-card>.eyebrow{
  margin-top:0!important;
}
html[data-promptcam-coach-capture="true"] #resultDialog .result-card>h2{
  margin-bottom:16px!important;
}
@media(max-height:700px){
  html[data-promptcam-coach-capture="true"] #resultDialog{
    padding-top:calc(env(safe-area-inset-top,0px) + 42px)!important;
  }
  html[data-promptcam-coach-capture="true"] #resultDialog .result-card{
    transform:none!important;
    max-height:none!important;
  }
}
