/* GI Voice Link - Styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ===== SVG ICON SYSTEM ===== */
.ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}
.ico svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}
/* スピナーアニメーション */
.ico-spin {
  animation: spin 0.8s linear infinite;
}
/* ロゴアイコン（ログイン画面） */
.logo-icon {
  display: flex;
  justify-content: center;
  font-size: 52px;
  color: var(--blue2);
  margin-bottom: 10px;
}
.logo-icon .ico { width: 1em; height: 1em; }
/* ナビボタン内のアイコン */
.nav-btn .ico { width: 22px; height: 22px; }
/* 設定アイコン */
.si-icon .ico { width: 18px; height: 18px; }
/* PTTボタンアイコン */
.ptt-ico { display: flex; align-items: center; justify-content: center; }
.ptt-ico .ico { width: 30px; height: 30px; }
/* BT バッジアイコン */
.bt-badge .ico { width: 14px; height: 14px; }
/* 設定行の矢印 */
.si-arr .ico { width: 14px; height: 14px; }
/* トップロゴ */
.top-logo .ico { width: 22px; height: 22px; }

:root {
  --bg: #0f172a;
  --bg2: #1e293b;
  --bg3: #334155;
  --blue: #1d4ed8;
  --blue2: #3b82f6;
  --blue3: #60a5fa;
  --green: #16a34a;
  --green2: #4ade80;
  --red: #dc2626;
  --red2: #f87171;
  --yellow: #d97706;
  --yellow2: #fbbf24;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --border: #334155;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Segoe UI', sans-serif;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

#app {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* ===== TOAST ===== */
.toast-wrap {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: min(92vw, 400px);
  pointer-events: none;
}
.toast {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: fadeDown 0.3s ease;
  pointer-events: all;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.t-success { background: #14532d; border: 1px solid #16a34a; color: #4ade80; }
.t-error   { background: #450a0a; border: 1px solid #dc2626; color: #f87171; }
.t-warn    { background: #451a03; border: 1px solid #d97706; color: #fbbf24; }
.t-info    { background: #1e3a8a; border: 1px solid #1d4ed8; color: #93c5fd; }

/* ===== LOADING ===== */
.loading-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 48px 0;
}
.spin {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--blue2);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== LOGIN ===== */
.login-page {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
  background: radial-gradient(ellipse at top, #0f2d5c 0%, #0f172a 60%);
  overflow-y: auto;
}
.login-logo {
  text-align: center;
  margin-bottom: 28px;
}
.logo-icon {
  font-size: 52px;
  color: var(--blue2);
  margin-bottom: 10px;
}
.login-logo h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text);
}
.login-logo p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}
/* ===== FORM ===== */
.fg { margin-bottom: 14px; }
.fg label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.fc {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}
.fc:focus { border-color: var(--blue2); }
.fc::placeholder { color: var(--bg3); }
select.fc option { background: var(--bg2); }

/* ===== BUTTONS ===== */
.btn-blue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 20px;
  background: var(--blue);
  border: none;
  border-radius: 9px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn-blue:hover { background: #2563eb; }
.btn-blue:active { transform: scale(0.97); }
.btn-blue:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 18px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-ghost:hover { background: #475569; }

.btn-red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 20px;
  background: rgba(220,38,38,0.15);
  border: 1px solid rgba(220,38,38,0.4);
  border-radius: 9px;
  color: var(--red2);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.btn-red:hover { background: rgba(220,38,38,0.25); }

.btn-sm-blue {
  padding: 7px 12px;
  background: var(--blue);
  border: none;
  border-radius: 7px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.btn-del {
  padding: 5px 9px;
  background: rgba(220,38,38,0.15);
  border: 1px solid rgba(220,38,38,0.3);
  border-radius: 6px;
  color: var(--red2);
  font-size: 12px;
  cursor: pointer;
}
.btn-del:hover { background: rgba(220,38,38,0.3); }

.w100 { width: 100%; }
.mb12 { margin-bottom: 12px; }

.demo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}
.demo-btn {
  padding: 12px 8px;
  text-align: center;
  line-height: 1.6;
  font-size: 13px;
}
.demo-btn small { color: var(--muted); font-size: 11px; }
.hint {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
}
.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  margin: 16px 0 12px;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ===== MAIN LAYOUT ===== */
.main-wrap {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* Top bar */
.top-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  min-height: 54px;
}
.top-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--blue3);
}
.top-logo i { font-size: 20px; }
.top-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* BT badge */
.bt-badge {
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.bt-on  { background: rgba(29,78,216,0.2); color: var(--blue3); border: 1px solid rgba(29,78,216,0.4); }
.bt-off { background: rgba(148,163,184,0.1); color: var(--muted); border: 1px solid var(--border); }

/* User chip */
.user-chip {
  display: flex;
  align-items: center;
  gap: 6px;
}
.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.uname {
  font-size: 13px;
  font-weight: 600;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Main body */
.main-body {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Scroll area */
.scroll-area {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
}
.scroll-area::-webkit-scrollbar { width: 3px; }
.scroll-area::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* Bottom nav */
.bot-nav {
  flex-shrink: 0;
  display: flex;
  background: var(--bg2);
  border-top: 1px solid var(--border);
}
.nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 9px 4px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 10px;
  cursor: pointer;
  transition: color 0.2s;
  min-height: 54px;
}
.nav-btn i { font-size: 20px; }
.nav-btn.active { color: var(--blue2); }
.nav-btn:hover { color: var(--text); }

/* Page head */
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  flex-shrink: 0;
}
.page-title {
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 7px;
}
.page-title i { color: var(--blue3); }

/* ===== DASHBOARD ===== */
.dash-greet {
  margin-bottom: 16px;
  padding: 0 2px;
}
.dash-greet h2 { font-size: 19px; font-weight: 700; }
.dash-greet p  { font-size: 12px; color: var(--muted); margin-top: 3px; }

.warn-banner {
  background: rgba(217,119,6,0.12);
  border: 1px solid rgba(217,119,6,0.4);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--yellow2);
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.warn-banner i { margin-top: 2px; flex-shrink: 0; }

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.stat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}
.sv { font-size: 28px; font-weight: 800; }
.sl { font-size: 11px; color: var(--muted); margin-top: 3px; }
.stat-card.blue   .sv { color: var(--blue3); }
.stat-card.green  .sv { color: var(--green2); }
.stat-card.yellow .sv { color: var(--yellow2); }
.stat-card.red    .sv { color: var(--red2); }

.sec-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

/* Room card */
.room-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
}
.room-card:hover  { border-color: var(--blue2); transform: translateY(-1px); }
.room-card:active { transform: scale(0.98); }
.room-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
}
.room-info { flex: 1; min-width: 0; }
.rname { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rmeta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.room-enter { color: var(--blue3); font-size: 14px; }

/* Empty state */
.empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
}
.empty i  { font-size: 40px; margin-bottom: 10px; opacity: 0.4; }
.empty h3 { font-size: 15px; margin-bottom: 6px; }
.empty p  { font-size: 13px; }

/* ===== CALL SCREEN ===== */
.call-wrap {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: #080f1a;
  overflow: hidden;
}

.call-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(15,23,42,0.95);
  border-bottom: 1px solid var(--border);
}
.btn-back {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  flex-shrink: 0;
}
.btn-back:hover { background: var(--bg3); }
.call-hinfo { flex: 1; min-width: 0; }
.call-hname { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.call-hmeta { font-size: 11px; color: var(--muted); }
.call-hright { display: flex; align-items: center; gap: 6px; }

/* Participants bar */
.call-participants {
  flex-shrink: 0;
  display: flex;
  gap: 12px;
  padding: 10px 14px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}
.call-participants::-webkit-scrollbar { display: none; }
.ptp-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  min-width: 48px;
}
.ptp-av {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  border: 2px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.ptp-av.speaking {
  border-color: var(--green2);
  box-shadow: 0 0 12px rgba(74,222,128,0.5);
}
.ptp-name { font-size: 10px; color: var(--muted); text-align: center; }
.ptp-lang { font-size: 9px; color: var(--blue3); text-align: center; }

/* Call logs */
.call-logs {
  flex: 1;
  overflow-y: auto;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.call-logs::-webkit-scrollbar { width: 3px; }
.call-logs::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.call-log-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-align: center;
  gap: 8px;
  opacity: 0.6;
  padding: 24px;
}
.call-log-empty i { font-size: 36px; }
.call-log-empty p { font-size: 13px; }

.call-log-msg {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  animation: slideUp 0.25s ease;
}
.call-log-msg.mine {
  background: rgba(29,78,216,0.1);
  border-color: rgba(59,130,246,0.3);
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.clm-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}
.clm-av {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}
.clm-name { font-size: 12px; font-weight: 600; color: var(--muted); }
.clm-lang { font-size: 10px; color: var(--blue3); }
.clm-time { font-size: 10px; color: var(--muted); margin-left: auto; }
.clm-orig  { font-size: 14px; margin-bottom: 4px; }
.clm-trans { font-size: 12px; color: var(--blue3); font-style: italic; display: flex; gap: 5px; align-items: flex-start; }
.clm-trans i { margin-top: 2px; flex-shrink: 0; }

/* ===== PTT AREA ===== */
.ptt-area {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 20px;
  background: rgba(8,15,26,0.97);
  border-top: 1px solid var(--border);
}

.lang-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  color: var(--text);
}
.lang-pill i { color: var(--blue3); }
.link-btn {
  background: none;
  border: none;
  color: var(--blue3);
  font-size: 11px;
  cursor: pointer;
  padding: 0;
  margin-left: 2px;
}

