:root{
  --bg:#0b0f19;
  --fg:#e9eef7;
  --muted:#9fb0cc;
  --ink:#111827;
  --accent:#55d6be;
  --accent-2:#b07cff;
  --panel:#121826;
  --card:#0f1522;
  --stroke:#1f2937;
  --good:#7ef7c5;
  --warn:#ffd089;
  --bad:#ff9aa7;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; background:var(--bg); color:var(--fg);
  font:500 14px/1.45 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji";
}
h2{margin:0 0 .4rem 0; font-size:1.35rem}
h3{margin:.8rem 0 .4rem; font-size:1rem; color:var(--muted)}
a{color:var(--accent)}
.topbar{
  display:flex; align-items:center; justify-content:space-between;
  padding:.75rem 1rem; border-bottom:1px solid var(--stroke);
  position:sticky; top:0; background:linear-gradient(#0b0f1999,#0b0f1900);
  backdrop-filter: blur(6px);
}
.brand{display:flex; gap:.6rem; align-items:center}
.brand .dot{width:8px; height:8px; background:var(--accent); border-radius:50%}
.brand em{opacity:.6; font-style:normal}
.actions{display:flex; gap:.5rem}
.wrap{max-width:1100px; margin:0 auto; padding:1rem; display:grid; gap:1rem}
.panel{
  background:var(--panel); border:1px solid var(--stroke); border-radius:12px;
  padding:1rem; box-shadow:var(--shadow);
}
.panel .head{display:flex; align-items:baseline; justify-content:space-between}
.mini{color:var(--muted)}
.drop{display:grid; gap:.6rem}
textarea{
  width:100%; min-height:180px; resize:vertical;
  font:500 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  background:var(--card); color:var(--fg); border:1px dashed var(--stroke); border-radius:10px; padding:.8rem;
}
.drop-help{display:flex; gap:.6rem; align-items:center}
input[type="file"]{display:none}
label.btn, .btn{
  display:inline-flex; align-items:center; gap:.5rem;
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  color:#04121a; border:none; padding:.6rem .9rem; border-radius:10px; cursor:pointer; font-weight:700;
  box-shadow:0 10px 24px rgba(85,214,190,.25);
}
.ghost{
  background:transparent; border:1px solid var(--stroke); color:var(--fg);
  padding:.5rem .75rem; border-radius:10px; cursor:pointer;
}
.btn.big{font-size:1.05rem; padding:.8rem 1.2rem}
.grid-two{display:grid; grid-template-columns:1fr 1fr; gap:1rem}
.preview{
  background:var(--card); border:1px solid var(--stroke); border-radius:10px; min-height:160px;
  display:grid; place-items:center; padding:1rem;
}
.preview svg{max-width:100%; max-height:260px}
.kv{display:grid; grid-template-columns:1fr; gap:.5rem}
.kv label{display:grid; gap:.25rem; color:var(--fg)}
.kv input[type="text"], .kv input[type="number"], .kv input[type="color"]{
  background:var(--card); border:1px solid var(--stroke); border-radius:8px; padding:.45rem .6rem; color:var(--fg);
}
.kv .check{display:flex; gap:.6rem; align-items:center}
.go .cta{display:grid; grid-template-columns:auto 1fr auto; gap:1rem; align-items:center}
.meter{height:10px; background:#0c1320; border:1px solid var(--stroke); border-radius:100px; overflow:hidden}
.meter>div{height:100%; width:0; background:linear-gradient(90deg,var(--accent),var(--good)); transition:width .25s ease}
.status{opacity:.7}
.cards{display:grid; gap:.8rem; grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}
.card{
  background:var(--card); border:1px solid var(--stroke); border-radius:10px; padding:.75rem; display:grid; gap:.6rem;
}
.card .thumb{display:grid; place-items:center; min-height:120px}
.card .thumb img{max-width:80%; max-height:100px}
.card .meta{display:flex; align-items:center; justify-content:space-between; gap:.75rem}
.card code{opacity:.8}
.zipbar{margin-top:1rem; display:flex; gap:.6rem}
dialog{
  border:none; border-radius:12px; background:#0b1220; color:var(--fg); padding:1rem; width:min(800px,90vw)
}
dialog::backdrop{background:rgba(0,0,0,.5)}
.foot{opacity:.6; text-align:center; padding:2rem 0}
@media (max-width:900px){
  .grid-two{grid-template-columns:1fr}
}

