/* 💬 ご意見・不具合の窓口(視聴画面・配信画面)。色・角丸・影・書体はテーマの名前だけ */
.fbpanel { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: min(420px, calc(100vw - 32px)); max-height: min(680px, calc(100vh - 32px)); display: flex; flex-direction: column;
  background: var(--panel-bg, var(--panel)); color: var(--text); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); box-shadow: var(--shadow); font-family: var(--font); overflow: hidden; }
.fbpanel.hidden { display: none; }
@media (max-width: 600px) { .fbpanel { left: 0; right: 0; bottom: 0; width: auto; max-height: 86vh; max-height: 86dvh; border-radius: var(--radius) var(--radius) 0 0; } }
.fbhead { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--head-band, var(--panel2)); border-bottom: 1px solid var(--line); }
.fbhead b { font-family: var(--font-head); font-weight: var(--head-weight); font-size: 16px; }
.fbgrow { flex: 1; }
.fbpanel button { font: inherit; color: inherit; cursor: pointer; }
.fbclose { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-size: 13px; }
.fblog { flex: 1; min-height: 120px; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.fbintro { color: var(--sub); font-size: 13px; line-height: 1.7; background: var(--panel2); border-radius: var(--radius-s); padding: 10px 12px; }
.fbm { max-width: 86%; padding: 8px 10px; border-radius: var(--bubble-radius, 14px); font-size: 14px; line-height: 1.55; }
.fbm.me { align-self: flex-end; background: var(--sel-bg); color: var(--on-sel); border: 1px solid var(--sel-line); }
.fbm.op { align-self: flex-start; background: var(--panel2); border: 1px solid var(--line); border-left: 4px solid var(--accent); }
.fbmh { display: flex; gap: 8px; justify-content: space-between; font-size: 11px; font-weight: 700; opacity: .85; margin-bottom: 2px; }
.fbmh span { font-weight: 400; }
.fbmt { white-space: pre-wrap; word-break: break-word; }
.fbm img { display: block; max-width: 100%; max-height: 160px; margin-top: 6px; border-radius: var(--radius-s); border: 1px solid var(--line); }
.fbstate { align-self: center; font-size: 12px; color: var(--sub); }
.fbform { padding: 10px 12px 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; background: var(--panel-bg, var(--panel)); }
.fbkinds { display: flex; gap: 6px; flex-wrap: wrap; }
.fbkinds button { flex: 1 1 auto; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel2); font-size: 13px; white-space: nowrap; }
.fbkinds button[aria-checked="true"] { background: var(--tab-on-bg); color: var(--tab-on-text); border-color: var(--tab-on-bg); font-weight: 800; }
.fbkinds button[aria-checked="true"]::before { content: "✓ "; }
.fbtext { width: 100%; resize: vertical; min-height: 64px; max-height: 40vh; padding: 8px 10px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--panel2); color: var(--text); font: inherit; font-size: 15px; line-height: 1.5; }
.fbtext::placeholder { color: var(--sub); }
.fbrow { display: flex; align-items: center; gap: 8px; }
.fbattach { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 999px; border: 1px dashed var(--line); background: var(--panel2); font-size: 13px; cursor: pointer; white-space: nowrap; }
.fbattach:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.fbcount { flex: 1; text-align: right; font-size: 12px; color: var(--sub); }
.fbsend { padding: 8px 16px; border-radius: 999px; border: 0; background: var(--btn); color: var(--on-btn); font-weight: 700; box-shadow: var(--glow-key); white-space: nowrap; }
.fbsend:disabled { background: var(--panel2); color: var(--sub); border: 1px solid var(--line); box-shadow: none; font-weight: 400; cursor: default; }
.fbpreview { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--sub); }
.fbpreview.hidden { display: none; }
.fbpreview img { width: 56px; height: 42px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.fbpinfo { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fbunatt { padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-size: 12px; }
.fbmsg { font-size: 13px; min-height: 1em; color: var(--ok, var(--text)); }
.fbmsg:empty { display: none; }
.fbmsg.bad { color: var(--warn-text); }
.fbnote { font-size: 11px; color: var(--sub); line-height: 1.5; }
/* 開くボタンの未読の印 */
.fbbadge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--live); color: var(--on-live); font-size: 12px; font-weight: 800; line-height: 20px; text-align: center; box-shadow: 0 0 0 2px var(--panel); pointer-events: none; }
.fbbadge.hidden { display: none; }