.ptt-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ptt-ring {
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 3px solid var(--red2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.ptt-ring.active {
  opacity: 1;
  animation: pttPulse 1.1s ease-out infinite;
}
@keyframes pttPulse {
  0%   { transform: scale(1);   opacity: 0.8; }
  100% { transform: scale(1.55); opacity: 0; }
}

.ptt-btn {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 3px solid rgba(29,78,216,0.5);
  background: radial-gradient(circle, #1d4ed8, #1e3a8a);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: transform 0.12s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 28px rgba(29,78,216,0.35);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  outline: none;
}
.ptt-btn i    { font-size: 30px; }
.ptt-btn span { font-size: 11px; font-weight: 700; opacity: 0.85; }
.ptt-btn:hover { border-color: rgba(59,130,246,0.7); transform: scale(1.03); }

.ptt-btn.rec {
  background: radial-gradient(circle, #dc2626, #991b1b);
  border-color: rgba(220,38,38,0.7);
  box-shadow: 0 6px 28px rgba(220,38,38,0.45);
  animation: recPulse 1s ease infinite;
}
@keyframes recPulse {
  0%, 100% { box-shadow: 0 6px 28px rgba(220,38,38,0.4); }
  50%       { box-shadow: 0 6px 40px rgba(220,38,38,0.7); }
}
.ptt-btn.proc {
  background: radial-gradient(circle, #d97706, #92400e);
  border-color: rgba(217,119,6,0.6);
  box-shadow: 0 6px 28px rgba(217,119,6,0.4);
  cursor: not-allowed;
}

.ptt-hint {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

/* ===== LOGS ===== */
.search-row {
  padding: 10px 16px 2px;
  flex-shrink: 0;
}
.search-fc {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  font-size: 14px;
  outline: none;
}
.search-fc:focus { border-color: var(--blue2); }

.log-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.log-item:hover { border-color: var(--blue2); }
.li-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
}
.li-av {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.li-name { font-size: 13px; font-weight: 600; }
.li-tag  { font-size: 10px; padding: 2px 6px; background: rgba(59,130,246,0.15); color: var(--blue3); border-radius: 4px; }
.li-time { font-size: 10px; color: var(--muted); margin-left: auto; }
.li-orig  { font-size: 14px; margin-bottom: 4px; }
.li-trans { font-size: 12px; color: var(--blue3); font-style: italic; margin-bottom: 4px; display: flex; gap: 5px; align-items: flex-start; }
.li-trans i { margin-top: 2px; }
.li-room  { font-size: 11px; color: var(--muted); }
.log-total { text-align: center; font-size: 12px; color: var(--muted); padding: 8px 0; }

/* ===== ADMIN ===== */
.admin-tabs {
  flex-shrink: 0;
  display: flex;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}
.atab {
  flex: 1;
  padding: 12px 4px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
}
.atab.active { color: var(--blue2); border-bottom-color: var(--blue2); }
.atab:hover { color: var(--text); }

.admin-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 14px;
  margin-bottom: 8px;
}
.ac-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.ac-title {
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
}
.ac-meta { font-size: 12px; color: var(--muted); }
.admin-av {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}
.role-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}
.rtag-admin { background: rgba(59,130,246,0.15); color: var(--blue3); border: 1px solid rgba(59,130,246,0.3); }
.rtag-staff { background: rgba(74,222,128,0.12); color: var(--green2); border: 1px solid rgba(74,222,128,0.25); }

.report-form { padding: 4px 0; }
.report-box {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
}
.report-box pre {
  font-size: 13px;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
  line-height: 1.7;
  font-family: inherit;
}

/* ===== SETTINGS ===== */
.settings-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.sp-av {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  flex-shrink: 0;
}
.sp-name { font-size: 16px; font-weight: 700; }
.sp-sub  { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* Settings item */
.si {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}
.si:hover { background: var(--bg2); }
.si-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(29,78,216,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue3);
  font-size: 15px;
  flex-shrink: 0;
}
.si-info  { flex: 1; }
.si-label { font-size: 14px; font-weight: 600; }
.si-val   { font-size: 12px; color: var(--muted); margin-top: 2px; }
.si-val.green { color: var(--green2); }
.si-val.red   { color: var(--red2); }
.si-arr { color: var(--muted); font-size: 13px; }

/* ===== MODAL ===== */
.modal-ov {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
}
.modal-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px 20px 0 0;
  padding: 22px 20px 28px;
  width: 100%;
  max-width: 500px;
  max-height: 82vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}
.modal-title {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-btns {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.modal-btns .btn-ghost,
.modal-btns .btn-blue { flex: 1; justify-content: center; }

/* ===== LANG GRID ===== */
.lang-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  max-height: 50vh;
  overflow-y: auto;
}
.lang-grid::-webkit-scrollbar { width: 3px; }
.lang-grid::-webkit-scrollbar-thumb { background: var(--border); }
.lang-opt {
  padding: 9px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.lang-opt:hover { border-color: var(--blue2); }
.lang-opt.sel   { border-color: var(--blue2); background: rgba(29,78,216,0.15); }
.ln  { font-size: 13px; font-weight: 600; color: var(--text); }
.lnn { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ===== SVG ICON ===== */
.ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  flex-shrink: 0;
}
.ico svg {
  width: 100%;
  height: 100%;
}
.logo-icon .ico { width: 52px; height: 52px; color: var(--blue2); }
.top-logo .ico  { width: 20px; height: 20px; }
.nav-btn .ico   { width: 22px; height: 22px; }
.si-icon .ico   { width: 18px; height: 18px; }
.si-arr         { color: var(--muted); }
.si-arr svg     { width: 14px; height: 14px; }
.room-icon .ico { width: 20px; height: 20px; }
.room-enter .ico{ width: 16px; height: 16px; }
.ptt-icon-wrap  { display:flex; align-items:center; justify-content:center; }
.ptt-icon-wrap .ico { width: 32px; height: 32px; }
.ptt-btn .ico   { width: 32px; height: 32px; }
.btn-back .ico  { width: 22px; height: 22px; }
.bt-badge .ico  { width: 14px; height: 14px; }
.lang-pill .ico { width: 14px; height: 14px; color: var(--blue3); }
.call-log-empty .ico { width: 38px; height: 38px; opacity: 0.4; }
.clm-trans .ico { width: 12px; height: 12px; margin-top: 2px; flex-shrink: 0; }
.li-trans .ico  { width: 12px; height: 12px; margin-top: 2px; }
.li-room .ico   { width: 12px; height: 12px; }
.empty .ico     { width: 40px; height: 40px; opacity: 0.4; margin-bottom: 10px; display: block; margin-left: auto; margin-right: auto; }
.warn-banner .ico { width: 15px; height: 15px; margin-top: 2px; flex-shrink: 0; }
.toast .ico     { width: 15px; height: 15px; flex-shrink: 0; }
.modal-title .ico { width: 18px; height: 18px; }
.page-title .ico  { width: 16px; height: 16px; color: var(--blue3); }
.ac-title .ico  { width: 14px; height: 14px; }
.ac-meta .ico   { width: 12px; height: 12px; }
.atab .ico      { width: 13px; height: 13px; }
.btn-blue .ico, .btn-ghost .ico, .btn-red .ico, .btn-sm-blue .ico { width: 14px; height: 14px; }
.btn-del .ico   { width: 13px; height: 13px; }
.demo-btn .ico  { width: 28px; height: 28px; display: block; margin: 0 auto 4px; }

/* スピナーアニメーション */
.spin-anim svg { animation: spin 0.7s linear infinite; }

/* ===== モードバッジ ===== */
.mode-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  letter-spacing: 0.3px;
}
.mode-badge.free { background: rgba(74,222,128,0.15); color: var(--green2); border: 1px solid rgba(74,222,128,0.3); }
.mode-badge.ai   { background: rgba(59,130,246,0.15); color: var(--blue3); border: 1px solid rgba(59,130,246,0.3); }

/* ===== ダッシュボード: モード情報バナー ===== */
.mode-info-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 13px;
  margin-bottom: 14px;
}
.free-banner { background: rgba(74,222,128,0.08); border: 1px solid rgba(74,222,128,0.25); color: var(--green2); }
.ai-banner   { background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.25); color: var(--blue3); }
.mode-info-banner .ico { width: 15px; height: 15px; flex-shrink: 0; }

/* ===== 通話画面: モードタグ ===== */
.call-mode-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 8px;
  margin-left: 5px;
  vertical-align: middle;
}
.call-mode-tag.free { background: rgba(74,222,128,0.15); color: var(--green2); }
.call-mode-tag.ai   { background: rgba(59,130,246,0.15); color: var(--blue3); }

/* ===== 通話画面: interim（認識中テキスト）===== */
.interim-box {
  min-height: 20px;
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  text-align: center;
  padding: 0 16px;
  max-width: 320px;
  word-break: break-all;
  transition: opacity 0.2s;
}

/* ===== 通話ログ: ヘッダー修正 ===== */
.clm-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}
.clm-av {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
  color: #fff;
}
.clm-name { font-size: 12px; font-weight: 600; color: var(--muted); }
.clm-lang { font-size: 10px; color: var(--blue3); }
.clm-time { font-size: 10px; color: var(--muted); margin-left: auto; }
.clm-orig { font-size: 14px; font-weight: 500; margin-bottom: 5px; line-height: 1.4; }
.clm-trans-wrap { display: flex; flex-direction: column; gap: 3px; padding-top: 4px; border-top: 1px solid var(--border); }
.clm-trans {
  font-size: 12px;
  color: var(--blue3);
  display: flex;
  gap: 5px;
  align-items: flex-start;
  line-height: 1.4;
}
.clm-trans .ico { width: 11px; height: 11px; margin-top: 2px; flex-shrink: 0; opacity: 0.6; }
.clm-tl { font-size: 10px; color: var(--muted); flex-shrink: 0; margin-top: 1px; }

