*{box-sizing:border-box}
:root{
  --bg:#0b1220;
  --card:#0f1a2e;
  --muted:#a7b3c7;
  --text:#e7eefc;
  --border:#1f2d49;
  --btn:#2ecc71;
  --btn2:#3b82f6;
  --danger:#ef4444;
}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 20% 0%, #13284f 0%, var(--bg) 55%);
  color: var(--text);
}
.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:18px 22px;
  border-bottom:1px solid var(--border);
  background: rgba(15,26,46,0.6);
  backdrop-filter: blur(8px);
  position: sticky;
  top:0;
  z-index:5;
}
.title{font-size:20px; font-weight:800}
.subtitle{font-size:12px; color:var(--muted); margin-top:4px}
.right{display:flex; align-items:end; gap:8px; flex-wrap:wrap}
.small{font-size:12px; color:var(--muted)}
.grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:16px;
  padding:18px 22px 28px;
}
.card{
  background: rgba(15,26,46,0.75);
  border:1px solid var(--border);
  border-radius:14px;
  padding:16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}
.card.wide{grid-column: 1 / -1;}
h2{margin:0 0 12px 0; font-size:16px}
h3{margin:14px 0 8px 0; font-size:13px; color:#d6e2ff}
.row{display:flex; gap:8px; flex-wrap:wrap; margin:8px 0}
.input{
  flex:1;
  min-width: 160px;
  padding:10px 10px;
  border-radius:10px;
  border:1px solid var(--border);
  background:#0b1426;
  color:var(--text);
  outline:none;
}
.btn{
  padding:10px 12px;
  border:none;
  border-radius:10px;
  background: var(--btn);
  color:#072012;
  font-weight:700;
  cursor:pointer;
}
.btn.secondary{ background: var(--btn2); color:#071425;}
.btn.danger{ background: var(--danger); color:#23040a;}
.btn:hover{ filter: brightness(1.05); }
pre{
  margin:0;
  padding:14px;
  border-radius:12px;
  background:#061022;
  border:1px solid var(--border);
  min-height: 260px;
  overflow:auto;
  color:#a7f3d0;
}
.hint{color:var(--muted); font-size:12px; margin-top:8px}
.footer{padding: 0 22px 18px}
@media (max-width: 980px){
  .grid{grid-template-columns: 1fr;}
  .right{align-items:center}
}
