:root {
  --bg: #090b10; --panel: #11141b; --panel2: #171b24; --line: #222836; --line2: #2f3747;
  --text: #eef1f7; --muted: #9aa3b5; --faint: #687286;
  --accent: #3d8bff; --accent2: #22d3ee; --accent-soft: rgba(61, 139, 255, .12);
  --ok: #34d399; --warn: #fbbf24; --bad: #f87171;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, sans-serif;
  --display: ui-sans-serif, -apple-system, "SF Pro Display", "Segoe UI", Inter, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.15; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line2); background: var(--panel2); color: var(--text); font: 600 14px var(--sans); cursor: pointer; transition: background .15s, border-color .15s, transform .05s; white-space: nowrap; }
.btn:hover { border-color: #3c465a; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(180deg, #4b95ff, #2f74ea); border-color: #3f86f5; color: #fff; box-shadow: 0 6px 20px rgba(61, 139, 255, .25); }
.btn.primary:hover { background: linear-gradient(180deg, #5aa0ff, #3a7ff2); }
.btn.danger { color: var(--bad); }
.btn.small { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--panel2); }
.btn[disabled] { opacity: .5; cursor: default; }
input, select { width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line2); background: #0d1016; color: var(--text); font: 15px var(--sans); outline: none; }
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 14px 0 6px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.err { color: var(--bad); font-size: 14px; min-height: 20px; margin-top: 10px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 19px var(--display); color: var(--text); letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.logo img { width: 30px; height: 30px; }
.logo b { color: var(--accent); font-weight: 700; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--panel2); color: var(--muted); border: 1px solid var(--line); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.dot.on { background: var(--ok); box-shadow: 0 0 0 3px rgba(52, 211, 153, .18); }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--panel2); border: 1px solid var(--line2); padding: 10px 18px; border-radius: 10px; font-size: 14px; z-index: 100; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
dialog { background: var(--panel); color: var(--text); border: 1px solid var(--line2); border-radius: 16px; padding: 24px; max-width: 460px; width: calc(100% - 32px); }
dialog::backdrop { background: rgba(0, 0, 0, .6); backdrop-filter: blur(3px); }
dialog h2 { margin: 0 0 6px; font-size: 22px; }
.row { display: flex; gap: 10px; align-items: center; }
.row.end { justify-content: flex-end; margin-top: 18px; }