/* ===== ログ画面: 検索バー ===== */
.log-search-bar {
  padding: 0 16px 10px;
  flex-shrink: 0;
}
.log-count {
  font-size: 11px;
  color: var(--muted);
  text-align: right;
  padding: 0 2px 8px;
}

/* ===== ログアイテム: スタイル修正 ===== */
.li-header {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
}
.li-av {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  color: #fff;
}
.li-name { font-size: 13px; font-weight: 600; }
.li-lang { font-size: 10px; color: var(--blue3); padding: 1px 5px; background: rgba(59,130,246,0.1); border-radius: 4px; }
.li-time { font-size: 10px; color: var(--muted); margin-left: auto; }
.li-room { font-size: 11px; color: var(--muted); margin-bottom: 4px; display: flex; align-items: center; gap: 4px; }
.li-room .ico { width: 11px; height: 11px; }
.li-orig { font-size: 14px; margin-bottom: 4px; line-height: 1.4; }
.li-trans-wrap { display: flex; flex-direction: column; gap: 3px; padding-top: 4px; border-top: 1px solid var(--border); }
.li-trans {
  font-size: 12px;
  color: var(--blue3);
  display: flex;
  gap: 5px;
  align-items: flex-start;
  line-height: 1.4;
}
.li-trans .ico { width: 11px; height: 11px; margin-top: 2px; flex-shrink: 0; opacity: 0.6; }
.li-tl { font-size: 10px; color: var(--muted); flex-shrink: 0; margin-top: 1px; }

