:root{
  --bg:#0b1020;
  --card:#0f172a;
  --line:rgba(148,163,184,.18);
  --text:#e5e7eb;
  --muted:#94a3b8;
  --accent:#60a5fa;
  --ok:#22c55e;
  --err:#ef4444;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --sans: system-ui, Segoe UI, Roboto, Arial;
}

*{ box-sizing:border-box }

body{
  margin:0;
  font-family:var(--sans);
  color:var(--text);
  background:
    radial-gradient(1200px 800px at 10% 10%, rgba(96,165,250,.18), transparent 60%),
    radial-gradient(900px 700px at 90% 20%, rgba(34,197,94,.10), transparent 55%),
    var(--bg);
}

.wrap{
  max-width:1200px;
  margin:auto;
  padding:18px;
}

header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:14px;
}

.brand{
  display:flex;
  gap:12px;
  align-items:center;
}

.logo{
  width:38px;
  height:38px;
  border-radius:14px;
  background:linear-gradient(135deg, #60a5fa, #22c55e);
}

h1{
  font-size:16px;
  margin:0;
}

.sub{
  font-size:12px;
  color:var(--muted);
}

.pill{
  border:1px solid var(--line);
  padding:8px 10px;
  border-radius:999px;
  font-size:12px;
  color:var(--muted);
}

.grid{
  display:grid;
  gap:14px;
}

@media (min-width:1100px){
  .grid{ grid-template-columns:1fr 1fr }
}

.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:18px;
  padding:14px;
}

.hd{
  display:flex;
  justify-content:space-between;
  margin-bottom:10px;
}

.title{
  font-weight:700;
  font-size:13px;
}

.hint{
  font-size:12px;
  color:var(--muted);
}

label{
  font-size:12px;
  color:var(--muted);
  margin-top:10px;
  display:block;
}

input, select, textarea{
  width:100%;
  padding:10px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#020617;
  color:var(--text);
}

textarea{
  min-height:110px;
  font-family:var(--mono);
}

.row{
  display:flex;
  gap:10px;
}

.btnrow{
  display:flex;
  gap:10px;
  margin-top:12px;
}

button{
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#020617;
  color:var(--text);
  cursor:pointer;
}

button.primary{
  background:var(--accent);
  color:#071126;
  font-weight:700;
}

pre{
  background:#020617;
  border-radius:14px;
  padding:12px;
  margin-top:10px;
  max-height:520px;
  overflow:auto;
}

.small{
  font-size:12px;
  color:var(--muted);
}

/* Response Tabs */
.tabs{
  display:flex;
  gap:8px;
  margin:12px 0 10px;
}

.tab{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#020617;
  color:var(--text);
  cursor:pointer;
  font-weight:800;
  font-size:12px;
}

.tab.active{
  background: rgba(96,165,250,.18);
  border-color: rgba(96,165,250,.45);
}

.tabpanel.hidden{ display:none; }

/* Summary Card */
.summary{
  border:1px solid var(--line);
  background: rgba(2,6,23,.25);
  border-radius:14px;
  padding:12px;
}

.summary-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:10px 6px;
  border-bottom:1px solid rgba(148,163,184,.12);
}

.summary-row:last-child{ border-bottom:none; }

.summary-k{
  color:var(--muted);
  font-size:12px;
  font-weight:800;
  min-width:110px;
}

.summary-v{
  font-size:12px;
  text-align:right;
  font-family: var(--mono);
  color: var(--text);
  overflow-wrap:anywhere;
}
