
:root{
  --bg:#0b1220;
  --card:#0f1a2f;
  --muted:#94a3b8;
  --text:#e2e8f0;
  --line:#223257;
  --accent:#38bdf8;
  --good:#22c55e;
  --bad:#ef4444;
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: radial-gradient(1000px 600px at 20% 0%, #111e3a, var(--bg));
  color:var(--text);
}
.wrap{max-width:1100px;margin:0 auto;padding:28px}
.header{display:flex;gap:16px;align-items:flex-start;justify-content:space-between;margin-bottom:18px}
h1{margin:0;font-size:22px}
.sub{margin:6px 0 0;color:var(--muted);max-width:820px;line-height:1.35}
.card{
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border:1px solid rgba(255,255,255,0.08);
  border-radius:18px;
  padding:18px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  margin-bottom:16px;
}
.pill{
  border:1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  padding:8px 10px;
  border-radius:999px;
  font-size:12px;
  color:var(--muted);
  white-space:nowrap;
}
.pill.good{border-color:rgba(34,197,94,0.35); color:#a7f3d0}
.pill.bad{border-color:rgba(239,68,68,0.35); color:#fecaca}

.tips{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:12px}
.tip{font-size:13px;color:var(--muted)}
.tip .k{color:#cbd5e1}
code{background:rgba(255,255,255,0.06);padding:2px 6px;border-radius:8px;border:1px solid rgba(255,255,255,0.08)}

.label{display:block;font-size:12px;color:#cbd5e1;margin:10px 0 6px}
.row{display:flex;gap:10px}
.input{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.12);
  background: rgba(5,10,20,0.35);
  color:var(--text);
  outline:none;
}
.input:focus{border-color:rgba(56,189,248,0.5); box-shadow:0 0 0 3px rgba(56,189,248,0.12)}
.btn{
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color:var(--text);
  cursor:pointer;
  font-weight:600;
}
.btn:hover{background: rgba(255,255,255,0.09)}
.btn:disabled{opacity:0.45;cursor:not-allowed}
.btn.primary{
  border-color: rgba(56,189,248,0.35);
  background: rgba(56,189,248,0.18);
}
.btn.primary:hover{background: rgba(56,189,248,0.24)}
.btn.ghost{background:transparent}

.spaces{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 2px}
.chip{
  border:1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  color:#dbeafe;
}
.chip .t{color:var(--muted);margin-right:6px}

.split{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:14px}
.right{display:flex;flex-direction:column}
.result{
  border:1px solid rgba(255,255,255,0.12);
  background: rgba(5,10,20,0.25);
  border-radius:14px;
  padding:12px;
  min-height:136px;
}
.muted{color:var(--muted)}
.hint{font-size:12px;color:var(--muted);margin-top:6px;line-height:1.35}
.actions{display:flex;gap:10px;margin-top:10px;justify-content:flex-end}
.small{font-size:12px;color:var(--muted)}
a{color:#93c5fd}
.footer{display:flex;justify-content:space-between;color:var(--muted);font-size:12px;padding:6px 2px}
@media (max-width: 900px){
  .split{grid-template-columns:1fr}
}
