body {
  font-family: system-ui, sans-serif;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px 32px;
  line-height: 1.6;
  color: #222;
}

h1 { margin-top: 24px; }

.topnav {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  background: #222;
  color: #eee;
  margin: 0 -16px;
}

.topnav a { color: #eee; text-decoration: none; }
.topnav a:hover { text-decoration: underline; }
.topnav-user { font-weight: bold; }
.topnav-logout { margin-left: auto; }
.topnav-logout button {
  background: transparent;
  border: 1px solid #888;
  color: #eee;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.panel {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
  background: #fafafa;
}

.panel.narrow { max-width: 420px; }
.panel.highlight { background: #fff7d6; border-color: #e6c200; }

label { display: block; margin: 8px 0 4px; font-weight: bold; }

input, select {
  font-size: 16px;
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
}

.checkbox { display: flex; align-items: center; gap: 6px; font-weight: normal; }
.checkbox input { width: auto; }

button {
  font-size: 16px;
  padding: 10px 16px;
  margin: 8px 8px 0 0;
  cursor: pointer;
}

button.danger { background: #f8d7da; border-color: #f5c2c7; }

.error { color: #b00020; font-weight: bold; }
.notice { color: #0a6f2c; font-weight: bold; }
.small { color: #666; font-size: 14px; }

.inline-form {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
}

.user-table { width: 100%; border-collapse: collapse; }
.user-table th, .user-table td {
  text-align: left;
  padding: 8px;
  border-bottom: 1px solid #ddd;
}
.user-actions { display: flex; gap: 6px; }

code {
  background: #eee;
  padding: 2px 6px;
  border-radius: 4px;
}

/* --- 通話画面: 音量メーター・相手パネル・ログ(pc_html_app/index 2.html 相当) --- */

.meterBox {
  margin: 10px 0;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #ddd;
}

.meterLabel {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 6px;
}

.meterOuter {
  width: 100%;
  height: 18px;
  background: #e8e8e8;
  border-radius: 999px;
  overflow: hidden;
}

.meterInner {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4caf50, #ffc107, #f44336);
  transition: width 80ms linear;
}

.peer {
  padding: 12px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 8px;
  margin: 8px 0;
}

.peer audio {
  display: block;
  width: 100%;
  margin: 8px 0;
}

.log-box {
  white-space: pre-wrap;
  overflow: auto;
  height: 320px;
  padding: 12px;
  background: #111;
  color: #eee;
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}
