/* デモ版の追加スタイル */
#demoBadge{position:fixed;left:50%;bottom:calc(10px + env(safe-area-inset-bottom));transform:translateX(-50%);z-index:20;
 font:700 11px/1 system-ui,sans-serif;letter-spacing:.08em;color:#fff;background:rgba(37,99,235,.88);padding:6px 12px;border-radius:999px;pointer-events:none;white-space:nowrap}
#demoBadge small{font-weight:400;margin-left:8px;opacity:.9;letter-spacing:0}
body.chat-open #demoBadge{display:none}
.cp-msg.thinking{color:#667;font-size:12px}
.cp-input{font-size:16px}
@media(max-width:700px){#demoBadge small{display:none}#hint{display:none}}

/* 2026-11-30 里奈さん指示: スマホで見づらいので「チーム」一覧・「1F バックオフィス」札・「デモ表示」札は出さない（PCでも不要） */
#right,#floorsCard,#statusPill .demo,#demoBadge{display:none!important}
@media(max-width:700px){
 /* スマホは3Dを広く見せる: 左の待ち一覧・ログも隠し、上の集計は1行に収める */
 #left,#log{display:none!important}
 #statusPill{gap:10px;padding:8px 12px}
 #statusPill .st{white-space:nowrap;gap:4px}
 #statusPill .st span{font-size:11px}
 #statusPill .st b{font-size:18px}
}

/* 2026-11-30 里奈さん指示②: 役割名を大きく・近づいたら上部表示を隠す・チャット欄の重なりを解消 */
.bub .nm{font-size:15px;font-weight:800;color:#1d2433;background:rgba(255,255,255,.92);padding:3px 10px;border-radius:8px;margin-top:5px;box-shadow:0 3px 10px rgba(20,30,60,.12)}
body.night .bub .nm{background:rgba(20,25,45,.85);color:#fff}
.cp-title{font-size:20px!important;font-weight:800}
body.chat-open #brand,body.chat-open #statusPill,body.chat-open #clockPill,body.chat-open #left,body.chat-open #modes,body.chat-open #hint{display:none!important}
/* 承認カードを高さ制限つきの別枠にせず、会話と一緒にスクロールさせる（ボタンが切れて会話と重なっていた） */
#chatPanel .cp-decisions{max-height:none;overflow:visible;flex:none}
#chatPanel .cp-screen{max-height:none}
@media(max-width:700px){
 #chatPanel{height:72dvh;overflow-y:auto;padding-bottom:calc(14px + env(safe-area-inset-bottom))}
 #chatPanel .cp-log{flex:none;overflow:visible;min-height:auto}
 #chatPanel .cp-form{position:sticky;bottom:0;background:inherit;padding-top:6px;z-index:2}
 #chatPanel .cp-notice{display:none}
 .bub .nm{font-size:14px}
}

/* 2026-11-30 里奈さん指示③: スマホのチャット欄は中身の高さに合わせ、入力欄を画面の一番下に置く（キャラが見え、下の空きを無くす） */
@media(max-width:700px){
 #chatPanel{height:auto;max-height:60dvh}
}