/* ===== 管理画面: カード修正 ===== */
.ac-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 14px;
  margin-bottom: 8px;
}
.ac-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(29,78,216,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue3);
  flex-shrink: 0;
}
.ac-icon .ico { width: 18px; height: 18px; }
.ac-icon .avatar { font-size: 15px; }
.ac-info { flex: 1; min-width: 0; }
.ac-title { font-size: 14px; font-weight: 700; }
.ac-meta  { font-size: 12px; color: var(--muted); margin-top: 2px; display: flex; align-items: center; gap: 4px; }
.ac-meta .ico { width: 11px; height: 11px; }
.ac-head {
  display: flex;
  justify-content: flex-end;
  padding: 4px 0 8px;
}

/* ===== 管理タブ ===== */
.atab-row {
  display: flex;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  overflow-x: auto;
}
.atab-row::-webkit-scrollbar { display: none; }
.atab {
  flex: 1;
  min-width: 60px;
  padding: 11px 4px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s;
  white-space: nowrap;
}
.atab.active { color: var(--blue2); border-bottom-color: var(--blue2); }
.atab:hover  { color: var(--text); }
.atab .ico   { width: 13px; height: 13px; }

/* ===== 設定: モード切替 ===== */
.mode-toggle-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 16px 16px;
}
.mode-toggle-card {
  background: var(--bg2);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 14px 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.mode-toggle-card:hover { border-color: var(--blue3); }
.mode-toggle-card.sel  {
  border-color: var(--blue2);
  background: rgba(29,78,216,0.1);
}
.mt-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.mt-title .ico { width: 13px; height: 13px; }
.mt-desc { font-size: 11px; color: var(--muted); line-height: 1.5; }

/* ===== 読み上げボタン ===== */
.icon-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  padding: 5px 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color 0.2s, border-color 0.2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--blue3); }
.icon-btn .ico  { width: 17px; height: 17px; }

