:root {
  --bg: #0f1115;
  --panel: #161922;
  --line: #232735;
  --fg: #e6e9ef;
  --muted: #8a91a3;
  --accent: #4f8cff;
  --err: #ff6b6b;
  --ok: #43c59e;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg); font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
header { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; border-bottom: 1px solid var(--line); }
header h1 { margin: 0; font-size: 18px; font-weight: 600; }
header .bar { display: flex; align-items: center; gap: 12px; }
main { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 16px 24px; }
@media (max-width: 900px) { main { grid-template-columns: 1fr; } }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.panel h2 { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
label { display: block; margin: 8px 0 4px; color: var(--muted); font-size: 12px; }
label.check { display: flex; align-items: center; gap: 6px; margin-top: 26px; color: var(--fg); }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], select, textarea {
  width: 100%; background: #0c0e14; color: var(--fg); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; font: inherit;
}
textarea { font-family: ui-monospace, "JetBrains Mono", Menlo, monospace; }
.row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 600px) { .row { grid-template-columns: 1fr 1fr; } }
.actions { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
button { background: var(--accent); color: white; border: 0; border-radius: 6px; padding: 8px 14px; font: inherit; cursor: pointer; }
button:disabled { opacity: 0.5; cursor: not-allowed; }
button.link { background: transparent; color: var(--muted); padding: 0; }
button.link:hover { color: var(--fg); }
.muted { color: var(--muted); }
.err { color: var(--err); }
.ok { color: var(--ok); }
.result { max-height: 65vh; overflow: auto; background: #0c0e14; border: 1px solid var(--line); border-radius: 6px; padding: 10px; white-space: pre-wrap; word-break: break-word; font-family: ui-monospace, "JetBrains Mono", Menlo, monospace; font-size: 12px; }
.auth { display: flex; align-items: center; justify-content: center; padding: 40px 16px; }
.auth .card { width: 100%; max-width: 380px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.auth h1 { margin: 0 0 4px; font-size: 18px; }
.auth button { width: 100%; margin-top: 12px; }
#contacts h3 { margin: 16px 0 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
#contacts .kv { list-style: none; padding: 0; margin: 0; max-height: 220px; overflow: auto; border: 1px solid var(--line); border-radius: 6px; }
#contacts .kv li { padding: 6px 10px; border-bottom: 1px solid var(--line); font-family: ui-monospace, "JetBrains Mono", Menlo, monospace; font-size: 12px; }
#contacts .kv li:last-child { border-bottom: 0; }
#contacts a { color: var(--accent); text-decoration: none; }
#contacts a:hover { text-decoration: underline; }
.contact-summary { padding: 8px 0 4px; font-size: 13px; }
table.phones { width: 100%; border-collapse: collapse; font-size: 12px; font-family: ui-monospace, "JetBrains Mono", Menlo, monospace; }
table.phones th { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); color: var(--muted); font-weight: 600; }
table.phones td { padding: 6px 8px; border-bottom: 1px solid var(--line); }
table.phones tbody tr:hover { background: rgba(79,140,255,0.05); }
