:root {
  --bg: #0e0f13;
  --card: #171923;
  --muted: #9aa0a6;
  --fg: #e8eaed;
  --accent: #2563eb;
  --ok: #10b981;
  --border: #2a2f40;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
}
.wrap { max-width: 900px; margin: 32px auto; padding: 24px; }
.card { background: var(--card); border-radius: 16px; padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25); margin-bottom: 16px; }
.site-header, .site-footer { background: #0c0d12; border-bottom: 1px solid var(--border); }
.site-footer { border-top: 1px solid var(--border); border-bottom: none; }
.header-inner, .footer-inner { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 0; }
.site-title { margin:0; font-size: 22px; }
.site-nav a { color:#cbd5e1; margin-left: 12px; text-decoration:none; }
.site-nav a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 14px; color: var(--muted); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.mt { margin-top: 16px; }
label.button { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: #fff; padding: 10px 14px;
  border-radius: 12px; cursor: pointer; user-select: none; }
label.button input[type=file] { display: none; }
button { background: var(--ok); color: #0b1323; border: 0; border-radius: 12px;
  padding: 10px 14px; cursor: pointer; font-weight: 600; }
button:disabled { opacity: .5; cursor: not-allowed; }
progress { width: 100%; height: 14px; }
.hint { font-size: 14px; color: #b9c0cb; }
.log { white-space: pre-wrap; background: #0f121a; border: 1px solid var(--border);
  border-radius: 12px; padding: 12px; max-height: 220px; overflow: auto; }
.chip { display: inline-block; background: #0f1320; border: 1px solid #2b3348; color: #c6d0e1; padding: 4px 8px; border-radius: 999px; font-size: 12px; }
.drop { border: 2px dashed #2b3348; border-radius: 12px; min-height: 90px; display: grid; place-items: center; color: #cbd5e1;
  background: #0f121a; outline: none; }
.drop.drag { border-color: var(--accent); background: #101526; }
.ad-slot { display:block; min-height: 90px; }
.ad-sticky { position: sticky; bottom: 0; z-index: 20; padding: 8px; background: #0f121a; border-top: 1px solid var(--border); }
