:root {
  --bg: #f6f7f9;
  --panel: #ffffff;
  --text: #1c2430;
  --muted: #5d6b7c;
  --line: #d9dee5;
  --accent: #1f6feb;
  --bad: #b42318;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; }
.top { display: flex; align-items: center; gap: 1rem; padding: 0.6rem 1rem; background: var(--panel); border-bottom: 1px solid var(--line); }
.brand { font-size: 1.05rem; }
.who { color: var(--muted); margin-left: auto; }
.layout { display: flex; gap: 1rem; padding: 1rem; align-items: flex-start; }
/* Element `display` rules would otherwise override the hidden attribute. */
[hidden] { display: none !important; }
nav { display: flex; flex-direction: column; gap: 0.25rem; min-width: 10rem; }
nav a { color: var(--text); text-decoration: none; padding: 0.35rem 0.6rem; border-radius: 6px; }
nav a:hover { background: var(--line); }
main { flex: 1; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.25rem; }
h1 { font-size: 1.3rem; margin: 0 0 1rem; }
.form { display: grid; gap: 0.75rem; max-width: 24rem; }
.card-element { min-height: 44px; }
label { display: grid; gap: 0.25rem; font-size: 0.9rem; color: var(--muted); }
input, select, button, textarea { font: inherit; padding: 0.45rem 0.6rem; border: 1px solid var(--line); border-radius: 6px; }
fieldset { border: 1px solid var(--line); border-radius: 6px; display: flex; flex-direction: column; gap: 0.4rem; }
label.check { display: flex; align-items: center; gap: 0.5rem; }
.dest { display: flex; flex-wrap: wrap; gap: 0.4rem; }
button { background: var(--accent); color: #fff; border-color: var(--accent); cursor: pointer; }
button:disabled { opacity: 0.45; cursor: not-allowed; }
.banner { background: #fde8e7; color: var(--bad); border: 1px solid #f5c2bf; border-radius: 6px; padding: 0.5rem 0.75rem; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
@media (max-width: 720px) { .layout { flex-direction: column; } nav { flex-direction: row; flex-wrap: wrap; } }

.softphone { min-width: 15rem; max-width: 18rem; padding: 0.75rem; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; display: grid; gap: 0.5rem; position: sticky; top: 1rem; }
.softphone h2 { margin: 0; font-size: 1rem; }
.sp-status { margin: 0; color: var(--muted); font-size: 0.9rem; }
.sp-row { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.sp-keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.35rem; }
.sp-incoming { margin: 0; font-weight: 600; }

table { border-collapse: collapse; width: 100%; background: var(--panel); }
th, td { text-align: left; padding: 0.35rem 0.5rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.muted { color: var(--muted); }
.form.inline { max-width: none; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); align-items: end; }
main { flex: 1; min-width: 0; }
