:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #e8edf5;
  background: #0b1020;
  line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 15% 0%, #17213c 0, #0b1020 42%); }
a { color: inherit; text-decoration: none; }
.topbar { height: 68px; display:flex; align-items:center; justify-content:space-between; padding:0 32px; border-bottom:1px solid #202b43; background:#0b1020e8; position:sticky; top:0; backdrop-filter:blur(12px); z-index:5; }
.brand { font-weight:800; letter-spacing:.08em; }
nav { display:flex; gap:22px; color:#9aa8c2; font-size:14px; }
nav a:hover, nav .active { color:#fff; }
.container { width:min(1180px, calc(100% - 40px)); margin:0 auto; padding:58px 0; }
.hero { padding:50px 0 65px; max-width:850px; }
.eyebrow { color:#79a7ff; font-size:12px; font-weight:800; letter-spacing:.16em; }
h1 { font-size:clamp(38px, 6vw, 68px); line-height:1.02; margin:14px 0 18px; letter-spacing:-.04em; }
h2 { margin:10px 0 8px; }
h3 { margin-top:0; }
p { color:#98a7c1; }
.actions { display:flex; gap:12px; margin-top:26px; flex-wrap:wrap; }
.button { border:1px solid #2b3854; background:#111a2d; color:#e8edf5; padding:11px 17px; border-radius:9px; cursor:pointer; font-weight:700; display:inline-flex; align-items:center; justify-content:center; }
.button:hover { border-color:#5573aa; transform:translateY(-1px); }
.button.primary { background:#356df3; border-color:#356df3; }
.button:disabled { opacity:.6; cursor:wait; transform:none; }
.grid { display:grid; grid-template-columns:repeat(4, 1fr); gap:14px; }
.card, .panel { border:1px solid #202b43; background:#10182a; border-radius:14px; padding:22px; box-shadow:0 14px 40px #00000018; }
.card { min-height:190px; transition:.15s; }
.card:hover { border-color:#3c527a; transform:translateY(-2px); }
.card span { color:#7184a6; font-size:12px; font-weight:800; }
.page-head { margin-bottom:26px; }
.page-head h1 { font-size:48px; margin-bottom:8px; }
.form-row { display:grid; grid-template-columns:120px 1fr auto; gap:10px; }
input, select { width:100%; border:1px solid #2a3853; background:#0a1120; color:#e8edf5; border-radius:9px; padding:12px 13px; outline:none; }
input:focus, select:focus { border-color:#5279c5; }
.result { margin-top:18px; }
.stats { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-bottom:12px; }
.stats div { border:1px solid #202b43; background:#10182a; border-radius:12px; padding:15px; min-width:0; }
.stats small { display:block; color:#7184a6; margin-bottom:4px; }
.stats strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.two-col { display:grid; grid-template-columns:1fr 1.5fr; gap:12px; }
pre { margin:0; white-space:pre-wrap; overflow:auto; max-height:550px; color:#cbd5e6; font:13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }
.error { margin-top:12px; padding:12px; border-radius:8px; background:#321c25; border:1px solid #6a3445; color:#ffb6c5; }
.hidden { display:none !important; }
.controls { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
label { color:#98a7c1; font-size:13px; }
label input, label select { margin-top:6px; }
.url-preview { margin-top:18px; padding:15px; border-radius:9px; background:#090f1b; }
@media (max-width: 850px) {
  .grid { grid-template-columns:repeat(2,1fr); }
  .two-col { grid-template-columns:1fr; }
  .controls { grid-template-columns:repeat(2,1fr); }
  .form-row { grid-template-columns:1fr; }
}
@media (max-width: 560px) {
  .topbar { padding:0 16px; }
  nav { gap:10px; font-size:12px; }
  .container { width:min(100% - 24px, 1180px); padding:35px 0; }
  .grid, .stats, .controls { grid-template-columns:1fr; }
  .page-head h1 { font-size:38px; }
}