/* 🔑 ログインの小さな画面(視聴画面・一覧)。色・角丸・影・書体はテーマの名前だけ(feedback.css と同じ形) */
.lgpanel { position: fixed; right: 16px; top: 16px; z-index: 61; width: min(380px, calc(100vw - 32px)); max-height: 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; }
.lgpanel.hidden { display: none; }
@media (max-width: 600px) { .lgpanel { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 88vh; max-height: 88dvh; border-radius: var(--radius) var(--radius) 0 0; } }
.lghead { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--head-band, var(--panel2)); border-bottom: 1px solid var(--line); }
.lghead b { font-family: var(--font-head); font-weight: var(--head-weight); font-size: 16px; }
.lggrow { flex: 1; }
.lgpanel button { font: inherit; color: inherit; cursor: pointer; }
.lgclose { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-size: 13px; }
.lgbody { overflow-y: auto; padding: 14px 14px 6px; display: flex; flex-direction: column; gap: 10px; }
.lgbody .lead { margin: 0; font-size: 14px; line-height: 1.6; }
.lgbody .note { margin: 0; font-size: 12px; color: var(--sub); line-height: 1.6; }
/* 方法のボタン(印 + 文字。押せないものは「準備中」) */
.lgms { display: flex; flex-direction: column; gap: 8px; }
.lgm { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 8px 14px 8px 8px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--panel2); text-align: left; font-size: 15px; font-weight: 700; }
.lgm:hover:not(:disabled) { border-color: var(--accent); }
.lgm .mk { width: 34px; height: 34px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; background: var(--panel); border: 2px solid var(--accent); color: var(--text); }
.lgm .lt { flex: 1; }
.lgm .tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--sel-bg); color: var(--on-sel); border: 1px solid var(--sel-line); }
.lgm .tag.off { background: transparent; color: var(--sub); border: 1px dashed var(--line); }
.lgm:disabled { cursor: default; color: var(--sub); background: transparent; border-style: dashed; }
.lgm:disabled .mk { border-color: var(--line); color: var(--sub); }
/* メール・コード */
.lgform { display: flex; flex-direction: column; gap: 8px; }
.lgform label, .lgname label { font-size: 13px; color: var(--sub); }
.lgpanel input { width: 100%; padding: 10px 12px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--panel2); color: var(--text); font: inherit; font-size: 16px; }
.lgpanel input::placeholder { color: var(--sub); }
.lgpanel input.code { font-size: 28px; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; }
.lgbtn { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel2); white-space: nowrap; }
.lgbtn.primary { background: var(--btn); color: var(--on-btn); border: 0; font-weight: 700; box-shadow: var(--glow-key); }
.lgbtn.wide { width: 100%; min-height: 46px; font-size: 15px; }
.lgback, .lgresend { align-self: flex-start; padding: 6px 4px; background: transparent; color: var(--link); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.lgrow { display: flex; justify-content: space-between; gap: 8px; }
/* ログイン済み */
.lgme { display: flex; align-items: center; gap: 12px; }
.lgme .av { width: 46px; height: 46px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; background: var(--btn); color: var(--on-btn); }
.lgme .nm { font-family: var(--font-head); font-weight: var(--head-weight); font-size: 18px; word-break: break-all; }
.lgme .sub { font-size: 12px; color: var(--sub); line-height: 1.6; word-break: break-all; }
.lgname { display: flex; align-items: flex-end; gap: 8px; }
.lgname label { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.lgadd { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 8px 10px; }
.lgadd summary { cursor: pointer; font-size: 14px; font-weight: 700; }
.lgadd[open] summary { margin-bottom: 8px; }
.lgadd .note { margin-bottom: 8px; }
.lgmsg { padding: 6px 14px 14px; font-size: 13px; min-height: 1em; color: var(--ok, var(--text)); }
.lgmsg:empty { display: none; }
.lgmsg.bad { color: var(--warn-text); }