/* ===== 報告書 ===== */
.report-form { padding: 4px 0 16px; }

/* ===== スピナー spin-anim 修正 ===== */
.spin-anim svg { animation: spin 0.7s linear infinite; }

/* =====================================================
   ===== グループインカム v2.0 スタイル =====
   ===================================================== */

/* ----- 接続バッジ ----- */
.conn-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 20px;
  transition: all 0.3s;
}
.conn-badge .ico { width: 12px; height: 12px; }
.conn-connecting {
  background: rgba(251,191,36,0.15);
  color: var(--yellow2);
  border: 1px solid rgba(251,191,36,0.3);
}
.conn-online {
  background: rgba(22,163,74,0.15);
  color: var(--green2);
  border: 1px solid rgba(22,163,74,0.3);
}
.conn-offline {
  background: rgba(220,38,38,0.15);
  color: var(--red2);
  border: 1px solid rgba(220,38,38,0.3);
}

/* ----- 参加者バー ----- */
.member-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(30,41,59,0.95);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  flex-shrink: 0;
  min-height: 64px;
}
.member-bar::-webkit-scrollbar { display: none; }
.mb-empty {
  font-size: 11px;
  color: var(--muted);
  padding: 4px 8px;
}
.member-bar-loading {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.mb-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 52px;
  transition: transform 0.2s;
  position: relative;
}
.mb-item.mb-me { opacity: 0.85; }
.mb-item.mb-talking { transform: scale(1.08); }
.mb-av {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  border: 2px solid transparent;
  position: relative;
  transition: border-color 0.2s;
  flex-shrink: 0;
}
.mb-item.mb-talking .mb-av {
  border-color: var(--green2);
  box-shadow: 0 0 0 3px rgba(74,222,128,0.25);
}
.mb-talking-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--green2);
  animation: mbPulse 1s ease-in-out infinite;
}
@keyframes mbPulse {
  0%   { opacity: 1;   transform: scale(1); }
  100% { opacity: 0;   transform: scale(1.4); }
}
.mb-info { text-align: center; }
.mb-name {
  font-size: 9px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  max-width: 50px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mb-lang { font-size: 8px; color: var(--blue3); }
.mb-me-tag {
  font-size: 8px;
  background: rgba(29,78,216,0.3);
  color: var(--blue3);
  border-radius: 3px;
  padding: 0 3px;
}

/* ----- 発話中インジケーター ----- */
.talking-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  background: rgba(22,163,74,0.12);
  border-bottom: 1px solid rgba(74,222,128,0.2);
  flex-shrink: 0;
}
.ti-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green2);
  animation: tiPulse 0.6s ease-in-out infinite alternate;
  flex-shrink: 0;
}
@keyframes tiPulse {
  from { transform: scale(0.8); opacity: 0.7; }
  to   { transform: scale(1.2); opacity: 1; }
}
#ti-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--green2);
}

