/* モードホイール(試験ページ。仕様 claude/specs/var-symbol-spec.md、見本 claude/design-samples/2026-11-05-mode-wheel-*.html)
   撮影画面の下の操作を、真ん中のボタン1つ+リボルバー切替にする。lab/mode-wheel.html だけが読む。本番の css は変えない。
   色は紺・白だけ(赤は録画の状態だけ。影の明るい紺 #2c4aa0 は紺の系統) */
:root { --mw-n9: #0c1636; --mw-shade: #2c4aa0; --mw-skew: -14deg; --mw-main: 100px; --mw-wheel-w: 112px; }

/* 元の下の操作・上の行は隠し、ホイールに置き換える(働きは、元のボタンを押して使う) */
body.mode-monitor #monitorArea:not(.replaying) .primary-actions,
body.mode-monitor #monitorArea .var-hint,
body.mode-monitor #monitorArea .delay-exit { display: none !important; } /* ディレイを止めるのは、横の枠の■(元の×は、押して使うだけ) */

.mw { display: none; }
body.mode-monitor #monitorArea:not(.replaying) .mw { display: block; position: absolute; inset: 0; pointer-events: none; z-index: 4; font-family: inherit; user-select: none; -webkit-user-select: none; }
.mw > * { pointer-events: auto; }

.mw-zone { position: absolute; left: 0; right: 0; bottom: 0; height: calc(250px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(12,22,54,0), rgba(12,22,54,.78) 35%); pointer-events: none; }
.mw-top { position: absolute; right: max(10px, env(safe-area-inset-right)); top: calc(env(safe-area-inset-top) + 8px); display: flex; gap: 8px; }
.mw-ic { width: 48px; height: 48px; margin: 0; padding: 0; border: 0; border-radius: 14px; background: rgba(12,22,54,.6); color: #fff; display: flex; align-items: center; justify-content: center; }
.mw-ic svg { width: 24px; height: 24px; }

/* 秒数の札 */
/* 元のカメラ切り替えと「カメラを追加」「←」は、映像の下端(ホイールの上)に */
body.mode-monitor #monitorArea:not(.replaying) .cam-dock { position: absolute; left: max(12px, env(safe-area-inset-left)); bottom: calc(256px + env(safe-area-inset-bottom)); z-index: 3; display: flex; gap: 8px; padding: 0; }
body.mode-monitor #monitorArea:not(.replaying) .back-start { position: static; }
.mw-secs { position: absolute; left: 0; right: 0; bottom: calc(190px + env(safe-area-inset-bottom)); display: flex; justify-content: center; pointer-events: none; }
.mw-chip { display: flex; gap: 2px; background: rgba(12,22,54,.72); transition: background var(--dur-fast, .15s); border-radius: 99px; padding: 3px; pointer-events: auto; }
.mw-chip button { min-width: 48px; height: 34px; margin: 0; padding: 0 8px; border: 0; border-radius: 99px; background: transparent; color: #c9d2ee; font: inherit; font-size: 14px; font-weight: 800; }
.mw-chip button.sel { background: rgba(255,255,255,.92); color: var(--mw-n9); }
.mw-chip.closed button.sel { background: transparent; color: #fff; }

/* 真ん中のボタン */
.mw-main { position: absolute; left: 50%; bottom: calc(78px + env(safe-area-inset-bottom)); width: var(--mw-main); height: var(--mw-main); margin: 0 0 0 calc(var(--mw-main) / -2); padding: 0; border: 0; background: transparent; color: inherit; display: block; }
.mw-main .shape, .mw-main .out { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transition: transform var(--dur-fast) var(--ease-out), filter var(--dur-fast); }
.mw-main svg { width: 100%; height: 100%; }
.mw-main:active .shape { transform: scale(.9); filter: brightness(.88); }
.mw-main.dim .shape { opacity: .4; }
.mw-main.swap .shape { animation: mw-spin-in .34s var(--ease-spring); }
.mw-main .out { animation: mw-spin-out .2s ease-in forwards; pointer-events: none; }
@keyframes mw-spin-out { to { transform: rotate(var(--r)) scale(.3); opacity: 0; } }
@keyframes mw-spin-in { 0% { transform: rotate(calc(var(--r) * -1)) scale(.3); opacity: 0; } 70% { transform: rotate(0) scale(1.08); opacity: 1; } 100% { transform: none; opacity: 1; } }
.mw-main.full .shape svg { animation: mw-bounce .4s var(--ease-spring); }
@keyframes mw-bounce { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }

/* 名前のホイール */
.mw-wheel { position: absolute; left: 0; right: 0; bottom: calc(22px + env(safe-area-inset-bottom)); height: 48px; perspective: 400px; touch-action: none; }
.mw-wheel .m { position: absolute; left: 50%; top: 0; width: var(--mw-wheel-w); height: 44px; margin-left: calc(var(--mw-wheel-w) / -2); display: flex; align-items: center; justify-content: center; }
.mw-wheel .m .pl, .mw-wheel .m .sh { position: absolute; inset: 0; transform: skewX(var(--mw-skew)); transition: background-color var(--dur-base); }
.mw-wheel .m b { position: relative; display: flex; align-items: center; gap: 5px; font-weight: 900; font-style: italic; font-size: 17px; letter-spacing: .04em; color: #c9d2ee; }
.mw-wheel .m b i { width: 8px; height: 8px; border-radius: 50%; }
.mw-wheel .m b i.rec { background: #d6231b; }
.mw-wheel .m b i.dl { background: #fff; }
.mw-wheel .m.sel .pl { background: #fff; transform: skewX(var(--mw-skew)) rotate(-3deg); }
.mw-wheel .m.sel .sh { background: var(--mw-shade); transform: skewX(var(--mw-skew)) rotate(-3deg) translate(5px, 5px); }
.mw-wheel .m.sel b { color: var(--mw-n9); }

/* 横の枠(止める) */
.mw-slot { position: absolute; bottom: calc(92px + env(safe-area-inset-bottom)); width: 84px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mw-slot.dl { left: max(10px, env(safe-area-inset-left)); }
.mw-slot.rc { right: max(10px, env(safe-area-inset-right)); }
.mw-slot .bx { width: 56px; height: 56px; margin: 0; padding: 0; border: 0; border-radius: 16px; background: #17275a; display: flex; align-items: center; justify-content: center; }
.mw-slot .bx.rec { box-shadow: inset 0 0 0 3px #d6231b; }
.mw-slot .bx.dly { box-shadow: inset 0 0 0 3px #fff; }
.mw-slot .bx:active { transform: scale(.9); }
.mw-slot[hidden] { display: none; }
.mw-slot.pop .bx { animation: mw-pop .4s var(--ease-spring); }
@keyframes mw-pop { 0% { transform: scale(.4); } 100% { transform: scale(1); } }
.mw-slot .lb { height: 14px; font-size: 12px; font-weight: 800; color: rgba(255,255,255,.85); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mw-blink { animation: mw-blink 1s steps(1) infinite; color: #d6231b; }
@keyframes mw-blink { 50% { opacity: .25; } }

.mw-fly { position: absolute; width: 110px; height: 44px; pointer-events: none; transition: transform .45s cubic-bezier(.5,0,.2,1), opacity .45s; z-index: 6; }
.mw-fly .pl { position: absolute; inset: 0; transform: skewX(var(--mw-skew)); background: #fff; }
.mw-fly b { position: relative; display: flex; height: 100%; align-items: center; justify-content: center; font-weight: 900; font-style: italic; font-size: 17px; color: var(--mw-n9); }
.mw-note { position: absolute; left: 50%; bottom: calc(210px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: #fff; color: var(--mw-n9); font-size: 13px; font-weight: 800; padding: 8px 12px; border-radius: 10px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity var(--dur-base); }
.mw-note.show { opacity: 1; }

/* 横向き: 右の列(約150px)。名前のホイールは列の右端に縦、その左に 録画の枠・秒数の札・VAR・ディレイの枠 */
@media (orientation: landscape) and (max-height: 540px) {
  :root { --mw-main: 84px; --mw-wheel-w: 58px; }
  .mw-zone { left: auto; width: calc(150px + env(safe-area-inset-right)); top: 0; height: auto; background: linear-gradient(90deg, rgba(12,22,54,0), rgba(12,22,54,.78) 40%); }
  .mw-top { right: calc(150px + env(safe-area-inset-right) + 12px); }
  .mw-wheel { left: auto; right: max(8px, env(safe-area-inset-right)); bottom: auto; top: 50%; width: 58px; height: 160px; margin-top: -80px; }
  .mw-wheel .m { top: 50%; left: 0; width: 58px; height: 46px; margin: -23px 0 0 0; }
  .mw-wheel .m b { font-size: 12px; letter-spacing: 0; gap: 3px; white-space: nowrap; }
  .mw-main { left: auto; right: calc(max(8px, env(safe-area-inset-right)) + 66px); bottom: auto; top: 50%; margin: calc(var(--mw-main) / -2) 0 0 0; }
  .mw-secs { left: auto; right: calc(max(8px, env(safe-area-inset-right)) + 66px); width: var(--mw-main); bottom: auto; top: calc(50% - var(--mw-main) / 2 - 40px); }
  .mw-slot, .mw-slot.rc, .mw-slot.dl { bottom: auto; width: var(--mw-main); right: calc(max(8px, env(safe-area-inset-right)) + 66px); left: auto; }
  .mw-slot.rc { top: calc(50% - var(--mw-main) / 2 - 40px - 74px); }
  .mw-slot.dl { top: calc(50% + var(--mw-main) / 2 + 6px); }
  .mw-note { left: auto; right: calc(150px + env(safe-area-inset-right) + 12px); bottom: auto; top: 64px; transform: none; }
  /* 元のカメラ切り替えと「カメラを追加」は、映像の左下に */
  body.mode-monitor #monitorArea:not(.replaying) .cam-dock { position: fixed; left: max(12px, calc(env(safe-area-inset-left) + 12px)); bottom: max(12px, env(safe-area-inset-bottom)); z-index: 3; display: flex; gap: 8px; padding: 0; }
  body.mode-monitor #monitorArea:not(.replaying) .cam-selector { display: flex; gap: 8px; }
}
@media (orientation: landscape) and (max-height: 400px) {
  :root { --mw-main: 72px; }
  .mw-slot .bx { width: 48px; height: 48px; border-radius: 14px; }
  .mw-slot.rc { top: calc(50% - var(--mw-main) / 2 - 40px - 66px); }
}
@media (prefers-reduced-motion: reduce) {
  .mw-main.swap .shape, .mw-main .out, .mw-main.full .shape svg, .mw-slot.pop .bx { animation-duration: .01s; }
  .mw-fly { transition-duration: .01s; }
}

/* 録画中の帯は「REC 0:12」を出さず、「LIVE」のまま(録画の時間は横の枠にある)。文字を書き換えると元の部品と取り合いになるので、見た目だけ差し替える */
.state-band[data-state="rec"] .state-band-text { font-size: 0; }
.state-band[data-state="rec"] .state-band-text::after { content: 'LIVE'; font-size: 1.5rem; }
@media (max-height: 420px) { .state-band[data-state="rec"] .state-band-text::after { font-size: 1.2rem; } }
#stateSubBand[data-rec] { display: none !important; }

/* 縦向き: 映像は、下のホイールの帯(250px)の上の余白に収める。縦長の映像(3:4)でも、菱形・札と重ならないようにする */
@media not all and (orientation: landscape) and (max-height: 540px) {
  body.mode-monitor #monitorArea:not(.replaying) .stage-video { padding-bottom: calc(250px + env(safe-area-inset-bottom)); box-sizing: border-box; }
}

/* 秒数の札: ふだんは目立たせない(背景なし・小さく・薄く。「秒」を添える)。押せる範囲は48px。タップで開いたときだけ選択肢を出す */
.mw-chip.closed { background: transparent; }
.mw-chip.closed button.sel { height: 48px; min-width: 56px; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.62); }
.mw-chip.closed button.sel::after { content: '秒'; font-size: 13px; margin-left: 1px; }
.mw-chip:not(.closed) button { height: 40px; }

/* 一覧ボタンから開いたときは、録画の一覧だけ */
.mw-sheet-title { display: none; margin: 4px 0 10px; font-size: 1rem; font-weight: 800; color: #fff; }
body.mw-listonly .mw-sheet-title { display: block; }
body.mw-listonly #labStartBox { display: none !important; }
body.mw-listonly #labTakes:empty::before { content: '録画はまだありません'; display: block; padding: 18px 0; color: rgba(255,255,255,.7); font-size: 14px; text-align: center; }

/* 「カメラを追加」はアイコンだけ */
body.mode-monitor #monitorArea .add-cam { width: 48px; min-width: 48px; padding: 0; justify-content: center; }
body.mode-monitor #monitorArea .add-cam-label { display: none; }
body.mode-monitor #monitorArea .add-cam svg { width: 24px; height: 24px; }

/* 秒数の札は、右上(一覧・⚙の左)に置く(中山さん 2026-11-05「上の方に」)。VAR・ディレイとも同じ。ふだんは一覧・⚙と同じ見た目で「15秒」 */
.mw .mw-top .mw-secs { position: static; left: auto; right: auto; top: auto; bottom: auto; width: auto; display: flex; align-items: center; pointer-events: auto; }
.mw .mw-top .mw-chip { padding: 0; background: rgba(12,22,54,.6); border-radius: 14px; }
.mw .mw-top .mw-chip:not(.closed) { padding: 4px; gap: 4px; background: rgba(12,22,54,.85); }
.mw .mw-top .mw-chip.closed button.sel { height: 48px; min-width: 64px; padding: 0 12px; border-radius: 14px; font-size: 15px; font-weight: 800; color: #fff; }
.mw .mw-top .mw-chip:not(.closed) button { height: 40px; min-width: 48px; border-radius: 10px; }

/* ←とカメラを追加は、右上の一覧・⚙と同じ形(角丸の四角・半透明の紺・枠線なし)にそろえる。カメラの絵は、レンズの所に+ */
body.mode-monitor #monitorArea:not(.replaying) .cam-dock .add-cam,
body.mode-monitor #monitorArea:not(.replaying) .cam-dock .back-start { width: 48px; height: 48px; padding: 0; border: 0; border-radius: 14px; background: rgba(12,22,54,.6); color: #fff; box-shadow: none; }
body.mode-monitor #monitorArea .add-cam svg { width: 26px; height: 26px; }

/* 縦向き: 映像と下の操作の間に空白を作らない(中山さん「妙な空白」)。秒数の札を右上へ移したので、下の帯は190pxに詰め、
   映像は帯のすぐ上に寄せる。←・カメラを追加は、映像の左下に重ねる */
@media not all and (orientation: landscape) and (max-height: 540px) {
  .mw-zone { height: calc(190px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(12,22,54,0), rgba(12,22,54,.85) 18%); }
  body.mode-monitor #monitorArea:not(.replaying) .stage-video { padding-bottom: calc(190px + env(safe-area-inset-bottom)); justify-content: flex-end; }
  body.mode-monitor #monitorArea:not(.replaying) #displayCanvas { object-position: 50% 100%; }
  body.mode-monitor #monitorArea:not(.replaying) .cam-dock { bottom: calc(200px + env(safe-area-inset-bottom)); }
}

/* 録画もディレイもしていない間は、←・カメラ(切り替え・追加)を真ん中のボタンの横に置く(中山さん 2026-11-05)。
   左に←(またはカメラの切り替え)、右にカメラを追加。録画・ディレイを始めたら、横は止める枠になるので、映像の左下へ戻る */
@media not all and (orientation: landscape) and (max-height: 540px) {
  body.mode-monitor #monitorArea.mw-idle:not(.replaying) .cam-dock { left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); bottom: calc(104px + env(safe-area-inset-bottom)); justify-content: space-between; align-items: center; }
  body.mode-monitor #monitorArea.mw-idle:not(.replaying) .cam-dock .add-cam { margin-left: auto; }
  body.mode-monitor #monitorArea.mw-idle:not(.replaying) .cam-selector { max-width: calc(50% - var(--mw-main) / 2 - 22px); overflow-x: auto; }
}
@media (orientation: landscape) and (max-height: 540px) {
  /* 横向きは、カメラを追加だけを列の中の真ん中のボタンの下へ(←・切り替えは映像の左下のまま。列の幅が足りないため) */
  body.mode-monitor #monitorArea.mw-idle:not(.replaying) .cam-dock .add-cam { position: fixed; left: auto; right: calc(max(8px, env(safe-area-inset-right)) + 66px + var(--mw-main) / 2 - 32px); top: calc(50% + var(--mw-main) / 2 + 12px); }
}
/* カメラを追加は、押しやすく大きく(64×64)。前面に出す */
body.mode-monitor #monitorArea.mw-idle:not(.replaying) .cam-dock { z-index: 5; }
body.mode-monitor #monitorArea.mw-idle:not(.replaying) .cam-dock .add-cam { width: 64px; height: 64px; min-width: 64px; border-radius: 18px; background: rgba(44,74,160,.55); }
body.mode-monitor #monitorArea.mw-idle:not(.replaying) .cam-dock .add-cam svg { width: 32px; height: 32px; }
/* 録画中など(映像の左下)でも、カメラを追加は少し大きめ(56×56) */
body.mode-monitor #monitorArea:not(.mw-idle):not(.replaying) .cam-dock .add-cam { width: 56px; height: 56px; min-width: 56px; border-radius: 16px; }

/* 録画+ディレイの両方をしている間だけ、カメラを追加は映像の左下(操作の上)。片方だけのときは、空いている側(縦=録画中は左・ディレイ中は右。横=ディレイ中は上・それ以外は下)に置く */
@media not all and (orientation: landscape) and (max-height: 540px) {
  body.mode-monitor #monitorArea.mw-r:not(.replaying) .cam-dock .add-cam { margin-left: 0; margin-right: auto; }
  body.mode-monitor #monitorArea.mw-d:not(.replaying) .back-start { display: none !important; }
}
@media (orientation: landscape) and (max-height: 540px) {
  body.mode-monitor #monitorArea.mw-d:not(.replaying) .cam-dock .add-cam { top: calc(50% - var(--mw-main) / 2 - 12px - 64px); }
}

/* ディレイ中も、カメラを追加は出す(元はディレイ中の全画面で隠していた) */
body.mode-monitor #monitorArea#monitorArea.delaying:not(.replaying) .cam-dock { display: flex !important; z-index: 5; }
body.mode-monitor #monitorArea#monitorArea.delaying:not(.replaying) .cam-dock .cam-selector { display: none; }
body.mode-monitor #monitorArea#monitorArea.delaying:not(.replaying) :is(.cam-dock, .add-cam) { display: flex !important; }
body.mode-monitor #monitorArea#monitorArea.delaying:not(.replaying) .back-start { display: none !important; }

/* ビジュアル確認(2026-11-05)の直し */
/* 録画+ディレイ中の「REC 0:16」の帯は出さない(右の枠の「● 0:16」と同じ) */
#labSubBand { display: none !important; }
/* 「撮影中です。あとN秒で…」の案内は出さない(菱形のたまり表示で分かる) */
body.mode-monitor #monitorArea:not(.replaying) .rec-status { display: none !important; }
/* 真ん中のボタンの横に並ぶときは、←もカメラを追加と同じ箱・同じ大きさ(64) */
body.mode-monitor #monitorArea.mw-idle:not(.replaying) .cam-dock .back-start { width: 64px; height: 64px; border-radius: 18px; background: rgba(44,74,160,.55); }
body.mode-monitor #monitorArea.mw-idle:not(.replaying) .cam-dock .back-start svg { width: 28px; height: 28px; }
/* 狭い画面では、左上の帯の文字を小さくして、右上の秒数の札と重ならないようにする */
@media (max-width: 400px) {
  .state-band:not(.state-band-sub):not([data-state="rec"]) .state-band-text { font-size: 1.2rem; }
  .state-band[data-state="rec"] .state-band-text::after { font-size: 1.2rem; }
}

/* 配置は lab/js/mode-wheel.js の fit() が、画面の大きさとカメラの縦横比から決める(モック「撮影画面の配置モック」2026-11-05)。ここは見た目だけ */
.mw-zone { display: none !important; }
.mw.mw-over .mw-zone { display: block !important; left: auto; right: 0; top: 0; bottom: 0; width: 150px; height: auto; background: linear-gradient(90deg, rgba(12,22,54,0), rgba(12,22,54,.8) 30%); }
.mw-slot .bx { width: var(--mw-bx, 56px); height: var(--mw-bx, 56px); }
body.mode-monitor #monitorArea:not(.replaying) #displayCanvas { object-position: 50% 50%; }
@media (orientation: landscape) and (max-height: 540px) {
  .mw-wheel .m { width: 48px; height: 48px; margin: -24px 0 0 0; }
  .mw-wheel .m b { font-size: 13px; }
  .mw-wheel .m b svg { display: block; }
  .mw-slot .lb { height: 16px; }
}
@media (max-width: 380px) { .mw .mw-top .mw-chip.closed button.sel { min-width: 52px; padding: 0 8px; } }

/* ズーム(中山さん 2026-11-05「ズームのボタンが死んどる」): ボタンは映像の右下、スライダーは映像の下側。場所は fit() が決める */
body.mode-monitor #monitorArea:not(.replaying):not(.delaying) .zoom-toggle { z-index: 6; margin: 0; background: rgba(10,18,48,.62); border: 0; border-radius: 14px; }
body.mode-monitor #monitorArea:not(.replaying):not(.delaying) .zoom-host { z-index: 6; }
/* 横向きのズームのボタンは、元の上の行(.status-row)に入る。上の行のほかのボタンは隠し、ズームだけ出す */
body.mode-monitor #monitorArea .status-row { display: contents !important; }
body.mode-monitor #monitorArea .status-row > :not(.zoom-toggle) { display: none !important; }

.mw .mw-flip[hidden] { display: none; }
/* ⚙の「ズーム・自撮りのボタン」をオフにしたときは、どちらも出さない */
body.mw-no-camtools #monitorArea:not(.replaying) :is(.zoom-toggle, .zoom-host, .mw-flip) { display: none !important; }
/* LIVEの帯は、映像の左上の角に(画面の上の切り欠きの分は、映像の上の余白で空けてあるので、帯の位置には足さない。中山さん 2026-11-07「LIVEの帯が下すぎ」) */
@media not all and (orientation: landscape) and (max-height: 540px) {
  body.mode-monitor #monitorArea:not(.replaying) .state-bands { top: 8px; }
}
/* 「左手で使う」は、モードホイールの配置にまだ効かないので、直すまで隠す(中山さん 2026-11-07 了承) */
#btnLefty { display: none !important; }
.mw .mw-flip.mw-big svg { width: 36px; height: 36px; } /* 真ん中のボタンの横(64px)に置くときは、絵も大きく */
/* ←は、画面を移る操作。ほかのボタン(箱)と見た目を分け、枠なしの白い矢印だけにする。映像の上でも見えるよう影を付ける(中山さん 2026-11-07) */
body.mode-monitor #monitorArea:not(.replaying) .cam-dock .back-start svg { width: 30px; height: 30px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.7)); }
.mw .mw-flip svg { width: 30px; height: 30px; } .mw .mw-flip.mw-big svg { width: 36px; height: 36px; }

/* ボタンの見た目: 白い線の丸(中山さん 2026-11-07。案C)。箱(角丸の四角・半透明の紺)をやめ、スマホのカメラの操作に近い形にそろえる。
   配置は fit() が書くので、色・形だけここで上書きする(fit() の書く背景・角丸より強く)。明るい映像の上でも見えるよう、薄い影を付ける */
body.mode-monitor #monitorArea:not(.replaying) :is(.mw-ic, .add-cam, .zoom-toggle) {
  border-radius: 50% !important; border: 2px solid rgba(255,255,255,.88) !important;
  background: rgba(12,22,54,.35) !important; box-shadow: 0 1px 4px rgba(0,0,0,.45) !important;
}
body.mode-monitor #monitorArea:not(.replaying) .mw .mw-top .mw-chip { background: transparent !important; }
body.mode-monitor #monitorArea:not(.replaying) .mw .mw-top .mw-chip.closed button.sel {
  border-radius: 24px; border: 2px solid rgba(255,255,255,.88); background: rgba(12,22,54,.35); box-shadow: 0 1px 4px rgba(0,0,0,.45);
}
/* 止める枠も丸に。録画は赤い線、ディレイは白い線 */
body.mode-monitor #monitorArea:not(.replaying) .mw-slot .bx { border-radius: 50%; background: rgba(12,22,54,.45); box-shadow: none; }
body.mode-monitor #monitorArea:not(.replaying) .mw-slot .bx.rec { border: 3px solid #d6231b; }
body.mode-monitor #monitorArea:not(.replaying) .mw-slot .bx.dly { border: 3px solid #fff; }
/* アプリ名(ロゴ)。地味に、ただし読める(マーク18px+文字13px、不透明度55%)。押せない・動かない。映像の外に置く(位置は fit()) */
.mw .mw-logo { position: absolute; height: 18px; width: auto; opacity: .55; pointer-events: none !important; user-select: none; -webkit-user-drag: none; }

/* 録画中・ディレイ中は、その働きの「止める」が真ん中。VARは横の小さな菱形(中山さん 2026-11-14) */
.mw-slot .bx.vrb svg { width: 100%; height: 100%; }
body.mode-monitor #monitorArea:not(.replaying) .mw-slot .bx.vrb { background: transparent; border-radius: 0; box-shadow: none; border: 0; }
.mw-slot.vr .lb { display: block; }
/* 3つのボタンが輪に乗る(案B' 2026-11-14): 横のボタンも絵のまま。止める枠の丸い線は使わない */
body.mode-monitor #monitorArea:not(.replaying) .mw-slot .bx.vrb { border: 0; }
.mw-slot .lb { display: block; }
/* 案A(2026-11-15): 左の席の一覧、止めるの丸い線 */
.mw-slot .mw-list { display:flex; width:100%; height:100%; align-items:center; justify-content:center; }
.mw-slot .mw-list svg { width:70%; height:70%; }
/* 一覧は真ん中の左の席に移した(カメラと同じ並び)ので、上の段の一覧は出さない */
body.mode-monitor #mwList { display:none !important; }
.mw-slot.stop .bx.vrb { border-radius:50% !important; border:3px solid #fff !important; box-sizing:border-box; display:flex; align-items:center; justify-content:center; }
.mw-slot.rc.stop .bx.vrb { border-color:#d6231b !important; }
.mw-slot.stop .shape svg { width:60%; height:60%; }
/* お知らせ(消しました・元に戻す など)は、縦向きの撮影画面では映像の下側に出す(上の←・⚙に重ならない。中山さんの実機の写し 2026-11-14) */
@media (orientation: portrait) { body.mode-monitor .toast { top: var(--mw-toast-top, max(14px, env(safe-area-inset-top))); bottom: auto; } }
/* お知らせは小さく1行に(「LIVEに戻りました・元に戻す」が縦に伸びて、真ん中のボタンを隠していた。中山さんの実機の写し 2026-11-15) */
body.mode-monitor .toast { padding: 8px 14px; font-size: 0.8rem; max-width: min(92vw, 30em); }
body.mode-monitor .toast.toast-low, body.mode-monitor .toast.has-action { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; white-space: nowrap; }
body.mode-monitor .toast .toast-action { width: auto; min-height: 40px; margin: 0; padding: 0 14px; flex: none; font-size: 0.85rem; }
