/* Minimal, clean, dark */
:root{
  --bg:#070b12;
  --panel:#0c1322;
  --text:#e8eefc;
  --muted:#91a4c7;
  --line:rgba(255,255,255,0.08);
  --accent:#f2d36b;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 700px at 20% 10%, rgba(75,120,255,0.15), transparent 55%),
              radial-gradient(900px 600px at 70% 20%, rgba(242,211,107,0.10), transparent 50%),
              var(--bg);
  color:var(--text);
}

.topbar{
  padding:18px 22px;
  border-bottom:1px solid var(--line);
  background:linear-gradient(180deg, rgba(255,255,255,0.04), transparent);
}

.brand{display:flex; gap:12px; align-items:center}
.mark{
  width:22px;height:22px;border-radius:8px;
  background: linear-gradient(135deg, rgba(242,211,107,0.9), rgba(255,255,255,0.15));
  box-shadow: 0 0 0 1px rgba(242,211,107,0.25), 0 10px 30px rgba(242,211,107,0.08);
}
.title{font-weight:700; letter-spacing:0.2px}
.subtitle{font-size:13px; color:var(--muted); margin-top:2px}

.grid{
  padding:26px 22px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:18px;
  max-width: 1180px;
  margin: 0 auto;
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border:1px solid var(--line);
  border-radius:18px;
  padding:18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
  min-height: 420px;
}

h2{margin:0 0 8px 0; font-size:16px}
.muted{color:var(--muted); margin:0 0 12px 0; font-size:13px}

.label{display:block; font-size:12px; color:var(--muted); margin:12px 0 6px}
textarea{
  width:100%;
  min-height: 160px;
  border-radius:14px;
  padding:12px 12px;
  border:1px solid var(--line);
  background: rgba(0,0,0,0.28);
  color:var(--text);
  outline:none;
  resize: vertical;
}
textarea:focus{border-color: rgba(242,211,107,0.35); box-shadow: 0 0 0 3px rgba(242,211,107,0.10)}

.row{display:flex; gap:10px; align-items:center; margin-top:12px; flex-wrap:wrap}
.btn{
  border:1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color:var(--text);
  padding:10px 14px;
  border-radius:12px;
  cursor:pointer;
  font-weight:600;
}
.btn:hover{border-color: rgba(255,255,255,0.18)}
.btn.primary{
  background: linear-gradient(135deg, rgba(242,211,107,0.95), rgba(202,165,58,0.85));
  color:#0b0f17;
  border-color: rgba(242,211,107,0.35);
}
.pill{
  font-size:12px;
  color: var(--muted);
  padding:7px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(0,0,0,0.22);
}

.metrics{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
  margin-top:14px;
}
.metric{
  border:1px solid var(--line);
  border-radius:14px;
  padding:10px 12px;
  background: rgba(0,0,0,0.18);
}
.metric .k{font-size:11px; color:var(--muted)}
.metric .v{font-size:14px; font-weight:700; margin-top:4px}

.output{
  height: 320px;
  overflow:auto;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(0,0,0,0.30);
  padding:12px;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 12px 0 0 0;
}

.notes{margin-top:14px; color:var(--muted); font-size:13px}
.notes summary{cursor:pointer; user-select:none}
.notes code{color: var(--accent);}

.footer{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px 26px 22px;
  color: rgba(145,164,199,0.75);
  font-size:12px;
}

@media (max-width: 980px){
  .grid{grid-template-columns: 1fr}
  .card{min-height: auto}
  .output{height: 260px}
}
