:root {
  --bg: #fafafa;
  --fg: #1a1a1a;
  --muted: #888;
  --accent: #1a1a1a;
  --warn: #f5a623;
  --error: #d0021b;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--bg); color: var(--fg); }

main#call { display: flex; flex-direction: column; min-height: 100vh; padding: 16px; }
.call__header { display: flex; justify-content: flex-end; }
#settings-btn { font-size: 24px; background: none; border: none; cursor: pointer; }
.call__subject { display: flex; flex-direction: column; align-items: center; margin-top: 32px; }
.subject-photo { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; background: linear-gradient(135deg,#ddd,#bbb); }
.subject-name { font-size: 24px; margin: 12px 0 4px; }
.status { font-size: 13px; color: var(--muted); margin: 0; }
.status--listening { color: var(--error); }
.status--thinking { color: var(--warn); }
.status--speaking { color: #2a8f2a; }

.caption { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px; font-style: italic; color: #444; line-height: 1.6; min-height: 80px; max-width: 480px; margin: 0 auto; text-align: center; }

.call__mic { display: flex; flex-direction: column; align-items: center; padding-bottom: 40px; }
.mic { width: 72px; height: 72px; border-radius: 50%; background: var(--accent); color: white; border: none; font-size: 24px; cursor: pointer; transition: transform 0.1s; }
.mic--listening { background: var(--error); animation: pulse 1.2s infinite; }
.mic--disabled { opacity: 0.4; cursor: not-allowed; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.mic-hint { font-size: 13px; color: var(--muted); margin-top: 8px; }

.banner { padding: 8px 16px; text-align: center; font-size: 13px; }
.banner--preview { background: #fff8e0; border-bottom: 1px solid var(--warn); }

.drawer { position: fixed; top: 0; right: 0; height: 100%; width: 320px; background: white; box-shadow: -2px 0 8px rgba(0,0,0,0.1); padding: 16px; overflow: auto; }
.drawer__close { position: absolute; top: 8px; right: 8px; font-size: 24px; background: none; border: none; cursor: pointer; }
.drawer__row { margin: 16px 0; }
.drawer__btn { display: block; width: 100%; padding: 12px; margin-top: 12px; background: var(--accent); color: white; border: none; border-radius: 6px; cursor: pointer; }

.overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); color: white; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; gap: 16px; text-align: center; }
.overlay input { padding: 12px; font-size: 16px; border-radius: 6px; border: none; min-width: 200px; }
.overlay button { padding: 12px 24px; font-size: 16px; border-radius: 6px; border: none; background: white; color: var(--fg); cursor: pointer; }

/* Restore the [hidden] attribute for elements whose display is set by class rules above. */
[hidden] { display: none !important; }
