:root{
  --bg:#0b0f14;
  --panel:#121a23;
  --panel2:#0f1620;
  --text:#e9f0f7;
  --muted:#9fb0c3;
  --line:rgba(255,255,255,.10);
  --accent:#5cf2c2;
  --warn:#ffb86b;
  --bad:#ff6b6b;
  --shadow: 0 18px 60px rgba(0,0,0,.40);
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(92,242,194,.18), transparent 60%),
    radial-gradient(900px 600px at 85% 15%, rgba(122,164,255,.16), transparent 55%),
    linear-gradient(180deg, var(--bg), #070a0e);
  color:var(--text);
}

.page{max-width:1200px; margin:0 auto; padding:28px 18px 32px}
.header{margin-bottom:18px}
.headerBrand{
  display:grid;
  grid-template-columns: 76px 1fr;
  column-gap:14px;
  row-gap:8px;
  align-items:center;
}
.brandLogo{
  width:76px;
  height:76px;
  object-fit:contain;
  border-radius:14px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.brandText{min-width:0}
.headerBrand .subtitle{
  grid-column: 1 / -1;
}
.kicker{
  font-family:var(--mono);
  letter-spacing:.10em;
  text-transform:uppercase;
  font-size:12px;
  color:var(--muted);
}
.title{margin:8px 0 6px; font-size:36px; line-height:1.1}
.subtitle{margin:0; color:var(--muted); max-width:68ch}

.grid{
  display:grid;
  grid-template-columns: 1fr 1.2fr;
  gap:14px;
}
@media (max-width: 980px){
  .grid{grid-template-columns:1fr}
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow: var(--shadow);
  padding:14px 14px 12px;
}
.card h2{
  margin:2px 0 12px;
  font-size:16px;
  letter-spacing:.02em;
}

.inputs{
  display:grid;
  grid-template-columns: 1fr;
  gap:10px;
}
.field{
  display:grid;
  grid-template-columns: 1fr 180px;
  gap:10px;
  align-items:center;
  padding:10px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:12px;
  background: rgba(12,18,26,.55);
}
@media (max-width: 520px){
  .field{grid-template-columns:1fr}
}
.fieldLabel{
  min-width:0;
}
.fieldLabel .name{
  font-size:13px;
  color:var(--text);
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.fieldLabel .meta{
  margin-top:4px;
  font-family:var(--mono);
  font-size:11px;
  color:var(--muted);
}
.field input{
  width:100%;
  padding:10px 10px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(4,8,12,.55);
  color:var(--text);
  outline:none;
}
.field select.inputLike{
  width:100%;
  padding:10px 10px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(4,8,12,.55);
  color:var(--text);
  outline:none;
}
.field input:focus{
  border-color: rgba(92,242,194,.50);
  box-shadow: 0 0 0 3px rgba(92,242,194,.10);
}
.field select.inputLike:focus{
  border-color: rgba(92,242,194,.50);
  box-shadow: 0 0 0 3px rgba(92,242,194,.10);
}

.toolbar{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  margin:-4px 0 10px;
}
.toggle{
  display:flex; gap:8px; align-items:center;
  color:var(--muted);
  font-size:12px;
}
.outputs{display:flex; flex-direction:column; gap:10px}
.summary{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}
@media (max-width: 520px){
  .summary{grid-template-columns:1fr}
}
.metric{
  padding:10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.09);
  background: rgba(12,18,26,.55);
}
.metric .k{
  font-family:var(--mono);
  font-size:11px;
  color:var(--muted);
}
.metric .v{
  margin-top:6px;
  font-size:18px;
  letter-spacing:.01em;
}
.metric .err{color:var(--bad)}

.tableWrap{
  overflow:auto;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.09);
}
table{
  width:100%;
  border-collapse:collapse;
  font-size:12px;
}
th,td{padding:8px 10px; border-bottom:1px solid rgba(255,255,255,.07); text-align:left}
th{position:sticky; top:0; background: rgba(15,22,32,.92); color:var(--muted); font-family:var(--mono); font-weight:600}
td.code{font-family:var(--mono); color:rgba(233,240,247,.85)}
td.num{font-variant-numeric: tabular-nums; font-family:var(--mono)}

/* (Keep original dark table styling) */

.footer{
  margin-top:14px;
  color:var(--muted);
  font-size:12px;
  font-family:var(--mono);
}

.btn{
  appearance:none;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(4,8,12,.55);
  color: var(--text);
  padding:8px 10px;
  border-radius:10px;
  font-size:12px;
  cursor:pointer;
}
.btn:hover{ border-color: rgba(92,242,194,.35); }

