:root{
  --bg:#0b0e12;
  --panel:#121722;
  --ink:#e7e8ec;
  --muted:#9aa3b2;
  /* accent pulled from your logo */
  --accent:#c05bf0;
  --accent-ghost:#c05bf022;
  --border:#1b2230;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; background:var(--bg); color:var(--ink);
  font:15px/1.5 system-ui,Segoe UI,Inter,Arial,sans-serif;
  display:flex; flex-direction:column; align-items:center; gap:16px; padding:28px 16px;
}

.site-header{display:flex; align-items:center; gap:14px; width:min(980px,100%)}
.logo{width:56px; height:56px; object-fit:contain; filter: drop-shadow(0 2px 12px var(--accent-ghost));}
.brand h1{margin:0; font-size:22px; letter-spacing:.3px}
.tag{margin:2px 0 0; color:var(--muted); font-size:13px}

.card{
  width:min(980px,100%); background:var(--panel);
  border:1px solid var(--border); border-radius:16px; padding:18px;
  box-shadow:0 10px 30px rgba(0,0,0,.35);
}

.meta{display:flex; justify-content:space-between; align-items:center; margin-bottom:10px}
.meta a{color:var(--accent); text-decoration:none}
.status span{padding:4px 8px; border-radius:999px; font-size:12px; margin-left:6px}
.ok{background: #1d2b1f; color:#9dffa6; border:1px solid #254a2a}
.warn{background:#2a2233; color:#e1c7ff; border:1px solid #3b2f4c}
.bad{background:#3a1f23; color:#ff9aa8; border:1px solid #4a262b}

.label{display:block; margin:8px 0 6px; color:var(--muted)}
textarea{
  width:100%; min-height:220px; resize:vertical;
  background:#0f141c; color:var(--ink); border:1px solid var(--border);
  border-radius:12px; padding:12px; outline:none;
}
textarea:focus{border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-ghost)}

.controls{display:flex; flex-wrap:wrap; gap:12px; align-items:center; margin-top:12px}
.check{display:flex; align-items:center; gap:6px; color:#d3d7de}
.btn{
  margin-left:auto; padding:10px 16px; border-radius:10px;
  background:var(--accent); color:#10131a; border:none; font-weight:700; cursor:pointer;
  box-shadow:0 6px 18px var(--accent-ghost);
}
.btn:disabled{opacity:.6; cursor:not-allowed}

.stack{margin-top:14px}
.log{
  white-space:pre-wrap; min-height:120px; padding:10px;
  background:#0f141c; border:1px solid var(--border); border-radius:12px;
  font-family:ui-monospace,Consolas,monospace; color:#dbe0e9;
}
audio{width:100%; margin-top:10px}
.pubnote{opacity:.85; margin-top:6px}

.foot{opacity:.65; font-size:12px}

.loglist{list-style:none; margin:0; padding:0}
.logline{display:flex; gap:10px; align-items:flex-start; padding:6px 8px; border-bottom:1px solid var(--border)}
.logline:last-child{border-bottom:0}
.log-emoji{width:22px; text-align:center; opacity:.95}
.log-text{flex:1; opacity:.95}
.logline.err{background:#3a1f23; border-color:#4a262b}
.logline.warn{background:#2a2233; border-color:#3b2f4c}
.loglist{list-style:none;margin:0;padding:0}
.logline{display:flex;gap:10px;align-items:flex-start;padding:6px 8px;border-bottom:1px solid var(--border)}
.logline:last-child{border-bottom:0}
.log-emoji{width:22px;text-align:center;opacity:.95}
.log-text{flex:1;opacity:.95}
.logline.err{background:#3a1f23;border-color:#4a262b}