:root{
  --bg:#0b1220;
  --card:#101a2f;
  --muted:#9fb0d1;
  --text:#eaf0ff;
  --danger:#ff4d4d;
  --border:rgba(255,255,255,.08);
  --shadow:0 10px 30px rgba(0,0,0,.35);
  --radius:16px;
  --radius2:12px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; font-family:var(--font);
  background: radial-gradient(1200px 600px at 20% -20%, rgba(110,168,254,.25), transparent 50%),
              radial-gradient(900px 500px at 90% 0%, rgba(120,255,214,.12), transparent 55%),
              var(--bg);
  color:var(--text);
}
.topbar{
  position:sticky; top:0; z-index:50;
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 18px;
  backdrop-filter: blur(10px);
  background: rgba(11,18,32,.65);
  border-bottom: 1px solid var(--border);
}
.brand{display:flex; align-items:center; gap:12px}
.logo{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:rgba(110,168,254,.14);border:1px solid var(--border)}
.title{font-weight:800; letter-spacing:.2px}
.subtitle{font-size:12px;color:var(--muted)}
.status{
  font-size:12px; padding:8px 12px; border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
}
.status.ok{border-color: rgba(110,168,254,.45); background: rgba(110,168,254,.12)}
.status.bad{border-color: rgba(255,77,77,.5); background: rgba(255,77,77,.10)}
.wrap{max-width:1050px;margin:22px auto;padding:0 16px; display:flex; flex-direction:column; gap:16px}
.card{
  background: rgba(16,26,47,.75);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:16px;
}
.card h2{margin:0 0 10px 0}
.panel{
  border:1px solid var(--border);
  border-radius: var(--radius2);
  padding:12px;
  background: rgba(255,255,255,.03);
}
.grid2{display:grid; grid-template-columns: 1fr 1fr; gap:12px}
@media (max-width:900px){ .grid2{grid-template-columns:1fr} }
.row{display:flex; gap:10px; align-items:end}
.wrapRow{flex-wrap:wrap}
.field{display:flex; flex-direction:column; gap:6px; flex:1}
.field span{font-size:12px;color:var(--muted)}
input, select, textarea{
  width:100%;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding:10px 12px;
  color: var(--text);
  outline:none;
}
textarea{min-height:160px; resize:vertical; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;}
#notes{min-height:90px}
.btn{
  border:1px solid rgba(110,168,254,.5);
  background: rgba(110,168,254,.18);
  color: var(--text);
  padding:10px 12px;
  border-radius: 12px;
  cursor:pointer;
  font-weight:700;
}
.btn:hover{filter:brightness(1.08)}
.btn:disabled{opacity:.55; cursor:not-allowed}
.btn.secondary{
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
}
.btn.danger{border-color: rgba(255,77,77,.6); background: rgba(255,77,77,.18)}
.btn.ghost{border-color: rgba(255,255,255,.10); background: transparent}
.muted{font-size:12px;color:var(--muted); margin-top:8px}
.mt{margin-top:10px}
.meter{
  height:12px; border-radius:999px;
  border:1px solid var(--border);
  overflow:hidden;
  background: rgba(255,255,255,.03);
  margin-top:12px;
}
.meterBar{
  height:100%;
  width:0%;
  background: linear-gradient(90deg, rgba(110,168,254,.35), rgba(120,255,214,.35));
}
.footer{
  max-width:1050px;margin:10px auto 30px;padding:0 16px;
  color: var(--muted); font-size:12px;
}
.histItem{
  border:1px solid var(--border);
  border-radius: 12px;
  padding:12px;
  background: rgba(255,255,255,.03);
  margin-top:10px;
}
.histItem .meta{display:flex; justify-content:space-between; gap:10px; color:var(--muted); font-size:12px}
.histItem pre{white-space:pre-wrap; margin:10px 0 0 0; font-family:inherit}