/* ----- call-wrap のレイアウト調整 ----- */
.call-wrap {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
}
.call-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 6px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.call-hinfo { flex: 1; min-width: 0; }
.call-hname {
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.call-hmeta {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.call-hright {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* ----- チャットログエリア ----- */
.call-logs {
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}
.call-logs::-webkit-scrollbar { width: 3px; }
.call-logs::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ----- 認識中テキスト ----- */
.interim-box {
  padding: 4px 16px;
  font-size: 13px;
  color: var(--yellow2);
  min-height: 22px;
  flex-shrink: 0;
  font-style: italic;
  background: rgba(217,119,6,0.06);
}

/* ----- 発言カード ----- */
.call-log-msg {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  animation: slideUp 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.call-log-msg.clm-mine {
  background: rgba(29,78,216,0.08);
  border-color: rgba(59,130,246,0.25);
  align-self: flex-end;
  max-width: 92%;
}

/* ヘッダー行 */
.clm-header {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.clm-av {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.clm-name { font-size: 12px; font-weight: 700; }
.clm-lang-badge {
  font-size: 10px;
  color: var(--blue3);
  background: rgba(59,130,246,0.1);
  padding: 1px 6px;
  border-radius: 8px;
}
.clm-voice-badge {
  font-size: 10px;
  color: #a78bfa;
  background: rgba(124,58,237,0.1);
  padding: 1px 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 3px;
}
.clm-voice-badge .ico { width: 10px; height: 10px; }
.clm-time {
  font-size: 10px;
  color: var(--muted);
  margin-left: auto;
}

/* 原文 */
.clm-orig {
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.clm-orig .ico { width: 13px; height: 13px; color: var(--muted); margin-top: 2px; flex-shrink: 0; }

/* 翻訳ブロック */
.clm-trans-wrap {
  border-top: 1px solid var(--border);
  padding-top: 6px;
}
.clm-expand-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-size: 11px;
  padding: 4px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s, border-color 0.15s;
  margin-bottom: 6px;
}
.clm-expand-btn:hover { color: var(--text); border-color: var(--blue3); }
.clm-expand-btn .ico { width: 11px; height: 11px; }
.clm-trans-list { display: flex; flex-direction: column; gap: 4px; }
.clm-trans {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 12px;
  color: var(--blue3);
  padding: 3px 0;
  border-bottom: 1px solid rgba(51,65,85,0.5);
  line-height: 1.4;
}
.clm-trans:last-child { border-bottom: none; }
.clm-trans.clm-trans-mine {
  color: var(--green2);
  background: rgba(22,163,74,0.06);
  border-radius: 6px;
  padding: 4px 6px;
  border-bottom: none;
  margin-top: 2px;
}
.clm-tl {
  font-size: 10px;
  color: var(--muted);
  flex-shrink: 0;
  margin-top: 1px;
  white-space: nowrap;
}
.clm-tt { flex: 1; }
.clm-play-btn {
  background: none;
  border: 1px solid rgba(74,222,128,0.3);
  border-radius: 6px;
  color: var(--green2);
  cursor: pointer;
  padding: 2px 5px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: background 0.15s;
}
.clm-play-btn:hover { background: rgba(74,222,128,0.12); }
.clm-play-btn .ico { width: 11px; height: 11px; }

/* ----- PTT エリア (大型ボタン) ----- */
.ptt-area {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 18px;
  background: rgba(8,15,26,0.97);
  border-top: 1px solid var(--border);
}
.lang-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  color: var(--text);
}
.lang-pill .ico { width: 14px; height: 14px; color: var(--blue3); }
.link-btn {
  background: none;
  border: none;
  color: var(--blue3);
  font-size: 11px;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.ptt-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ptt-ring {
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 3px solid var(--blue2);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.ptt-ring.active {
  opacity: 1;
  animation: pttPulse 1s ease-in-out infinite;
}
@keyframes pttPulse {
  0%   { transform: scale(1);    opacity: 0.8; }
  100% { transform: scale(1.18); opacity: 0; }
}

/* 巨大PTTボタン */
.ptt-btn {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 6px 28px rgba(29,78,216,0.55);
  transition: transform 0.12s, box-shadow 0.12s, background 0.15s;
  -webkit-user-select: none;
  user-select: none;
  position: relative;
  z-index: 1;
}
.ptt-btn:active,
.ptt-btn.rec {
  transform: scale(0.94);
  background: linear-gradient(135deg, #b91c1c 0%, #ef4444 100%);
  box-shadow: 0 4px 20px rgba(239,68,68,0.6);
}
.ptt-btn.proc {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
  box-shadow: 0 4px 20px rgba(245,158,11,0.5);
}
.ptt-btn.ptt-disabled {
  background: var(--bg3);
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}
.ptt-ico { display: flex; align-items: center; justify-content: center; }
.ptt-ico .ico { width: 32px; height: 32px; }

.ptt-hint {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

/* ----- 接続人数バッジ (ルームカード) ----- */
.online-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  background: rgba(22,163,74,0.12);
  color: var(--green2);
  border: 1px solid rgba(22,163,74,0.25);
  border-radius: 8px;
  padding: 1px 6px;
  margin-top: 2px;
}
.online-badge .ico { width: 10px; height: 10px; }

/* ----- モードバッジ ----- */
.mode-badge {
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 5px;
  letter-spacing: 0.02em;
}
.mode-badge.free { background: rgba(22,163,74,0.2);  color: var(--green2); }
.mode-badge.ai   { background: rgba(124,58,237,0.2); color: #c4b5fd; }

/* モードバナー */
.mode-info-banner {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mode-info-banner .ico { width: 16px; height: 16px; flex-shrink: 0; }
.free-banner { background: rgba(22,163,74,0.1);  border: 1px solid rgba(22,163,74,0.25); color: var(--green2); }
.ai-banner   { background: rgba(124,58,237,0.1); border: 1px solid rgba(124,58,237,0.25); color: #c4b5fd; }

/* 通話モードタグ */
.call-mode-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 8px;
}
.call-mode-tag .ico { width: 10px; height: 10px; }
.call-mode-tag.free { background: rgba(22,163,74,0.15);  color: var(--green2); }
.call-mode-tag.ai   { background: rgba(124,58,237,0.15); color: #c4b5fd; }
