:root {
  color-scheme: dark;
  --bg: #07090f;
  --panel: #10141d;
  --panel2: #0c1018;
  --line: #242a37;
  --text: #eef2f8;
  --muted: #949db0;
  --accent: #9b7cff;
  --accent2: #65e7ff;
  --danger: #ff6f91;
  --good: #7ce0a3;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font: 15px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(155,124,255,.12), transparent 28rem),
    radial-gradient(circle at 85% 10%, rgba(101,231,255,.08), transparent 24rem),
    var(--bg);
  color: var(--text);
}
.shell { width: min(1040px, calc(100% - 32px)); margin: 0 auto; padding: 64px 0 36px; }
.hero { max-width: 760px; margin-bottom: 28px; }
.eyebrow { color: var(--accent2); font-size: 12px; font-weight: 800; letter-spacing: .14em; }
h1 { margin: 8px 0 10px; font-size: clamp(38px, 7vw, 68px); line-height: .98; letter-spacing: -.045em; }
h2,h3 { margin: 0; }
.hero p { color: var(--muted); max-width: 720px; font-size: 17px; }
.panel {
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.01)), var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  margin: 16px 0;
  box-shadow: 0 18px 60px rgba(0,0,0,.22);
}
.panel.compact { padding: 20px; }
label { display: block; font-weight: 700; margin-bottom: 9px; }
.urlrow { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
input[type=url] {
  width: 100%; padding: 14px 15px; border-radius: 12px; border: 1px solid var(--line);
  background: #090d14; color: var(--text); outline: none; font-size: 15px;
}
input[type=url]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(155,124,255,.12); }
button, .downloadlink {
  border: 0; border-radius: 12px; padding: 12px 15px; font-weight: 800; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), #7656e9); color: white; text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
}
button:disabled { opacity: .5; cursor: not-allowed; }
button.secondary { background: #171c27; border: 1px solid var(--line); color: var(--text); }
.check { margin: 13px 0 0; font-weight: 500; color: var(--muted); }
.check input { transform: translateY(1px); margin-right: 7px; }
.hint { color: var(--muted); margin: 8px 0 0; font-size: 13px; }
.status { margin-top: 15px; border-radius: 12px; padding: 12px 14px; background: var(--panel2); border: 1px solid var(--line); color: var(--muted); }
.status.good { color: var(--good); }
.status.bad { color: var(--danger); }
.panelhead { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.pageinfo { color: var(--muted); margin-top: 10px; overflow-wrap: anywhere; }
.results { display: grid; gap: 10px; margin-top: 16px; }
.media {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px;
  padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #0b0f17;
}
.badge { min-width: 64px; text-align: center; padding: 6px 8px; border-radius: 999px; background: #171d2b; border: 1px solid #283044; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.media .url { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; color: #c4cbe0; word-break: break-all; }
.media .meta { color: var(--muted); font-size: 12px; margin-top: 4px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.task { font-size: 12px; color: var(--muted); margin-top: 6px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.steps > div { background: #0b0f17; border: 1px solid var(--line); border-radius: 13px; padding: 14px; }
.steps span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: #1d2535; font-weight: 900; color: var(--accent2); }
.steps p { margin: 10px 0 0; color: var(--muted); }
footer { color: #6f7787; text-align: center; margin-top: 24px; font-size: 12px; }
@media (max-width: 760px) {
  .shell { padding-top: 34px; }
  .urlrow { grid-template-columns: 1fr; }
  .media { grid-template-columns: 1fr; }
  .actions { justify-content: flex-start; }
  .steps { grid-template-columns: 1fr 1fr; }
  .panelhead { align-items: flex-start; flex-direction: column; }
}
