/* AIMERICA browser phone - sample dialer (F1, 1 Oct 2026). Plain CSS, no build. */
:root {
  --bg: #0b1220;
  --panel: #111a2e;
  --line: rgba(255, 255, 255, 0.10);
  --text: #e7ecf5;
  --muted: #9aa7bd;
  --primary: #2f7df6;
  --good: #22c55e;
  --bad: #ef4444;
  --warn: #f59e0b;
  --radius: 12px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.bp { max-width: 440px; margin: 0 auto; padding: 20px 16px 40px; }
.bp-head { margin-bottom: 14px; }
.bp-brand { margin: 0; font-size: 12px; letter-spacing: 0.18em; color: var(--primary); font-weight: 700; }
h1 { margin: 2px 0 6px; font-size: 24px; font-weight: 650; letter-spacing: -0.01em; }
h2 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
.bp-sub { margin: 0; color: var(--muted); font-size: 14px; }
.bp-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-top: 12px; }
.bp-field { display: block; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.bp-field input, .bp-field textarea { display: block; width: 100%; margin-top: 4px; padding: 9px 10px; border-radius: 8px;
  border: 1px solid var(--line); background: rgba(0, 0, 0, 0.35); color: var(--text); font-size: 15px; font-family: inherit; }
.bp-field input:focus, .bp-field textarea:focus { outline: none; border-color: rgba(47, 125, 246, 0.6); box-shadow: 0 0 0 3px rgba(47, 125, 246, 0.18); }
.bp-field input:disabled, .bp-field textarea:disabled { opacity: 0.6; }
.bp-field textarea { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; resize: vertical; }
#bp-ws, #bp-line, #bp-realm, #bp-number { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.bp-row { display: flex; gap: 10px; }
.bp-row > .bp-field { flex: 1; min-width: 0; }
.bp-row-call { align-items: flex-end; }
.bp-row-call .bp-btn { margin-bottom: 10px; }
.bp-grow { flex: 1; }
.bp-details { margin: 0 0 10px; font-size: 12px; color: var(--muted); }
.bp-details summary { cursor: pointer; padding: 4px 0; }
.bp-details .bp-field { margin-top: 6px; }
.bp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.bp-btn { appearance: none; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.07); color: var(--text);
  padding: 9px 14px; border-radius: 9px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; }
.bp-btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.12); }
.bp-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.bp-btn:focus-visible { outline: 2px solid rgba(47, 125, 246, 0.7); outline-offset: 2px; }
.bp-primary { background: var(--primary); border-color: transparent; color: #fff; }
.bp-primary:hover:not(:disabled) { background: #3f8bff; }
.bp-good { background: rgba(34, 197, 94, 0.18); border-color: rgba(34, 197, 94, 0.4); color: #86efac; }
.bp-bad { background: rgba(239, 68, 68, 0.16); border-color: rgba(239, 68, 68, 0.4); color: #fca5a5; }
.bp-btn[data-bp-hold="on"], .bp-btn[data-bp-mute="on"] { background: rgba(245, 158, 11, 0.2); border-color: rgba(245, 158, 11, 0.5); color: #fcd34d; }
.bp-status, .bp-callstate { margin: 10px 0 0; font-size: 14px; font-weight: 600; padding-left: 16px; position: relative; }
.bp-status::before, .bp-callstate::before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.bp-status.is-registered::before, .bp-callstate.is-connected::before { background: var(--good); }
.bp-status.is-registering::before, .bp-callstate.is-calling::before, .bp-callstate.is-ringing::before, .bp-callstate.is-incoming::before { background: var(--warn); animation: bp-pulse 1s infinite; }
.bp-status.is-failed::before, .bp-callstate.is-ended::before { background: var(--bad); }
@keyframes bp-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.bp-remote { margin: 2px 0 8px 16px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 18px; min-height: 1.2em; }
.bp-keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.bp-key { appearance: none; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05); color: var(--text); border-radius: 10px;
  padding: 10px 0 8px; font-size: 20px; font-weight: 600; cursor: pointer; display: flex; flex-direction: column; align-items: center; line-height: 1.1; font-family: inherit; }
.bp-key small { font-size: 9px; letter-spacing: 0.12em; color: var(--muted); font-weight: 600; min-height: 10px; }
.bp-key:hover { background: rgba(255, 255, 255, 0.1); }
.bp-key:active { background: rgba(47, 125, 246, 0.35); }
.bp-error { margin: 10px 0 0; min-height: 1.2em; color: #fca5a5; font-size: 13px; }
.bp-error:empty { margin: 0; min-height: 0; }
.bp-log { list-style: none; margin: 0; padding: 0; max-height: 180px; overflow: auto; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; color: var(--muted); }
.bp-log li { padding: 2px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); white-space: pre-wrap; word-break: break-word; }
.bp-log li.is-error { color: #fca5a5; }
.bp-foot { margin-top: 16px; font-size: 12px; color: var(--muted); text-align: center; }
.bp-foot a { color: var(--primary); text-decoration: none; }
.bp-foot a:hover { text-decoration: underline; }
audio { display: none; }
@media (max-width: 380px) { .bp-row { flex-direction: column; gap: 0; } .bp-row-call .bp-btn { margin-bottom: 10px; } }
