:root {
  --bg: #0f1216;
  --panel: #171c23;
  --panel-2: #1e242e;
  --border: #2a313d;
  --text: #e8ecf1;
  --muted: #9aa7b5;
  --accent: #3b82f6;
  --accent-dark: #2563eb;
  --success: #22c55e;
  --error: #f87171;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }
.site-header { border-bottom: 1px solid var(--border); background: var(--panel); }
.header-inner { display: flex; align-items: baseline; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.brand { font-size: 22px; font-weight: 800; color: var(--text); text-decoration: none; letter-spacing: -0.5px; }
.brand span { color: var(--accent); }
.tagline { color: var(--muted); font-size: 13px; }
.hero { text-align: center; padding: 36px 0 8px; }
.hero h1 { font-size: 32px; margin: 0 0 10px; letter-spacing: -0.5px; }
.hero .sub { color: var(--muted); margin: 0 auto; max-width: 560px; }
.tool { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 22px; margin-top: 24px; }
.dropzone {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 38px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  outline: none;
}
.dropzone:hover, .dropzone:focus, .dropzone.dragover { border-color: var(--accent); background: var(--panel-2); }
.dz-title { font-size: 18px; font-weight: 600; margin: 0 0 6px; }
.dz-sub { color: var(--muted); margin: 0; font-size: 14px; }
.dz-link { color: var(--accent); text-decoration: underline; }
.preview-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
@media (max-width: 640px) { .preview-row { grid-template-columns: 1fr; } }
.preview-box { margin: 0; }
.preview-box figcaption { font-size: 13px; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .06em; }
.img-frame {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  min-height: 220px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.img-frame img { max-width: 100%; max-height: 340px; display: block; }
.img-frame.checker {
  background-color: #454b57;
  background-image:
    linear-gradient(45deg, #31363f 25%, transparent 25%, transparent 75%, #31363f 75%),
    linear-gradient(45deg, #31363f 25%, transparent 25%, transparent 75%, #31363f 75%);
  background-size: 22px 22px;
  background-position: 0 0, 11px 11px;
}
.result-placeholder { color: var(--muted); font-size: 14px; padding: 0 12px; text-align: center; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.btn {
  appearance: none; border: 1px solid var(--border); border-radius: 9px;
  padding: 11px 20px; font-size: 15px; font-weight: 600; cursor: pointer;
  background: var(--panel-2); color: var(--text); text-decoration: none; display: inline-block;
}
.btn.primary { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--accent); }
.btn.primary:disabled { opacity: .45; cursor: not-allowed; }
.btn.success { background: var(--success); border-color: var(--success); color: #06270f; }
.btn.ghost { background: transparent; }
.status { margin: 14px 0 0; min-height: 22px; font-size: 14px; color: var(--muted); }
.status.error { color: var(--error); }
.ad-slot { display: none; }
.content { padding: 30px 0 6px; }
.content h2 { font-size: 22px; margin: 26px 0 10px; }
.content h3 { font-size: 16px; margin: 18px 0 4px; }
.content p, .content li { color: #c6cfda; }
.steps li, .features li { margin-bottom: 6px; }
.site-footer { border-top: 1px solid var(--border); margin-top: 34px; padding: 18px 0 26px; color: var(--muted); font-size: 13px; }
